From 62f546793ba36f64305527f4781c2a963ca34e6a Mon Sep 17 00:00:00 2001 From: Vadim Vladimirov Date: Tue, 29 Apr 2025 01:47:16 +0700 Subject: [PATCH 1/2] feat: regenerate proto --- cloudapi | 2 +- yandex/cloud/mdb/kafka/v1/cluster_pb2.py | 32 +- yandex/cloud/mdb/kafka/v1/cluster_pb2.pyi | 2 + yandex/cloud/mdb/kafka/v1/topic_pb2.py | 20 +- yandex/cloud/mdb/kafka/v1/topic_pb2.pyi | 2 + yandex/cloud/trino/__init__.py | 0 yandex/cloud/trino/v1/__init__.py | 0 yandex/cloud/trino/v1/cluster_pb2.py | 119 ++++ yandex/cloud/trino/v1/cluster_pb2.pyi | 576 +++++++++++++++++ yandex/cloud/trino/v1/cluster_pb2_grpc.py | 24 + yandex/cloud/trino/v1/cluster_pb2_grpc.pyi | 17 + yandex/cloud/trino/v1/cluster_service_pb2.py | 162 +++++ yandex/cloud/trino/v1/cluster_service_pb2.pyi | 597 ++++++++++++++++++ .../trino/v1/cluster_service_pb2_grpc.py | 411 ++++++++++++ .../trino/v1/cluster_service_pb2_grpc.pyi | 192 ++++++ yandex/cloud/trino/v1/maintenance_pb2.py | 53 ++ yandex/cloud/trino/v1/maintenance_pb2.pyi | 123 ++++ yandex/cloud/trino/v1/maintenance_pb2_grpc.py | 24 + .../cloud/trino/v1/maintenance_pb2_grpc.pyi | 17 + 19 files changed, 2350 insertions(+), 23 deletions(-) create mode 100644 yandex/cloud/trino/__init__.py create mode 100644 yandex/cloud/trino/v1/__init__.py create mode 100644 yandex/cloud/trino/v1/cluster_pb2.py create mode 100644 yandex/cloud/trino/v1/cluster_pb2.pyi create mode 100644 yandex/cloud/trino/v1/cluster_pb2_grpc.py create mode 100644 yandex/cloud/trino/v1/cluster_pb2_grpc.pyi create mode 100644 yandex/cloud/trino/v1/cluster_service_pb2.py create mode 100644 yandex/cloud/trino/v1/cluster_service_pb2.pyi create mode 100644 yandex/cloud/trino/v1/cluster_service_pb2_grpc.py create mode 100644 yandex/cloud/trino/v1/cluster_service_pb2_grpc.pyi create mode 100644 yandex/cloud/trino/v1/maintenance_pb2.py create mode 100644 yandex/cloud/trino/v1/maintenance_pb2.pyi create mode 100644 yandex/cloud/trino/v1/maintenance_pb2_grpc.py create mode 100644 yandex/cloud/trino/v1/maintenance_pb2_grpc.pyi diff --git a/cloudapi b/cloudapi index 38e233f5..8f9eece5 160000 --- a/cloudapi +++ b/cloudapi @@ -1 +1 @@ -Subproject commit 38e233f5b4bd1e992004d54d5910094c1fd3b7bd +Subproject commit 8f9eece5a3eb31c494144070798fb239f6889e5b diff --git a/yandex/cloud/mdb/kafka/v1/cluster_pb2.py b/yandex/cloud/mdb/kafka/v1/cluster_pb2.py index b00e7edb..8404dd2f 100644 --- a/yandex/cloud/mdb/kafka/v1/cluster_pb2.py +++ b/yandex/cloud/mdb/kafka/v1/cluster_pb2.py @@ -30,7 +30,7 @@ from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'yandex/cloud/mdb/kafka/v1/cluster.proto\x12\x19yandex.cloud.mdb.kafka.v1\x1a google/protobuf/descriptor.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a&yandex/cloud/mdb/kafka/v1/common.proto\x1a+yandex/cloud/mdb/kafka/v1/maintenance.proto\x1a\x1dyandex/cloud/validation.proto\"\x99\x08\n\x07\x43luster\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfolder_id\x18\x02 \x01(\t\x12.\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12>\n\x06labels\x18\x06 \x03(\x0b\x32..yandex.cloud.mdb.kafka.v1.Cluster.LabelsEntry\x12\x43\n\x0b\x65nvironment\x18\x07 \x01(\x0e\x32..yandex.cloud.mdb.kafka.v1.Cluster.Environment\x12\x39\n\nmonitoring\x18\x08 \x03(\x0b\x32%.yandex.cloud.mdb.kafka.v1.Monitoring\x12\x35\n\x06\x63onfig\x18\t \x01(\x0b\x32%.yandex.cloud.mdb.kafka.v1.ConfigSpec\x12\x12\n\nnetwork_id\x18\n \x01(\t\x12\x39\n\x06health\x18\x0b \x01(\x0e\x32).yandex.cloud.mdb.kafka.v1.Cluster.Health\x12\x39\n\x06status\x18\x0c \x01(\x0e\x32).yandex.cloud.mdb.kafka.v1.Cluster.Status\x12\x1a\n\x12security_group_ids\x18\r \x03(\t\x12\x16\n\x0ehost_group_ids\x18\x0e \x03(\t\x12\x1b\n\x13\x64\x65letion_protection\x18\x0f \x01(\x08\x12H\n\x12maintenance_window\x18\x10 \x01(\x0b\x32,.yandex.cloud.mdb.kafka.v1.MaintenanceWindow\x12J\n\x11planned_operation\x18\x11 \x01(\x0b\x32/.yandex.cloud.mdb.kafka.v1.MaintenanceOperation\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"I\n\x0b\x45nvironment\x12\x1b\n\x17\x45NVIRONMENT_UNSPECIFIED\x10\x00\x12\x0e\n\nPRODUCTION\x10\x01\x12\r\n\tPRESTABLE\x10\x02\"?\n\x06Health\x12\x12\n\x0eHEALTH_UNKNOWN\x10\x00\x12\t\n\x05\x41LIVE\x10\x01\x12\x08\n\x04\x44\x45\x41\x44\x10\x02\x12\x0c\n\x08\x44\x45GRADED\x10\x03\"y\n\x06Status\x12\x12\n\x0eSTATUS_UNKNOWN\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\x0c\n\x08UPDATING\x10\x04\x12\x0c\n\x08STOPPING\x10\x05\x12\x0b\n\x07STOPPED\x10\x06\x12\x0c\n\x08STARTING\x10\x07\"=\n\nMonitoring\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0c\n\x04link\x18\x03 \x01(\t\"\xec\x07\n\nConfigSpec\x12\x0f\n\x07version\x18\x01 \x01(\t\x12:\n\x05kafka\x18\x02 \x01(\x0b\x32+.yandex.cloud.mdb.kafka.v1.ConfigSpec.Kafka\x12\x42\n\tzookeeper\x18\x03 \x01(\x0b\x32/.yandex.cloud.mdb.kafka.v1.ConfigSpec.Zookeeper\x12\x0f\n\x07zone_id\x18\x04 \x03(\t\x12\x32\n\rbrokers_count\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x18\n\x10\x61ssign_public_ip\x18\x06 \x01(\x08\x12\x1c\n\x10unmanaged_topics\x18\x07 \x01(\x08\x42\x02\x18\x01\x12\x17\n\x0fschema_registry\x18\x08 \x01(\x08\x12\x31\n\x06\x61\x63\x63\x65ss\x18\t \x01(\x0b\x32!.yandex.cloud.mdb.kafka.v1.Access\x12L\n\x0frest_api_config\x18\n \x01(\x0b\x32\x33.yandex.cloud.mdb.kafka.v1.ConfigSpec.RestAPIConfig\x12M\n\x15\x64isk_size_autoscaling\x18\x0b \x01(\x0b\x32..yandex.cloud.mdb.kafka.v1.DiskSizeAutoscaling\x12:\n\x05kraft\x18\x0c \x01(\x0b\x32+.yandex.cloud.mdb.kafka.v1.ConfigSpec.KRaft\x1a\x80\x02\n\x05Kafka\x12\x37\n\tresources\x18\x01 \x01(\x0b\x32$.yandex.cloud.mdb.kafka.v1.Resources\x12V\n\x10kafka_config_2_8\x18\x04 \x01(\x0b\x32).yandex.cloud.mdb.kafka.v1.KafkaConfig2_8H\x00R\x0fkafkaConfig_2_8\x12P\n\x0ekafka_config_3\x18\x05 \x01(\x0b\x32\'.yandex.cloud.mdb.kafka.v1.KafkaConfig3H\x00R\rkafkaConfig_3B\x0e\n\x0ckafka_configJ\x04\x08\x02\x10\x04\x1a\x44\n\tZookeeper\x12\x37\n\tresources\x18\x01 \x01(\x0b\x32$.yandex.cloud.mdb.kafka.v1.Resources\x1a@\n\x05KRaft\x12\x37\n\tresources\x18\x01 \x01(\x0b\x32$.yandex.cloud.mdb.kafka.v1.Resources\x1a \n\rRestAPIConfig\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\"P\n\tResources\x12\x1a\n\x12resource_preset_id\x18\x01 \x01(\t\x12\x11\n\tdisk_size\x18\x02 \x01(\x03\x12\x14\n\x0c\x64isk_type_id\x18\x03 \x01(\t\"\xc0\t\n\x0eKafkaConfig2_8\x12\x44\n\x10\x63ompression_type\x18\x01 \x01(\x0e\x32*.yandex.cloud.mdb.kafka.v1.CompressionType\x12@\n\x1blog_flush_interval_messages\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x15log_flush_interval_ms\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x44\n\x1flog_flush_scheduler_interval_ms\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x13log_retention_bytes\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x13log_retention_hours\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x15log_retention_minutes\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x35\n\x10log_retention_ms\x18\x08 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11log_segment_bytes\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\x0flog_preallocate\x18\n \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12=\n\x18socket_send_buffer_bytes\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12@\n\x1bsocket_receive_buffer_bytes\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12=\n\x19\x61uto_create_topics_enable\x18\r \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x33\n\x0enum_partitions\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12?\n\x1a\x64\x65\x66\x61ult_replication_factor\x18\x0f \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11message_max_bytes\x18\x10 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12<\n\x17replica_fetch_max_bytes\x18\x11 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x19\n\x11ssl_cipher_suites\x18\x12 \x03(\t\x12>\n\x19offsets_retention_minutes\x18\x13 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12I\n\x17sasl_enabled_mechanisms\x18\x14 \x03(\x0e\x32(.yandex.cloud.mdb.kafka.v1.SaslMechanism\"\xbe\t\n\x0cKafkaConfig3\x12\x44\n\x10\x63ompression_type\x18\x01 \x01(\x0e\x32*.yandex.cloud.mdb.kafka.v1.CompressionType\x12@\n\x1blog_flush_interval_messages\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x15log_flush_interval_ms\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x44\n\x1flog_flush_scheduler_interval_ms\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x13log_retention_bytes\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x13log_retention_hours\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x15log_retention_minutes\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x35\n\x10log_retention_ms\x18\x08 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11log_segment_bytes\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\x0flog_preallocate\x18\n \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12=\n\x18socket_send_buffer_bytes\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12@\n\x1bsocket_receive_buffer_bytes\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12=\n\x19\x61uto_create_topics_enable\x18\r \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x33\n\x0enum_partitions\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12?\n\x1a\x64\x65\x66\x61ult_replication_factor\x18\x0f \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11message_max_bytes\x18\x10 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12<\n\x17replica_fetch_max_bytes\x18\x11 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x19\n\x11ssl_cipher_suites\x18\x12 \x03(\t\x12>\n\x19offsets_retention_minutes\x18\x13 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12I\n\x17sasl_enabled_mechanisms\x18\x14 \x03(\x0e\x32(.yandex.cloud.mdb.kafka.v1.SaslMechanism\"\x83\x03\n\x04Host\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\ncluster_id\x18\x02 \x01(\t\x12\x0f\n\x07zone_id\x18\x03 \x01(\t\x12\x32\n\x04role\x18\x04 \x01(\x0e\x32$.yandex.cloud.mdb.kafka.v1.Host.Role\x12\x37\n\tresources\x18\x05 \x01(\x0b\x32$.yandex.cloud.mdb.kafka.v1.Resources\x12\x36\n\x06health\x18\x06 \x01(\x0e\x32&.yandex.cloud.mdb.kafka.v1.Host.Health\x12\x11\n\tsubnet_id\x18\x08 \x01(\t\x12\x18\n\x10\x61ssign_public_ip\x18\t \x01(\x08\"6\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\t\n\x05KAFKA\x10\x01\x12\r\n\tZOOKEEPER\x10\x02\"8\n\x06Health\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05\x41LIVE\x10\x01\x12\x08\n\x04\x44\x45\x41\x44\x10\x02\x12\x0c\n\x08\x44\x45GRADED\x10\x03J\x04\x08\x07\x10\x08\"\x1f\n\x06\x41\x63\x63\x65ss\x12\x15\n\rdata_transfer\x18\x01 \x01(\x08\"\x90\x01\n\x13\x44iskSizeAutoscaling\x12.\n\x17planned_usage_threshold\x18\x01 \x01(\x03\x42\r\xe8\xc7\x31\x00\xfa\xc7\x31\x05\x30-100\x12\x30\n\x19\x65mergency_usage_threshold\x18\x02 \x01(\x03\x42\r\xe8\xc7\x31\x00\xfa\xc7\x31\x05\x30-100\x12\x17\n\x0f\x64isk_size_limit\x18\x03 \x01(\x03\x42\x64\n\x1dyandex.cloud.api.mdb.kafka.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/kafka/v1;kafkab\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'yandex/cloud/mdb/kafka/v1/cluster.proto\x12\x19yandex.cloud.mdb.kafka.v1\x1a google/protobuf/descriptor.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a&yandex/cloud/mdb/kafka/v1/common.proto\x1a+yandex/cloud/mdb/kafka/v1/maintenance.proto\x1a\x1dyandex/cloud/validation.proto\"\x99\x08\n\x07\x43luster\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfolder_id\x18\x02 \x01(\t\x12.\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12>\n\x06labels\x18\x06 \x03(\x0b\x32..yandex.cloud.mdb.kafka.v1.Cluster.LabelsEntry\x12\x43\n\x0b\x65nvironment\x18\x07 \x01(\x0e\x32..yandex.cloud.mdb.kafka.v1.Cluster.Environment\x12\x39\n\nmonitoring\x18\x08 \x03(\x0b\x32%.yandex.cloud.mdb.kafka.v1.Monitoring\x12\x35\n\x06\x63onfig\x18\t \x01(\x0b\x32%.yandex.cloud.mdb.kafka.v1.ConfigSpec\x12\x12\n\nnetwork_id\x18\n \x01(\t\x12\x39\n\x06health\x18\x0b \x01(\x0e\x32).yandex.cloud.mdb.kafka.v1.Cluster.Health\x12\x39\n\x06status\x18\x0c \x01(\x0e\x32).yandex.cloud.mdb.kafka.v1.Cluster.Status\x12\x1a\n\x12security_group_ids\x18\r \x03(\t\x12\x16\n\x0ehost_group_ids\x18\x0e \x03(\t\x12\x1b\n\x13\x64\x65letion_protection\x18\x0f \x01(\x08\x12H\n\x12maintenance_window\x18\x10 \x01(\x0b\x32,.yandex.cloud.mdb.kafka.v1.MaintenanceWindow\x12J\n\x11planned_operation\x18\x11 \x01(\x0b\x32/.yandex.cloud.mdb.kafka.v1.MaintenanceOperation\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"I\n\x0b\x45nvironment\x12\x1b\n\x17\x45NVIRONMENT_UNSPECIFIED\x10\x00\x12\x0e\n\nPRODUCTION\x10\x01\x12\r\n\tPRESTABLE\x10\x02\"?\n\x06Health\x12\x12\n\x0eHEALTH_UNKNOWN\x10\x00\x12\t\n\x05\x41LIVE\x10\x01\x12\x08\n\x04\x44\x45\x41\x44\x10\x02\x12\x0c\n\x08\x44\x45GRADED\x10\x03\"y\n\x06Status\x12\x12\n\x0eSTATUS_UNKNOWN\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\x0c\n\x08UPDATING\x10\x04\x12\x0c\n\x08STOPPING\x10\x05\x12\x0b\n\x07STOPPED\x10\x06\x12\x0c\n\x08STARTING\x10\x07\"=\n\nMonitoring\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0c\n\x04link\x18\x03 \x01(\t\"\xec\x07\n\nConfigSpec\x12\x0f\n\x07version\x18\x01 \x01(\t\x12:\n\x05kafka\x18\x02 \x01(\x0b\x32+.yandex.cloud.mdb.kafka.v1.ConfigSpec.Kafka\x12\x42\n\tzookeeper\x18\x03 \x01(\x0b\x32/.yandex.cloud.mdb.kafka.v1.ConfigSpec.Zookeeper\x12\x0f\n\x07zone_id\x18\x04 \x03(\t\x12\x32\n\rbrokers_count\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x18\n\x10\x61ssign_public_ip\x18\x06 \x01(\x08\x12\x1c\n\x10unmanaged_topics\x18\x07 \x01(\x08\x42\x02\x18\x01\x12\x17\n\x0fschema_registry\x18\x08 \x01(\x08\x12\x31\n\x06\x61\x63\x63\x65ss\x18\t \x01(\x0b\x32!.yandex.cloud.mdb.kafka.v1.Access\x12L\n\x0frest_api_config\x18\n \x01(\x0b\x32\x33.yandex.cloud.mdb.kafka.v1.ConfigSpec.RestAPIConfig\x12M\n\x15\x64isk_size_autoscaling\x18\x0b \x01(\x0b\x32..yandex.cloud.mdb.kafka.v1.DiskSizeAutoscaling\x12:\n\x05kraft\x18\x0c \x01(\x0b\x32+.yandex.cloud.mdb.kafka.v1.ConfigSpec.KRaft\x1a\x80\x02\n\x05Kafka\x12\x37\n\tresources\x18\x01 \x01(\x0b\x32$.yandex.cloud.mdb.kafka.v1.Resources\x12V\n\x10kafka_config_2_8\x18\x04 \x01(\x0b\x32).yandex.cloud.mdb.kafka.v1.KafkaConfig2_8H\x00R\x0fkafkaConfig_2_8\x12P\n\x0ekafka_config_3\x18\x05 \x01(\x0b\x32\'.yandex.cloud.mdb.kafka.v1.KafkaConfig3H\x00R\rkafkaConfig_3B\x0e\n\x0ckafka_configJ\x04\x08\x02\x10\x04\x1a\x44\n\tZookeeper\x12\x37\n\tresources\x18\x01 \x01(\x0b\x32$.yandex.cloud.mdb.kafka.v1.Resources\x1a@\n\x05KRaft\x12\x37\n\tresources\x18\x01 \x01(\x0b\x32$.yandex.cloud.mdb.kafka.v1.Resources\x1a \n\rRestAPIConfig\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\"P\n\tResources\x12\x1a\n\x12resource_preset_id\x18\x01 \x01(\t\x12\x11\n\tdisk_size\x18\x02 \x01(\x03\x12\x14\n\x0c\x64isk_type_id\x18\x03 \x01(\t\"\xc4\t\n\x0eKafkaConfig2_8\x12\x44\n\x10\x63ompression_type\x18\x01 \x01(\x0e\x32*.yandex.cloud.mdb.kafka.v1.CompressionType\x12@\n\x1blog_flush_interval_messages\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x15log_flush_interval_ms\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x44\n\x1flog_flush_scheduler_interval_ms\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x13log_retention_bytes\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x13log_retention_hours\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x15log_retention_minutes\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x35\n\x10log_retention_ms\x18\x08 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11log_segment_bytes\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x37\n\x0flog_preallocate\x18\n \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x02\x18\x01\x12=\n\x18socket_send_buffer_bytes\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12@\n\x1bsocket_receive_buffer_bytes\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12=\n\x19\x61uto_create_topics_enable\x18\r \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x33\n\x0enum_partitions\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12?\n\x1a\x64\x65\x66\x61ult_replication_factor\x18\x0f \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11message_max_bytes\x18\x10 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12<\n\x17replica_fetch_max_bytes\x18\x11 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x19\n\x11ssl_cipher_suites\x18\x12 \x03(\t\x12>\n\x19offsets_retention_minutes\x18\x13 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12I\n\x17sasl_enabled_mechanisms\x18\x14 \x03(\x0e\x32(.yandex.cloud.mdb.kafka.v1.SaslMechanism\"\xc2\t\n\x0cKafkaConfig3\x12\x44\n\x10\x63ompression_type\x18\x01 \x01(\x0e\x32*.yandex.cloud.mdb.kafka.v1.CompressionType\x12@\n\x1blog_flush_interval_messages\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x15log_flush_interval_ms\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x44\n\x1flog_flush_scheduler_interval_ms\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x13log_retention_bytes\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x13log_retention_hours\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x15log_retention_minutes\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x35\n\x10log_retention_ms\x18\x08 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11log_segment_bytes\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x37\n\x0flog_preallocate\x18\n \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x02\x18\x01\x12=\n\x18socket_send_buffer_bytes\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12@\n\x1bsocket_receive_buffer_bytes\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12=\n\x19\x61uto_create_topics_enable\x18\r \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x33\n\x0enum_partitions\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12?\n\x1a\x64\x65\x66\x61ult_replication_factor\x18\x0f \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11message_max_bytes\x18\x10 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12<\n\x17replica_fetch_max_bytes\x18\x11 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x19\n\x11ssl_cipher_suites\x18\x12 \x03(\t\x12>\n\x19offsets_retention_minutes\x18\x13 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12I\n\x17sasl_enabled_mechanisms\x18\x14 \x03(\x0e\x32(.yandex.cloud.mdb.kafka.v1.SaslMechanism\"\x83\x03\n\x04Host\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\ncluster_id\x18\x02 \x01(\t\x12\x0f\n\x07zone_id\x18\x03 \x01(\t\x12\x32\n\x04role\x18\x04 \x01(\x0e\x32$.yandex.cloud.mdb.kafka.v1.Host.Role\x12\x37\n\tresources\x18\x05 \x01(\x0b\x32$.yandex.cloud.mdb.kafka.v1.Resources\x12\x36\n\x06health\x18\x06 \x01(\x0e\x32&.yandex.cloud.mdb.kafka.v1.Host.Health\x12\x11\n\tsubnet_id\x18\x08 \x01(\t\x12\x18\n\x10\x61ssign_public_ip\x18\t \x01(\x08\"6\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\t\n\x05KAFKA\x10\x01\x12\r\n\tZOOKEEPER\x10\x02\"8\n\x06Health\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05\x41LIVE\x10\x01\x12\x08\n\x04\x44\x45\x41\x44\x10\x02\x12\x0c\n\x08\x44\x45GRADED\x10\x03J\x04\x08\x07\x10\x08\"\x1f\n\x06\x41\x63\x63\x65ss\x12\x15\n\rdata_transfer\x18\x01 \x01(\x08\"\x90\x01\n\x13\x44iskSizeAutoscaling\x12.\n\x17planned_usage_threshold\x18\x01 \x01(\x03\x42\r\xe8\xc7\x31\x00\xfa\xc7\x31\x05\x30-100\x12\x30\n\x19\x65mergency_usage_threshold\x18\x02 \x01(\x03\x42\r\xe8\xc7\x31\x00\xfa\xc7\x31\x05\x30-100\x12\x17\n\x0f\x64isk_size_limit\x18\x03 \x01(\x03\x42\x64\n\x1dyandex.cloud.api.mdb.kafka.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/kafka/v1;kafkab\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -42,6 +42,10 @@ _globals['_CLUSTER_LABELSENTRY']._serialized_options = b'8\001' _globals['_CONFIGSPEC'].fields_by_name['unmanaged_topics']._loaded_options = None _globals['_CONFIGSPEC'].fields_by_name['unmanaged_topics']._serialized_options = b'\030\001' + _globals['_KAFKACONFIG2_8'].fields_by_name['log_preallocate']._loaded_options = None + _globals['_KAFKACONFIG2_8'].fields_by_name['log_preallocate']._serialized_options = b'\030\001' + _globals['_KAFKACONFIG3'].fields_by_name['log_preallocate']._loaded_options = None + _globals['_KAFKACONFIG3'].fields_by_name['log_preallocate']._serialized_options = b'\030\001' _globals['_DISKSIZEAUTOSCALING'].fields_by_name['planned_usage_threshold']._loaded_options = None _globals['_DISKSIZEAUTOSCALING'].fields_by_name['planned_usage_threshold']._serialized_options = b'\350\3071\000\372\3071\0050-100' _globals['_DISKSIZEAUTOSCALING'].fields_by_name['emergency_usage_threshold']._loaded_options = None @@ -71,17 +75,17 @@ _globals['_RESOURCES']._serialized_start=2407 _globals['_RESOURCES']._serialized_end=2487 _globals['_KAFKACONFIG2_8']._serialized_start=2490 - _globals['_KAFKACONFIG2_8']._serialized_end=3706 - _globals['_KAFKACONFIG3']._serialized_start=3709 - _globals['_KAFKACONFIG3']._serialized_end=4923 - _globals['_HOST']._serialized_start=4926 - _globals['_HOST']._serialized_end=5313 - _globals['_HOST_ROLE']._serialized_start=5195 - _globals['_HOST_ROLE']._serialized_end=5249 - _globals['_HOST_HEALTH']._serialized_start=5251 - _globals['_HOST_HEALTH']._serialized_end=5307 - _globals['_ACCESS']._serialized_start=5315 - _globals['_ACCESS']._serialized_end=5346 - _globals['_DISKSIZEAUTOSCALING']._serialized_start=5349 - _globals['_DISKSIZEAUTOSCALING']._serialized_end=5493 + _globals['_KAFKACONFIG2_8']._serialized_end=3710 + _globals['_KAFKACONFIG3']._serialized_start=3713 + _globals['_KAFKACONFIG3']._serialized_end=4931 + _globals['_HOST']._serialized_start=4934 + _globals['_HOST']._serialized_end=5321 + _globals['_HOST_ROLE']._serialized_start=5203 + _globals['_HOST_ROLE']._serialized_end=5257 + _globals['_HOST_HEALTH']._serialized_start=5259 + _globals['_HOST_HEALTH']._serialized_end=5315 + _globals['_ACCESS']._serialized_start=5323 + _globals['_ACCESS']._serialized_end=5354 + _globals['_DISKSIZEAUTOSCALING']._serialized_start=5357 + _globals['_DISKSIZEAUTOSCALING']._serialized_end=5501 # @@protoc_insertion_point(module_scope) diff --git a/yandex/cloud/mdb/kafka/v1/cluster_pb2.pyi b/yandex/cloud/mdb/kafka/v1/cluster_pb2.pyi index 6cd7aa10..537899b0 100644 --- a/yandex/cloud/mdb/kafka/v1/cluster_pb2.pyi +++ b/yandex/cloud/mdb/kafka/v1/cluster_pb2.pyi @@ -531,6 +531,7 @@ class KafkaConfig2_8(google.protobuf.message.Message): """Should pre allocate file when create new segment? This is the global cluster-level setting that can be overridden on a topic level by using the [TopicConfig2_8.preallocate] setting. + Deprecated. Feature useless for Yandex Cloud. """ @property @@ -691,6 +692,7 @@ class KafkaConfig3(google.protobuf.message.Message): """Should pre allocate file when create new segment? This is the global cluster-level setting that can be overridden on a topic level by using the [TopicConfig3.preallocate] setting. + Deprecated. Feature useless for Yandex Cloud. """ @property diff --git a/yandex/cloud/mdb/kafka/v1/topic_pb2.py b/yandex/cloud/mdb/kafka/v1/topic_pb2.py index 7598b525..cd22c188 100644 --- a/yandex/cloud/mdb/kafka/v1/topic_pb2.py +++ b/yandex/cloud/mdb/kafka/v1/topic_pb2.py @@ -27,7 +27,7 @@ from yandex.cloud.mdb.kafka.v1 import common_pb2 as yandex_dot_cloud_dot_mdb_dot_kafka_dot_v1_dot_common__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%yandex/cloud/mdb/kafka/v1/topic.proto\x12\x19yandex.cloud.mdb.kafka.v1\x1a google/protobuf/descriptor.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a&yandex/cloud/mdb/kafka/v1/common.proto\"\xd3\x02\n\x05Topic\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\ncluster_id\x18\x02 \x01(\t\x12/\n\npartitions\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x37\n\x12replication_factor\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12V\n\x10topic_config_2_8\x18\x07 \x01(\x0b\x32).yandex.cloud.mdb.kafka.v1.TopicConfig2_8H\x00R\x0ftopicConfig_2_8\x12P\n\x0etopic_config_3\x18\x08 \x01(\x0b\x32\'.yandex.cloud.mdb.kafka.v1.TopicConfig3H\x00R\rtopicConfig_3B\x0e\n\x0ctopic_configJ\x04\x08\x05\x10\x07\"\xc3\x02\n\tTopicSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\npartitions\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x37\n\x12replication_factor\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12V\n\x10topic_config_2_8\x18\x06 \x01(\x0b\x32).yandex.cloud.mdb.kafka.v1.TopicConfig2_8H\x00R\x0ftopicConfig_2_8\x12P\n\x0etopic_config_3\x18\x07 \x01(\x0b\x32\'.yandex.cloud.mdb.kafka.v1.TopicConfig3H\x00R\rtopicConfig_3B\x0e\n\x0ctopic_configJ\x04\x08\x04\x10\x06\"\x8c\x07\n\x0eTopicConfig2_8\x12O\n\x0e\x63leanup_policy\x18\x01 \x01(\x0e\x32\x37.yandex.cloud.mdb.kafka.v1.TopicConfig2_8.CleanupPolicy\x12\x44\n\x10\x63ompression_type\x18\x02 \x01(\x0e\x32*.yandex.cloud.mdb.kafka.v1.CompressionType\x12\x38\n\x13\x64\x65lete_retention_ms\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14\x66ile_delete_delay_ms\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\x0e\x66lush_messages\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12-\n\x08\x66lush_ms\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x15min_compaction_lag_ms\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x34\n\x0fretention_bytes\x18\x08 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x31\n\x0cretention_ms\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11max_message_bytes\x18\n \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x13min_insync_replicas\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\rsegment_bytes\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12/\n\x0bpreallocate\x18\r \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"\x8d\x01\n\rCleanupPolicy\x12\x1e\n\x1a\x43LEANUP_POLICY_UNSPECIFIED\x10\x00\x12\x19\n\x15\x43LEANUP_POLICY_DELETE\x10\x01\x12\x1a\n\x16\x43LEANUP_POLICY_COMPACT\x10\x02\x12%\n!CLEANUP_POLICY_COMPACT_AND_DELETE\x10\x03\"\x88\x07\n\x0cTopicConfig3\x12M\n\x0e\x63leanup_policy\x18\x01 \x01(\x0e\x32\x35.yandex.cloud.mdb.kafka.v1.TopicConfig3.CleanupPolicy\x12\x44\n\x10\x63ompression_type\x18\x02 \x01(\x0e\x32*.yandex.cloud.mdb.kafka.v1.CompressionType\x12\x38\n\x13\x64\x65lete_retention_ms\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14\x66ile_delete_delay_ms\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\x0e\x66lush_messages\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12-\n\x08\x66lush_ms\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x15min_compaction_lag_ms\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x34\n\x0fretention_bytes\x18\x08 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x31\n\x0cretention_ms\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11max_message_bytes\x18\n \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x13min_insync_replicas\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\rsegment_bytes\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12/\n\x0bpreallocate\x18\r \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"\x8d\x01\n\rCleanupPolicy\x12\x1e\n\x1a\x43LEANUP_POLICY_UNSPECIFIED\x10\x00\x12\x19\n\x15\x43LEANUP_POLICY_DELETE\x10\x01\x12\x1a\n\x16\x43LEANUP_POLICY_COMPACT\x10\x02\x12%\n!CLEANUP_POLICY_COMPACT_AND_DELETE\x10\x03\x42\x64\n\x1dyandex.cloud.api.mdb.kafka.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/kafka/v1;kafkab\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%yandex/cloud/mdb/kafka/v1/topic.proto\x12\x19yandex.cloud.mdb.kafka.v1\x1a google/protobuf/descriptor.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a&yandex/cloud/mdb/kafka/v1/common.proto\"\xd3\x02\n\x05Topic\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\ncluster_id\x18\x02 \x01(\t\x12/\n\npartitions\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x37\n\x12replication_factor\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12V\n\x10topic_config_2_8\x18\x07 \x01(\x0b\x32).yandex.cloud.mdb.kafka.v1.TopicConfig2_8H\x00R\x0ftopicConfig_2_8\x12P\n\x0etopic_config_3\x18\x08 \x01(\x0b\x32\'.yandex.cloud.mdb.kafka.v1.TopicConfig3H\x00R\rtopicConfig_3B\x0e\n\x0ctopic_configJ\x04\x08\x05\x10\x07\"\xc3\x02\n\tTopicSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\npartitions\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x37\n\x12replication_factor\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12V\n\x10topic_config_2_8\x18\x06 \x01(\x0b\x32).yandex.cloud.mdb.kafka.v1.TopicConfig2_8H\x00R\x0ftopicConfig_2_8\x12P\n\x0etopic_config_3\x18\x07 \x01(\x0b\x32\'.yandex.cloud.mdb.kafka.v1.TopicConfig3H\x00R\rtopicConfig_3B\x0e\n\x0ctopic_configJ\x04\x08\x04\x10\x06\"\x90\x07\n\x0eTopicConfig2_8\x12O\n\x0e\x63leanup_policy\x18\x01 \x01(\x0e\x32\x37.yandex.cloud.mdb.kafka.v1.TopicConfig2_8.CleanupPolicy\x12\x44\n\x10\x63ompression_type\x18\x02 \x01(\x0e\x32*.yandex.cloud.mdb.kafka.v1.CompressionType\x12\x38\n\x13\x64\x65lete_retention_ms\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14\x66ile_delete_delay_ms\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\x0e\x66lush_messages\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12-\n\x08\x66lush_ms\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x15min_compaction_lag_ms\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x34\n\x0fretention_bytes\x18\x08 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x31\n\x0cretention_ms\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11max_message_bytes\x18\n \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x13min_insync_replicas\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\rsegment_bytes\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\x0bpreallocate\x18\r \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x02\x18\x01\"\x8d\x01\n\rCleanupPolicy\x12\x1e\n\x1a\x43LEANUP_POLICY_UNSPECIFIED\x10\x00\x12\x19\n\x15\x43LEANUP_POLICY_DELETE\x10\x01\x12\x1a\n\x16\x43LEANUP_POLICY_COMPACT\x10\x02\x12%\n!CLEANUP_POLICY_COMPACT_AND_DELETE\x10\x03\"\x8c\x07\n\x0cTopicConfig3\x12M\n\x0e\x63leanup_policy\x18\x01 \x01(\x0e\x32\x35.yandex.cloud.mdb.kafka.v1.TopicConfig3.CleanupPolicy\x12\x44\n\x10\x63ompression_type\x18\x02 \x01(\x0e\x32*.yandex.cloud.mdb.kafka.v1.CompressionType\x12\x38\n\x13\x64\x65lete_retention_ms\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14\x66ile_delete_delay_ms\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\x0e\x66lush_messages\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12-\n\x08\x66lush_ms\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x15min_compaction_lag_ms\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x34\n\x0fretention_bytes\x18\x08 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x31\n\x0cretention_ms\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11max_message_bytes\x18\n \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x13min_insync_replicas\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\rsegment_bytes\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\x0bpreallocate\x18\r \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x02\x18\x01\"\x8d\x01\n\rCleanupPolicy\x12\x1e\n\x1a\x43LEANUP_POLICY_UNSPECIFIED\x10\x00\x12\x19\n\x15\x43LEANUP_POLICY_DELETE\x10\x01\x12\x1a\n\x16\x43LEANUP_POLICY_COMPACT\x10\x02\x12%\n!CLEANUP_POLICY_COMPACT_AND_DELETE\x10\x03\x42\x64\n\x1dyandex.cloud.api.mdb.kafka.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/kafka/v1;kafkab\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -35,16 +35,20 @@ if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\n\035yandex.cloud.api.mdb.kafka.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/kafka/v1;kafka' + _globals['_TOPICCONFIG2_8'].fields_by_name['preallocate']._loaded_options = None + _globals['_TOPICCONFIG2_8'].fields_by_name['preallocate']._serialized_options = b'\030\001' + _globals['_TOPICCONFIG3'].fields_by_name['preallocate']._loaded_options = None + _globals['_TOPICCONFIG3'].fields_by_name['preallocate']._serialized_options = b'\030\001' _globals['_TOPIC']._serialized_start=175 _globals['_TOPIC']._serialized_end=514 _globals['_TOPICSPEC']._serialized_start=517 _globals['_TOPICSPEC']._serialized_end=840 _globals['_TOPICCONFIG2_8']._serialized_start=843 - _globals['_TOPICCONFIG2_8']._serialized_end=1751 - _globals['_TOPICCONFIG2_8_CLEANUPPOLICY']._serialized_start=1610 - _globals['_TOPICCONFIG2_8_CLEANUPPOLICY']._serialized_end=1751 - _globals['_TOPICCONFIG3']._serialized_start=1754 - _globals['_TOPICCONFIG3']._serialized_end=2658 - _globals['_TOPICCONFIG3_CLEANUPPOLICY']._serialized_start=1610 - _globals['_TOPICCONFIG3_CLEANUPPOLICY']._serialized_end=1751 + _globals['_TOPICCONFIG2_8']._serialized_end=1755 + _globals['_TOPICCONFIG2_8_CLEANUPPOLICY']._serialized_start=1614 + _globals['_TOPICCONFIG2_8_CLEANUPPOLICY']._serialized_end=1755 + _globals['_TOPICCONFIG3']._serialized_start=1758 + _globals['_TOPICCONFIG3']._serialized_end=2666 + _globals['_TOPICCONFIG3_CLEANUPPOLICY']._serialized_start=1614 + _globals['_TOPICCONFIG3_CLEANUPPOLICY']._serialized_end=1755 # @@protoc_insertion_point(module_scope) diff --git a/yandex/cloud/mdb/kafka/v1/topic_pb2.pyi b/yandex/cloud/mdb/kafka/v1/topic_pb2.pyi index aacba9b3..25e8b401 100644 --- a/yandex/cloud/mdb/kafka/v1/topic_pb2.pyi +++ b/yandex/cloud/mdb/kafka/v1/topic_pb2.pyi @@ -216,6 +216,7 @@ class TopicConfig2_8(google.protobuf.message.Message): """True if we should preallocate the file on disk when creating a new log segment. This setting overrides the cluster-level [KafkaConfig2_8.log_preallocate] setting on the topic level. + Deprecated. Feature useless for Yandex Cloud. """ def __init__( @@ -350,6 +351,7 @@ class TopicConfig3(google.protobuf.message.Message): """True if we should preallocate the file on disk when creating a new log segment. This setting overrides the cluster-level [KafkaConfig3.log_preallocate] setting on the topic level. + Deprecated. Feature useless for Yandex Cloud. """ def __init__( diff --git a/yandex/cloud/trino/__init__.py b/yandex/cloud/trino/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/yandex/cloud/trino/v1/__init__.py b/yandex/cloud/trino/v1/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/yandex/cloud/trino/v1/cluster_pb2.py b/yandex/cloud/trino/v1/cluster_pb2.py new file mode 100644 index 00000000..f117abfd --- /dev/null +++ b/yandex/cloud/trino/v1/cluster_pb2.py @@ -0,0 +1,119 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: yandex/cloud/trino/v1/cluster.proto +# Protobuf Python Version: 5.29.0 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 29, + 0, + '', + 'yandex/cloud/trino/v1/cluster.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from yandex.cloud.logging.v1 import log_entry_pb2 as yandex_dot_cloud_dot_logging_dot_v1_dot_log__entry__pb2 +from yandex.cloud.trino.v1 import maintenance_pb2 as yandex_dot_cloud_dot_trino_dot_v1_dot_maintenance__pb2 +from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#yandex/cloud/trino/v1/cluster.proto\x12\x15yandex.cloud.trino.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\'yandex/cloud/logging/v1/log_entry.proto\x1a\'yandex/cloud/trino/v1/maintenance.proto\x1a\x1dyandex/cloud/validation.proto\"\x89\x07\n\x07\x43luster\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfolder_id\x18\x02 \x01(\t\x12.\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12:\n\x06labels\x18\x06 \x03(\x0b\x32*.yandex.cloud.trino.v1.Cluster.LabelsEntry\x12\x35\n\nmonitoring\x18\x07 \x03(\x0b\x32!.yandex.cloud.trino.v1.Monitoring\x12\x31\n\x05trino\x18\x08 \x01(\x0b\x32\".yandex.cloud.trino.v1.TrinoConfig\x12-\n\x06health\x18\t \x01(\x0e\x32\x1d.yandex.cloud.trino.v1.Health\x12\x35\n\x06status\x18\n \x01(\x0e\x32%.yandex.cloud.trino.v1.Cluster.Status\x12\x35\n\x07network\x18\x0b \x01(\x0b\x32$.yandex.cloud.trino.v1.NetworkConfig\x12\x1b\n\x13\x64\x65letion_protection\x18\x0c \x01(\x08\x12$\n\x12service_account_id\x18\r \x01(\tB\x08\x8a\xc8\x31\x04<=50\x12\x35\n\x07logging\x18\x0e \x01(\x0b\x32$.yandex.cloud.trino.v1.LoggingConfig\x12\x17\n\x0f\x63oordinator_url\x18\x0f \x01(\t\x12\x44\n\x12maintenance_window\x18\x10 \x01(\x0b\x32(.yandex.cloud.trino.v1.MaintenanceWindow\x12\x46\n\x11planned_operation\x18\x11 \x01(\x0b\x32+.yandex.cloud.trino.v1.MaintenanceOperation\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"y\n\x06Status\x12\x12\n\x0eSTATUS_UNKNOWN\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\x0c\n\x08STOPPING\x10\x04\x12\x0b\n\x07STOPPED\x10\x05\x12\x0c\n\x08STARTING\x10\x06\x12\x0c\n\x08UPDATING\x10\x07\"=\n\nMonitoring\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0c\n\x04link\x18\x03 \x01(\t\"\xe2\x01\n\rLoggingConfig\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x38\n\tfolder_id\x18\x02 \x01(\tB#\xf2\xc7\x31\x1f([a-zA-Z][-a-zA-Z0-9_.]{0,63})?H\x00\x12;\n\x0clog_group_id\x18\x03 \x01(\tB#\xf2\xc7\x31\x1f([a-zA-Z][-a-zA-Z0-9_.]{0,63})?H\x00\x12:\n\tmin_level\x18\x04 \x01(\x0e\x32\'.yandex.cloud.logging.v1.LogLevel.LevelB\r\n\x0b\x64\x65stination\"?\n\rNetworkConfig\x12\x12\n\nsubnet_ids\x18\x01 \x03(\t\x12\x1a\n\x12security_group_ids\x18\x02 \x03(\t\"\xec\x01\n\x0bTrinoConfig\x12J\n\x12\x63oordinator_config\x18\x01 \x01(\x0b\x32(.yandex.cloud.trino.v1.CoordinatorConfigB\x04\xe8\xc7\x31\x01\x12@\n\rworker_config\x18\x02 \x01(\x0b\x32#.yandex.cloud.trino.v1.WorkerConfigB\x04\xe8\xc7\x31\x01\x12\x0f\n\x07version\x18\x03 \x01(\t\x12>\n\x0cretry_policy\x18\x04 \x01(\x0b\x32(.yandex.cloud.trino.v1.RetryPolicyConfig\"N\n\x11\x43oordinatorConfig\x12\x39\n\tresources\x18\x01 \x01(\x0b\x32 .yandex.cloud.trino.v1.ResourcesB\x04\xe8\xc7\x31\x01\"\xc4\x02\n\x0cWorkerConfig\x12\x39\n\tresources\x18\x01 \x01(\x0b\x32 .yandex.cloud.trino.v1.ResourcesB\x04\xe8\xc7\x31\x01\x12Q\n\x0cscale_policy\x18\x02 \x01(\x0b\x32\x35.yandex.cloud.trino.v1.WorkerConfig.WorkerScalePolicyB\x04\xe8\xc7\x31\x01\x1a\xa5\x01\n\x11WorkerScalePolicy\x12>\n\x0b\x66ixed_scale\x18\x01 \x01(\x0b\x32\'.yandex.cloud.trino.v1.FixedScalePolicyH\x00\x12<\n\nauto_scale\x18\x02 \x01(\x0b\x32&.yandex.cloud.trino.v1.AutoScalePolicyH\x00\x42\x12\n\nscale_type\x12\x04\xc0\xc1\x31\x01\"\xcf\x03\n\x11RetryPolicyConfig\x12\x44\n\x06policy\x18\x01 \x01(\x0e\x32\x34.yandex.cloud.trino.v1.RetryPolicyConfig.RetryPolicy\x12\x46\n\x10\x65xchange_manager\x18\x02 \x01(\x0b\x32,.yandex.cloud.trino.v1.ExchangeManagerConfig\x12\xac\x01\n\x15\x61\x64\x64itional_properties\x18\x03 \x03(\x0b\x32\x42.yandex.cloud.trino.v1.RetryPolicyConfig.AdditionalPropertiesEntryBI\xf2\xc7\x31\x15[-_0-9a-zA-Z.,:\\/_ ]*\x82\xc8\x31\x05<=256\x8a\xc8\x31\x05<=128\xb2\xc8\x31\x1a\x12\x11[a-z][-_0-9a-z.]*\x1a\x05\x31-128\x1a;\n\x19\x41\x64\x64itionalPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"@\n\x0bRetryPolicy\x12\x1c\n\x18RETRY_POLICY_UNSPECIFIED\x10\x00\x12\t\n\x05QUERY\x10\x01\x12\x08\n\x04TASK\x10\x02\"\x82\x01\n\x16\x45xchangeManagerStorage\x12M\n\nservice_s3\x18\x01 \x01(\x0b\x32\x37.yandex.cloud.trino.v1.ExchangeManagerStorage.ServiceS3H\x00\x1a\x0b\n\tServiceS3B\x0c\n\x04type\x12\x04\xc0\xc1\x31\x01\"\xc7\x02\n\x15\x45xchangeManagerConfig\x12\xb0\x01\n\x15\x61\x64\x64itional_properties\x18\x01 \x03(\x0b\x32\x46.yandex.cloud.trino.v1.ExchangeManagerConfig.AdditionalPropertiesEntryBI\xf2\xc7\x31\x15[-_0-9a-zA-Z.,:\\/_ ]*\x82\xc8\x31\x05<=256\x8a\xc8\x31\x05<=128\xb2\xc8\x31\x1a\x12\x11[a-z][-_0-9a-z.]*\x1a\x05\x31-128\x12>\n\x07storage\x18\x02 \x01(\x0b\x32-.yandex.cloud.trino.v1.ExchangeManagerStorage\x1a;\n\x19\x41\x64\x64itionalPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"5\n\tResources\x12(\n\x12resource_preset_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\",\n\x10\x46ixedScalePolicy\x12\x18\n\x05\x63ount\x18\x01 \x01(\x03\x42\t\xfa\xc7\x31\x05\x31-512\"M\n\x0f\x41utoScalePolicy\x12\x1c\n\tmin_count\x18\x01 \x01(\x03\x42\t\xfa\xc7\x31\x05\x30-512\x12\x1c\n\tmax_count\x18\x02 \x01(\x03\x42\t\xfa\xc7\x31\x05\x31-512*?\n\x06Health\x12\x12\n\x0eHEALTH_UNKNOWN\x10\x00\x12\t\n\x05\x41LIVE\x10\x01\x12\x08\n\x04\x44\x45\x41\x44\x10\x02\x12\x0c\n\x08\x44\x45GRADED\x10\x03\x42\\\n\x19yandex.cloud.api.trino.v1Z?github.com/yandex-cloud/go-genproto/yandex/cloud/trino/v1;trinob\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.trino.v1.cluster_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\031yandex.cloud.api.trino.v1Z?github.com/yandex-cloud/go-genproto/yandex/cloud/trino/v1;trino' + _globals['_CLUSTER_LABELSENTRY']._loaded_options = None + _globals['_CLUSTER_LABELSENTRY']._serialized_options = b'8\001' + _globals['_CLUSTER'].fields_by_name['service_account_id']._loaded_options = None + _globals['_CLUSTER'].fields_by_name['service_account_id']._serialized_options = b'\212\3101\004<=50' + _globals['_LOGGINGCONFIG'].fields_by_name['folder_id']._loaded_options = None + _globals['_LOGGINGCONFIG'].fields_by_name['folder_id']._serialized_options = b'\362\3071\037([a-zA-Z][-a-zA-Z0-9_.]{0,63})?' + _globals['_LOGGINGCONFIG'].fields_by_name['log_group_id']._loaded_options = None + _globals['_LOGGINGCONFIG'].fields_by_name['log_group_id']._serialized_options = b'\362\3071\037([a-zA-Z][-a-zA-Z0-9_.]{0,63})?' + _globals['_TRINOCONFIG'].fields_by_name['coordinator_config']._loaded_options = None + _globals['_TRINOCONFIG'].fields_by_name['coordinator_config']._serialized_options = b'\350\3071\001' + _globals['_TRINOCONFIG'].fields_by_name['worker_config']._loaded_options = None + _globals['_TRINOCONFIG'].fields_by_name['worker_config']._serialized_options = b'\350\3071\001' + _globals['_COORDINATORCONFIG'].fields_by_name['resources']._loaded_options = None + _globals['_COORDINATORCONFIG'].fields_by_name['resources']._serialized_options = b'\350\3071\001' + _globals['_WORKERCONFIG_WORKERSCALEPOLICY'].oneofs_by_name['scale_type']._loaded_options = None + _globals['_WORKERCONFIG_WORKERSCALEPOLICY'].oneofs_by_name['scale_type']._serialized_options = b'\300\3011\001' + _globals['_WORKERCONFIG'].fields_by_name['resources']._loaded_options = None + _globals['_WORKERCONFIG'].fields_by_name['resources']._serialized_options = b'\350\3071\001' + _globals['_WORKERCONFIG'].fields_by_name['scale_policy']._loaded_options = None + _globals['_WORKERCONFIG'].fields_by_name['scale_policy']._serialized_options = b'\350\3071\001' + _globals['_RETRYPOLICYCONFIG_ADDITIONALPROPERTIESENTRY']._loaded_options = None + _globals['_RETRYPOLICYCONFIG_ADDITIONALPROPERTIESENTRY']._serialized_options = b'8\001' + _globals['_RETRYPOLICYCONFIG'].fields_by_name['additional_properties']._loaded_options = None + _globals['_RETRYPOLICYCONFIG'].fields_by_name['additional_properties']._serialized_options = b'\362\3071\025[-_0-9a-zA-Z.,:\\/_ ]*\202\3101\005<=256\212\3101\005<=128\262\3101\032\022\021[a-z][-_0-9a-z.]*\032\0051-128' + _globals['_EXCHANGEMANAGERSTORAGE'].oneofs_by_name['type']._loaded_options = None + _globals['_EXCHANGEMANAGERSTORAGE'].oneofs_by_name['type']._serialized_options = b'\300\3011\001' + _globals['_EXCHANGEMANAGERCONFIG_ADDITIONALPROPERTIESENTRY']._loaded_options = None + _globals['_EXCHANGEMANAGERCONFIG_ADDITIONALPROPERTIESENTRY']._serialized_options = b'8\001' + _globals['_EXCHANGEMANAGERCONFIG'].fields_by_name['additional_properties']._loaded_options = None + _globals['_EXCHANGEMANAGERCONFIG'].fields_by_name['additional_properties']._serialized_options = b'\362\3071\025[-_0-9a-zA-Z.,:\\/_ ]*\202\3101\005<=256\212\3101\005<=128\262\3101\032\022\021[a-z][-_0-9a-z.]*\032\0051-128' + _globals['_RESOURCES'].fields_by_name['resource_preset_id']._loaded_options = None + _globals['_RESOURCES'].fields_by_name['resource_preset_id']._serialized_options = b'\350\3071\001\212\3101\004<=50' + _globals['_FIXEDSCALEPOLICY'].fields_by_name['count']._loaded_options = None + _globals['_FIXEDSCALEPOLICY'].fields_by_name['count']._serialized_options = b'\372\3071\0051-512' + _globals['_AUTOSCALEPOLICY'].fields_by_name['min_count']._loaded_options = None + _globals['_AUTOSCALEPOLICY'].fields_by_name['min_count']._serialized_options = b'\372\3071\0050-512' + _globals['_AUTOSCALEPOLICY'].fields_by_name['max_count']._loaded_options = None + _globals['_AUTOSCALEPOLICY'].fields_by_name['max_count']._serialized_options = b'\372\3071\0051-512' + _globals['_HEALTH']._serialized_start=3228 + _globals['_HEALTH']._serialized_end=3291 + _globals['_CLUSTER']._serialized_start=209 + _globals['_CLUSTER']._serialized_end=1114 + _globals['_CLUSTER_LABELSENTRY']._serialized_start=946 + _globals['_CLUSTER_LABELSENTRY']._serialized_end=991 + _globals['_CLUSTER_STATUS']._serialized_start=993 + _globals['_CLUSTER_STATUS']._serialized_end=1114 + _globals['_MONITORING']._serialized_start=1116 + _globals['_MONITORING']._serialized_end=1177 + _globals['_LOGGINGCONFIG']._serialized_start=1180 + _globals['_LOGGINGCONFIG']._serialized_end=1406 + _globals['_NETWORKCONFIG']._serialized_start=1408 + _globals['_NETWORKCONFIG']._serialized_end=1471 + _globals['_TRINOCONFIG']._serialized_start=1474 + _globals['_TRINOCONFIG']._serialized_end=1710 + _globals['_COORDINATORCONFIG']._serialized_start=1712 + _globals['_COORDINATORCONFIG']._serialized_end=1790 + _globals['_WORKERCONFIG']._serialized_start=1793 + _globals['_WORKERCONFIG']._serialized_end=2117 + _globals['_WORKERCONFIG_WORKERSCALEPOLICY']._serialized_start=1952 + _globals['_WORKERCONFIG_WORKERSCALEPOLICY']._serialized_end=2117 + _globals['_RETRYPOLICYCONFIG']._serialized_start=2120 + _globals['_RETRYPOLICYCONFIG']._serialized_end=2583 + _globals['_RETRYPOLICYCONFIG_ADDITIONALPROPERTIESENTRY']._serialized_start=2458 + _globals['_RETRYPOLICYCONFIG_ADDITIONALPROPERTIESENTRY']._serialized_end=2517 + _globals['_RETRYPOLICYCONFIG_RETRYPOLICY']._serialized_start=2519 + _globals['_RETRYPOLICYCONFIG_RETRYPOLICY']._serialized_end=2583 + _globals['_EXCHANGEMANAGERSTORAGE']._serialized_start=2586 + _globals['_EXCHANGEMANAGERSTORAGE']._serialized_end=2716 + _globals['_EXCHANGEMANAGERSTORAGE_SERVICES3']._serialized_start=2691 + _globals['_EXCHANGEMANAGERSTORAGE_SERVICES3']._serialized_end=2702 + _globals['_EXCHANGEMANAGERCONFIG']._serialized_start=2719 + _globals['_EXCHANGEMANAGERCONFIG']._serialized_end=3046 + _globals['_EXCHANGEMANAGERCONFIG_ADDITIONALPROPERTIESENTRY']._serialized_start=2458 + _globals['_EXCHANGEMANAGERCONFIG_ADDITIONALPROPERTIESENTRY']._serialized_end=2517 + _globals['_RESOURCES']._serialized_start=3048 + _globals['_RESOURCES']._serialized_end=3101 + _globals['_FIXEDSCALEPOLICY']._serialized_start=3103 + _globals['_FIXEDSCALEPOLICY']._serialized_end=3147 + _globals['_AUTOSCALEPOLICY']._serialized_start=3149 + _globals['_AUTOSCALEPOLICY']._serialized_end=3226 +# @@protoc_insertion_point(module_scope) diff --git a/yandex/cloud/trino/v1/cluster_pb2.pyi b/yandex/cloud/trino/v1/cluster_pb2.pyi new file mode 100644 index 00000000..7cbdc4d7 --- /dev/null +++ b/yandex/cloud/trino/v1/cluster_pb2.pyi @@ -0,0 +1,576 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import sys +import typing +import yandex.cloud.logging.v1.log_entry_pb2 +import yandex.cloud.trino.v1.maintenance_pb2 + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _Health: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _HealthEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Health.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + HEALTH_UNKNOWN: _Health.ValueType # 0 + """Object is in unknown state (we have no data)""" + ALIVE: _Health.ValueType # 1 + """Object is alive and well (all hosts are alive)""" + DEAD: _Health.ValueType # 2 + """Object is inoperable (it cannot perform any of its essential functions)""" + DEGRADED: _Health.ValueType # 3 + """Object is partially alive (it can perform some of its essential functions)""" + +class Health(_Health, metaclass=_HealthEnumTypeWrapper): ... + +HEALTH_UNKNOWN: Health.ValueType # 0 +"""Object is in unknown state (we have no data)""" +ALIVE: Health.ValueType # 1 +"""Object is alive and well (all hosts are alive)""" +DEAD: Health.ValueType # 2 +"""Object is inoperable (it cannot perform any of its essential functions)""" +DEGRADED: Health.ValueType # 3 +"""Object is partially alive (it can perform some of its essential functions)""" +global___Health = Health + +@typing.final +class Cluster(google.protobuf.message.Message): + """Trino cluster.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class _Status: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + + class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Cluster._Status.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + STATUS_UNKNOWN: Cluster._Status.ValueType # 0 + """Cluster state is unknown.""" + CREATING: Cluster._Status.ValueType # 1 + """Cluster is being created.""" + RUNNING: Cluster._Status.ValueType # 2 + """Cluster is running normally.""" + ERROR: Cluster._Status.ValueType # 3 + """Cluster encountered a problem and cannot operate.""" + STOPPING: Cluster._Status.ValueType # 4 + """Cluster is stopping.""" + STOPPED: Cluster._Status.ValueType # 5 + """Cluster is stopped.""" + STARTING: Cluster._Status.ValueType # 6 + """Cluster is starting.""" + UPDATING: Cluster._Status.ValueType # 7 + """Cluster is being updated.""" + + class Status(_Status, metaclass=_StatusEnumTypeWrapper): ... + STATUS_UNKNOWN: Cluster.Status.ValueType # 0 + """Cluster state is unknown.""" + CREATING: Cluster.Status.ValueType # 1 + """Cluster is being created.""" + RUNNING: Cluster.Status.ValueType # 2 + """Cluster is running normally.""" + ERROR: Cluster.Status.ValueType # 3 + """Cluster encountered a problem and cannot operate.""" + STOPPING: Cluster.Status.ValueType # 4 + """Cluster is stopping.""" + STOPPED: Cluster.Status.ValueType # 5 + """Cluster is stopped.""" + STARTING: Cluster.Status.ValueType # 6 + """Cluster is starting.""" + UPDATING: Cluster.Status.ValueType # 7 + """Cluster is being updated.""" + + @typing.final + class LabelsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + value: builtins.str + def __init__( + self, + *, + key: builtins.str = ..., + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + ID_FIELD_NUMBER: builtins.int + FOLDER_ID_FIELD_NUMBER: builtins.int + CREATED_AT_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + LABELS_FIELD_NUMBER: builtins.int + MONITORING_FIELD_NUMBER: builtins.int + TRINO_FIELD_NUMBER: builtins.int + HEALTH_FIELD_NUMBER: builtins.int + STATUS_FIELD_NUMBER: builtins.int + NETWORK_FIELD_NUMBER: builtins.int + DELETION_PROTECTION_FIELD_NUMBER: builtins.int + SERVICE_ACCOUNT_ID_FIELD_NUMBER: builtins.int + LOGGING_FIELD_NUMBER: builtins.int + COORDINATOR_URL_FIELD_NUMBER: builtins.int + MAINTENANCE_WINDOW_FIELD_NUMBER: builtins.int + PLANNED_OPERATION_FIELD_NUMBER: builtins.int + id: builtins.str + """Unique ID of the Trino cluster. + This ID is assigned by Cloud in the process of creating a Trino cluster. + """ + folder_id: builtins.str + """ID of the folder that the Trino cluster belongs to.""" + name: builtins.str + """Name of the Trino cluster. + The name is unique within the folder. 1-64 characters long. + """ + description: builtins.str + """Description of the Trino cluster. 0-256 characters long.""" + health: global___Health.ValueType + """Aggregated cluster health.""" + status: global___Cluster.Status.ValueType + """Cluster status.""" + deletion_protection: builtins.bool + """Deletion Protection inhibits deletion of the cluster.""" + service_account_id: builtins.str + """Service account used to access Cloud resources.""" + coordinator_url: builtins.str + """Address of Trino Coordinator.""" + @property + def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The time when the Trino cluster was created.""" + + @property + def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """Resource labels as `key:value` pairs. Maximum of 64 per resource.""" + + @property + def monitoring(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Monitoring]: + """Monitoring systems relevant to the Trino cluster.""" + + @property + def trino(self) -> global___TrinoConfig: + """Configuration of the Trino cluster.""" + + @property + def network(self) -> global___NetworkConfig: + """Network related configuration options.""" + + @property + def logging(self) -> global___LoggingConfig: + """Cloud logging configuration.""" + + @property + def maintenance_window(self) -> yandex.cloud.trino.v1.maintenance_pb2.MaintenanceWindow: + """Window of maintenance operations.""" + + @property + def planned_operation(self) -> yandex.cloud.trino.v1.maintenance_pb2.MaintenanceOperation: + """Maintenance operation planned at nearest maintenance_window.""" + + def __init__( + self, + *, + id: builtins.str = ..., + folder_id: builtins.str = ..., + created_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + name: builtins.str = ..., + description: builtins.str = ..., + labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + monitoring: collections.abc.Iterable[global___Monitoring] | None = ..., + trino: global___TrinoConfig | None = ..., + health: global___Health.ValueType = ..., + status: global___Cluster.Status.ValueType = ..., + network: global___NetworkConfig | None = ..., + deletion_protection: builtins.bool = ..., + service_account_id: builtins.str = ..., + logging: global___LoggingConfig | None = ..., + coordinator_url: builtins.str = ..., + maintenance_window: yandex.cloud.trino.v1.maintenance_pb2.MaintenanceWindow | None = ..., + planned_operation: yandex.cloud.trino.v1.maintenance_pb2.MaintenanceOperation | None = ..., + ) -> None: ... + 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: ... + 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: ... + +global___Cluster = Cluster + +@typing.final +class Monitoring(google.protobuf.message.Message): + """Monitoring system.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + LINK_FIELD_NUMBER: builtins.int + name: builtins.str + """Name of the monitoring system.""" + description: builtins.str + """Description of the monitoring system.""" + link: builtins.str + """Link to the monitoring system.""" + def __init__( + self, + *, + name: builtins.str = ..., + description: builtins.str = ..., + link: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["description", b"description", "link", b"link", "name", b"name"]) -> None: ... + +global___Monitoring = Monitoring + +@typing.final +class LoggingConfig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ENABLED_FIELD_NUMBER: builtins.int + FOLDER_ID_FIELD_NUMBER: builtins.int + LOG_GROUP_ID_FIELD_NUMBER: builtins.int + MIN_LEVEL_FIELD_NUMBER: builtins.int + enabled: builtins.bool + """Logs generated by the Trino components are delivered to Cloud Logging.""" + folder_id: builtins.str + """Logs should be written to default log group for specified folder.""" + log_group_id: builtins.str + """Logs should be written to log group resolved by ID.""" + min_level: yandex.cloud.logging.v1.log_entry_pb2.LogLevel.Level.ValueType + """Minimum log entry level. + + See [LogLevel.Level] for details. + """ + def __init__( + self, + *, + enabled: builtins.bool = ..., + folder_id: builtins.str = ..., + log_group_id: builtins.str = ..., + min_level: yandex.cloud.logging.v1.log_entry_pb2.LogLevel.Level.ValueType = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["destination", b"destination", "folder_id", b"folder_id", "log_group_id", b"log_group_id"]) -> builtins.bool: ... + 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: ... + def WhichOneof(self, oneof_group: typing.Literal["destination", b"destination"]) -> typing.Literal["folder_id", "log_group_id"] | None: ... + +global___LoggingConfig = LoggingConfig + +@typing.final +class NetworkConfig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SUBNET_IDS_FIELD_NUMBER: builtins.int + SECURITY_GROUP_IDS_FIELD_NUMBER: builtins.int + @property + def subnet_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """IDs of VPC network subnets where instances of the cluster are attached.""" + + @property + def security_group_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """User security groups.""" + + def __init__( + self, + *, + subnet_ids: collections.abc.Iterable[builtins.str] | None = ..., + security_group_ids: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["security_group_ids", b"security_group_ids", "subnet_ids", b"subnet_ids"]) -> None: ... + +global___NetworkConfig = NetworkConfig + +@typing.final +class TrinoConfig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COORDINATOR_CONFIG_FIELD_NUMBER: builtins.int + WORKER_CONFIG_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + RETRY_POLICY_FIELD_NUMBER: builtins.int + version: builtins.str + """Version of Trino.""" + @property + def coordinator_config(self) -> global___CoordinatorConfig: + """Configuration for the coordinator, specifying computational resources and other settings.""" + + @property + def worker_config(self) -> global___WorkerConfig: + """Configuration for worker nodes, including scaling policy and computational resources.""" + + @property + def retry_policy(self) -> global___RetryPolicyConfig: + """Configuration for retry policy, specifying the spooling storage destination and other settings.""" + + def __init__( + self, + *, + coordinator_config: global___CoordinatorConfig | None = ..., + worker_config: global___WorkerConfig | None = ..., + version: builtins.str = ..., + retry_policy: global___RetryPolicyConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["coordinator_config", b"coordinator_config", "retry_policy", b"retry_policy", "worker_config", b"worker_config"]) -> builtins.bool: ... + 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: ... + +global___TrinoConfig = TrinoConfig + +@typing.final +class CoordinatorConfig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCES_FIELD_NUMBER: builtins.int + @property + def resources(self) -> global___Resources: + """Configuration for computational resources assigned to the coordinator instance.""" + + def __init__( + self, + *, + resources: global___Resources | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["resources", b"resources"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["resources", b"resources"]) -> None: ... + +global___CoordinatorConfig = CoordinatorConfig + +@typing.final +class WorkerConfig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class WorkerScalePolicy(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FIXED_SCALE_FIELD_NUMBER: builtins.int + AUTO_SCALE_FIELD_NUMBER: builtins.int + @property + def fixed_scale(self) -> global___FixedScalePolicy: + """A fixed scaling policy that specifies a fixed number of worker instances.""" + + @property + def auto_scale(self) -> global___AutoScalePolicy: + """A scaling policy that dynamically adjusts the number of worker instances + based on the cluster's workload. The system automatically increases or + decreases the number of instances within the defined range. + """ + + def __init__( + self, + *, + fixed_scale: global___FixedScalePolicy | None = ..., + auto_scale: global___AutoScalePolicy | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["auto_scale", b"auto_scale", "fixed_scale", b"fixed_scale", "scale_type", b"scale_type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["auto_scale", b"auto_scale", "fixed_scale", b"fixed_scale", "scale_type", b"scale_type"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["scale_type", b"scale_type"]) -> typing.Literal["fixed_scale", "auto_scale"] | None: ... + + RESOURCES_FIELD_NUMBER: builtins.int + SCALE_POLICY_FIELD_NUMBER: builtins.int + @property + def resources(self) -> global___Resources: + """Configuration for computational resources for worker instances.""" + + @property + def scale_policy(self) -> global___WorkerConfig.WorkerScalePolicy: + """Configuration for scaling policy for worker instances.""" + + def __init__( + self, + *, + resources: global___Resources | None = ..., + scale_policy: global___WorkerConfig.WorkerScalePolicy | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["resources", b"resources", "scale_policy", b"scale_policy"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["resources", b"resources", "scale_policy", b"scale_policy"]) -> None: ... + +global___WorkerConfig = WorkerConfig + +@typing.final +class RetryPolicyConfig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class _RetryPolicy: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + + class _RetryPolicyEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[RetryPolicyConfig._RetryPolicy.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + RETRY_POLICY_UNSPECIFIED: RetryPolicyConfig._RetryPolicy.ValueType # 0 + QUERY: RetryPolicyConfig._RetryPolicy.ValueType # 1 + TASK: RetryPolicyConfig._RetryPolicy.ValueType # 2 + + class RetryPolicy(_RetryPolicy, metaclass=_RetryPolicyEnumTypeWrapper): ... + RETRY_POLICY_UNSPECIFIED: RetryPolicyConfig.RetryPolicy.ValueType # 0 + QUERY: RetryPolicyConfig.RetryPolicy.ValueType # 1 + TASK: RetryPolicyConfig.RetryPolicy.ValueType # 2 + + @typing.final + class AdditionalPropertiesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + value: builtins.str + def __init__( + self, + *, + key: builtins.str = ..., + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + POLICY_FIELD_NUMBER: builtins.int + EXCHANGE_MANAGER_FIELD_NUMBER: builtins.int + ADDITIONAL_PROPERTIES_FIELD_NUMBER: builtins.int + policy: global___RetryPolicyConfig.RetryPolicy.ValueType + """Retry policy level.""" + @property + def exchange_manager(self) -> global___ExchangeManagerConfig: + """Configuration for exchange manager.""" + + @property + def additional_properties(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """Additional properties.""" + + def __init__( + self, + *, + policy: global___RetryPolicyConfig.RetryPolicy.ValueType = ..., + exchange_manager: global___ExchangeManagerConfig | None = ..., + additional_properties: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["exchange_manager", b"exchange_manager"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["additional_properties", b"additional_properties", "exchange_manager", b"exchange_manager", "policy", b"policy"]) -> None: ... + +global___RetryPolicyConfig = RetryPolicyConfig + +@typing.final +class ExchangeManagerStorage(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class ServiceS3(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + + SERVICE_S3_FIELD_NUMBER: builtins.int + @property + def service_s3(self) -> global___ExchangeManagerStorage.ServiceS3: + """Use service side s3 bucket for exchange manager.""" + + def __init__( + self, + *, + service_s3: global___ExchangeManagerStorage.ServiceS3 | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["service_s3", b"service_s3", "type", b"type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["service_s3", b"service_s3", "type", b"type"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["service_s3"] | None: ... + +global___ExchangeManagerStorage = ExchangeManagerStorage + +@typing.final +class ExchangeManagerConfig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class AdditionalPropertiesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + value: builtins.str + def __init__( + self, + *, + key: builtins.str = ..., + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + ADDITIONAL_PROPERTIES_FIELD_NUMBER: builtins.int + STORAGE_FIELD_NUMBER: builtins.int + @property + def additional_properties(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """Additional properties.""" + + @property + def storage(self) -> global___ExchangeManagerStorage: ... + def __init__( + self, + *, + additional_properties: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + storage: global___ExchangeManagerStorage | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["storage", b"storage"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["additional_properties", b"additional_properties", "storage", b"storage"]) -> None: ... + +global___ExchangeManagerConfig = ExchangeManagerConfig + +@typing.final +class Resources(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_PRESET_ID_FIELD_NUMBER: builtins.int + resource_preset_id: builtins.str + """ID of the preset for computational resources allocated to a instance (e.g., CPU, memory, etc.).""" + def __init__( + self, + *, + resource_preset_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["resource_preset_id", b"resource_preset_id"]) -> None: ... + +global___Resources = Resources + +@typing.final +class FixedScalePolicy(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COUNT_FIELD_NUMBER: builtins.int + count: builtins.int + """Specifies the number of worker instances.""" + def __init__( + self, + *, + count: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["count", b"count"]) -> None: ... + +global___FixedScalePolicy = FixedScalePolicy + +@typing.final +class AutoScalePolicy(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MIN_COUNT_FIELD_NUMBER: builtins.int + MAX_COUNT_FIELD_NUMBER: builtins.int + min_count: builtins.int + max_count: builtins.int + def __init__( + self, + *, + min_count: builtins.int = ..., + max_count: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["max_count", b"max_count", "min_count", b"min_count"]) -> None: ... + +global___AutoScalePolicy = AutoScalePolicy diff --git a/yandex/cloud/trino/v1/cluster_pb2_grpc.py b/yandex/cloud/trino/v1/cluster_pb2_grpc.py new file mode 100644 index 00000000..520e29a5 --- /dev/null +++ b/yandex/cloud/trino/v1/cluster_pb2_grpc.py @@ -0,0 +1,24 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc +import warnings + + +GRPC_GENERATED_VERSION = '1.70.0' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in yandex/cloud/trino/v1/cluster_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/yandex/cloud/trino/v1/cluster_pb2_grpc.pyi b/yandex/cloud/trino/v1/cluster_pb2_grpc.pyi new file mode 100644 index 00000000..a6a9cff9 --- /dev/null +++ b/yandex/cloud/trino/v1/cluster_pb2_grpc.pyi @@ -0,0 +1,17 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import abc +import collections.abc +import grpc +import grpc.aio +import typing + +_T = typing.TypeVar("_T") + +class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ... + +class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg] + ... diff --git a/yandex/cloud/trino/v1/cluster_service_pb2.py b/yandex/cloud/trino/v1/cluster_service_pb2.py new file mode 100644 index 00000000..5fc5bf34 --- /dev/null +++ b/yandex/cloud/trino/v1/cluster_service_pb2.py @@ -0,0 +1,162 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: yandex/cloud/trino/v1/cluster_service.proto +# Protobuf Python Version: 5.29.0 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 29, + 0, + '', + 'yandex/cloud/trino/v1/cluster_service.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from yandex.cloud.api import operation_pb2 as yandex_dot_cloud_dot_api_dot_operation__pb2 +from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2 +from yandex.cloud.trino.v1 import cluster_pb2 as yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__pb2 +from yandex.cloud.trino.v1 import maintenance_pb2 as yandex_dot_cloud_dot_trino_dot_v1_dot_maintenance__pb2 +from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+yandex/cloud/trino/v1/cluster_service.proto\x12\x15yandex.cloud.trino.v1\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a#yandex/cloud/trino/v1/cluster.proto\x1a\'yandex/cloud/trino/v1/maintenance.proto\x1a\x1dyandex/cloud/validation.proto\"5\n\x11GetClusterRequest\x12 \n\ncluster_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"\x90\x01\n\x13ListClustersRequest\x12\x1f\n\tfolder_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x1d\n\tpage_size\x18\x02 \x01(\x03\x42\n\xfa\xc7\x31\x06\x30-1000\x12\x1d\n\npage_token\x18\x03 \x01(\tB\t\x8a\xc8\x31\x05<=100\x12\x1a\n\x06\x66ilter\x18\x04 \x01(\tB\n\x8a\xc8\x31\x06<=1000\"a\n\x14ListClustersResponse\x12\x30\n\x08\x63lusters\x18\x01 \x03(\x0b\x32\x1e.yandex.cloud.trino.v1.Cluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xf9\x04\n\x14\x43reateClusterRequest\x12\x1f\n\tfolder_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12,\n\x04name\x18\x02 \x01(\tB\x1e\xe8\xc7\x31\x01\xf2\xc7\x31\x0e[a-zA-Z0-9_-]*\x8a\xc8\x31\x04<=63\x12\x1e\n\x0b\x64\x65scription\x18\x03 \x01(\tB\t\x8a\xc8\x31\x05<=256\x12\x84\x01\n\x06labels\x18\x04 \x03(\x0b\x32\x37.yandex.cloud.trino.v1.CreateClusterRequest.LabelsEntryB;\xf2\xc7\x31\x0b[-_0-9a-z]*\x82\xc8\x31\x04<=64\x8a\xc8\x31\x04<=63\xb2\xc8\x31\x18\x12\x10[a-z][-_0-9a-z]*\x1a\x04\x31-63\x12;\n\x05trino\x18\x05 \x01(\x0b\x32&.yandex.cloud.trino.v1.TrinoConfigSpecB\x04\xe8\xc7\x31\x01\x12;\n\x07network\x18\x06 \x01(\x0b\x32$.yandex.cloud.trino.v1.NetworkConfigB\x04\xe8\xc7\x31\x01\x12\x1b\n\x13\x64\x65letion_protection\x18\x07 \x01(\x08\x12(\n\x12service_account_id\x18\x08 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x35\n\x07logging\x18\t \x01(\x0b\x32$.yandex.cloud.trino.v1.LoggingConfig\x12\x44\n\x12maintenance_window\x18\n \x01(\x0b\x32(.yandex.cloud.trino.v1.MaintenanceWindow\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xeb\x01\n\x0fTrinoConfigSpec\x12J\n\x12\x63oordinator_config\x18\x02 \x01(\x0b\x32(.yandex.cloud.trino.v1.CoordinatorConfigB\x04\xe8\xc7\x31\x01\x12@\n\rworker_config\x18\x03 \x01(\x0b\x32#.yandex.cloud.trino.v1.WorkerConfigB\x04\xe8\xc7\x31\x01\x12>\n\x0cretry_policy\x18\x04 \x01(\x0b\x32(.yandex.cloud.trino.v1.RetryPolicyConfigJ\x04\x08\x01\x10\x02J\x04\x08\x05\x10\x06\"+\n\x15\x43reateClusterMetadata\x12\x12\n\ncluster_id\x18\x01 \x01(\t\"N\n\x17UpdateCoordinatorConfig\x12\x33\n\tresources\x18\x01 \x01(\x0b\x32 .yandex.cloud.trino.v1.Resources\"\xc4\x02\n\x12UpdateWorkerConfig\x12\x33\n\tresources\x18\x01 \x01(\x0b\x32 .yandex.cloud.trino.v1.Resources\x12Q\n\x0cscale_policy\x18\x02 \x01(\x0b\x32;.yandex.cloud.trino.v1.UpdateWorkerConfig.WorkerScalePolicy\x1a\xa5\x01\n\x11WorkerScalePolicy\x12>\n\x0b\x66ixed_scale\x18\x01 \x01(\x0b\x32\'.yandex.cloud.trino.v1.FixedScalePolicyH\x00\x12<\n\nauto_scale\x18\x02 \x01(\x0b\x32&.yandex.cloud.trino.v1.AutoScalePolicyH\x00\x42\x12\n\nscale_type\x12\x04\xc0\xc1\x31\x01\"\xeb\x01\n\x15UpdateTrinoConfigSpec\x12J\n\x12\x63oordinator_config\x18\x01 \x01(\x0b\x32..yandex.cloud.trino.v1.UpdateCoordinatorConfig\x12@\n\rworker_config\x18\x02 \x01(\x0b\x32).yandex.cloud.trino.v1.UpdateWorkerConfig\x12>\n\x0cretry_policy\x18\x04 \x01(\x0b\x32(.yandex.cloud.trino.v1.RetryPolicyConfigJ\x04\x08\x03\x10\x04\"5\n\x17UpdateNetworkConfigSpec\x12\x1a\n\x12security_group_ids\x18\x01 \x03(\t\"\xac\x05\n\x14UpdateClusterRequest\x12 \n\ncluster_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12(\n\x04name\x18\x03 \x01(\tB\x1a\xf2\xc7\x31\x0e[a-zA-Z0-9_-]*\x8a\xc8\x31\x04<=63\x12\x1e\n\x0b\x64\x65scription\x18\x04 \x01(\tB\t\x8a\xc8\x31\x05<=256\x12\x84\x01\n\x06labels\x18\x05 \x03(\x0b\x32\x37.yandex.cloud.trino.v1.UpdateClusterRequest.LabelsEntryB;\xf2\xc7\x31\x0b[-_0-9a-z]*\x82\xc8\x31\x04<=64\x8a\xc8\x31\x04<=63\xb2\xc8\x31\x18\x12\x10[a-z][-_0-9a-z]*\x1a\x04\x31-63\x12\x1b\n\x13\x64\x65letion_protection\x18\x06 \x01(\x08\x12;\n\x05trino\x18\x07 \x01(\x0b\x32,.yandex.cloud.trino.v1.UpdateTrinoConfigSpec\x12\x44\n\x0cnetwork_spec\x18\x08 \x01(\x0b\x32..yandex.cloud.trino.v1.UpdateNetworkConfigSpec\x12$\n\x12service_account_id\x18\t \x01(\tB\x08\x8a\xc8\x31\x04<=50\x12\x35\n\x07logging\x18\n \x01(\x0b\x32$.yandex.cloud.trino.v1.LoggingConfig\x12\x44\n\x12maintenance_window\x18\x0b \x01(\x0b\x32(.yandex.cloud.trino.v1.MaintenanceWindow\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"+\n\x15UpdateClusterMetadata\x12\x12\n\ncluster_id\x18\x01 \x01(\t\"8\n\x14\x44\x65leteClusterRequest\x12 \n\ncluster_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"+\n\x15\x44\x65leteClusterMetadata\x12\x12\n\ncluster_id\x18\x01 \x01(\t\"7\n\x13StartClusterRequest\x12 \n\ncluster_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"*\n\x14StartClusterMetadata\x12\x12\n\ncluster_id\x18\x01 \x01(\t\"6\n\x12StopClusterRequest\x12 \n\ncluster_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\")\n\x13StopClusterMetadata\x12\x12\n\ncluster_id\x18\x01 \x01(\t\"~\n\x1cListClusterOperationsRequest\x12 \n\ncluster_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x1d\n\tpage_size\x18\x02 \x01(\x03\x42\n\xfa\xc7\x31\x06\x30-1000\x12\x1d\n\npage_token\x18\x03 \x01(\tB\t\x8a\xc8\x31\x05<=100\"o\n\x1dListClusterOperationsResponse\x12\x35\n\noperations\x18\x01 \x03(\x0b\x32!.yandex.cloud.operation.Operation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xcc\n\n\x0e\x43lusterService\x12\x80\x01\n\x03Get\x12(.yandex.cloud.trino.v1.GetClusterRequest\x1a\x1e.yandex.cloud.trino.v1.Cluster\"/\x82\xd3\xe4\x93\x02)\x12\'/managed-trino/v1/clusters/{cluster_id}\x12\x83\x01\n\x04List\x12*.yandex.cloud.trino.v1.ListClustersRequest\x1a+.yandex.cloud.trino.v1.ListClustersResponse\"\"\x82\xd3\xe4\x93\x02\x1c\x12\x1a/managed-trino/v1/clusters\x12\xa3\x01\n\x06\x43reate\x12+.yandex.cloud.trino.v1.CreateClusterRequest\x1a!.yandex.cloud.operation.Operation\"I\xb2\xd2* \n\x15\x43reateClusterMetadata\x12\x07\x43luster\x82\xd3\xe4\x93\x02\x1f\"\x1a/managed-trino/v1/clusters:\x01*\x12\xb0\x01\n\x06Update\x12+.yandex.cloud.trino.v1.UpdateClusterRequest\x1a!.yandex.cloud.operation.Operation\"V\xb2\xd2* \n\x15UpdateClusterMetadata\x12\x07\x43luster\x82\xd3\xe4\x93\x02,2\'/managed-trino/v1/clusters/{cluster_id}:\x01*\x12\xbb\x01\n\x06\x44\x65lete\x12+.yandex.cloud.trino.v1.DeleteClusterRequest\x1a!.yandex.cloud.operation.Operation\"a\xb2\xd2*.\n\x15\x44\x65leteClusterMetadata\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02)*\'/managed-trino/v1/clusters/{cluster_id}\x12\xb0\x01\n\x05Start\x12*.yandex.cloud.trino.v1.StartClusterRequest\x1a!.yandex.cloud.operation.Operation\"X\xb2\xd2*\x1f\n\x14StartClusterMetadata\x12\x07\x43luster\x82\xd3\xe4\x93\x02/\"-/managed-trino/v1/clusters/{cluster_id}:start\x12\xac\x01\n\x04Stop\x12).yandex.cloud.trino.v1.StopClusterRequest\x1a!.yandex.cloud.operation.Operation\"V\xb2\xd2*\x1e\n\x13StopClusterMetadata\x12\x07\x43luster\x82\xd3\xe4\x93\x02.\",/managed-trino/v1/clusters/{cluster_id}:stop\x12\xb7\x01\n\x0eListOperations\x12\x33.yandex.cloud.trino.v1.ListClusterOperationsRequest\x1a\x34.yandex.cloud.trino.v1.ListClusterOperationsResponse\":\x82\xd3\xe4\x93\x02\x34\x12\x32/managed-trino/v1/clusters/{cluster_id}/operationsB\\\n\x19yandex.cloud.api.trino.v1Z?github.com/yandex-cloud/go-genproto/yandex/cloud/trino/v1;trinob\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.trino.v1.cluster_service_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\031yandex.cloud.api.trino.v1Z?github.com/yandex-cloud/go-genproto/yandex/cloud/trino/v1;trino' + _globals['_GETCLUSTERREQUEST'].fields_by_name['cluster_id']._loaded_options = None + _globals['_GETCLUSTERREQUEST'].fields_by_name['cluster_id']._serialized_options = b'\350\3071\001\212\3101\004<=50' + _globals['_LISTCLUSTERSREQUEST'].fields_by_name['folder_id']._loaded_options = None + _globals['_LISTCLUSTERSREQUEST'].fields_by_name['folder_id']._serialized_options = b'\350\3071\001\212\3101\004<=50' + _globals['_LISTCLUSTERSREQUEST'].fields_by_name['page_size']._loaded_options = None + _globals['_LISTCLUSTERSREQUEST'].fields_by_name['page_size']._serialized_options = b'\372\3071\0060-1000' + _globals['_LISTCLUSTERSREQUEST'].fields_by_name['page_token']._loaded_options = None + _globals['_LISTCLUSTERSREQUEST'].fields_by_name['page_token']._serialized_options = b'\212\3101\005<=100' + _globals['_LISTCLUSTERSREQUEST'].fields_by_name['filter']._loaded_options = None + _globals['_LISTCLUSTERSREQUEST'].fields_by_name['filter']._serialized_options = b'\212\3101\006<=1000' + _globals['_CREATECLUSTERREQUEST_LABELSENTRY']._loaded_options = None + _globals['_CREATECLUSTERREQUEST_LABELSENTRY']._serialized_options = b'8\001' + _globals['_CREATECLUSTERREQUEST'].fields_by_name['folder_id']._loaded_options = None + _globals['_CREATECLUSTERREQUEST'].fields_by_name['folder_id']._serialized_options = b'\350\3071\001\212\3101\004<=50' + _globals['_CREATECLUSTERREQUEST'].fields_by_name['name']._loaded_options = None + _globals['_CREATECLUSTERREQUEST'].fields_by_name['name']._serialized_options = b'\350\3071\001\362\3071\016[a-zA-Z0-9_-]*\212\3101\004<=63' + _globals['_CREATECLUSTERREQUEST'].fields_by_name['description']._loaded_options = None + _globals['_CREATECLUSTERREQUEST'].fields_by_name['description']._serialized_options = b'\212\3101\005<=256' + _globals['_CREATECLUSTERREQUEST'].fields_by_name['labels']._loaded_options = None + _globals['_CREATECLUSTERREQUEST'].fields_by_name['labels']._serialized_options = b'\362\3071\013[-_0-9a-z]*\202\3101\004<=64\212\3101\004<=63\262\3101\030\022\020[a-z][-_0-9a-z]*\032\0041-63' + _globals['_CREATECLUSTERREQUEST'].fields_by_name['trino']._loaded_options = None + _globals['_CREATECLUSTERREQUEST'].fields_by_name['trino']._serialized_options = b'\350\3071\001' + _globals['_CREATECLUSTERREQUEST'].fields_by_name['network']._loaded_options = None + _globals['_CREATECLUSTERREQUEST'].fields_by_name['network']._serialized_options = b'\350\3071\001' + _globals['_CREATECLUSTERREQUEST'].fields_by_name['service_account_id']._loaded_options = None + _globals['_CREATECLUSTERREQUEST'].fields_by_name['service_account_id']._serialized_options = b'\350\3071\001\212\3101\004<=50' + _globals['_TRINOCONFIGSPEC'].fields_by_name['coordinator_config']._loaded_options = None + _globals['_TRINOCONFIGSPEC'].fields_by_name['coordinator_config']._serialized_options = b'\350\3071\001' + _globals['_TRINOCONFIGSPEC'].fields_by_name['worker_config']._loaded_options = None + _globals['_TRINOCONFIGSPEC'].fields_by_name['worker_config']._serialized_options = b'\350\3071\001' + _globals['_UPDATEWORKERCONFIG_WORKERSCALEPOLICY'].oneofs_by_name['scale_type']._loaded_options = None + _globals['_UPDATEWORKERCONFIG_WORKERSCALEPOLICY'].oneofs_by_name['scale_type']._serialized_options = b'\300\3011\001' + _globals['_UPDATECLUSTERREQUEST_LABELSENTRY']._loaded_options = None + _globals['_UPDATECLUSTERREQUEST_LABELSENTRY']._serialized_options = b'8\001' + _globals['_UPDATECLUSTERREQUEST'].fields_by_name['cluster_id']._loaded_options = None + _globals['_UPDATECLUSTERREQUEST'].fields_by_name['cluster_id']._serialized_options = b'\350\3071\001\212\3101\004<=50' + _globals['_UPDATECLUSTERREQUEST'].fields_by_name['name']._loaded_options = None + _globals['_UPDATECLUSTERREQUEST'].fields_by_name['name']._serialized_options = b'\362\3071\016[a-zA-Z0-9_-]*\212\3101\004<=63' + _globals['_UPDATECLUSTERREQUEST'].fields_by_name['description']._loaded_options = None + _globals['_UPDATECLUSTERREQUEST'].fields_by_name['description']._serialized_options = b'\212\3101\005<=256' + _globals['_UPDATECLUSTERREQUEST'].fields_by_name['labels']._loaded_options = None + _globals['_UPDATECLUSTERREQUEST'].fields_by_name['labels']._serialized_options = b'\362\3071\013[-_0-9a-z]*\202\3101\004<=64\212\3101\004<=63\262\3101\030\022\020[a-z][-_0-9a-z]*\032\0041-63' + _globals['_UPDATECLUSTERREQUEST'].fields_by_name['service_account_id']._loaded_options = None + _globals['_UPDATECLUSTERREQUEST'].fields_by_name['service_account_id']._serialized_options = b'\212\3101\004<=50' + _globals['_DELETECLUSTERREQUEST'].fields_by_name['cluster_id']._loaded_options = None + _globals['_DELETECLUSTERREQUEST'].fields_by_name['cluster_id']._serialized_options = b'\350\3071\001\212\3101\004<=50' + _globals['_STARTCLUSTERREQUEST'].fields_by_name['cluster_id']._loaded_options = None + _globals['_STARTCLUSTERREQUEST'].fields_by_name['cluster_id']._serialized_options = b'\350\3071\001\212\3101\004<=50' + _globals['_STOPCLUSTERREQUEST'].fields_by_name['cluster_id']._loaded_options = None + _globals['_STOPCLUSTERREQUEST'].fields_by_name['cluster_id']._serialized_options = b'\350\3071\001\212\3101\004<=50' + _globals['_LISTCLUSTEROPERATIONSREQUEST'].fields_by_name['cluster_id']._loaded_options = None + _globals['_LISTCLUSTEROPERATIONSREQUEST'].fields_by_name['cluster_id']._serialized_options = b'\350\3071\001\212\3101\004<=50' + _globals['_LISTCLUSTEROPERATIONSREQUEST'].fields_by_name['page_size']._loaded_options = None + _globals['_LISTCLUSTEROPERATIONSREQUEST'].fields_by_name['page_size']._serialized_options = b'\372\3071\0060-1000' + _globals['_LISTCLUSTEROPERATIONSREQUEST'].fields_by_name['page_token']._loaded_options = None + _globals['_LISTCLUSTEROPERATIONSREQUEST'].fields_by_name['page_token']._serialized_options = b'\212\3101\005<=100' + _globals['_CLUSTERSERVICE'].methods_by_name['Get']._loaded_options = None + _globals['_CLUSTERSERVICE'].methods_by_name['Get']._serialized_options = b'\202\323\344\223\002)\022\'/managed-trino/v1/clusters/{cluster_id}' + _globals['_CLUSTERSERVICE'].methods_by_name['List']._loaded_options = None + _globals['_CLUSTERSERVICE'].methods_by_name['List']._serialized_options = b'\202\323\344\223\002\034\022\032/managed-trino/v1/clusters' + _globals['_CLUSTERSERVICE'].methods_by_name['Create']._loaded_options = None + _globals['_CLUSTERSERVICE'].methods_by_name['Create']._serialized_options = b'\262\322* \n\025CreateClusterMetadata\022\007Cluster\202\323\344\223\002\037\"\032/managed-trino/v1/clusters:\001*' + _globals['_CLUSTERSERVICE'].methods_by_name['Update']._loaded_options = None + _globals['_CLUSTERSERVICE'].methods_by_name['Update']._serialized_options = b'\262\322* \n\025UpdateClusterMetadata\022\007Cluster\202\323\344\223\002,2\'/managed-trino/v1/clusters/{cluster_id}:\001*' + _globals['_CLUSTERSERVICE'].methods_by_name['Delete']._loaded_options = None + _globals['_CLUSTERSERVICE'].methods_by_name['Delete']._serialized_options = b'\262\322*.\n\025DeleteClusterMetadata\022\025google.protobuf.Empty\202\323\344\223\002)*\'/managed-trino/v1/clusters/{cluster_id}' + _globals['_CLUSTERSERVICE'].methods_by_name['Start']._loaded_options = None + _globals['_CLUSTERSERVICE'].methods_by_name['Start']._serialized_options = b'\262\322*\037\n\024StartClusterMetadata\022\007Cluster\202\323\344\223\002/\"-/managed-trino/v1/clusters/{cluster_id}:start' + _globals['_CLUSTERSERVICE'].methods_by_name['Stop']._loaded_options = None + _globals['_CLUSTERSERVICE'].methods_by_name['Stop']._serialized_options = b'\262\322*\036\n\023StopClusterMetadata\022\007Cluster\202\323\344\223\002.\",/managed-trino/v1/clusters/{cluster_id}:stop' + _globals['_CLUSTERSERVICE'].methods_by_name['ListOperations']._loaded_options = None + _globals['_CLUSTERSERVICE'].methods_by_name['ListOperations']._serialized_options = b'\202\323\344\223\0024\0222/managed-trino/v1/clusters/{cluster_id}/operations' + _globals['_GETCLUSTERREQUEST']._serialized_start=317 + _globals['_GETCLUSTERREQUEST']._serialized_end=370 + _globals['_LISTCLUSTERSREQUEST']._serialized_start=373 + _globals['_LISTCLUSTERSREQUEST']._serialized_end=517 + _globals['_LISTCLUSTERSRESPONSE']._serialized_start=519 + _globals['_LISTCLUSTERSRESPONSE']._serialized_end=616 + _globals['_CREATECLUSTERREQUEST']._serialized_start=619 + _globals['_CREATECLUSTERREQUEST']._serialized_end=1252 + _globals['_CREATECLUSTERREQUEST_LABELSENTRY']._serialized_start=1207 + _globals['_CREATECLUSTERREQUEST_LABELSENTRY']._serialized_end=1252 + _globals['_TRINOCONFIGSPEC']._serialized_start=1255 + _globals['_TRINOCONFIGSPEC']._serialized_end=1490 + _globals['_CREATECLUSTERMETADATA']._serialized_start=1492 + _globals['_CREATECLUSTERMETADATA']._serialized_end=1535 + _globals['_UPDATECOORDINATORCONFIG']._serialized_start=1537 + _globals['_UPDATECOORDINATORCONFIG']._serialized_end=1615 + _globals['_UPDATEWORKERCONFIG']._serialized_start=1618 + _globals['_UPDATEWORKERCONFIG']._serialized_end=1942 + _globals['_UPDATEWORKERCONFIG_WORKERSCALEPOLICY']._serialized_start=1777 + _globals['_UPDATEWORKERCONFIG_WORKERSCALEPOLICY']._serialized_end=1942 + _globals['_UPDATETRINOCONFIGSPEC']._serialized_start=1945 + _globals['_UPDATETRINOCONFIGSPEC']._serialized_end=2180 + _globals['_UPDATENETWORKCONFIGSPEC']._serialized_start=2182 + _globals['_UPDATENETWORKCONFIGSPEC']._serialized_end=2235 + _globals['_UPDATECLUSTERREQUEST']._serialized_start=2238 + _globals['_UPDATECLUSTERREQUEST']._serialized_end=2922 + _globals['_UPDATECLUSTERREQUEST_LABELSENTRY']._serialized_start=1207 + _globals['_UPDATECLUSTERREQUEST_LABELSENTRY']._serialized_end=1252 + _globals['_UPDATECLUSTERMETADATA']._serialized_start=2924 + _globals['_UPDATECLUSTERMETADATA']._serialized_end=2967 + _globals['_DELETECLUSTERREQUEST']._serialized_start=2969 + _globals['_DELETECLUSTERREQUEST']._serialized_end=3025 + _globals['_DELETECLUSTERMETADATA']._serialized_start=3027 + _globals['_DELETECLUSTERMETADATA']._serialized_end=3070 + _globals['_STARTCLUSTERREQUEST']._serialized_start=3072 + _globals['_STARTCLUSTERREQUEST']._serialized_end=3127 + _globals['_STARTCLUSTERMETADATA']._serialized_start=3129 + _globals['_STARTCLUSTERMETADATA']._serialized_end=3171 + _globals['_STOPCLUSTERREQUEST']._serialized_start=3173 + _globals['_STOPCLUSTERREQUEST']._serialized_end=3227 + _globals['_STOPCLUSTERMETADATA']._serialized_start=3229 + _globals['_STOPCLUSTERMETADATA']._serialized_end=3270 + _globals['_LISTCLUSTEROPERATIONSREQUEST']._serialized_start=3272 + _globals['_LISTCLUSTEROPERATIONSREQUEST']._serialized_end=3398 + _globals['_LISTCLUSTEROPERATIONSRESPONSE']._serialized_start=3400 + _globals['_LISTCLUSTEROPERATIONSRESPONSE']._serialized_end=3511 + _globals['_CLUSTERSERVICE']._serialized_start=3514 + _globals['_CLUSTERSERVICE']._serialized_end=4870 +# @@protoc_insertion_point(module_scope) diff --git a/yandex/cloud/trino/v1/cluster_service_pb2.pyi b/yandex/cloud/trino/v1/cluster_service_pb2.pyi new file mode 100644 index 00000000..63d21467 --- /dev/null +++ b/yandex/cloud/trino/v1/cluster_service_pb2.pyi @@ -0,0 +1,597 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.field_mask_pb2 +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import yandex.cloud.operation.operation_pb2 +import yandex.cloud.trino.v1.cluster_pb2 +import yandex.cloud.trino.v1.maintenance_pb2 + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class GetClusterRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLUSTER_ID_FIELD_NUMBER: builtins.int + cluster_id: builtins.str + """ID of the Trino Cluster resource to return.""" + def __init__( + self, + *, + cluster_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ... + +global___GetClusterRequest = GetClusterRequest + +@typing.final +class ListClustersRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FOLDER_ID_FIELD_NUMBER: builtins.int + PAGE_SIZE_FIELD_NUMBER: builtins.int + PAGE_TOKEN_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + folder_id: builtins.str + """ID of the folder to list Trino clusters in.""" + page_size: builtins.int + """The maximum number of results per page to return. If the number of available + results is larger than [page_size], the service returns a [ListClustersResponse.next_page_token] + that can be used to get the next page of results in subsequent list requests. + """ + page_token: builtins.str + """Page token. To get the next page of results, set [page_token] to the [ListClustersResponse.next_page_token] + returned by the previous list request. + """ + filter: builtins.str + """A filter expression that filters resources listed in the response. + The expression must specify: + 1. The field name. Currently you can only use filtering with the [Cluster.name] field. + 2. An `=` operator. + 3. The value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`. + """ + def __init__( + self, + *, + folder_id: builtins.str = ..., + page_size: builtins.int = ..., + page_token: builtins.str = ..., + filter: builtins.str = ..., + ) -> None: ... + 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: ... + +global___ListClustersRequest = ListClustersRequest + +@typing.final +class ListClustersResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLUSTERS_FIELD_NUMBER: builtins.int + NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + """This token allows you to get the next page of results for list requests. If the number of results + is larger than [ListClustersRequest.page_size], use the [next_page_token] as the value + for the [ListClustersRequest.page_token] parameter in the next list request. Each subsequent + list request will have its own [next_page_token] to continue paging through the results. + """ + @property + def clusters(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.trino.v1.cluster_pb2.Cluster]: + """List of Trino Cluster resources.""" + + def __init__( + self, + *, + clusters: collections.abc.Iterable[yandex.cloud.trino.v1.cluster_pb2.Cluster] | None = ..., + next_page_token: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["clusters", b"clusters", "next_page_token", b"next_page_token"]) -> None: ... + +global___ListClustersResponse = ListClustersResponse + +@typing.final +class CreateClusterRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class LabelsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + value: builtins.str + def __init__( + self, + *, + key: builtins.str = ..., + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + FOLDER_ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + LABELS_FIELD_NUMBER: builtins.int + TRINO_FIELD_NUMBER: builtins.int + NETWORK_FIELD_NUMBER: builtins.int + DELETION_PROTECTION_FIELD_NUMBER: builtins.int + SERVICE_ACCOUNT_ID_FIELD_NUMBER: builtins.int + LOGGING_FIELD_NUMBER: builtins.int + MAINTENANCE_WINDOW_FIELD_NUMBER: builtins.int + folder_id: builtins.str + """ID of the folder to create Trino cluster in.""" + name: builtins.str + """Name of the Trino cluster. The name must be unique within the folder.""" + description: builtins.str + """Description of the Trino cluster.""" + deletion_protection: builtins.bool + """Deletion Protection inhibits deletion of the cluster.""" + service_account_id: builtins.str + """Service account used to access Cloud resources.""" + @property + def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """Custom labels for the Trino cluster as `` key:value `` pairs. + For example: {"env": "prod"}. + """ + + @property + def trino(self) -> global___TrinoConfigSpec: + """Configuration of Trino components.""" + + @property + def network(self) -> yandex.cloud.trino.v1.cluster_pb2.NetworkConfig: + """Network related configuration options.""" + + @property + def logging(self) -> yandex.cloud.trino.v1.cluster_pb2.LoggingConfig: + """Cloud logging configuration.""" + + @property + def maintenance_window(self) -> yandex.cloud.trino.v1.maintenance_pb2.MaintenanceWindow: + """Window of maintenance operations.""" + + def __init__( + self, + *, + folder_id: builtins.str = ..., + name: builtins.str = ..., + description: builtins.str = ..., + labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + trino: global___TrinoConfigSpec | None = ..., + network: yandex.cloud.trino.v1.cluster_pb2.NetworkConfig | None = ..., + deletion_protection: builtins.bool = ..., + service_account_id: builtins.str = ..., + logging: yandex.cloud.trino.v1.cluster_pb2.LoggingConfig | None = ..., + maintenance_window: yandex.cloud.trino.v1.maintenance_pb2.MaintenanceWindow | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["logging", b"logging", "maintenance_window", b"maintenance_window", "network", b"network", "trino", b"trino"]) -> builtins.bool: ... + 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: ... + +global___CreateClusterRequest = CreateClusterRequest + +@typing.final +class TrinoConfigSpec(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COORDINATOR_CONFIG_FIELD_NUMBER: builtins.int + WORKER_CONFIG_FIELD_NUMBER: builtins.int + RETRY_POLICY_FIELD_NUMBER: builtins.int + @property + def coordinator_config(self) -> yandex.cloud.trino.v1.cluster_pb2.CoordinatorConfig: + """Configuration for the coordinator, specifying computational resources and other settings.""" + + @property + def worker_config(self) -> yandex.cloud.trino.v1.cluster_pb2.WorkerConfig: + """Configuration for worker nodes, including scaling policy and computational resources.""" + + @property + def retry_policy(self) -> yandex.cloud.trino.v1.cluster_pb2.RetryPolicyConfig: + """Configuration for retry policy, specifying the spooling storage destination and other settings.""" + + def __init__( + self, + *, + coordinator_config: yandex.cloud.trino.v1.cluster_pb2.CoordinatorConfig | None = ..., + worker_config: yandex.cloud.trino.v1.cluster_pb2.WorkerConfig | None = ..., + retry_policy: yandex.cloud.trino.v1.cluster_pb2.RetryPolicyConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["coordinator_config", b"coordinator_config", "retry_policy", b"retry_policy", "worker_config", b"worker_config"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["coordinator_config", b"coordinator_config", "retry_policy", b"retry_policy", "worker_config", b"worker_config"]) -> None: ... + +global___TrinoConfigSpec = TrinoConfigSpec + +@typing.final +class CreateClusterMetadata(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLUSTER_ID_FIELD_NUMBER: builtins.int + cluster_id: builtins.str + """ID of the Trino cluster that is being created.""" + def __init__( + self, + *, + cluster_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ... + +global___CreateClusterMetadata = CreateClusterMetadata + +@typing.final +class UpdateCoordinatorConfig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCES_FIELD_NUMBER: builtins.int + @property + def resources(self) -> yandex.cloud.trino.v1.cluster_pb2.Resources: + """Configuration for computational resources assigned to the coordinator instance.""" + + def __init__( + self, + *, + resources: yandex.cloud.trino.v1.cluster_pb2.Resources | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["resources", b"resources"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["resources", b"resources"]) -> None: ... + +global___UpdateCoordinatorConfig = UpdateCoordinatorConfig + +@typing.final +class UpdateWorkerConfig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class WorkerScalePolicy(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FIXED_SCALE_FIELD_NUMBER: builtins.int + AUTO_SCALE_FIELD_NUMBER: builtins.int + @property + def fixed_scale(self) -> yandex.cloud.trino.v1.cluster_pb2.FixedScalePolicy: + """A fixed scaling policy that specifies a fixed number of worker instances.""" + + @property + def auto_scale(self) -> yandex.cloud.trino.v1.cluster_pb2.AutoScalePolicy: + """A scaling policy that dynamically adjusts the number of worker instances + based on the cluster's workload. The system automatically increases or + decreases the number of instances within the defined range. + """ + + def __init__( + self, + *, + fixed_scale: yandex.cloud.trino.v1.cluster_pb2.FixedScalePolicy | None = ..., + auto_scale: yandex.cloud.trino.v1.cluster_pb2.AutoScalePolicy | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["auto_scale", b"auto_scale", "fixed_scale", b"fixed_scale", "scale_type", b"scale_type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["auto_scale", b"auto_scale", "fixed_scale", b"fixed_scale", "scale_type", b"scale_type"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["scale_type", b"scale_type"]) -> typing.Literal["fixed_scale", "auto_scale"] | None: ... + + RESOURCES_FIELD_NUMBER: builtins.int + SCALE_POLICY_FIELD_NUMBER: builtins.int + @property + def resources(self) -> yandex.cloud.trino.v1.cluster_pb2.Resources: + """Configuration for computational resources for worker instances.""" + + @property + def scale_policy(self) -> global___UpdateWorkerConfig.WorkerScalePolicy: + """Configuration for scaling policy for worker instances.""" + + def __init__( + self, + *, + resources: yandex.cloud.trino.v1.cluster_pb2.Resources | None = ..., + scale_policy: global___UpdateWorkerConfig.WorkerScalePolicy | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["resources", b"resources", "scale_policy", b"scale_policy"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["resources", b"resources", "scale_policy", b"scale_policy"]) -> None: ... + +global___UpdateWorkerConfig = UpdateWorkerConfig + +@typing.final +class UpdateTrinoConfigSpec(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COORDINATOR_CONFIG_FIELD_NUMBER: builtins.int + WORKER_CONFIG_FIELD_NUMBER: builtins.int + RETRY_POLICY_FIELD_NUMBER: builtins.int + @property + def coordinator_config(self) -> global___UpdateCoordinatorConfig: + """Configuration for the coordinator, specifying computational resources and other settings.""" + + @property + def worker_config(self) -> global___UpdateWorkerConfig: + """Configuration for worker nodes, including scaling policy and computational resources.""" + + @property + def retry_policy(self) -> yandex.cloud.trino.v1.cluster_pb2.RetryPolicyConfig: + """Configuration for retry policy, specifying the spooling storage destination and other settings.""" + + def __init__( + self, + *, + coordinator_config: global___UpdateCoordinatorConfig | None = ..., + worker_config: global___UpdateWorkerConfig | None = ..., + retry_policy: yandex.cloud.trino.v1.cluster_pb2.RetryPolicyConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["coordinator_config", b"coordinator_config", "retry_policy", b"retry_policy", "worker_config", b"worker_config"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["coordinator_config", b"coordinator_config", "retry_policy", b"retry_policy", "worker_config", b"worker_config"]) -> None: ... + +global___UpdateTrinoConfigSpec = UpdateTrinoConfigSpec + +@typing.final +class UpdateNetworkConfigSpec(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SECURITY_GROUP_IDS_FIELD_NUMBER: builtins.int + @property + def security_group_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """User security groups.""" + + def __init__( + self, + *, + security_group_ids: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["security_group_ids", b"security_group_ids"]) -> None: ... + +global___UpdateNetworkConfigSpec = UpdateNetworkConfigSpec + +@typing.final +class UpdateClusterRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class LabelsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + value: builtins.str + def __init__( + self, + *, + key: builtins.str = ..., + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + CLUSTER_ID_FIELD_NUMBER: builtins.int + UPDATE_MASK_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + LABELS_FIELD_NUMBER: builtins.int + DELETION_PROTECTION_FIELD_NUMBER: builtins.int + TRINO_FIELD_NUMBER: builtins.int + NETWORK_SPEC_FIELD_NUMBER: builtins.int + SERVICE_ACCOUNT_ID_FIELD_NUMBER: builtins.int + LOGGING_FIELD_NUMBER: builtins.int + MAINTENANCE_WINDOW_FIELD_NUMBER: builtins.int + cluster_id: builtins.str + """ID of the Trino cluster.""" + name: builtins.str + """Name of the Trino cluster. The name must be unique within the folder.""" + description: builtins.str + """Description of the Trino cluster.""" + deletion_protection: builtins.bool + """Deletion Protection inhibits deletion of the cluster.""" + service_account_id: builtins.str + """Service account used to access Cloud resources.""" + @property + def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: ... + @property + def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """Custom labels for the Trino cluster as `` key:value `` pairs. + For example: {"env": "prod"}. + """ + + @property + def trino(self) -> global___UpdateTrinoConfigSpec: + """Configuration of Trino components.""" + + @property + def network_spec(self) -> global___UpdateNetworkConfigSpec: + """Network related configuration options.""" + + @property + def logging(self) -> yandex.cloud.trino.v1.cluster_pb2.LoggingConfig: + """Cloud logging configuration.""" + + @property + def maintenance_window(self) -> yandex.cloud.trino.v1.maintenance_pb2.MaintenanceWindow: + """Window of maintenance operations.""" + + def __init__( + self, + *, + cluster_id: builtins.str = ..., + update_mask: google.protobuf.field_mask_pb2.FieldMask | None = ..., + name: builtins.str = ..., + description: builtins.str = ..., + labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + deletion_protection: builtins.bool = ..., + trino: global___UpdateTrinoConfigSpec | None = ..., + network_spec: global___UpdateNetworkConfigSpec | None = ..., + service_account_id: builtins.str = ..., + logging: yandex.cloud.trino.v1.cluster_pb2.LoggingConfig | None = ..., + maintenance_window: yandex.cloud.trino.v1.maintenance_pb2.MaintenanceWindow | None = ..., + ) -> None: ... + 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: ... + 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: ... + +global___UpdateClusterRequest = UpdateClusterRequest + +@typing.final +class UpdateClusterMetadata(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLUSTER_ID_FIELD_NUMBER: builtins.int + cluster_id: builtins.str + """ID of the Trino cluster that is being updated.""" + def __init__( + self, + *, + cluster_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ... + +global___UpdateClusterMetadata = UpdateClusterMetadata + +@typing.final +class DeleteClusterRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLUSTER_ID_FIELD_NUMBER: builtins.int + cluster_id: builtins.str + """ID of the Trino cluster that is being deleted.""" + def __init__( + self, + *, + cluster_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ... + +global___DeleteClusterRequest = DeleteClusterRequest + +@typing.final +class DeleteClusterMetadata(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLUSTER_ID_FIELD_NUMBER: builtins.int + cluster_id: builtins.str + """ID of the deleting Trino cluster.""" + def __init__( + self, + *, + cluster_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ... + +global___DeleteClusterMetadata = DeleteClusterMetadata + +@typing.final +class StartClusterRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLUSTER_ID_FIELD_NUMBER: builtins.int + cluster_id: builtins.str + """ID of the Trino cluster that is being started.""" + def __init__( + self, + *, + cluster_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ... + +global___StartClusterRequest = StartClusterRequest + +@typing.final +class StartClusterMetadata(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLUSTER_ID_FIELD_NUMBER: builtins.int + cluster_id: builtins.str + """ID of the Trino cluster.""" + def __init__( + self, + *, + cluster_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ... + +global___StartClusterMetadata = StartClusterMetadata + +@typing.final +class StopClusterRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLUSTER_ID_FIELD_NUMBER: builtins.int + cluster_id: builtins.str + """ID of the Trino cluster that is being stopped.""" + def __init__( + self, + *, + cluster_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ... + +global___StopClusterRequest = StopClusterRequest + +@typing.final +class StopClusterMetadata(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLUSTER_ID_FIELD_NUMBER: builtins.int + cluster_id: builtins.str + """ID of the Trino cluster.""" + def __init__( + self, + *, + cluster_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ... + +global___StopClusterMetadata = StopClusterMetadata + +@typing.final +class ListClusterOperationsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLUSTER_ID_FIELD_NUMBER: builtins.int + PAGE_SIZE_FIELD_NUMBER: builtins.int + PAGE_TOKEN_FIELD_NUMBER: builtins.int + cluster_id: builtins.str + """ID of the Trino Cluster resource to list operations for.""" + page_size: builtins.int + """The maximum number of results per page to return. If the number of available + results is larger than [page_size], the service returns a [ListClusterOperationsResponse.next_page_token] + that can be used to get the next page of results in subsequent list requests. + """ + page_token: builtins.str + """Page token. To get the next page of results, set [page_token] to the [ListClusterOperationsResponse.next_page_token] + returned by the previous list request. + """ + def __init__( + self, + *, + cluster_id: builtins.str = ..., + page_size: builtins.int = ..., + page_token: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ... + +global___ListClusterOperationsRequest = ListClusterOperationsRequest + +@typing.final +class ListClusterOperationsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OPERATIONS_FIELD_NUMBER: builtins.int + NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + """This token allows you to get the next page of results for list requests. If the number of results + is larger than [ListClusterOperationsRequest.page_size], use the [next_page_token] as the value + for the [ListClusterOperationsRequest.page_token] query parameter in the next list request. + Each subsequent list request will have its own [next_page_token] to continue paging through the results. + """ + @property + def operations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.operation.operation_pb2.Operation]: + """List of Operation resources for the specified Trino cluster.""" + + def __init__( + self, + *, + operations: collections.abc.Iterable[yandex.cloud.operation.operation_pb2.Operation] | None = ..., + next_page_token: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "operations", b"operations"]) -> None: ... + +global___ListClusterOperationsResponse = ListClusterOperationsResponse diff --git a/yandex/cloud/trino/v1/cluster_service_pb2_grpc.py b/yandex/cloud/trino/v1/cluster_service_pb2_grpc.py new file mode 100644 index 00000000..0ce23b44 --- /dev/null +++ b/yandex/cloud/trino/v1/cluster_service_pb2_grpc.py @@ -0,0 +1,411 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc +import warnings + +from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2 +from yandex.cloud.trino.v1 import cluster_pb2 as yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__pb2 +from yandex.cloud.trino.v1 import cluster_service_pb2 as yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2 + +GRPC_GENERATED_VERSION = '1.70.0' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in yandex/cloud/trino/v1/cluster_service_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + + +class ClusterServiceStub(object): + """A set of methods for managing Trino Cluster resources. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Get = channel.unary_unary( + '/yandex.cloud.trino.v1.ClusterService/Get', + request_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.GetClusterRequest.SerializeToString, + response_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__pb2.Cluster.FromString, + _registered_method=True) + self.List = channel.unary_unary( + '/yandex.cloud.trino.v1.ClusterService/List', + request_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClustersRequest.SerializeToString, + response_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClustersResponse.FromString, + _registered_method=True) + self.Create = channel.unary_unary( + '/yandex.cloud.trino.v1.ClusterService/Create', + request_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.CreateClusterRequest.SerializeToString, + response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString, + _registered_method=True) + self.Update = channel.unary_unary( + '/yandex.cloud.trino.v1.ClusterService/Update', + request_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.UpdateClusterRequest.SerializeToString, + response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString, + _registered_method=True) + self.Delete = channel.unary_unary( + '/yandex.cloud.trino.v1.ClusterService/Delete', + request_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.DeleteClusterRequest.SerializeToString, + response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString, + _registered_method=True) + self.Start = channel.unary_unary( + '/yandex.cloud.trino.v1.ClusterService/Start', + request_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.StartClusterRequest.SerializeToString, + response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString, + _registered_method=True) + self.Stop = channel.unary_unary( + '/yandex.cloud.trino.v1.ClusterService/Stop', + request_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.StopClusterRequest.SerializeToString, + response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString, + _registered_method=True) + self.ListOperations = channel.unary_unary( + '/yandex.cloud.trino.v1.ClusterService/ListOperations', + request_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClusterOperationsRequest.SerializeToString, + response_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClusterOperationsResponse.FromString, + _registered_method=True) + + +class ClusterServiceServicer(object): + """A set of methods for managing Trino Cluster resources. + """ + + def Get(self, request, context): + """Returns the specified Trino Cluster resource. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def List(self, request, context): + """Retrieves a list of Trino Cluster resources. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Create(self, request, context): + """Creates a Trino Cluster resource. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Update(self, request, context): + """Updates configuration of the specified Trino cluster. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Delete(self, request, context): + """Deletes the specified Trino Cluster resource. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Start(self, request, context): + """Start the specified Trino Cluster resource. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Stop(self, request, context): + """Stops the specified Trino Cluster resource. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListOperations(self, request, context): + """Retrieves the list of Operation resources for the specified cluster. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ClusterServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Get': grpc.unary_unary_rpc_method_handler( + servicer.Get, + request_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.GetClusterRequest.FromString, + response_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__pb2.Cluster.SerializeToString, + ), + 'List': grpc.unary_unary_rpc_method_handler( + servicer.List, + request_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClustersRequest.FromString, + response_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClustersResponse.SerializeToString, + ), + 'Create': grpc.unary_unary_rpc_method_handler( + servicer.Create, + request_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.CreateClusterRequest.FromString, + response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString, + ), + 'Update': grpc.unary_unary_rpc_method_handler( + servicer.Update, + request_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.UpdateClusterRequest.FromString, + response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString, + ), + 'Delete': grpc.unary_unary_rpc_method_handler( + servicer.Delete, + request_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.DeleteClusterRequest.FromString, + response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString, + ), + 'Start': grpc.unary_unary_rpc_method_handler( + servicer.Start, + request_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.StartClusterRequest.FromString, + response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString, + ), + 'Stop': grpc.unary_unary_rpc_method_handler( + servicer.Stop, + request_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.StopClusterRequest.FromString, + response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString, + ), + 'ListOperations': grpc.unary_unary_rpc_method_handler( + servicer.ListOperations, + request_deserializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClusterOperationsRequest.FromString, + response_serializer=yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClusterOperationsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'yandex.cloud.trino.v1.ClusterService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('yandex.cloud.trino.v1.ClusterService', rpc_method_handlers) + + + # This class is part of an EXPERIMENTAL API. +class ClusterService(object): + """A set of methods for managing Trino Cluster resources. + """ + + @staticmethod + def Get(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/yandex.cloud.trino.v1.ClusterService/Get', + yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.GetClusterRequest.SerializeToString, + yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__pb2.Cluster.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def List(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/yandex.cloud.trino.v1.ClusterService/List', + yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClustersRequest.SerializeToString, + yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClustersResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def Create(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/yandex.cloud.trino.v1.ClusterService/Create', + yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.CreateClusterRequest.SerializeToString, + yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def Update(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/yandex.cloud.trino.v1.ClusterService/Update', + yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.UpdateClusterRequest.SerializeToString, + yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def Delete(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/yandex.cloud.trino.v1.ClusterService/Delete', + yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.DeleteClusterRequest.SerializeToString, + yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def Start(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/yandex.cloud.trino.v1.ClusterService/Start', + yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.StartClusterRequest.SerializeToString, + yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def Stop(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/yandex.cloud.trino.v1.ClusterService/Stop', + yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.StopClusterRequest.SerializeToString, + yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def ListOperations(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/yandex.cloud.trino.v1.ClusterService/ListOperations', + yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClusterOperationsRequest.SerializeToString, + yandex_dot_cloud_dot_trino_dot_v1_dot_cluster__service__pb2.ListClusterOperationsResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/yandex/cloud/trino/v1/cluster_service_pb2_grpc.pyi b/yandex/cloud/trino/v1/cluster_service_pb2_grpc.pyi new file mode 100644 index 00000000..ae431f3f --- /dev/null +++ b/yandex/cloud/trino/v1/cluster_service_pb2_grpc.pyi @@ -0,0 +1,192 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import abc +import collections.abc +import grpc +import grpc.aio +import typing +import yandex.cloud.operation.operation_pb2 +import yandex.cloud.trino.v1.cluster_pb2 +import yandex.cloud.trino.v1.cluster_service_pb2 + +_T = typing.TypeVar("_T") + +class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ... + +class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg] + ... + +class ClusterServiceStub: + """A set of methods for managing Trino Cluster resources.""" + + def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ... + Get: grpc.UnaryUnaryMultiCallable[ + yandex.cloud.trino.v1.cluster_service_pb2.GetClusterRequest, + yandex.cloud.trino.v1.cluster_pb2.Cluster, + ] + """Returns the specified Trino Cluster resource.""" + + List: grpc.UnaryUnaryMultiCallable[ + yandex.cloud.trino.v1.cluster_service_pb2.ListClustersRequest, + yandex.cloud.trino.v1.cluster_service_pb2.ListClustersResponse, + ] + """Retrieves a list of Trino Cluster resources.""" + + Create: grpc.UnaryUnaryMultiCallable[ + yandex.cloud.trino.v1.cluster_service_pb2.CreateClusterRequest, + yandex.cloud.operation.operation_pb2.Operation, + ] + """Creates a Trino Cluster resource.""" + + Update: grpc.UnaryUnaryMultiCallable[ + yandex.cloud.trino.v1.cluster_service_pb2.UpdateClusterRequest, + yandex.cloud.operation.operation_pb2.Operation, + ] + """Updates configuration of the specified Trino cluster.""" + + Delete: grpc.UnaryUnaryMultiCallable[ + yandex.cloud.trino.v1.cluster_service_pb2.DeleteClusterRequest, + yandex.cloud.operation.operation_pb2.Operation, + ] + """Deletes the specified Trino Cluster resource.""" + + Start: grpc.UnaryUnaryMultiCallable[ + yandex.cloud.trino.v1.cluster_service_pb2.StartClusterRequest, + yandex.cloud.operation.operation_pb2.Operation, + ] + """Start the specified Trino Cluster resource.""" + + Stop: grpc.UnaryUnaryMultiCallable[ + yandex.cloud.trino.v1.cluster_service_pb2.StopClusterRequest, + yandex.cloud.operation.operation_pb2.Operation, + ] + """Stops the specified Trino Cluster resource.""" + + ListOperations: grpc.UnaryUnaryMultiCallable[ + yandex.cloud.trino.v1.cluster_service_pb2.ListClusterOperationsRequest, + yandex.cloud.trino.v1.cluster_service_pb2.ListClusterOperationsResponse, + ] + """Retrieves the list of Operation resources for the specified cluster.""" + +class ClusterServiceAsyncStub: + """A set of methods for managing Trino Cluster resources.""" + + Get: grpc.aio.UnaryUnaryMultiCallable[ + yandex.cloud.trino.v1.cluster_service_pb2.GetClusterRequest, + yandex.cloud.trino.v1.cluster_pb2.Cluster, + ] + """Returns the specified Trino Cluster resource.""" + + List: grpc.aio.UnaryUnaryMultiCallable[ + yandex.cloud.trino.v1.cluster_service_pb2.ListClustersRequest, + yandex.cloud.trino.v1.cluster_service_pb2.ListClustersResponse, + ] + """Retrieves a list of Trino Cluster resources.""" + + Create: grpc.aio.UnaryUnaryMultiCallable[ + yandex.cloud.trino.v1.cluster_service_pb2.CreateClusterRequest, + yandex.cloud.operation.operation_pb2.Operation, + ] + """Creates a Trino Cluster resource.""" + + Update: grpc.aio.UnaryUnaryMultiCallable[ + yandex.cloud.trino.v1.cluster_service_pb2.UpdateClusterRequest, + yandex.cloud.operation.operation_pb2.Operation, + ] + """Updates configuration of the specified Trino cluster.""" + + Delete: grpc.aio.UnaryUnaryMultiCallable[ + yandex.cloud.trino.v1.cluster_service_pb2.DeleteClusterRequest, + yandex.cloud.operation.operation_pb2.Operation, + ] + """Deletes the specified Trino Cluster resource.""" + + Start: grpc.aio.UnaryUnaryMultiCallable[ + yandex.cloud.trino.v1.cluster_service_pb2.StartClusterRequest, + yandex.cloud.operation.operation_pb2.Operation, + ] + """Start the specified Trino Cluster resource.""" + + Stop: grpc.aio.UnaryUnaryMultiCallable[ + yandex.cloud.trino.v1.cluster_service_pb2.StopClusterRequest, + yandex.cloud.operation.operation_pb2.Operation, + ] + """Stops the specified Trino Cluster resource.""" + + ListOperations: grpc.aio.UnaryUnaryMultiCallable[ + yandex.cloud.trino.v1.cluster_service_pb2.ListClusterOperationsRequest, + yandex.cloud.trino.v1.cluster_service_pb2.ListClusterOperationsResponse, + ] + """Retrieves the list of Operation resources for the specified cluster.""" + +class ClusterServiceServicer(metaclass=abc.ABCMeta): + """A set of methods for managing Trino Cluster resources.""" + + @abc.abstractmethod + def Get( + self, + request: yandex.cloud.trino.v1.cluster_service_pb2.GetClusterRequest, + context: _ServicerContext, + ) -> typing.Union[yandex.cloud.trino.v1.cluster_pb2.Cluster, collections.abc.Awaitable[yandex.cloud.trino.v1.cluster_pb2.Cluster]]: + """Returns the specified Trino Cluster resource.""" + + @abc.abstractmethod + def List( + self, + request: yandex.cloud.trino.v1.cluster_service_pb2.ListClustersRequest, + context: _ServicerContext, + ) -> typing.Union[yandex.cloud.trino.v1.cluster_service_pb2.ListClustersResponse, collections.abc.Awaitable[yandex.cloud.trino.v1.cluster_service_pb2.ListClustersResponse]]: + """Retrieves a list of Trino Cluster resources.""" + + @abc.abstractmethod + def Create( + self, + request: yandex.cloud.trino.v1.cluster_service_pb2.CreateClusterRequest, + context: _ServicerContext, + ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]: + """Creates a Trino Cluster resource.""" + + @abc.abstractmethod + def Update( + self, + request: yandex.cloud.trino.v1.cluster_service_pb2.UpdateClusterRequest, + context: _ServicerContext, + ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]: + """Updates configuration of the specified Trino cluster.""" + + @abc.abstractmethod + def Delete( + self, + request: yandex.cloud.trino.v1.cluster_service_pb2.DeleteClusterRequest, + context: _ServicerContext, + ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]: + """Deletes the specified Trino Cluster resource.""" + + @abc.abstractmethod + def Start( + self, + request: yandex.cloud.trino.v1.cluster_service_pb2.StartClusterRequest, + context: _ServicerContext, + ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]: + """Start the specified Trino Cluster resource.""" + + @abc.abstractmethod + def Stop( + self, + request: yandex.cloud.trino.v1.cluster_service_pb2.StopClusterRequest, + context: _ServicerContext, + ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]: + """Stops the specified Trino Cluster resource.""" + + @abc.abstractmethod + def ListOperations( + self, + request: yandex.cloud.trino.v1.cluster_service_pb2.ListClusterOperationsRequest, + context: _ServicerContext, + ) -> typing.Union[yandex.cloud.trino.v1.cluster_service_pb2.ListClusterOperationsResponse, collections.abc.Awaitable[yandex.cloud.trino.v1.cluster_service_pb2.ListClusterOperationsResponse]]: + """Retrieves the list of Operation resources for the specified cluster.""" + +def add_ClusterServiceServicer_to_server(servicer: ClusterServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ... diff --git a/yandex/cloud/trino/v1/maintenance_pb2.py b/yandex/cloud/trino/v1/maintenance_pb2.py new file mode 100644 index 00000000..5fbf87dc --- /dev/null +++ b/yandex/cloud/trino/v1/maintenance_pb2.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: yandex/cloud/trino/v1/maintenance.proto +# Protobuf Python Version: 5.29.0 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 29, + 0, + '', + 'yandex/cloud/trino/v1/maintenance.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'yandex/cloud/trino/v1/maintenance.proto\x12\x15yandex.cloud.trino.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\"\xbc\x01\n\x11MaintenanceWindow\x12\x42\n\x07\x61nytime\x18\x01 \x01(\x0b\x32/.yandex.cloud.trino.v1.AnytimeMaintenanceWindowH\x00\x12S\n\x19weekly_maintenance_window\x18\x02 \x01(\x0b\x32..yandex.cloud.trino.v1.WeeklyMaintenanceWindowH\x00\x42\x0e\n\x06policy\x12\x04\xc0\xc1\x31\x01\"\x1a\n\x18\x41nytimeMaintenanceWindow\"\xda\x01\n\x17WeeklyMaintenanceWindow\x12\x43\n\x03\x64\x61y\x18\x01 \x01(\x0e\x32\x36.yandex.cloud.trino.v1.WeeklyMaintenanceWindow.WeekDay\x12\x16\n\x04hour\x18\x02 \x01(\x03\x42\x08\xfa\xc7\x31\x04\x31-24\"b\n\x07WeekDay\x12\x18\n\x14WEEK_DAY_UNSPECIFIED\x10\x00\x12\x07\n\x03MON\x10\x01\x12\x07\n\x03TUE\x10\x02\x12\x07\n\x03WED\x10\x03\x12\x07\n\x03THU\x10\x04\x12\x07\n\x03\x46RI\x10\x05\x12\x07\n\x03SAT\x10\x06\x12\x07\n\x03SUN\x10\x07\"\xe1\x01\n\x14MaintenanceOperation\x12\x17\n\x04info\x18\x01 \x01(\tB\t\x8a\xc8\x31\x05<=256\x12\x31\n\rdelayed_until\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12;\n\x17latest_maintenance_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x1cnext_maintenance_window_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\\\n\x19yandex.cloud.api.trino.v1Z?github.com/yandex-cloud/go-genproto/yandex/cloud/trino/v1;trinob\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.trino.v1.maintenance_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\031yandex.cloud.api.trino.v1Z?github.com/yandex-cloud/go-genproto/yandex/cloud/trino/v1;trino' + _globals['_MAINTENANCEWINDOW'].oneofs_by_name['policy']._loaded_options = None + _globals['_MAINTENANCEWINDOW'].oneofs_by_name['policy']._serialized_options = b'\300\3011\001' + _globals['_WEEKLYMAINTENANCEWINDOW'].fields_by_name['hour']._loaded_options = None + _globals['_WEEKLYMAINTENANCEWINDOW'].fields_by_name['hour']._serialized_options = b'\372\3071\0041-24' + _globals['_MAINTENANCEOPERATION'].fields_by_name['info']._loaded_options = None + _globals['_MAINTENANCEOPERATION'].fields_by_name['info']._serialized_options = b'\212\3101\005<=256' + _globals['_MAINTENANCEWINDOW']._serialized_start=131 + _globals['_MAINTENANCEWINDOW']._serialized_end=319 + _globals['_ANYTIMEMAINTENANCEWINDOW']._serialized_start=321 + _globals['_ANYTIMEMAINTENANCEWINDOW']._serialized_end=347 + _globals['_WEEKLYMAINTENANCEWINDOW']._serialized_start=350 + _globals['_WEEKLYMAINTENANCEWINDOW']._serialized_end=568 + _globals['_WEEKLYMAINTENANCEWINDOW_WEEKDAY']._serialized_start=470 + _globals['_WEEKLYMAINTENANCEWINDOW_WEEKDAY']._serialized_end=568 + _globals['_MAINTENANCEOPERATION']._serialized_start=571 + _globals['_MAINTENANCEOPERATION']._serialized_end=796 +# @@protoc_insertion_point(module_scope) diff --git a/yandex/cloud/trino/v1/maintenance_pb2.pyi b/yandex/cloud/trino/v1/maintenance_pb2.pyi new file mode 100644 index 00000000..ca0b829d --- /dev/null +++ b/yandex/cloud/trino/v1/maintenance_pb2.pyi @@ -0,0 +1,123 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class MaintenanceWindow(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ANYTIME_FIELD_NUMBER: builtins.int + WEEKLY_MAINTENANCE_WINDOW_FIELD_NUMBER: builtins.int + @property + def anytime(self) -> global___AnytimeMaintenanceWindow: ... + @property + def weekly_maintenance_window(self) -> global___WeeklyMaintenanceWindow: ... + def __init__( + self, + *, + anytime: global___AnytimeMaintenanceWindow | None = ..., + weekly_maintenance_window: global___WeeklyMaintenanceWindow | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["anytime", b"anytime", "policy", b"policy", "weekly_maintenance_window", b"weekly_maintenance_window"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["anytime", b"anytime", "policy", b"policy", "weekly_maintenance_window", b"weekly_maintenance_window"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["policy", b"policy"]) -> typing.Literal["anytime", "weekly_maintenance_window"] | None: ... + +global___MaintenanceWindow = MaintenanceWindow + +@typing.final +class AnytimeMaintenanceWindow(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___AnytimeMaintenanceWindow = AnytimeMaintenanceWindow + +@typing.final +class WeeklyMaintenanceWindow(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class _WeekDay: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + + class _WeekDayEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[WeeklyMaintenanceWindow._WeekDay.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + WEEK_DAY_UNSPECIFIED: WeeklyMaintenanceWindow._WeekDay.ValueType # 0 + MON: WeeklyMaintenanceWindow._WeekDay.ValueType # 1 + TUE: WeeklyMaintenanceWindow._WeekDay.ValueType # 2 + WED: WeeklyMaintenanceWindow._WeekDay.ValueType # 3 + THU: WeeklyMaintenanceWindow._WeekDay.ValueType # 4 + FRI: WeeklyMaintenanceWindow._WeekDay.ValueType # 5 + SAT: WeeklyMaintenanceWindow._WeekDay.ValueType # 6 + SUN: WeeklyMaintenanceWindow._WeekDay.ValueType # 7 + + class WeekDay(_WeekDay, metaclass=_WeekDayEnumTypeWrapper): ... + WEEK_DAY_UNSPECIFIED: WeeklyMaintenanceWindow.WeekDay.ValueType # 0 + MON: WeeklyMaintenanceWindow.WeekDay.ValueType # 1 + TUE: WeeklyMaintenanceWindow.WeekDay.ValueType # 2 + WED: WeeklyMaintenanceWindow.WeekDay.ValueType # 3 + THU: WeeklyMaintenanceWindow.WeekDay.ValueType # 4 + FRI: WeeklyMaintenanceWindow.WeekDay.ValueType # 5 + SAT: WeeklyMaintenanceWindow.WeekDay.ValueType # 6 + SUN: WeeklyMaintenanceWindow.WeekDay.ValueType # 7 + + DAY_FIELD_NUMBER: builtins.int + HOUR_FIELD_NUMBER: builtins.int + day: global___WeeklyMaintenanceWindow.WeekDay.ValueType + hour: builtins.int + """Hour of the day in UTC.""" + def __init__( + self, + *, + day: global___WeeklyMaintenanceWindow.WeekDay.ValueType = ..., + hour: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["day", b"day", "hour", b"hour"]) -> None: ... + +global___WeeklyMaintenanceWindow = WeeklyMaintenanceWindow + +@typing.final +class MaintenanceOperation(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INFO_FIELD_NUMBER: builtins.int + DELAYED_UNTIL_FIELD_NUMBER: builtins.int + LATEST_MAINTENANCE_TIME_FIELD_NUMBER: builtins.int + NEXT_MAINTENANCE_WINDOW_TIME_FIELD_NUMBER: builtins.int + info: builtins.str + @property + def delayed_until(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def latest_maintenance_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def next_maintenance_window_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__( + self, + *, + info: builtins.str = ..., + delayed_until: google.protobuf.timestamp_pb2.Timestamp | None = ..., + latest_maintenance_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + next_maintenance_window_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["delayed_until", b"delayed_until", "latest_maintenance_time", b"latest_maintenance_time", "next_maintenance_window_time", b"next_maintenance_window_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["delayed_until", b"delayed_until", "info", b"info", "latest_maintenance_time", b"latest_maintenance_time", "next_maintenance_window_time", b"next_maintenance_window_time"]) -> None: ... + +global___MaintenanceOperation = MaintenanceOperation diff --git a/yandex/cloud/trino/v1/maintenance_pb2_grpc.py b/yandex/cloud/trino/v1/maintenance_pb2_grpc.py new file mode 100644 index 00000000..18aa7311 --- /dev/null +++ b/yandex/cloud/trino/v1/maintenance_pb2_grpc.py @@ -0,0 +1,24 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc +import warnings + + +GRPC_GENERATED_VERSION = '1.70.0' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in yandex/cloud/trino/v1/maintenance_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/yandex/cloud/trino/v1/maintenance_pb2_grpc.pyi b/yandex/cloud/trino/v1/maintenance_pb2_grpc.pyi new file mode 100644 index 00000000..a6a9cff9 --- /dev/null +++ b/yandex/cloud/trino/v1/maintenance_pb2_grpc.pyi @@ -0,0 +1,17 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import abc +import collections.abc +import grpc +import grpc.aio +import typing + +_T = typing.TypeVar("_T") + +class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ... + +class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg] + ... From f33f0f8268b1b85b21fdeb3bd4185f17eea7523e Mon Sep 17 00:00:00 2001 From: Vadim Vladimirov Date: Tue, 29 Apr 2025 01:50:22 +0700 Subject: [PATCH 2/2] feat: enable trino support --- README.md | 1 + yandexcloud/_sdk.py | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 15d0203c..b101b09a 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,7 @@ Check `examples` directory for more examples. | yandex.cloud.serverless.triggers | serverless-triggers | | yandex.cloud.spark | managed-spark | | yandex.cloud.storage | storage-api | +| yandex.cloud.trino | trino | | yandex.cloud.vpc | vpc | | yandex.cloud.ydb | ydb | diff --git a/yandexcloud/_sdk.py b/yandexcloud/_sdk.py index c48867c2..6e507953 100644 --- a/yandexcloud/_sdk.py +++ b/yandexcloud/_sdk.py @@ -192,6 +192,7 @@ def _service_for_ctor(stub_ctor: Any) -> str: ("yandex.cloud.serverless.triggers", "serverless-triggers"), ("yandex.cloud.spark", "managed-spark"), ("yandex.cloud.storage", "storage-api"), + ("yandex.cloud.trino", "trino"), ("yandex.cloud.vpc", "vpc"), ("yandex.cloud.ydb", "ydb"), ]