yandexcloud 0.332.0__py3-none-any.whl → 0.333.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/threads/message_pb2.py +29 -19
- yandex/cloud/ai/assistants/v1/threads/message_pb2.pyi +104 -1
- yandex/cloud/ai/dataset/v1/dataset_service_pb2.py +66 -66
- yandex/cloud/ai/dataset/v1/dataset_service_pb2.pyi +5 -1
- yandex/cloud/ai/tuning/v1/tuning_service_pb2.py +50 -38
- yandex/cloud/ai/tuning/v1/tuning_service_pb2.pyi +199 -3
- yandex/cloud/backup/v1/backup_service_pb2.py +17 -3
- yandex/cloud/backup/v1/backup_service_pb2.pyi +52 -0
- yandex/cloud/backup/v1/backup_service_pb2_grpc.py +44 -0
- yandex/cloud/backup/v1/backup_service_pb2_grpc.pyi +20 -0
- yandex/cloud/cloudregistry/v1/registry_pb2.py +5 -5
- yandex/cloud/cloudregistry/v1/registry_pb2.pyi +4 -0
- yandex/cloud/k8s/v1/cluster_pb2.py +38 -38
- yandex/cloud/k8s/v1/cluster_pb2.pyi +6 -2
- yandex/cloud/k8s/v1/cluster_service_pb2.py +74 -63
- yandex/cloud/k8s/v1/cluster_service_pb2.pyi +39 -0
- yandex/cloud/k8s/v1/cluster_service_pb2_grpc.py +44 -0
- yandex/cloud/k8s/v1/cluster_service_pb2_grpc.pyi +20 -0
- yandex/cloud/k8s/v1/maintenance_pb2.py +14 -11
- yandex/cloud/k8s/v1/maintenance_pb2.pyi +36 -0
- yandex/cloud/mdb/postgresql/v1/backup_retention_policy_pb2.py +47 -0
- yandex/cloud/mdb/postgresql/v1/backup_retention_policy_pb2.pyi +82 -0
- yandex/cloud/mdb/postgresql/v1/backup_retention_policy_pb2_grpc.py +24 -0
- yandex/cloud/mdb/postgresql/v1/backup_retention_policy_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/postgresql/v1/backup_retention_policy_service_pb2.py +70 -0
- yandex/cloud/mdb/postgresql/v1/backup_retention_policy_service_pb2.pyi +159 -0
- yandex/cloud/mdb/postgresql/v1/backup_retention_policy_service_pb2_grpc.py +189 -0
- yandex/cloud/mdb/postgresql/v1/backup_retention_policy_service_pb2_grpc.pyi +90 -0
- yandex/cloud/mdb/postgresql/v1/cluster_service_pb2.py +110 -105
- yandex/cloud/mdb/postgresql/v1/cluster_service_pb2.pyi +41 -1
- yandex/cloud/mdb/redis/v1/cluster_service_pb2.py +128 -125
- yandex/cloud/mdb/redis/v1/cluster_service_pb2.pyi +22 -3
- yandex/cloud/mdb/redis/v1/config/redis_pb2.py +10 -8
- yandex/cloud/mdb/redis/v1/config/redis_pb2.pyi +8 -2
- yandex/cloud/quotamanager/__init__.py +0 -0
- yandex/cloud/quotamanager/v1/__init__.py +0 -0
- yandex/cloud/quotamanager/v1/quota_limit_service_pb2.py +79 -0
- yandex/cloud/quotamanager/v1/quota_limit_service_pb2.pyi +193 -0
- yandex/cloud/quotamanager/v1/quota_limit_service_pb2_grpc.py +189 -0
- yandex/cloud/quotamanager/v1/quota_limit_service_pb2_grpc.pyi +90 -0
- yandex/cloud/quotamanager/v1/resource_pb2.py +42 -0
- yandex/cloud/quotamanager/v1/resource_pb2.pyi +31 -0
- yandex/cloud/quotamanager/v1/resource_pb2_grpc.py +24 -0
- yandex/cloud/quotamanager/v1/resource_pb2_grpc.pyi +17 -0
- yandexcloud/__init__.py +1 -1
- {yandexcloud-0.332.0.dist-info → yandexcloud-0.333.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.332.0.dist-info → yandexcloud-0.333.0.dist-info}/RECORD +51 -33
- {yandexcloud-0.332.0.dist-info → yandexcloud-0.333.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.332.0.dist-info → yandexcloud-0.333.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.332.0.dist-info → yandexcloud-0.333.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.332.0.dist-info → yandexcloud-0.333.0.dist-info}/top_level.txt +0 -0
|
@@ -9,6 +9,7 @@ import google.protobuf.descriptor
|
|
|
9
9
|
import google.protobuf.duration_pb2
|
|
10
10
|
import google.protobuf.internal.containers
|
|
11
11
|
import google.protobuf.message
|
|
12
|
+
import google.protobuf.timestamp_pb2
|
|
12
13
|
import google.type.dayofweek_pb2
|
|
13
14
|
import google.type.timeofday_pb2
|
|
14
15
|
import typing
|
|
@@ -130,3 +131,38 @@ class WeeklyMaintenanceWindow(google.protobuf.message.Message):
|
|
|
130
131
|
def ClearField(self, field_name: typing.Literal["days_of_week", b"days_of_week"]) -> None: ...
|
|
131
132
|
|
|
132
133
|
global___WeeklyMaintenanceWindow = WeeklyMaintenanceWindow
|
|
134
|
+
|
|
135
|
+
@typing.final
|
|
136
|
+
class ScheduledMaintenance(google.protobuf.message.Message):
|
|
137
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
138
|
+
|
|
139
|
+
DELAYED_UNTIL_FIELD_NUMBER: builtins.int
|
|
140
|
+
AVAILABLE_FROM_FIELD_NUMBER: builtins.int
|
|
141
|
+
NO_LATER_THAN_FIELD_NUMBER: builtins.int
|
|
142
|
+
DESCRIPTION_FIELD_NUMBER: builtins.int
|
|
143
|
+
description: builtins.str
|
|
144
|
+
"""Description of the planned operation, for example, "Infrastructure planned update"."""
|
|
145
|
+
@property
|
|
146
|
+
def delayed_until(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
147
|
+
"""Time until which the update should be postponed."""
|
|
148
|
+
|
|
149
|
+
@property
|
|
150
|
+
def available_from(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
151
|
+
"""Time when the update became available."""
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
def no_later_than(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
155
|
+
"""The latest possible date by which a mandatory update must be applied."""
|
|
156
|
+
|
|
157
|
+
def __init__(
|
|
158
|
+
self,
|
|
159
|
+
*,
|
|
160
|
+
delayed_until: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
161
|
+
available_from: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
162
|
+
no_later_than: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
163
|
+
description: builtins.str = ...,
|
|
164
|
+
) -> None: ...
|
|
165
|
+
def HasField(self, field_name: typing.Literal["available_from", b"available_from", "delayed_until", b"delayed_until", "no_later_than", b"no_later_than"]) -> builtins.bool: ...
|
|
166
|
+
def ClearField(self, field_name: typing.Literal["available_from", b"available_from", "delayed_until", b"delayed_until", "description", b"description", "no_later_than", b"no_later_than"]) -> None: ...
|
|
167
|
+
|
|
168
|
+
global___ScheduledMaintenance = ScheduledMaintenance
|
|
@@ -0,0 +1,47 @@
|
|
|
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/postgresql/v1/backup_retention_policy.proto
|
|
5
|
+
# Protobuf Python Version: 5.28.1
|
|
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
|
+
28,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'yandex/cloud/mdb/postgresql/v1/backup_retention_policy.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/postgresql/v1/backup_retention_policy.proto\x12\x1eyandex.cloud.mdb.postgresql.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\"]\n\x07\x43ronTab\x12\x14\n\x0c\x64\x61y_of_month\x18\x03 \x01(\t\x12\r\n\x05month\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x61y_of_week\x18\x05 \x01(\tJ\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03R\x06minuteR\x04hour\"\x82\x02\n\x15\x42\x61\x63kupRetentionPolicy\x12\x17\n\tpolicy_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12 \n\ncluster_id\x18\x02 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x19\n\x0bpolicy_name\x18\x03 \x01(\tB\x04\xe8\xc7\x31\x01\x12.\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x04\x63ron\x18\x05 \x01(\x0b\x32\'.yandex.cloud.mdb.postgresql.v1.CronTab\x12\x17\n\x0fretain_for_days\x18\x06 \x01(\x03\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\tBs\n\"yandex.cloud.api.mdb.postgresql.v1ZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1;postgresqlb\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.mdb.postgresql.v1.backup_retention_policy_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\"yandex.cloud.api.mdb.postgresql.v1ZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1;postgresql'
|
|
37
|
+
_globals['_BACKUPRETENTIONPOLICY'].fields_by_name['policy_id']._loaded_options = None
|
|
38
|
+
_globals['_BACKUPRETENTIONPOLICY'].fields_by_name['policy_id']._serialized_options = b'\350\3071\001'
|
|
39
|
+
_globals['_BACKUPRETENTIONPOLICY'].fields_by_name['cluster_id']._loaded_options = None
|
|
40
|
+
_globals['_BACKUPRETENTIONPOLICY'].fields_by_name['cluster_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
41
|
+
_globals['_BACKUPRETENTIONPOLICY'].fields_by_name['policy_name']._loaded_options = None
|
|
42
|
+
_globals['_BACKUPRETENTIONPOLICY'].fields_by_name['policy_name']._serialized_options = b'\350\3071\001'
|
|
43
|
+
_globals['_CRONTAB']._serialized_start=160
|
|
44
|
+
_globals['_CRONTAB']._serialized_end=253
|
|
45
|
+
_globals['_BACKUPRETENTIONPOLICY']._serialized_start=256
|
|
46
|
+
_globals['_BACKUPRETENTIONPOLICY']._serialized_end=514
|
|
47
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import google.protobuf.descriptor
|
|
8
|
+
import google.protobuf.message
|
|
9
|
+
import google.protobuf.timestamp_pb2
|
|
10
|
+
import typing
|
|
11
|
+
|
|
12
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
13
|
+
|
|
14
|
+
@typing.final
|
|
15
|
+
class CronTab(google.protobuf.message.Message):
|
|
16
|
+
"""Message to describe a crontab schedule."""
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
19
|
+
|
|
20
|
+
DAY_OF_MONTH_FIELD_NUMBER: builtins.int
|
|
21
|
+
MONTH_FIELD_NUMBER: builtins.int
|
|
22
|
+
DAY_OF_WEEK_FIELD_NUMBER: builtins.int
|
|
23
|
+
day_of_month: builtins.str
|
|
24
|
+
month: builtins.str
|
|
25
|
+
day_of_week: builtins.str
|
|
26
|
+
def __init__(
|
|
27
|
+
self,
|
|
28
|
+
*,
|
|
29
|
+
day_of_month: builtins.str = ...,
|
|
30
|
+
month: builtins.str = ...,
|
|
31
|
+
day_of_week: builtins.str = ...,
|
|
32
|
+
) -> None: ...
|
|
33
|
+
def ClearField(self, field_name: typing.Literal["day_of_month", b"day_of_month", "day_of_week", b"day_of_week", "month", b"month"]) -> None: ...
|
|
34
|
+
|
|
35
|
+
global___CronTab = CronTab
|
|
36
|
+
|
|
37
|
+
@typing.final
|
|
38
|
+
class BackupRetentionPolicy(google.protobuf.message.Message):
|
|
39
|
+
"""Message to describe a retention policy for cluster backups."""
|
|
40
|
+
|
|
41
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
42
|
+
|
|
43
|
+
POLICY_ID_FIELD_NUMBER: builtins.int
|
|
44
|
+
CLUSTER_ID_FIELD_NUMBER: builtins.int
|
|
45
|
+
POLICY_NAME_FIELD_NUMBER: builtins.int
|
|
46
|
+
CREATED_AT_FIELD_NUMBER: builtins.int
|
|
47
|
+
CRON_FIELD_NUMBER: builtins.int
|
|
48
|
+
RETAIN_FOR_DAYS_FIELD_NUMBER: builtins.int
|
|
49
|
+
DESCRIPTION_FIELD_NUMBER: builtins.int
|
|
50
|
+
policy_id: builtins.str
|
|
51
|
+
"""Required. Policy ID."""
|
|
52
|
+
cluster_id: builtins.str
|
|
53
|
+
"""PostgreSQL cluster ID."""
|
|
54
|
+
policy_name: builtins.str
|
|
55
|
+
"""Required. Policy name."""
|
|
56
|
+
retain_for_days: builtins.int
|
|
57
|
+
"""Retention duration."""
|
|
58
|
+
description: builtins.str
|
|
59
|
+
"""Human-readable description."""
|
|
60
|
+
@property
|
|
61
|
+
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
62
|
+
"""Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format."""
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def cron(self) -> global___CronTab:
|
|
66
|
+
"""CronTab schedule."""
|
|
67
|
+
|
|
68
|
+
def __init__(
|
|
69
|
+
self,
|
|
70
|
+
*,
|
|
71
|
+
policy_id: builtins.str = ...,
|
|
72
|
+
cluster_id: builtins.str = ...,
|
|
73
|
+
policy_name: builtins.str = ...,
|
|
74
|
+
created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
75
|
+
cron: global___CronTab | None = ...,
|
|
76
|
+
retain_for_days: builtins.int = ...,
|
|
77
|
+
description: builtins.str = ...,
|
|
78
|
+
) -> None: ...
|
|
79
|
+
def HasField(self, field_name: typing.Literal["created_at", b"created_at", "cron", b"cron"]) -> builtins.bool: ...
|
|
80
|
+
def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id", "created_at", b"created_at", "cron", b"cron", "description", b"description", "policy_id", b"policy_id", "policy_name", b"policy_name", "retain_for_days", b"retain_for_days"]) -> None: ...
|
|
81
|
+
|
|
82
|
+
global___BackupRetentionPolicy = BackupRetentionPolicy
|
|
@@ -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.68.1'
|
|
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/postgresql/v1/backup_retention_policy_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,70 @@
|
|
|
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/postgresql/v1/backup_retention_policy_service.proto
|
|
5
|
+
# Protobuf Python Version: 5.28.1
|
|
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
|
+
28,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'yandex/cloud/mdb/postgresql/v1/backup_retention_policy_service.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
26
|
+
from yandex.cloud.mdb.postgresql.v1 import backup_retention_policy_pb2 as yandex_dot_cloud_dot_mdb_dot_postgresql_dot_v1_dot_backup__retention__policy__pb2
|
|
27
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nDyandex/cloud/mdb/postgresql/v1/backup_retention_policy_service.proto\x12\x1eyandex.cloud.mdb.postgresql.v1\x1a\x1cgoogle/api/annotations.proto\x1a<yandex/cloud/mdb/postgresql/v1/backup_retention_policy.proto\x1a\x1dyandex/cloud/validation.proto\"\x84\x01\n\"ListBackupRetentionPoliciesRequest\x12 \n\ncluster_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x1d\n\tpage_size\x18\x02 \x01(\x03\x42\n\xfa\xc7\x31\x06<=1000\x12\x1d\n\npage_token\x18\x03 \x01(\tB\t\x8a\xc8\x31\x05<=100\"\x87\x01\n#ListBackupRetentionPoliciesResponse\x12G\n\x08policies\x18\x01 \x03(\x0b\x32\x35.yandex.cloud.mdb.postgresql.v1.BackupRetentionPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xc6\x01\n\"CreateBackupRetentionPolicyRequest\x12 \n\ncluster_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x35\n\x04\x63ron\x18\x02 \x01(\x0b\x32\'.yandex.cloud.mdb.postgresql.v1.CronTab\x12\x17\n\x0fretain_for_days\x18\x03 \x01(\x03\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x19\n\x0bpolicy_name\x18\x05 \x01(\tB\x04\xe8\xc7\x31\x01\"l\n#CreateBackupRetentionPolicyResponse\x12\x45\n\x06policy\x18\x01 \x01(\x0b\x32\x35.yandex.cloud.mdb.postgresql.v1.BackupRetentionPolicy\"Y\n\"DeleteBackupRetentionPolicyRequest\x12\x11\n\tpolicy_id\x18\x01 \x01(\t\x12 \n\ncluster_id\x18\x02 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"%\n#DeleteBackupRetentionPolicyResponse2\xc2\x05\n\x1c\x42\x61\x63kupRetentionPolicyService\x12\xd8\x01\n\x04List\x12\x42.yandex.cloud.mdb.postgresql.v1.ListBackupRetentionPoliciesRequest\x1a\x43.yandex.cloud.mdb.postgresql.v1.ListBackupRetentionPoliciesResponse\"G\x82\xd3\xe4\x93\x02\x41\x12?/managed-postgresql/v1/clusters/{cluster_id}/retention_policies\x12\xdd\x01\n\x06\x43reate\x12\x42.yandex.cloud.mdb.postgresql.v1.CreateBackupRetentionPolicyRequest\x1a\x43.yandex.cloud.mdb.postgresql.v1.CreateBackupRetentionPolicyResponse\"J\x82\xd3\xe4\x93\x02\x44\"?/managed-postgresql/v1/clusters/{cluster_id}/retention_policies:\x01*\x12\xe6\x01\n\x06\x44\x65lete\x12\x42.yandex.cloud.mdb.postgresql.v1.DeleteBackupRetentionPolicyRequest\x1a\x43.yandex.cloud.mdb.postgresql.v1.DeleteBackupRetentionPolicyResponse\"S\x82\xd3\xe4\x93\x02M*K/managed-postgresql/v1/clusters/{cluster_id}/retention_policies/{policy_id}Bs\n\"yandex.cloud.api.mdb.postgresql.v1ZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1;postgresqlb\x06proto3')
|
|
31
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.mdb.postgresql.v1.backup_retention_policy_service_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\"yandex.cloud.api.mdb.postgresql.v1ZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1;postgresql'
|
|
38
|
+
_globals['_LISTBACKUPRETENTIONPOLICIESREQUEST'].fields_by_name['cluster_id']._loaded_options = None
|
|
39
|
+
_globals['_LISTBACKUPRETENTIONPOLICIESREQUEST'].fields_by_name['cluster_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
40
|
+
_globals['_LISTBACKUPRETENTIONPOLICIESREQUEST'].fields_by_name['page_size']._loaded_options = None
|
|
41
|
+
_globals['_LISTBACKUPRETENTIONPOLICIESREQUEST'].fields_by_name['page_size']._serialized_options = b'\372\3071\006<=1000'
|
|
42
|
+
_globals['_LISTBACKUPRETENTIONPOLICIESREQUEST'].fields_by_name['page_token']._loaded_options = None
|
|
43
|
+
_globals['_LISTBACKUPRETENTIONPOLICIESREQUEST'].fields_by_name['page_token']._serialized_options = b'\212\3101\005<=100'
|
|
44
|
+
_globals['_CREATEBACKUPRETENTIONPOLICYREQUEST'].fields_by_name['cluster_id']._loaded_options = None
|
|
45
|
+
_globals['_CREATEBACKUPRETENTIONPOLICYREQUEST'].fields_by_name['cluster_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
46
|
+
_globals['_CREATEBACKUPRETENTIONPOLICYREQUEST'].fields_by_name['policy_name']._loaded_options = None
|
|
47
|
+
_globals['_CREATEBACKUPRETENTIONPOLICYREQUEST'].fields_by_name['policy_name']._serialized_options = b'\350\3071\001'
|
|
48
|
+
_globals['_DELETEBACKUPRETENTIONPOLICYREQUEST'].fields_by_name['cluster_id']._loaded_options = None
|
|
49
|
+
_globals['_DELETEBACKUPRETENTIONPOLICYREQUEST'].fields_by_name['cluster_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
50
|
+
_globals['_BACKUPRETENTIONPOLICYSERVICE'].methods_by_name['List']._loaded_options = None
|
|
51
|
+
_globals['_BACKUPRETENTIONPOLICYSERVICE'].methods_by_name['List']._serialized_options = b'\202\323\344\223\002A\022?/managed-postgresql/v1/clusters/{cluster_id}/retention_policies'
|
|
52
|
+
_globals['_BACKUPRETENTIONPOLICYSERVICE'].methods_by_name['Create']._loaded_options = None
|
|
53
|
+
_globals['_BACKUPRETENTIONPOLICYSERVICE'].methods_by_name['Create']._serialized_options = b'\202\323\344\223\002D\"?/managed-postgresql/v1/clusters/{cluster_id}/retention_policies:\001*'
|
|
54
|
+
_globals['_BACKUPRETENTIONPOLICYSERVICE'].methods_by_name['Delete']._loaded_options = None
|
|
55
|
+
_globals['_BACKUPRETENTIONPOLICYSERVICE'].methods_by_name['Delete']._serialized_options = b'\202\323\344\223\002M*K/managed-postgresql/v1/clusters/{cluster_id}/retention_policies/{policy_id}'
|
|
56
|
+
_globals['_LISTBACKUPRETENTIONPOLICIESREQUEST']._serialized_start=228
|
|
57
|
+
_globals['_LISTBACKUPRETENTIONPOLICIESREQUEST']._serialized_end=360
|
|
58
|
+
_globals['_LISTBACKUPRETENTIONPOLICIESRESPONSE']._serialized_start=363
|
|
59
|
+
_globals['_LISTBACKUPRETENTIONPOLICIESRESPONSE']._serialized_end=498
|
|
60
|
+
_globals['_CREATEBACKUPRETENTIONPOLICYREQUEST']._serialized_start=501
|
|
61
|
+
_globals['_CREATEBACKUPRETENTIONPOLICYREQUEST']._serialized_end=699
|
|
62
|
+
_globals['_CREATEBACKUPRETENTIONPOLICYRESPONSE']._serialized_start=701
|
|
63
|
+
_globals['_CREATEBACKUPRETENTIONPOLICYRESPONSE']._serialized_end=809
|
|
64
|
+
_globals['_DELETEBACKUPRETENTIONPOLICYREQUEST']._serialized_start=811
|
|
65
|
+
_globals['_DELETEBACKUPRETENTIONPOLICYREQUEST']._serialized_end=900
|
|
66
|
+
_globals['_DELETEBACKUPRETENTIONPOLICYRESPONSE']._serialized_start=902
|
|
67
|
+
_globals['_DELETEBACKUPRETENTIONPOLICYRESPONSE']._serialized_end=939
|
|
68
|
+
_globals['_BACKUPRETENTIONPOLICYSERVICE']._serialized_start=942
|
|
69
|
+
_globals['_BACKUPRETENTIONPOLICYSERVICE']._serialized_end=1648
|
|
70
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,159 @@
|
|
|
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.message
|
|
11
|
+
import typing
|
|
12
|
+
import yandex.cloud.mdb.postgresql.v1.backup_retention_policy_pb2
|
|
13
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
15
|
+
|
|
16
|
+
@typing.final
|
|
17
|
+
class ListBackupRetentionPoliciesRequest(google.protobuf.message.Message):
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
19
|
+
|
|
20
|
+
CLUSTER_ID_FIELD_NUMBER: builtins.int
|
|
21
|
+
PAGE_SIZE_FIELD_NUMBER: builtins.int
|
|
22
|
+
PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
23
|
+
cluster_id: builtins.str
|
|
24
|
+
"""ID of the PostgreSQL cluster.
|
|
25
|
+
To get the PostgreSQL cluster ID use a [ClusterService.List] request.
|
|
26
|
+
"""
|
|
27
|
+
page_size: builtins.int
|
|
28
|
+
"""The maximum number of results per page to return. If the number of available
|
|
29
|
+
results is larger than [page_size], the service returns a [ListBackupRetentionPoliciesResponse.next_page_token]
|
|
30
|
+
that can be used to get the next page of results in subsequent list requests.
|
|
31
|
+
"""
|
|
32
|
+
page_token: builtins.str
|
|
33
|
+
"""Page token. To get the next page of results, set [page_token]
|
|
34
|
+
to the [ListBackupRetentionPoliciesResponse.next_page_token] returned by the previous list request.
|
|
35
|
+
"""
|
|
36
|
+
def __init__(
|
|
37
|
+
self,
|
|
38
|
+
*,
|
|
39
|
+
cluster_id: builtins.str = ...,
|
|
40
|
+
page_size: builtins.int = ...,
|
|
41
|
+
page_token: builtins.str = ...,
|
|
42
|
+
) -> None: ...
|
|
43
|
+
def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ...
|
|
44
|
+
|
|
45
|
+
global___ListBackupRetentionPoliciesRequest = ListBackupRetentionPoliciesRequest
|
|
46
|
+
|
|
47
|
+
@typing.final
|
|
48
|
+
class ListBackupRetentionPoliciesResponse(google.protobuf.message.Message):
|
|
49
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
50
|
+
|
|
51
|
+
POLICIES_FIELD_NUMBER: builtins.int
|
|
52
|
+
NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
53
|
+
next_page_token: builtins.str
|
|
54
|
+
"""This token allows you to get the next page of results for list requests. If the number of results
|
|
55
|
+
is larger than [ListBackupRetentionPoliciesRequest.page_size], use the [next_page_token] as the value
|
|
56
|
+
for the [ListBackupRetentionPoliciesRequest.page_token] query parameter in the next list request.
|
|
57
|
+
Each subsequent list request will have its own [next_page_token] to continue paging through the results.
|
|
58
|
+
"""
|
|
59
|
+
@property
|
|
60
|
+
def policies(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.mdb.postgresql.v1.backup_retention_policy_pb2.BackupRetentionPolicy]:
|
|
61
|
+
"""List of [BackupRetentionPolicy] associated with the cluster."""
|
|
62
|
+
|
|
63
|
+
def __init__(
|
|
64
|
+
self,
|
|
65
|
+
*,
|
|
66
|
+
policies: collections.abc.Iterable[yandex.cloud.mdb.postgresql.v1.backup_retention_policy_pb2.BackupRetentionPolicy] | None = ...,
|
|
67
|
+
next_page_token: builtins.str = ...,
|
|
68
|
+
) -> None: ...
|
|
69
|
+
def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "policies", b"policies"]) -> None: ...
|
|
70
|
+
|
|
71
|
+
global___ListBackupRetentionPoliciesResponse = ListBackupRetentionPoliciesResponse
|
|
72
|
+
|
|
73
|
+
@typing.final
|
|
74
|
+
class CreateBackupRetentionPolicyRequest(google.protobuf.message.Message):
|
|
75
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
76
|
+
|
|
77
|
+
CLUSTER_ID_FIELD_NUMBER: builtins.int
|
|
78
|
+
CRON_FIELD_NUMBER: builtins.int
|
|
79
|
+
RETAIN_FOR_DAYS_FIELD_NUMBER: builtins.int
|
|
80
|
+
DESCRIPTION_FIELD_NUMBER: builtins.int
|
|
81
|
+
POLICY_NAME_FIELD_NUMBER: builtins.int
|
|
82
|
+
cluster_id: builtins.str
|
|
83
|
+
"""ID of the PostgreSQL cluster.
|
|
84
|
+
To get the PostgreSQL cluster ID use a [ClusterService.List] request.
|
|
85
|
+
"""
|
|
86
|
+
retain_for_days: builtins.int
|
|
87
|
+
"""Retention duration."""
|
|
88
|
+
description: builtins.str
|
|
89
|
+
"""Policy description."""
|
|
90
|
+
policy_name: builtins.str
|
|
91
|
+
"""Required. Policy name."""
|
|
92
|
+
@property
|
|
93
|
+
def cron(self) -> yandex.cloud.mdb.postgresql.v1.backup_retention_policy_pb2.CronTab:
|
|
94
|
+
"""CronTab schedule."""
|
|
95
|
+
|
|
96
|
+
def __init__(
|
|
97
|
+
self,
|
|
98
|
+
*,
|
|
99
|
+
cluster_id: builtins.str = ...,
|
|
100
|
+
cron: yandex.cloud.mdb.postgresql.v1.backup_retention_policy_pb2.CronTab | None = ...,
|
|
101
|
+
retain_for_days: builtins.int = ...,
|
|
102
|
+
description: builtins.str = ...,
|
|
103
|
+
policy_name: builtins.str = ...,
|
|
104
|
+
) -> None: ...
|
|
105
|
+
def HasField(self, field_name: typing.Literal["cron", b"cron"]) -> builtins.bool: ...
|
|
106
|
+
def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id", "cron", b"cron", "description", b"description", "policy_name", b"policy_name", "retain_for_days", b"retain_for_days"]) -> None: ...
|
|
107
|
+
|
|
108
|
+
global___CreateBackupRetentionPolicyRequest = CreateBackupRetentionPolicyRequest
|
|
109
|
+
|
|
110
|
+
@typing.final
|
|
111
|
+
class CreateBackupRetentionPolicyResponse(google.protobuf.message.Message):
|
|
112
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
113
|
+
|
|
114
|
+
POLICY_FIELD_NUMBER: builtins.int
|
|
115
|
+
@property
|
|
116
|
+
def policy(self) -> yandex.cloud.mdb.postgresql.v1.backup_retention_policy_pb2.BackupRetentionPolicy:
|
|
117
|
+
"""Newly created [BackupRetentionPolicy]."""
|
|
118
|
+
|
|
119
|
+
def __init__(
|
|
120
|
+
self,
|
|
121
|
+
*,
|
|
122
|
+
policy: yandex.cloud.mdb.postgresql.v1.backup_retention_policy_pb2.BackupRetentionPolicy | None = ...,
|
|
123
|
+
) -> None: ...
|
|
124
|
+
def HasField(self, field_name: typing.Literal["policy", b"policy"]) -> builtins.bool: ...
|
|
125
|
+
def ClearField(self, field_name: typing.Literal["policy", b"policy"]) -> None: ...
|
|
126
|
+
|
|
127
|
+
global___CreateBackupRetentionPolicyResponse = CreateBackupRetentionPolicyResponse
|
|
128
|
+
|
|
129
|
+
@typing.final
|
|
130
|
+
class DeleteBackupRetentionPolicyRequest(google.protobuf.message.Message):
|
|
131
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
132
|
+
|
|
133
|
+
POLICY_ID_FIELD_NUMBER: builtins.int
|
|
134
|
+
CLUSTER_ID_FIELD_NUMBER: builtins.int
|
|
135
|
+
policy_id: builtins.str
|
|
136
|
+
"""Unique identifier for the [BackupRetentionPolicy]."""
|
|
137
|
+
cluster_id: builtins.str
|
|
138
|
+
"""ID of the PostgreSQL cluster.
|
|
139
|
+
To get the PostgreSQL cluster ID use a [ClusterService.List] request.
|
|
140
|
+
"""
|
|
141
|
+
def __init__(
|
|
142
|
+
self,
|
|
143
|
+
*,
|
|
144
|
+
policy_id: builtins.str = ...,
|
|
145
|
+
cluster_id: builtins.str = ...,
|
|
146
|
+
) -> None: ...
|
|
147
|
+
def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id", "policy_id", b"policy_id"]) -> None: ...
|
|
148
|
+
|
|
149
|
+
global___DeleteBackupRetentionPolicyRequest = DeleteBackupRetentionPolicyRequest
|
|
150
|
+
|
|
151
|
+
@typing.final
|
|
152
|
+
class DeleteBackupRetentionPolicyResponse(google.protobuf.message.Message):
|
|
153
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
154
|
+
|
|
155
|
+
def __init__(
|
|
156
|
+
self,
|
|
157
|
+
) -> None: ...
|
|
158
|
+
|
|
159
|
+
global___DeleteBackupRetentionPolicyResponse = DeleteBackupRetentionPolicyResponse
|
|
@@ -0,0 +1,189 @@
|
|
|
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
|
+
from yandex.cloud.mdb.postgresql.v1 import backup_retention_policy_service_pb2 as yandex_dot_cloud_dot_mdb_dot_postgresql_dot_v1_dot_backup__retention__policy__service__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.68.1'
|
|
9
|
+
GRPC_VERSION = grpc.__version__
|
|
10
|
+
_version_not_supported = False
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from grpc._utilities import first_version_is_lower
|
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
15
|
+
except ImportError:
|
|
16
|
+
_version_not_supported = True
|
|
17
|
+
|
|
18
|
+
if _version_not_supported:
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
+
+ f' but the generated code in yandex/cloud/mdb/postgresql/v1/backup_retention_policy_service_pb2_grpc.py depends on'
|
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class BackupRetentionPolicyServiceStub(object):
|
|
29
|
+
"""A set of methods for managing PostgreSQL Cluster backup retention policies.
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
def __init__(self, channel):
|
|
33
|
+
"""Constructor.
|
|
34
|
+
|
|
35
|
+
Args:
|
|
36
|
+
channel: A grpc.Channel.
|
|
37
|
+
"""
|
|
38
|
+
self.List = channel.unary_unary(
|
|
39
|
+
'/yandex.cloud.mdb.postgresql.v1.BackupRetentionPolicyService/List',
|
|
40
|
+
request_serializer=yandex_dot_cloud_dot_mdb_dot_postgresql_dot_v1_dot_backup__retention__policy__service__pb2.ListBackupRetentionPoliciesRequest.SerializeToString,
|
|
41
|
+
response_deserializer=yandex_dot_cloud_dot_mdb_dot_postgresql_dot_v1_dot_backup__retention__policy__service__pb2.ListBackupRetentionPoliciesResponse.FromString,
|
|
42
|
+
_registered_method=True)
|
|
43
|
+
self.Create = channel.unary_unary(
|
|
44
|
+
'/yandex.cloud.mdb.postgresql.v1.BackupRetentionPolicyService/Create',
|
|
45
|
+
request_serializer=yandex_dot_cloud_dot_mdb_dot_postgresql_dot_v1_dot_backup__retention__policy__service__pb2.CreateBackupRetentionPolicyRequest.SerializeToString,
|
|
46
|
+
response_deserializer=yandex_dot_cloud_dot_mdb_dot_postgresql_dot_v1_dot_backup__retention__policy__service__pb2.CreateBackupRetentionPolicyResponse.FromString,
|
|
47
|
+
_registered_method=True)
|
|
48
|
+
self.Delete = channel.unary_unary(
|
|
49
|
+
'/yandex.cloud.mdb.postgresql.v1.BackupRetentionPolicyService/Delete',
|
|
50
|
+
request_serializer=yandex_dot_cloud_dot_mdb_dot_postgresql_dot_v1_dot_backup__retention__policy__service__pb2.DeleteBackupRetentionPolicyRequest.SerializeToString,
|
|
51
|
+
response_deserializer=yandex_dot_cloud_dot_mdb_dot_postgresql_dot_v1_dot_backup__retention__policy__service__pb2.DeleteBackupRetentionPolicyResponse.FromString,
|
|
52
|
+
_registered_method=True)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class BackupRetentionPolicyServiceServicer(object):
|
|
56
|
+
"""A set of methods for managing PostgreSQL Cluster backup retention policies.
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
def List(self, request, context):
|
|
60
|
+
"""List all retention policies.
|
|
61
|
+
"""
|
|
62
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
63
|
+
context.set_details('Method not implemented!')
|
|
64
|
+
raise NotImplementedError('Method not implemented!')
|
|
65
|
+
|
|
66
|
+
def Create(self, request, context):
|
|
67
|
+
"""Add a new retention policy.
|
|
68
|
+
"""
|
|
69
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
70
|
+
context.set_details('Method not implemented!')
|
|
71
|
+
raise NotImplementedError('Method not implemented!')
|
|
72
|
+
|
|
73
|
+
def Delete(self, request, context):
|
|
74
|
+
"""Delete retention policy.
|
|
75
|
+
"""
|
|
76
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
77
|
+
context.set_details('Method not implemented!')
|
|
78
|
+
raise NotImplementedError('Method not implemented!')
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def add_BackupRetentionPolicyServiceServicer_to_server(servicer, server):
|
|
82
|
+
rpc_method_handlers = {
|
|
83
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
84
|
+
servicer.List,
|
|
85
|
+
request_deserializer=yandex_dot_cloud_dot_mdb_dot_postgresql_dot_v1_dot_backup__retention__policy__service__pb2.ListBackupRetentionPoliciesRequest.FromString,
|
|
86
|
+
response_serializer=yandex_dot_cloud_dot_mdb_dot_postgresql_dot_v1_dot_backup__retention__policy__service__pb2.ListBackupRetentionPoliciesResponse.SerializeToString,
|
|
87
|
+
),
|
|
88
|
+
'Create': grpc.unary_unary_rpc_method_handler(
|
|
89
|
+
servicer.Create,
|
|
90
|
+
request_deserializer=yandex_dot_cloud_dot_mdb_dot_postgresql_dot_v1_dot_backup__retention__policy__service__pb2.CreateBackupRetentionPolicyRequest.FromString,
|
|
91
|
+
response_serializer=yandex_dot_cloud_dot_mdb_dot_postgresql_dot_v1_dot_backup__retention__policy__service__pb2.CreateBackupRetentionPolicyResponse.SerializeToString,
|
|
92
|
+
),
|
|
93
|
+
'Delete': grpc.unary_unary_rpc_method_handler(
|
|
94
|
+
servicer.Delete,
|
|
95
|
+
request_deserializer=yandex_dot_cloud_dot_mdb_dot_postgresql_dot_v1_dot_backup__retention__policy__service__pb2.DeleteBackupRetentionPolicyRequest.FromString,
|
|
96
|
+
response_serializer=yandex_dot_cloud_dot_mdb_dot_postgresql_dot_v1_dot_backup__retention__policy__service__pb2.DeleteBackupRetentionPolicyResponse.SerializeToString,
|
|
97
|
+
),
|
|
98
|
+
}
|
|
99
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
100
|
+
'yandex.cloud.mdb.postgresql.v1.BackupRetentionPolicyService', rpc_method_handlers)
|
|
101
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
102
|
+
server.add_registered_method_handlers('yandex.cloud.mdb.postgresql.v1.BackupRetentionPolicyService', rpc_method_handlers)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
# This class is part of an EXPERIMENTAL API.
|
|
106
|
+
class BackupRetentionPolicyService(object):
|
|
107
|
+
"""A set of methods for managing PostgreSQL Cluster backup retention policies.
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
@staticmethod
|
|
111
|
+
def List(request,
|
|
112
|
+
target,
|
|
113
|
+
options=(),
|
|
114
|
+
channel_credentials=None,
|
|
115
|
+
call_credentials=None,
|
|
116
|
+
insecure=False,
|
|
117
|
+
compression=None,
|
|
118
|
+
wait_for_ready=None,
|
|
119
|
+
timeout=None,
|
|
120
|
+
metadata=None):
|
|
121
|
+
return grpc.experimental.unary_unary(
|
|
122
|
+
request,
|
|
123
|
+
target,
|
|
124
|
+
'/yandex.cloud.mdb.postgresql.v1.BackupRetentionPolicyService/List',
|
|
125
|
+
yandex_dot_cloud_dot_mdb_dot_postgresql_dot_v1_dot_backup__retention__policy__service__pb2.ListBackupRetentionPoliciesRequest.SerializeToString,
|
|
126
|
+
yandex_dot_cloud_dot_mdb_dot_postgresql_dot_v1_dot_backup__retention__policy__service__pb2.ListBackupRetentionPoliciesResponse.FromString,
|
|
127
|
+
options,
|
|
128
|
+
channel_credentials,
|
|
129
|
+
insecure,
|
|
130
|
+
call_credentials,
|
|
131
|
+
compression,
|
|
132
|
+
wait_for_ready,
|
|
133
|
+
timeout,
|
|
134
|
+
metadata,
|
|
135
|
+
_registered_method=True)
|
|
136
|
+
|
|
137
|
+
@staticmethod
|
|
138
|
+
def Create(request,
|
|
139
|
+
target,
|
|
140
|
+
options=(),
|
|
141
|
+
channel_credentials=None,
|
|
142
|
+
call_credentials=None,
|
|
143
|
+
insecure=False,
|
|
144
|
+
compression=None,
|
|
145
|
+
wait_for_ready=None,
|
|
146
|
+
timeout=None,
|
|
147
|
+
metadata=None):
|
|
148
|
+
return grpc.experimental.unary_unary(
|
|
149
|
+
request,
|
|
150
|
+
target,
|
|
151
|
+
'/yandex.cloud.mdb.postgresql.v1.BackupRetentionPolicyService/Create',
|
|
152
|
+
yandex_dot_cloud_dot_mdb_dot_postgresql_dot_v1_dot_backup__retention__policy__service__pb2.CreateBackupRetentionPolicyRequest.SerializeToString,
|
|
153
|
+
yandex_dot_cloud_dot_mdb_dot_postgresql_dot_v1_dot_backup__retention__policy__service__pb2.CreateBackupRetentionPolicyResponse.FromString,
|
|
154
|
+
options,
|
|
155
|
+
channel_credentials,
|
|
156
|
+
insecure,
|
|
157
|
+
call_credentials,
|
|
158
|
+
compression,
|
|
159
|
+
wait_for_ready,
|
|
160
|
+
timeout,
|
|
161
|
+
metadata,
|
|
162
|
+
_registered_method=True)
|
|
163
|
+
|
|
164
|
+
@staticmethod
|
|
165
|
+
def Delete(request,
|
|
166
|
+
target,
|
|
167
|
+
options=(),
|
|
168
|
+
channel_credentials=None,
|
|
169
|
+
call_credentials=None,
|
|
170
|
+
insecure=False,
|
|
171
|
+
compression=None,
|
|
172
|
+
wait_for_ready=None,
|
|
173
|
+
timeout=None,
|
|
174
|
+
metadata=None):
|
|
175
|
+
return grpc.experimental.unary_unary(
|
|
176
|
+
request,
|
|
177
|
+
target,
|
|
178
|
+
'/yandex.cloud.mdb.postgresql.v1.BackupRetentionPolicyService/Delete',
|
|
179
|
+
yandex_dot_cloud_dot_mdb_dot_postgresql_dot_v1_dot_backup__retention__policy__service__pb2.DeleteBackupRetentionPolicyRequest.SerializeToString,
|
|
180
|
+
yandex_dot_cloud_dot_mdb_dot_postgresql_dot_v1_dot_backup__retention__policy__service__pb2.DeleteBackupRetentionPolicyResponse.FromString,
|
|
181
|
+
options,
|
|
182
|
+
channel_credentials,
|
|
183
|
+
insecure,
|
|
184
|
+
call_credentials,
|
|
185
|
+
compression,
|
|
186
|
+
wait_for_ready,
|
|
187
|
+
timeout,
|
|
188
|
+
metadata,
|
|
189
|
+
_registered_method=True)
|