Skip to content

Commit b29afdc

Browse files
committed
GRPC clients version 11.10.3
1 parent 95c8c3c commit b29afdc

File tree

6 files changed

+335
-289
lines changed

6 files changed

+335
-289
lines changed

clarifai_grpc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "11.10.2"
1+
__version__ = "11.10.3"
22

33
import os
44

clarifai_grpc/grpc/api/resources_pb2.py

Lines changed: 83 additions & 89 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clarifai_grpc/grpc/api/resources_pb2.pyi

Lines changed: 15 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -17217,12 +17217,12 @@ class PipelineVersionConfig(google.protobuf.message.Message):
1721717217
VALUE_FIELD_NUMBER: builtins.int
1721817218
key: builtins.str
1721917219
@property
17220-
def value(self) -> global___StepSecretConfig: ...
17220+
def value(self) -> google.protobuf.struct_pb2.Struct: ...
1722117221
def __init__(
1722217222
self,
1722317223
*,
1722417224
key: builtins.str = ...,
17225-
value: global___StepSecretConfig | None = ...,
17225+
value: google.protobuf.struct_pb2.Struct | None = ...,
1722617226
) -> None: ...
1722717227
def HasField(
1722817228
self, field_name: typing_extensions.Literal["value", b"value"]
@@ -17235,16 +17235,20 @@ class PipelineVersionConfig(google.protobuf.message.Message):
1723517235
@property
1723617236
def step_version_secrets(
1723717237
self,
17238-
) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___StepSecretConfig]:
17239-
"""StepVersionSecrets maps step version references to their secret configurations
17240-
The outer map key is the step version reference (e.g. "step1" or the step version ID)
17241-
The inner map key is the secret name (e.g. "EMAIL_PROVIDER_API_KEY")
17242-
The inner map value is the secret reference (e.g. "users/1/secrets/secret-1")
17238+
) -> google.protobuf.internal.containers.MessageMap[
17239+
builtins.str, google.protobuf.struct_pb2.Struct
17240+
]:
17241+
"""StepVersionSecrets maps step names to their secret configurations
17242+
Using google.protobuf.Struct to create the desired flat JSON structure
17243+
This produces: {stepName: {secretName: "users/user-name/secrets/key"}}
17244+
example: {"step-0": {"API_KEY": "users/user-name/secrets/key"}}
1724317245
"""
1724417246
def __init__(
1724517247
self,
1724617248
*,
17247-
step_version_secrets: collections.abc.Mapping[builtins.str, global___StepSecretConfig]
17249+
step_version_secrets: collections.abc.Mapping[
17250+
builtins.str, google.protobuf.struct_pb2.Struct
17251+
]
1724817252
| None = ...,
1724917253
) -> None: ...
1725017254
def ClearField(
@@ -17254,43 +17258,6 @@ class PipelineVersionConfig(google.protobuf.message.Message):
1725417258

1725517259
global___PipelineVersionConfig = PipelineVersionConfig
1725617260

17257-
@typing_extensions.final
17258-
class StepSecretConfig(google.protobuf.message.Message):
17259-
"""StepSecretConfig defines secrets for a specific step version"""
17260-
17261-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
17262-
17263-
@typing_extensions.final
17264-
class SecretsEntry(google.protobuf.message.Message):
17265-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
17266-
17267-
KEY_FIELD_NUMBER: builtins.int
17268-
VALUE_FIELD_NUMBER: builtins.int
17269-
key: builtins.str
17270-
value: builtins.str
17271-
def __init__(
17272-
self,
17273-
*,
17274-
key: builtins.str = ...,
17275-
value: builtins.str = ...,
17276-
) -> None: ...
17277-
def ClearField(
17278-
self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]
17279-
) -> None: ...
17280-
17281-
SECRETS_FIELD_NUMBER: builtins.int
17282-
@property
17283-
def secrets(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
17284-
"""Map of secret name to secret reference"""
17285-
def __init__(
17286-
self,
17287-
*,
17288-
secrets: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
17289-
) -> None: ...
17290-
def ClearField(self, field_name: typing_extensions.Literal["secrets", b"secrets"]) -> None: ...
17291-
17292-
global___StepSecretConfig = StepSecretConfig
17293-
1729417261
@typing_extensions.final
1729517262
class PipelineVersion(google.protobuf.message.Message):
1729617263
DESCRIPTOR: google.protobuf.descriptor.Descriptor
@@ -17495,7 +17462,9 @@ class PipelineVersionRun(google.protobuf.message.Message):
1749517462
"""Optional: Overrides to input arguments for the orchestration system."""
1749617463
@property
1749717464
def orchestration_spec(self) -> global___OrchestrationSpec:
17498-
"""Final merged orchestration spec snapshot submitted to backend."""
17465+
"""Final merged orchestration spec snapshot submitted to backend.
17466+
This field is read-only and cannot be set during creation.
17467+
"""
1749917468
def __init__(
1750017469
self,
1750117470
*,

clarifai_grpc/grpc/api/service_pb2.py

Lines changed: 157 additions & 153 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clarifai_grpc/grpc/api/service_pb2.pyi

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15405,6 +15405,52 @@ class PostComputeClustersRequest(google.protobuf.message.Message):
1540515405

1540615406
global___PostComputeClustersRequest = PostComputeClustersRequest
1540715407

15408+
@typing_extensions.final
15409+
class PatchComputeClustersRequest(google.protobuf.message.Message):
15410+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
15411+
15412+
USER_APP_ID_FIELD_NUMBER: builtins.int
15413+
COMPUTE_CLUSTERS_FIELD_NUMBER: builtins.int
15414+
ACTION_FIELD_NUMBER: builtins.int
15415+
@property
15416+
def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet:
15417+
"""Only the user_id is used from this."""
15418+
@property
15419+
def compute_clusters(
15420+
self,
15421+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
15422+
proto.clarifai.api.resources_pb2.ComputeCluster
15423+
]:
15424+
"""This allows you to patch one or more compute_clusters"""
15425+
action: builtins.str
15426+
"""The action to perform on the patched objects
15427+
For now 'overwrite' is supported
15428+
"""
15429+
def __init__(
15430+
self,
15431+
*,
15432+
user_app_id: proto.clarifai.api.resources_pb2.UserAppIDSet | None = ...,
15433+
compute_clusters: collections.abc.Iterable[proto.clarifai.api.resources_pb2.ComputeCluster]
15434+
| None = ...,
15435+
action: builtins.str = ...,
15436+
) -> None: ...
15437+
def HasField(
15438+
self, field_name: typing_extensions.Literal["user_app_id", b"user_app_id"]
15439+
) -> builtins.bool: ...
15440+
def ClearField(
15441+
self,
15442+
field_name: typing_extensions.Literal[
15443+
"action",
15444+
b"action",
15445+
"compute_clusters",
15446+
b"compute_clusters",
15447+
"user_app_id",
15448+
b"user_app_id",
15449+
],
15450+
) -> None: ...
15451+
15452+
global___PatchComputeClustersRequest = PatchComputeClustersRequest
15453+
1540815454
@typing_extensions.final
1540915455
class DeleteComputeClustersRequest(google.protobuf.message.Message):
1541015456
DESCRIPTOR: google.protobuf.descriptor.Descriptor

clarifai_grpc/grpc/api/service_pb2_grpc.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,11 @@ def __init__(self, channel):
12041204
request_serializer=proto_dot_clarifai_dot_api_dot_service__pb2.DeleteComputeClustersRequest.SerializeToString,
12051205
response_deserializer=wrap_response_deserializer(proto_dot_clarifai_dot_api_dot_status_dot_status__pb2.BaseResponse),
12061206
)
1207+
self.PatchComputeClusters = channel.unary_unary(
1208+
'/clarifai.api.V2/PatchComputeClusters',
1209+
request_serializer=proto_dot_clarifai_dot_api_dot_service__pb2.PatchComputeClustersRequest.SerializeToString,
1210+
response_deserializer=wrap_response_deserializer(proto_dot_clarifai_dot_api_dot_service__pb2.MultiComputeClusterResponse),
1211+
)
12071212
self.GetNodepool = channel.unary_unary(
12081213
'/clarifai.api.V2/GetNodepool',
12091214
request_serializer=proto_dot_clarifai_dot_api_dot_service__pb2.GetNodepoolRequest.SerializeToString,
@@ -3242,6 +3247,12 @@ def DeleteComputeClusters(self, request, context):
32423247
context.set_details('Method not implemented!')
32433248
raise NotImplementedError('Method not implemented!')
32443249

3250+
def PatchComputeClusters(self, request, context):
3251+
"""Missing associated documentation comment in .proto file."""
3252+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
3253+
context.set_details('Method not implemented!')
3254+
raise NotImplementedError('Method not implemented!')
3255+
32453256
def GetNodepool(self, request, context):
32463257
"""Nodepools CRUD
32473258
"""
@@ -4708,6 +4719,11 @@ def add_V2Servicer_to_server(servicer, server):
47084719
request_deserializer=proto_dot_clarifai_dot_api_dot_service__pb2.DeleteComputeClustersRequest.FromString,
47094720
response_serializer=proto_dot_clarifai_dot_api_dot_status_dot_status__pb2.BaseResponse.SerializeToString,
47104721
),
4722+
'PatchComputeClusters': grpc.unary_unary_rpc_method_handler(
4723+
servicer.PatchComputeClusters,
4724+
request_deserializer=proto_dot_clarifai_dot_api_dot_service__pb2.PatchComputeClustersRequest.FromString,
4725+
response_serializer=proto_dot_clarifai_dot_api_dot_service__pb2.MultiComputeClusterResponse.SerializeToString,
4726+
),
47114727
'GetNodepool': grpc.unary_unary_rpc_method_handler(
47124728
servicer.GetNodepool,
47134729
request_deserializer=proto_dot_clarifai_dot_api_dot_service__pb2.GetNodepoolRequest.FromString,
@@ -8949,6 +8965,23 @@ def DeleteComputeClusters(request,
89498965
options, channel_credentials,
89508966
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
89518967

8968+
@staticmethod
8969+
def PatchComputeClusters(request,
8970+
target,
8971+
options=(),
8972+
channel_credentials=None,
8973+
call_credentials=None,
8974+
insecure=False,
8975+
compression=None,
8976+
wait_for_ready=None,
8977+
timeout=None,
8978+
metadata=None):
8979+
return grpc.experimental.unary_unary(request, target, '/clarifai.api.V2/PatchComputeClusters',
8980+
proto_dot_clarifai_dot_api_dot_service__pb2.PatchComputeClustersRequest.SerializeToString,
8981+
proto_dot_clarifai_dot_api_dot_service__pb2.MultiComputeClusterResponse.FromString,
8982+
options, channel_credentials,
8983+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
8984+
89528985
@staticmethod
89538986
def GetNodepool(request,
89548987
target,

0 commit comments

Comments
 (0)