yandexcloud 0.341.0__py3-none-any.whl → 0.342.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.

@@ -0,0 +1,597 @@
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.operation.operation_pb2
14
+ import yandex.cloud.trino.v1.cluster_pb2
15
+ import yandex.cloud.trino.v1.maintenance_pb2
16
+
17
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
18
+
19
+ @typing.final
20
+ class GetClusterRequest(google.protobuf.message.Message):
21
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
22
+
23
+ CLUSTER_ID_FIELD_NUMBER: builtins.int
24
+ cluster_id: builtins.str
25
+ """ID of the Trino Cluster resource to return."""
26
+ def __init__(
27
+ self,
28
+ *,
29
+ cluster_id: builtins.str = ...,
30
+ ) -> None: ...
31
+ def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ...
32
+
33
+ global___GetClusterRequest = GetClusterRequest
34
+
35
+ @typing.final
36
+ class ListClustersRequest(google.protobuf.message.Message):
37
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
38
+
39
+ FOLDER_ID_FIELD_NUMBER: builtins.int
40
+ PAGE_SIZE_FIELD_NUMBER: builtins.int
41
+ PAGE_TOKEN_FIELD_NUMBER: builtins.int
42
+ FILTER_FIELD_NUMBER: builtins.int
43
+ folder_id: builtins.str
44
+ """ID of the folder to list Trino clusters in."""
45
+ page_size: builtins.int
46
+ """The maximum number of results per page to return. If the number of available
47
+ results is larger than [page_size], the service returns a [ListClustersResponse.next_page_token]
48
+ that can be used to get the next page of results in subsequent list requests.
49
+ """
50
+ page_token: builtins.str
51
+ """Page token. To get the next page of results, set [page_token] to the [ListClustersResponse.next_page_token]
52
+ returned by the previous list request.
53
+ """
54
+ filter: builtins.str
55
+ """A filter expression that filters resources listed in the response.
56
+ The expression must specify:
57
+ 1. The field name. Currently you can only use filtering with the [Cluster.name] field.
58
+ 2. An `=` operator.
59
+ 3. The value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`.
60
+ """
61
+ def __init__(
62
+ self,
63
+ *,
64
+ folder_id: builtins.str = ...,
65
+ page_size: builtins.int = ...,
66
+ page_token: builtins.str = ...,
67
+ filter: builtins.str = ...,
68
+ ) -> None: ...
69
+ def ClearField(self, field_name: typing.Literal["filter", b"filter", "folder_id", b"folder_id", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ...
70
+
71
+ global___ListClustersRequest = ListClustersRequest
72
+
73
+ @typing.final
74
+ class ListClustersResponse(google.protobuf.message.Message):
75
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
76
+
77
+ CLUSTERS_FIELD_NUMBER: builtins.int
78
+ NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
79
+ next_page_token: builtins.str
80
+ """This token allows you to get the next page of results for list requests. If the number of results
81
+ is larger than [ListClustersRequest.page_size], use the [next_page_token] as the value
82
+ for the [ListClustersRequest.page_token] parameter in the next list request. Each subsequent
83
+ list request will have its own [next_page_token] to continue paging through the results.
84
+ """
85
+ @property
86
+ def clusters(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.trino.v1.cluster_pb2.Cluster]:
87
+ """List of Trino Cluster resources."""
88
+
89
+ def __init__(
90
+ self,
91
+ *,
92
+ clusters: collections.abc.Iterable[yandex.cloud.trino.v1.cluster_pb2.Cluster] | None = ...,
93
+ next_page_token: builtins.str = ...,
94
+ ) -> None: ...
95
+ def ClearField(self, field_name: typing.Literal["clusters", b"clusters", "next_page_token", b"next_page_token"]) -> None: ...
96
+
97
+ global___ListClustersResponse = ListClustersResponse
98
+
99
+ @typing.final
100
+ class CreateClusterRequest(google.protobuf.message.Message):
101
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
102
+
103
+ @typing.final
104
+ class LabelsEntry(google.protobuf.message.Message):
105
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
106
+
107
+ KEY_FIELD_NUMBER: builtins.int
108
+ VALUE_FIELD_NUMBER: builtins.int
109
+ key: builtins.str
110
+ value: builtins.str
111
+ def __init__(
112
+ self,
113
+ *,
114
+ key: builtins.str = ...,
115
+ value: builtins.str = ...,
116
+ ) -> None: ...
117
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
118
+
119
+ FOLDER_ID_FIELD_NUMBER: builtins.int
120
+ NAME_FIELD_NUMBER: builtins.int
121
+ DESCRIPTION_FIELD_NUMBER: builtins.int
122
+ LABELS_FIELD_NUMBER: builtins.int
123
+ TRINO_FIELD_NUMBER: builtins.int
124
+ NETWORK_FIELD_NUMBER: builtins.int
125
+ DELETION_PROTECTION_FIELD_NUMBER: builtins.int
126
+ SERVICE_ACCOUNT_ID_FIELD_NUMBER: builtins.int
127
+ LOGGING_FIELD_NUMBER: builtins.int
128
+ MAINTENANCE_WINDOW_FIELD_NUMBER: builtins.int
129
+ folder_id: builtins.str
130
+ """ID of the folder to create Trino cluster in."""
131
+ name: builtins.str
132
+ """Name of the Trino cluster. The name must be unique within the folder."""
133
+ description: builtins.str
134
+ """Description of the Trino cluster."""
135
+ deletion_protection: builtins.bool
136
+ """Deletion Protection inhibits deletion of the cluster."""
137
+ service_account_id: builtins.str
138
+ """Service account used to access Cloud resources."""
139
+ @property
140
+ def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
141
+ """Custom labels for the Trino cluster as `` key:value `` pairs.
142
+ For example: {"env": "prod"}.
143
+ """
144
+
145
+ @property
146
+ def trino(self) -> global___TrinoConfigSpec:
147
+ """Configuration of Trino components."""
148
+
149
+ @property
150
+ def network(self) -> yandex.cloud.trino.v1.cluster_pb2.NetworkConfig:
151
+ """Network related configuration options."""
152
+
153
+ @property
154
+ def logging(self) -> yandex.cloud.trino.v1.cluster_pb2.LoggingConfig:
155
+ """Cloud logging configuration."""
156
+
157
+ @property
158
+ def maintenance_window(self) -> yandex.cloud.trino.v1.maintenance_pb2.MaintenanceWindow:
159
+ """Window of maintenance operations."""
160
+
161
+ def __init__(
162
+ self,
163
+ *,
164
+ folder_id: builtins.str = ...,
165
+ name: builtins.str = ...,
166
+ description: builtins.str = ...,
167
+ labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
168
+ trino: global___TrinoConfigSpec | None = ...,
169
+ network: yandex.cloud.trino.v1.cluster_pb2.NetworkConfig | None = ...,
170
+ deletion_protection: builtins.bool = ...,
171
+ service_account_id: builtins.str = ...,
172
+ logging: yandex.cloud.trino.v1.cluster_pb2.LoggingConfig | None = ...,
173
+ maintenance_window: yandex.cloud.trino.v1.maintenance_pb2.MaintenanceWindow | None = ...,
174
+ ) -> None: ...
175
+ def HasField(self, field_name: typing.Literal["logging", b"logging", "maintenance_window", b"maintenance_window", "network", b"network", "trino", b"trino"]) -> builtins.bool: ...
176
+ def ClearField(self, field_name: typing.Literal["deletion_protection", b"deletion_protection", "description", b"description", "folder_id", b"folder_id", "labels", b"labels", "logging", b"logging", "maintenance_window", b"maintenance_window", "name", b"name", "network", b"network", "service_account_id", b"service_account_id", "trino", b"trino"]) -> None: ...
177
+
178
+ global___CreateClusterRequest = CreateClusterRequest
179
+
180
+ @typing.final
181
+ class TrinoConfigSpec(google.protobuf.message.Message):
182
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
183
+
184
+ COORDINATOR_CONFIG_FIELD_NUMBER: builtins.int
185
+ WORKER_CONFIG_FIELD_NUMBER: builtins.int
186
+ RETRY_POLICY_FIELD_NUMBER: builtins.int
187
+ @property
188
+ def coordinator_config(self) -> yandex.cloud.trino.v1.cluster_pb2.CoordinatorConfig:
189
+ """Configuration for the coordinator, specifying computational resources and other settings."""
190
+
191
+ @property
192
+ def worker_config(self) -> yandex.cloud.trino.v1.cluster_pb2.WorkerConfig:
193
+ """Configuration for worker nodes, including scaling policy and computational resources."""
194
+
195
+ @property
196
+ def retry_policy(self) -> yandex.cloud.trino.v1.cluster_pb2.RetryPolicyConfig:
197
+ """Configuration for retry policy, specifying the spooling storage destination and other settings."""
198
+
199
+ def __init__(
200
+ self,
201
+ *,
202
+ coordinator_config: yandex.cloud.trino.v1.cluster_pb2.CoordinatorConfig | None = ...,
203
+ worker_config: yandex.cloud.trino.v1.cluster_pb2.WorkerConfig | None = ...,
204
+ retry_policy: yandex.cloud.trino.v1.cluster_pb2.RetryPolicyConfig | None = ...,
205
+ ) -> None: ...
206
+ def HasField(self, field_name: typing.Literal["coordinator_config", b"coordinator_config", "retry_policy", b"retry_policy", "worker_config", b"worker_config"]) -> builtins.bool: ...
207
+ def ClearField(self, field_name: typing.Literal["coordinator_config", b"coordinator_config", "retry_policy", b"retry_policy", "worker_config", b"worker_config"]) -> None: ...
208
+
209
+ global___TrinoConfigSpec = TrinoConfigSpec
210
+
211
+ @typing.final
212
+ class CreateClusterMetadata(google.protobuf.message.Message):
213
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
214
+
215
+ CLUSTER_ID_FIELD_NUMBER: builtins.int
216
+ cluster_id: builtins.str
217
+ """ID of the Trino cluster that is being created."""
218
+ def __init__(
219
+ self,
220
+ *,
221
+ cluster_id: builtins.str = ...,
222
+ ) -> None: ...
223
+ def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ...
224
+
225
+ global___CreateClusterMetadata = CreateClusterMetadata
226
+
227
+ @typing.final
228
+ class UpdateCoordinatorConfig(google.protobuf.message.Message):
229
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
230
+
231
+ RESOURCES_FIELD_NUMBER: builtins.int
232
+ @property
233
+ def resources(self) -> yandex.cloud.trino.v1.cluster_pb2.Resources:
234
+ """Configuration for computational resources assigned to the coordinator instance."""
235
+
236
+ def __init__(
237
+ self,
238
+ *,
239
+ resources: yandex.cloud.trino.v1.cluster_pb2.Resources | None = ...,
240
+ ) -> None: ...
241
+ def HasField(self, field_name: typing.Literal["resources", b"resources"]) -> builtins.bool: ...
242
+ def ClearField(self, field_name: typing.Literal["resources", b"resources"]) -> None: ...
243
+
244
+ global___UpdateCoordinatorConfig = UpdateCoordinatorConfig
245
+
246
+ @typing.final
247
+ class UpdateWorkerConfig(google.protobuf.message.Message):
248
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
249
+
250
+ @typing.final
251
+ class WorkerScalePolicy(google.protobuf.message.Message):
252
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
253
+
254
+ FIXED_SCALE_FIELD_NUMBER: builtins.int
255
+ AUTO_SCALE_FIELD_NUMBER: builtins.int
256
+ @property
257
+ def fixed_scale(self) -> yandex.cloud.trino.v1.cluster_pb2.FixedScalePolicy:
258
+ """A fixed scaling policy that specifies a fixed number of worker instances."""
259
+
260
+ @property
261
+ def auto_scale(self) -> yandex.cloud.trino.v1.cluster_pb2.AutoScalePolicy:
262
+ """A scaling policy that dynamically adjusts the number of worker instances
263
+ based on the cluster's workload. The system automatically increases or
264
+ decreases the number of instances within the defined range.
265
+ """
266
+
267
+ def __init__(
268
+ self,
269
+ *,
270
+ fixed_scale: yandex.cloud.trino.v1.cluster_pb2.FixedScalePolicy | None = ...,
271
+ auto_scale: yandex.cloud.trino.v1.cluster_pb2.AutoScalePolicy | None = ...,
272
+ ) -> None: ...
273
+ def HasField(self, field_name: typing.Literal["auto_scale", b"auto_scale", "fixed_scale", b"fixed_scale", "scale_type", b"scale_type"]) -> builtins.bool: ...
274
+ def ClearField(self, field_name: typing.Literal["auto_scale", b"auto_scale", "fixed_scale", b"fixed_scale", "scale_type", b"scale_type"]) -> None: ...
275
+ def WhichOneof(self, oneof_group: typing.Literal["scale_type", b"scale_type"]) -> typing.Literal["fixed_scale", "auto_scale"] | None: ...
276
+
277
+ RESOURCES_FIELD_NUMBER: builtins.int
278
+ SCALE_POLICY_FIELD_NUMBER: builtins.int
279
+ @property
280
+ def resources(self) -> yandex.cloud.trino.v1.cluster_pb2.Resources:
281
+ """Configuration for computational resources for worker instances."""
282
+
283
+ @property
284
+ def scale_policy(self) -> global___UpdateWorkerConfig.WorkerScalePolicy:
285
+ """Configuration for scaling policy for worker instances."""
286
+
287
+ def __init__(
288
+ self,
289
+ *,
290
+ resources: yandex.cloud.trino.v1.cluster_pb2.Resources | None = ...,
291
+ scale_policy: global___UpdateWorkerConfig.WorkerScalePolicy | None = ...,
292
+ ) -> None: ...
293
+ def HasField(self, field_name: typing.Literal["resources", b"resources", "scale_policy", b"scale_policy"]) -> builtins.bool: ...
294
+ def ClearField(self, field_name: typing.Literal["resources", b"resources", "scale_policy", b"scale_policy"]) -> None: ...
295
+
296
+ global___UpdateWorkerConfig = UpdateWorkerConfig
297
+
298
+ @typing.final
299
+ class UpdateTrinoConfigSpec(google.protobuf.message.Message):
300
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
301
+
302
+ COORDINATOR_CONFIG_FIELD_NUMBER: builtins.int
303
+ WORKER_CONFIG_FIELD_NUMBER: builtins.int
304
+ RETRY_POLICY_FIELD_NUMBER: builtins.int
305
+ @property
306
+ def coordinator_config(self) -> global___UpdateCoordinatorConfig:
307
+ """Configuration for the coordinator, specifying computational resources and other settings."""
308
+
309
+ @property
310
+ def worker_config(self) -> global___UpdateWorkerConfig:
311
+ """Configuration for worker nodes, including scaling policy and computational resources."""
312
+
313
+ @property
314
+ def retry_policy(self) -> yandex.cloud.trino.v1.cluster_pb2.RetryPolicyConfig:
315
+ """Configuration for retry policy, specifying the spooling storage destination and other settings."""
316
+
317
+ def __init__(
318
+ self,
319
+ *,
320
+ coordinator_config: global___UpdateCoordinatorConfig | None = ...,
321
+ worker_config: global___UpdateWorkerConfig | None = ...,
322
+ retry_policy: yandex.cloud.trino.v1.cluster_pb2.RetryPolicyConfig | None = ...,
323
+ ) -> None: ...
324
+ def HasField(self, field_name: typing.Literal["coordinator_config", b"coordinator_config", "retry_policy", b"retry_policy", "worker_config", b"worker_config"]) -> builtins.bool: ...
325
+ def ClearField(self, field_name: typing.Literal["coordinator_config", b"coordinator_config", "retry_policy", b"retry_policy", "worker_config", b"worker_config"]) -> None: ...
326
+
327
+ global___UpdateTrinoConfigSpec = UpdateTrinoConfigSpec
328
+
329
+ @typing.final
330
+ class UpdateNetworkConfigSpec(google.protobuf.message.Message):
331
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
332
+
333
+ SECURITY_GROUP_IDS_FIELD_NUMBER: builtins.int
334
+ @property
335
+ def security_group_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
336
+ """User security groups."""
337
+
338
+ def __init__(
339
+ self,
340
+ *,
341
+ security_group_ids: collections.abc.Iterable[builtins.str] | None = ...,
342
+ ) -> None: ...
343
+ def ClearField(self, field_name: typing.Literal["security_group_ids", b"security_group_ids"]) -> None: ...
344
+
345
+ global___UpdateNetworkConfigSpec = UpdateNetworkConfigSpec
346
+
347
+ @typing.final
348
+ class UpdateClusterRequest(google.protobuf.message.Message):
349
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
350
+
351
+ @typing.final
352
+ class LabelsEntry(google.protobuf.message.Message):
353
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
354
+
355
+ KEY_FIELD_NUMBER: builtins.int
356
+ VALUE_FIELD_NUMBER: builtins.int
357
+ key: builtins.str
358
+ value: builtins.str
359
+ def __init__(
360
+ self,
361
+ *,
362
+ key: builtins.str = ...,
363
+ value: builtins.str = ...,
364
+ ) -> None: ...
365
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
366
+
367
+ CLUSTER_ID_FIELD_NUMBER: builtins.int
368
+ UPDATE_MASK_FIELD_NUMBER: builtins.int
369
+ NAME_FIELD_NUMBER: builtins.int
370
+ DESCRIPTION_FIELD_NUMBER: builtins.int
371
+ LABELS_FIELD_NUMBER: builtins.int
372
+ DELETION_PROTECTION_FIELD_NUMBER: builtins.int
373
+ TRINO_FIELD_NUMBER: builtins.int
374
+ NETWORK_SPEC_FIELD_NUMBER: builtins.int
375
+ SERVICE_ACCOUNT_ID_FIELD_NUMBER: builtins.int
376
+ LOGGING_FIELD_NUMBER: builtins.int
377
+ MAINTENANCE_WINDOW_FIELD_NUMBER: builtins.int
378
+ cluster_id: builtins.str
379
+ """ID of the Trino cluster."""
380
+ name: builtins.str
381
+ """Name of the Trino cluster. The name must be unique within the folder."""
382
+ description: builtins.str
383
+ """Description of the Trino cluster."""
384
+ deletion_protection: builtins.bool
385
+ """Deletion Protection inhibits deletion of the cluster."""
386
+ service_account_id: builtins.str
387
+ """Service account used to access Cloud resources."""
388
+ @property
389
+ def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: ...
390
+ @property
391
+ def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
392
+ """Custom labels for the Trino cluster as `` key:value `` pairs.
393
+ For example: {"env": "prod"}.
394
+ """
395
+
396
+ @property
397
+ def trino(self) -> global___UpdateTrinoConfigSpec:
398
+ """Configuration of Trino components."""
399
+
400
+ @property
401
+ def network_spec(self) -> global___UpdateNetworkConfigSpec:
402
+ """Network related configuration options."""
403
+
404
+ @property
405
+ def logging(self) -> yandex.cloud.trino.v1.cluster_pb2.LoggingConfig:
406
+ """Cloud logging configuration."""
407
+
408
+ @property
409
+ def maintenance_window(self) -> yandex.cloud.trino.v1.maintenance_pb2.MaintenanceWindow:
410
+ """Window of maintenance operations."""
411
+
412
+ def __init__(
413
+ self,
414
+ *,
415
+ cluster_id: builtins.str = ...,
416
+ update_mask: google.protobuf.field_mask_pb2.FieldMask | None = ...,
417
+ name: builtins.str = ...,
418
+ description: builtins.str = ...,
419
+ labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
420
+ deletion_protection: builtins.bool = ...,
421
+ trino: global___UpdateTrinoConfigSpec | None = ...,
422
+ network_spec: global___UpdateNetworkConfigSpec | None = ...,
423
+ service_account_id: builtins.str = ...,
424
+ logging: yandex.cloud.trino.v1.cluster_pb2.LoggingConfig | None = ...,
425
+ maintenance_window: yandex.cloud.trino.v1.maintenance_pb2.MaintenanceWindow | None = ...,
426
+ ) -> None: ...
427
+ def HasField(self, field_name: typing.Literal["logging", b"logging", "maintenance_window", b"maintenance_window", "network_spec", b"network_spec", "trino", b"trino", "update_mask", b"update_mask"]) -> builtins.bool: ...
428
+ def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id", "deletion_protection", b"deletion_protection", "description", b"description", "labels", b"labels", "logging", b"logging", "maintenance_window", b"maintenance_window", "name", b"name", "network_spec", b"network_spec", "service_account_id", b"service_account_id", "trino", b"trino", "update_mask", b"update_mask"]) -> None: ...
429
+
430
+ global___UpdateClusterRequest = UpdateClusterRequest
431
+
432
+ @typing.final
433
+ class UpdateClusterMetadata(google.protobuf.message.Message):
434
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
435
+
436
+ CLUSTER_ID_FIELD_NUMBER: builtins.int
437
+ cluster_id: builtins.str
438
+ """ID of the Trino cluster that is being updated."""
439
+ def __init__(
440
+ self,
441
+ *,
442
+ cluster_id: builtins.str = ...,
443
+ ) -> None: ...
444
+ def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ...
445
+
446
+ global___UpdateClusterMetadata = UpdateClusterMetadata
447
+
448
+ @typing.final
449
+ class DeleteClusterRequest(google.protobuf.message.Message):
450
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
451
+
452
+ CLUSTER_ID_FIELD_NUMBER: builtins.int
453
+ cluster_id: builtins.str
454
+ """ID of the Trino cluster that is being deleted."""
455
+ def __init__(
456
+ self,
457
+ *,
458
+ cluster_id: builtins.str = ...,
459
+ ) -> None: ...
460
+ def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ...
461
+
462
+ global___DeleteClusterRequest = DeleteClusterRequest
463
+
464
+ @typing.final
465
+ class DeleteClusterMetadata(google.protobuf.message.Message):
466
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
467
+
468
+ CLUSTER_ID_FIELD_NUMBER: builtins.int
469
+ cluster_id: builtins.str
470
+ """ID of the deleting Trino cluster."""
471
+ def __init__(
472
+ self,
473
+ *,
474
+ cluster_id: builtins.str = ...,
475
+ ) -> None: ...
476
+ def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ...
477
+
478
+ global___DeleteClusterMetadata = DeleteClusterMetadata
479
+
480
+ @typing.final
481
+ class StartClusterRequest(google.protobuf.message.Message):
482
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
483
+
484
+ CLUSTER_ID_FIELD_NUMBER: builtins.int
485
+ cluster_id: builtins.str
486
+ """ID of the Trino cluster that is being started."""
487
+ def __init__(
488
+ self,
489
+ *,
490
+ cluster_id: builtins.str = ...,
491
+ ) -> None: ...
492
+ def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ...
493
+
494
+ global___StartClusterRequest = StartClusterRequest
495
+
496
+ @typing.final
497
+ class StartClusterMetadata(google.protobuf.message.Message):
498
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
499
+
500
+ CLUSTER_ID_FIELD_NUMBER: builtins.int
501
+ cluster_id: builtins.str
502
+ """ID of the Trino cluster."""
503
+ def __init__(
504
+ self,
505
+ *,
506
+ cluster_id: builtins.str = ...,
507
+ ) -> None: ...
508
+ def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ...
509
+
510
+ global___StartClusterMetadata = StartClusterMetadata
511
+
512
+ @typing.final
513
+ class StopClusterRequest(google.protobuf.message.Message):
514
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
515
+
516
+ CLUSTER_ID_FIELD_NUMBER: builtins.int
517
+ cluster_id: builtins.str
518
+ """ID of the Trino cluster that is being stopped."""
519
+ def __init__(
520
+ self,
521
+ *,
522
+ cluster_id: builtins.str = ...,
523
+ ) -> None: ...
524
+ def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ...
525
+
526
+ global___StopClusterRequest = StopClusterRequest
527
+
528
+ @typing.final
529
+ class StopClusterMetadata(google.protobuf.message.Message):
530
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
531
+
532
+ CLUSTER_ID_FIELD_NUMBER: builtins.int
533
+ cluster_id: builtins.str
534
+ """ID of the Trino cluster."""
535
+ def __init__(
536
+ self,
537
+ *,
538
+ cluster_id: builtins.str = ...,
539
+ ) -> None: ...
540
+ def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ...
541
+
542
+ global___StopClusterMetadata = StopClusterMetadata
543
+
544
+ @typing.final
545
+ class ListClusterOperationsRequest(google.protobuf.message.Message):
546
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
547
+
548
+ CLUSTER_ID_FIELD_NUMBER: builtins.int
549
+ PAGE_SIZE_FIELD_NUMBER: builtins.int
550
+ PAGE_TOKEN_FIELD_NUMBER: builtins.int
551
+ cluster_id: builtins.str
552
+ """ID of the Trino Cluster resource to list operations for."""
553
+ page_size: builtins.int
554
+ """The maximum number of results per page to return. If the number of available
555
+ results is larger than [page_size], the service returns a [ListClusterOperationsResponse.next_page_token]
556
+ that can be used to get the next page of results in subsequent list requests.
557
+ """
558
+ page_token: builtins.str
559
+ """Page token. To get the next page of results, set [page_token] to the [ListClusterOperationsResponse.next_page_token]
560
+ returned by the previous list request.
561
+ """
562
+ def __init__(
563
+ self,
564
+ *,
565
+ cluster_id: builtins.str = ...,
566
+ page_size: builtins.int = ...,
567
+ page_token: builtins.str = ...,
568
+ ) -> None: ...
569
+ def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ...
570
+
571
+ global___ListClusterOperationsRequest = ListClusterOperationsRequest
572
+
573
+ @typing.final
574
+ class ListClusterOperationsResponse(google.protobuf.message.Message):
575
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
576
+
577
+ OPERATIONS_FIELD_NUMBER: builtins.int
578
+ NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
579
+ next_page_token: builtins.str
580
+ """This token allows you to get the next page of results for list requests. If the number of results
581
+ is larger than [ListClusterOperationsRequest.page_size], use the [next_page_token] as the value
582
+ for the [ListClusterOperationsRequest.page_token] query parameter in the next list request.
583
+ Each subsequent list request will have its own [next_page_token] to continue paging through the results.
584
+ """
585
+ @property
586
+ def operations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.operation.operation_pb2.Operation]:
587
+ """List of Operation resources for the specified Trino cluster."""
588
+
589
+ def __init__(
590
+ self,
591
+ *,
592
+ operations: collections.abc.Iterable[yandex.cloud.operation.operation_pb2.Operation] | None = ...,
593
+ next_page_token: builtins.str = ...,
594
+ ) -> None: ...
595
+ def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "operations", b"operations"]) -> None: ...
596
+
597
+ global___ListClusterOperationsResponse = ListClusterOperationsResponse