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,588 @@
|
|
|
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
|
+
import yandex.cloud.mdb.spqr.v1.cluster_pb2
|
|
12
|
+
import yandex.cloud.mdb.spqr.v1.cluster_service_pb2
|
|
13
|
+
import yandex.cloud.mdb.spqr.v1.shard_pb2
|
|
14
|
+
import yandex.cloud.operation.operation_pb2
|
|
15
|
+
|
|
16
|
+
_T = typing.TypeVar("_T")
|
|
17
|
+
|
|
18
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
19
|
+
|
|
20
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
21
|
+
...
|
|
22
|
+
|
|
23
|
+
class ClusterServiceStub:
|
|
24
|
+
"""A set of methods for managing SPQR Cluster resources."""
|
|
25
|
+
|
|
26
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
27
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
28
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.GetClusterRequest,
|
|
29
|
+
yandex.cloud.mdb.spqr.v1.cluster_pb2.Cluster,
|
|
30
|
+
]
|
|
31
|
+
"""Returns the specified SPQR Cluster resource.
|
|
32
|
+
|
|
33
|
+
To get the list of available SPQR Cluster resources, make a [List] request.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
GetAtRevision: grpc.UnaryUnaryMultiCallable[
|
|
37
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.GetClusterAtRevisionRequest,
|
|
38
|
+
yandex.cloud.mdb.spqr.v1.cluster_pb2.Cluster,
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
42
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClustersRequest,
|
|
43
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClustersResponse,
|
|
44
|
+
]
|
|
45
|
+
"""Retrieves the list of SPQR Cluster resources that belong
|
|
46
|
+
to the specified folder.
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
Create: grpc.UnaryUnaryMultiCallable[
|
|
50
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.CreateClusterRequest,
|
|
51
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
52
|
+
]
|
|
53
|
+
"""Creates a SPQR cluster in the specified folder."""
|
|
54
|
+
|
|
55
|
+
Update: grpc.UnaryUnaryMultiCallable[
|
|
56
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.UpdateClusterRequest,
|
|
57
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
58
|
+
]
|
|
59
|
+
"""Updates the specified SPQR cluster."""
|
|
60
|
+
|
|
61
|
+
Delete: grpc.UnaryUnaryMultiCallable[
|
|
62
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.DeleteClusterRequest,
|
|
63
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
64
|
+
]
|
|
65
|
+
"""Deletes the specified SPQR cluster."""
|
|
66
|
+
|
|
67
|
+
AddSubcluster: grpc.UnaryUnaryMultiCallable[
|
|
68
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.AddSubclusterRequest,
|
|
69
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
70
|
+
]
|
|
71
|
+
|
|
72
|
+
Start: grpc.UnaryUnaryMultiCallable[
|
|
73
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.StartClusterRequest,
|
|
74
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
75
|
+
]
|
|
76
|
+
"""Start the specified SPQR cluster."""
|
|
77
|
+
|
|
78
|
+
Stop: grpc.UnaryUnaryMultiCallable[
|
|
79
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.StopClusterRequest,
|
|
80
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
81
|
+
]
|
|
82
|
+
"""Stop the specified SPQR cluster."""
|
|
83
|
+
|
|
84
|
+
Move: grpc.UnaryUnaryMultiCallable[
|
|
85
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.MoveClusterRequest,
|
|
86
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
87
|
+
]
|
|
88
|
+
"""Moves the specified SPQR cluster to the specified folder."""
|
|
89
|
+
|
|
90
|
+
Backup: grpc.UnaryUnaryMultiCallable[
|
|
91
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.BackupClusterRequest,
|
|
92
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
93
|
+
]
|
|
94
|
+
"""Creates a backup for the specified SPQR cluster."""
|
|
95
|
+
|
|
96
|
+
Restore: grpc.UnaryUnaryMultiCallable[
|
|
97
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.RestoreClusterRequest,
|
|
98
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
99
|
+
]
|
|
100
|
+
"""Creates a new SPQR cluster using the specified backup."""
|
|
101
|
+
|
|
102
|
+
RescheduleMaintenance: grpc.UnaryUnaryMultiCallable[
|
|
103
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.RescheduleMaintenanceRequest,
|
|
104
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
105
|
+
]
|
|
106
|
+
"""Reschedules planned maintenance operation."""
|
|
107
|
+
|
|
108
|
+
ListLogs: grpc.UnaryUnaryMultiCallable[
|
|
109
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterLogsRequest,
|
|
110
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterLogsResponse,
|
|
111
|
+
]
|
|
112
|
+
"""Retrieves logs for the specified SPQR cluster.
|
|
113
|
+
See the [Logs](/yandex-mdb-guide/concepts/logs.html) section in the developers guide for detailed logs description.
|
|
114
|
+
"""
|
|
115
|
+
|
|
116
|
+
StreamLogs: grpc.UnaryStreamMultiCallable[
|
|
117
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.StreamClusterLogsRequest,
|
|
118
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.StreamLogRecord,
|
|
119
|
+
]
|
|
120
|
+
"""Same as ListLogs but using server-side streaming. Also allows for 'tail -f' semantics."""
|
|
121
|
+
|
|
122
|
+
ListOperations: grpc.UnaryUnaryMultiCallable[
|
|
123
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterOperationsRequest,
|
|
124
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterOperationsResponse,
|
|
125
|
+
]
|
|
126
|
+
"""Retrieves the list of Operation resources for the specified cluster."""
|
|
127
|
+
|
|
128
|
+
ListBackups: grpc.UnaryUnaryMultiCallable[
|
|
129
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterBackupsRequest,
|
|
130
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterBackupsResponse,
|
|
131
|
+
]
|
|
132
|
+
"""Retrieves the list of available backups for the specified SPQR cluster."""
|
|
133
|
+
|
|
134
|
+
ListHosts: grpc.UnaryUnaryMultiCallable[
|
|
135
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterHostsRequest,
|
|
136
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterHostsResponse,
|
|
137
|
+
]
|
|
138
|
+
"""Retrieves a list of hosts for the specified cluster."""
|
|
139
|
+
|
|
140
|
+
ListHostsAtRevision: grpc.UnaryUnaryMultiCallable[
|
|
141
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterHostsAtRevisionRequest,
|
|
142
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterHostsResponse,
|
|
143
|
+
]
|
|
144
|
+
"""Retrieves a list of hosts for the specified cluster."""
|
|
145
|
+
|
|
146
|
+
AddHosts: grpc.UnaryUnaryMultiCallable[
|
|
147
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.AddClusterHostsRequest,
|
|
148
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
149
|
+
]
|
|
150
|
+
"""Creates new hosts for a cluster."""
|
|
151
|
+
|
|
152
|
+
DeleteHosts: grpc.UnaryUnaryMultiCallable[
|
|
153
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.DeleteClusterHostsRequest,
|
|
154
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
155
|
+
]
|
|
156
|
+
"""Deletes the specified hosts for a cluster."""
|
|
157
|
+
|
|
158
|
+
ResetupHosts: grpc.UnaryUnaryMultiCallable[
|
|
159
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ResetupHostsRequest,
|
|
160
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
161
|
+
]
|
|
162
|
+
"""Resetups hosts."""
|
|
163
|
+
|
|
164
|
+
GetShard: grpc.UnaryUnaryMultiCallable[
|
|
165
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.GetClusterShardRequest,
|
|
166
|
+
yandex.cloud.mdb.spqr.v1.shard_pb2.Shard,
|
|
167
|
+
]
|
|
168
|
+
"""Returns the specified shard."""
|
|
169
|
+
|
|
170
|
+
ListShards: grpc.UnaryUnaryMultiCallable[
|
|
171
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterShardsRequest,
|
|
172
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterShardsResponse,
|
|
173
|
+
]
|
|
174
|
+
"""Retrieves a list of shards."""
|
|
175
|
+
|
|
176
|
+
ListShardsAtRevision: grpc.UnaryUnaryMultiCallable[
|
|
177
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterShardsAtRevisionRequest,
|
|
178
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterShardsResponse,
|
|
179
|
+
]
|
|
180
|
+
"""Retrieves a list of shards."""
|
|
181
|
+
|
|
182
|
+
AddShard: grpc.UnaryUnaryMultiCallable[
|
|
183
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.AddClusterShardRequest,
|
|
184
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
185
|
+
]
|
|
186
|
+
"""Creates a new shard."""
|
|
187
|
+
|
|
188
|
+
DeleteShard: grpc.UnaryUnaryMultiCallable[
|
|
189
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.DeleteClusterShardRequest,
|
|
190
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
191
|
+
]
|
|
192
|
+
"""Deletes the specified shard."""
|
|
193
|
+
|
|
194
|
+
class ClusterServiceAsyncStub:
|
|
195
|
+
"""A set of methods for managing SPQR Cluster resources."""
|
|
196
|
+
|
|
197
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
198
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.GetClusterRequest,
|
|
199
|
+
yandex.cloud.mdb.spqr.v1.cluster_pb2.Cluster,
|
|
200
|
+
]
|
|
201
|
+
"""Returns the specified SPQR Cluster resource.
|
|
202
|
+
|
|
203
|
+
To get the list of available SPQR Cluster resources, make a [List] request.
|
|
204
|
+
"""
|
|
205
|
+
|
|
206
|
+
GetAtRevision: grpc.aio.UnaryUnaryMultiCallable[
|
|
207
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.GetClusterAtRevisionRequest,
|
|
208
|
+
yandex.cloud.mdb.spqr.v1.cluster_pb2.Cluster,
|
|
209
|
+
]
|
|
210
|
+
|
|
211
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
212
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClustersRequest,
|
|
213
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClustersResponse,
|
|
214
|
+
]
|
|
215
|
+
"""Retrieves the list of SPQR Cluster resources that belong
|
|
216
|
+
to the specified folder.
|
|
217
|
+
"""
|
|
218
|
+
|
|
219
|
+
Create: grpc.aio.UnaryUnaryMultiCallable[
|
|
220
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.CreateClusterRequest,
|
|
221
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
222
|
+
]
|
|
223
|
+
"""Creates a SPQR cluster in the specified folder."""
|
|
224
|
+
|
|
225
|
+
Update: grpc.aio.UnaryUnaryMultiCallable[
|
|
226
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.UpdateClusterRequest,
|
|
227
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
228
|
+
]
|
|
229
|
+
"""Updates the specified SPQR cluster."""
|
|
230
|
+
|
|
231
|
+
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
232
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.DeleteClusterRequest,
|
|
233
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
234
|
+
]
|
|
235
|
+
"""Deletes the specified SPQR cluster."""
|
|
236
|
+
|
|
237
|
+
AddSubcluster: grpc.aio.UnaryUnaryMultiCallable[
|
|
238
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.AddSubclusterRequest,
|
|
239
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
240
|
+
]
|
|
241
|
+
|
|
242
|
+
Start: grpc.aio.UnaryUnaryMultiCallable[
|
|
243
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.StartClusterRequest,
|
|
244
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
245
|
+
]
|
|
246
|
+
"""Start the specified SPQR cluster."""
|
|
247
|
+
|
|
248
|
+
Stop: grpc.aio.UnaryUnaryMultiCallable[
|
|
249
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.StopClusterRequest,
|
|
250
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
251
|
+
]
|
|
252
|
+
"""Stop the specified SPQR cluster."""
|
|
253
|
+
|
|
254
|
+
Move: grpc.aio.UnaryUnaryMultiCallable[
|
|
255
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.MoveClusterRequest,
|
|
256
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
257
|
+
]
|
|
258
|
+
"""Moves the specified SPQR cluster to the specified folder."""
|
|
259
|
+
|
|
260
|
+
Backup: grpc.aio.UnaryUnaryMultiCallable[
|
|
261
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.BackupClusterRequest,
|
|
262
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
263
|
+
]
|
|
264
|
+
"""Creates a backup for the specified SPQR cluster."""
|
|
265
|
+
|
|
266
|
+
Restore: grpc.aio.UnaryUnaryMultiCallable[
|
|
267
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.RestoreClusterRequest,
|
|
268
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
269
|
+
]
|
|
270
|
+
"""Creates a new SPQR cluster using the specified backup."""
|
|
271
|
+
|
|
272
|
+
RescheduleMaintenance: grpc.aio.UnaryUnaryMultiCallable[
|
|
273
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.RescheduleMaintenanceRequest,
|
|
274
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
275
|
+
]
|
|
276
|
+
"""Reschedules planned maintenance operation."""
|
|
277
|
+
|
|
278
|
+
ListLogs: grpc.aio.UnaryUnaryMultiCallable[
|
|
279
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterLogsRequest,
|
|
280
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterLogsResponse,
|
|
281
|
+
]
|
|
282
|
+
"""Retrieves logs for the specified SPQR cluster.
|
|
283
|
+
See the [Logs](/yandex-mdb-guide/concepts/logs.html) section in the developers guide for detailed logs description.
|
|
284
|
+
"""
|
|
285
|
+
|
|
286
|
+
StreamLogs: grpc.aio.UnaryStreamMultiCallable[
|
|
287
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.StreamClusterLogsRequest,
|
|
288
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.StreamLogRecord,
|
|
289
|
+
]
|
|
290
|
+
"""Same as ListLogs but using server-side streaming. Also allows for 'tail -f' semantics."""
|
|
291
|
+
|
|
292
|
+
ListOperations: grpc.aio.UnaryUnaryMultiCallable[
|
|
293
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterOperationsRequest,
|
|
294
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterOperationsResponse,
|
|
295
|
+
]
|
|
296
|
+
"""Retrieves the list of Operation resources for the specified cluster."""
|
|
297
|
+
|
|
298
|
+
ListBackups: grpc.aio.UnaryUnaryMultiCallable[
|
|
299
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterBackupsRequest,
|
|
300
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterBackupsResponse,
|
|
301
|
+
]
|
|
302
|
+
"""Retrieves the list of available backups for the specified SPQR cluster."""
|
|
303
|
+
|
|
304
|
+
ListHosts: grpc.aio.UnaryUnaryMultiCallable[
|
|
305
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterHostsRequest,
|
|
306
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterHostsResponse,
|
|
307
|
+
]
|
|
308
|
+
"""Retrieves a list of hosts for the specified cluster."""
|
|
309
|
+
|
|
310
|
+
ListHostsAtRevision: grpc.aio.UnaryUnaryMultiCallable[
|
|
311
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterHostsAtRevisionRequest,
|
|
312
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterHostsResponse,
|
|
313
|
+
]
|
|
314
|
+
"""Retrieves a list of hosts for the specified cluster."""
|
|
315
|
+
|
|
316
|
+
AddHosts: grpc.aio.UnaryUnaryMultiCallable[
|
|
317
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.AddClusterHostsRequest,
|
|
318
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
319
|
+
]
|
|
320
|
+
"""Creates new hosts for a cluster."""
|
|
321
|
+
|
|
322
|
+
DeleteHosts: grpc.aio.UnaryUnaryMultiCallable[
|
|
323
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.DeleteClusterHostsRequest,
|
|
324
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
325
|
+
]
|
|
326
|
+
"""Deletes the specified hosts for a cluster."""
|
|
327
|
+
|
|
328
|
+
ResetupHosts: grpc.aio.UnaryUnaryMultiCallable[
|
|
329
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ResetupHostsRequest,
|
|
330
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
331
|
+
]
|
|
332
|
+
"""Resetups hosts."""
|
|
333
|
+
|
|
334
|
+
GetShard: grpc.aio.UnaryUnaryMultiCallable[
|
|
335
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.GetClusterShardRequest,
|
|
336
|
+
yandex.cloud.mdb.spqr.v1.shard_pb2.Shard,
|
|
337
|
+
]
|
|
338
|
+
"""Returns the specified shard."""
|
|
339
|
+
|
|
340
|
+
ListShards: grpc.aio.UnaryUnaryMultiCallable[
|
|
341
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterShardsRequest,
|
|
342
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterShardsResponse,
|
|
343
|
+
]
|
|
344
|
+
"""Retrieves a list of shards."""
|
|
345
|
+
|
|
346
|
+
ListShardsAtRevision: grpc.aio.UnaryUnaryMultiCallable[
|
|
347
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterShardsAtRevisionRequest,
|
|
348
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterShardsResponse,
|
|
349
|
+
]
|
|
350
|
+
"""Retrieves a list of shards."""
|
|
351
|
+
|
|
352
|
+
AddShard: grpc.aio.UnaryUnaryMultiCallable[
|
|
353
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.AddClusterShardRequest,
|
|
354
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
355
|
+
]
|
|
356
|
+
"""Creates a new shard."""
|
|
357
|
+
|
|
358
|
+
DeleteShard: grpc.aio.UnaryUnaryMultiCallable[
|
|
359
|
+
yandex.cloud.mdb.spqr.v1.cluster_service_pb2.DeleteClusterShardRequest,
|
|
360
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
361
|
+
]
|
|
362
|
+
"""Deletes the specified shard."""
|
|
363
|
+
|
|
364
|
+
class ClusterServiceServicer(metaclass=abc.ABCMeta):
|
|
365
|
+
"""A set of methods for managing SPQR Cluster resources."""
|
|
366
|
+
|
|
367
|
+
@abc.abstractmethod
|
|
368
|
+
def Get(
|
|
369
|
+
self,
|
|
370
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.GetClusterRequest,
|
|
371
|
+
context: _ServicerContext,
|
|
372
|
+
) -> typing.Union[yandex.cloud.mdb.spqr.v1.cluster_pb2.Cluster, collections.abc.Awaitable[yandex.cloud.mdb.spqr.v1.cluster_pb2.Cluster]]:
|
|
373
|
+
"""Returns the specified SPQR Cluster resource.
|
|
374
|
+
|
|
375
|
+
To get the list of available SPQR Cluster resources, make a [List] request.
|
|
376
|
+
"""
|
|
377
|
+
|
|
378
|
+
@abc.abstractmethod
|
|
379
|
+
def GetAtRevision(
|
|
380
|
+
self,
|
|
381
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.GetClusterAtRevisionRequest,
|
|
382
|
+
context: _ServicerContext,
|
|
383
|
+
) -> typing.Union[yandex.cloud.mdb.spqr.v1.cluster_pb2.Cluster, collections.abc.Awaitable[yandex.cloud.mdb.spqr.v1.cluster_pb2.Cluster]]: ...
|
|
384
|
+
|
|
385
|
+
@abc.abstractmethod
|
|
386
|
+
def List(
|
|
387
|
+
self,
|
|
388
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClustersRequest,
|
|
389
|
+
context: _ServicerContext,
|
|
390
|
+
) -> typing.Union[yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClustersResponse, collections.abc.Awaitable[yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClustersResponse]]:
|
|
391
|
+
"""Retrieves the list of SPQR Cluster resources that belong
|
|
392
|
+
to the specified folder.
|
|
393
|
+
"""
|
|
394
|
+
|
|
395
|
+
@abc.abstractmethod
|
|
396
|
+
def Create(
|
|
397
|
+
self,
|
|
398
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.CreateClusterRequest,
|
|
399
|
+
context: _ServicerContext,
|
|
400
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
401
|
+
"""Creates a SPQR cluster in the specified folder."""
|
|
402
|
+
|
|
403
|
+
@abc.abstractmethod
|
|
404
|
+
def Update(
|
|
405
|
+
self,
|
|
406
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.UpdateClusterRequest,
|
|
407
|
+
context: _ServicerContext,
|
|
408
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
409
|
+
"""Updates the specified SPQR cluster."""
|
|
410
|
+
|
|
411
|
+
@abc.abstractmethod
|
|
412
|
+
def Delete(
|
|
413
|
+
self,
|
|
414
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.DeleteClusterRequest,
|
|
415
|
+
context: _ServicerContext,
|
|
416
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
417
|
+
"""Deletes the specified SPQR cluster."""
|
|
418
|
+
|
|
419
|
+
@abc.abstractmethod
|
|
420
|
+
def AddSubcluster(
|
|
421
|
+
self,
|
|
422
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.AddSubclusterRequest,
|
|
423
|
+
context: _ServicerContext,
|
|
424
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]: ...
|
|
425
|
+
|
|
426
|
+
@abc.abstractmethod
|
|
427
|
+
def Start(
|
|
428
|
+
self,
|
|
429
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.StartClusterRequest,
|
|
430
|
+
context: _ServicerContext,
|
|
431
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
432
|
+
"""Start the specified SPQR cluster."""
|
|
433
|
+
|
|
434
|
+
@abc.abstractmethod
|
|
435
|
+
def Stop(
|
|
436
|
+
self,
|
|
437
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.StopClusterRequest,
|
|
438
|
+
context: _ServicerContext,
|
|
439
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
440
|
+
"""Stop the specified SPQR cluster."""
|
|
441
|
+
|
|
442
|
+
@abc.abstractmethod
|
|
443
|
+
def Move(
|
|
444
|
+
self,
|
|
445
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.MoveClusterRequest,
|
|
446
|
+
context: _ServicerContext,
|
|
447
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
448
|
+
"""Moves the specified SPQR cluster to the specified folder."""
|
|
449
|
+
|
|
450
|
+
@abc.abstractmethod
|
|
451
|
+
def Backup(
|
|
452
|
+
self,
|
|
453
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.BackupClusterRequest,
|
|
454
|
+
context: _ServicerContext,
|
|
455
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
456
|
+
"""Creates a backup for the specified SPQR cluster."""
|
|
457
|
+
|
|
458
|
+
@abc.abstractmethod
|
|
459
|
+
def Restore(
|
|
460
|
+
self,
|
|
461
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.RestoreClusterRequest,
|
|
462
|
+
context: _ServicerContext,
|
|
463
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
464
|
+
"""Creates a new SPQR cluster using the specified backup."""
|
|
465
|
+
|
|
466
|
+
@abc.abstractmethod
|
|
467
|
+
def RescheduleMaintenance(
|
|
468
|
+
self,
|
|
469
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.RescheduleMaintenanceRequest,
|
|
470
|
+
context: _ServicerContext,
|
|
471
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
472
|
+
"""Reschedules planned maintenance operation."""
|
|
473
|
+
|
|
474
|
+
@abc.abstractmethod
|
|
475
|
+
def ListLogs(
|
|
476
|
+
self,
|
|
477
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterLogsRequest,
|
|
478
|
+
context: _ServicerContext,
|
|
479
|
+
) -> typing.Union[yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterLogsResponse, collections.abc.Awaitable[yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterLogsResponse]]:
|
|
480
|
+
"""Retrieves logs for the specified SPQR cluster.
|
|
481
|
+
See the [Logs](/yandex-mdb-guide/concepts/logs.html) section in the developers guide for detailed logs description.
|
|
482
|
+
"""
|
|
483
|
+
|
|
484
|
+
@abc.abstractmethod
|
|
485
|
+
def StreamLogs(
|
|
486
|
+
self,
|
|
487
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.StreamClusterLogsRequest,
|
|
488
|
+
context: _ServicerContext,
|
|
489
|
+
) -> typing.Union[collections.abc.Iterator[yandex.cloud.mdb.spqr.v1.cluster_service_pb2.StreamLogRecord], collections.abc.AsyncIterator[yandex.cloud.mdb.spqr.v1.cluster_service_pb2.StreamLogRecord]]:
|
|
490
|
+
"""Same as ListLogs but using server-side streaming. Also allows for 'tail -f' semantics."""
|
|
491
|
+
|
|
492
|
+
@abc.abstractmethod
|
|
493
|
+
def ListOperations(
|
|
494
|
+
self,
|
|
495
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterOperationsRequest,
|
|
496
|
+
context: _ServicerContext,
|
|
497
|
+
) -> typing.Union[yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterOperationsResponse, collections.abc.Awaitable[yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterOperationsResponse]]:
|
|
498
|
+
"""Retrieves the list of Operation resources for the specified cluster."""
|
|
499
|
+
|
|
500
|
+
@abc.abstractmethod
|
|
501
|
+
def ListBackups(
|
|
502
|
+
self,
|
|
503
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterBackupsRequest,
|
|
504
|
+
context: _ServicerContext,
|
|
505
|
+
) -> typing.Union[yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterBackupsResponse, collections.abc.Awaitable[yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterBackupsResponse]]:
|
|
506
|
+
"""Retrieves the list of available backups for the specified SPQR cluster."""
|
|
507
|
+
|
|
508
|
+
@abc.abstractmethod
|
|
509
|
+
def ListHosts(
|
|
510
|
+
self,
|
|
511
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterHostsRequest,
|
|
512
|
+
context: _ServicerContext,
|
|
513
|
+
) -> typing.Union[yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterHostsResponse, collections.abc.Awaitable[yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterHostsResponse]]:
|
|
514
|
+
"""Retrieves a list of hosts for the specified cluster."""
|
|
515
|
+
|
|
516
|
+
@abc.abstractmethod
|
|
517
|
+
def ListHostsAtRevision(
|
|
518
|
+
self,
|
|
519
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterHostsAtRevisionRequest,
|
|
520
|
+
context: _ServicerContext,
|
|
521
|
+
) -> typing.Union[yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterHostsResponse, collections.abc.Awaitable[yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterHostsResponse]]:
|
|
522
|
+
"""Retrieves a list of hosts for the specified cluster."""
|
|
523
|
+
|
|
524
|
+
@abc.abstractmethod
|
|
525
|
+
def AddHosts(
|
|
526
|
+
self,
|
|
527
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.AddClusterHostsRequest,
|
|
528
|
+
context: _ServicerContext,
|
|
529
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
530
|
+
"""Creates new hosts for a cluster."""
|
|
531
|
+
|
|
532
|
+
@abc.abstractmethod
|
|
533
|
+
def DeleteHosts(
|
|
534
|
+
self,
|
|
535
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.DeleteClusterHostsRequest,
|
|
536
|
+
context: _ServicerContext,
|
|
537
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
538
|
+
"""Deletes the specified hosts for a cluster."""
|
|
539
|
+
|
|
540
|
+
@abc.abstractmethod
|
|
541
|
+
def ResetupHosts(
|
|
542
|
+
self,
|
|
543
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ResetupHostsRequest,
|
|
544
|
+
context: _ServicerContext,
|
|
545
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
546
|
+
"""Resetups hosts."""
|
|
547
|
+
|
|
548
|
+
@abc.abstractmethod
|
|
549
|
+
def GetShard(
|
|
550
|
+
self,
|
|
551
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.GetClusterShardRequest,
|
|
552
|
+
context: _ServicerContext,
|
|
553
|
+
) -> typing.Union[yandex.cloud.mdb.spqr.v1.shard_pb2.Shard, collections.abc.Awaitable[yandex.cloud.mdb.spqr.v1.shard_pb2.Shard]]:
|
|
554
|
+
"""Returns the specified shard."""
|
|
555
|
+
|
|
556
|
+
@abc.abstractmethod
|
|
557
|
+
def ListShards(
|
|
558
|
+
self,
|
|
559
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterShardsRequest,
|
|
560
|
+
context: _ServicerContext,
|
|
561
|
+
) -> typing.Union[yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterShardsResponse, collections.abc.Awaitable[yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterShardsResponse]]:
|
|
562
|
+
"""Retrieves a list of shards."""
|
|
563
|
+
|
|
564
|
+
@abc.abstractmethod
|
|
565
|
+
def ListShardsAtRevision(
|
|
566
|
+
self,
|
|
567
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterShardsAtRevisionRequest,
|
|
568
|
+
context: _ServicerContext,
|
|
569
|
+
) -> typing.Union[yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterShardsResponse, collections.abc.Awaitable[yandex.cloud.mdb.spqr.v1.cluster_service_pb2.ListClusterShardsResponse]]:
|
|
570
|
+
"""Retrieves a list of shards."""
|
|
571
|
+
|
|
572
|
+
@abc.abstractmethod
|
|
573
|
+
def AddShard(
|
|
574
|
+
self,
|
|
575
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.AddClusterShardRequest,
|
|
576
|
+
context: _ServicerContext,
|
|
577
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
578
|
+
"""Creates a new shard."""
|
|
579
|
+
|
|
580
|
+
@abc.abstractmethod
|
|
581
|
+
def DeleteShard(
|
|
582
|
+
self,
|
|
583
|
+
request: yandex.cloud.mdb.spqr.v1.cluster_service_pb2.DeleteClusterShardRequest,
|
|
584
|
+
context: _ServicerContext,
|
|
585
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
586
|
+
"""Deletes the specified shard."""
|
|
587
|
+
|
|
588
|
+
def add_ClusterServiceServicer_to_server(servicer: ClusterServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -0,0 +1,65 @@
|
|
|
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/config.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/config.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
26
|
+
from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%yandex/cloud/mdb/spqr/v1/config.proto\x12\x18yandex.cloud.mdb.spqr.v1\x1a\x1dyandex/cloud/validation.proto\x1a\x1egoogle/protobuf/wrappers.proto\")\n\rMDBPostgreSQL\x12\x18\n\ncluster_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"\xf7\x02\n\nSPQRConfig\x12\x36\n\x06router\x18\x01 \x01(\x0b\x32&.yandex.cloud.mdb.spqr.v1.RouterConfig\x12@\n\x0b\x63oordinator\x18\x02 \x01(\x0b\x32+.yandex.cloud.mdb.spqr.v1.CoordinatorConfig\x12>\n\npostgresql\x18\x03 \x01(\x0b\x32*.yandex.cloud.mdb.spqr.v1.PostgreSQLConfig\x12\x34\n\x05infra\x18\x05 \x01(\x0b\x32%.yandex.cloud.mdb.spqr.v1.InfraConfig\x12\x35\n\tlog_level\x18\x06 \x01(\x0e\x32\".yandex.cloud.mdb.spqr.v1.LogLevel\x12<\n\x08\x62\x61lancer\x18\x07 \x01(\x0b\x32*.yandex.cloud.mdb.spqr.v1.BalancerSettingsJ\x04\x08\x04\x10\x05\"\x80\x01\n\x0cRouterConfig\x12\x38\n\x06\x63onfig\x18\x01 \x01(\x0b\x32(.yandex.cloud.mdb.spqr.v1.RouterSettings\x12\x36\n\tresources\x18\x02 \x01(\x0b\x32#.yandex.cloud.mdb.spqr.v1.Resources\"\x8a\x01\n\x11\x43oordinatorConfig\x12=\n\x06\x63onfig\x18\x01 \x01(\x0b\x32-.yandex.cloud.mdb.spqr.v1.CoordinatorSettings\x12\x36\n\tresources\x18\x02 \x01(\x0b\x32#.yandex.cloud.mdb.spqr.v1.Resources\"\x88\x01\n\x10PostgreSQLConfig\x12<\n\x06\x63onfig\x18\x01 \x01(\x0b\x32,.yandex.cloud.mdb.spqr.v1.PostgreSQLSettings\x12\x36\n\tresources\x18\x02 \x01(\x0b\x32#.yandex.cloud.mdb.spqr.v1.Resources\"\xc3\x01\n\x0bInfraConfig\x12\x36\n\tresources\x18\x02 \x01(\x0b\x32#.yandex.cloud.mdb.spqr.v1.Resources\x12\x38\n\x06router\x18\x03 \x01(\x0b\x32(.yandex.cloud.mdb.spqr.v1.RouterSettings\x12\x42\n\x0b\x63oordinator\x18\x04 \x01(\x0b\x32-.yandex.cloud.mdb.spqr.v1.CoordinatorSettings\"\xcd\x02\n\x10\x42\x61lancerSettings\x12\x33\n\rcpu_threshold\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x35\n\x0fspace_threshold\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x36\n\x11stat_interval_sec\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\x0emax_move_count\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\rkeys_per_move\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12,\n\x07timeout\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\xe0\x02\n\x0eRouterSettings\x12\x38\n\x14show_notice_messages\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x16\n\x0etime_quantiles\x18\x02 \x03(\x01\x12]\n\x16\x64\x65\x66\x61ult_route_behavior\x18\x04 \x01(\x0e\x32=.yandex.cloud.mdb.spqr.v1.RouterSettings.DefaultRouteBehavior\x12\x41\n\x1dprefer_same_availability_zone\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"T\n\x14\x44\x65\x66\x61ultRouteBehavior\x12&\n\"DEFAULT_ROUTE_BEHAVIOR_UNSPECIFIED\x10\x00\x12\t\n\x05\x42LOCK\x10\x01\x12\t\n\x05\x41LLOW\x10\x02J\x04\x08\x03\x10\x04\"\x15\n\x13\x43oordinatorSettings\"\x14\n\x12PostgreSQLSettings\"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*h\n\x08LogLevel\x12\x19\n\x15LOG_LEVEL_UNSPECIFIED\x10\x00\x12\t\n\x05\x44\x45\x42UG\x10\x01\x12\x08\n\x04INFO\x10\x02\x12\x0b\n\x07WARNING\x10\x03\x12\t\n\x05\x45RROR\x10\x04\x12\t\n\x05\x46\x41TAL\x10\x05\x12\t\n\x05PANIC\x10\x06\x42\x61\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.config_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['_MDBPOSTGRESQL'].fields_by_name['cluster_id']._loaded_options = None
|
|
38
|
+
_globals['_MDBPOSTGRESQL'].fields_by_name['cluster_id']._serialized_options = b'\350\3071\001'
|
|
39
|
+
_globals['_LOGLEVEL']._serialized_start=1978
|
|
40
|
+
_globals['_LOGLEVEL']._serialized_end=2082
|
|
41
|
+
_globals['_MDBPOSTGRESQL']._serialized_start=130
|
|
42
|
+
_globals['_MDBPOSTGRESQL']._serialized_end=171
|
|
43
|
+
_globals['_SPQRCONFIG']._serialized_start=174
|
|
44
|
+
_globals['_SPQRCONFIG']._serialized_end=549
|
|
45
|
+
_globals['_ROUTERCONFIG']._serialized_start=552
|
|
46
|
+
_globals['_ROUTERCONFIG']._serialized_end=680
|
|
47
|
+
_globals['_COORDINATORCONFIG']._serialized_start=683
|
|
48
|
+
_globals['_COORDINATORCONFIG']._serialized_end=821
|
|
49
|
+
_globals['_POSTGRESQLCONFIG']._serialized_start=824
|
|
50
|
+
_globals['_POSTGRESQLCONFIG']._serialized_end=960
|
|
51
|
+
_globals['_INFRACONFIG']._serialized_start=963
|
|
52
|
+
_globals['_INFRACONFIG']._serialized_end=1158
|
|
53
|
+
_globals['_BALANCERSETTINGS']._serialized_start=1161
|
|
54
|
+
_globals['_BALANCERSETTINGS']._serialized_end=1494
|
|
55
|
+
_globals['_ROUTERSETTINGS']._serialized_start=1497
|
|
56
|
+
_globals['_ROUTERSETTINGS']._serialized_end=1849
|
|
57
|
+
_globals['_ROUTERSETTINGS_DEFAULTROUTEBEHAVIOR']._serialized_start=1759
|
|
58
|
+
_globals['_ROUTERSETTINGS_DEFAULTROUTEBEHAVIOR']._serialized_end=1843
|
|
59
|
+
_globals['_COORDINATORSETTINGS']._serialized_start=1851
|
|
60
|
+
_globals['_COORDINATORSETTINGS']._serialized_end=1872
|
|
61
|
+
_globals['_POSTGRESQLSETTINGS']._serialized_start=1874
|
|
62
|
+
_globals['_POSTGRESQLSETTINGS']._serialized_end=1894
|
|
63
|
+
_globals['_RESOURCES']._serialized_start=1896
|
|
64
|
+
_globals['_RESOURCES']._serialized_end=1976
|
|
65
|
+
# @@protoc_insertion_point(module_scope)
|