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,576 @@
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
+ import yandex.cloud.logging.v1.log_entry_pb2
16
+ import yandex.cloud.trino.v1.maintenance_pb2
17
+
18
+ if sys.version_info >= (3, 10):
19
+ import typing as typing_extensions
20
+ else:
21
+ import typing_extensions
22
+
23
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
24
+
25
+ class _Health:
26
+ ValueType = typing.NewType("ValueType", builtins.int)
27
+ V: typing_extensions.TypeAlias = ValueType
28
+
29
+ class _HealthEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Health.ValueType], builtins.type):
30
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
31
+ HEALTH_UNKNOWN: _Health.ValueType # 0
32
+ """Object is in unknown state (we have no data)"""
33
+ ALIVE: _Health.ValueType # 1
34
+ """Object is alive and well (all hosts are alive)"""
35
+ DEAD: _Health.ValueType # 2
36
+ """Object is inoperable (it cannot perform any of its essential functions)"""
37
+ DEGRADED: _Health.ValueType # 3
38
+ """Object is partially alive (it can perform some of its essential functions)"""
39
+
40
+ class Health(_Health, metaclass=_HealthEnumTypeWrapper): ...
41
+
42
+ HEALTH_UNKNOWN: Health.ValueType # 0
43
+ """Object is in unknown state (we have no data)"""
44
+ ALIVE: Health.ValueType # 1
45
+ """Object is alive and well (all hosts are alive)"""
46
+ DEAD: Health.ValueType # 2
47
+ """Object is inoperable (it cannot perform any of its essential functions)"""
48
+ DEGRADED: Health.ValueType # 3
49
+ """Object is partially alive (it can perform some of its essential functions)"""
50
+ global___Health = Health
51
+
52
+ @typing.final
53
+ class Cluster(google.protobuf.message.Message):
54
+ """Trino cluster."""
55
+
56
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
57
+
58
+ class _Status:
59
+ ValueType = typing.NewType("ValueType", builtins.int)
60
+ V: typing_extensions.TypeAlias = ValueType
61
+
62
+ class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Cluster._Status.ValueType], builtins.type):
63
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
64
+ STATUS_UNKNOWN: Cluster._Status.ValueType # 0
65
+ """Cluster state is unknown."""
66
+ CREATING: Cluster._Status.ValueType # 1
67
+ """Cluster is being created."""
68
+ RUNNING: Cluster._Status.ValueType # 2
69
+ """Cluster is running normally."""
70
+ ERROR: Cluster._Status.ValueType # 3
71
+ """Cluster encountered a problem and cannot operate."""
72
+ STOPPING: Cluster._Status.ValueType # 4
73
+ """Cluster is stopping."""
74
+ STOPPED: Cluster._Status.ValueType # 5
75
+ """Cluster is stopped."""
76
+ STARTING: Cluster._Status.ValueType # 6
77
+ """Cluster is starting."""
78
+ UPDATING: Cluster._Status.ValueType # 7
79
+ """Cluster is being updated."""
80
+
81
+ class Status(_Status, metaclass=_StatusEnumTypeWrapper): ...
82
+ STATUS_UNKNOWN: Cluster.Status.ValueType # 0
83
+ """Cluster state is unknown."""
84
+ CREATING: Cluster.Status.ValueType # 1
85
+ """Cluster is being created."""
86
+ RUNNING: Cluster.Status.ValueType # 2
87
+ """Cluster is running normally."""
88
+ ERROR: Cluster.Status.ValueType # 3
89
+ """Cluster encountered a problem and cannot operate."""
90
+ STOPPING: Cluster.Status.ValueType # 4
91
+ """Cluster is stopping."""
92
+ STOPPED: Cluster.Status.ValueType # 5
93
+ """Cluster is stopped."""
94
+ STARTING: Cluster.Status.ValueType # 6
95
+ """Cluster is starting."""
96
+ UPDATING: Cluster.Status.ValueType # 7
97
+ """Cluster is being updated."""
98
+
99
+ @typing.final
100
+ class LabelsEntry(google.protobuf.message.Message):
101
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
102
+
103
+ KEY_FIELD_NUMBER: builtins.int
104
+ VALUE_FIELD_NUMBER: builtins.int
105
+ key: builtins.str
106
+ value: builtins.str
107
+ def __init__(
108
+ self,
109
+ *,
110
+ key: builtins.str = ...,
111
+ value: builtins.str = ...,
112
+ ) -> None: ...
113
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
114
+
115
+ ID_FIELD_NUMBER: builtins.int
116
+ FOLDER_ID_FIELD_NUMBER: builtins.int
117
+ CREATED_AT_FIELD_NUMBER: builtins.int
118
+ NAME_FIELD_NUMBER: builtins.int
119
+ DESCRIPTION_FIELD_NUMBER: builtins.int
120
+ LABELS_FIELD_NUMBER: builtins.int
121
+ MONITORING_FIELD_NUMBER: builtins.int
122
+ TRINO_FIELD_NUMBER: builtins.int
123
+ HEALTH_FIELD_NUMBER: builtins.int
124
+ STATUS_FIELD_NUMBER: builtins.int
125
+ NETWORK_FIELD_NUMBER: builtins.int
126
+ DELETION_PROTECTION_FIELD_NUMBER: builtins.int
127
+ SERVICE_ACCOUNT_ID_FIELD_NUMBER: builtins.int
128
+ LOGGING_FIELD_NUMBER: builtins.int
129
+ COORDINATOR_URL_FIELD_NUMBER: builtins.int
130
+ MAINTENANCE_WINDOW_FIELD_NUMBER: builtins.int
131
+ PLANNED_OPERATION_FIELD_NUMBER: builtins.int
132
+ id: builtins.str
133
+ """Unique ID of the Trino cluster.
134
+ This ID is assigned by Cloud in the process of creating a Trino cluster.
135
+ """
136
+ folder_id: builtins.str
137
+ """ID of the folder that the Trino cluster belongs to."""
138
+ name: builtins.str
139
+ """Name of the Trino cluster.
140
+ The name is unique within the folder. 1-64 characters long.
141
+ """
142
+ description: builtins.str
143
+ """Description of the Trino cluster. 0-256 characters long."""
144
+ health: global___Health.ValueType
145
+ """Aggregated cluster health."""
146
+ status: global___Cluster.Status.ValueType
147
+ """Cluster status."""
148
+ deletion_protection: builtins.bool
149
+ """Deletion Protection inhibits deletion of the cluster."""
150
+ service_account_id: builtins.str
151
+ """Service account used to access Cloud resources."""
152
+ coordinator_url: builtins.str
153
+ """Address of Trino Coordinator."""
154
+ @property
155
+ def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
156
+ """The time when the Trino cluster was created."""
157
+
158
+ @property
159
+ def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
160
+ """Resource labels as `key:value` pairs. Maximum of 64 per resource."""
161
+
162
+ @property
163
+ def monitoring(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Monitoring]:
164
+ """Monitoring systems relevant to the Trino cluster."""
165
+
166
+ @property
167
+ def trino(self) -> global___TrinoConfig:
168
+ """Configuration of the Trino cluster."""
169
+
170
+ @property
171
+ def network(self) -> global___NetworkConfig:
172
+ """Network related configuration options."""
173
+
174
+ @property
175
+ def logging(self) -> global___LoggingConfig:
176
+ """Cloud logging configuration."""
177
+
178
+ @property
179
+ def maintenance_window(self) -> yandex.cloud.trino.v1.maintenance_pb2.MaintenanceWindow:
180
+ """Window of maintenance operations."""
181
+
182
+ @property
183
+ def planned_operation(self) -> yandex.cloud.trino.v1.maintenance_pb2.MaintenanceOperation:
184
+ """Maintenance operation planned at nearest maintenance_window."""
185
+
186
+ def __init__(
187
+ self,
188
+ *,
189
+ id: builtins.str = ...,
190
+ folder_id: builtins.str = ...,
191
+ created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
192
+ name: builtins.str = ...,
193
+ description: builtins.str = ...,
194
+ labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
195
+ monitoring: collections.abc.Iterable[global___Monitoring] | None = ...,
196
+ trino: global___TrinoConfig | None = ...,
197
+ health: global___Health.ValueType = ...,
198
+ status: global___Cluster.Status.ValueType = ...,
199
+ network: global___NetworkConfig | None = ...,
200
+ deletion_protection: builtins.bool = ...,
201
+ service_account_id: builtins.str = ...,
202
+ logging: global___LoggingConfig | None = ...,
203
+ coordinator_url: builtins.str = ...,
204
+ maintenance_window: yandex.cloud.trino.v1.maintenance_pb2.MaintenanceWindow | None = ...,
205
+ planned_operation: yandex.cloud.trino.v1.maintenance_pb2.MaintenanceOperation | None = ...,
206
+ ) -> None: ...
207
+ def HasField(self, field_name: typing.Literal["created_at", b"created_at", "logging", b"logging", "maintenance_window", b"maintenance_window", "network", b"network", "planned_operation", b"planned_operation", "trino", b"trino"]) -> builtins.bool: ...
208
+ def ClearField(self, field_name: typing.Literal["coordinator_url", b"coordinator_url", "created_at", b"created_at", "deletion_protection", b"deletion_protection", "description", b"description", "folder_id", b"folder_id", "health", b"health", "id", b"id", "labels", b"labels", "logging", b"logging", "maintenance_window", b"maintenance_window", "monitoring", b"monitoring", "name", b"name", "network", b"network", "planned_operation", b"planned_operation", "service_account_id", b"service_account_id", "status", b"status", "trino", b"trino"]) -> None: ...
209
+
210
+ global___Cluster = Cluster
211
+
212
+ @typing.final
213
+ class Monitoring(google.protobuf.message.Message):
214
+ """Monitoring system."""
215
+
216
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
217
+
218
+ NAME_FIELD_NUMBER: builtins.int
219
+ DESCRIPTION_FIELD_NUMBER: builtins.int
220
+ LINK_FIELD_NUMBER: builtins.int
221
+ name: builtins.str
222
+ """Name of the monitoring system."""
223
+ description: builtins.str
224
+ """Description of the monitoring system."""
225
+ link: builtins.str
226
+ """Link to the monitoring system."""
227
+ def __init__(
228
+ self,
229
+ *,
230
+ name: builtins.str = ...,
231
+ description: builtins.str = ...,
232
+ link: builtins.str = ...,
233
+ ) -> None: ...
234
+ def ClearField(self, field_name: typing.Literal["description", b"description", "link", b"link", "name", b"name"]) -> None: ...
235
+
236
+ global___Monitoring = Monitoring
237
+
238
+ @typing.final
239
+ class LoggingConfig(google.protobuf.message.Message):
240
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
241
+
242
+ ENABLED_FIELD_NUMBER: builtins.int
243
+ FOLDER_ID_FIELD_NUMBER: builtins.int
244
+ LOG_GROUP_ID_FIELD_NUMBER: builtins.int
245
+ MIN_LEVEL_FIELD_NUMBER: builtins.int
246
+ enabled: builtins.bool
247
+ """Logs generated by the Trino components are delivered to Cloud Logging."""
248
+ folder_id: builtins.str
249
+ """Logs should be written to default log group for specified folder."""
250
+ log_group_id: builtins.str
251
+ """Logs should be written to log group resolved by ID."""
252
+ min_level: yandex.cloud.logging.v1.log_entry_pb2.LogLevel.Level.ValueType
253
+ """Minimum log entry level.
254
+
255
+ See [LogLevel.Level] for details.
256
+ """
257
+ def __init__(
258
+ self,
259
+ *,
260
+ enabled: builtins.bool = ...,
261
+ folder_id: builtins.str = ...,
262
+ log_group_id: builtins.str = ...,
263
+ min_level: yandex.cloud.logging.v1.log_entry_pb2.LogLevel.Level.ValueType = ...,
264
+ ) -> None: ...
265
+ def HasField(self, field_name: typing.Literal["destination", b"destination", "folder_id", b"folder_id", "log_group_id", b"log_group_id"]) -> builtins.bool: ...
266
+ def ClearField(self, field_name: typing.Literal["destination", b"destination", "enabled", b"enabled", "folder_id", b"folder_id", "log_group_id", b"log_group_id", "min_level", b"min_level"]) -> None: ...
267
+ def WhichOneof(self, oneof_group: typing.Literal["destination", b"destination"]) -> typing.Literal["folder_id", "log_group_id"] | None: ...
268
+
269
+ global___LoggingConfig = LoggingConfig
270
+
271
+ @typing.final
272
+ class NetworkConfig(google.protobuf.message.Message):
273
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
274
+
275
+ SUBNET_IDS_FIELD_NUMBER: builtins.int
276
+ SECURITY_GROUP_IDS_FIELD_NUMBER: builtins.int
277
+ @property
278
+ def subnet_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
279
+ """IDs of VPC network subnets where instances of the cluster are attached."""
280
+
281
+ @property
282
+ def security_group_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
283
+ """User security groups."""
284
+
285
+ def __init__(
286
+ self,
287
+ *,
288
+ subnet_ids: collections.abc.Iterable[builtins.str] | None = ...,
289
+ security_group_ids: collections.abc.Iterable[builtins.str] | None = ...,
290
+ ) -> None: ...
291
+ def ClearField(self, field_name: typing.Literal["security_group_ids", b"security_group_ids", "subnet_ids", b"subnet_ids"]) -> None: ...
292
+
293
+ global___NetworkConfig = NetworkConfig
294
+
295
+ @typing.final
296
+ class TrinoConfig(google.protobuf.message.Message):
297
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
298
+
299
+ COORDINATOR_CONFIG_FIELD_NUMBER: builtins.int
300
+ WORKER_CONFIG_FIELD_NUMBER: builtins.int
301
+ VERSION_FIELD_NUMBER: builtins.int
302
+ RETRY_POLICY_FIELD_NUMBER: builtins.int
303
+ version: builtins.str
304
+ """Version of Trino."""
305
+ @property
306
+ def coordinator_config(self) -> global___CoordinatorConfig:
307
+ """Configuration for the coordinator, specifying computational resources and other settings."""
308
+
309
+ @property
310
+ def worker_config(self) -> global___WorkerConfig:
311
+ """Configuration for worker nodes, including scaling policy and computational resources."""
312
+
313
+ @property
314
+ def retry_policy(self) -> global___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___CoordinatorConfig | None = ...,
321
+ worker_config: global___WorkerConfig | None = ...,
322
+ version: builtins.str = ...,
323
+ retry_policy: global___RetryPolicyConfig | None = ...,
324
+ ) -> None: ...
325
+ def HasField(self, field_name: typing.Literal["coordinator_config", b"coordinator_config", "retry_policy", b"retry_policy", "worker_config", b"worker_config"]) -> builtins.bool: ...
326
+ def ClearField(self, field_name: typing.Literal["coordinator_config", b"coordinator_config", "retry_policy", b"retry_policy", "version", b"version", "worker_config", b"worker_config"]) -> None: ...
327
+
328
+ global___TrinoConfig = TrinoConfig
329
+
330
+ @typing.final
331
+ class CoordinatorConfig(google.protobuf.message.Message):
332
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
333
+
334
+ RESOURCES_FIELD_NUMBER: builtins.int
335
+ @property
336
+ def resources(self) -> global___Resources:
337
+ """Configuration for computational resources assigned to the coordinator instance."""
338
+
339
+ def __init__(
340
+ self,
341
+ *,
342
+ resources: global___Resources | None = ...,
343
+ ) -> None: ...
344
+ def HasField(self, field_name: typing.Literal["resources", b"resources"]) -> builtins.bool: ...
345
+ def ClearField(self, field_name: typing.Literal["resources", b"resources"]) -> None: ...
346
+
347
+ global___CoordinatorConfig = CoordinatorConfig
348
+
349
+ @typing.final
350
+ class WorkerConfig(google.protobuf.message.Message):
351
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
352
+
353
+ @typing.final
354
+ class WorkerScalePolicy(google.protobuf.message.Message):
355
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
356
+
357
+ FIXED_SCALE_FIELD_NUMBER: builtins.int
358
+ AUTO_SCALE_FIELD_NUMBER: builtins.int
359
+ @property
360
+ def fixed_scale(self) -> global___FixedScalePolicy:
361
+ """A fixed scaling policy that specifies a fixed number of worker instances."""
362
+
363
+ @property
364
+ def auto_scale(self) -> global___AutoScalePolicy:
365
+ """A scaling policy that dynamically adjusts the number of worker instances
366
+ based on the cluster's workload. The system automatically increases or
367
+ decreases the number of instances within the defined range.
368
+ """
369
+
370
+ def __init__(
371
+ self,
372
+ *,
373
+ fixed_scale: global___FixedScalePolicy | None = ...,
374
+ auto_scale: global___AutoScalePolicy | None = ...,
375
+ ) -> None: ...
376
+ def HasField(self, field_name: typing.Literal["auto_scale", b"auto_scale", "fixed_scale", b"fixed_scale", "scale_type", b"scale_type"]) -> builtins.bool: ...
377
+ def ClearField(self, field_name: typing.Literal["auto_scale", b"auto_scale", "fixed_scale", b"fixed_scale", "scale_type", b"scale_type"]) -> None: ...
378
+ def WhichOneof(self, oneof_group: typing.Literal["scale_type", b"scale_type"]) -> typing.Literal["fixed_scale", "auto_scale"] | None: ...
379
+
380
+ RESOURCES_FIELD_NUMBER: builtins.int
381
+ SCALE_POLICY_FIELD_NUMBER: builtins.int
382
+ @property
383
+ def resources(self) -> global___Resources:
384
+ """Configuration for computational resources for worker instances."""
385
+
386
+ @property
387
+ def scale_policy(self) -> global___WorkerConfig.WorkerScalePolicy:
388
+ """Configuration for scaling policy for worker instances."""
389
+
390
+ def __init__(
391
+ self,
392
+ *,
393
+ resources: global___Resources | None = ...,
394
+ scale_policy: global___WorkerConfig.WorkerScalePolicy | None = ...,
395
+ ) -> None: ...
396
+ def HasField(self, field_name: typing.Literal["resources", b"resources", "scale_policy", b"scale_policy"]) -> builtins.bool: ...
397
+ def ClearField(self, field_name: typing.Literal["resources", b"resources", "scale_policy", b"scale_policy"]) -> None: ...
398
+
399
+ global___WorkerConfig = WorkerConfig
400
+
401
+ @typing.final
402
+ class RetryPolicyConfig(google.protobuf.message.Message):
403
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
404
+
405
+ class _RetryPolicy:
406
+ ValueType = typing.NewType("ValueType", builtins.int)
407
+ V: typing_extensions.TypeAlias = ValueType
408
+
409
+ class _RetryPolicyEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[RetryPolicyConfig._RetryPolicy.ValueType], builtins.type):
410
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
411
+ RETRY_POLICY_UNSPECIFIED: RetryPolicyConfig._RetryPolicy.ValueType # 0
412
+ QUERY: RetryPolicyConfig._RetryPolicy.ValueType # 1
413
+ TASK: RetryPolicyConfig._RetryPolicy.ValueType # 2
414
+
415
+ class RetryPolicy(_RetryPolicy, metaclass=_RetryPolicyEnumTypeWrapper): ...
416
+ RETRY_POLICY_UNSPECIFIED: RetryPolicyConfig.RetryPolicy.ValueType # 0
417
+ QUERY: RetryPolicyConfig.RetryPolicy.ValueType # 1
418
+ TASK: RetryPolicyConfig.RetryPolicy.ValueType # 2
419
+
420
+ @typing.final
421
+ class AdditionalPropertiesEntry(google.protobuf.message.Message):
422
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
423
+
424
+ KEY_FIELD_NUMBER: builtins.int
425
+ VALUE_FIELD_NUMBER: builtins.int
426
+ key: builtins.str
427
+ value: builtins.str
428
+ def __init__(
429
+ self,
430
+ *,
431
+ key: builtins.str = ...,
432
+ value: builtins.str = ...,
433
+ ) -> None: ...
434
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
435
+
436
+ POLICY_FIELD_NUMBER: builtins.int
437
+ EXCHANGE_MANAGER_FIELD_NUMBER: builtins.int
438
+ ADDITIONAL_PROPERTIES_FIELD_NUMBER: builtins.int
439
+ policy: global___RetryPolicyConfig.RetryPolicy.ValueType
440
+ """Retry policy level."""
441
+ @property
442
+ def exchange_manager(self) -> global___ExchangeManagerConfig:
443
+ """Configuration for exchange manager."""
444
+
445
+ @property
446
+ def additional_properties(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
447
+ """Additional properties."""
448
+
449
+ def __init__(
450
+ self,
451
+ *,
452
+ policy: global___RetryPolicyConfig.RetryPolicy.ValueType = ...,
453
+ exchange_manager: global___ExchangeManagerConfig | None = ...,
454
+ additional_properties: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
455
+ ) -> None: ...
456
+ def HasField(self, field_name: typing.Literal["exchange_manager", b"exchange_manager"]) -> builtins.bool: ...
457
+ def ClearField(self, field_name: typing.Literal["additional_properties", b"additional_properties", "exchange_manager", b"exchange_manager", "policy", b"policy"]) -> None: ...
458
+
459
+ global___RetryPolicyConfig = RetryPolicyConfig
460
+
461
+ @typing.final
462
+ class ExchangeManagerStorage(google.protobuf.message.Message):
463
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
464
+
465
+ @typing.final
466
+ class ServiceS3(google.protobuf.message.Message):
467
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
468
+
469
+ def __init__(
470
+ self,
471
+ ) -> None: ...
472
+
473
+ SERVICE_S3_FIELD_NUMBER: builtins.int
474
+ @property
475
+ def service_s3(self) -> global___ExchangeManagerStorage.ServiceS3:
476
+ """Use service side s3 bucket for exchange manager."""
477
+
478
+ def __init__(
479
+ self,
480
+ *,
481
+ service_s3: global___ExchangeManagerStorage.ServiceS3 | None = ...,
482
+ ) -> None: ...
483
+ def HasField(self, field_name: typing.Literal["service_s3", b"service_s3", "type", b"type"]) -> builtins.bool: ...
484
+ def ClearField(self, field_name: typing.Literal["service_s3", b"service_s3", "type", b"type"]) -> None: ...
485
+ def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["service_s3"] | None: ...
486
+
487
+ global___ExchangeManagerStorage = ExchangeManagerStorage
488
+
489
+ @typing.final
490
+ class ExchangeManagerConfig(google.protobuf.message.Message):
491
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
492
+
493
+ @typing.final
494
+ class AdditionalPropertiesEntry(google.protobuf.message.Message):
495
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
496
+
497
+ KEY_FIELD_NUMBER: builtins.int
498
+ VALUE_FIELD_NUMBER: builtins.int
499
+ key: builtins.str
500
+ value: builtins.str
501
+ def __init__(
502
+ self,
503
+ *,
504
+ key: builtins.str = ...,
505
+ value: builtins.str = ...,
506
+ ) -> None: ...
507
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
508
+
509
+ ADDITIONAL_PROPERTIES_FIELD_NUMBER: builtins.int
510
+ STORAGE_FIELD_NUMBER: builtins.int
511
+ @property
512
+ def additional_properties(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
513
+ """Additional properties."""
514
+
515
+ @property
516
+ def storage(self) -> global___ExchangeManagerStorage: ...
517
+ def __init__(
518
+ self,
519
+ *,
520
+ additional_properties: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
521
+ storage: global___ExchangeManagerStorage | None = ...,
522
+ ) -> None: ...
523
+ def HasField(self, field_name: typing.Literal["storage", b"storage"]) -> builtins.bool: ...
524
+ def ClearField(self, field_name: typing.Literal["additional_properties", b"additional_properties", "storage", b"storage"]) -> None: ...
525
+
526
+ global___ExchangeManagerConfig = ExchangeManagerConfig
527
+
528
+ @typing.final
529
+ class Resources(google.protobuf.message.Message):
530
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
531
+
532
+ RESOURCE_PRESET_ID_FIELD_NUMBER: builtins.int
533
+ resource_preset_id: builtins.str
534
+ """ID of the preset for computational resources allocated to a instance (e.g., CPU, memory, etc.)."""
535
+ def __init__(
536
+ self,
537
+ *,
538
+ resource_preset_id: builtins.str = ...,
539
+ ) -> None: ...
540
+ def ClearField(self, field_name: typing.Literal["resource_preset_id", b"resource_preset_id"]) -> None: ...
541
+
542
+ global___Resources = Resources
543
+
544
+ @typing.final
545
+ class FixedScalePolicy(google.protobuf.message.Message):
546
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
547
+
548
+ COUNT_FIELD_NUMBER: builtins.int
549
+ count: builtins.int
550
+ """Specifies the number of worker instances."""
551
+ def __init__(
552
+ self,
553
+ *,
554
+ count: builtins.int = ...,
555
+ ) -> None: ...
556
+ def ClearField(self, field_name: typing.Literal["count", b"count"]) -> None: ...
557
+
558
+ global___FixedScalePolicy = FixedScalePolicy
559
+
560
+ @typing.final
561
+ class AutoScalePolicy(google.protobuf.message.Message):
562
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
563
+
564
+ MIN_COUNT_FIELD_NUMBER: builtins.int
565
+ MAX_COUNT_FIELD_NUMBER: builtins.int
566
+ min_count: builtins.int
567
+ max_count: builtins.int
568
+ def __init__(
569
+ self,
570
+ *,
571
+ min_count: builtins.int = ...,
572
+ max_count: builtins.int = ...,
573
+ ) -> None: ...
574
+ def ClearField(self, field_name: typing.Literal["max_count", b"max_count", "min_count", b"min_count"]) -> None: ...
575
+
576
+ global___AutoScalePolicy = AutoScalePolicy
@@ -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/trino/v1/cluster_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
+ ...