qwak-core 0.6.5__py3-none-any.whl → 0.6.7__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 (26) hide show
  1. _qwak_proto/qwak/administration/cluster/v2/cluster_service_pb2.py +52 -0
  2. _qwak_proto/qwak/administration/cluster/v2/cluster_service_pb2.pyi +198 -0
  3. _qwak_proto/qwak/administration/cluster/v2/cluster_service_pb2_grpc.py +237 -0
  4. _qwak_proto/qwak/administration/v1/environments/environment_pb2.py +29 -0
  5. _qwak_proto/qwak/administration/v1/environments/environment_pb2.pyi +38 -0
  6. _qwak_proto/qwak/administration/v1/environments/environment_pb2_grpc.py +4 -0
  7. _qwak_proto/qwak/administration/v1/environments/environment_service_pb2.py +33 -0
  8. _qwak_proto/qwak/administration/v1/environments/environment_service_pb2.pyi +59 -0
  9. _qwak_proto/qwak/administration/v1/environments/environment_service_pb2_grpc.py +67 -0
  10. _qwak_proto/qwak/models/models_pb2.py +81 -79
  11. _qwak_proto/qwak/models/models_pb2.pyi +21 -0
  12. _qwak_proto/qwak/models/models_pb2_grpc.py +34 -0
  13. qwak/__init__.py +1 -1
  14. qwak/clients/administration/cluster_v2/__init__.py +1 -0
  15. qwak/clients/administration/cluster_v2/client.py +122 -0
  16. qwak/clients/administration/environment/client.py +28 -0
  17. qwak/clients/administration/environment_v1/__init__.py +1 -0
  18. qwak/clients/administration/environment_v1/client.py +53 -0
  19. {qwak_core-0.6.5.dist-info → qwak_core-0.6.7.dist-info}/METADATA +1 -1
  20. {qwak_core-0.6.5.dist-info → qwak_core-0.6.7.dist-info}/RECORD +26 -10
  21. qwak_services_mock/mocks/cluster_v2_service.py +146 -0
  22. qwak_services_mock/mocks/environment_v0_service.py +175 -0
  23. qwak_services_mock/mocks/environment_v1_service.py +37 -0
  24. qwak_services_mock/mocks/qwak_mocks.py +6 -0
  25. qwak_services_mock/services_mock.py +38 -1
  26. {qwak_core-0.6.5.dist-info → qwak_core-0.6.7.dist-info}/WHEEL +0 -0
@@ -0,0 +1,52 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: qwak/administration/cluster/v2/cluster_service.proto
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import descriptor_pool as _descriptor_pool
7
+ from google.protobuf import symbol_database as _symbol_database
8
+ from google.protobuf.internal import builder as _builder
9
+ # @@protoc_insertion_point(imports)
10
+
11
+ _sym_db = _symbol_database.Default()
12
+
13
+
14
+ from _qwak_proto.qwak.administration.cluster.v2 import cluster_pb2 as qwak_dot_administration_dot_cluster_dot_v2_dot_cluster__pb2
15
+
16
+
17
+ 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')
18
+
19
+ _globals = globals()
20
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'qwak.administration.cluster.v2.cluster_service_pb2', _globals)
22
+ if _descriptor._USE_C_DESCRIPTORS == False:
23
+
24
+ DESCRIPTOR._options = None
25
+ 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,198 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+ import builtins
6
+ import collections.abc
7
+ import google.protobuf.descriptor
8
+ import google.protobuf.internal.containers
9
+ import google.protobuf.message
10
+ import qwak.administration.cluster.v2.cluster_pb2
11
+ import sys
12
+
13
+ if sys.version_info >= (3, 8):
14
+ import typing as typing_extensions
15
+ else:
16
+ import typing_extensions
17
+
18
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
19
+
20
+ class CreateClusterCreationRequestRequest(google.protobuf.message.Message):
21
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
22
+
23
+ CLUSTER_SPEC_FIELD_NUMBER: builtins.int
24
+ @property
25
+ def cluster_spec(self) -> qwak.administration.cluster.v2.cluster_pb2.ClusterSpec:
26
+ """The cluster to create"""
27
+ def __init__(
28
+ self,
29
+ *,
30
+ cluster_spec: qwak.administration.cluster.v2.cluster_pb2.ClusterSpec | None = ...,
31
+ ) -> None: ...
32
+ def HasField(self, field_name: typing_extensions.Literal["cluster_spec", b"cluster_spec"]) -> builtins.bool: ...
33
+ def ClearField(self, field_name: typing_extensions.Literal["cluster_spec", b"cluster_spec"]) -> None: ...
34
+
35
+ global___CreateClusterCreationRequestRequest = CreateClusterCreationRequestRequest
36
+
37
+ class CreateClusterCreationRequestResponse(google.protobuf.message.Message):
38
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
39
+
40
+ REQUEST_ID_FIELD_NUMBER: builtins.int
41
+ request_id: builtins.str
42
+ def __init__(
43
+ self,
44
+ *,
45
+ request_id: builtins.str = ...,
46
+ ) -> None: ...
47
+ def ClearField(self, field_name: typing_extensions.Literal["request_id", b"request_id"]) -> None: ...
48
+
49
+ global___CreateClusterCreationRequestResponse = CreateClusterCreationRequestResponse
50
+
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_extensions.Literal["request_id", b"request_id"]) -> None: ...
62
+
63
+ global___GetClusterStateRequest = GetClusterStateRequest
64
+
65
+ class GetClusterStateResponse(google.protobuf.message.Message):
66
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
67
+
68
+ CLUSTER_STATE_FIELD_NUMBER: builtins.int
69
+ @property
70
+ def cluster_state(self) -> qwak.administration.cluster.v2.cluster_pb2.ClusterState: ...
71
+ def __init__(
72
+ self,
73
+ *,
74
+ cluster_state: qwak.administration.cluster.v2.cluster_pb2.ClusterState | None = ...,
75
+ ) -> None: ...
76
+ def HasField(self, field_name: typing_extensions.Literal["cluster_state", b"cluster_state"]) -> builtins.bool: ...
77
+ def ClearField(self, field_name: typing_extensions.Literal["cluster_state", b"cluster_state"]) -> None: ...
78
+
79
+ global___GetClusterStateResponse = GetClusterStateResponse
80
+
81
+ class GetClusterRequest(google.protobuf.message.Message):
82
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
83
+
84
+ CLUSTER_ID_FIELD_NUMBER: builtins.int
85
+ cluster_id: builtins.str
86
+ """The cluster id to get"""
87
+ def __init__(
88
+ self,
89
+ *,
90
+ cluster_id: builtins.str = ...,
91
+ ) -> None: ...
92
+ def ClearField(self, field_name: typing_extensions.Literal["cluster_id", b"cluster_id"]) -> None: ...
93
+
94
+ global___GetClusterRequest = GetClusterRequest
95
+
96
+ class GetClusterResponse(google.protobuf.message.Message):
97
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
98
+
99
+ CLUSTER_STATE_FIELD_NUMBER: builtins.int
100
+ @property
101
+ def cluster_state(self) -> qwak.administration.cluster.v2.cluster_pb2.ClusterState: ...
102
+ def __init__(
103
+ self,
104
+ *,
105
+ cluster_state: qwak.administration.cluster.v2.cluster_pb2.ClusterState | None = ...,
106
+ ) -> None: ...
107
+ def HasField(self, field_name: typing_extensions.Literal["cluster_state", b"cluster_state"]) -> builtins.bool: ...
108
+ def ClearField(self, field_name: typing_extensions.Literal["cluster_state", b"cluster_state"]) -> None: ...
109
+
110
+ global___GetClusterResponse = GetClusterResponse
111
+
112
+ class UpdateClusterConfigurationRequest(google.protobuf.message.Message):
113
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
114
+
115
+ CLUSTER_ID_FIELD_NUMBER: builtins.int
116
+ CLUSTER_SPEC_FIELD_NUMBER: builtins.int
117
+ cluster_id: builtins.str
118
+ """The cluster id to update"""
119
+ @property
120
+ def cluster_spec(self) -> qwak.administration.cluster.v2.cluster_pb2.ClusterSpec:
121
+ """The updated spec of the cluster"""
122
+ def __init__(
123
+ self,
124
+ *,
125
+ cluster_id: builtins.str = ...,
126
+ cluster_spec: qwak.administration.cluster.v2.cluster_pb2.ClusterSpec | None = ...,
127
+ ) -> None: ...
128
+ def HasField(self, field_name: typing_extensions.Literal["cluster_spec", b"cluster_spec"]) -> builtins.bool: ...
129
+ def ClearField(self, field_name: typing_extensions.Literal["cluster_id", b"cluster_id", "cluster_spec", b"cluster_spec"]) -> None: ...
130
+
131
+ global___UpdateClusterConfigurationRequest = UpdateClusterConfigurationRequest
132
+
133
+ class UpdateClusterConfigurationResponse(google.protobuf.message.Message):
134
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
135
+
136
+ REQUEST_ID_FIELD_NUMBER: builtins.int
137
+ request_id: builtins.str
138
+ def __init__(
139
+ self,
140
+ *,
141
+ request_id: builtins.str = ...,
142
+ ) -> None: ...
143
+ def ClearField(self, field_name: typing_extensions.Literal["request_id", b"request_id"]) -> None: ...
144
+
145
+ global___UpdateClusterConfigurationResponse = UpdateClusterConfigurationResponse
146
+
147
+ class DeleteClusterRequest(google.protobuf.message.Message):
148
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
149
+
150
+ CLUSTER_ID_FIELD_NUMBER: builtins.int
151
+ cluster_id: builtins.str
152
+ """The cluster id to delete"""
153
+ def __init__(
154
+ self,
155
+ *,
156
+ cluster_id: builtins.str = ...,
157
+ ) -> None: ...
158
+ def ClearField(self, field_name: typing_extensions.Literal["cluster_id", b"cluster_id"]) -> None: ...
159
+
160
+ global___DeleteClusterRequest = DeleteClusterRequest
161
+
162
+ class DeleteClusterResponse(google.protobuf.message.Message):
163
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
164
+
165
+ REQUEST_ID_FIELD_NUMBER: builtins.int
166
+ request_id: builtins.str
167
+ def __init__(
168
+ self,
169
+ *,
170
+ request_id: builtins.str = ...,
171
+ ) -> None: ...
172
+ def ClearField(self, field_name: typing_extensions.Literal["request_id", b"request_id"]) -> None: ...
173
+
174
+ global___DeleteClusterResponse = DeleteClusterResponse
175
+
176
+ class ListClustersRequest(google.protobuf.message.Message):
177
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
178
+
179
+ def __init__(
180
+ self,
181
+ ) -> None: ...
182
+
183
+ global___ListClustersRequest = ListClustersRequest
184
+
185
+ class ListClustersResponse(google.protobuf.message.Message):
186
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
187
+
188
+ CLUSTER_FIELD_NUMBER: builtins.int
189
+ @property
190
+ def cluster(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[qwak.administration.cluster.v2.cluster_pb2.Cluster]: ...
191
+ def __init__(
192
+ self,
193
+ *,
194
+ cluster: collections.abc.Iterable[qwak.administration.cluster.v2.cluster_pb2.Cluster] | None = ...,
195
+ ) -> None: ...
196
+ def ClearField(self, field_name: typing_extensions.Literal["cluster", b"cluster"]) -> None: ...
197
+
198
+ 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 _qwak_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: qwak/administration/v1/environments/environment.proto
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import descriptor_pool as _descriptor_pool
7
+ from google.protobuf import symbol_database as _symbol_database
8
+ from google.protobuf.internal import builder as _builder
9
+ # @@protoc_insertion_point(imports)
10
+
11
+ _sym_db = _symbol_database.Default()
12
+
13
+
14
+ from _qwak_proto.qwak.administration.runtime_configuration.v0 import runtime_config_pb2 as qwak_dot_administration_dot_runtime__configuration_dot_v0_dot_runtime__config__pb2
15
+ from _qwak_proto.qwak.administration.runtime_configuration.v0 import network_config_pb2 as qwak_dot_administration_dot_runtime__configuration_dot_v0_dot_network__config__pb2
16
+
17
+
18
+ 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')
19
+
20
+ _globals = globals()
21
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
22
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'qwak.administration.v1.environments.environment_pb2', _globals)
23
+ if _descriptor._USE_C_DESCRIPTORS == False:
24
+
25
+ DESCRIPTOR._options = None
26
+ 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,38 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+ import builtins
6
+ import google.protobuf.descriptor
7
+ import google.protobuf.message
8
+ import qwak.administration.runtime_configuration.v0.network_config_pb2
9
+ import qwak.administration.runtime_configuration.v0.runtime_config_pb2
10
+ import sys
11
+
12
+ if sys.version_info >= (3, 8):
13
+ import typing as typing_extensions
14
+ else:
15
+ import typing_extensions
16
+
17
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
18
+
19
+ class EnvironmentRuntimeConfigSpec(google.protobuf.message.Message):
20
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
21
+
22
+ RUNTIME_CONFIGURATION_FIELD_NUMBER: builtins.int
23
+ NETWORK_CONFIGURATION_FIELD_NUMBER: builtins.int
24
+ @property
25
+ def runtime_configuration(self) -> qwak.administration.runtime_configuration.v0.runtime_config_pb2.RuntimeConfiguration: ...
26
+ @property
27
+ def network_configuration(self) -> qwak.administration.runtime_configuration.v0.network_config_pb2.EnvironmentNetworkConfiguration: ...
28
+ def __init__(
29
+ self,
30
+ *,
31
+ runtime_configuration: qwak.administration.runtime_configuration.v0.runtime_config_pb2.RuntimeConfiguration | None = ...,
32
+ network_configuration: qwak.administration.runtime_configuration.v0.network_config_pb2.EnvironmentNetworkConfiguration | None = ...,
33
+ ) -> None: ...
34
+ def HasField(self, field_name: typing_extensions.Literal["network_configuration", b"network_configuration", "optional_runtime_config", b"optional_runtime_config", "runtime_configuration", b"runtime_configuration"]) -> builtins.bool: ...
35
+ def ClearField(self, field_name: typing_extensions.Literal["network_configuration", b"network_configuration", "optional_runtime_config", b"optional_runtime_config", "runtime_configuration", b"runtime_configuration"]) -> None: ...
36
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["optional_runtime_config", b"optional_runtime_config"]) -> typing_extensions.Literal["runtime_configuration"] | None: ...
37
+
38
+ 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: qwak/administration/v1/environments/environment_service.proto
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import descriptor_pool as _descriptor_pool
7
+ from google.protobuf import symbol_database as _symbol_database
8
+ from google.protobuf.internal import builder as _builder
9
+ # @@protoc_insertion_point(imports)
10
+
11
+ _sym_db = _symbol_database.Default()
12
+
13
+
14
+ from _qwak_proto.qwak.administration.v0.environments import environment_pb2 as qwak_dot_administration_dot_v0_dot_environments_dot_environment__pb2
15
+ from _qwak_proto.qwak.administration.v1.environments import environment_pb2 as qwak_dot_administration_dot_v1_dot_environments_dot_environment__pb2
16
+
17
+
18
+ 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')
19
+
20
+ _globals = globals()
21
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
22
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'qwak.administration.v1.environments.environment_service_pb2', _globals)
23
+ if _descriptor._USE_C_DESCRIPTORS == False:
24
+
25
+ DESCRIPTOR._options = None
26
+ 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)
@@ -0,0 +1,59 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+ import builtins
6
+ import google.protobuf.descriptor
7
+ import google.protobuf.message
8
+ import qwak.administration.v0.environments.environment_pb2
9
+ import qwak.administration.v1.environments.environment_pb2
10
+ import sys
11
+
12
+ if sys.version_info >= (3, 8):
13
+ import typing as typing_extensions
14
+ else:
15
+ import typing_extensions
16
+
17
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
18
+
19
+ class CreateEnvironmentRequest(google.protobuf.message.Message):
20
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
21
+
22
+ ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
23
+ CLUSTER_ID_FIELD_NUMBER: builtins.int
24
+ SPEC_FIELD_NUMBER: builtins.int
25
+ environment_name: builtins.str
26
+ """Environment name"""
27
+ cluster_id: builtins.str
28
+ """The JFrogML Cluster the environment is deployed in."""
29
+ @property
30
+ def spec(self) -> qwak.administration.v1.environments.environment_pb2.EnvironmentRuntimeConfigSpec:
31
+ """Environment configuration"""
32
+ def __init__(
33
+ self,
34
+ *,
35
+ environment_name: builtins.str = ...,
36
+ cluster_id: builtins.str = ...,
37
+ spec: qwak.administration.v1.environments.environment_pb2.EnvironmentRuntimeConfigSpec | None = ...,
38
+ ) -> None: ...
39
+ def HasField(self, field_name: typing_extensions.Literal["spec", b"spec"]) -> builtins.bool: ...
40
+ def ClearField(self, field_name: typing_extensions.Literal["cluster_id", b"cluster_id", "environment_name", b"environment_name", "spec", b"spec"]) -> None: ...
41
+
42
+ global___CreateEnvironmentRequest = CreateEnvironmentRequest
43
+
44
+ class CreateEnvironmentResponse(google.protobuf.message.Message):
45
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
46
+
47
+ ENVIRONMENT_FIELD_NUMBER: builtins.int
48
+ @property
49
+ def environment(self) -> qwak.administration.v0.environments.environment_pb2.QwakEnvironment:
50
+ """Created environment"""
51
+ def __init__(
52
+ self,
53
+ *,
54
+ environment: qwak.administration.v0.environments.environment_pb2.QwakEnvironment | None = ...,
55
+ ) -> None: ...
56
+ def HasField(self, field_name: typing_extensions.Literal["environment", b"environment"]) -> builtins.bool: ...
57
+ def ClearField(self, field_name: typing_extensions.Literal["environment", b"environment"]) -> None: ...
58
+
59
+ global___CreateEnvironmentResponse = CreateEnvironmentResponse