yandexcloud 0.346.0__py3-none-any.whl → 0.348.0__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.

Potentially problematic release.


This version of yandexcloud might be problematic. Click here for more details.

Files changed (58) hide show
  1. yandex/cloud/ai/assistants/v1/common_pb2.py +18 -10
  2. yandex/cloud/ai/assistants/v1/common_pb2.pyi +67 -2
  3. yandex/cloud/backup/v1/resource_pb2.py +21 -19
  4. yandex/cloud/backup/v1/resource_pb2.pyi +32 -5
  5. yandex/cloud/baremetal/v1alpha/private_cloud_connection_pb2.py +40 -0
  6. yandex/cloud/baremetal/v1alpha/private_cloud_connection_pb2.pyi +99 -0
  7. yandex/cloud/baremetal/v1alpha/private_cloud_connection_pb2_grpc.py +24 -0
  8. yandex/cloud/baremetal/v1alpha/private_cloud_connection_pb2_grpc.pyi +17 -0
  9. yandex/cloud/baremetal/v1alpha/private_cloud_connection_service_pb2.py +78 -0
  10. yandex/cloud/baremetal/v1alpha/private_cloud_connection_service_pb2.pyi +239 -0
  11. yandex/cloud/baremetal/v1alpha/private_cloud_connection_service_pb2_grpc.py +281 -0
  12. yandex/cloud/baremetal/v1alpha/private_cloud_connection_service_pb2_grpc.pyi +141 -0
  13. yandex/cloud/cloudregistry/v1/registry_pb2.py +5 -5
  14. yandex/cloud/cloudregistry/v1/registry_pb2.pyi +4 -0
  15. yandex/cloud/gitlab/v1/instance_pb2.py +6 -10
  16. yandex/cloud/gitlab/v1/instance_pb2.pyi +1 -7
  17. yandex/cloud/gitlab/v1/instance_service_pb2.py +20 -28
  18. yandex/cloud/gitlab/v1/instance_service_pb2.pyi +1 -13
  19. yandex/cloud/marketplace/licensemanager/saas/v1/lock_service_pb2.py +11 -3
  20. yandex/cloud/marketplace/licensemanager/saas/v1/lock_service_pb2.pyi +20 -0
  21. yandex/cloud/marketplace/licensemanager/saas/v1/lock_service_pb2_grpc.py +44 -0
  22. yandex/cloud/marketplace/licensemanager/saas/v1/lock_service_pb2_grpc.pyi +20 -0
  23. yandex/cloud/marketplace/pim/v1/saas/product_instance_pb2.pyi +35 -4
  24. yandex/cloud/marketplace/pim/v1/saas/product_instance_service_pb2.pyi +9 -1
  25. yandex/cloud/marketplace/pim/v1/saas/product_instance_service_pb2_grpc.py +10 -5
  26. yandex/cloud/marketplace/pim/v1/saas/product_instance_service_pb2_grpc.pyi +14 -2
  27. yandex/cloud/mdb/clickhouse/v1/config/clickhouse_pb2.py +76 -74
  28. yandex/cloud/mdb/clickhouse/v1/config/clickhouse_pb2.pyi +91 -4
  29. yandex/cloud/mdb/clickhouse/v1/user_pb2.py +32 -30
  30. yandex/cloud/mdb/clickhouse/v1/user_pb2.pyi +43 -2
  31. yandex/cloud/mdb/mysql/v1/cluster_pb2.py +4 -4
  32. yandex/cloud/mdb/mysql/v1/cluster_pb2.pyi +5 -1
  33. yandex/cloud/mdb/mysql/v1/cluster_service_pb2.py +74 -74
  34. yandex/cloud/mdb/mysql/v1/cluster_service_pb2.pyi +8 -2
  35. yandex/cloud/mdb/postgresql/v1/cluster_service_pb2.py +64 -64
  36. yandex/cloud/mdb/postgresql/v1/cluster_service_pb2.pyi +8 -2
  37. yandex/cloud/mdb/spqr/v1/cluster_service_pb2.py +128 -130
  38. yandex/cloud/mdb/spqr/v1/cluster_service_pb2.pyi +14 -11
  39. yandex/cloud/mdb/spqr/v1/shard_pb2.py +11 -3
  40. yandex/cloud/mdb/spqr/v1/shard_pb2.pyi +25 -0
  41. yandex/cloud/monitoring/v3/multi_source_chart_widget_pb2.py +54 -54
  42. yandex/cloud/monitoring/v3/multi_source_chart_widget_pb2.pyi +5 -1
  43. yandex/cloud/monitoring/v3/thresholds_pb2.py +5 -5
  44. yandex/cloud/monitoring/v3/thresholds_pb2.pyi +4 -2
  45. yandex/cloud/searchapi/v2/img_search_service_pb2.py +20 -17
  46. yandex/cloud/serverless/eventrouter/v1/event_service_pb2.py +7 -12
  47. yandex/cloud/storage/v1/bucket_service_pb2.py +44 -39
  48. yandex/cloud/storage/v1/bucket_service_pb2_grpc.py +87 -0
  49. yandex/cloud/storage/v1/bucket_service_pb2_grpc.pyi +35 -0
  50. yandex/cloud/storage/v1/s3api_pb2.py +11 -1
  51. yandex/cloud/storage/v1/s3api_pb2.pyi +103 -0
  52. yandexcloud/__init__.py +1 -1
  53. {yandexcloud-0.346.0.dist-info → yandexcloud-0.348.0.dist-info}/METADATA +1 -1
  54. {yandexcloud-0.346.0.dist-info → yandexcloud-0.348.0.dist-info}/RECORD +58 -50
  55. {yandexcloud-0.346.0.dist-info → yandexcloud-0.348.0.dist-info}/AUTHORS +0 -0
  56. {yandexcloud-0.346.0.dist-info → yandexcloud-0.348.0.dist-info}/LICENSE +0 -0
  57. {yandexcloud-0.346.0.dist-info → yandexcloud-0.348.0.dist-info}/WHEEL +0 -0
  58. {yandexcloud-0.346.0.dist-info → yandexcloud-0.348.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,239 @@
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.field_mask_pb2
10
+ import google.protobuf.internal.containers
11
+ import google.protobuf.message
12
+ import typing
13
+ import yandex.cloud.baremetal.v1alpha.private_cloud_connection_pb2
14
+
15
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
16
+
17
+ @typing.final
18
+ class GetPrivateCloudConnectionRequest(google.protobuf.message.Message):
19
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
20
+
21
+ PRIVATE_CLOUD_CONNECTION_ID_FIELD_NUMBER: builtins.int
22
+ private_cloud_connection_id: builtins.str
23
+ """ID of the Private cloud connection resource to return.
24
+
25
+ To get the server ID, use a [PrivateCloudConnectionService.List] request.
26
+ """
27
+ def __init__(
28
+ self,
29
+ *,
30
+ private_cloud_connection_id: builtins.str = ...,
31
+ ) -> None: ...
32
+ def ClearField(self, field_name: typing.Literal["private_cloud_connection_id", b"private_cloud_connection_id"]) -> None: ...
33
+
34
+ global___GetPrivateCloudConnectionRequest = GetPrivateCloudConnectionRequest
35
+
36
+ @typing.final
37
+ class ListPrivateCloudConnectionRequest(google.protobuf.message.Message):
38
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
39
+
40
+ FOLDER_ID_FIELD_NUMBER: builtins.int
41
+ PAGE_SIZE_FIELD_NUMBER: builtins.int
42
+ PAGE_TOKEN_FIELD_NUMBER: builtins.int
43
+ ORDER_BY_FIELD_NUMBER: builtins.int
44
+ FILTER_FIELD_NUMBER: builtins.int
45
+ folder_id: builtins.str
46
+ """ID of the folder to list private cloud connections in.
47
+
48
+ To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
49
+ """
50
+ page_size: builtins.int
51
+ """The maximum number of results per page to return. If the number of available
52
+ results is greater than `page_size`,
53
+ the service returns a [ListPrivateCloudConnectionResponse.next_page_token]
54
+ that can be used to get the next page of results in subsequent list requests.
55
+ Default value is 20.
56
+ """
57
+ page_token: builtins.str
58
+ """Page token. To get the next page of results, set `page_token` to the
59
+ [ListPrivateCloudConnectionResponse.next_page_token] returned by a previous list request.
60
+ """
61
+ order_by: builtins.str
62
+ """By which column the listing should be ordered and in which direction,
63
+ format is "createdAt desc". "id asc" if omitted.
64
+ Supported fields: ["id", "createdAt", "updatedAt"].
65
+ Both snake_case and camelCase are supported for fields.
66
+ """
67
+ filter: builtins.str
68
+ """A filter expression that filters resources listed in the response.
69
+ The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
70
+
71
+ Each condition has the form `<field> <operator> <value>`, where:
72
+ 1. `<field>` is the field name. Currently you can use filtering only on the limited number of fields.
73
+ 2. `<operator>` is a logical operator, one of `=` (equal), `:` (substring).
74
+ 3. `<value>` represents a value.
75
+ String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\\"` turns to `"`, `\\'` to `'`, `\\\\` to backslash).
76
+ Example: "key1='value' AND key2='value'"
77
+ Supported operators: ["AND"].
78
+ Supported fields: ["id", "name", "status", "vrfId", "routingInstanceId"].
79
+ Both snake_case and camelCase are supported for fields.
80
+ """
81
+ def __init__(
82
+ self,
83
+ *,
84
+ folder_id: builtins.str = ...,
85
+ page_size: builtins.int = ...,
86
+ page_token: builtins.str = ...,
87
+ order_by: builtins.str = ...,
88
+ filter: builtins.str = ...,
89
+ ) -> None: ...
90
+ def ClearField(self, field_name: typing.Literal["filter", b"filter", "folder_id", b"folder_id", "order_by", b"order_by", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ...
91
+
92
+ global___ListPrivateCloudConnectionRequest = ListPrivateCloudConnectionRequest
93
+
94
+ @typing.final
95
+ class ListPrivateCloudConnectionResponse(google.protobuf.message.Message):
96
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
97
+
98
+ PRIVATE_CLOUD_CONNECTIONS_FIELD_NUMBER: builtins.int
99
+ NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
100
+ next_page_token: builtins.str
101
+ """Token for getting the next page of the list. If the number of results is greater than
102
+ [ListPrivateCloudConnectionRequest.page_size], use `next_page_token` as the value
103
+ for the [ListPrivateCloudConnectionRequest.page_token] parameter in the next list request.
104
+
105
+ Each subsequent page will have its own `next_page_token` to continue paging through the results.
106
+ """
107
+ @property
108
+ def private_cloud_connections(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.baremetal.v1alpha.private_cloud_connection_pb2.PrivateCloudConnection]:
109
+ """List of Private cloud connection resources."""
110
+
111
+ def __init__(
112
+ self,
113
+ *,
114
+ private_cloud_connections: collections.abc.Iterable[yandex.cloud.baremetal.v1alpha.private_cloud_connection_pb2.PrivateCloudConnection] | None = ...,
115
+ next_page_token: builtins.str = ...,
116
+ ) -> None: ...
117
+ def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "private_cloud_connections", b"private_cloud_connections"]) -> None: ...
118
+
119
+ global___ListPrivateCloudConnectionResponse = ListPrivateCloudConnectionResponse
120
+
121
+ @typing.final
122
+ class CreatePrivateCloudConnectionRequest(google.protobuf.message.Message):
123
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
124
+
125
+ ROUTING_INSTANCE_ID_FIELD_NUMBER: builtins.int
126
+ VRF_ID_FIELD_NUMBER: builtins.int
127
+ routing_instance_id: builtins.str
128
+ """ID of Cloud Router Routing Instance."""
129
+ vrf_id: builtins.str
130
+ """ID of VRF that is connected to routing Instance.
131
+
132
+ To get the VRF ID, use a [VrfService.List] request.
133
+ """
134
+ def __init__(
135
+ self,
136
+ *,
137
+ routing_instance_id: builtins.str = ...,
138
+ vrf_id: builtins.str = ...,
139
+ ) -> None: ...
140
+ def ClearField(self, field_name: typing.Literal["routing_instance_id", b"routing_instance_id", "vrf_id", b"vrf_id"]) -> None: ...
141
+
142
+ global___CreatePrivateCloudConnectionRequest = CreatePrivateCloudConnectionRequest
143
+
144
+ @typing.final
145
+ class CreatePrivateCloudConnectionMetadata(google.protobuf.message.Message):
146
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
147
+
148
+ PRIVATE_CLOUD_CONNECTION_ID_FIELD_NUMBER: builtins.int
149
+ private_cloud_connection_id: builtins.str
150
+ """ID of the private cloud connection that is being created."""
151
+ def __init__(
152
+ self,
153
+ *,
154
+ private_cloud_connection_id: builtins.str = ...,
155
+ ) -> None: ...
156
+ def ClearField(self, field_name: typing.Literal["private_cloud_connection_id", b"private_cloud_connection_id"]) -> None: ...
157
+
158
+ global___CreatePrivateCloudConnectionMetadata = CreatePrivateCloudConnectionMetadata
159
+
160
+ @typing.final
161
+ class UpdatePrivateCloudConnectionRequest(google.protobuf.message.Message):
162
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
163
+
164
+ PRIVATE_CLOUD_CONNECTION_ID_FIELD_NUMBER: builtins.int
165
+ UPDATE_MASK_FIELD_NUMBER: builtins.int
166
+ ROUTING_INSTANCE_ID_FIELD_NUMBER: builtins.int
167
+ private_cloud_connection_id: builtins.str
168
+ """ID of the private cloud connection to update.
169
+
170
+ To get the private cloud connection ID, use a [PrivateCloudConnectionService.List] request.
171
+ """
172
+ routing_instance_id: builtins.str
173
+ """ID of Cloud Router Routing Instance."""
174
+ @property
175
+ def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask:
176
+ """Field mask that specifies which fields of the PrivateCloudConnection resource are going to be updated."""
177
+
178
+ def __init__(
179
+ self,
180
+ *,
181
+ private_cloud_connection_id: builtins.str = ...,
182
+ update_mask: google.protobuf.field_mask_pb2.FieldMask | None = ...,
183
+ routing_instance_id: builtins.str = ...,
184
+ ) -> None: ...
185
+ def HasField(self, field_name: typing.Literal["update_mask", b"update_mask"]) -> builtins.bool: ...
186
+ def ClearField(self, field_name: typing.Literal["private_cloud_connection_id", b"private_cloud_connection_id", "routing_instance_id", b"routing_instance_id", "update_mask", b"update_mask"]) -> None: ...
187
+
188
+ global___UpdatePrivateCloudConnectionRequest = UpdatePrivateCloudConnectionRequest
189
+
190
+ @typing.final
191
+ class UpdatePrivateCloudConnectionMetadata(google.protobuf.message.Message):
192
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
193
+
194
+ PRIVATE_CLOUD_CONNECTION_ID_FIELD_NUMBER: builtins.int
195
+ private_cloud_connection_id: builtins.str
196
+ """ID of the Private cloud connection resource that is being update."""
197
+ def __init__(
198
+ self,
199
+ *,
200
+ private_cloud_connection_id: builtins.str = ...,
201
+ ) -> None: ...
202
+ def ClearField(self, field_name: typing.Literal["private_cloud_connection_id", b"private_cloud_connection_id"]) -> None: ...
203
+
204
+ global___UpdatePrivateCloudConnectionMetadata = UpdatePrivateCloudConnectionMetadata
205
+
206
+ @typing.final
207
+ class DeletePrivateCloudConnectionRequest(google.protobuf.message.Message):
208
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
209
+
210
+ PRIVATE_CLOUD_CONNECTION_ID_FIELD_NUMBER: builtins.int
211
+ private_cloud_connection_id: builtins.str
212
+ """ID of the private cloud connection to delete.
213
+
214
+ To get the private cloud connection ID, use a [PrivateCloudConnectionService.List] request.
215
+ """
216
+ def __init__(
217
+ self,
218
+ *,
219
+ private_cloud_connection_id: builtins.str = ...,
220
+ ) -> None: ...
221
+ def ClearField(self, field_name: typing.Literal["private_cloud_connection_id", b"private_cloud_connection_id"]) -> None: ...
222
+
223
+ global___DeletePrivateCloudConnectionRequest = DeletePrivateCloudConnectionRequest
224
+
225
+ @typing.final
226
+ class DeletePrivateCloudConnectionMetadata(google.protobuf.message.Message):
227
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
228
+
229
+ PRIVATE_CLOUD_CONNECTION_ID_FIELD_NUMBER: builtins.int
230
+ private_cloud_connection_id: builtins.str
231
+ """ID of the Private cloud connection resource that is being deleted."""
232
+ def __init__(
233
+ self,
234
+ *,
235
+ private_cloud_connection_id: builtins.str = ...,
236
+ ) -> None: ...
237
+ def ClearField(self, field_name: typing.Literal["private_cloud_connection_id", b"private_cloud_connection_id"]) -> None: ...
238
+
239
+ global___DeletePrivateCloudConnectionMetadata = DeletePrivateCloudConnectionMetadata
@@ -0,0 +1,281 @@
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
+ import warnings
5
+
6
+ from yandex.cloud.baremetal.v1alpha import private_cloud_connection_pb2 as yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__pb2
7
+ from yandex.cloud.baremetal.v1alpha import private_cloud_connection_service_pb2 as yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__service__pb2
8
+ from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
9
+
10
+ GRPC_GENERATED_VERSION = '1.70.0'
11
+ GRPC_VERSION = grpc.__version__
12
+ _version_not_supported = False
13
+
14
+ try:
15
+ from grpc._utilities import first_version_is_lower
16
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
17
+ except ImportError:
18
+ _version_not_supported = True
19
+
20
+ if _version_not_supported:
21
+ raise RuntimeError(
22
+ f'The grpc package installed is at version {GRPC_VERSION},'
23
+ + f' but the generated code in yandex/cloud/baremetal/v1alpha/private_cloud_connection_service_pb2_grpc.py depends on'
24
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
25
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
26
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
27
+ )
28
+
29
+
30
+ class PrivateCloudConnectionServiceStub(object):
31
+ """A set of methods for managing Private cloud connection resources.
32
+ """
33
+
34
+ def __init__(self, channel):
35
+ """Constructor.
36
+
37
+ Args:
38
+ channel: A grpc.Channel.
39
+ """
40
+ self.Get = channel.unary_unary(
41
+ '/yandex.cloud.baremetal.v1alpha.PrivateCloudConnectionService/Get',
42
+ request_serializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__service__pb2.GetPrivateCloudConnectionRequest.SerializeToString,
43
+ response_deserializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__pb2.PrivateCloudConnection.FromString,
44
+ _registered_method=True)
45
+ self.List = channel.unary_unary(
46
+ '/yandex.cloud.baremetal.v1alpha.PrivateCloudConnectionService/List',
47
+ request_serializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__service__pb2.ListPrivateCloudConnectionRequest.SerializeToString,
48
+ response_deserializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__service__pb2.ListPrivateCloudConnectionResponse.FromString,
49
+ _registered_method=True)
50
+ self.Create = channel.unary_unary(
51
+ '/yandex.cloud.baremetal.v1alpha.PrivateCloudConnectionService/Create',
52
+ request_serializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__service__pb2.CreatePrivateCloudConnectionRequest.SerializeToString,
53
+ response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
54
+ _registered_method=True)
55
+ self.Update = channel.unary_unary(
56
+ '/yandex.cloud.baremetal.v1alpha.PrivateCloudConnectionService/Update',
57
+ request_serializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__service__pb2.UpdatePrivateCloudConnectionRequest.SerializeToString,
58
+ response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
59
+ _registered_method=True)
60
+ self.Delete = channel.unary_unary(
61
+ '/yandex.cloud.baremetal.v1alpha.PrivateCloudConnectionService/Delete',
62
+ request_serializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__service__pb2.DeletePrivateCloudConnectionRequest.SerializeToString,
63
+ response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
64
+ _registered_method=True)
65
+
66
+
67
+ class PrivateCloudConnectionServiceServicer(object):
68
+ """A set of methods for managing Private cloud connection resources.
69
+ """
70
+
71
+ def Get(self, request, context):
72
+ """Returns the specific Private cloud connection resource.
73
+
74
+ To get the list of available Private cloud connection resources, make a [List] request.
75
+ """
76
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
77
+ context.set_details('Method not implemented!')
78
+ raise NotImplementedError('Method not implemented!')
79
+
80
+ def List(self, request, context):
81
+ """Retrieves the list of Private cloud connection resources in the specified folder.
82
+ """
83
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
84
+ context.set_details('Method not implemented!')
85
+ raise NotImplementedError('Method not implemented!')
86
+
87
+ def Create(self, request, context):
88
+ """Creates a private cloud connection in the specified folder.
89
+ """
90
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
91
+ context.set_details('Method not implemented!')
92
+ raise NotImplementedError('Method not implemented!')
93
+
94
+ def Update(self, request, context):
95
+ """Updates the routing_instance_id in a private cloud connection.
96
+ """
97
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
98
+ context.set_details('Method not implemented!')
99
+ raise NotImplementedError('Method not implemented!')
100
+
101
+ def Delete(self, request, context):
102
+ """Removes a private cloud connection and all allocated network resouces
103
+ """
104
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
105
+ context.set_details('Method not implemented!')
106
+ raise NotImplementedError('Method not implemented!')
107
+
108
+
109
+ def add_PrivateCloudConnectionServiceServicer_to_server(servicer, server):
110
+ rpc_method_handlers = {
111
+ 'Get': grpc.unary_unary_rpc_method_handler(
112
+ servicer.Get,
113
+ request_deserializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__service__pb2.GetPrivateCloudConnectionRequest.FromString,
114
+ response_serializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__pb2.PrivateCloudConnection.SerializeToString,
115
+ ),
116
+ 'List': grpc.unary_unary_rpc_method_handler(
117
+ servicer.List,
118
+ request_deserializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__service__pb2.ListPrivateCloudConnectionRequest.FromString,
119
+ response_serializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__service__pb2.ListPrivateCloudConnectionResponse.SerializeToString,
120
+ ),
121
+ 'Create': grpc.unary_unary_rpc_method_handler(
122
+ servicer.Create,
123
+ request_deserializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__service__pb2.CreatePrivateCloudConnectionRequest.FromString,
124
+ response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
125
+ ),
126
+ 'Update': grpc.unary_unary_rpc_method_handler(
127
+ servicer.Update,
128
+ request_deserializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__service__pb2.UpdatePrivateCloudConnectionRequest.FromString,
129
+ response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
130
+ ),
131
+ 'Delete': grpc.unary_unary_rpc_method_handler(
132
+ servicer.Delete,
133
+ request_deserializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__service__pb2.DeletePrivateCloudConnectionRequest.FromString,
134
+ response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
135
+ ),
136
+ }
137
+ generic_handler = grpc.method_handlers_generic_handler(
138
+ 'yandex.cloud.baremetal.v1alpha.PrivateCloudConnectionService', rpc_method_handlers)
139
+ server.add_generic_rpc_handlers((generic_handler,))
140
+ server.add_registered_method_handlers('yandex.cloud.baremetal.v1alpha.PrivateCloudConnectionService', rpc_method_handlers)
141
+
142
+
143
+ # This class is part of an EXPERIMENTAL API.
144
+ class PrivateCloudConnectionService(object):
145
+ """A set of methods for managing Private cloud connection resources.
146
+ """
147
+
148
+ @staticmethod
149
+ def Get(request,
150
+ target,
151
+ options=(),
152
+ channel_credentials=None,
153
+ call_credentials=None,
154
+ insecure=False,
155
+ compression=None,
156
+ wait_for_ready=None,
157
+ timeout=None,
158
+ metadata=None):
159
+ return grpc.experimental.unary_unary(
160
+ request,
161
+ target,
162
+ '/yandex.cloud.baremetal.v1alpha.PrivateCloudConnectionService/Get',
163
+ yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__service__pb2.GetPrivateCloudConnectionRequest.SerializeToString,
164
+ yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__pb2.PrivateCloudConnection.FromString,
165
+ options,
166
+ channel_credentials,
167
+ insecure,
168
+ call_credentials,
169
+ compression,
170
+ wait_for_ready,
171
+ timeout,
172
+ metadata,
173
+ _registered_method=True)
174
+
175
+ @staticmethod
176
+ def List(request,
177
+ target,
178
+ options=(),
179
+ channel_credentials=None,
180
+ call_credentials=None,
181
+ insecure=False,
182
+ compression=None,
183
+ wait_for_ready=None,
184
+ timeout=None,
185
+ metadata=None):
186
+ return grpc.experimental.unary_unary(
187
+ request,
188
+ target,
189
+ '/yandex.cloud.baremetal.v1alpha.PrivateCloudConnectionService/List',
190
+ yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__service__pb2.ListPrivateCloudConnectionRequest.SerializeToString,
191
+ yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__service__pb2.ListPrivateCloudConnectionResponse.FromString,
192
+ options,
193
+ channel_credentials,
194
+ insecure,
195
+ call_credentials,
196
+ compression,
197
+ wait_for_ready,
198
+ timeout,
199
+ metadata,
200
+ _registered_method=True)
201
+
202
+ @staticmethod
203
+ def Create(request,
204
+ target,
205
+ options=(),
206
+ channel_credentials=None,
207
+ call_credentials=None,
208
+ insecure=False,
209
+ compression=None,
210
+ wait_for_ready=None,
211
+ timeout=None,
212
+ metadata=None):
213
+ return grpc.experimental.unary_unary(
214
+ request,
215
+ target,
216
+ '/yandex.cloud.baremetal.v1alpha.PrivateCloudConnectionService/Create',
217
+ yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__service__pb2.CreatePrivateCloudConnectionRequest.SerializeToString,
218
+ yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
219
+ options,
220
+ channel_credentials,
221
+ insecure,
222
+ call_credentials,
223
+ compression,
224
+ wait_for_ready,
225
+ timeout,
226
+ metadata,
227
+ _registered_method=True)
228
+
229
+ @staticmethod
230
+ def Update(request,
231
+ target,
232
+ options=(),
233
+ channel_credentials=None,
234
+ call_credentials=None,
235
+ insecure=False,
236
+ compression=None,
237
+ wait_for_ready=None,
238
+ timeout=None,
239
+ metadata=None):
240
+ return grpc.experimental.unary_unary(
241
+ request,
242
+ target,
243
+ '/yandex.cloud.baremetal.v1alpha.PrivateCloudConnectionService/Update',
244
+ yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__service__pb2.UpdatePrivateCloudConnectionRequest.SerializeToString,
245
+ yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
246
+ options,
247
+ channel_credentials,
248
+ insecure,
249
+ call_credentials,
250
+ compression,
251
+ wait_for_ready,
252
+ timeout,
253
+ metadata,
254
+ _registered_method=True)
255
+
256
+ @staticmethod
257
+ def Delete(request,
258
+ target,
259
+ options=(),
260
+ channel_credentials=None,
261
+ call_credentials=None,
262
+ insecure=False,
263
+ compression=None,
264
+ wait_for_ready=None,
265
+ timeout=None,
266
+ metadata=None):
267
+ return grpc.experimental.unary_unary(
268
+ request,
269
+ target,
270
+ '/yandex.cloud.baremetal.v1alpha.PrivateCloudConnectionService/Delete',
271
+ yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_private__cloud__connection__service__pb2.DeletePrivateCloudConnectionRequest.SerializeToString,
272
+ yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
273
+ options,
274
+ channel_credentials,
275
+ insecure,
276
+ call_credentials,
277
+ compression,
278
+ wait_for_ready,
279
+ timeout,
280
+ metadata,
281
+ _registered_method=True)
@@ -0,0 +1,141 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import abc
7
+ import collections.abc
8
+ import grpc
9
+ import grpc.aio
10
+ import typing
11
+ import yandex.cloud.baremetal.v1alpha.private_cloud_connection_pb2
12
+ import yandex.cloud.baremetal.v1alpha.private_cloud_connection_service_pb2
13
+ import yandex.cloud.operation.operation_pb2
14
+
15
+ _T = typing.TypeVar("_T")
16
+
17
+ class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
18
+
19
+ class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
20
+ ...
21
+
22
+ class PrivateCloudConnectionServiceStub:
23
+ """A set of methods for managing Private cloud connection resources."""
24
+
25
+ def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
26
+ Get: grpc.UnaryUnaryMultiCallable[
27
+ yandex.cloud.baremetal.v1alpha.private_cloud_connection_service_pb2.GetPrivateCloudConnectionRequest,
28
+ yandex.cloud.baremetal.v1alpha.private_cloud_connection_pb2.PrivateCloudConnection,
29
+ ]
30
+ """Returns the specific Private cloud connection resource.
31
+
32
+ To get the list of available Private cloud connection resources, make a [List] request.
33
+ """
34
+
35
+ List: grpc.UnaryUnaryMultiCallable[
36
+ yandex.cloud.baremetal.v1alpha.private_cloud_connection_service_pb2.ListPrivateCloudConnectionRequest,
37
+ yandex.cloud.baremetal.v1alpha.private_cloud_connection_service_pb2.ListPrivateCloudConnectionResponse,
38
+ ]
39
+ """Retrieves the list of Private cloud connection resources in the specified folder."""
40
+
41
+ Create: grpc.UnaryUnaryMultiCallable[
42
+ yandex.cloud.baremetal.v1alpha.private_cloud_connection_service_pb2.CreatePrivateCloudConnectionRequest,
43
+ yandex.cloud.operation.operation_pb2.Operation,
44
+ ]
45
+ """Creates a private cloud connection in the specified folder."""
46
+
47
+ Update: grpc.UnaryUnaryMultiCallable[
48
+ yandex.cloud.baremetal.v1alpha.private_cloud_connection_service_pb2.UpdatePrivateCloudConnectionRequest,
49
+ yandex.cloud.operation.operation_pb2.Operation,
50
+ ]
51
+ """Updates the routing_instance_id in a private cloud connection."""
52
+
53
+ Delete: grpc.UnaryUnaryMultiCallable[
54
+ yandex.cloud.baremetal.v1alpha.private_cloud_connection_service_pb2.DeletePrivateCloudConnectionRequest,
55
+ yandex.cloud.operation.operation_pb2.Operation,
56
+ ]
57
+ """Removes a private cloud connection and all allocated network resouces"""
58
+
59
+ class PrivateCloudConnectionServiceAsyncStub:
60
+ """A set of methods for managing Private cloud connection resources."""
61
+
62
+ Get: grpc.aio.UnaryUnaryMultiCallable[
63
+ yandex.cloud.baremetal.v1alpha.private_cloud_connection_service_pb2.GetPrivateCloudConnectionRequest,
64
+ yandex.cloud.baremetal.v1alpha.private_cloud_connection_pb2.PrivateCloudConnection,
65
+ ]
66
+ """Returns the specific Private cloud connection resource.
67
+
68
+ To get the list of available Private cloud connection resources, make a [List] request.
69
+ """
70
+
71
+ List: grpc.aio.UnaryUnaryMultiCallable[
72
+ yandex.cloud.baremetal.v1alpha.private_cloud_connection_service_pb2.ListPrivateCloudConnectionRequest,
73
+ yandex.cloud.baremetal.v1alpha.private_cloud_connection_service_pb2.ListPrivateCloudConnectionResponse,
74
+ ]
75
+ """Retrieves the list of Private cloud connection resources in the specified folder."""
76
+
77
+ Create: grpc.aio.UnaryUnaryMultiCallable[
78
+ yandex.cloud.baremetal.v1alpha.private_cloud_connection_service_pb2.CreatePrivateCloudConnectionRequest,
79
+ yandex.cloud.operation.operation_pb2.Operation,
80
+ ]
81
+ """Creates a private cloud connection in the specified folder."""
82
+
83
+ Update: grpc.aio.UnaryUnaryMultiCallable[
84
+ yandex.cloud.baremetal.v1alpha.private_cloud_connection_service_pb2.UpdatePrivateCloudConnectionRequest,
85
+ yandex.cloud.operation.operation_pb2.Operation,
86
+ ]
87
+ """Updates the routing_instance_id in a private cloud connection."""
88
+
89
+ Delete: grpc.aio.UnaryUnaryMultiCallable[
90
+ yandex.cloud.baremetal.v1alpha.private_cloud_connection_service_pb2.DeletePrivateCloudConnectionRequest,
91
+ yandex.cloud.operation.operation_pb2.Operation,
92
+ ]
93
+ """Removes a private cloud connection and all allocated network resouces"""
94
+
95
+ class PrivateCloudConnectionServiceServicer(metaclass=abc.ABCMeta):
96
+ """A set of methods for managing Private cloud connection resources."""
97
+
98
+ @abc.abstractmethod
99
+ def Get(
100
+ self,
101
+ request: yandex.cloud.baremetal.v1alpha.private_cloud_connection_service_pb2.GetPrivateCloudConnectionRequest,
102
+ context: _ServicerContext,
103
+ ) -> typing.Union[yandex.cloud.baremetal.v1alpha.private_cloud_connection_pb2.PrivateCloudConnection, collections.abc.Awaitable[yandex.cloud.baremetal.v1alpha.private_cloud_connection_pb2.PrivateCloudConnection]]:
104
+ """Returns the specific Private cloud connection resource.
105
+
106
+ To get the list of available Private cloud connection resources, make a [List] request.
107
+ """
108
+
109
+ @abc.abstractmethod
110
+ def List(
111
+ self,
112
+ request: yandex.cloud.baremetal.v1alpha.private_cloud_connection_service_pb2.ListPrivateCloudConnectionRequest,
113
+ context: _ServicerContext,
114
+ ) -> typing.Union[yandex.cloud.baremetal.v1alpha.private_cloud_connection_service_pb2.ListPrivateCloudConnectionResponse, collections.abc.Awaitable[yandex.cloud.baremetal.v1alpha.private_cloud_connection_service_pb2.ListPrivateCloudConnectionResponse]]:
115
+ """Retrieves the list of Private cloud connection resources in the specified folder."""
116
+
117
+ @abc.abstractmethod
118
+ def Create(
119
+ self,
120
+ request: yandex.cloud.baremetal.v1alpha.private_cloud_connection_service_pb2.CreatePrivateCloudConnectionRequest,
121
+ context: _ServicerContext,
122
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
123
+ """Creates a private cloud connection in the specified folder."""
124
+
125
+ @abc.abstractmethod
126
+ def Update(
127
+ self,
128
+ request: yandex.cloud.baremetal.v1alpha.private_cloud_connection_service_pb2.UpdatePrivateCloudConnectionRequest,
129
+ context: _ServicerContext,
130
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
131
+ """Updates the routing_instance_id in a private cloud connection."""
132
+
133
+ @abc.abstractmethod
134
+ def Delete(
135
+ self,
136
+ request: yandex.cloud.baremetal.v1alpha.private_cloud_connection_service_pb2.DeletePrivateCloudConnectionRequest,
137
+ context: _ServicerContext,
138
+ ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
139
+ """Removes a private cloud connection and all allocated network resouces"""
140
+
141
+ def add_PrivateCloudConnectionServiceServicer_to_server(servicer: PrivateCloudConnectionServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...