yandexcloud 0.354.0__py3-none-any.whl → 0.356.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 (102) hide show
  1. yandex/cloud/ai/assistants/v1/common_pb2.py +58 -30
  2. yandex/cloud/ai/assistants/v1/common_pb2.pyi +178 -3
  3. yandex/cloud/airflow/v1/cluster_pb2.py +12 -8
  4. yandex/cloud/airflow/v1/cluster_pb2.pyi +4 -0
  5. yandex/cloud/apploadbalancer/v1/virtual_host_pb2.py +32 -32
  6. yandex/cloud/apploadbalancer/v1/virtual_host_pb2.pyi +5 -1
  7. yandex/cloud/apploadbalancer/v1/virtual_host_service_pb2.py +6 -6
  8. yandex/cloud/apploadbalancer/v1/virtual_host_service_pb2.pyi +5 -1
  9. yandex/cloud/backup/v1/backup_service_pb2.py +46 -40
  10. yandex/cloud/backup/v1/backup_service_pb2.pyi +26 -4
  11. yandex/cloud/backup/v1/resource_pb2.py +2 -2
  12. yandex/cloud/backup/v1/resource_pb2.pyi +8 -0
  13. yandex/cloud/baremetal/v1alpha/configuration_service_pb2.py +18 -9
  14. yandex/cloud/baremetal/v1alpha/configuration_service_pb2.pyi +16 -2
  15. yandex/cloud/baremetal/v1alpha/hardware_pool_service_pb2.py +14 -9
  16. yandex/cloud/baremetal/v1alpha/image_service_pb2.py +39 -32
  17. yandex/cloud/baremetal/v1alpha/private_cloud_connection_service_pb2.py +29 -24
  18. yandex/cloud/baremetal/v1alpha/private_subnet_service_pb2.py +43 -36
  19. yandex/cloud/baremetal/v1alpha/public_subnet_service_pb2.py +39 -32
  20. yandex/cloud/baremetal/v1alpha/public_subnet_service_pb2.pyi +3 -2
  21. yandex/cloud/baremetal/v1alpha/server_service_pb2.py +83 -76
  22. yandex/cloud/baremetal/v1alpha/storage_service_pb2.py +16 -11
  23. yandex/cloud/baremetal/v1alpha/vrf_service_pb2.py +39 -32
  24. yandex/cloud/baremetal/v1alpha/zone_service_pb2.py +14 -9
  25. yandex/cloud/compute/v1/maintenance_service_pb2.py +47 -0
  26. yandex/cloud/compute/v1/maintenance_service_pb2.pyi +8 -0
  27. yandex/cloud/compute/v1/maintenance_service_pb2_grpc.py +190 -0
  28. yandex/cloud/compute/v1/maintenance_service_pb2_grpc.pyi +91 -0
  29. yandex/cloud/compute/v1/reserved_instance_pool_pb2.py +8 -4
  30. yandex/cloud/compute/v1/reserved_instance_pool_pb2.pyi +69 -2
  31. yandex/cloud/compute/v1/reserved_instance_pool_service_pb2.py +44 -20
  32. yandex/cloud/compute/v1/reserved_instance_pool_service_pb2.pyi +138 -2
  33. yandex/cloud/compute/v1/reserved_instance_pool_service_pb2_grpc.py +88 -0
  34. yandex/cloud/compute/v1/reserved_instance_pool_service_pb2_grpc.pyi +40 -0
  35. yandex/cloud/datatransfer/v1/transfer_pb2.py +50 -48
  36. yandex/cloud/datatransfer/v1/transfer_pb2.pyi +23 -4
  37. yandex/cloud/datatransfer/v1/transfer_service_pb2.py +32 -32
  38. yandex/cloud/datatransfer/v1/transfer_service_pb2.pyi +12 -4
  39. yandex/cloud/iam/v1/oauth_client_pb2.py +39 -0
  40. yandex/cloud/iam/v1/oauth_client_pb2.pyi +85 -0
  41. yandex/cloud/iam/v1/oauth_client_pb2_grpc.py +24 -0
  42. yandex/cloud/iam/v1/oauth_client_pb2_grpc.pyi +17 -0
  43. yandex/cloud/iam/v1/oauth_client_secret_pb2.py +38 -0
  44. yandex/cloud/iam/v1/oauth_client_secret_pb2.pyi +49 -0
  45. yandex/cloud/iam/v1/oauth_client_secret_pb2_grpc.py +24 -0
  46. yandex/cloud/iam/v1/oauth_client_secret_pb2_grpc.pyi +17 -0
  47. yandex/cloud/iam/v1/oauth_client_secret_service_pb2.py +80 -0
  48. yandex/cloud/iam/v1/oauth_client_secret_service_pb2.pyi +188 -0
  49. yandex/cloud/iam/v1/oauth_client_secret_service_pb2_grpc.py +237 -0
  50. yandex/cloud/iam/v1/oauth_client_secret_service_pb2_grpc.pyi +121 -0
  51. yandex/cloud/iam/v1/oauth_client_service_pb2.py +99 -0
  52. yandex/cloud/iam/v1/oauth_client_service_pb2.pyi +257 -0
  53. yandex/cloud/iam/v1/oauth_client_service_pb2_grpc.py +281 -0
  54. yandex/cloud/iam/v1/oauth_client_service_pb2_grpc.pyi +141 -0
  55. yandex/cloud/iot/broker/v1/broker_service_pb2.py +50 -50
  56. yandex/cloud/iot/devices/v1/device_service_pb2.py +61 -61
  57. yandex/cloud/iot/devices/v1/registry_service_pb2.py +82 -82
  58. yandex/cloud/maintenance/__init__.py +0 -0
  59. yandex/cloud/maintenance/v2/__init__.py +0 -0
  60. yandex/cloud/maintenance/v2/common_pb2.py +73 -0
  61. yandex/cloud/maintenance/v2/common_pb2.pyi +324 -0
  62. yandex/cloud/maintenance/v2/common_pb2_grpc.py +24 -0
  63. yandex/cloud/maintenance/v2/common_pb2_grpc.pyi +17 -0
  64. yandex/cloud/mdb/clickhouse/v1/config/clickhouse_pb2.py +196 -152
  65. yandex/cloud/mdb/clickhouse/v1/config/clickhouse_pb2.pyi +1779 -1066
  66. yandex/cloud/mdb/clickhouse/v1/user_pb2.py +98 -86
  67. yandex/cloud/mdb/clickhouse/v1/user_pb2.pyi +1248 -792
  68. yandex/cloud/mdb/opensearch/v1/backup_pb2.py +14 -14
  69. yandex/cloud/mdb/opensearch/v1/backup_pb2.pyi +13 -1
  70. yandex/cloud/mdb/spqr/v1/cluster_service_pb2.py +76 -76
  71. yandex/cloud/mdb/spqr/v1/cluster_service_pb2.pyi +4 -0
  72. yandex/cloud/metastore/v1/cluster_pb2.py +18 -16
  73. yandex/cloud/metastore/v1/cluster_pb2.pyi +31 -1
  74. yandex/cloud/searchapi/v2/gen_search_service_pb2.py +22 -22
  75. yandex/cloud/searchapi/v2/gen_search_service_pb2.pyi +12 -2
  76. yandex/cloud/serverless/containers/v1/container_pb2.py +46 -44
  77. yandex/cloud/serverless/containers/v1/container_pb2.pyi +25 -3
  78. yandex/cloud/smartwebsecurity/v1/waf/waf_profile_pb2.py +50 -18
  79. yandex/cloud/smartwebsecurity/v1/waf/waf_profile_pb2.pyi +241 -2
  80. yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service_pb2.py +18 -18
  81. yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service_pb2.pyi +22 -2
  82. yandex/cloud/storage/v1/presign_service_pb2.py +47 -0
  83. yandex/cloud/storage/v1/presign_service_pb2.pyi +117 -0
  84. yandex/cloud/storage/v1/presign_service_pb2_grpc.py +101 -0
  85. yandex/cloud/storage/v1/presign_service_pb2_grpc.pyi +50 -0
  86. yandex/cloud/trino/v1/access_control_pb2.py +212 -0
  87. yandex/cloud/trino/v1/access_control_pb2.pyi +926 -0
  88. yandex/cloud/trino/v1/access_control_pb2_grpc.py +24 -0
  89. yandex/cloud/trino/v1/access_control_pb2_grpc.pyi +17 -0
  90. yandex/cloud/trino/v1/cluster_pb2.py +44 -43
  91. yandex/cloud/trino/v1/cluster_pb2.pyi +9 -2
  92. yandex/cloud/trino/v1/cluster_service_pb2.py +50 -49
  93. yandex/cloud/trino/v1/cluster_service_pb2.pyi +29 -4
  94. yandex/cloud/ytsaurus/v1/cluster_pb2.py +40 -37
  95. yandex/cloud/ytsaurus/v1/cluster_pb2.pyi +32 -18
  96. yandexcloud/__init__.py +1 -1
  97. {yandexcloud-0.354.0.dist-info → yandexcloud-0.356.0.dist-info}/METADATA +1 -1
  98. {yandexcloud-0.354.0.dist-info → yandexcloud-0.356.0.dist-info}/RECORD +102 -68
  99. {yandexcloud-0.354.0.dist-info → yandexcloud-0.356.0.dist-info}/AUTHORS +0 -0
  100. {yandexcloud-0.354.0.dist-info → yandexcloud-0.356.0.dist-info}/LICENSE +0 -0
  101. {yandexcloud-0.354.0.dist-info → yandexcloud-0.356.0.dist-info}/WHEEL +0 -0
  102. {yandexcloud-0.354.0.dist-info → yandexcloud-0.356.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,324 @@
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.internal.enum_type_wrapper
11
+ import google.protobuf.message
12
+ import google.protobuf.timestamp_pb2
13
+ import sys
14
+ import typing
15
+
16
+ if sys.version_info >= (3, 10):
17
+ import typing as typing_extensions
18
+ else:
19
+ import typing_extensions
20
+
21
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
22
+
23
+ @typing.final
24
+ class Maintenance(google.protobuf.message.Message):
25
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
26
+
27
+ class _Status:
28
+ ValueType = typing.NewType("ValueType", builtins.int)
29
+ V: typing_extensions.TypeAlias = ValueType
30
+
31
+ class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Maintenance._Status.ValueType], builtins.type):
32
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
33
+ STATUS_UNSPECIFIED: Maintenance._Status.ValueType # 0
34
+ """Not set."""
35
+ SCHEDULED: Maintenance._Status.ValueType # 1
36
+ """Maintenance is scheduled for a future time."""
37
+ RUNNING: Maintenance._Status.ValueType # 2
38
+ """Maintenance is currently running."""
39
+ SUCCEEDED: Maintenance._Status.ValueType # 3
40
+ """Maintenance completed successfully."""
41
+ CANCELLED: Maintenance._Status.ValueType # 4
42
+ """Maintenance is cancelled and will not run."""
43
+
44
+ class Status(_Status, metaclass=_StatusEnumTypeWrapper): ...
45
+ STATUS_UNSPECIFIED: Maintenance.Status.ValueType # 0
46
+ """Not set."""
47
+ SCHEDULED: Maintenance.Status.ValueType # 1
48
+ """Maintenance is scheduled for a future time."""
49
+ RUNNING: Maintenance.Status.ValueType # 2
50
+ """Maintenance is currently running."""
51
+ SUCCEEDED: Maintenance.Status.ValueType # 3
52
+ """Maintenance completed successfully."""
53
+ CANCELLED: Maintenance.Status.ValueType # 4
54
+ """Maintenance is cancelled and will not run."""
55
+
56
+ @typing.final
57
+ class Resource(google.protobuf.message.Message):
58
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
59
+
60
+ ID_FIELD_NUMBER: builtins.int
61
+ TYPE_FIELD_NUMBER: builtins.int
62
+ id: builtins.str
63
+ """ID of the resource"""
64
+ type: builtins.str
65
+ """The type of the resource, e.g. resource-manager.cloud, resource-manager.folder, compute.instance, etc."""
66
+ def __init__(
67
+ self,
68
+ *,
69
+ id: builtins.str = ...,
70
+ type: builtins.str = ...,
71
+ ) -> None: ...
72
+ def ClearField(self, field_name: typing.Literal["id", b"id", "type", b"type"]) -> None: ...
73
+
74
+ @typing.final
75
+ class Detail(google.protobuf.message.Message):
76
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
77
+
78
+ KEY_FIELD_NUMBER: builtins.int
79
+ VALUE_FIELD_NUMBER: builtins.int
80
+ key: builtins.str
81
+ """Unique key (service-specific)."""
82
+ value: builtins.str
83
+ """Description (service-specific)."""
84
+ def __init__(
85
+ self,
86
+ *,
87
+ key: builtins.str = ...,
88
+ value: builtins.str = ...,
89
+ ) -> None: ...
90
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
91
+
92
+ ID_FIELD_NUMBER: builtins.int
93
+ RESOURCE_PATH_FIELD_NUMBER: builtins.int
94
+ DESCRIPTION_FIELD_NUMBER: builtins.int
95
+ DETAILS_FIELD_NUMBER: builtins.int
96
+ STATUS_FIELD_NUMBER: builtins.int
97
+ CREATED_AT_FIELD_NUMBER: builtins.int
98
+ START_SCHEDULED_AT_FIELD_NUMBER: builtins.int
99
+ COMPLETION_SCHEDULED_AT_FIELD_NUMBER: builtins.int
100
+ MAX_START_SCHEDULED_AT_FIELD_NUMBER: builtins.int
101
+ STARTED_AT_FIELD_NUMBER: builtins.int
102
+ SUCCEEDED_AT_FIELD_NUMBER: builtins.int
103
+ CANCELLED_AT_FIELD_NUMBER: builtins.int
104
+ USER_CONTROLLABLE_FIELD_NUMBER: builtins.int
105
+ id: builtins.str
106
+ """ID of the maintenance."""
107
+ description: builtins.str
108
+ """Describes action to be performed."""
109
+ status: global___Maintenance.Status.ValueType
110
+ """Status of the maintenance."""
111
+ user_controllable: builtins.bool
112
+ """Indicates whether the user can control (reschedule) the maintenance."""
113
+ @property
114
+ def resource_path(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Maintenance.Resource]:
115
+ """Full path to the resource affected by maintenance,
116
+ represented as a hierarchy from specific resource to top-level container.
117
+ Example for a Compute instance with ID "I" in folder "F" and cloud "C":
118
+ resource_path = [
119
+ { "compute.instance", "I" },
120
+ { "resource-manager.folder", "F" },
121
+ { "resource-manager.cloud", "C" }
122
+ ]
123
+ """
124
+
125
+ @property
126
+ def details(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Maintenance.Detail]:
127
+ """Service-specific details."""
128
+
129
+ @property
130
+ def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
131
+ """The creation time of the maintenance."""
132
+
133
+ @property
134
+ def start_scheduled_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
135
+ """The time when the maintenance was scheduled to start."""
136
+
137
+ @property
138
+ def completion_scheduled_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
139
+ """The time when the maintenance is estimated to complete. Optional."""
140
+
141
+ @property
142
+ def max_start_scheduled_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
143
+ """Latest time the maintenance can be postponed to."""
144
+
145
+ @property
146
+ def started_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
147
+ """The time time when the maintenance has actually started."""
148
+
149
+ @property
150
+ def succeeded_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
151
+ """The time time when the maintenance has actually completed successfully."""
152
+
153
+ @property
154
+ def cancelled_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
155
+ """The time time when the maintenance has actually been cancelled."""
156
+
157
+ def __init__(
158
+ self,
159
+ *,
160
+ id: builtins.str = ...,
161
+ resource_path: collections.abc.Iterable[global___Maintenance.Resource] | None = ...,
162
+ description: builtins.str = ...,
163
+ details: collections.abc.Iterable[global___Maintenance.Detail] | None = ...,
164
+ status: global___Maintenance.Status.ValueType = ...,
165
+ created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
166
+ start_scheduled_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
167
+ completion_scheduled_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
168
+ max_start_scheduled_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
169
+ started_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
170
+ succeeded_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
171
+ cancelled_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
172
+ user_controllable: builtins.bool = ...,
173
+ ) -> None: ...
174
+ def HasField(self, field_name: typing.Literal["cancelled_at", b"cancelled_at", "completion_scheduled_at", b"completion_scheduled_at", "created_at", b"created_at", "max_start_scheduled_at", b"max_start_scheduled_at", "start_scheduled_at", b"start_scheduled_at", "started_at", b"started_at", "succeeded_at", b"succeeded_at"]) -> builtins.bool: ...
175
+ def ClearField(self, field_name: typing.Literal["cancelled_at", b"cancelled_at", "completion_scheduled_at", b"completion_scheduled_at", "created_at", b"created_at", "description", b"description", "details", b"details", "id", b"id", "max_start_scheduled_at", b"max_start_scheduled_at", "resource_path", b"resource_path", "start_scheduled_at", b"start_scheduled_at", "started_at", b"started_at", "status", b"status", "succeeded_at", b"succeeded_at", "user_controllable", b"user_controllable"]) -> None: ...
176
+
177
+ global___Maintenance = Maintenance
178
+
179
+ @typing.final
180
+ class ListMaintenancesRequest(google.protobuf.message.Message):
181
+ """ListMaintenancesRequest allows listing maintenances by cloud ID, folder ID, resource type or resource ID."""
182
+
183
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
184
+
185
+ CLOUD_ID_FIELD_NUMBER: builtins.int
186
+ FOLDER_ID_FIELD_NUMBER: builtins.int
187
+ RESOURCE_ID_FIELD_NUMBER: builtins.int
188
+ PAGE_SIZE_FIELD_NUMBER: builtins.int
189
+ PAGE_TOKEN_FIELD_NUMBER: builtins.int
190
+ ORDER_BY_FIELD_NUMBER: builtins.int
191
+ FILTER_FIELD_NUMBER: builtins.int
192
+ cloud_id: builtins.str
193
+ """Cloud ID for the resources."""
194
+ folder_id: builtins.str
195
+ """Folder ID for the resources."""
196
+ resource_id: builtins.str
197
+ """Resource ID of the target resource."""
198
+ page_size: builtins.int
199
+ """The maximum number of maintenances to return per response."""
200
+ page_token: builtins.str
201
+ """Token to retrieve the next page of results. Omitted on the first request."""
202
+ order_by: builtins.str
203
+ """By which field the listing should be ordered and in which direction,
204
+ format is "created_at desc". The default sorting order is ascending.
205
+ Supported fields: ["created_at", "start_scheduled_at", "started_at"].
206
+ """
207
+ filter: builtins.str
208
+ """Filter list by various fields.
209
+ Supported fields: ["status", "resource_type", "resource_id"]
210
+ """
211
+ def __init__(
212
+ self,
213
+ *,
214
+ cloud_id: builtins.str = ...,
215
+ folder_id: builtins.str = ...,
216
+ resource_id: builtins.str = ...,
217
+ page_size: builtins.int = ...,
218
+ page_token: builtins.str = ...,
219
+ order_by: builtins.str = ...,
220
+ filter: builtins.str = ...,
221
+ ) -> None: ...
222
+ def HasField(self, field_name: typing.Literal["cloud_id", b"cloud_id", "container", b"container", "folder_id", b"folder_id", "resource_id", b"resource_id"]) -> builtins.bool: ...
223
+ def ClearField(self, field_name: typing.Literal["cloud_id", b"cloud_id", "container", b"container", "filter", b"filter", "folder_id", b"folder_id", "order_by", b"order_by", "page_size", b"page_size", "page_token", b"page_token", "resource_id", b"resource_id"]) -> None: ...
224
+ def WhichOneof(self, oneof_group: typing.Literal["container", b"container"]) -> typing.Literal["cloud_id", "folder_id", "resource_id"] | None: ...
225
+
226
+ global___ListMaintenancesRequest = ListMaintenancesRequest
227
+
228
+ @typing.final
229
+ class ListMaintenancesResponse(google.protobuf.message.Message):
230
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
231
+
232
+ MAINTENANCES_FIELD_NUMBER: builtins.int
233
+ NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
234
+ next_page_token: builtins.str
235
+ """Token to retrieve the next page of results."""
236
+ @property
237
+ def maintenances(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Maintenance]:
238
+ """List of maintenances."""
239
+
240
+ def __init__(
241
+ self,
242
+ *,
243
+ maintenances: collections.abc.Iterable[global___Maintenance] | None = ...,
244
+ next_page_token: builtins.str = ...,
245
+ ) -> None: ...
246
+ def ClearField(self, field_name: typing.Literal["maintenances", b"maintenances", "next_page_token", b"next_page_token"]) -> None: ...
247
+
248
+ global___ListMaintenancesResponse = ListMaintenancesResponse
249
+
250
+ @typing.final
251
+ class GetMaintenanceRequest(google.protobuf.message.Message):
252
+ """GetMaintenanceRequest allows getting Maintenance by ID."""
253
+
254
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
255
+
256
+ MAINTENANCE_ID_FIELD_NUMBER: builtins.int
257
+ maintenance_id: builtins.str
258
+ def __init__(
259
+ self,
260
+ *,
261
+ maintenance_id: builtins.str = ...,
262
+ ) -> None: ...
263
+ def ClearField(self, field_name: typing.Literal["maintenance_id", b"maintenance_id"]) -> None: ...
264
+
265
+ global___GetMaintenanceRequest = GetMaintenanceRequest
266
+
267
+ @typing.final
268
+ class RescheduleMaintenanceRequest(google.protobuf.message.Message):
269
+ """RescheduleMaintenanceRequest allows to reschedule maintenance to another date and time."""
270
+
271
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
272
+
273
+ class _Type:
274
+ ValueType = typing.NewType("ValueType", builtins.int)
275
+ V: typing_extensions.TypeAlias = ValueType
276
+
277
+ class _TypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[RescheduleMaintenanceRequest._Type.ValueType], builtins.type):
278
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
279
+ TYPE_UNSPECIFIED: RescheduleMaintenanceRequest._Type.ValueType # 0
280
+ """Not set."""
281
+ IMMEDIATE: RescheduleMaintenanceRequest._Type.ValueType # 1
282
+ """If the user wants to reschedule the maintenance to happen now."""
283
+ NEXT_AVAILABLE_WINDOW: RescheduleMaintenanceRequest._Type.ValueType # 2
284
+ """If the user wants to reschedule the maintenance for the next maintenance window."""
285
+ SPECIFIC_TIME: RescheduleMaintenanceRequest._Type.ValueType # 3
286
+ """If the user wants to reschedule the maintenance to a specific time."""
287
+
288
+ class Type(_Type, metaclass=_TypeEnumTypeWrapper): ...
289
+ TYPE_UNSPECIFIED: RescheduleMaintenanceRequest.Type.ValueType # 0
290
+ """Not set."""
291
+ IMMEDIATE: RescheduleMaintenanceRequest.Type.ValueType # 1
292
+ """If the user wants to reschedule the maintenance to happen now."""
293
+ NEXT_AVAILABLE_WINDOW: RescheduleMaintenanceRequest.Type.ValueType # 2
294
+ """If the user wants to reschedule the maintenance for the next maintenance window."""
295
+ SPECIFIC_TIME: RescheduleMaintenanceRequest.Type.ValueType # 3
296
+ """If the user wants to reschedule the maintenance to a specific time."""
297
+
298
+ MAINTENANCE_ID_FIELD_NUMBER: builtins.int
299
+ RESCHEDULE_TYPE_FIELD_NUMBER: builtins.int
300
+ SCHEDULED_AT_FIELD_NUMBER: builtins.int
301
+ maintenance_id: builtins.str
302
+ """Required. ID of the maintenance."""
303
+ reschedule_type: global___RescheduleMaintenanceRequest.Type.ValueType
304
+ """Required. If `reschedule_type` is "SPECIFIC_TIME",
305
+ must set up `schedule_time` as well.
306
+ """
307
+ @property
308
+ def scheduled_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
309
+ """Optional. Timestamp the maintenance shall be rescheduled to,
310
+ if `reschedule_type` = "SPECIFIC_TIME".
311
+ Must be in RFC 3339 format (e.g. "2025-11-15T16:19:00.094Z").
312
+ """
313
+
314
+ def __init__(
315
+ self,
316
+ *,
317
+ maintenance_id: builtins.str = ...,
318
+ reschedule_type: global___RescheduleMaintenanceRequest.Type.ValueType = ...,
319
+ scheduled_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
320
+ ) -> None: ...
321
+ def HasField(self, field_name: typing.Literal["scheduled_at", b"scheduled_at"]) -> builtins.bool: ...
322
+ def ClearField(self, field_name: typing.Literal["maintenance_id", b"maintenance_id", "reschedule_type", b"reschedule_type", "scheduled_at", b"scheduled_at"]) -> None: ...
323
+
324
+ global___RescheduleMaintenanceRequest = RescheduleMaintenanceRequest
@@ -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.70.0'
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/maintenance/v2/common_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
+ )
@@ -0,0 +1,17 @@
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
+
12
+ _T = typing.TypeVar("_T")
13
+
14
+ class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
15
+
16
+ class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
17
+ ...