yandexcloud 0.336.0__py3-none-any.whl → 0.338.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2.py +11 -3
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2.pyi +34 -0
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2_grpc.py +45 -0
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2_grpc.pyi +26 -0
- yandex/cloud/ai/dataset/v1/dataset_service_pb2.py +24 -24
- yandex/cloud/ai/dataset/v1/dataset_service_pb2.pyi +11 -1
- yandex/cloud/ai/foundation_models/v1/batch_inference_task_status_pb2.py +37 -0
- yandex/cloud/ai/foundation_models/v1/batch_inference_task_status_pb2.pyi +43 -0
- yandex/cloud/ai/foundation_models/v1/batch_inference_task_status_pb2_grpc.py +24 -0
- yandex/cloud/ai/foundation_models/v1/batch_inference_task_status_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/foundation_models/v1/embedding/embedding_service_pb2.py +8 -7
- yandex/cloud/ai/foundation_models/v1/embedding/embedding_service_pb2.pyi +9 -1
- yandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service_pb2.py +26 -15
- yandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service_pb2.pyi +87 -0
- yandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service_pb2_grpc.py +77 -0
- yandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service_pb2_grpc.pyi +38 -0
- yandex/cloud/ai/tuning/v1/tuning_task_pb2.py +12 -5
- yandex/cloud/ai/tuning/v1/tuning_task_pb2.pyi +29 -1
- yandex/cloud/airflow/v1/cluster_pb2.py +36 -35
- yandex/cloud/airflow/v1/cluster_pb2.pyi +15 -2
- yandex/cloud/airflow/v1/cluster_service_pb2.py +42 -41
- yandex/cloud/airflow/v1/cluster_service_pb2.pyi +17 -4
- yandex/cloud/airflow/v1/maintenance_pb2.py +53 -0
- yandex/cloud/airflow/v1/maintenance_pb2.pyi +123 -0
- yandex/cloud/airflow/v1/maintenance_pb2_grpc.py +24 -0
- yandex/cloud/airflow/v1/maintenance_pb2_grpc.pyi +17 -0
- yandex/cloud/backup/v1/backup_service_pb2.py +44 -40
- yandex/cloud/backup/v1/backup_service_pb2.pyi +14 -2
- yandex/cloud/iam/v1/key_service_pb2.pyi +0 -2
- yandex/cloud/iot/devices/v1/device_pb2.py +18 -14
- yandex/cloud/iot/devices/v1/device_pb2.pyi +23 -1
- yandex/cloud/iot/devices/v1/device_service_pb2.py +65 -53
- yandex/cloud/iot/devices/v1/device_service_pb2.pyi +46 -2
- yandex/cloud/loadtesting/agent/v1/test_pb2.py +5 -5
- yandex/cloud/loadtesting/agent/v1/test_pb2.pyi +2 -0
- yandex/cloud/loadtesting/api/v1/test/status_pb2.py +2 -2
- yandex/cloud/loadtesting/api/v1/test/status_pb2.pyi +6 -2
- yandex/cloud/marketplace/licensemanager/saas/v1/instance_service_pb2.py +12 -5
- yandex/cloud/marketplace/licensemanager/saas/v1/instance_service_pb2.pyi +16 -0
- yandex/cloud/marketplace/licensemanager/saas/v1/instance_service_pb2_grpc.py +45 -0
- yandex/cloud/marketplace/licensemanager/saas/v1/instance_service_pb2_grpc.pyi +21 -0
- yandex/cloud/marketplace/licensemanager/v1/user_info_pb2.py +37 -0
- yandex/cloud/marketplace/licensemanager/v1/user_info_pb2.pyi +39 -0
- yandex/cloud/marketplace/licensemanager/v1/user_info_pb2_grpc.py +24 -0
- yandex/cloud/marketplace/licensemanager/v1/user_info_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2.py +170 -170
- yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2.pyi +14 -2
- yandex/cloud/mdb/kafka/v1/user_pb2.py +4 -4
- yandex/cloud/mdb/kafka/v1/user_pb2.pyi +4 -0
- yandex/cloud/mdb/opensearch/v1/cluster_service_pb2.py +21 -3
- yandex/cloud/mdb/opensearch/v1/cluster_service_pb2.pyi +86 -0
- yandex/cloud/mdb/opensearch/v1/cluster_service_pb2_grpc.py +89 -0
- yandex/cloud/mdb/opensearch/v1/cluster_service_pb2_grpc.pyi +49 -3
- yandex/cloud/mdb/redis/v1/cluster_pb2.py +23 -23
- yandex/cloud/mdb/redis/v1/cluster_pb2.pyi +4 -0
- yandex/cloud/mdb/redis/v1/config/redis_pb2.py +10 -8
- yandex/cloud/mdb/redis/v1/config/redis_pb2.pyi +14 -2
- yandex/cloud/mdb/spqr/__init__.py +0 -0
- yandex/cloud/mdb/spqr/v1/__init__.py +0 -0
- yandex/cloud/mdb/spqr/v1/backup_pb2.py +40 -0
- yandex/cloud/mdb/spqr/v1/backup_pb2.pyi +97 -0
- yandex/cloud/mdb/spqr/v1/backup_pb2_grpc.py +24 -0
- yandex/cloud/mdb/spqr/v1/backup_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/spqr/v1/backup_service_pb2.py +68 -0
- yandex/cloud/mdb/spqr/v1/backup_service_pb2.pyi +121 -0
- yandex/cloud/mdb/spqr/v1/backup_service_pb2_grpc.py +193 -0
- yandex/cloud/mdb/spqr/v1/backup_service_pb2_grpc.pyi +101 -0
- yandex/cloud/mdb/spqr/v1/cluster_pb2.py +58 -0
- yandex/cloud/mdb/spqr/v1/cluster_pb2.pyi +330 -0
- yandex/cloud/mdb/spqr/v1/cluster_pb2_grpc.py +24 -0
- yandex/cloud/mdb/spqr/v1/cluster_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/spqr/v1/cluster_service_pb2.py +403 -0
- yandex/cloud/mdb/spqr/v1/cluster_service_pb2.pyi +1790 -0
- yandex/cloud/mdb/spqr/v1/cluster_service_pb2_grpc.py +1250 -0
- yandex/cloud/mdb/spqr/v1/cluster_service_pb2_grpc.pyi +588 -0
- yandex/cloud/mdb/spqr/v1/config_pb2.py +65 -0
- yandex/cloud/mdb/spqr/v1/config_pb2.pyi +341 -0
- yandex/cloud/mdb/spqr/v1/config_pb2_grpc.py +24 -0
- yandex/cloud/mdb/spqr/v1/config_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/spqr/v1/database_pb2.py +42 -0
- yandex/cloud/mdb/spqr/v1/database_pb2.pyi +51 -0
- yandex/cloud/mdb/spqr/v1/database_pb2_grpc.py +24 -0
- yandex/cloud/mdb/spqr/v1/database_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/spqr/v1/database_service_pb2.py +94 -0
- yandex/cloud/mdb/spqr/v1/database_service_pb2.pyi +219 -0
- yandex/cloud/mdb/spqr/v1/database_service_pb2_grpc.py +281 -0
- yandex/cloud/mdb/spqr/v1/database_service_pb2_grpc.pyi +141 -0
- yandex/cloud/mdb/spqr/v1/host_pb2.py +69 -0
- yandex/cloud/mdb/spqr/v1/host_pb2.pyi +394 -0
- yandex/cloud/mdb/spqr/v1/host_pb2_grpc.py +24 -0
- yandex/cloud/mdb/spqr/v1/host_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/spqr/v1/maintenance_pb2.py +53 -0
- yandex/cloud/mdb/spqr/v1/maintenance_pb2.pyi +137 -0
- yandex/cloud/mdb/spqr/v1/maintenance_pb2_grpc.py +24 -0
- yandex/cloud/mdb/spqr/v1/maintenance_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/spqr/v1/resource_preset_pb2.py +37 -0
- yandex/cloud/mdb/spqr/v1/resource_preset_pb2.pyi +45 -0
- yandex/cloud/mdb/spqr/v1/resource_preset_pb2_grpc.py +24 -0
- yandex/cloud/mdb/spqr/v1/resource_preset_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/spqr/v1/resource_preset_service_pb2.py +56 -0
- yandex/cloud/mdb/spqr/v1/resource_preset_service_pb2.pyi +84 -0
- yandex/cloud/mdb/spqr/v1/resource_preset_service_pb2_grpc.py +148 -0
- yandex/cloud/mdb/spqr/v1/resource_preset_service_pb2_grpc.pyi +80 -0
- yandex/cloud/mdb/spqr/v1/shard_pb2.py +37 -0
- yandex/cloud/mdb/spqr/v1/shard_pb2.pyi +31 -0
- yandex/cloud/mdb/spqr/v1/shard_pb2_grpc.py +24 -0
- yandex/cloud/mdb/spqr/v1/shard_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/spqr/v1/user_pb2.py +53 -0
- yandex/cloud/mdb/spqr/v1/user_pb2.pyi +133 -0
- yandex/cloud/mdb/spqr/v1/user_pb2_grpc.py +24 -0
- yandex/cloud/mdb/spqr/v1/user_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/spqr/v1/user_service_pb2.py +107 -0
- yandex/cloud/mdb/spqr/v1/user_service_pb2.pyi +293 -0
- yandex/cloud/mdb/spqr/v1/user_service_pb2_grpc.py +325 -0
- yandex/cloud/mdb/spqr/v1/user_service_pb2_grpc.pyi +161 -0
- yandex/cloud/monitoring/v3/dashboard_pb2.py +6 -5
- yandex/cloud/monitoring/v3/dashboard_pb2.pyi +9 -2
- yandex/cloud/monitoring/v3/dashboard_service_pb2.py +30 -29
- yandex/cloud/monitoring/v3/dashboard_service_pb2.pyi +17 -4
- yandex/cloud/monitoring/v3/timeline_pb2.py +37 -0
- yandex/cloud/monitoring/v3/timeline_pb2.pyi +31 -0
- yandex/cloud/monitoring/v3/timeline_pb2_grpc.py +24 -0
- yandex/cloud/monitoring/v3/timeline_pb2_grpc.pyi +17 -0
- yandex/cloud/searchapi/v2/gen_search_service_pb2.py +83 -0
- yandex/cloud/searchapi/v2/gen_search_service_pb2.pyi +297 -0
- yandex/cloud/searchapi/v2/gen_search_service_pb2_grpc.py +100 -0
- yandex/cloud/searchapi/v2/gen_search_service_pb2_grpc.pyi +47 -0
- yandex/cloud/searchapi/v2/search_query_pb2.py +8 -8
- yandex/cloud/searchapi/v2/search_query_pb2.pyi +8 -0
- yandex/cloud/searchapi/v2/search_service_pb2.py +16 -12
- yandex/cloud/serverless/eventrouter/v1/event_service_pb2.py +11 -3
- yandex/cloud/serverless/eventrouter/v1/event_service_pb2.pyi +24 -0
- yandex/cloud/serverless/eventrouter/v1/event_service_pb2_grpc.py +44 -0
- yandex/cloud/serverless/eventrouter/v1/event_service_pb2_grpc.pyi +20 -0
- yandex/cloud/storage/v1/s3api_pb2.py +7 -1
- yandex/cloud/storage/v1/s3api_pb2.pyi +128 -1
- yandex/cloud/video/v1/channel_pb2.py +16 -11
- yandex/cloud/video/v1/channel_pb2.pyi +32 -2
- yandex/cloud/video/v1/channel_service_pb2.py +34 -30
- yandex/cloud/video/v1/channel_service_pb2.pyi +27 -10
- yandex/cloud/video/v1/channel_service_pb2_grpc.py +4 -4
- yandex/cloud/video/v1/channel_service_pb2_grpc.pyi +12 -12
- yandex/cloud/video/v1/episode_pb2.pyi +5 -4
- yandex/cloud/video/v1/episode_service_pb2.py +56 -52
- yandex/cloud/video/v1/episode_service_pb2.pyi +18 -12
- yandex/cloud/video/v1/episode_service_pb2_grpc.py +4 -4
- yandex/cloud/video/v1/episode_service_pb2_grpc.pyi +12 -12
- yandex/cloud/video/v1/playlist_service_pb2.py +34 -30
- yandex/cloud/video/v1/playlist_service_pb2.pyi +11 -6
- yandex/cloud/video/v1/playlist_service_pb2_grpc.py +3 -3
- yandex/cloud/video/v1/playlist_service_pb2_grpc.pyi +9 -9
- yandex/cloud/video/v1/stream_line_pb2.py +16 -24
- yandex/cloud/video/v1/stream_line_pb2.pyi +34 -108
- yandex/cloud/video/v1/stream_line_service_pb2.py +60 -70
- yandex/cloud/video/v1/stream_line_service_pb2.pyi +17 -119
- yandex/cloud/video/v1/stream_line_service_pb2_grpc.py +3 -3
- yandex/cloud/video/v1/stream_line_service_pb2_grpc.pyi +9 -9
- yandex/cloud/video/v1/stream_pb2.py +12 -11
- yandex/cloud/video/v1/stream_pb2.pyi +19 -6
- yandex/cloud/video/v1/stream_service_pb2.py +54 -49
- yandex/cloud/video/v1/stream_service_pb2.pyi +34 -13
- yandex/cloud/video/v1/stream_service_pb2_grpc.py +2 -2
- yandex/cloud/video/v1/stream_service_pb2_grpc.pyi +6 -6
- yandex/cloud/video/v1/subtitle_pb2.py +6 -4
- yandex/cloud/video/v1/subtitle_pb2.pyi +30 -2
- yandex/cloud/video/v1/subtitle_service_pb2.py +21 -21
- yandex/cloud/video/v1/subtitle_service_pb2.pyi +7 -5
- yandex/cloud/video/v1/subtitle_service_pb2_grpc.py +1 -1
- yandex/cloud/video/v1/subtitle_service_pb2_grpc.pyi +3 -3
- yandex/cloud/video/v1/thumbnail_service_pb2.py +29 -25
- yandex/cloud/video/v1/thumbnail_service_pb2.pyi +68 -6
- yandex/cloud/video/v1/thumbnail_service_pb2_grpc.py +3 -3
- yandex/cloud/video/v1/thumbnail_service_pb2_grpc.pyi +9 -9
- yandex/cloud/video/v1/video_pb2.py +24 -18
- yandex/cloud/video/v1/video_pb2.pyi +130 -38
- yandex/cloud/video/v1/video_service_pb2.py +114 -66
- yandex/cloud/video/v1/video_service_pb2.pyi +279 -40
- yandex/cloud/video/v1/video_service_pb2_grpc.py +50 -6
- yandex/cloud/video/v1/video_service_pb2_grpc.pyi +38 -18
- yandex/cloud/ydb/v1/database_pb2.py +46 -46
- yandex/cloud/ydb/v1/database_pb2.pyi +10 -2
- yandex/cloud/ydb/v1/database_service_pb2.py +18 -18
- yandex/cloud/ydb/v1/database_service_pb2.pyi +10 -2
- yandexcloud/__init__.py +2 -2
- yandexcloud/_operation_waiter.py +17 -19
- yandexcloud/_retry_policy.py +17 -3
- yandexcloud/_wrappers/dataproc/__init__.py +39 -0
- {yandexcloud-0.336.0.dist-info → yandexcloud-0.338.0.dist-info}/METADATA +9 -9
- {yandexcloud-0.336.0.dist-info → yandexcloud-0.338.0.dist-info}/RECORD +193 -115
- {yandexcloud-0.336.0.dist-info → yandexcloud-0.338.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.336.0.dist-info → yandexcloud-0.338.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.336.0.dist-info → yandexcloud-0.338.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.336.0.dist-info → yandexcloud-0.338.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: yandex/cloud/mdb/spqr/v1/host.proto
|
|
5
|
+
# Protobuf Python Version: 5.29.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
5,
|
|
15
|
+
29,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'yandex/cloud/mdb/spqr/v1/host.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from yandex.cloud.mdb.spqr.v1 import config_pb2 as yandex_dot_cloud_dot_mdb_dot_spqr_dot_v1_dot_config__pb2
|
|
26
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#yandex/cloud/mdb/spqr/v1/host.proto\x12\x18yandex.cloud.mdb.spqr.v1\x1a%yandex/cloud/mdb/spqr/v1/config.proto\x1a\x1dyandex/cloud/validation.proto\"\xf1\x08\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\x36\n\tresources\x18\x04 \x01(\x0b\x32#.yandex.cloud.mdb.spqr.v1.Resources\x12\x31\n\x04role\x18\x05 \x01(\x0e\x32#.yandex.cloud.mdb.spqr.v1.Host.Role\x12\x35\n\x06health\x18\x06 \x01(\x0e\x32%.yandex.cloud.mdb.spqr.v1.Host.Health\x12\x33\n\x08services\x18\x07 \x03(\x0b\x32!.yandex.cloud.mdb.spqr.v1.Service\x12\x11\n\tsubnet_id\x18\x08 \x01(\t\x12\x18\n\x10\x61ssign_public_ip\x18\t \x01(\x08\x12\x31\n\x04type\x18\n \x01(\x0e\x32#.yandex.cloud.mdb.spqr.v1.Host.Type\x12\x12\n\nwalle_link\x18\x0b \x01(\t\x12\x14\n\x0cstate_reason\x18\x0c \x01(\t\x12<\n\x06system\x18\r \x01(\x0b\x32,.yandex.cloud.mdb.spqr.v1.Host.SystemMetrics\x12\x12\n\nshard_name\x18\x0e \x01(\t\x1a,\n\tCPUMetric\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\x12\x0c\n\x04used\x18\x02 \x01(\x01\x1a>\n\x0cMemoryMetric\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\x12\x0c\n\x04used\x18\x02 \x01(\x03\x12\r\n\x05total\x18\x03 \x01(\x03\x1a<\n\nDiskMetric\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\x12\x0c\n\x04used\x18\x02 \x01(\x03\x12\r\n\x05total\x18\x03 \x01(\x03\x1a\xbc\x01\n\rSystemMetrics\x12\x35\n\x03\x63pu\x18\x01 \x01(\x0b\x32(.yandex.cloud.mdb.spqr.v1.Host.CPUMetric\x12;\n\x06memory\x18\x02 \x01(\x0b\x32+.yandex.cloud.mdb.spqr.v1.Host.MemoryMetric\x12\x37\n\x04\x64isk\x18\x03 \x01(\x0b\x32).yandex.cloud.mdb.spqr.v1.Host.DiskMetric\"\x87\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06ROUTER\x10\x02\x12\x0f\n\x0b\x43OORDINATOR\x10\x03\x12\t\n\x05INFRA\x10\x04\x12\x0e\n\nPOSTGRESQL\x10\x05\x12\x17\n\x13\x45XTERNAL_POSTGRESQL\x10\x06\x12\x12\n\x0eMDB_POSTGRESQL\x10\x07\"\x04\x08\x01\x10\x01\"M\n\x04Role\x12\x10\n\x0cROLE_UNKNOWN\x10\x00\x12\x0b\n\x07PRIMARY\x10\x01\x12\r\n\tSECONDARY\x10\x02\x12\n\n\x06MASTER\x10\x03\x12\x0b\n\x07REPLICA\x10\x04\"?\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\"\xb6\x02\n\x07Service\x12\x34\n\x04type\x18\x01 \x01(\x0e\x32&.yandex.cloud.mdb.spqr.v1.Service.Type\x12\x38\n\x06health\x18\x02 \x01(\x0e\x32(.yandex.cloud.mdb.spqr.v1.Service.Health\"\x87\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06ROUTER\x10\x02\x12\x0f\n\x0b\x43OORDINATOR\x10\x03\x12\t\n\x05INFRA\x10\x04\x12\x0e\n\nPOSTGRESQL\x10\x05\x12\x17\n\x13\x45XTERNAL_POSTGRESQL\x10\x06\x12\x12\n\x0eMDB_POSTGRESQL\x10\x07\"\x04\x08\x01\x10\x01\"1\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\"\x86\x02\n\x08HostSpec\x12\x19\n\x07zone_id\x18\x01 \x01(\tB\x08\x8a\xc8\x31\x04<=50\x12\x1b\n\tsubnet_id\x18\x02 \x01(\tB\x08\x8a\xc8\x31\x04<=50\x12\x18\n\x10\x61ssign_public_ip\x18\x03 \x01(\x08\x12\x37\n\x04type\x18\x04 \x01(\x0e\x32#.yandex.cloud.mdb.spqr.v1.Host.TypeB\x04\xe8\xc7\x31\x01\x12.\n\nshard_name\x18\x05 \x01(\tB\x1a\xf2\xc7\x31\x0e[a-zA-Z0-9_-]*\x8a\xc8\x31\x04<=63\x12?\n\x0emdb_postgresql\x18\x06 \x01(\x0b\x32\'.yandex.cloud.mdb.spqr.v1.MDBPostgreSQLBa\n\x1cyandex.cloud.api.mdb.spqr.v1ZAgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/spqr/v1;spqrb\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.mdb.spqr.v1.host_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\034yandex.cloud.api.mdb.spqr.v1ZAgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/spqr/v1;spqr'
|
|
37
|
+
_globals['_HOSTSPEC'].fields_by_name['zone_id']._loaded_options = None
|
|
38
|
+
_globals['_HOSTSPEC'].fields_by_name['zone_id']._serialized_options = b'\212\3101\004<=50'
|
|
39
|
+
_globals['_HOSTSPEC'].fields_by_name['subnet_id']._loaded_options = None
|
|
40
|
+
_globals['_HOSTSPEC'].fields_by_name['subnet_id']._serialized_options = b'\212\3101\004<=50'
|
|
41
|
+
_globals['_HOSTSPEC'].fields_by_name['type']._loaded_options = None
|
|
42
|
+
_globals['_HOSTSPEC'].fields_by_name['type']._serialized_options = b'\350\3071\001'
|
|
43
|
+
_globals['_HOSTSPEC'].fields_by_name['shard_name']._loaded_options = None
|
|
44
|
+
_globals['_HOSTSPEC'].fields_by_name['shard_name']._serialized_options = b'\362\3071\016[a-zA-Z0-9_-]*\212\3101\004<=63'
|
|
45
|
+
_globals['_HOST']._serialized_start=136
|
|
46
|
+
_globals['_HOST']._serialized_end=1273
|
|
47
|
+
_globals['_HOST_CPUMETRIC']._serialized_start=630
|
|
48
|
+
_globals['_HOST_CPUMETRIC']._serialized_end=674
|
|
49
|
+
_globals['_HOST_MEMORYMETRIC']._serialized_start=676
|
|
50
|
+
_globals['_HOST_MEMORYMETRIC']._serialized_end=738
|
|
51
|
+
_globals['_HOST_DISKMETRIC']._serialized_start=740
|
|
52
|
+
_globals['_HOST_DISKMETRIC']._serialized_end=800
|
|
53
|
+
_globals['_HOST_SYSTEMMETRICS']._serialized_start=803
|
|
54
|
+
_globals['_HOST_SYSTEMMETRICS']._serialized_end=991
|
|
55
|
+
_globals['_HOST_TYPE']._serialized_start=994
|
|
56
|
+
_globals['_HOST_TYPE']._serialized_end=1129
|
|
57
|
+
_globals['_HOST_ROLE']._serialized_start=1131
|
|
58
|
+
_globals['_HOST_ROLE']._serialized_end=1208
|
|
59
|
+
_globals['_HOST_HEALTH']._serialized_start=1210
|
|
60
|
+
_globals['_HOST_HEALTH']._serialized_end=1273
|
|
61
|
+
_globals['_SERVICE']._serialized_start=1276
|
|
62
|
+
_globals['_SERVICE']._serialized_end=1586
|
|
63
|
+
_globals['_SERVICE_TYPE']._serialized_start=994
|
|
64
|
+
_globals['_SERVICE_TYPE']._serialized_end=1129
|
|
65
|
+
_globals['_SERVICE_HEALTH']._serialized_start=1210
|
|
66
|
+
_globals['_SERVICE_HEALTH']._serialized_end=1259
|
|
67
|
+
_globals['_HOSTSPEC']._serialized_start=1589
|
|
68
|
+
_globals['_HOSTSPEC']._serialized_end=1851
|
|
69
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import collections.abc
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.internal.containers
|
|
10
|
+
import google.protobuf.internal.enum_type_wrapper
|
|
11
|
+
import google.protobuf.message
|
|
12
|
+
import sys
|
|
13
|
+
import typing
|
|
14
|
+
import yandex.cloud.mdb.spqr.v1.config_pb2
|
|
15
|
+
|
|
16
|
+
if sys.version_info >= (3, 10):
|
|
17
|
+
import typing as typing_extensions
|
|
18
|
+
else:
|
|
19
|
+
import typing_extensions
|
|
20
|
+
|
|
21
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
22
|
+
|
|
23
|
+
@typing.final
|
|
24
|
+
class Host(google.protobuf.message.Message):
|
|
25
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
26
|
+
|
|
27
|
+
class _Type:
|
|
28
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
29
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
30
|
+
|
|
31
|
+
class _TypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Host._Type.ValueType], builtins.type):
|
|
32
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
33
|
+
TYPE_UNSPECIFIED: Host._Type.ValueType # 0
|
|
34
|
+
ROUTER: Host._Type.ValueType # 2
|
|
35
|
+
"""A SPQR Router host."""
|
|
36
|
+
COORDINATOR: Host._Type.ValueType # 3
|
|
37
|
+
"""A SPQR Coordinator host."""
|
|
38
|
+
INFRA: Host._Type.ValueType # 4
|
|
39
|
+
"""A SPQR Infra host (router+coordinator)"""
|
|
40
|
+
POSTGRESQL: Host._Type.ValueType # 5
|
|
41
|
+
"""A PostgreSQL host."""
|
|
42
|
+
EXTERNAL_POSTGRESQL: Host._Type.ValueType # 6
|
|
43
|
+
"""An External PostgreSQL host."""
|
|
44
|
+
MDB_POSTGRESQL: Host._Type.ValueType # 7
|
|
45
|
+
"""A Managed PostgreSQL host"""
|
|
46
|
+
|
|
47
|
+
class Type(_Type, metaclass=_TypeEnumTypeWrapper): ...
|
|
48
|
+
TYPE_UNSPECIFIED: Host.Type.ValueType # 0
|
|
49
|
+
ROUTER: Host.Type.ValueType # 2
|
|
50
|
+
"""A SPQR Router host."""
|
|
51
|
+
COORDINATOR: Host.Type.ValueType # 3
|
|
52
|
+
"""A SPQR Coordinator host."""
|
|
53
|
+
INFRA: Host.Type.ValueType # 4
|
|
54
|
+
"""A SPQR Infra host (router+coordinator)"""
|
|
55
|
+
POSTGRESQL: Host.Type.ValueType # 5
|
|
56
|
+
"""A PostgreSQL host."""
|
|
57
|
+
EXTERNAL_POSTGRESQL: Host.Type.ValueType # 6
|
|
58
|
+
"""An External PostgreSQL host."""
|
|
59
|
+
MDB_POSTGRESQL: Host.Type.ValueType # 7
|
|
60
|
+
"""A Managed PostgreSQL host"""
|
|
61
|
+
|
|
62
|
+
class _Role:
|
|
63
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
64
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
65
|
+
|
|
66
|
+
class _RoleEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Host._Role.ValueType], builtins.type):
|
|
67
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
68
|
+
ROLE_UNKNOWN: Host._Role.ValueType # 0
|
|
69
|
+
"""Role of the host in the cluster is unknown."""
|
|
70
|
+
PRIMARY: Host._Role.ValueType # 1
|
|
71
|
+
"""Host is the primary SPQR server in the cluster."""
|
|
72
|
+
SECONDARY: Host._Role.ValueType # 2
|
|
73
|
+
"""Host is a secondary SPQR server in the cluster."""
|
|
74
|
+
MASTER: Host._Role.ValueType # 3
|
|
75
|
+
"""Host is the master PostgreSQL server in the cluster."""
|
|
76
|
+
REPLICA: Host._Role.ValueType # 4
|
|
77
|
+
"""Host is a replica (standby) PostgreSQL server in the cluster."""
|
|
78
|
+
|
|
79
|
+
class Role(_Role, metaclass=_RoleEnumTypeWrapper): ...
|
|
80
|
+
ROLE_UNKNOWN: Host.Role.ValueType # 0
|
|
81
|
+
"""Role of the host in the cluster is unknown."""
|
|
82
|
+
PRIMARY: Host.Role.ValueType # 1
|
|
83
|
+
"""Host is the primary SPQR server in the cluster."""
|
|
84
|
+
SECONDARY: Host.Role.ValueType # 2
|
|
85
|
+
"""Host is a secondary SPQR server in the cluster."""
|
|
86
|
+
MASTER: Host.Role.ValueType # 3
|
|
87
|
+
"""Host is the master PostgreSQL server in the cluster."""
|
|
88
|
+
REPLICA: Host.Role.ValueType # 4
|
|
89
|
+
"""Host is a replica (standby) PostgreSQL server in the cluster."""
|
|
90
|
+
|
|
91
|
+
class _Health:
|
|
92
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
93
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
94
|
+
|
|
95
|
+
class _HealthEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Host._Health.ValueType], builtins.type):
|
|
96
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
97
|
+
HEALTH_UNKNOWN: Host._Health.ValueType # 0
|
|
98
|
+
"""Health of the host is unknown."""
|
|
99
|
+
ALIVE: Host._Health.ValueType # 1
|
|
100
|
+
"""The host is performing all its functions normally."""
|
|
101
|
+
DEAD: Host._Health.ValueType # 2
|
|
102
|
+
"""The host is inoperable, and cannot perform any of its essential functions."""
|
|
103
|
+
DEGRADED: Host._Health.ValueType # 3
|
|
104
|
+
"""The host is degraded, and can perform only some of its essential functions."""
|
|
105
|
+
|
|
106
|
+
class Health(_Health, metaclass=_HealthEnumTypeWrapper): ...
|
|
107
|
+
HEALTH_UNKNOWN: Host.Health.ValueType # 0
|
|
108
|
+
"""Health of the host is unknown."""
|
|
109
|
+
ALIVE: Host.Health.ValueType # 1
|
|
110
|
+
"""The host is performing all its functions normally."""
|
|
111
|
+
DEAD: Host.Health.ValueType # 2
|
|
112
|
+
"""The host is inoperable, and cannot perform any of its essential functions."""
|
|
113
|
+
DEGRADED: Host.Health.ValueType # 3
|
|
114
|
+
"""The host is degraded, and can perform only some of its essential functions."""
|
|
115
|
+
|
|
116
|
+
@typing.final
|
|
117
|
+
class CPUMetric(google.protobuf.message.Message):
|
|
118
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
119
|
+
|
|
120
|
+
TIMESTAMP_FIELD_NUMBER: builtins.int
|
|
121
|
+
USED_FIELD_NUMBER: builtins.int
|
|
122
|
+
timestamp: builtins.int
|
|
123
|
+
used: builtins.float
|
|
124
|
+
def __init__(
|
|
125
|
+
self,
|
|
126
|
+
*,
|
|
127
|
+
timestamp: builtins.int = ...,
|
|
128
|
+
used: builtins.float = ...,
|
|
129
|
+
) -> None: ...
|
|
130
|
+
def ClearField(self, field_name: typing.Literal["timestamp", b"timestamp", "used", b"used"]) -> None: ...
|
|
131
|
+
|
|
132
|
+
@typing.final
|
|
133
|
+
class MemoryMetric(google.protobuf.message.Message):
|
|
134
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
135
|
+
|
|
136
|
+
TIMESTAMP_FIELD_NUMBER: builtins.int
|
|
137
|
+
USED_FIELD_NUMBER: builtins.int
|
|
138
|
+
TOTAL_FIELD_NUMBER: builtins.int
|
|
139
|
+
timestamp: builtins.int
|
|
140
|
+
used: builtins.int
|
|
141
|
+
total: builtins.int
|
|
142
|
+
def __init__(
|
|
143
|
+
self,
|
|
144
|
+
*,
|
|
145
|
+
timestamp: builtins.int = ...,
|
|
146
|
+
used: builtins.int = ...,
|
|
147
|
+
total: builtins.int = ...,
|
|
148
|
+
) -> None: ...
|
|
149
|
+
def ClearField(self, field_name: typing.Literal["timestamp", b"timestamp", "total", b"total", "used", b"used"]) -> None: ...
|
|
150
|
+
|
|
151
|
+
@typing.final
|
|
152
|
+
class DiskMetric(google.protobuf.message.Message):
|
|
153
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
154
|
+
|
|
155
|
+
TIMESTAMP_FIELD_NUMBER: builtins.int
|
|
156
|
+
USED_FIELD_NUMBER: builtins.int
|
|
157
|
+
TOTAL_FIELD_NUMBER: builtins.int
|
|
158
|
+
timestamp: builtins.int
|
|
159
|
+
used: builtins.int
|
|
160
|
+
total: builtins.int
|
|
161
|
+
def __init__(
|
|
162
|
+
self,
|
|
163
|
+
*,
|
|
164
|
+
timestamp: builtins.int = ...,
|
|
165
|
+
used: builtins.int = ...,
|
|
166
|
+
total: builtins.int = ...,
|
|
167
|
+
) -> None: ...
|
|
168
|
+
def ClearField(self, field_name: typing.Literal["timestamp", b"timestamp", "total", b"total", "used", b"used"]) -> None: ...
|
|
169
|
+
|
|
170
|
+
@typing.final
|
|
171
|
+
class SystemMetrics(google.protobuf.message.Message):
|
|
172
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
173
|
+
|
|
174
|
+
CPU_FIELD_NUMBER: builtins.int
|
|
175
|
+
MEMORY_FIELD_NUMBER: builtins.int
|
|
176
|
+
DISK_FIELD_NUMBER: builtins.int
|
|
177
|
+
@property
|
|
178
|
+
def cpu(self) -> global___Host.CPUMetric: ...
|
|
179
|
+
@property
|
|
180
|
+
def memory(self) -> global___Host.MemoryMetric: ...
|
|
181
|
+
@property
|
|
182
|
+
def disk(self) -> global___Host.DiskMetric: ...
|
|
183
|
+
def __init__(
|
|
184
|
+
self,
|
|
185
|
+
*,
|
|
186
|
+
cpu: global___Host.CPUMetric | None = ...,
|
|
187
|
+
memory: global___Host.MemoryMetric | None = ...,
|
|
188
|
+
disk: global___Host.DiskMetric | None = ...,
|
|
189
|
+
) -> None: ...
|
|
190
|
+
def HasField(self, field_name: typing.Literal["cpu", b"cpu", "disk", b"disk", "memory", b"memory"]) -> builtins.bool: ...
|
|
191
|
+
def ClearField(self, field_name: typing.Literal["cpu", b"cpu", "disk", b"disk", "memory", b"memory"]) -> None: ...
|
|
192
|
+
|
|
193
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
194
|
+
CLUSTER_ID_FIELD_NUMBER: builtins.int
|
|
195
|
+
ZONE_ID_FIELD_NUMBER: builtins.int
|
|
196
|
+
RESOURCES_FIELD_NUMBER: builtins.int
|
|
197
|
+
ROLE_FIELD_NUMBER: builtins.int
|
|
198
|
+
HEALTH_FIELD_NUMBER: builtins.int
|
|
199
|
+
SERVICES_FIELD_NUMBER: builtins.int
|
|
200
|
+
SUBNET_ID_FIELD_NUMBER: builtins.int
|
|
201
|
+
ASSIGN_PUBLIC_IP_FIELD_NUMBER: builtins.int
|
|
202
|
+
TYPE_FIELD_NUMBER: builtins.int
|
|
203
|
+
WALLE_LINK_FIELD_NUMBER: builtins.int
|
|
204
|
+
STATE_REASON_FIELD_NUMBER: builtins.int
|
|
205
|
+
SYSTEM_FIELD_NUMBER: builtins.int
|
|
206
|
+
SHARD_NAME_FIELD_NUMBER: builtins.int
|
|
207
|
+
name: builtins.str
|
|
208
|
+
"""Name of the SPQR host. The host name is assigned by MDB at creation time, and cannot be changed.
|
|
209
|
+
1-63 characters long.
|
|
210
|
+
|
|
211
|
+
The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
|
|
212
|
+
"""
|
|
213
|
+
cluster_id: builtins.str
|
|
214
|
+
"""The ID of the SPQR cluster that the host belongs to."""
|
|
215
|
+
zone_id: builtins.str
|
|
216
|
+
"""ID of the availability zone where the SPQR host resides."""
|
|
217
|
+
role: global___Host.Role.ValueType
|
|
218
|
+
"""Role of the host in the cluster."""
|
|
219
|
+
health: global___Host.Health.ValueType
|
|
220
|
+
"""Status code of the aggregated health of the host."""
|
|
221
|
+
subnet_id: builtins.str
|
|
222
|
+
"""ID of the subnet that the host belongs to."""
|
|
223
|
+
assign_public_ip: builtins.bool
|
|
224
|
+
"""Flag showing public IP assignment status to this host."""
|
|
225
|
+
type: global___Host.Type.ValueType
|
|
226
|
+
"""Host type"""
|
|
227
|
+
walle_link: builtins.str
|
|
228
|
+
"""link to wall-e (porto only)"""
|
|
229
|
+
state_reason: builtins.str
|
|
230
|
+
"""host state reason from cms (porto only)"""
|
|
231
|
+
shard_name: builtins.str
|
|
232
|
+
"""Shard which this host belongs to."""
|
|
233
|
+
@property
|
|
234
|
+
def resources(self) -> yandex.cloud.mdb.spqr.v1.config_pb2.Resources:
|
|
235
|
+
"""Resources allocated to the SPQR host."""
|
|
236
|
+
|
|
237
|
+
@property
|
|
238
|
+
def services(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Service]:
|
|
239
|
+
"""Services provided by the host."""
|
|
240
|
+
|
|
241
|
+
@property
|
|
242
|
+
def system(self) -> global___Host.SystemMetrics:
|
|
243
|
+
"""System metrics"""
|
|
244
|
+
|
|
245
|
+
def __init__(
|
|
246
|
+
self,
|
|
247
|
+
*,
|
|
248
|
+
name: builtins.str = ...,
|
|
249
|
+
cluster_id: builtins.str = ...,
|
|
250
|
+
zone_id: builtins.str = ...,
|
|
251
|
+
resources: yandex.cloud.mdb.spqr.v1.config_pb2.Resources | None = ...,
|
|
252
|
+
role: global___Host.Role.ValueType = ...,
|
|
253
|
+
health: global___Host.Health.ValueType = ...,
|
|
254
|
+
services: collections.abc.Iterable[global___Service] | None = ...,
|
|
255
|
+
subnet_id: builtins.str = ...,
|
|
256
|
+
assign_public_ip: builtins.bool = ...,
|
|
257
|
+
type: global___Host.Type.ValueType = ...,
|
|
258
|
+
walle_link: builtins.str = ...,
|
|
259
|
+
state_reason: builtins.str = ...,
|
|
260
|
+
system: global___Host.SystemMetrics | None = ...,
|
|
261
|
+
shard_name: builtins.str = ...,
|
|
262
|
+
) -> None: ...
|
|
263
|
+
def HasField(self, field_name: typing.Literal["resources", b"resources", "system", b"system"]) -> builtins.bool: ...
|
|
264
|
+
def ClearField(self, field_name: typing.Literal["assign_public_ip", b"assign_public_ip", "cluster_id", b"cluster_id", "health", b"health", "name", b"name", "resources", b"resources", "role", b"role", "services", b"services", "shard_name", b"shard_name", "state_reason", b"state_reason", "subnet_id", b"subnet_id", "system", b"system", "type", b"type", "walle_link", b"walle_link", "zone_id", b"zone_id"]) -> None: ...
|
|
265
|
+
|
|
266
|
+
global___Host = Host
|
|
267
|
+
|
|
268
|
+
@typing.final
|
|
269
|
+
class Service(google.protobuf.message.Message):
|
|
270
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
271
|
+
|
|
272
|
+
class _Type:
|
|
273
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
274
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
275
|
+
|
|
276
|
+
class _TypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Service._Type.ValueType], builtins.type):
|
|
277
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
278
|
+
TYPE_UNSPECIFIED: Service._Type.ValueType # 0
|
|
279
|
+
ROUTER: Service._Type.ValueType # 2
|
|
280
|
+
"""The host is running a SPQR Router."""
|
|
281
|
+
COORDINATOR: Service._Type.ValueType # 3
|
|
282
|
+
"""The host is running a SPQR Coordinator."""
|
|
283
|
+
INFRA: Service._Type.ValueType # 4
|
|
284
|
+
"""The host is running a SPQR router and coordinator"""
|
|
285
|
+
POSTGRESQL: Service._Type.ValueType # 5
|
|
286
|
+
"""The host is running a PostgreSQL."""
|
|
287
|
+
EXTERNAL_POSTGRESQL: Service._Type.ValueType # 6
|
|
288
|
+
"""The host is running a PostgreSQL."""
|
|
289
|
+
MDB_POSTGRESQL: Service._Type.ValueType # 7
|
|
290
|
+
"""The host is running a PostgreSQL"""
|
|
291
|
+
|
|
292
|
+
class Type(_Type, metaclass=_TypeEnumTypeWrapper): ...
|
|
293
|
+
TYPE_UNSPECIFIED: Service.Type.ValueType # 0
|
|
294
|
+
ROUTER: Service.Type.ValueType # 2
|
|
295
|
+
"""The host is running a SPQR Router."""
|
|
296
|
+
COORDINATOR: Service.Type.ValueType # 3
|
|
297
|
+
"""The host is running a SPQR Coordinator."""
|
|
298
|
+
INFRA: Service.Type.ValueType # 4
|
|
299
|
+
"""The host is running a SPQR router and coordinator"""
|
|
300
|
+
POSTGRESQL: Service.Type.ValueType # 5
|
|
301
|
+
"""The host is running a PostgreSQL."""
|
|
302
|
+
EXTERNAL_POSTGRESQL: Service.Type.ValueType # 6
|
|
303
|
+
"""The host is running a PostgreSQL."""
|
|
304
|
+
MDB_POSTGRESQL: Service.Type.ValueType # 7
|
|
305
|
+
"""The host is running a PostgreSQL"""
|
|
306
|
+
|
|
307
|
+
class _Health:
|
|
308
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
309
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
310
|
+
|
|
311
|
+
class _HealthEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Service._Health.ValueType], builtins.type):
|
|
312
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
313
|
+
HEALTH_UNKNOWN: Service._Health.ValueType # 0
|
|
314
|
+
"""Health of the server is unknown."""
|
|
315
|
+
ALIVE: Service._Health.ValueType # 1
|
|
316
|
+
"""The server is working normally."""
|
|
317
|
+
DEAD: Service._Health.ValueType # 2
|
|
318
|
+
"""The server is dead or unresponsive."""
|
|
319
|
+
|
|
320
|
+
class Health(_Health, metaclass=_HealthEnumTypeWrapper): ...
|
|
321
|
+
HEALTH_UNKNOWN: Service.Health.ValueType # 0
|
|
322
|
+
"""Health of the server is unknown."""
|
|
323
|
+
ALIVE: Service.Health.ValueType # 1
|
|
324
|
+
"""The server is working normally."""
|
|
325
|
+
DEAD: Service.Health.ValueType # 2
|
|
326
|
+
"""The server is dead or unresponsive."""
|
|
327
|
+
|
|
328
|
+
TYPE_FIELD_NUMBER: builtins.int
|
|
329
|
+
HEALTH_FIELD_NUMBER: builtins.int
|
|
330
|
+
type: global___Service.Type.ValueType
|
|
331
|
+
"""Type of the service provided by the host."""
|
|
332
|
+
health: global___Service.Health.ValueType
|
|
333
|
+
"""Status code of server availability."""
|
|
334
|
+
def __init__(
|
|
335
|
+
self,
|
|
336
|
+
*,
|
|
337
|
+
type: global___Service.Type.ValueType = ...,
|
|
338
|
+
health: global___Service.Health.ValueType = ...,
|
|
339
|
+
) -> None: ...
|
|
340
|
+
def ClearField(self, field_name: typing.Literal["health", b"health", "type", b"type"]) -> None: ...
|
|
341
|
+
|
|
342
|
+
global___Service = Service
|
|
343
|
+
|
|
344
|
+
@typing.final
|
|
345
|
+
class HostSpec(google.protobuf.message.Message):
|
|
346
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
347
|
+
|
|
348
|
+
ZONE_ID_FIELD_NUMBER: builtins.int
|
|
349
|
+
SUBNET_ID_FIELD_NUMBER: builtins.int
|
|
350
|
+
ASSIGN_PUBLIC_IP_FIELD_NUMBER: builtins.int
|
|
351
|
+
TYPE_FIELD_NUMBER: builtins.int
|
|
352
|
+
SHARD_NAME_FIELD_NUMBER: builtins.int
|
|
353
|
+
MDB_POSTGRESQL_FIELD_NUMBER: builtins.int
|
|
354
|
+
zone_id: builtins.str
|
|
355
|
+
"""ID of the availability zone where the host resides.
|
|
356
|
+
To get a list of available zones, use the [yandex.cloud.compute.v1.ZoneService.List] request.
|
|
357
|
+
"""
|
|
358
|
+
subnet_id: builtins.str
|
|
359
|
+
"""ID of the subnet that the host should belong to. This subnet should be a part
|
|
360
|
+
of the network that the cluster belongs to.
|
|
361
|
+
The network ID is set in the [Cluster.network_id] field.
|
|
362
|
+
"""
|
|
363
|
+
assign_public_ip: builtins.bool
|
|
364
|
+
"""Whether the host should get a public IP address on creation.
|
|
365
|
+
|
|
366
|
+
After a host has been created, this setting cannot be changed. To remove an assigned public IP, or to assign
|
|
367
|
+
a public IP to a host without one, recreate the host with [assign_public_ip] set as needed.
|
|
368
|
+
|
|
369
|
+
Possible values:
|
|
370
|
+
* false - don't assign a public IP to the host.
|
|
371
|
+
* true - the host should have a public IP address.
|
|
372
|
+
"""
|
|
373
|
+
type: global___Host.Type.ValueType
|
|
374
|
+
"""Type of the host to be deployed."""
|
|
375
|
+
shard_name: builtins.str
|
|
376
|
+
"""Name of the shard that the host belongs to.
|
|
377
|
+
If empty, host doesn't belong to any shard
|
|
378
|
+
"""
|
|
379
|
+
@property
|
|
380
|
+
def mdb_postgresql(self) -> yandex.cloud.mdb.spqr.v1.config_pb2.MDBPostgreSQL: ...
|
|
381
|
+
def __init__(
|
|
382
|
+
self,
|
|
383
|
+
*,
|
|
384
|
+
zone_id: builtins.str = ...,
|
|
385
|
+
subnet_id: builtins.str = ...,
|
|
386
|
+
assign_public_ip: builtins.bool = ...,
|
|
387
|
+
type: global___Host.Type.ValueType = ...,
|
|
388
|
+
shard_name: builtins.str = ...,
|
|
389
|
+
mdb_postgresql: yandex.cloud.mdb.spqr.v1.config_pb2.MDBPostgreSQL | None = ...,
|
|
390
|
+
) -> None: ...
|
|
391
|
+
def HasField(self, field_name: typing.Literal["mdb_postgresql", b"mdb_postgresql"]) -> builtins.bool: ...
|
|
392
|
+
def ClearField(self, field_name: typing.Literal["assign_public_ip", b"assign_public_ip", "mdb_postgresql", b"mdb_postgresql", "shard_name", b"shard_name", "subnet_id", b"subnet_id", "type", b"type", "zone_id", b"zone_id"]) -> None: ...
|
|
393
|
+
|
|
394
|
+
global___HostSpec = HostSpec
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.70.0'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ f' but the generated code in yandex/cloud/mdb/spqr/v1/host_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import abc
|
|
7
|
+
import collections.abc
|
|
8
|
+
import grpc
|
|
9
|
+
import grpc.aio
|
|
10
|
+
import typing
|
|
11
|
+
|
|
12
|
+
_T = typing.TypeVar("_T")
|
|
13
|
+
|
|
14
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
15
|
+
|
|
16
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
17
|
+
...
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: yandex/cloud/mdb/spqr/v1/maintenance.proto
|
|
5
|
+
# Protobuf Python Version: 5.29.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
5,
|
|
15
|
+
29,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'yandex/cloud/mdb/spqr/v1/maintenance.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
26
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*yandex/cloud/mdb/spqr/v1/maintenance.proto\x12\x18yandex.cloud.mdb.spqr.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\"\xc2\x01\n\x11MaintenanceWindow\x12\x45\n\x07\x61nytime\x18\x01 \x01(\x0b\x32\x32.yandex.cloud.mdb.spqr.v1.AnytimeMaintenanceWindowH\x00\x12V\n\x19weekly_maintenance_window\x18\x02 \x01(\x0b\x32\x31.yandex.cloud.mdb.spqr.v1.WeeklyMaintenanceWindowH\x00\x42\x0e\n\x06policy\x12\x04\xc0\xc1\x31\x01\"\x1a\n\x18\x41nytimeMaintenanceWindow\"\xdd\x01\n\x17WeeklyMaintenanceWindow\x12\x46\n\x03\x64\x61y\x18\x01 \x01(\x0e\x32\x39.yandex.cloud.mdb.spqr.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.TimestampBa\n\x1cyandex.cloud.api.mdb.spqr.v1ZAgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/spqr/v1;spqrb\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.mdb.spqr.v1.maintenance_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\034yandex.cloud.api.mdb.spqr.v1ZAgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/spqr/v1;spqr'
|
|
37
|
+
_globals['_MAINTENANCEWINDOW'].oneofs_by_name['policy']._loaded_options = None
|
|
38
|
+
_globals['_MAINTENANCEWINDOW'].oneofs_by_name['policy']._serialized_options = b'\300\3011\001'
|
|
39
|
+
_globals['_WEEKLYMAINTENANCEWINDOW'].fields_by_name['hour']._loaded_options = None
|
|
40
|
+
_globals['_WEEKLYMAINTENANCEWINDOW'].fields_by_name['hour']._serialized_options = b'\372\3071\0041-24'
|
|
41
|
+
_globals['_MAINTENANCEOPERATION'].fields_by_name['info']._loaded_options = None
|
|
42
|
+
_globals['_MAINTENANCEOPERATION'].fields_by_name['info']._serialized_options = b'\212\3101\005<=256'
|
|
43
|
+
_globals['_MAINTENANCEWINDOW']._serialized_start=137
|
|
44
|
+
_globals['_MAINTENANCEWINDOW']._serialized_end=331
|
|
45
|
+
_globals['_ANYTIMEMAINTENANCEWINDOW']._serialized_start=333
|
|
46
|
+
_globals['_ANYTIMEMAINTENANCEWINDOW']._serialized_end=359
|
|
47
|
+
_globals['_WEEKLYMAINTENANCEWINDOW']._serialized_start=362
|
|
48
|
+
_globals['_WEEKLYMAINTENANCEWINDOW']._serialized_end=583
|
|
49
|
+
_globals['_WEEKLYMAINTENANCEWINDOW_WEEKDAY']._serialized_start=485
|
|
50
|
+
_globals['_WEEKLYMAINTENANCEWINDOW_WEEKDAY']._serialized_end=583
|
|
51
|
+
_globals['_MAINTENANCEOPERATION']._serialized_start=586
|
|
52
|
+
_globals['_MAINTENANCEOPERATION']._serialized_end=811
|
|
53
|
+
# @@protoc_insertion_point(module_scope)
|