yandexcloud 0.363.0__py3-none-any.whl → 0.364.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of yandexcloud might be problematic. Click here for more details.
- yandex/cloud/baremetal/v1alpha/rental_period_pb2.py +37 -0
- yandex/cloud/baremetal/v1alpha/rental_period_pb2.pyi +31 -0
- yandex/cloud/baremetal/v1alpha/rental_period_pb2_grpc.py +24 -0
- yandex/cloud/baremetal/v1alpha/rental_period_pb2_grpc.pyi +17 -0
- yandex/cloud/baremetal/v1alpha/rental_period_service_pb2.py +50 -0
- yandex/cloud/baremetal/v1alpha/rental_period_service_pb2.pyi +75 -0
- yandex/cloud/baremetal/v1alpha/rental_period_service_pb2_grpc.py +101 -0
- yandex/cloud/baremetal/v1alpha/rental_period_service_pb2_grpc.pyi +50 -0
- yandex/cloud/baremetal/v1alpha/server_service_pb2.pyi +8 -2
- yandex/cloud/mdb/postgresql/v1/user_pb2.py +27 -25
- yandex/cloud/mdb/postgresql/v1/user_pb2.pyi +27 -2
- yandex/cloud/mdb/postgresql/v1/user_service_pb2.py +33 -33
- yandex/cloud/mdb/postgresql/v1/user_service_pb2.pyi +5 -1
- yandex/cloud/organizationmanager/v1/idp/application/__init__.py +0 -0
- yandex/cloud/organizationmanager/v1/idp/application/oauth/__init__.py +0 -0
- yandex/cloud/organizationmanager/v1/idp/application/oauth/application_pb2.py +55 -0
- yandex/cloud/organizationmanager/v1/idp/application/oauth/application_pb2.pyi +206 -0
- yandex/cloud/organizationmanager/v1/idp/application/oauth/application_pb2_grpc.py +24 -0
- yandex/cloud/organizationmanager/v1/idp/application/oauth/application_pb2_grpc.pyi +17 -0
- yandex/cloud/organizationmanager/v1/idp/application/oauth/application_service_pb2.py +178 -0
- yandex/cloud/organizationmanager/v1/idp/application/oauth/application_service_pb2.pyi +641 -0
- yandex/cloud/organizationmanager/v1/idp/application/oauth/application_service_pb2_grpc.py +634 -0
- yandex/cloud/organizationmanager/v1/idp/application/oauth/application_service_pb2_grpc.pyi +302 -0
- yandex/cloud/organizationmanager/v1/mfa_enforcement_pb2.py +41 -0
- yandex/cloud/organizationmanager/v1/mfa_enforcement_pb2.pyi +108 -0
- yandex/cloud/organizationmanager/v1/mfa_enforcement_pb2_grpc.py +24 -0
- yandex/cloud/organizationmanager/v1/mfa_enforcement_pb2_grpc.pyi +17 -0
- yandex/cloud/organizationmanager/v1/mfa_enforcement_service_pb2.py +156 -0
- yandex/cloud/organizationmanager/v1/mfa_enforcement_service_pb2.pyi +462 -0
- yandex/cloud/organizationmanager/v1/mfa_enforcement_service_pb2_grpc.py +446 -0
- yandex/cloud/organizationmanager/v1/mfa_enforcement_service_pb2_grpc.pyi +185 -0
- yandex/cloud/ytsaurus/v1/cluster_pb2.py +4 -2
- yandex/cloud/ytsaurus/v1/cluster_pb2.pyi +19 -1
- yandexcloud/__init__.py +1 -1
- {yandexcloud-0.363.0.dist-info → yandexcloud-0.364.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.363.0.dist-info → yandexcloud-0.364.0.dist-info}/RECORD +40 -14
- {yandexcloud-0.363.0.dist-info → yandexcloud-0.364.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.363.0.dist-info → yandexcloud-0.364.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.363.0.dist-info → yandexcloud-0.364.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.363.0.dist-info → yandexcloud-0.364.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: yandex/cloud/baremetal/v1alpha/rental_period.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/baremetal/v1alpha/rental_period.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2yandex/cloud/baremetal/v1alpha/rental_period.proto\x12\x1eyandex.cloud.baremetal.v1alpha\"\x1a\n\x0cRentalPeriod\x12\n\n\x02id\x18\x01 \x01(\tBr\n\"yandex.cloud.api.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetalb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.baremetal.v1alpha.rental_period_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\"yandex.cloud.api.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetal'
|
|
35
|
+
_globals['_RENTALPERIOD']._serialized_start=86
|
|
36
|
+
_globals['_RENTALPERIOD']._serialized_end=112
|
|
37
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,31 @@
|
|
|
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 typing
|
|
10
|
+
|
|
11
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
12
|
+
|
|
13
|
+
@typing.final
|
|
14
|
+
class RentalPeriod(google.protobuf.message.Message):
|
|
15
|
+
"""A period of time for which a Bare Metal Server can be rented. e.g., 1 month, 3 months, 6 months,
|
|
16
|
+
a year.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
20
|
+
|
|
21
|
+
ID_FIELD_NUMBER: builtins.int
|
|
22
|
+
id: builtins.str
|
|
23
|
+
"""Rental period identifier."""
|
|
24
|
+
def __init__(
|
|
25
|
+
self,
|
|
26
|
+
*,
|
|
27
|
+
id: builtins.str = ...,
|
|
28
|
+
) -> None: ...
|
|
29
|
+
def ClearField(self, field_name: typing.Literal["id", b"id"]) -> None: ...
|
|
30
|
+
|
|
31
|
+
global___RentalPeriod = RentalPeriod
|
|
@@ -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/baremetal/v1alpha/rental_period_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,50 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: yandex/cloud/baremetal/v1alpha/rental_period_service.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/baremetal/v1alpha/rental_period_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.baremetal.v1alpha import rental_period_pb2 as yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_rental__period__pb2
|
|
27
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n:yandex/cloud/baremetal/v1alpha/rental_period_service.proto\x12\x1eyandex.cloud.baremetal.v1alpha\x1a\x1cgoogle/api/annotations.proto\x1a\x32yandex/cloud/baremetal/v1alpha/rental_period.proto\x1a\x1dyandex/cloud/validation.proto\"\x86\x01\n\x18ListRentalPeriodsRequest\x12\x32\n\x10\x63onfiguration_id\x18\x01 \x01(\tB\x18\xf2\xc7\x31\x0e[a-z][a-z0-9]*\x8a\xc8\x31\x02\x32\x30\x12\x1c\n\tpage_size\x18\x64 \x01(\x03\x42\t\xfa\xc7\x31\x05<=100\x12\x12\n\npage_token\x18\x65 \x01(\tJ\x04\x08\x02\x10\x64\"\x80\x01\n\x19ListRentalPeriodsResponse\x12\x44\n\x0erental_periods\x18\x01 \x03(\x0b\x32,.yandex.cloud.baremetal.v1alpha.RentalPeriod\x12\x17\n\x0fnext_page_token\x18\x64 \x01(\tJ\x04\x08\x02\x10\x64\x32\xbd\x01\n\x13RentalPeriodService\x12\xa5\x01\n\x04List\x12\x38.yandex.cloud.baremetal.v1alpha.ListRentalPeriodsRequest\x1a\x39.yandex.cloud.baremetal.v1alpha.ListRentalPeriodsResponse\"(\x82\xd3\xe4\x93\x02\"\x12 /baremetal/v1alpha/rentalPeriodsBr\n\"yandex.cloud.api.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetalb\x06proto3')
|
|
31
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.baremetal.v1alpha.rental_period_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.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetal'
|
|
38
|
+
_globals['_LISTRENTALPERIODSREQUEST'].fields_by_name['configuration_id']._loaded_options = None
|
|
39
|
+
_globals['_LISTRENTALPERIODSREQUEST'].fields_by_name['configuration_id']._serialized_options = b'\362\3071\016[a-z][a-z0-9]*\212\3101\00220'
|
|
40
|
+
_globals['_LISTRENTALPERIODSREQUEST'].fields_by_name['page_size']._loaded_options = None
|
|
41
|
+
_globals['_LISTRENTALPERIODSREQUEST'].fields_by_name['page_size']._serialized_options = b'\372\3071\005<=100'
|
|
42
|
+
_globals['_RENTALPERIODSERVICE'].methods_by_name['List']._loaded_options = None
|
|
43
|
+
_globals['_RENTALPERIODSERVICE'].methods_by_name['List']._serialized_options = b'\202\323\344\223\002\"\022 /baremetal/v1alpha/rentalPeriods'
|
|
44
|
+
_globals['_LISTRENTALPERIODSREQUEST']._serialized_start=208
|
|
45
|
+
_globals['_LISTRENTALPERIODSREQUEST']._serialized_end=342
|
|
46
|
+
_globals['_LISTRENTALPERIODSRESPONSE']._serialized_start=345
|
|
47
|
+
_globals['_LISTRENTALPERIODSRESPONSE']._serialized_end=473
|
|
48
|
+
_globals['_RENTALPERIODSERVICE']._serialized_start=476
|
|
49
|
+
_globals['_RENTALPERIODSERVICE']._serialized_end=665
|
|
50
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,75 @@
|
|
|
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.baremetal.v1alpha.rental_period_pb2
|
|
13
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
15
|
+
|
|
16
|
+
@typing.final
|
|
17
|
+
class ListRentalPeriodsRequest(google.protobuf.message.Message):
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
19
|
+
|
|
20
|
+
CONFIGURATION_ID_FIELD_NUMBER: builtins.int
|
|
21
|
+
PAGE_SIZE_FIELD_NUMBER: builtins.int
|
|
22
|
+
PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
23
|
+
configuration_id: builtins.str
|
|
24
|
+
"""ID of the Configuration resource to return a Rental Period for.
|
|
25
|
+
|
|
26
|
+
To get the configuration ID, use a [ConfigurationService.List] request.
|
|
27
|
+
"""
|
|
28
|
+
page_size: builtins.int
|
|
29
|
+
"""The maximum number of results per page to return. If the number of available
|
|
30
|
+
results is greater than `page_size`,
|
|
31
|
+
the service returns a [ListRentalPeriodsResponse.next_page_token]
|
|
32
|
+
that can be used to get the next page of results in subsequent list requests.
|
|
33
|
+
Default value is 20.
|
|
34
|
+
"""
|
|
35
|
+
page_token: builtins.str
|
|
36
|
+
"""Page token. To get the next page of results, set `page_token` to the
|
|
37
|
+
[ListRentalPeriodsResponse.next_page_token] returned by a previous list request.
|
|
38
|
+
"""
|
|
39
|
+
def __init__(
|
|
40
|
+
self,
|
|
41
|
+
*,
|
|
42
|
+
configuration_id: builtins.str = ...,
|
|
43
|
+
page_size: builtins.int = ...,
|
|
44
|
+
page_token: builtins.str = ...,
|
|
45
|
+
) -> None: ...
|
|
46
|
+
def ClearField(self, field_name: typing.Literal["configuration_id", b"configuration_id", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ...
|
|
47
|
+
|
|
48
|
+
global___ListRentalPeriodsRequest = ListRentalPeriodsRequest
|
|
49
|
+
|
|
50
|
+
@typing.final
|
|
51
|
+
class ListRentalPeriodsResponse(google.protobuf.message.Message):
|
|
52
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
53
|
+
|
|
54
|
+
RENTAL_PERIODS_FIELD_NUMBER: builtins.int
|
|
55
|
+
NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
56
|
+
next_page_token: builtins.str
|
|
57
|
+
"""Token for getting the next page of the list. If the number of results is greater than
|
|
58
|
+
[ListRentalPeriodsRequest.page_size], use `next_page_token` as the value
|
|
59
|
+
for the [ListRentalPeriodsResponse.page_token] parameter in the next list request.
|
|
60
|
+
|
|
61
|
+
Each subsequent page will have its own `next_page_token` to continue paging through the results.
|
|
62
|
+
"""
|
|
63
|
+
@property
|
|
64
|
+
def rental_periods(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.baremetal.v1alpha.rental_period_pb2.RentalPeriod]:
|
|
65
|
+
"""List of RentalPeriod resources."""
|
|
66
|
+
|
|
67
|
+
def __init__(
|
|
68
|
+
self,
|
|
69
|
+
*,
|
|
70
|
+
rental_periods: collections.abc.Iterable[yandex.cloud.baremetal.v1alpha.rental_period_pb2.RentalPeriod] | None = ...,
|
|
71
|
+
next_page_token: builtins.str = ...,
|
|
72
|
+
) -> None: ...
|
|
73
|
+
def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "rental_periods", b"rental_periods"]) -> None: ...
|
|
74
|
+
|
|
75
|
+
global___ListRentalPeriodsResponse = ListRentalPeriodsResponse
|
|
@@ -0,0 +1,101 @@
|
|
|
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.baremetal.v1alpha import rental_period_service_pb2 as yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_rental__period__service__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.70.0'
|
|
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/baremetal/v1alpha/rental_period_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 RentalPeriodServiceStub(object):
|
|
29
|
+
"""A set of methods to retrieve information about RentalPeriod resources.
|
|
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.baremetal.v1alpha.RentalPeriodService/List',
|
|
40
|
+
request_serializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_rental__period__service__pb2.ListRentalPeriodsRequest.SerializeToString,
|
|
41
|
+
response_deserializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_rental__period__service__pb2.ListRentalPeriodsResponse.FromString,
|
|
42
|
+
_registered_method=True)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class RentalPeriodServiceServicer(object):
|
|
46
|
+
"""A set of methods to retrieve information about RentalPeriod resources.
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
def List(self, request, context):
|
|
50
|
+
"""Retrieves the list of RentalPeriod resources.
|
|
51
|
+
"""
|
|
52
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
53
|
+
context.set_details('Method not implemented!')
|
|
54
|
+
raise NotImplementedError('Method not implemented!')
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def add_RentalPeriodServiceServicer_to_server(servicer, server):
|
|
58
|
+
rpc_method_handlers = {
|
|
59
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
60
|
+
servicer.List,
|
|
61
|
+
request_deserializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_rental__period__service__pb2.ListRentalPeriodsRequest.FromString,
|
|
62
|
+
response_serializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_rental__period__service__pb2.ListRentalPeriodsResponse.SerializeToString,
|
|
63
|
+
),
|
|
64
|
+
}
|
|
65
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
66
|
+
'yandex.cloud.baremetal.v1alpha.RentalPeriodService', rpc_method_handlers)
|
|
67
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
68
|
+
server.add_registered_method_handlers('yandex.cloud.baremetal.v1alpha.RentalPeriodService', rpc_method_handlers)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
# This class is part of an EXPERIMENTAL API.
|
|
72
|
+
class RentalPeriodService(object):
|
|
73
|
+
"""A set of methods to retrieve information about RentalPeriod resources.
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
@staticmethod
|
|
77
|
+
def List(request,
|
|
78
|
+
target,
|
|
79
|
+
options=(),
|
|
80
|
+
channel_credentials=None,
|
|
81
|
+
call_credentials=None,
|
|
82
|
+
insecure=False,
|
|
83
|
+
compression=None,
|
|
84
|
+
wait_for_ready=None,
|
|
85
|
+
timeout=None,
|
|
86
|
+
metadata=None):
|
|
87
|
+
return grpc.experimental.unary_unary(
|
|
88
|
+
request,
|
|
89
|
+
target,
|
|
90
|
+
'/yandex.cloud.baremetal.v1alpha.RentalPeriodService/List',
|
|
91
|
+
yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_rental__period__service__pb2.ListRentalPeriodsRequest.SerializeToString,
|
|
92
|
+
yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_rental__period__service__pb2.ListRentalPeriodsResponse.FromString,
|
|
93
|
+
options,
|
|
94
|
+
channel_credentials,
|
|
95
|
+
insecure,
|
|
96
|
+
call_credentials,
|
|
97
|
+
compression,
|
|
98
|
+
wait_for_ready,
|
|
99
|
+
timeout,
|
|
100
|
+
metadata,
|
|
101
|
+
_registered_method=True)
|
|
@@ -0,0 +1,50 @@
|
|
|
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.baremetal.v1alpha.rental_period_service_pb2
|
|
12
|
+
|
|
13
|
+
_T = typing.TypeVar("_T")
|
|
14
|
+
|
|
15
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
16
|
+
|
|
17
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
18
|
+
...
|
|
19
|
+
|
|
20
|
+
class RentalPeriodServiceStub:
|
|
21
|
+
"""A set of methods to retrieve information about RentalPeriod resources."""
|
|
22
|
+
|
|
23
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
24
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
25
|
+
yandex.cloud.baremetal.v1alpha.rental_period_service_pb2.ListRentalPeriodsRequest,
|
|
26
|
+
yandex.cloud.baremetal.v1alpha.rental_period_service_pb2.ListRentalPeriodsResponse,
|
|
27
|
+
]
|
|
28
|
+
"""Retrieves the list of RentalPeriod resources."""
|
|
29
|
+
|
|
30
|
+
class RentalPeriodServiceAsyncStub:
|
|
31
|
+
"""A set of methods to retrieve information about RentalPeriod resources."""
|
|
32
|
+
|
|
33
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
34
|
+
yandex.cloud.baremetal.v1alpha.rental_period_service_pb2.ListRentalPeriodsRequest,
|
|
35
|
+
yandex.cloud.baremetal.v1alpha.rental_period_service_pb2.ListRentalPeriodsResponse,
|
|
36
|
+
]
|
|
37
|
+
"""Retrieves the list of RentalPeriod resources."""
|
|
38
|
+
|
|
39
|
+
class RentalPeriodServiceServicer(metaclass=abc.ABCMeta):
|
|
40
|
+
"""A set of methods to retrieve information about RentalPeriod resources."""
|
|
41
|
+
|
|
42
|
+
@abc.abstractmethod
|
|
43
|
+
def List(
|
|
44
|
+
self,
|
|
45
|
+
request: yandex.cloud.baremetal.v1alpha.rental_period_service_pb2.ListRentalPeriodsRequest,
|
|
46
|
+
context: _ServicerContext,
|
|
47
|
+
) -> typing.Union[yandex.cloud.baremetal.v1alpha.rental_period_service_pb2.ListRentalPeriodsResponse, collections.abc.Awaitable[yandex.cloud.baremetal.v1alpha.rental_period_service_pb2.ListRentalPeriodsResponse]]:
|
|
48
|
+
"""Retrieves the list of RentalPeriod resources."""
|
|
49
|
+
|
|
50
|
+
def add_RentalPeriodServiceServicer_to_server(servicer: RentalPeriodServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -171,7 +171,10 @@ class CreateServerRequest(google.protobuf.message.Message):
|
|
|
171
171
|
To get the configuration ID, use a [ConfigurationService.List] request.
|
|
172
172
|
"""
|
|
173
173
|
rental_period_id: builtins.str
|
|
174
|
-
"""A period of time for which the server is rented.
|
|
174
|
+
"""A period of time for which the server is rented.
|
|
175
|
+
|
|
176
|
+
To get the rental period ID, use a [RentalPeriodService.List] request.
|
|
177
|
+
"""
|
|
175
178
|
@property
|
|
176
179
|
def network_interfaces(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___NetworkInterfaceSpec]:
|
|
177
180
|
"""Network configuration for the server. Specifies how the network interface is configured
|
|
@@ -630,7 +633,10 @@ class BatchCreateServersRequest(google.protobuf.message.Message):
|
|
|
630
633
|
To get the configuration ID, use a [ConfigurationService.List] request.
|
|
631
634
|
"""
|
|
632
635
|
rental_period_id: builtins.str
|
|
633
|
-
"""A period of time for which the server is rented.
|
|
636
|
+
"""A period of time for which the server is rented.
|
|
637
|
+
|
|
638
|
+
To get the rental period ID, use a [RentalPeriodService.List] request.
|
|
639
|
+
"""
|
|
634
640
|
count: builtins.int
|
|
635
641
|
"""Number of servers to create."""
|
|
636
642
|
@property
|
|
@@ -26,7 +26,7 @@ from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb
|
|
|
26
26
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)yandex/cloud/mdb/postgresql/v1/user.proto\x12\x1eyandex.cloud.mdb.postgresql.v1\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1dyandex/cloud/validation.proto\"\
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)yandex/cloud/mdb/postgresql/v1/user.proto\x12\x1eyandex.cloud.mdb.postgresql.v1\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1dyandex/cloud/validation.proto\"\xb6\x04\n\x04User\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\ncluster_id\x18\x02 \x01(\t\x12?\n\x0bpermissions\x18\x03 \x03(\x0b\x32*.yandex.cloud.mdb.postgresql.v1.Permission\x12\x12\n\nconn_limit\x18\x04 \x01(\x03\x12>\n\x08settings\x18\x05 \x01(\x0b\x32,.yandex.cloud.mdb.postgresql.v1.UserSettings\x12)\n\x05login\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12)\n\x06grants\x18\x07 \x03(\tB\x19\xf2\xc7\x31\r[a-zA-Z0-9_]*\x8a\xc8\x31\x04<=63\x12\x37\n\x13\x64\x65letion_protection\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12X\n\x18user_password_encryption\x18\t \x01(\x0e\x32\x36.yandex.cloud.mdb.postgresql.v1.UserPasswordEncryption\x12M\n\x12\x63onnection_manager\x18\n \x01(\x0b\x32\x31.yandex.cloud.mdb.postgresql.v1.ConnectionManager\x12?\n\x0b\x61uth_method\x18\x0b \x01(\x0e\x32*.yandex.cloud.mdb.postgresql.v1.AuthMethod\"#\n\nPermission\x12\x15\n\rdatabase_name\x18\x01 \x01(\t\"*\n\x11\x43onnectionManager\x12\x15\n\rconnection_id\x18\x01 \x01(\t\"\xf8\x04\n\x08UserSpec\x12.\n\x04name\x18\x01 \x01(\tB \xe8\xc7\x31\x01\xf2\xc7\x31\x10[a-zA-Z0-9_@.-]*\x8a\xc8\x31\x04<=63\x12\x1f\n\x08password\x18\x02 \x01(\tB\r\xe8\xc7\x31\x01\x8a\xc8\x31\x05\x38-128\x12?\n\x0bpermissions\x18\x03 \x03(\x0b\x32*.yandex.cloud.mdb.postgresql.v1.Permission\x12\x39\n\nconn_limit\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x08\xfa\xc7\x31\x04>=10\x12>\n\x08settings\x18\x05 \x01(\x0b\x32,.yandex.cloud.mdb.postgresql.v1.UserSettings\x12)\n\x05login\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12)\n\x06grants\x18\x07 \x03(\tB\x19\xf2\xc7\x31\r[a-zA-Z0-9_]*\x8a\xc8\x31\x04<=63\x12\x37\n\x13\x64\x65letion_protection\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12X\n\x18user_password_encryption\x18\t \x01(\x0e\x32\x36.yandex.cloud.mdb.postgresql.v1.UserPasswordEncryption\x12\x35\n\x11generate_password\x18\n \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12?\n\x0b\x61uth_method\x18\x0b \x01(\x0e\x32*.yandex.cloud.mdb.postgresql.v1.AuthMethod\"\x88\x03\n\x0fPGAuditSettings\x12O\n\x03log\x18\x01 \x03(\x0e\x32\x42.yandex.cloud.mdb.postgresql.v1.PGAuditSettings.PGAuditSettingsLog\"\xa3\x02\n\x12PGAuditSettingsLog\x12%\n!PG_AUDIT_SETTINGS_LOG_UNSPECIFIED\x10\x00\x12\x1e\n\x1aPG_AUDIT_SETTINGS_LOG_READ\x10\x01\x12\x1f\n\x1bPG_AUDIT_SETTINGS_LOG_WRITE\x10\x02\x12\"\n\x1ePG_AUDIT_SETTINGS_LOG_FUNCTION\x10\x03\x12\x1e\n\x1aPG_AUDIT_SETTINGS_LOG_ROLE\x10\x04\x12\x1d\n\x19PG_AUDIT_SETTINGS_LOG_DDL\x10\x05\x12\x1e\n\x1aPG_AUDIT_SETTINGS_LOG_MISC\x10\x06\x12\"\n\x1ePG_AUDIT_SETTINGS_LOG_MISC_SET\x10\x07\"\xcc\x0c\n\x0cUserSettings\x12h\n\x1d\x64\x65\x66\x61ult_transaction_isolation\x18\x01 \x01(\x0e\x32\x41.yandex.cloud.mdb.postgresql.v1.UserSettings.TransactionIsolation\x12\x31\n\x0clock_timeout\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12?\n\x1alog_min_duration_statement\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12Z\n\x12synchronous_commit\x18\x04 \x01(\x0e\x32>.yandex.cloud.mdb.postgresql.v1.UserSettings.SynchronousCommit\x12\x34\n\x0ftemp_file_limit\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12P\n\rlog_statement\x18\x06 \x01(\x0e\x32\x39.yandex.cloud.mdb.postgresql.v1.UserSettings.LogStatement\x12K\n\tpool_mode\x18\x07 \x01(\x0e\x32\x38.yandex.cloud.mdb.postgresql.v1.UserSettings.PoolingMode\x12?\n\x1bprepared_statements_pooling\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x34\n\x0f\x63\x61tchup_timeout\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x37\n\x12wal_sender_timeout\x18\n \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12Z\n#idle_in_transaction_session_timeout\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x10\xfa\xc7\x31\x0c\x30-2147483647\x12\x36\n\x11statement_timeout\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12@\n\x07pgaudit\x18\r \x01(\x0b\x32/.yandex.cloud.mdb.postgresql.v1.PGAuditSettings\"\xd6\x01\n\x11SynchronousCommit\x12\"\n\x1eSYNCHRONOUS_COMMIT_UNSPECIFIED\x10\x00\x12\x19\n\x15SYNCHRONOUS_COMMIT_ON\x10\x01\x12\x1a\n\x16SYNCHRONOUS_COMMIT_OFF\x10\x02\x12\x1c\n\x18SYNCHRONOUS_COMMIT_LOCAL\x10\x03\x12#\n\x1fSYNCHRONOUS_COMMIT_REMOTE_WRITE\x10\x04\x12#\n\x1fSYNCHRONOUS_COMMIT_REMOTE_APPLY\x10\x05\"\x8a\x01\n\x0cLogStatement\x12\x1d\n\x19LOG_STATEMENT_UNSPECIFIED\x10\x00\x12\x16\n\x12LOG_STATEMENT_NONE\x10\x01\x12\x15\n\x11LOG_STATEMENT_DDL\x10\x02\x12\x15\n\x11LOG_STATEMENT_MOD\x10\x03\x12\x15\n\x11LOG_STATEMENT_ALL\x10\x04\"\xe6\x01\n\x14TransactionIsolation\x12%\n!TRANSACTION_ISOLATION_UNSPECIFIED\x10\x00\x12*\n&TRANSACTION_ISOLATION_READ_UNCOMMITTED\x10\x01\x12(\n$TRANSACTION_ISOLATION_READ_COMMITTED\x10\x02\x12)\n%TRANSACTION_ISOLATION_REPEATABLE_READ\x10\x03\x12&\n\"TRANSACTION_ISOLATION_SERIALIZABLE\x10\x04\"X\n\x0bPoolingMode\x12\x1c\n\x18POOLING_MODE_UNSPECIFIED\x10\x00\x12\x0b\n\x07SESSION\x10\x01\x12\x0f\n\x0bTRANSACTION\x10\x02\x12\r\n\tSTATEMENT\x10\x03*X\n\nAuthMethod\x12\x1b\n\x17\x41UTH_METHOD_UNSPECIFIED\x10\x00\x12\x18\n\x14\x41UTH_METHOD_PASSWORD\x10\x01\x12\x13\n\x0f\x41UTH_METHOD_IAM\x10\x02*\x90\x01\n\x16UserPasswordEncryption\x12(\n$USER_PASSWORD_ENCRYPTION_UNSPECIFIED\x10\x00\x12 \n\x1cUSER_PASSWORD_ENCRYPTION_MD5\x10\x01\x12*\n&USER_PASSWORD_ENCRYPTION_SCRAM_SHA_256\x10\x02\x42s\n\"yandex.cloud.api.mdb.postgresql.v1ZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1;postgresqlb\x06proto3')
|
|
30
30
|
|
|
31
31
|
_globals = globals()
|
|
32
32
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -37,7 +37,7 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
37
37
|
_globals['_USER'].fields_by_name['grants']._loaded_options = None
|
|
38
38
|
_globals['_USER'].fields_by_name['grants']._serialized_options = b'\362\3071\r[a-zA-Z0-9_]*\212\3101\004<=63'
|
|
39
39
|
_globals['_USERSPEC'].fields_by_name['name']._loaded_options = None
|
|
40
|
-
_globals['_USERSPEC'].fields_by_name['name']._serialized_options = b'\350\3071\001\362\3071\
|
|
40
|
+
_globals['_USERSPEC'].fields_by_name['name']._serialized_options = b'\350\3071\001\362\3071\020[a-zA-Z0-9_@.-]*\212\3101\004<=63'
|
|
41
41
|
_globals['_USERSPEC'].fields_by_name['password']._loaded_options = None
|
|
42
42
|
_globals['_USERSPEC'].fields_by_name['password']._serialized_options = b'\350\3071\001\212\3101\0058-128'
|
|
43
43
|
_globals['_USERSPEC'].fields_by_name['conn_limit']._loaded_options = None
|
|
@@ -46,28 +46,30 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
46
46
|
_globals['_USERSPEC'].fields_by_name['grants']._serialized_options = b'\362\3071\r[a-zA-Z0-9_]*\212\3101\004<=63'
|
|
47
47
|
_globals['_USERSETTINGS'].fields_by_name['idle_in_transaction_session_timeout']._loaded_options = None
|
|
48
48
|
_globals['_USERSETTINGS'].fields_by_name['idle_in_transaction_session_timeout']._serialized_options = b'\372\3071\0140-2147483647'
|
|
49
|
-
_globals['
|
|
50
|
-
_globals['
|
|
49
|
+
_globals['_AUTHMETHOD']._serialized_start=3435
|
|
50
|
+
_globals['_AUTHMETHOD']._serialized_end=3523
|
|
51
|
+
_globals['_USERPASSWORDENCRYPTION']._serialized_start=3526
|
|
52
|
+
_globals['_USERPASSWORDENCRYPTION']._serialized_end=3670
|
|
51
53
|
_globals['_USER']._serialized_start=141
|
|
52
|
-
_globals['_USER']._serialized_end=
|
|
53
|
-
_globals['_PERMISSION']._serialized_start=
|
|
54
|
-
_globals['_PERMISSION']._serialized_end=
|
|
55
|
-
_globals['_CONNECTIONMANAGER']._serialized_start=
|
|
56
|
-
_globals['_CONNECTIONMANAGER']._serialized_end=
|
|
57
|
-
_globals['_USERSPEC']._serialized_start=
|
|
58
|
-
_globals['_USERSPEC']._serialized_end=
|
|
59
|
-
_globals['_PGAUDITSETTINGS']._serialized_start=
|
|
60
|
-
_globals['_PGAUDITSETTINGS']._serialized_end=
|
|
61
|
-
_globals['_PGAUDITSETTINGS_PGAUDITSETTINGSLOG']._serialized_start=
|
|
62
|
-
_globals['_PGAUDITSETTINGS_PGAUDITSETTINGSLOG']._serialized_end=
|
|
63
|
-
_globals['_USERSETTINGS']._serialized_start=
|
|
64
|
-
_globals['_USERSETTINGS']._serialized_end=
|
|
65
|
-
_globals['_USERSETTINGS_SYNCHRONOUSCOMMIT']._serialized_start=
|
|
66
|
-
_globals['_USERSETTINGS_SYNCHRONOUSCOMMIT']._serialized_end=
|
|
67
|
-
_globals['_USERSETTINGS_LOGSTATEMENT']._serialized_start=
|
|
68
|
-
_globals['_USERSETTINGS_LOGSTATEMENT']._serialized_end=
|
|
69
|
-
_globals['_USERSETTINGS_TRANSACTIONISOLATION']._serialized_start=
|
|
70
|
-
_globals['_USERSETTINGS_TRANSACTIONISOLATION']._serialized_end=
|
|
71
|
-
_globals['_USERSETTINGS_POOLINGMODE']._serialized_start=
|
|
72
|
-
_globals['_USERSETTINGS_POOLINGMODE']._serialized_end=
|
|
54
|
+
_globals['_USER']._serialized_end=707
|
|
55
|
+
_globals['_PERMISSION']._serialized_start=709
|
|
56
|
+
_globals['_PERMISSION']._serialized_end=744
|
|
57
|
+
_globals['_CONNECTIONMANAGER']._serialized_start=746
|
|
58
|
+
_globals['_CONNECTIONMANAGER']._serialized_end=788
|
|
59
|
+
_globals['_USERSPEC']._serialized_start=791
|
|
60
|
+
_globals['_USERSPEC']._serialized_end=1423
|
|
61
|
+
_globals['_PGAUDITSETTINGS']._serialized_start=1426
|
|
62
|
+
_globals['_PGAUDITSETTINGS']._serialized_end=1818
|
|
63
|
+
_globals['_PGAUDITSETTINGS_PGAUDITSETTINGSLOG']._serialized_start=1527
|
|
64
|
+
_globals['_PGAUDITSETTINGS_PGAUDITSETTINGSLOG']._serialized_end=1818
|
|
65
|
+
_globals['_USERSETTINGS']._serialized_start=1821
|
|
66
|
+
_globals['_USERSETTINGS']._serialized_end=3433
|
|
67
|
+
_globals['_USERSETTINGS_SYNCHRONOUSCOMMIT']._serialized_start=2755
|
|
68
|
+
_globals['_USERSETTINGS_SYNCHRONOUSCOMMIT']._serialized_end=2969
|
|
69
|
+
_globals['_USERSETTINGS_LOGSTATEMENT']._serialized_start=2972
|
|
70
|
+
_globals['_USERSETTINGS_LOGSTATEMENT']._serialized_end=3110
|
|
71
|
+
_globals['_USERSETTINGS_TRANSACTIONISOLATION']._serialized_start=3113
|
|
72
|
+
_globals['_USERSETTINGS_TRANSACTIONISOLATION']._serialized_end=3343
|
|
73
|
+
_globals['_USERSETTINGS_POOLINGMODE']._serialized_start=3345
|
|
74
|
+
_globals['_USERSETTINGS_POOLINGMODE']._serialized_end=3433
|
|
73
75
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -20,6 +20,23 @@ else:
|
|
|
20
20
|
|
|
21
21
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
22
22
|
|
|
23
|
+
class _AuthMethod:
|
|
24
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
25
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
26
|
+
|
|
27
|
+
class _AuthMethodEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AuthMethod.ValueType], builtins.type):
|
|
28
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
29
|
+
AUTH_METHOD_UNSPECIFIED: _AuthMethod.ValueType # 0
|
|
30
|
+
AUTH_METHOD_PASSWORD: _AuthMethod.ValueType # 1
|
|
31
|
+
AUTH_METHOD_IAM: _AuthMethod.ValueType # 2
|
|
32
|
+
|
|
33
|
+
class AuthMethod(_AuthMethod, metaclass=_AuthMethodEnumTypeWrapper): ...
|
|
34
|
+
|
|
35
|
+
AUTH_METHOD_UNSPECIFIED: AuthMethod.ValueType # 0
|
|
36
|
+
AUTH_METHOD_PASSWORD: AuthMethod.ValueType # 1
|
|
37
|
+
AUTH_METHOD_IAM: AuthMethod.ValueType # 2
|
|
38
|
+
global___AuthMethod = AuthMethod
|
|
39
|
+
|
|
23
40
|
class _UserPasswordEncryption:
|
|
24
41
|
ValueType = typing.NewType("ValueType", builtins.int)
|
|
25
42
|
V: typing_extensions.TypeAlias = ValueType
|
|
@@ -55,6 +72,7 @@ class User(google.protobuf.message.Message):
|
|
|
55
72
|
DELETION_PROTECTION_FIELD_NUMBER: builtins.int
|
|
56
73
|
USER_PASSWORD_ENCRYPTION_FIELD_NUMBER: builtins.int
|
|
57
74
|
CONNECTION_MANAGER_FIELD_NUMBER: builtins.int
|
|
75
|
+
AUTH_METHOD_FIELD_NUMBER: builtins.int
|
|
58
76
|
name: builtins.str
|
|
59
77
|
"""Name of the PostgreSQL user."""
|
|
60
78
|
cluster_id: builtins.str
|
|
@@ -73,6 +91,8 @@ class User(google.protobuf.message.Message):
|
|
|
73
91
|
Possible values are `` USER_PASSWORD_ENCRYPTION_MD5 `` or `` USER_PASSWORD_ENCRYPTION_SCRAM_SHA_256 ``.
|
|
74
92
|
The default is `` password_encryption `` setting for cluster.
|
|
75
93
|
"""
|
|
94
|
+
auth_method: global___AuthMethod.ValueType
|
|
95
|
+
"""Auth method for user"""
|
|
76
96
|
@property
|
|
77
97
|
def permissions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Permission]:
|
|
78
98
|
"""Set of permissions granted to the user to access specific databases."""
|
|
@@ -117,9 +137,10 @@ class User(google.protobuf.message.Message):
|
|
|
117
137
|
deletion_protection: google.protobuf.wrappers_pb2.BoolValue | None = ...,
|
|
118
138
|
user_password_encryption: global___UserPasswordEncryption.ValueType = ...,
|
|
119
139
|
connection_manager: global___ConnectionManager | None = ...,
|
|
140
|
+
auth_method: global___AuthMethod.ValueType = ...,
|
|
120
141
|
) -> None: ...
|
|
121
142
|
def HasField(self, field_name: typing.Literal["connection_manager", b"connection_manager", "deletion_protection", b"deletion_protection", "login", b"login", "settings", b"settings"]) -> builtins.bool: ...
|
|
122
|
-
def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id", "conn_limit", b"conn_limit", "connection_manager", b"connection_manager", "deletion_protection", b"deletion_protection", "grants", b"grants", "login", b"login", "name", b"name", "permissions", b"permissions", "settings", b"settings", "user_password_encryption", b"user_password_encryption"]) -> None: ...
|
|
143
|
+
def ClearField(self, field_name: typing.Literal["auth_method", b"auth_method", "cluster_id", b"cluster_id", "conn_limit", b"conn_limit", "connection_manager", b"connection_manager", "deletion_protection", b"deletion_protection", "grants", b"grants", "login", b"login", "name", b"name", "permissions", b"permissions", "settings", b"settings", "user_password_encryption", b"user_password_encryption"]) -> None: ...
|
|
123
144
|
|
|
124
145
|
global___User = User
|
|
125
146
|
|
|
@@ -169,6 +190,7 @@ class UserSpec(google.protobuf.message.Message):
|
|
|
169
190
|
DELETION_PROTECTION_FIELD_NUMBER: builtins.int
|
|
170
191
|
USER_PASSWORD_ENCRYPTION_FIELD_NUMBER: builtins.int
|
|
171
192
|
GENERATE_PASSWORD_FIELD_NUMBER: builtins.int
|
|
193
|
+
AUTH_METHOD_FIELD_NUMBER: builtins.int
|
|
172
194
|
name: builtins.str
|
|
173
195
|
"""Name of the PostgreSQL user."""
|
|
174
196
|
password: builtins.str
|
|
@@ -178,6 +200,8 @@ class UserSpec(google.protobuf.message.Message):
|
|
|
178
200
|
Possible values are `` USER_PASSWORD_ENCRYPTION_MD5 `` or `` USER_PASSWORD_ENCRYPTION_SCRAM_SHA_256 ``.
|
|
179
201
|
The default is `` password_encryption `` setting for cluster.
|
|
180
202
|
"""
|
|
203
|
+
auth_method: global___AuthMethod.ValueType
|
|
204
|
+
"""Auth method for user"""
|
|
181
205
|
@property
|
|
182
206
|
def permissions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Permission]:
|
|
183
207
|
"""Set of permissions to grant to the user to access specific databases."""
|
|
@@ -235,9 +259,10 @@ class UserSpec(google.protobuf.message.Message):
|
|
|
235
259
|
deletion_protection: google.protobuf.wrappers_pb2.BoolValue | None = ...,
|
|
236
260
|
user_password_encryption: global___UserPasswordEncryption.ValueType = ...,
|
|
237
261
|
generate_password: google.protobuf.wrappers_pb2.BoolValue | None = ...,
|
|
262
|
+
auth_method: global___AuthMethod.ValueType = ...,
|
|
238
263
|
) -> None: ...
|
|
239
264
|
def HasField(self, field_name: typing.Literal["conn_limit", b"conn_limit", "deletion_protection", b"deletion_protection", "generate_password", b"generate_password", "login", b"login", "settings", b"settings"]) -> builtins.bool: ...
|
|
240
|
-
def ClearField(self, field_name: typing.Literal["conn_limit", b"conn_limit", "deletion_protection", b"deletion_protection", "generate_password", b"generate_password", "grants", b"grants", "login", b"login", "name", b"name", "password", b"password", "permissions", b"permissions", "settings", b"settings", "user_password_encryption", b"user_password_encryption"]) -> None: ...
|
|
265
|
+
def ClearField(self, field_name: typing.Literal["auth_method", b"auth_method", "conn_limit", b"conn_limit", "deletion_protection", b"deletion_protection", "generate_password", b"generate_password", "grants", b"grants", "login", b"login", "name", b"name", "password", b"password", "permissions", b"permissions", "settings", b"settings", "user_password_encryption", b"user_password_encryption"]) -> None: ...
|
|
241
266
|
|
|
242
267
|
global___UserSpec = UserSpec
|
|
243
268
|
|