yandexcloud 0.332.0__py3-none-any.whl → 0.333.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.
Files changed (51) hide show
  1. yandex/cloud/ai/assistants/v1/threads/message_pb2.py +29 -19
  2. yandex/cloud/ai/assistants/v1/threads/message_pb2.pyi +104 -1
  3. yandex/cloud/ai/dataset/v1/dataset_service_pb2.py +66 -66
  4. yandex/cloud/ai/dataset/v1/dataset_service_pb2.pyi +5 -1
  5. yandex/cloud/ai/tuning/v1/tuning_service_pb2.py +50 -38
  6. yandex/cloud/ai/tuning/v1/tuning_service_pb2.pyi +199 -3
  7. yandex/cloud/backup/v1/backup_service_pb2.py +17 -3
  8. yandex/cloud/backup/v1/backup_service_pb2.pyi +52 -0
  9. yandex/cloud/backup/v1/backup_service_pb2_grpc.py +44 -0
  10. yandex/cloud/backup/v1/backup_service_pb2_grpc.pyi +20 -0
  11. yandex/cloud/cloudregistry/v1/registry_pb2.py +5 -5
  12. yandex/cloud/cloudregistry/v1/registry_pb2.pyi +4 -0
  13. yandex/cloud/k8s/v1/cluster_pb2.py +38 -38
  14. yandex/cloud/k8s/v1/cluster_pb2.pyi +6 -2
  15. yandex/cloud/k8s/v1/cluster_service_pb2.py +74 -63
  16. yandex/cloud/k8s/v1/cluster_service_pb2.pyi +39 -0
  17. yandex/cloud/k8s/v1/cluster_service_pb2_grpc.py +44 -0
  18. yandex/cloud/k8s/v1/cluster_service_pb2_grpc.pyi +20 -0
  19. yandex/cloud/k8s/v1/maintenance_pb2.py +14 -11
  20. yandex/cloud/k8s/v1/maintenance_pb2.pyi +36 -0
  21. yandex/cloud/mdb/postgresql/v1/backup_retention_policy_pb2.py +47 -0
  22. yandex/cloud/mdb/postgresql/v1/backup_retention_policy_pb2.pyi +82 -0
  23. yandex/cloud/mdb/postgresql/v1/backup_retention_policy_pb2_grpc.py +24 -0
  24. yandex/cloud/mdb/postgresql/v1/backup_retention_policy_pb2_grpc.pyi +17 -0
  25. yandex/cloud/mdb/postgresql/v1/backup_retention_policy_service_pb2.py +70 -0
  26. yandex/cloud/mdb/postgresql/v1/backup_retention_policy_service_pb2.pyi +159 -0
  27. yandex/cloud/mdb/postgresql/v1/backup_retention_policy_service_pb2_grpc.py +189 -0
  28. yandex/cloud/mdb/postgresql/v1/backup_retention_policy_service_pb2_grpc.pyi +90 -0
  29. yandex/cloud/mdb/postgresql/v1/cluster_service_pb2.py +110 -105
  30. yandex/cloud/mdb/postgresql/v1/cluster_service_pb2.pyi +41 -1
  31. yandex/cloud/mdb/redis/v1/cluster_service_pb2.py +128 -125
  32. yandex/cloud/mdb/redis/v1/cluster_service_pb2.pyi +22 -3
  33. yandex/cloud/mdb/redis/v1/config/redis_pb2.py +10 -8
  34. yandex/cloud/mdb/redis/v1/config/redis_pb2.pyi +8 -2
  35. yandex/cloud/quotamanager/__init__.py +0 -0
  36. yandex/cloud/quotamanager/v1/__init__.py +0 -0
  37. yandex/cloud/quotamanager/v1/quota_limit_service_pb2.py +79 -0
  38. yandex/cloud/quotamanager/v1/quota_limit_service_pb2.pyi +193 -0
  39. yandex/cloud/quotamanager/v1/quota_limit_service_pb2_grpc.py +189 -0
  40. yandex/cloud/quotamanager/v1/quota_limit_service_pb2_grpc.pyi +90 -0
  41. yandex/cloud/quotamanager/v1/resource_pb2.py +42 -0
  42. yandex/cloud/quotamanager/v1/resource_pb2.pyi +31 -0
  43. yandex/cloud/quotamanager/v1/resource_pb2_grpc.py +24 -0
  44. yandex/cloud/quotamanager/v1/resource_pb2_grpc.pyi +17 -0
  45. yandexcloud/__init__.py +1 -1
  46. {yandexcloud-0.332.0.dist-info → yandexcloud-0.333.0.dist-info}/METADATA +1 -1
  47. {yandexcloud-0.332.0.dist-info → yandexcloud-0.333.0.dist-info}/RECORD +51 -33
  48. {yandexcloud-0.332.0.dist-info → yandexcloud-0.333.0.dist-info}/AUTHORS +0 -0
  49. {yandexcloud-0.332.0.dist-info → yandexcloud-0.333.0.dist-info}/LICENSE +0 -0
  50. {yandexcloud-0.332.0.dist-info → yandexcloud-0.333.0.dist-info}/WHEEL +0 -0
  51. {yandexcloud-0.332.0.dist-info → yandexcloud-0.333.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,79 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: yandex/cloud/quotamanager/v1/quota_limit_service.proto
5
+ # Protobuf Python Version: 5.28.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 28,
16
+ 1,
17
+ '',
18
+ 'yandex/cloud/quotamanager/v1/quota_limit_service.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
26
+ from yandex.cloud.quotamanager.v1 import resource_pb2 as yandex_dot_cloud_dot_quotamanager_dot_v1_dot_resource__pb2
27
+ from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
28
+ from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
29
+
30
+
31
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n6yandex/cloud/quotamanager/v1/quota_limit_service.proto\x12\x1cyandex.cloud.quotamanager.v1\x1a\x1cgoogle/api/annotations.proto\x1a+yandex/cloud/quotamanager/v1/resource.proto\x1a\x1dyandex/cloud/validation.proto\x1a\x1egoogle/protobuf/wrappers.proto\"v\n\x14GetQuotaLimitRequest\x12>\n\x08resource\x18\x01 \x01(\x0b\x32&.yandex.cloud.quotamanager.v1.ResourceB\x04\xe8\xc7\x31\x01\x12\x1e\n\x08quota_id\x18\x02 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=64\"\xae\x01\n\x16ListQuotaLimitsRequest\x12>\n\x08resource\x18\x01 \x01(\x0b\x32&.yandex.cloud.quotamanager.v1.ResourceB\x04\xe8\xc7\x31\x01\x12\x15\n\x07service\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x1d\n\tpage_size\x18\x03 \x01(\x03\x42\n\xfa\xc7\x31\x06\x30-1000\x12\x1e\n\npage_token\x18\x04 \x01(\tB\n\x8a\xc8\x31\x06<=2000\"\xac\x01\n\x17ListQuotaLimitsResponse\x12\x38\n\x08resource\x18\x01 \x01(\x0b\x32&.yandex.cloud.quotamanager.v1.Resource\x12>\n\x0cquota_limits\x18\x02 \x03(\x0b\x32(.yandex.cloud.quotamanager.v1.QuotaLimit\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"q\n\x13ListServicesRequest\x12\x1b\n\rresource_type\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x1d\n\tpage_size\x18\x02 \x01(\x03\x42\n\xfa\xc7\x31\x06\x30-1000\x12\x1e\n\npage_token\x18\x03 \x01(\tB\n\x8a\xc8\x31\x06<=2000\"h\n\x14ListServicesResponse\x12\x37\n\x08services\x18\x01 \x03(\x0b\x32%.yandex.cloud.quotamanager.v1.Service\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"x\n\nQuotaLimit\x12\x10\n\x08quota_id\x18\x01 \x01(\t\x12+\n\x05limit\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12+\n\x05usage\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\"#\n\x07Service\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t2\xf0\x03\n\x11QuotaLimitService\x12\x95\x01\n\x03Get\x12\x32.yandex.cloud.quotamanager.v1.GetQuotaLimitRequest\x1a(.yandex.cloud.quotamanager.v1.QuotaLimit\"0\x82\xd3\xe4\x93\x02*\x12(/quota-manager/v1/quotaLimits/{quota_id}\x12\x9a\x01\n\x04List\x12\x34.yandex.cloud.quotamanager.v1.ListQuotaLimitsRequest\x1a\x35.yandex.cloud.quotamanager.v1.ListQuotaLimitsResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/quota-manager/v1/quotaLimits\x12\xa5\x01\n\x0cListServices\x12\x31.yandex.cloud.quotamanager.v1.ListServicesRequest\x1a\x32.yandex.cloud.quotamanager.v1.ListServicesResponse\".\x82\xd3\xe4\x93\x02(\x12&/quota-manager/v1/quotaLimits/servicesBq\n yandex.cloud.api.quotamanager.v1ZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/quotamanager/v1;quotamanagerb\x06proto3')
32
+
33
+ _globals = globals()
34
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
35
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.quotamanager.v1.quota_limit_service_pb2', _globals)
36
+ if not _descriptor._USE_C_DESCRIPTORS:
37
+ _globals['DESCRIPTOR']._loaded_options = None
38
+ _globals['DESCRIPTOR']._serialized_options = b'\n yandex.cloud.api.quotamanager.v1ZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/quotamanager/v1;quotamanager'
39
+ _globals['_GETQUOTALIMITREQUEST'].fields_by_name['resource']._loaded_options = None
40
+ _globals['_GETQUOTALIMITREQUEST'].fields_by_name['resource']._serialized_options = b'\350\3071\001'
41
+ _globals['_GETQUOTALIMITREQUEST'].fields_by_name['quota_id']._loaded_options = None
42
+ _globals['_GETQUOTALIMITREQUEST'].fields_by_name['quota_id']._serialized_options = b'\350\3071\001\212\3101\004<=64'
43
+ _globals['_LISTQUOTALIMITSREQUEST'].fields_by_name['resource']._loaded_options = None
44
+ _globals['_LISTQUOTALIMITSREQUEST'].fields_by_name['resource']._serialized_options = b'\350\3071\001'
45
+ _globals['_LISTQUOTALIMITSREQUEST'].fields_by_name['service']._loaded_options = None
46
+ _globals['_LISTQUOTALIMITSREQUEST'].fields_by_name['service']._serialized_options = b'\350\3071\001'
47
+ _globals['_LISTQUOTALIMITSREQUEST'].fields_by_name['page_size']._loaded_options = None
48
+ _globals['_LISTQUOTALIMITSREQUEST'].fields_by_name['page_size']._serialized_options = b'\372\3071\0060-1000'
49
+ _globals['_LISTQUOTALIMITSREQUEST'].fields_by_name['page_token']._loaded_options = None
50
+ _globals['_LISTQUOTALIMITSREQUEST'].fields_by_name['page_token']._serialized_options = b'\212\3101\006<=2000'
51
+ _globals['_LISTSERVICESREQUEST'].fields_by_name['resource_type']._loaded_options = None
52
+ _globals['_LISTSERVICESREQUEST'].fields_by_name['resource_type']._serialized_options = b'\350\3071\001'
53
+ _globals['_LISTSERVICESREQUEST'].fields_by_name['page_size']._loaded_options = None
54
+ _globals['_LISTSERVICESREQUEST'].fields_by_name['page_size']._serialized_options = b'\372\3071\0060-1000'
55
+ _globals['_LISTSERVICESREQUEST'].fields_by_name['page_token']._loaded_options = None
56
+ _globals['_LISTSERVICESREQUEST'].fields_by_name['page_token']._serialized_options = b'\212\3101\006<=2000'
57
+ _globals['_QUOTALIMITSERVICE'].methods_by_name['Get']._loaded_options = None
58
+ _globals['_QUOTALIMITSERVICE'].methods_by_name['Get']._serialized_options = b'\202\323\344\223\002*\022(/quota-manager/v1/quotaLimits/{quota_id}'
59
+ _globals['_QUOTALIMITSERVICE'].methods_by_name['List']._loaded_options = None
60
+ _globals['_QUOTALIMITSERVICE'].methods_by_name['List']._serialized_options = b'\202\323\344\223\002\037\022\035/quota-manager/v1/quotaLimits'
61
+ _globals['_QUOTALIMITSERVICE'].methods_by_name['ListServices']._loaded_options = None
62
+ _globals['_QUOTALIMITSERVICE'].methods_by_name['ListServices']._serialized_options = b'\202\323\344\223\002(\022&/quota-manager/v1/quotaLimits/services'
63
+ _globals['_GETQUOTALIMITREQUEST']._serialized_start=226
64
+ _globals['_GETQUOTALIMITREQUEST']._serialized_end=344
65
+ _globals['_LISTQUOTALIMITSREQUEST']._serialized_start=347
66
+ _globals['_LISTQUOTALIMITSREQUEST']._serialized_end=521
67
+ _globals['_LISTQUOTALIMITSRESPONSE']._serialized_start=524
68
+ _globals['_LISTQUOTALIMITSRESPONSE']._serialized_end=696
69
+ _globals['_LISTSERVICESREQUEST']._serialized_start=698
70
+ _globals['_LISTSERVICESREQUEST']._serialized_end=811
71
+ _globals['_LISTSERVICESRESPONSE']._serialized_start=813
72
+ _globals['_LISTSERVICESRESPONSE']._serialized_end=917
73
+ _globals['_QUOTALIMIT']._serialized_start=919
74
+ _globals['_QUOTALIMIT']._serialized_end=1039
75
+ _globals['_SERVICE']._serialized_start=1041
76
+ _globals['_SERVICE']._serialized_end=1076
77
+ _globals['_QUOTALIMITSERVICE']._serialized_start=1079
78
+ _globals['_QUOTALIMITSERVICE']._serialized_end=1575
79
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,193 @@
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 google.protobuf.wrappers_pb2
12
+ import typing
13
+ import yandex.cloud.quotamanager.v1.resource_pb2
14
+
15
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
16
+
17
+ @typing.final
18
+ class GetQuotaLimitRequest(google.protobuf.message.Message):
19
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
20
+
21
+ RESOURCE_FIELD_NUMBER: builtins.int
22
+ QUOTA_ID_FIELD_NUMBER: builtins.int
23
+ quota_id: builtins.str
24
+ """The id of the quota to retrieve."""
25
+ @property
26
+ def resource(self) -> yandex.cloud.quotamanager.v1.resource_pb2.Resource:
27
+ """The resource for which the quota limit is being requested."""
28
+
29
+ def __init__(
30
+ self,
31
+ *,
32
+ resource: yandex.cloud.quotamanager.v1.resource_pb2.Resource | None = ...,
33
+ quota_id: builtins.str = ...,
34
+ ) -> None: ...
35
+ def HasField(self, field_name: typing.Literal["resource", b"resource"]) -> builtins.bool: ...
36
+ def ClearField(self, field_name: typing.Literal["quota_id", b"quota_id", "resource", b"resource"]) -> None: ...
37
+
38
+ global___GetQuotaLimitRequest = GetQuotaLimitRequest
39
+
40
+ @typing.final
41
+ class ListQuotaLimitsRequest(google.protobuf.message.Message):
42
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
43
+
44
+ RESOURCE_FIELD_NUMBER: builtins.int
45
+ SERVICE_FIELD_NUMBER: builtins.int
46
+ PAGE_SIZE_FIELD_NUMBER: builtins.int
47
+ PAGE_TOKEN_FIELD_NUMBER: builtins.int
48
+ service: builtins.str
49
+ """The service for which quota limits are being requested."""
50
+ page_size: builtins.int
51
+ """The maximum number of quota limits to return per response."""
52
+ page_token: builtins.str
53
+ """Token to retrieve the next page of results. Omitted on the first request."""
54
+ @property
55
+ def resource(self) -> yandex.cloud.quotamanager.v1.resource_pb2.Resource:
56
+ """The resource for which quota limits are being listed."""
57
+
58
+ def __init__(
59
+ self,
60
+ *,
61
+ resource: yandex.cloud.quotamanager.v1.resource_pb2.Resource | None = ...,
62
+ service: builtins.str = ...,
63
+ page_size: builtins.int = ...,
64
+ page_token: builtins.str = ...,
65
+ ) -> None: ...
66
+ def HasField(self, field_name: typing.Literal["resource", b"resource"]) -> builtins.bool: ...
67
+ def ClearField(self, field_name: typing.Literal["page_size", b"page_size", "page_token", b"page_token", "resource", b"resource", "service", b"service"]) -> None: ...
68
+
69
+ global___ListQuotaLimitsRequest = ListQuotaLimitsRequest
70
+
71
+ @typing.final
72
+ class ListQuotaLimitsResponse(google.protobuf.message.Message):
73
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
74
+
75
+ RESOURCE_FIELD_NUMBER: builtins.int
76
+ QUOTA_LIMITS_FIELD_NUMBER: builtins.int
77
+ NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
78
+ next_page_token: builtins.str
79
+ """Token to retrieve the next page of results."""
80
+ @property
81
+ def resource(self) -> yandex.cloud.quotamanager.v1.resource_pb2.Resource:
82
+ """The associated resource for these quota limits."""
83
+
84
+ @property
85
+ def quota_limits(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___QuotaLimit]:
86
+ """List of quota limits for the specified resource and service."""
87
+
88
+ def __init__(
89
+ self,
90
+ *,
91
+ resource: yandex.cloud.quotamanager.v1.resource_pb2.Resource | None = ...,
92
+ quota_limits: collections.abc.Iterable[global___QuotaLimit] | None = ...,
93
+ next_page_token: builtins.str = ...,
94
+ ) -> None: ...
95
+ def HasField(self, field_name: typing.Literal["resource", b"resource"]) -> builtins.bool: ...
96
+ def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "quota_limits", b"quota_limits", "resource", b"resource"]) -> None: ...
97
+
98
+ global___ListQuotaLimitsResponse = ListQuotaLimitsResponse
99
+
100
+ @typing.final
101
+ class ListServicesRequest(google.protobuf.message.Message):
102
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
103
+
104
+ RESOURCE_TYPE_FIELD_NUMBER: builtins.int
105
+ PAGE_SIZE_FIELD_NUMBER: builtins.int
106
+ PAGE_TOKEN_FIELD_NUMBER: builtins.int
107
+ resource_type: builtins.str
108
+ """The type of resources for which services are being requested."""
109
+ page_size: builtins.int
110
+ """The maximum number of services to return per response."""
111
+ page_token: builtins.str
112
+ """Token to retrieve the next page of results. Omitted on the first request."""
113
+ def __init__(
114
+ self,
115
+ *,
116
+ resource_type: builtins.str = ...,
117
+ page_size: builtins.int = ...,
118
+ page_token: builtins.str = ...,
119
+ ) -> None: ...
120
+ def ClearField(self, field_name: typing.Literal["page_size", b"page_size", "page_token", b"page_token", "resource_type", b"resource_type"]) -> None: ...
121
+
122
+ global___ListServicesRequest = ListServicesRequest
123
+
124
+ @typing.final
125
+ class ListServicesResponse(google.protobuf.message.Message):
126
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
127
+
128
+ SERVICES_FIELD_NUMBER: builtins.int
129
+ NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
130
+ next_page_token: builtins.str
131
+ """Token to retrieve the next page of results."""
132
+ @property
133
+ def services(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Service]:
134
+ """List of services available for quota management."""
135
+
136
+ def __init__(
137
+ self,
138
+ *,
139
+ services: collections.abc.Iterable[global___Service] | None = ...,
140
+ next_page_token: builtins.str = ...,
141
+ ) -> None: ...
142
+ def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "services", b"services"]) -> None: ...
143
+
144
+ global___ListServicesResponse = ListServicesResponse
145
+
146
+ @typing.final
147
+ class QuotaLimit(google.protobuf.message.Message):
148
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
149
+
150
+ QUOTA_ID_FIELD_NUMBER: builtins.int
151
+ LIMIT_FIELD_NUMBER: builtins.int
152
+ USAGE_FIELD_NUMBER: builtins.int
153
+ quota_id: builtins.str
154
+ """The unique id of the quota."""
155
+ @property
156
+ def limit(self) -> google.protobuf.wrappers_pb2.DoubleValue:
157
+ """The limit value set for this quota."""
158
+
159
+ @property
160
+ def usage(self) -> google.protobuf.wrappers_pb2.DoubleValue:
161
+ """The current usage level of this quota."""
162
+
163
+ def __init__(
164
+ self,
165
+ *,
166
+ quota_id: builtins.str = ...,
167
+ limit: google.protobuf.wrappers_pb2.DoubleValue | None = ...,
168
+ usage: google.protobuf.wrappers_pb2.DoubleValue | None = ...,
169
+ ) -> None: ...
170
+ def HasField(self, field_name: typing.Literal["limit", b"limit", "usage", b"usage"]) -> builtins.bool: ...
171
+ def ClearField(self, field_name: typing.Literal["limit", b"limit", "quota_id", b"quota_id", "usage", b"usage"]) -> None: ...
172
+
173
+ global___QuotaLimit = QuotaLimit
174
+
175
+ @typing.final
176
+ class Service(google.protobuf.message.Message):
177
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
178
+
179
+ ID_FIELD_NUMBER: builtins.int
180
+ NAME_FIELD_NUMBER: builtins.int
181
+ id: builtins.str
182
+ """The unique id of the service."""
183
+ name: builtins.str
184
+ """The name of the service."""
185
+ def __init__(
186
+ self,
187
+ *,
188
+ id: builtins.str = ...,
189
+ name: builtins.str = ...,
190
+ ) -> None: ...
191
+ def ClearField(self, field_name: typing.Literal["id", b"id", "name", b"name"]) -> None: ...
192
+
193
+ global___Service = Service
@@ -0,0 +1,189 @@
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.quotamanager.v1 import quota_limit_service_pb2 as yandex_dot_cloud_dot_quotamanager_dot_v1_dot_quota__limit__service__pb2
7
+
8
+ GRPC_GENERATED_VERSION = '1.68.1'
9
+ GRPC_VERSION = grpc.__version__
10
+ _version_not_supported = False
11
+
12
+ try:
13
+ from grpc._utilities import first_version_is_lower
14
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
15
+ except ImportError:
16
+ _version_not_supported = True
17
+
18
+ if _version_not_supported:
19
+ raise RuntimeError(
20
+ f'The grpc package installed is at version {GRPC_VERSION},'
21
+ + f' but the generated code in yandex/cloud/quotamanager/v1/quota_limit_service_pb2_grpc.py depends on'
22
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
23
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
24
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
25
+ )
26
+
27
+
28
+ class QuotaLimitServiceStub(object):
29
+ """A set of methods for managing quota limits.
30
+ """
31
+
32
+ def __init__(self, channel):
33
+ """Constructor.
34
+
35
+ Args:
36
+ channel: A grpc.Channel.
37
+ """
38
+ self.Get = channel.unary_unary(
39
+ '/yandex.cloud.quotamanager.v1.QuotaLimitService/Get',
40
+ request_serializer=yandex_dot_cloud_dot_quotamanager_dot_v1_dot_quota__limit__service__pb2.GetQuotaLimitRequest.SerializeToString,
41
+ response_deserializer=yandex_dot_cloud_dot_quotamanager_dot_v1_dot_quota__limit__service__pb2.QuotaLimit.FromString,
42
+ _registered_method=True)
43
+ self.List = channel.unary_unary(
44
+ '/yandex.cloud.quotamanager.v1.QuotaLimitService/List',
45
+ request_serializer=yandex_dot_cloud_dot_quotamanager_dot_v1_dot_quota__limit__service__pb2.ListQuotaLimitsRequest.SerializeToString,
46
+ response_deserializer=yandex_dot_cloud_dot_quotamanager_dot_v1_dot_quota__limit__service__pb2.ListQuotaLimitsResponse.FromString,
47
+ _registered_method=True)
48
+ self.ListServices = channel.unary_unary(
49
+ '/yandex.cloud.quotamanager.v1.QuotaLimitService/ListServices',
50
+ request_serializer=yandex_dot_cloud_dot_quotamanager_dot_v1_dot_quota__limit__service__pb2.ListServicesRequest.SerializeToString,
51
+ response_deserializer=yandex_dot_cloud_dot_quotamanager_dot_v1_dot_quota__limit__service__pb2.ListServicesResponse.FromString,
52
+ _registered_method=True)
53
+
54
+
55
+ class QuotaLimitServiceServicer(object):
56
+ """A set of methods for managing quota limits.
57
+ """
58
+
59
+ def Get(self, request, context):
60
+ """Returns the specified quota limit.
61
+ """
62
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
63
+ context.set_details('Method not implemented!')
64
+ raise NotImplementedError('Method not implemented!')
65
+
66
+ def List(self, request, context):
67
+ """Retrieves the list of quota limits for a given service.
68
+ """
69
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
70
+ context.set_details('Method not implemented!')
71
+ raise NotImplementedError('Method not implemented!')
72
+
73
+ def ListServices(self, request, context):
74
+ """Retrieves the list of services available for quota management.
75
+ """
76
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
77
+ context.set_details('Method not implemented!')
78
+ raise NotImplementedError('Method not implemented!')
79
+
80
+
81
+ def add_QuotaLimitServiceServicer_to_server(servicer, server):
82
+ rpc_method_handlers = {
83
+ 'Get': grpc.unary_unary_rpc_method_handler(
84
+ servicer.Get,
85
+ request_deserializer=yandex_dot_cloud_dot_quotamanager_dot_v1_dot_quota__limit__service__pb2.GetQuotaLimitRequest.FromString,
86
+ response_serializer=yandex_dot_cloud_dot_quotamanager_dot_v1_dot_quota__limit__service__pb2.QuotaLimit.SerializeToString,
87
+ ),
88
+ 'List': grpc.unary_unary_rpc_method_handler(
89
+ servicer.List,
90
+ request_deserializer=yandex_dot_cloud_dot_quotamanager_dot_v1_dot_quota__limit__service__pb2.ListQuotaLimitsRequest.FromString,
91
+ response_serializer=yandex_dot_cloud_dot_quotamanager_dot_v1_dot_quota__limit__service__pb2.ListQuotaLimitsResponse.SerializeToString,
92
+ ),
93
+ 'ListServices': grpc.unary_unary_rpc_method_handler(
94
+ servicer.ListServices,
95
+ request_deserializer=yandex_dot_cloud_dot_quotamanager_dot_v1_dot_quota__limit__service__pb2.ListServicesRequest.FromString,
96
+ response_serializer=yandex_dot_cloud_dot_quotamanager_dot_v1_dot_quota__limit__service__pb2.ListServicesResponse.SerializeToString,
97
+ ),
98
+ }
99
+ generic_handler = grpc.method_handlers_generic_handler(
100
+ 'yandex.cloud.quotamanager.v1.QuotaLimitService', rpc_method_handlers)
101
+ server.add_generic_rpc_handlers((generic_handler,))
102
+ server.add_registered_method_handlers('yandex.cloud.quotamanager.v1.QuotaLimitService', rpc_method_handlers)
103
+
104
+
105
+ # This class is part of an EXPERIMENTAL API.
106
+ class QuotaLimitService(object):
107
+ """A set of methods for managing quota limits.
108
+ """
109
+
110
+ @staticmethod
111
+ def Get(request,
112
+ target,
113
+ options=(),
114
+ channel_credentials=None,
115
+ call_credentials=None,
116
+ insecure=False,
117
+ compression=None,
118
+ wait_for_ready=None,
119
+ timeout=None,
120
+ metadata=None):
121
+ return grpc.experimental.unary_unary(
122
+ request,
123
+ target,
124
+ '/yandex.cloud.quotamanager.v1.QuotaLimitService/Get',
125
+ yandex_dot_cloud_dot_quotamanager_dot_v1_dot_quota__limit__service__pb2.GetQuotaLimitRequest.SerializeToString,
126
+ yandex_dot_cloud_dot_quotamanager_dot_v1_dot_quota__limit__service__pb2.QuotaLimit.FromString,
127
+ options,
128
+ channel_credentials,
129
+ insecure,
130
+ call_credentials,
131
+ compression,
132
+ wait_for_ready,
133
+ timeout,
134
+ metadata,
135
+ _registered_method=True)
136
+
137
+ @staticmethod
138
+ def List(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(
149
+ request,
150
+ target,
151
+ '/yandex.cloud.quotamanager.v1.QuotaLimitService/List',
152
+ yandex_dot_cloud_dot_quotamanager_dot_v1_dot_quota__limit__service__pb2.ListQuotaLimitsRequest.SerializeToString,
153
+ yandex_dot_cloud_dot_quotamanager_dot_v1_dot_quota__limit__service__pb2.ListQuotaLimitsResponse.FromString,
154
+ options,
155
+ channel_credentials,
156
+ insecure,
157
+ call_credentials,
158
+ compression,
159
+ wait_for_ready,
160
+ timeout,
161
+ metadata,
162
+ _registered_method=True)
163
+
164
+ @staticmethod
165
+ def ListServices(request,
166
+ target,
167
+ options=(),
168
+ channel_credentials=None,
169
+ call_credentials=None,
170
+ insecure=False,
171
+ compression=None,
172
+ wait_for_ready=None,
173
+ timeout=None,
174
+ metadata=None):
175
+ return grpc.experimental.unary_unary(
176
+ request,
177
+ target,
178
+ '/yandex.cloud.quotamanager.v1.QuotaLimitService/ListServices',
179
+ yandex_dot_cloud_dot_quotamanager_dot_v1_dot_quota__limit__service__pb2.ListServicesRequest.SerializeToString,
180
+ yandex_dot_cloud_dot_quotamanager_dot_v1_dot_quota__limit__service__pb2.ListServicesResponse.FromString,
181
+ options,
182
+ channel_credentials,
183
+ insecure,
184
+ call_credentials,
185
+ compression,
186
+ wait_for_ready,
187
+ timeout,
188
+ metadata,
189
+ _registered_method=True)
@@ -0,0 +1,90 @@
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.quotamanager.v1.quota_limit_service_pb2
12
+
13
+ _T = typing.TypeVar("_T")
14
+
15
+ class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
16
+
17
+ class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
18
+ ...
19
+
20
+ class QuotaLimitServiceStub:
21
+ """A set of methods for managing quota limits."""
22
+
23
+ def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
24
+ Get: grpc.UnaryUnaryMultiCallable[
25
+ yandex.cloud.quotamanager.v1.quota_limit_service_pb2.GetQuotaLimitRequest,
26
+ yandex.cloud.quotamanager.v1.quota_limit_service_pb2.QuotaLimit,
27
+ ]
28
+ """Returns the specified quota limit."""
29
+
30
+ List: grpc.UnaryUnaryMultiCallable[
31
+ yandex.cloud.quotamanager.v1.quota_limit_service_pb2.ListQuotaLimitsRequest,
32
+ yandex.cloud.quotamanager.v1.quota_limit_service_pb2.ListQuotaLimitsResponse,
33
+ ]
34
+ """Retrieves the list of quota limits for a given service."""
35
+
36
+ ListServices: grpc.UnaryUnaryMultiCallable[
37
+ yandex.cloud.quotamanager.v1.quota_limit_service_pb2.ListServicesRequest,
38
+ yandex.cloud.quotamanager.v1.quota_limit_service_pb2.ListServicesResponse,
39
+ ]
40
+ """Retrieves the list of services available for quota management."""
41
+
42
+ class QuotaLimitServiceAsyncStub:
43
+ """A set of methods for managing quota limits."""
44
+
45
+ Get: grpc.aio.UnaryUnaryMultiCallable[
46
+ yandex.cloud.quotamanager.v1.quota_limit_service_pb2.GetQuotaLimitRequest,
47
+ yandex.cloud.quotamanager.v1.quota_limit_service_pb2.QuotaLimit,
48
+ ]
49
+ """Returns the specified quota limit."""
50
+
51
+ List: grpc.aio.UnaryUnaryMultiCallable[
52
+ yandex.cloud.quotamanager.v1.quota_limit_service_pb2.ListQuotaLimitsRequest,
53
+ yandex.cloud.quotamanager.v1.quota_limit_service_pb2.ListQuotaLimitsResponse,
54
+ ]
55
+ """Retrieves the list of quota limits for a given service."""
56
+
57
+ ListServices: grpc.aio.UnaryUnaryMultiCallable[
58
+ yandex.cloud.quotamanager.v1.quota_limit_service_pb2.ListServicesRequest,
59
+ yandex.cloud.quotamanager.v1.quota_limit_service_pb2.ListServicesResponse,
60
+ ]
61
+ """Retrieves the list of services available for quota management."""
62
+
63
+ class QuotaLimitServiceServicer(metaclass=abc.ABCMeta):
64
+ """A set of methods for managing quota limits."""
65
+
66
+ @abc.abstractmethod
67
+ def Get(
68
+ self,
69
+ request: yandex.cloud.quotamanager.v1.quota_limit_service_pb2.GetQuotaLimitRequest,
70
+ context: _ServicerContext,
71
+ ) -> typing.Union[yandex.cloud.quotamanager.v1.quota_limit_service_pb2.QuotaLimit, collections.abc.Awaitable[yandex.cloud.quotamanager.v1.quota_limit_service_pb2.QuotaLimit]]:
72
+ """Returns the specified quota limit."""
73
+
74
+ @abc.abstractmethod
75
+ def List(
76
+ self,
77
+ request: yandex.cloud.quotamanager.v1.quota_limit_service_pb2.ListQuotaLimitsRequest,
78
+ context: _ServicerContext,
79
+ ) -> typing.Union[yandex.cloud.quotamanager.v1.quota_limit_service_pb2.ListQuotaLimitsResponse, collections.abc.Awaitable[yandex.cloud.quotamanager.v1.quota_limit_service_pb2.ListQuotaLimitsResponse]]:
80
+ """Retrieves the list of quota limits for a given service."""
81
+
82
+ @abc.abstractmethod
83
+ def ListServices(
84
+ self,
85
+ request: yandex.cloud.quotamanager.v1.quota_limit_service_pb2.ListServicesRequest,
86
+ context: _ServicerContext,
87
+ ) -> typing.Union[yandex.cloud.quotamanager.v1.quota_limit_service_pb2.ListServicesResponse, collections.abc.Awaitable[yandex.cloud.quotamanager.v1.quota_limit_service_pb2.ListServicesResponse]]:
88
+ """Retrieves the list of services available for quota management."""
89
+
90
+ def add_QuotaLimitServiceServicer_to_server(servicer: QuotaLimitServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
@@ -0,0 +1,42 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: yandex/cloud/quotamanager/v1/resource.proto
5
+ # Protobuf Python Version: 5.28.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 28,
16
+ 1,
17
+ '',
18
+ 'yandex/cloud/quotamanager/v1/resource.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
26
+
27
+
28
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+yandex/cloud/quotamanager/v1/resource.proto\x12\x1cyandex.cloud.quotamanager.v1\x1a\x1dyandex/cloud/validation.proto\"A\n\x08Resource\x12\x18\n\x02id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x1b\n\x04type\x18\x02 \x01(\tB\r\xe8\xc7\x31\x01\x8a\xc8\x31\x05<=100Bq\n yandex.cloud.api.quotamanager.v1ZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/quotamanager/v1;quotamanagerb\x06proto3')
29
+
30
+ _globals = globals()
31
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.quotamanager.v1.resource_pb2', _globals)
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ _globals['DESCRIPTOR']._loaded_options = None
35
+ _globals['DESCRIPTOR']._serialized_options = b'\n yandex.cloud.api.quotamanager.v1ZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/quotamanager/v1;quotamanager'
36
+ _globals['_RESOURCE'].fields_by_name['id']._loaded_options = None
37
+ _globals['_RESOURCE'].fields_by_name['id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
38
+ _globals['_RESOURCE'].fields_by_name['type']._loaded_options = None
39
+ _globals['_RESOURCE'].fields_by_name['type']._serialized_options = b'\350\3071\001\212\3101\005<=100'
40
+ _globals['_RESOURCE']._serialized_start=108
41
+ _globals['_RESOURCE']._serialized_end=173
42
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,31 @@
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 typing
10
+
11
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
12
+
13
+ @typing.final
14
+ class Resource(google.protobuf.message.Message):
15
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
16
+
17
+ ID_FIELD_NUMBER: builtins.int
18
+ TYPE_FIELD_NUMBER: builtins.int
19
+ id: builtins.str
20
+ """The id if the resource."""
21
+ type: builtins.str
22
+ """The type of the resource, e.g. resource-manager.cloud, billing.account."""
23
+ def __init__(
24
+ self,
25
+ *,
26
+ id: builtins.str = ...,
27
+ type: builtins.str = ...,
28
+ ) -> None: ...
29
+ def ClearField(self, field_name: typing.Literal["id", b"id", "type", b"type"]) -> None: ...
30
+
31
+ global___Resource = Resource
@@ -0,0 +1,24 @@
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
+
7
+ GRPC_GENERATED_VERSION = '1.68.1'
8
+ GRPC_VERSION = grpc.__version__
9
+ _version_not_supported = False
10
+
11
+ try:
12
+ from grpc._utilities import first_version_is_lower
13
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14
+ except ImportError:
15
+ _version_not_supported = True
16
+
17
+ if _version_not_supported:
18
+ raise RuntimeError(
19
+ f'The grpc package installed is at version {GRPC_VERSION},'
20
+ + f' but the generated code in yandex/cloud/quotamanager/v1/resource_pb2_grpc.py depends on'
21
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
22
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24
+ )