frogml 1.2.41__py3-none-any.whl → 1.2.49__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. frogml/__init__.py +1 -1
  2. frogml/_proto/qwak/administration/cluster/v2/cluster_service_pb2.py +52 -0
  3. frogml/_proto/qwak/administration/cluster/v2/cluster_service_pb2.pyi +208 -0
  4. frogml/_proto/qwak/administration/cluster/v2/cluster_service_pb2_grpc.py +237 -0
  5. frogml/_proto/qwak/administration/v1/environments/environment_pb2.py +29 -0
  6. frogml/_proto/qwak/administration/v1/environments/environment_pb2.pyi +35 -0
  7. frogml/_proto/qwak/administration/v1/environments/environment_pb2_grpc.py +4 -0
  8. frogml/_proto/qwak/administration/v1/environments/environment_service_pb2.py +33 -0
  9. frogml/_proto/qwak/administration/v1/environments/environment_service_pb2.pyi +59 -0
  10. frogml/_proto/qwak/administration/v1/environments/environment_service_pb2_grpc.py +67 -0
  11. frogml/_proto/qwak/admiral/secret/v0/account_secret_pb2.py +33 -0
  12. frogml/_proto/qwak/admiral/secret/v0/account_secret_pb2.pyi +76 -0
  13. frogml/_proto/qwak/admiral/secret/v0/account_secret_pb2_grpc.py +4 -0
  14. frogml/_proto/qwak/admiral/secret/v0/system_secret_service_pb2.py +28 -15
  15. frogml/_proto/qwak/admiral/secret/v0/system_secret_service_pb2.pyi +89 -0
  16. frogml/_proto/qwak/admiral/secret/v0/system_secret_service_pb2_grpc.py +102 -0
  17. frogml/_proto/qwak/execution/v1/jobs/job_pb2.py +12 -10
  18. frogml/_proto/qwak/execution/v1/jobs/job_pb2.pyi +40 -3
  19. frogml/_proto/qwak/execution/v1/jobs/reports/report_pb2.py +17 -15
  20. frogml/_proto/qwak/execution/v1/jobs/reports/report_pb2.pyi +37 -3
  21. frogml/_proto/qwak/feature_store/features/feature_set_types_pb2.py +68 -66
  22. frogml/_proto/qwak/feature_store/features/feature_set_types_pb2.pyi +22 -2
  23. frogml/_proto/qwak/feature_store/serving/metadata_pb2.py +8 -8
  24. frogml/_proto/qwak/feature_store/serving/metadata_pb2.pyi +27 -3
  25. frogml/core/clients/administration/cluster_v2/__init__.py +1 -0
  26. frogml/core/clients/administration/cluster_v2/client.py +122 -0
  27. frogml/core/clients/administration/environment/client.py +28 -0
  28. frogml/core/clients/administration/environment_v1/__init__.py +1 -0
  29. frogml/core/clients/administration/environment_v1/client.py +53 -0
  30. frogml/core/inner/di_configuration/dependency_wiring.py +18 -16
  31. {frogml-1.2.41.dist-info → frogml-1.2.49.dist-info}/METADATA +1 -1
  32. {frogml-1.2.41.dist-info → frogml-1.2.49.dist-info}/RECORD +38 -19
  33. frogml_services_mock/mocks/cluster_v2_service.py +146 -0
  34. frogml_services_mock/mocks/environment_v0_service.py +175 -0
  35. frogml_services_mock/mocks/environment_v1_service.py +37 -0
  36. frogml_services_mock/mocks/frogml_mocks.py +6 -0
  37. frogml_services_mock/services_mock.py +33 -0
  38. {frogml-1.2.41.dist-info → frogml-1.2.49.dist-info}/WHEEL +0 -0
frogml/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
1
  __author__ = "jfrog"
2
- __version__ = "1.2.41"
2
+ __version__ = "1.2.49"
3
3
 
4
4
  from frogml.sdk.model.decorators.api import api_decorator as api
5
5
  from frogml.sdk.model_loggers.model_logger import load_model, log_model
@@ -0,0 +1,52 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: frogml._proto.qwak.administration/cluster/v2/cluster_service.proto
4
+ # Protobuf Python Version: 4.25.1
5
+ """Generated protocol buffer code."""
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import descriptor_pool as _descriptor_pool
8
+ from google.protobuf import symbol_database as _symbol_database
9
+ from google.protobuf.internal import builder as _builder
10
+ # @@protoc_insertion_point(imports)
11
+
12
+ _sym_db = _symbol_database.Default()
13
+
14
+
15
+ from frogml._proto.qwak.administration.cluster.v2 import cluster_pb2 as qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__pb2
16
+
17
+
18
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n4qwak/administration/cluster/v2/cluster_service.proto\x12\x1eqwak.administration.cluster.v2\x1a,qwak/administration/cluster/v2/cluster.proto\"h\n#CreateClusterCreationRequestRequest\x12\x41\n\x0c\x63luster_spec\x18\x01 \x01(\x0b\x32+.qwak.administration.cluster.v2.ClusterSpec\":\n$CreateClusterCreationRequestResponse\x12\x12\n\nrequest_id\x18\x01 \x01(\t\",\n\x16GetClusterStateRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\t\"^\n\x17GetClusterStateResponse\x12\x43\n\rcluster_state\x18\x01 \x01(\x0b\x32,.qwak.administration.cluster.v2.ClusterState\"\'\n\x11GetClusterRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\"Y\n\x12GetClusterResponse\x12\x43\n\rcluster_state\x18\x01 \x01(\x0b\x32,.qwak.administration.cluster.v2.ClusterState\"z\n!UpdateClusterConfigurationRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\x41\n\x0c\x63luster_spec\x18\x02 \x01(\x0b\x32+.qwak.administration.cluster.v2.ClusterSpec\"8\n\"UpdateClusterConfigurationResponse\x12\x12\n\nrequest_id\x18\x01 \x01(\t\"*\n\x14\x44\x65leteClusterRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\"+\n\x15\x44\x65leteClusterResponse\x12\x12\n\nrequest_id\x18\x01 \x01(\t\"\x15\n\x13ListClustersRequest\"P\n\x14ListClustersResponse\x12\x38\n\x07\x63luster\x18\x01 \x03(\x0b\x32\'.qwak.administration.cluster.v2.Cluster2\xd5\x06\n\x0e\x43lusterService\x12\xa9\x01\n\x1c\x43reateClusterCreationRequest\x12\x43.qwak.administration.cluster.v2.CreateClusterCreationRequestRequest\x1a\x44.qwak.administration.cluster.v2.CreateClusterCreationRequestResponse\x12\x82\x01\n\x0fGetClusterState\x12\x36.qwak.administration.cluster.v2.GetClusterStateRequest\x1a\x37.qwak.administration.cluster.v2.GetClusterStateResponse\x12\xa3\x01\n\x1aUpdateClusterConfiguration\x12\x41.qwak.administration.cluster.v2.UpdateClusterConfigurationRequest\x1a\x42.qwak.administration.cluster.v2.UpdateClusterConfigurationResponse\x12|\n\rDeleteCluster\x12\x34.qwak.administration.cluster.v2.DeleteClusterRequest\x1a\x35.qwak.administration.cluster.v2.DeleteClusterResponse\x12s\n\nGetCluster\x12\x31.qwak.administration.cluster.v2.GetClusterRequest\x1a\x32.qwak.administration.cluster.v2.GetClusterResponse\x12y\n\x0cListClusters\x12\x33.qwak.administration.cluster.v2.ListClustersRequest\x1a\x34.qwak.administration.cluster.v2.ListClustersResponseB\xb4\x01\n)com.qwak.ai.administration.api.cluster.v2P\x01Z\x84\x01github.com/qwak-ai/qwak-platform/services/core/java/user-management/user-management-api/pb/qwak/administration/cluster/v2;cluster_v2b\x06proto3')
19
+
20
+ _globals = globals()
21
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
22
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'qwak.administration.cluster.v2.cluster_service_pb2', _globals)
23
+ if _descriptor._USE_C_DESCRIPTORS == False:
24
+ _globals['DESCRIPTOR']._options = None
25
+ _globals['DESCRIPTOR']._serialized_options = b'\n)com.qwak.ai.administration.api.cluster.v2P\001Z\204\001github.com/qwak-ai/qwak-platform/services/core/java/user-management/user-management-api/pb/qwak/administration/cluster/v2;cluster_v2'
26
+ _globals['_CREATECLUSTERCREATIONREQUESTREQUEST']._serialized_start=134
27
+ _globals['_CREATECLUSTERCREATIONREQUESTREQUEST']._serialized_end=238
28
+ _globals['_CREATECLUSTERCREATIONREQUESTRESPONSE']._serialized_start=240
29
+ _globals['_CREATECLUSTERCREATIONREQUESTRESPONSE']._serialized_end=298
30
+ _globals['_GETCLUSTERSTATEREQUEST']._serialized_start=300
31
+ _globals['_GETCLUSTERSTATEREQUEST']._serialized_end=344
32
+ _globals['_GETCLUSTERSTATERESPONSE']._serialized_start=346
33
+ _globals['_GETCLUSTERSTATERESPONSE']._serialized_end=440
34
+ _globals['_GETCLUSTERREQUEST']._serialized_start=442
35
+ _globals['_GETCLUSTERREQUEST']._serialized_end=481
36
+ _globals['_GETCLUSTERRESPONSE']._serialized_start=483
37
+ _globals['_GETCLUSTERRESPONSE']._serialized_end=572
38
+ _globals['_UPDATECLUSTERCONFIGURATIONREQUEST']._serialized_start=574
39
+ _globals['_UPDATECLUSTERCONFIGURATIONREQUEST']._serialized_end=696
40
+ _globals['_UPDATECLUSTERCONFIGURATIONRESPONSE']._serialized_start=698
41
+ _globals['_UPDATECLUSTERCONFIGURATIONRESPONSE']._serialized_end=754
42
+ _globals['_DELETECLUSTERREQUEST']._serialized_start=756
43
+ _globals['_DELETECLUSTERREQUEST']._serialized_end=798
44
+ _globals['_DELETECLUSTERRESPONSE']._serialized_start=800
45
+ _globals['_DELETECLUSTERRESPONSE']._serialized_end=843
46
+ _globals['_LISTCLUSTERSREQUEST']._serialized_start=845
47
+ _globals['_LISTCLUSTERSREQUEST']._serialized_end=866
48
+ _globals['_LISTCLUSTERSRESPONSE']._serialized_start=868
49
+ _globals['_LISTCLUSTERSRESPONSE']._serialized_end=948
50
+ _globals['_CLUSTERSERVICE']._serialized_start=951
51
+ _globals['_CLUSTERSERVICE']._serialized_end=1804
52
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,208 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import builtins
7
+ import collections.abc
8
+ import google.protobuf.descriptor
9
+ import google.protobuf.internal.containers
10
+ import google.protobuf.message
11
+ import frogml._proto.qwak.administration.cluster.v2.cluster_pb2
12
+ import typing
13
+
14
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
15
+
16
+ @typing.final
17
+ class CreateClusterCreationRequestRequest(google.protobuf.message.Message):
18
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
19
+
20
+ CLUSTER_SPEC_FIELD_NUMBER: builtins.int
21
+ @property
22
+ def cluster_spec(self) -> frogml._proto.qwak.administration.cluster.v2.cluster_pb2.ClusterSpec:
23
+ """The cluster to create"""
24
+
25
+ def __init__(
26
+ self,
27
+ *,
28
+ cluster_spec: frogml._proto.qwak.administration.cluster.v2.cluster_pb2.ClusterSpec | None = ...,
29
+ ) -> None: ...
30
+ def HasField(self, field_name: typing.Literal["cluster_spec", b"cluster_spec"]) -> builtins.bool: ...
31
+ def ClearField(self, field_name: typing.Literal["cluster_spec", b"cluster_spec"]) -> None: ...
32
+
33
+ global___CreateClusterCreationRequestRequest = CreateClusterCreationRequestRequest
34
+
35
+ @typing.final
36
+ class CreateClusterCreationRequestResponse(google.protobuf.message.Message):
37
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
38
+
39
+ REQUEST_ID_FIELD_NUMBER: builtins.int
40
+ request_id: builtins.str
41
+ def __init__(
42
+ self,
43
+ *,
44
+ request_id: builtins.str = ...,
45
+ ) -> None: ...
46
+ def ClearField(self, field_name: typing.Literal["request_id", b"request_id"]) -> None: ...
47
+
48
+ global___CreateClusterCreationRequestResponse = CreateClusterCreationRequestResponse
49
+
50
+ @typing.final
51
+ class GetClusterStateRequest(google.protobuf.message.Message):
52
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
53
+
54
+ REQUEST_ID_FIELD_NUMBER: builtins.int
55
+ request_id: builtins.str
56
+ def __init__(
57
+ self,
58
+ *,
59
+ request_id: builtins.str = ...,
60
+ ) -> None: ...
61
+ def ClearField(self, field_name: typing.Literal["request_id", b"request_id"]) -> None: ...
62
+
63
+ global___GetClusterStateRequest = GetClusterStateRequest
64
+
65
+ @typing.final
66
+ class GetClusterStateResponse(google.protobuf.message.Message):
67
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
68
+
69
+ CLUSTER_STATE_FIELD_NUMBER: builtins.int
70
+ @property
71
+ def cluster_state(self) -> frogml._proto.qwak.administration.cluster.v2.cluster_pb2.ClusterState: ...
72
+ def __init__(
73
+ self,
74
+ *,
75
+ cluster_state: frogml._proto.qwak.administration.cluster.v2.cluster_pb2.ClusterState | None = ...,
76
+ ) -> None: ...
77
+ def HasField(self, field_name: typing.Literal["cluster_state", b"cluster_state"]) -> builtins.bool: ...
78
+ def ClearField(self, field_name: typing.Literal["cluster_state", b"cluster_state"]) -> None: ...
79
+
80
+ global___GetClusterStateResponse = GetClusterStateResponse
81
+
82
+ @typing.final
83
+ class GetClusterRequest(google.protobuf.message.Message):
84
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
85
+
86
+ CLUSTER_ID_FIELD_NUMBER: builtins.int
87
+ cluster_id: builtins.str
88
+ """The cluster id to get"""
89
+ def __init__(
90
+ self,
91
+ *,
92
+ cluster_id: builtins.str = ...,
93
+ ) -> None: ...
94
+ def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ...
95
+
96
+ global___GetClusterRequest = GetClusterRequest
97
+
98
+ @typing.final
99
+ class GetClusterResponse(google.protobuf.message.Message):
100
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
101
+
102
+ CLUSTER_STATE_FIELD_NUMBER: builtins.int
103
+ @property
104
+ def cluster_state(self) -> frogml._proto.qwak.administration.cluster.v2.cluster_pb2.ClusterState: ...
105
+ def __init__(
106
+ self,
107
+ *,
108
+ cluster_state: frogml._proto.qwak.administration.cluster.v2.cluster_pb2.ClusterState | None = ...,
109
+ ) -> None: ...
110
+ def HasField(self, field_name: typing.Literal["cluster_state", b"cluster_state"]) -> builtins.bool: ...
111
+ def ClearField(self, field_name: typing.Literal["cluster_state", b"cluster_state"]) -> None: ...
112
+
113
+ global___GetClusterResponse = GetClusterResponse
114
+
115
+ @typing.final
116
+ class UpdateClusterConfigurationRequest(google.protobuf.message.Message):
117
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
118
+
119
+ CLUSTER_ID_FIELD_NUMBER: builtins.int
120
+ CLUSTER_SPEC_FIELD_NUMBER: builtins.int
121
+ cluster_id: builtins.str
122
+ """The cluster id to update"""
123
+ @property
124
+ def cluster_spec(self) -> frogml._proto.qwak.administration.cluster.v2.cluster_pb2.ClusterSpec:
125
+ """The updated spec of the cluster"""
126
+
127
+ def __init__(
128
+ self,
129
+ *,
130
+ cluster_id: builtins.str = ...,
131
+ cluster_spec: frogml._proto.qwak.administration.cluster.v2.cluster_pb2.ClusterSpec | None = ...,
132
+ ) -> None: ...
133
+ def HasField(self, field_name: typing.Literal["cluster_spec", b"cluster_spec"]) -> builtins.bool: ...
134
+ def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id", "cluster_spec", b"cluster_spec"]) -> None: ...
135
+
136
+ global___UpdateClusterConfigurationRequest = UpdateClusterConfigurationRequest
137
+
138
+ @typing.final
139
+ class UpdateClusterConfigurationResponse(google.protobuf.message.Message):
140
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
141
+
142
+ REQUEST_ID_FIELD_NUMBER: builtins.int
143
+ request_id: builtins.str
144
+ def __init__(
145
+ self,
146
+ *,
147
+ request_id: builtins.str = ...,
148
+ ) -> None: ...
149
+ def ClearField(self, field_name: typing.Literal["request_id", b"request_id"]) -> None: ...
150
+
151
+ global___UpdateClusterConfigurationResponse = UpdateClusterConfigurationResponse
152
+
153
+ @typing.final
154
+ class DeleteClusterRequest(google.protobuf.message.Message):
155
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
156
+
157
+ CLUSTER_ID_FIELD_NUMBER: builtins.int
158
+ cluster_id: builtins.str
159
+ """The cluster id to delete"""
160
+ def __init__(
161
+ self,
162
+ *,
163
+ cluster_id: builtins.str = ...,
164
+ ) -> None: ...
165
+ def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ...
166
+
167
+ global___DeleteClusterRequest = DeleteClusterRequest
168
+
169
+ @typing.final
170
+ class DeleteClusterResponse(google.protobuf.message.Message):
171
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
172
+
173
+ REQUEST_ID_FIELD_NUMBER: builtins.int
174
+ request_id: builtins.str
175
+ def __init__(
176
+ self,
177
+ *,
178
+ request_id: builtins.str = ...,
179
+ ) -> None: ...
180
+ def ClearField(self, field_name: typing.Literal["request_id", b"request_id"]) -> None: ...
181
+
182
+ global___DeleteClusterResponse = DeleteClusterResponse
183
+
184
+ @typing.final
185
+ class ListClustersRequest(google.protobuf.message.Message):
186
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
187
+
188
+ def __init__(
189
+ self,
190
+ ) -> None: ...
191
+
192
+ global___ListClustersRequest = ListClustersRequest
193
+
194
+ @typing.final
195
+ class ListClustersResponse(google.protobuf.message.Message):
196
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
197
+
198
+ CLUSTER_FIELD_NUMBER: builtins.int
199
+ @property
200
+ def cluster(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[qwak.administration.cluster.v2.cluster_pb2.Cluster]: ...
201
+ def __init__(
202
+ self,
203
+ *,
204
+ cluster: collections.abc.Iterable[qwak.administration.cluster.v2.cluster_pb2.Cluster] | None = ...,
205
+ ) -> None: ...
206
+ def ClearField(self, field_name: typing.Literal["cluster", b"cluster"]) -> None: ...
207
+
208
+ global___ListClustersResponse = ListClustersResponse
@@ -0,0 +1,237 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
5
+ from frogml._proto.qwak.administration.cluster.v2 import cluster_service_pb2 as qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2
6
+
7
+
8
+ class ClusterServiceStub(object):
9
+ """Missing associated documentation comment in .proto file."""
10
+
11
+ def __init__(self, channel):
12
+ """Constructor.
13
+
14
+ Args:
15
+ channel: A grpc.Channel.
16
+ """
17
+ self.CreateClusterCreationRequest = channel.unary_unary(
18
+ '/qwak.administration.cluster.v2.ClusterService/CreateClusterCreationRequest',
19
+ request_serializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.CreateClusterCreationRequestRequest.SerializeToString,
20
+ response_deserializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.CreateClusterCreationRequestResponse.FromString,
21
+ )
22
+ self.GetClusterState = channel.unary_unary(
23
+ '/qwak.administration.cluster.v2.ClusterService/GetClusterState',
24
+ request_serializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.GetClusterStateRequest.SerializeToString,
25
+ response_deserializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.GetClusterStateResponse.FromString,
26
+ )
27
+ self.UpdateClusterConfiguration = channel.unary_unary(
28
+ '/qwak.administration.cluster.v2.ClusterService/UpdateClusterConfiguration',
29
+ request_serializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.UpdateClusterConfigurationRequest.SerializeToString,
30
+ response_deserializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.UpdateClusterConfigurationResponse.FromString,
31
+ )
32
+ self.DeleteCluster = channel.unary_unary(
33
+ '/qwak.administration.cluster.v2.ClusterService/DeleteCluster',
34
+ request_serializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.DeleteClusterRequest.SerializeToString,
35
+ response_deserializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.DeleteClusterResponse.FromString,
36
+ )
37
+ self.GetCluster = channel.unary_unary(
38
+ '/qwak.administration.cluster.v2.ClusterService/GetCluster',
39
+ request_serializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.GetClusterRequest.SerializeToString,
40
+ response_deserializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.GetClusterResponse.FromString,
41
+ )
42
+ self.ListClusters = channel.unary_unary(
43
+ '/qwak.administration.cluster.v2.ClusterService/ListClusters',
44
+ request_serializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.ListClustersRequest.SerializeToString,
45
+ response_deserializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.ListClustersResponse.FromString,
46
+ )
47
+
48
+
49
+ class ClusterServiceServicer(object):
50
+ """Missing associated documentation comment in .proto file."""
51
+
52
+ def CreateClusterCreationRequest(self, request, context):
53
+ """Create a Cluster
54
+ """
55
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
56
+ context.set_details('Method not implemented!')
57
+ raise NotImplementedError('Method not implemented!')
58
+
59
+ def GetClusterState(self, request, context):
60
+ """Get Cluster state by request id
61
+ """
62
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
63
+ context.set_details('Method not implemented!')
64
+ raise NotImplementedError('Method not implemented!')
65
+
66
+ def UpdateClusterConfiguration(self, request, context):
67
+ """Update a Cluster by id
68
+ """
69
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
70
+ context.set_details('Method not implemented!')
71
+ raise NotImplementedError('Method not implemented!')
72
+
73
+ def DeleteCluster(self, request, context):
74
+ """Delete Cluster by id
75
+ """
76
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
77
+ context.set_details('Method not implemented!')
78
+ raise NotImplementedError('Method not implemented!')
79
+
80
+ def GetCluster(self, request, context):
81
+ """Get cluster by id
82
+ """
83
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
84
+ context.set_details('Method not implemented!')
85
+ raise NotImplementedError('Method not implemented!')
86
+
87
+ def ListClusters(self, request, context):
88
+ """List all clusters by filter
89
+ """
90
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
91
+ context.set_details('Method not implemented!')
92
+ raise NotImplementedError('Method not implemented!')
93
+
94
+
95
+ def add_ClusterServiceServicer_to_server(servicer, server):
96
+ rpc_method_handlers = {
97
+ 'CreateClusterCreationRequest': grpc.unary_unary_rpc_method_handler(
98
+ servicer.CreateClusterCreationRequest,
99
+ request_deserializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.CreateClusterCreationRequestRequest.FromString,
100
+ response_serializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.CreateClusterCreationRequestResponse.SerializeToString,
101
+ ),
102
+ 'GetClusterState': grpc.unary_unary_rpc_method_handler(
103
+ servicer.GetClusterState,
104
+ request_deserializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.GetClusterStateRequest.FromString,
105
+ response_serializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.GetClusterStateResponse.SerializeToString,
106
+ ),
107
+ 'UpdateClusterConfiguration': grpc.unary_unary_rpc_method_handler(
108
+ servicer.UpdateClusterConfiguration,
109
+ request_deserializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.UpdateClusterConfigurationRequest.FromString,
110
+ response_serializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.UpdateClusterConfigurationResponse.SerializeToString,
111
+ ),
112
+ 'DeleteCluster': grpc.unary_unary_rpc_method_handler(
113
+ servicer.DeleteCluster,
114
+ request_deserializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.DeleteClusterRequest.FromString,
115
+ response_serializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.DeleteClusterResponse.SerializeToString,
116
+ ),
117
+ 'GetCluster': grpc.unary_unary_rpc_method_handler(
118
+ servicer.GetCluster,
119
+ request_deserializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.GetClusterRequest.FromString,
120
+ response_serializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.GetClusterResponse.SerializeToString,
121
+ ),
122
+ 'ListClusters': grpc.unary_unary_rpc_method_handler(
123
+ servicer.ListClusters,
124
+ request_deserializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.ListClustersRequest.FromString,
125
+ response_serializer=qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.ListClustersResponse.SerializeToString,
126
+ ),
127
+ }
128
+ generic_handler = grpc.method_handlers_generic_handler(
129
+ 'qwak.administration.cluster.v2.ClusterService', rpc_method_handlers)
130
+ server.add_generic_rpc_handlers((generic_handler,))
131
+
132
+
133
+ # This class is part of an EXPERIMENTAL API.
134
+ class ClusterService(object):
135
+ """Missing associated documentation comment in .proto file."""
136
+
137
+ @staticmethod
138
+ def CreateClusterCreationRequest(request,
139
+ target,
140
+ options=(),
141
+ channel_credentials=None,
142
+ call_credentials=None,
143
+ insecure=False,
144
+ compression=None,
145
+ wait_for_ready=None,
146
+ timeout=None,
147
+ metadata=None):
148
+ return grpc.experimental.unary_unary(request, target, '/qwak.administration.cluster.v2.ClusterService/CreateClusterCreationRequest',
149
+ qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.CreateClusterCreationRequestRequest.SerializeToString,
150
+ qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.CreateClusterCreationRequestResponse.FromString,
151
+ options, channel_credentials,
152
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
153
+
154
+ @staticmethod
155
+ def GetClusterState(request,
156
+ target,
157
+ options=(),
158
+ channel_credentials=None,
159
+ call_credentials=None,
160
+ insecure=False,
161
+ compression=None,
162
+ wait_for_ready=None,
163
+ timeout=None,
164
+ metadata=None):
165
+ return grpc.experimental.unary_unary(request, target, '/qwak.administration.cluster.v2.ClusterService/GetClusterState',
166
+ qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.GetClusterStateRequest.SerializeToString,
167
+ qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.GetClusterStateResponse.FromString,
168
+ options, channel_credentials,
169
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
170
+
171
+ @staticmethod
172
+ def UpdateClusterConfiguration(request,
173
+ target,
174
+ options=(),
175
+ channel_credentials=None,
176
+ call_credentials=None,
177
+ insecure=False,
178
+ compression=None,
179
+ wait_for_ready=None,
180
+ timeout=None,
181
+ metadata=None):
182
+ return grpc.experimental.unary_unary(request, target, '/qwak.administration.cluster.v2.ClusterService/UpdateClusterConfiguration',
183
+ qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.UpdateClusterConfigurationRequest.SerializeToString,
184
+ qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.UpdateClusterConfigurationResponse.FromString,
185
+ options, channel_credentials,
186
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
187
+
188
+ @staticmethod
189
+ def DeleteCluster(request,
190
+ target,
191
+ options=(),
192
+ channel_credentials=None,
193
+ call_credentials=None,
194
+ insecure=False,
195
+ compression=None,
196
+ wait_for_ready=None,
197
+ timeout=None,
198
+ metadata=None):
199
+ return grpc.experimental.unary_unary(request, target, '/qwak.administration.cluster.v2.ClusterService/DeleteCluster',
200
+ qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.DeleteClusterRequest.SerializeToString,
201
+ qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.DeleteClusterResponse.FromString,
202
+ options, channel_credentials,
203
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
204
+
205
+ @staticmethod
206
+ def GetCluster(request,
207
+ target,
208
+ options=(),
209
+ channel_credentials=None,
210
+ call_credentials=None,
211
+ insecure=False,
212
+ compression=None,
213
+ wait_for_ready=None,
214
+ timeout=None,
215
+ metadata=None):
216
+ return grpc.experimental.unary_unary(request, target, '/qwak.administration.cluster.v2.ClusterService/GetCluster',
217
+ qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.GetClusterRequest.SerializeToString,
218
+ qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.GetClusterResponse.FromString,
219
+ options, channel_credentials,
220
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
221
+
222
+ @staticmethod
223
+ def ListClusters(request,
224
+ target,
225
+ options=(),
226
+ channel_credentials=None,
227
+ call_credentials=None,
228
+ insecure=False,
229
+ compression=None,
230
+ wait_for_ready=None,
231
+ timeout=None,
232
+ metadata=None):
233
+ return grpc.experimental.unary_unary(request, target, '/qwak.administration.cluster.v2.ClusterService/ListClusters',
234
+ qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.ListClustersRequest.SerializeToString,
235
+ qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__service__pb2.ListClustersResponse.FromString,
236
+ options, channel_credentials,
237
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -0,0 +1,29 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: frogml._proto.qwak.administration/v1/environments/environment.proto
4
+ # Protobuf Python Version: 4.25.1
5
+ """Generated protocol buffer code."""
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import descriptor_pool as _descriptor_pool
8
+ from google.protobuf import symbol_database as _symbol_database
9
+ from google.protobuf.internal import builder as _builder
10
+ # @@protoc_insertion_point(imports)
11
+
12
+ _sym_db = _symbol_database.Default()
13
+
14
+
15
+ from frogml._proto.qwak.administration.runtime_configuration.v0 import runtime_config_pb2 as qwak_dot_administration_dot_runtime__configuration_dot_v0_dot_runtime__config__pb2
16
+ from frogml._proto.qwak.administration.runtime_configuration.v0 import network_config_pb2 as qwak_dot_administration_dot_runtime__configuration_dot_v0_dot_network__config__pb2
17
+
18
+
19
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5qwak/administration/v1/environments/environment.proto\x12\"qwak.administration.v1.environment\x1a\x41qwak/administration/runtime_configuration/v0/runtime_config.proto\x1a\x41qwak/administration/runtime_configuration/v0/network_config.proto\"\x9b\x02\n\x1c\x45nvironmentRuntimeConfigSpec\x12\x63\n\x15runtime_configuration\x18\x01 \x01(\x0b\x32\x42.qwak.administration.runtime_configuration.v0.RuntimeConfigurationH\x00\x12{\n\x15network_configuration\x18\x02 \x01(\x0b\x32\\.qwak.administration.runtime_configuration.v0.network_config.EnvironmentNetworkConfigurationB\x19\n\x17optional_runtime_configB\xb5\x01\n!com.qwak.ai.administration.v1.apiP\x01Z\x8d\x01github.com/qwak-ai/qwak-platform/services/core/java/user-management/user-management-api/pb/qwak/administration/v1/environments;environment_v1b\x06proto3')
20
+
21
+ _globals = globals()
22
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
23
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'qwak.administration.v1.environments.environment_pb2', _globals)
24
+ if _descriptor._USE_C_DESCRIPTORS == False:
25
+ _globals['DESCRIPTOR']._options = None
26
+ _globals['DESCRIPTOR']._serialized_options = b'\n!com.qwak.ai.administration.v1.apiP\001Z\215\001github.com/qwak-ai/qwak-platform/services/core/java/user-management/user-management-api/pb/qwak/administration/v1/environments;environment_v1'
27
+ _globals['_ENVIRONMENTRUNTIMECONFIGSPEC']._serialized_start=228
28
+ _globals['_ENVIRONMENTRUNTIMECONFIGSPEC']._serialized_end=511
29
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,35 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import builtins
7
+ import google.protobuf.descriptor
8
+ import google.protobuf.message
9
+ import frogml._proto.qwak.administration.runtime_configuration.v0.network_config_pb2
10
+ import frogml._proto.qwak.administration.runtime_configuration.v0.runtime_config_pb2
11
+ import typing
12
+
13
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
14
+
15
+ @typing.final
16
+ class EnvironmentRuntimeConfigSpec(google.protobuf.message.Message):
17
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
18
+
19
+ RUNTIME_CONFIGURATION_FIELD_NUMBER: builtins.int
20
+ NETWORK_CONFIGURATION_FIELD_NUMBER: builtins.int
21
+ @property
22
+ def runtime_configuration(self) -> frogml._proto.qwak.administration.runtime_configuration.v0.runtime_config_pb2.RuntimeConfiguration: ...
23
+ @property
24
+ def network_configuration(self) -> frogml._proto.qwak.administration.runtime_configuration.v0.network_config_pb2.EnvironmentNetworkConfiguration: ...
25
+ def __init__(
26
+ self,
27
+ *,
28
+ runtime_configuration: frogml._proto.qwak.administration.runtime_configuration.v0.runtime_config_pb2.RuntimeConfiguration | None = ...,
29
+ network_configuration: frogml._proto.qwak.administration.runtime_configuration.v0.network_config_pb2.EnvironmentNetworkConfiguration | None = ...,
30
+ ) -> None: ...
31
+ def HasField(self, field_name: typing.Literal["network_configuration", b"network_configuration", "optional_runtime_config", b"optional_runtime_config", "runtime_configuration", b"runtime_configuration"]) -> builtins.bool: ...
32
+ def ClearField(self, field_name: typing.Literal["network_configuration", b"network_configuration", "optional_runtime_config", b"optional_runtime_config", "runtime_configuration", b"runtime_configuration"]) -> None: ...
33
+ def WhichOneof(self, oneof_group: typing.Literal["optional_runtime_config", b"optional_runtime_config"]) -> typing.Literal["runtime_configuration"] | None: ...
34
+
35
+ global___EnvironmentRuntimeConfigSpec = EnvironmentRuntimeConfigSpec
@@ -0,0 +1,4 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
@@ -0,0 +1,33 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: frogml._proto.qwak.administration/v1/environments/environment_service.proto
4
+ # Protobuf Python Version: 4.25.1
5
+ """Generated protocol buffer code."""
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import descriptor_pool as _descriptor_pool
8
+ from google.protobuf import symbol_database as _symbol_database
9
+ from google.protobuf.internal import builder as _builder
10
+ # @@protoc_insertion_point(imports)
11
+
12
+ _sym_db = _symbol_database.Default()
13
+
14
+
15
+ from frogml._proto.qwak.administration.v0.environments import environment_pb2 as qwak_dot_administration_dot_v0_dot_environments_dot_environment__pb2
16
+ from frogml._proto.qwak.administration.v1.environments import environment_pb2 as qwak_dot_administration_dot_v1_dot_environments_dot_environment__pb2
17
+
18
+
19
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n=qwak/administration/v1/environments/environment_service.proto\x12\"qwak.administration.v1.environment\x1a\x35qwak/administration/v0/environments/environment.proto\x1a\x35qwak/administration/v1/environments/environment.proto\"\x98\x01\n\x18\x43reateEnvironmentRequest\x12\x18\n\x10\x65nvironment_name\x18\x01 \x01(\t\x12\x12\n\ncluster_id\x18\x02 \x01(\t\x12N\n\x04spec\x18\x03 \x01(\x0b\x32@.qwak.administration.v1.environment.EnvironmentRuntimeConfigSpec\"b\n\x19\x43reateEnvironmentResponse\x12\x45\n\x0b\x65nvironment\x18\x01 \x01(\x0b\x32\x30.qwak.administration.environment.QwakEnvironment2\xa7\x01\n\x12\x45nvironmentService\x12\x90\x01\n\x11\x43reateEnvironment\x12<.qwak.administration.v1.environment.CreateEnvironmentRequest\x1a=.qwak.administration.v1.environment.CreateEnvironmentResponseB\xb5\x01\n!com.qwak.ai.administration.v1.apiP\x01Z\x8d\x01github.com/qwak-ai/qwak-platform/services/core/java/user-management/user-management-api/pb/qwak/administration/v1/environments;environment_v1b\x06proto3')
20
+
21
+ _globals = globals()
22
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
23
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'qwak.administration.v1.environments.environment_service_pb2', _globals)
24
+ if _descriptor._USE_C_DESCRIPTORS == False:
25
+ _globals['DESCRIPTOR']._options = None
26
+ _globals['DESCRIPTOR']._serialized_options = b'\n!com.qwak.ai.administration.v1.apiP\001Z\215\001github.com/qwak-ai/qwak-platform/services/core/java/user-management/user-management-api/pb/qwak/administration/v1/environments;environment_v1'
27
+ _globals['_CREATEENVIRONMENTREQUEST']._serialized_start=212
28
+ _globals['_CREATEENVIRONMENTREQUEST']._serialized_end=364
29
+ _globals['_CREATEENVIRONMENTRESPONSE']._serialized_start=366
30
+ _globals['_CREATEENVIRONMENTRESPONSE']._serialized_end=464
31
+ _globals['_ENVIRONMENTSERVICE']._serialized_start=467
32
+ _globals['_ENVIRONMENTSERVICE']._serialized_end=634
33
+ # @@protoc_insertion_point(module_scope)