yandexcloud 0.353.0__py3-none-any.whl → 0.355.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/ai/assistants/v1/common_pb2.py +58 -30
- yandex/cloud/ai/assistants/v1/common_pb2.pyi +178 -3
- yandex/cloud/airflow/v1/cluster_pb2.py +12 -8
- yandex/cloud/airflow/v1/cluster_pb2.pyi +4 -0
- yandex/cloud/apploadbalancer/v1/virtual_host_pb2.py +32 -32
- yandex/cloud/apploadbalancer/v1/virtual_host_pb2.pyi +5 -1
- yandex/cloud/apploadbalancer/v1/virtual_host_service_pb2.py +6 -6
- yandex/cloud/apploadbalancer/v1/virtual_host_service_pb2.pyi +5 -1
- yandex/cloud/backup/v1/resource_pb2.py +2 -2
- yandex/cloud/backup/v1/resource_pb2.pyi +8 -0
- yandex/cloud/baremetal/v1alpha/configuration_service_pb2.py +12 -8
- yandex/cloud/baremetal/v1alpha/configuration_service_pb2.pyi +16 -2
- yandex/cloud/baremetal/v1alpha/disk_pb2.py +2 -2
- yandex/cloud/baremetal/v1alpha/disk_pb2.pyi +8 -4
- yandex/cloud/compute/v1/maintenance_service_pb2.py +47 -0
- yandex/cloud/compute/v1/maintenance_service_pb2.pyi +8 -0
- yandex/cloud/compute/v1/maintenance_service_pb2_grpc.py +190 -0
- yandex/cloud/compute/v1/maintenance_service_pb2_grpc.pyi +91 -0
- yandex/cloud/compute/v1/reserved_instance_pool_pb2.py +8 -4
- yandex/cloud/compute/v1/reserved_instance_pool_pb2.pyi +69 -2
- yandex/cloud/compute/v1/reserved_instance_pool_service_pb2.py +44 -20
- yandex/cloud/compute/v1/reserved_instance_pool_service_pb2.pyi +138 -2
- yandex/cloud/compute/v1/reserved_instance_pool_service_pb2_grpc.py +88 -0
- yandex/cloud/compute/v1/reserved_instance_pool_service_pb2_grpc.pyi +40 -0
- yandex/cloud/connectionmanager/v1/connection_service_pb2_grpc.py +18 -9
- yandex/cloud/connectionmanager/v1/connection_service_pb2_grpc.pyi +30 -6
- yandex/cloud/datatransfer/v1/endpoint_service_pb2.pyi +2 -4
- yandex/cloud/datatransfer/v1/endpoint_service_pb2_grpc.py +3 -6
- yandex/cloud/datatransfer/v1/endpoint_service_pb2_grpc.pyi +3 -9
- yandex/cloud/datatransfer/v1/transfer_service_pb2.pyi +2 -4
- yandex/cloud/datatransfer/v1/transfer_service_pb2_grpc.py +6 -3
- yandex/cloud/datatransfer/v1/transfer_service_pb2_grpc.pyi +6 -0
- yandex/cloud/iam/v1/oauth_client_pb2.py +39 -0
- yandex/cloud/iam/v1/oauth_client_pb2.pyi +85 -0
- yandex/cloud/iam/v1/oauth_client_pb2_grpc.py +24 -0
- yandex/cloud/iam/v1/oauth_client_pb2_grpc.pyi +17 -0
- yandex/cloud/iam/v1/oauth_client_secret_pb2.py +38 -0
- yandex/cloud/iam/v1/oauth_client_secret_pb2.pyi +49 -0
- yandex/cloud/iam/v1/oauth_client_secret_pb2_grpc.py +24 -0
- yandex/cloud/iam/v1/oauth_client_secret_pb2_grpc.pyi +17 -0
- yandex/cloud/iam/v1/oauth_client_secret_service_pb2.py +80 -0
- yandex/cloud/iam/v1/oauth_client_secret_service_pb2.pyi +188 -0
- yandex/cloud/iam/v1/oauth_client_secret_service_pb2_grpc.py +237 -0
- yandex/cloud/iam/v1/oauth_client_secret_service_pb2_grpc.pyi +121 -0
- yandex/cloud/iam/v1/oauth_client_service_pb2.py +99 -0
- yandex/cloud/iam/v1/oauth_client_service_pb2.pyi +257 -0
- yandex/cloud/iam/v1/oauth_client_service_pb2_grpc.py +281 -0
- yandex/cloud/iam/v1/oauth_client_service_pb2_grpc.pyi +141 -0
- yandex/cloud/iot/broker/v1/broker_service_pb2.py +50 -50
- yandex/cloud/iot/devices/v1/device_service_pb2.py +61 -61
- yandex/cloud/iot/devices/v1/registry_service_pb2.py +82 -82
- yandex/cloud/maintenance/__init__.py +0 -0
- yandex/cloud/maintenance/v2/__init__.py +0 -0
- yandex/cloud/maintenance/v2/common_pb2.py +73 -0
- yandex/cloud/maintenance/v2/common_pb2.pyi +324 -0
- yandex/cloud/maintenance/v2/common_pb2_grpc.py +24 -0
- yandex/cloud/maintenance/v2/common_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/clickhouse/v1/config/clickhouse_pb2.py +190 -150
- yandex/cloud/mdb/clickhouse/v1/config/clickhouse_pb2.pyi +1712 -1025
- yandex/cloud/mdb/clickhouse/v1/user_pb2.py +98 -86
- yandex/cloud/mdb/clickhouse/v1/user_pb2.pyi +1248 -792
- yandex/cloud/mdb/opensearch/v1/backup_pb2.py +14 -14
- yandex/cloud/mdb/opensearch/v1/backup_pb2.pyi +13 -1
- yandex/cloud/metastore/v1/cluster_pb2.py +18 -16
- yandex/cloud/metastore/v1/cluster_pb2.pyi +31 -1
- yandex/cloud/organizationmanager/v1/group_pb2.py +3 -3
- yandex/cloud/organizationmanager/v1/group_pb2.pyi +9 -1
- yandex/cloud/organizationmanager/v1/group_service_pb2.py +95 -37
- yandex/cloud/organizationmanager/v1/group_service_pb2.pyi +276 -0
- yandex/cloud/organizationmanager/v1/group_service_pb2_grpc.py +220 -0
- yandex/cloud/organizationmanager/v1/group_service_pb2_grpc.pyi +100 -0
- yandex/cloud/searchapi/v2/gen_search_service_pb2.py +10 -10
- yandex/cloud/searchapi/v2/gen_search_service_pb2.pyi +7 -1
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_pb2.py +50 -18
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_pb2.pyi +241 -2
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service_pb2.py +18 -18
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service_pb2.pyi +22 -2
- yandex/cloud/trino/v1/cluster_service_pb2.py +36 -36
- yandex/cloud/trino/v1/cluster_service_pb2.pyi +14 -2
- yandexcloud/__init__.py +1 -1
- {yandexcloud-0.353.0.dist-info → yandexcloud-0.355.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.353.0.dist-info → yandexcloud-0.355.0.dist-info}/RECORD +86 -60
- {yandexcloud-0.353.0.dist-info → yandexcloud-0.355.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.353.0.dist-info → yandexcloud-0.355.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.353.0.dist-info → yandexcloud-0.355.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.353.0.dist-info → yandexcloud-0.355.0.dist-info}/top_level.txt +0 -0
|
@@ -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/iam/v1/oauth_client_secret_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,80 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: yandex/cloud/iam/v1/oauth_client_secret_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/iam/v1/oauth_client_secret_service.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from yandex.cloud.iam.v1 import oauth_client_secret_pb2 as yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__pb2
|
|
26
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
27
|
+
from yandex.cloud.api import operation_pb2 as yandex_dot_cloud_dot_api_dot_operation__pb2
|
|
28
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
29
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5yandex/cloud/iam/v1/oauth_client_secret_service.proto\x12\x13yandex.cloud.iam.v1\x1a-yandex/cloud/iam/v1/oauth_client_secret.proto\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\"K\n\x1bGetOAuthClientSecretRequest\x12,\n\x16oauth_client_secret_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"\x85\x01\n\x1dListOAuthClientSecretsRequest\x12\x1d\n\tpage_size\x18\x01 \x01(\x03\x42\n\xfa\xc7\x31\x06\x30-1000\x12\x1e\n\npage_token\x18\x02 \x01(\tB\n\x8a\xc8\x31\x06<=2000\x12%\n\x0foauth_client_id\x18\x03 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"\x7f\n\x1eListOAuthClientSecretsResponse\x12\x44\n\x14oauth_client_secrets\x18\x01 \x03(\x0b\x32&.yandex.cloud.iam.v1.OAuthClientSecret\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"g\n\x1e\x43reateOAuthClientSecretRequest\x12%\n\x0foauth_client_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x1e\n\x0b\x64\x65scription\x18\x02 \x01(\tB\t\x8a\xc8\x31\x05<=256\"A\n\x1f\x43reateOAuthClientSecretMetadata\x12\x1e\n\x16oauth_client_secret_id\x18\x01 \x01(\t\"|\n\x1f\x43reateOAuthClientSecretResponse\x12\x43\n\x13oauth_client_secret\x18\x01 \x01(\x0b\x32&.yandex.cloud.iam.v1.OAuthClientSecret\x12\x14\n\x0csecret_value\x18\x02 \x01(\t\"N\n\x1e\x44\x65leteOAuthClientSecretRequest\x12,\n\x16oauth_client_secret_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"A\n\x1f\x44\x65leteOAuthClientSecretMetadata\x12\x1e\n\x16oauth_client_secret_id\x18\x01 \x01(\t2\xfb\x05\n\x18OAuthClientSecretService\x12\x9c\x01\n\x03Get\x12\x30.yandex.cloud.iam.v1.GetOAuthClientSecretRequest\x1a&.yandex.cloud.iam.v1.OAuthClientSecret\";\x82\xd3\xe4\x93\x02\x35\x12\x33/iam/v1/oauthClientSecrets/{oauth_client_secret_id}\x12\x93\x01\n\x04List\x12\x32.yandex.cloud.iam.v1.ListOAuthClientSecretsRequest\x1a\x33.yandex.cloud.iam.v1.ListOAuthClientSecretsResponse\"\"\x82\xd3\xe4\x93\x02\x1c\x12\x1a/iam/v1/oauthClientSecrets\x12\xcd\x01\n\x06\x43reate\x12\x33.yandex.cloud.iam.v1.CreateOAuthClientSecretRequest\x1a!.yandex.cloud.operation.Operation\"k\xb2\xd2*B\n\x1f\x43reateOAuthClientSecretMetadata\x12\x1f\x43reateOAuthClientSecretResponse\x82\xd3\xe4\x93\x02\x1f\"\x1a/iam/v1/oauthClientSecrets:\x01*\x12\xd9\x01\n\x06\x44\x65lete\x12\x33.yandex.cloud.iam.v1.DeleteOAuthClientSecretRequest\x1a!.yandex.cloud.operation.Operation\"w\xb2\xd2*8\n\x1f\x44\x65leteOAuthClientSecretMetadata\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02\x35*3/iam/v1/oauthClientSecrets/{oauth_client_secret_id}BV\n\x17yandex.cloud.api.iam.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1;iamb\x06proto3')
|
|
33
|
+
|
|
34
|
+
_globals = globals()
|
|
35
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
36
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.iam.v1.oauth_client_secret_service_pb2', _globals)
|
|
37
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
38
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
39
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\027yandex.cloud.api.iam.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1;iam'
|
|
40
|
+
_globals['_GETOAUTHCLIENTSECRETREQUEST'].fields_by_name['oauth_client_secret_id']._loaded_options = None
|
|
41
|
+
_globals['_GETOAUTHCLIENTSECRETREQUEST'].fields_by_name['oauth_client_secret_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
42
|
+
_globals['_LISTOAUTHCLIENTSECRETSREQUEST'].fields_by_name['page_size']._loaded_options = None
|
|
43
|
+
_globals['_LISTOAUTHCLIENTSECRETSREQUEST'].fields_by_name['page_size']._serialized_options = b'\372\3071\0060-1000'
|
|
44
|
+
_globals['_LISTOAUTHCLIENTSECRETSREQUEST'].fields_by_name['page_token']._loaded_options = None
|
|
45
|
+
_globals['_LISTOAUTHCLIENTSECRETSREQUEST'].fields_by_name['page_token']._serialized_options = b'\212\3101\006<=2000'
|
|
46
|
+
_globals['_LISTOAUTHCLIENTSECRETSREQUEST'].fields_by_name['oauth_client_id']._loaded_options = None
|
|
47
|
+
_globals['_LISTOAUTHCLIENTSECRETSREQUEST'].fields_by_name['oauth_client_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
48
|
+
_globals['_CREATEOAUTHCLIENTSECRETREQUEST'].fields_by_name['oauth_client_id']._loaded_options = None
|
|
49
|
+
_globals['_CREATEOAUTHCLIENTSECRETREQUEST'].fields_by_name['oauth_client_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
50
|
+
_globals['_CREATEOAUTHCLIENTSECRETREQUEST'].fields_by_name['description']._loaded_options = None
|
|
51
|
+
_globals['_CREATEOAUTHCLIENTSECRETREQUEST'].fields_by_name['description']._serialized_options = b'\212\3101\005<=256'
|
|
52
|
+
_globals['_DELETEOAUTHCLIENTSECRETREQUEST'].fields_by_name['oauth_client_secret_id']._loaded_options = None
|
|
53
|
+
_globals['_DELETEOAUTHCLIENTSECRETREQUEST'].fields_by_name['oauth_client_secret_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
54
|
+
_globals['_OAUTHCLIENTSECRETSERVICE'].methods_by_name['Get']._loaded_options = None
|
|
55
|
+
_globals['_OAUTHCLIENTSECRETSERVICE'].methods_by_name['Get']._serialized_options = b'\202\323\344\223\0025\0223/iam/v1/oauthClientSecrets/{oauth_client_secret_id}'
|
|
56
|
+
_globals['_OAUTHCLIENTSECRETSERVICE'].methods_by_name['List']._loaded_options = None
|
|
57
|
+
_globals['_OAUTHCLIENTSECRETSERVICE'].methods_by_name['List']._serialized_options = b'\202\323\344\223\002\034\022\032/iam/v1/oauthClientSecrets'
|
|
58
|
+
_globals['_OAUTHCLIENTSECRETSERVICE'].methods_by_name['Create']._loaded_options = None
|
|
59
|
+
_globals['_OAUTHCLIENTSECRETSERVICE'].methods_by_name['Create']._serialized_options = b'\262\322*B\n\037CreateOAuthClientSecretMetadata\022\037CreateOAuthClientSecretResponse\202\323\344\223\002\037\"\032/iam/v1/oauthClientSecrets:\001*'
|
|
60
|
+
_globals['_OAUTHCLIENTSECRETSERVICE'].methods_by_name['Delete']._loaded_options = None
|
|
61
|
+
_globals['_OAUTHCLIENTSECRETSERVICE'].methods_by_name['Delete']._serialized_options = b'\262\322*8\n\037DeleteOAuthClientSecretMetadata\022\025google.protobuf.Empty\202\323\344\223\0025*3/iam/v1/oauthClientSecrets/{oauth_client_secret_id}'
|
|
62
|
+
_globals['_GETOAUTHCLIENTSECRETREQUEST']._serialized_start=260
|
|
63
|
+
_globals['_GETOAUTHCLIENTSECRETREQUEST']._serialized_end=335
|
|
64
|
+
_globals['_LISTOAUTHCLIENTSECRETSREQUEST']._serialized_start=338
|
|
65
|
+
_globals['_LISTOAUTHCLIENTSECRETSREQUEST']._serialized_end=471
|
|
66
|
+
_globals['_LISTOAUTHCLIENTSECRETSRESPONSE']._serialized_start=473
|
|
67
|
+
_globals['_LISTOAUTHCLIENTSECRETSRESPONSE']._serialized_end=600
|
|
68
|
+
_globals['_CREATEOAUTHCLIENTSECRETREQUEST']._serialized_start=602
|
|
69
|
+
_globals['_CREATEOAUTHCLIENTSECRETREQUEST']._serialized_end=705
|
|
70
|
+
_globals['_CREATEOAUTHCLIENTSECRETMETADATA']._serialized_start=707
|
|
71
|
+
_globals['_CREATEOAUTHCLIENTSECRETMETADATA']._serialized_end=772
|
|
72
|
+
_globals['_CREATEOAUTHCLIENTSECRETRESPONSE']._serialized_start=774
|
|
73
|
+
_globals['_CREATEOAUTHCLIENTSECRETRESPONSE']._serialized_end=898
|
|
74
|
+
_globals['_DELETEOAUTHCLIENTSECRETREQUEST']._serialized_start=900
|
|
75
|
+
_globals['_DELETEOAUTHCLIENTSECRETREQUEST']._serialized_end=978
|
|
76
|
+
_globals['_DELETEOAUTHCLIENTSECRETMETADATA']._serialized_start=980
|
|
77
|
+
_globals['_DELETEOAUTHCLIENTSECRETMETADATA']._serialized_end=1045
|
|
78
|
+
_globals['_OAUTHCLIENTSECRETSERVICE']._serialized_start=1048
|
|
79
|
+
_globals['_OAUTHCLIENTSECRETSERVICE']._serialized_end=1811
|
|
80
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,188 @@
|
|
|
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.iam.v1.oauth_client_secret_pb2
|
|
13
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
15
|
+
|
|
16
|
+
@typing.final
|
|
17
|
+
class GetOAuthClientSecretRequest(google.protobuf.message.Message):
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
19
|
+
|
|
20
|
+
OAUTH_CLIENT_SECRET_ID_FIELD_NUMBER: builtins.int
|
|
21
|
+
oauth_client_secret_id: builtins.str
|
|
22
|
+
"""ID of the OAuthClientSecret resource to return.
|
|
23
|
+
To get the OAuthClientSecret ID, use a [OAuthClientSecretService.List] request.
|
|
24
|
+
"""
|
|
25
|
+
def __init__(
|
|
26
|
+
self,
|
|
27
|
+
*,
|
|
28
|
+
oauth_client_secret_id: builtins.str = ...,
|
|
29
|
+
) -> None: ...
|
|
30
|
+
def ClearField(self, field_name: typing.Literal["oauth_client_secret_id", b"oauth_client_secret_id"]) -> None: ...
|
|
31
|
+
|
|
32
|
+
global___GetOAuthClientSecretRequest = GetOAuthClientSecretRequest
|
|
33
|
+
|
|
34
|
+
@typing.final
|
|
35
|
+
class ListOAuthClientSecretsRequest(google.protobuf.message.Message):
|
|
36
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
37
|
+
|
|
38
|
+
PAGE_SIZE_FIELD_NUMBER: builtins.int
|
|
39
|
+
PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
40
|
+
OAUTH_CLIENT_ID_FIELD_NUMBER: builtins.int
|
|
41
|
+
page_size: builtins.int
|
|
42
|
+
"""The maximum number of results per page to return. If the number of available
|
|
43
|
+
results is larger than [page_size],
|
|
44
|
+
the service returns a [ListOAuthClientSecretsResponse.next_page_token]
|
|
45
|
+
that can be used to get the next page of results in subsequent list requests.
|
|
46
|
+
"""
|
|
47
|
+
page_token: builtins.str
|
|
48
|
+
"""Page token. To get the next page of results, set [page_token] to the
|
|
49
|
+
[ListOAuthClientSecretsResponse.next_page_token] returned by a previous list request.
|
|
50
|
+
"""
|
|
51
|
+
oauth_client_id: builtins.str
|
|
52
|
+
"""ID of the OAuthClient resource to list OAuthClientSecret resources for.
|
|
53
|
+
To get the oauth client ID, use a [yandex.cloud.iam.v1.OAuthClientService.List] request.
|
|
54
|
+
"""
|
|
55
|
+
def __init__(
|
|
56
|
+
self,
|
|
57
|
+
*,
|
|
58
|
+
page_size: builtins.int = ...,
|
|
59
|
+
page_token: builtins.str = ...,
|
|
60
|
+
oauth_client_id: builtins.str = ...,
|
|
61
|
+
) -> None: ...
|
|
62
|
+
def ClearField(self, field_name: typing.Literal["oauth_client_id", b"oauth_client_id", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ...
|
|
63
|
+
|
|
64
|
+
global___ListOAuthClientSecretsRequest = ListOAuthClientSecretsRequest
|
|
65
|
+
|
|
66
|
+
@typing.final
|
|
67
|
+
class ListOAuthClientSecretsResponse(google.protobuf.message.Message):
|
|
68
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
69
|
+
|
|
70
|
+
OAUTH_CLIENT_SECRETS_FIELD_NUMBER: builtins.int
|
|
71
|
+
NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
72
|
+
next_page_token: builtins.str
|
|
73
|
+
"""This token allows you to get the next page of results for list requests. If the number of results
|
|
74
|
+
is larger than [ListOAuthClientSecretsRequest.page_size], use
|
|
75
|
+
the [next_page_token] as the value
|
|
76
|
+
for the [ListOAuthClientSecretsRequest.page_token] query parameter
|
|
77
|
+
in the next list request. Each subsequent list request will have its own
|
|
78
|
+
[next_page_token] to continue paging through the results.
|
|
79
|
+
"""
|
|
80
|
+
@property
|
|
81
|
+
def oauth_client_secrets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.iam.v1.oauth_client_secret_pb2.OAuthClientSecret]:
|
|
82
|
+
"""List of OAuthClientSecret resources of the specified OAuthClient resource"""
|
|
83
|
+
|
|
84
|
+
def __init__(
|
|
85
|
+
self,
|
|
86
|
+
*,
|
|
87
|
+
oauth_client_secrets: collections.abc.Iterable[yandex.cloud.iam.v1.oauth_client_secret_pb2.OAuthClientSecret] | None = ...,
|
|
88
|
+
next_page_token: builtins.str = ...,
|
|
89
|
+
) -> None: ...
|
|
90
|
+
def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "oauth_client_secrets", b"oauth_client_secrets"]) -> None: ...
|
|
91
|
+
|
|
92
|
+
global___ListOAuthClientSecretsResponse = ListOAuthClientSecretsResponse
|
|
93
|
+
|
|
94
|
+
@typing.final
|
|
95
|
+
class CreateOAuthClientSecretRequest(google.protobuf.message.Message):
|
|
96
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
97
|
+
|
|
98
|
+
OAUTH_CLIENT_ID_FIELD_NUMBER: builtins.int
|
|
99
|
+
DESCRIPTION_FIELD_NUMBER: builtins.int
|
|
100
|
+
oauth_client_id: builtins.str
|
|
101
|
+
"""ID of the OAuthClient resource to create OAuthClientSecret resource for.
|
|
102
|
+
To get the oauth client ID, use a [yandex.cloud.iam.v1.OAuthClientService.List] request.
|
|
103
|
+
"""
|
|
104
|
+
description: builtins.str
|
|
105
|
+
"""Description of the OAuthClientResource."""
|
|
106
|
+
def __init__(
|
|
107
|
+
self,
|
|
108
|
+
*,
|
|
109
|
+
oauth_client_id: builtins.str = ...,
|
|
110
|
+
description: builtins.str = ...,
|
|
111
|
+
) -> None: ...
|
|
112
|
+
def ClearField(self, field_name: typing.Literal["description", b"description", "oauth_client_id", b"oauth_client_id"]) -> None: ...
|
|
113
|
+
|
|
114
|
+
global___CreateOAuthClientSecretRequest = CreateOAuthClientSecretRequest
|
|
115
|
+
|
|
116
|
+
@typing.final
|
|
117
|
+
class CreateOAuthClientSecretMetadata(google.protobuf.message.Message):
|
|
118
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
119
|
+
|
|
120
|
+
OAUTH_CLIENT_SECRET_ID_FIELD_NUMBER: builtins.int
|
|
121
|
+
oauth_client_secret_id: builtins.str
|
|
122
|
+
"""ID of the OAuthClientSecretResource that is being created."""
|
|
123
|
+
def __init__(
|
|
124
|
+
self,
|
|
125
|
+
*,
|
|
126
|
+
oauth_client_secret_id: builtins.str = ...,
|
|
127
|
+
) -> None: ...
|
|
128
|
+
def ClearField(self, field_name: typing.Literal["oauth_client_secret_id", b"oauth_client_secret_id"]) -> None: ...
|
|
129
|
+
|
|
130
|
+
global___CreateOAuthClientSecretMetadata = CreateOAuthClientSecretMetadata
|
|
131
|
+
|
|
132
|
+
@typing.final
|
|
133
|
+
class CreateOAuthClientSecretResponse(google.protobuf.message.Message):
|
|
134
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
135
|
+
|
|
136
|
+
OAUTH_CLIENT_SECRET_FIELD_NUMBER: builtins.int
|
|
137
|
+
SECRET_VALUE_FIELD_NUMBER: builtins.int
|
|
138
|
+
secret_value: builtins.str
|
|
139
|
+
"""The secret value of OAuthClientSecret resource.
|
|
140
|
+
This value can be used for lient secret based authentication.
|
|
141
|
+
This value must be stored securely.
|
|
142
|
+
"""
|
|
143
|
+
@property
|
|
144
|
+
def oauth_client_secret(self) -> yandex.cloud.iam.v1.oauth_client_secret_pb2.OAuthClientSecret:
|
|
145
|
+
"""OAuthClientSecret resource."""
|
|
146
|
+
|
|
147
|
+
def __init__(
|
|
148
|
+
self,
|
|
149
|
+
*,
|
|
150
|
+
oauth_client_secret: yandex.cloud.iam.v1.oauth_client_secret_pb2.OAuthClientSecret | None = ...,
|
|
151
|
+
secret_value: builtins.str = ...,
|
|
152
|
+
) -> None: ...
|
|
153
|
+
def HasField(self, field_name: typing.Literal["oauth_client_secret", b"oauth_client_secret"]) -> builtins.bool: ...
|
|
154
|
+
def ClearField(self, field_name: typing.Literal["oauth_client_secret", b"oauth_client_secret", "secret_value", b"secret_value"]) -> None: ...
|
|
155
|
+
|
|
156
|
+
global___CreateOAuthClientSecretResponse = CreateOAuthClientSecretResponse
|
|
157
|
+
|
|
158
|
+
@typing.final
|
|
159
|
+
class DeleteOAuthClientSecretRequest(google.protobuf.message.Message):
|
|
160
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
161
|
+
|
|
162
|
+
OAUTH_CLIENT_SECRET_ID_FIELD_NUMBER: builtins.int
|
|
163
|
+
oauth_client_secret_id: builtins.str
|
|
164
|
+
"""ID of the OAuthClientSecret resource to delete."""
|
|
165
|
+
def __init__(
|
|
166
|
+
self,
|
|
167
|
+
*,
|
|
168
|
+
oauth_client_secret_id: builtins.str = ...,
|
|
169
|
+
) -> None: ...
|
|
170
|
+
def ClearField(self, field_name: typing.Literal["oauth_client_secret_id", b"oauth_client_secret_id"]) -> None: ...
|
|
171
|
+
|
|
172
|
+
global___DeleteOAuthClientSecretRequest = DeleteOAuthClientSecretRequest
|
|
173
|
+
|
|
174
|
+
@typing.final
|
|
175
|
+
class DeleteOAuthClientSecretMetadata(google.protobuf.message.Message):
|
|
176
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
177
|
+
|
|
178
|
+
OAUTH_CLIENT_SECRET_ID_FIELD_NUMBER: builtins.int
|
|
179
|
+
oauth_client_secret_id: builtins.str
|
|
180
|
+
"""ID of the OAuthClientSecretResource that is being deleted."""
|
|
181
|
+
def __init__(
|
|
182
|
+
self,
|
|
183
|
+
*,
|
|
184
|
+
oauth_client_secret_id: builtins.str = ...,
|
|
185
|
+
) -> None: ...
|
|
186
|
+
def ClearField(self, field_name: typing.Literal["oauth_client_secret_id", b"oauth_client_secret_id"]) -> None: ...
|
|
187
|
+
|
|
188
|
+
global___DeleteOAuthClientSecretMetadata = DeleteOAuthClientSecretMetadata
|
|
@@ -0,0 +1,237 @@
|
|
|
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.iam.v1 import oauth_client_secret_pb2 as yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__pb2
|
|
7
|
+
from yandex.cloud.iam.v1 import oauth_client_secret_service_pb2 as yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__service__pb2
|
|
8
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
9
|
+
|
|
10
|
+
GRPC_GENERATED_VERSION = '1.70.0'
|
|
11
|
+
GRPC_VERSION = grpc.__version__
|
|
12
|
+
_version_not_supported = False
|
|
13
|
+
|
|
14
|
+
try:
|
|
15
|
+
from grpc._utilities import first_version_is_lower
|
|
16
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
17
|
+
except ImportError:
|
|
18
|
+
_version_not_supported = True
|
|
19
|
+
|
|
20
|
+
if _version_not_supported:
|
|
21
|
+
raise RuntimeError(
|
|
22
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
23
|
+
+ f' but the generated code in yandex/cloud/iam/v1/oauth_client_secret_service_pb2_grpc.py depends on'
|
|
24
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
25
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
26
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class OAuthClientSecretServiceStub(object):
|
|
31
|
+
"""A set of methods for managing OAuthClientSecret resources.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
def __init__(self, channel):
|
|
35
|
+
"""Constructor.
|
|
36
|
+
|
|
37
|
+
Args:
|
|
38
|
+
channel: A grpc.Channel.
|
|
39
|
+
"""
|
|
40
|
+
self.Get = channel.unary_unary(
|
|
41
|
+
'/yandex.cloud.iam.v1.OAuthClientSecretService/Get',
|
|
42
|
+
request_serializer=yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__service__pb2.GetOAuthClientSecretRequest.SerializeToString,
|
|
43
|
+
response_deserializer=yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__pb2.OAuthClientSecret.FromString,
|
|
44
|
+
_registered_method=True)
|
|
45
|
+
self.List = channel.unary_unary(
|
|
46
|
+
'/yandex.cloud.iam.v1.OAuthClientSecretService/List',
|
|
47
|
+
request_serializer=yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__service__pb2.ListOAuthClientSecretsRequest.SerializeToString,
|
|
48
|
+
response_deserializer=yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__service__pb2.ListOAuthClientSecretsResponse.FromString,
|
|
49
|
+
_registered_method=True)
|
|
50
|
+
self.Create = channel.unary_unary(
|
|
51
|
+
'/yandex.cloud.iam.v1.OAuthClientSecretService/Create',
|
|
52
|
+
request_serializer=yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__service__pb2.CreateOAuthClientSecretRequest.SerializeToString,
|
|
53
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
54
|
+
_registered_method=True)
|
|
55
|
+
self.Delete = channel.unary_unary(
|
|
56
|
+
'/yandex.cloud.iam.v1.OAuthClientSecretService/Delete',
|
|
57
|
+
request_serializer=yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__service__pb2.DeleteOAuthClientSecretRequest.SerializeToString,
|
|
58
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
59
|
+
_registered_method=True)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class OAuthClientSecretServiceServicer(object):
|
|
63
|
+
"""A set of methods for managing OAuthClientSecret resources.
|
|
64
|
+
"""
|
|
65
|
+
|
|
66
|
+
def Get(self, request, context):
|
|
67
|
+
"""Returns the sepcified OAuthClientSecret resource.
|
|
68
|
+
|
|
69
|
+
To get the list of available OAuthClientSecret resources, make a [List] request.
|
|
70
|
+
"""
|
|
71
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
72
|
+
context.set_details('Method not implemented!')
|
|
73
|
+
raise NotImplementedError('Method not implemented!')
|
|
74
|
+
|
|
75
|
+
def List(self, request, context):
|
|
76
|
+
"""Retrieves the list of OAuthClientSecret resources of the specified OAuthClient.
|
|
77
|
+
"""
|
|
78
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
79
|
+
context.set_details('Method not implemented!')
|
|
80
|
+
raise NotImplementedError('Method not implemented!')
|
|
81
|
+
|
|
82
|
+
def Create(self, request, context):
|
|
83
|
+
"""Creates an OAuthClientSecret resource for the specified OAuthClient.
|
|
84
|
+
"""
|
|
85
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
86
|
+
context.set_details('Method not implemented!')
|
|
87
|
+
raise NotImplementedError('Method not implemented!')
|
|
88
|
+
|
|
89
|
+
def Delete(self, request, context):
|
|
90
|
+
"""Deletes the specified OAuthClientSecret resource.
|
|
91
|
+
"""
|
|
92
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
93
|
+
context.set_details('Method not implemented!')
|
|
94
|
+
raise NotImplementedError('Method not implemented!')
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
def add_OAuthClientSecretServiceServicer_to_server(servicer, server):
|
|
98
|
+
rpc_method_handlers = {
|
|
99
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
100
|
+
servicer.Get,
|
|
101
|
+
request_deserializer=yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__service__pb2.GetOAuthClientSecretRequest.FromString,
|
|
102
|
+
response_serializer=yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__pb2.OAuthClientSecret.SerializeToString,
|
|
103
|
+
),
|
|
104
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
105
|
+
servicer.List,
|
|
106
|
+
request_deserializer=yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__service__pb2.ListOAuthClientSecretsRequest.FromString,
|
|
107
|
+
response_serializer=yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__service__pb2.ListOAuthClientSecretsResponse.SerializeToString,
|
|
108
|
+
),
|
|
109
|
+
'Create': grpc.unary_unary_rpc_method_handler(
|
|
110
|
+
servicer.Create,
|
|
111
|
+
request_deserializer=yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__service__pb2.CreateOAuthClientSecretRequest.FromString,
|
|
112
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
113
|
+
),
|
|
114
|
+
'Delete': grpc.unary_unary_rpc_method_handler(
|
|
115
|
+
servicer.Delete,
|
|
116
|
+
request_deserializer=yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__service__pb2.DeleteOAuthClientSecretRequest.FromString,
|
|
117
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
118
|
+
),
|
|
119
|
+
}
|
|
120
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
121
|
+
'yandex.cloud.iam.v1.OAuthClientSecretService', rpc_method_handlers)
|
|
122
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
123
|
+
server.add_registered_method_handlers('yandex.cloud.iam.v1.OAuthClientSecretService', rpc_method_handlers)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
# This class is part of an EXPERIMENTAL API.
|
|
127
|
+
class OAuthClientSecretService(object):
|
|
128
|
+
"""A set of methods for managing OAuthClientSecret resources.
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
@staticmethod
|
|
132
|
+
def Get(request,
|
|
133
|
+
target,
|
|
134
|
+
options=(),
|
|
135
|
+
channel_credentials=None,
|
|
136
|
+
call_credentials=None,
|
|
137
|
+
insecure=False,
|
|
138
|
+
compression=None,
|
|
139
|
+
wait_for_ready=None,
|
|
140
|
+
timeout=None,
|
|
141
|
+
metadata=None):
|
|
142
|
+
return grpc.experimental.unary_unary(
|
|
143
|
+
request,
|
|
144
|
+
target,
|
|
145
|
+
'/yandex.cloud.iam.v1.OAuthClientSecretService/Get',
|
|
146
|
+
yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__service__pb2.GetOAuthClientSecretRequest.SerializeToString,
|
|
147
|
+
yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__pb2.OAuthClientSecret.FromString,
|
|
148
|
+
options,
|
|
149
|
+
channel_credentials,
|
|
150
|
+
insecure,
|
|
151
|
+
call_credentials,
|
|
152
|
+
compression,
|
|
153
|
+
wait_for_ready,
|
|
154
|
+
timeout,
|
|
155
|
+
metadata,
|
|
156
|
+
_registered_method=True)
|
|
157
|
+
|
|
158
|
+
@staticmethod
|
|
159
|
+
def List(request,
|
|
160
|
+
target,
|
|
161
|
+
options=(),
|
|
162
|
+
channel_credentials=None,
|
|
163
|
+
call_credentials=None,
|
|
164
|
+
insecure=False,
|
|
165
|
+
compression=None,
|
|
166
|
+
wait_for_ready=None,
|
|
167
|
+
timeout=None,
|
|
168
|
+
metadata=None):
|
|
169
|
+
return grpc.experimental.unary_unary(
|
|
170
|
+
request,
|
|
171
|
+
target,
|
|
172
|
+
'/yandex.cloud.iam.v1.OAuthClientSecretService/List',
|
|
173
|
+
yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__service__pb2.ListOAuthClientSecretsRequest.SerializeToString,
|
|
174
|
+
yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__service__pb2.ListOAuthClientSecretsResponse.FromString,
|
|
175
|
+
options,
|
|
176
|
+
channel_credentials,
|
|
177
|
+
insecure,
|
|
178
|
+
call_credentials,
|
|
179
|
+
compression,
|
|
180
|
+
wait_for_ready,
|
|
181
|
+
timeout,
|
|
182
|
+
metadata,
|
|
183
|
+
_registered_method=True)
|
|
184
|
+
|
|
185
|
+
@staticmethod
|
|
186
|
+
def Create(request,
|
|
187
|
+
target,
|
|
188
|
+
options=(),
|
|
189
|
+
channel_credentials=None,
|
|
190
|
+
call_credentials=None,
|
|
191
|
+
insecure=False,
|
|
192
|
+
compression=None,
|
|
193
|
+
wait_for_ready=None,
|
|
194
|
+
timeout=None,
|
|
195
|
+
metadata=None):
|
|
196
|
+
return grpc.experimental.unary_unary(
|
|
197
|
+
request,
|
|
198
|
+
target,
|
|
199
|
+
'/yandex.cloud.iam.v1.OAuthClientSecretService/Create',
|
|
200
|
+
yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__service__pb2.CreateOAuthClientSecretRequest.SerializeToString,
|
|
201
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
202
|
+
options,
|
|
203
|
+
channel_credentials,
|
|
204
|
+
insecure,
|
|
205
|
+
call_credentials,
|
|
206
|
+
compression,
|
|
207
|
+
wait_for_ready,
|
|
208
|
+
timeout,
|
|
209
|
+
metadata,
|
|
210
|
+
_registered_method=True)
|
|
211
|
+
|
|
212
|
+
@staticmethod
|
|
213
|
+
def Delete(request,
|
|
214
|
+
target,
|
|
215
|
+
options=(),
|
|
216
|
+
channel_credentials=None,
|
|
217
|
+
call_credentials=None,
|
|
218
|
+
insecure=False,
|
|
219
|
+
compression=None,
|
|
220
|
+
wait_for_ready=None,
|
|
221
|
+
timeout=None,
|
|
222
|
+
metadata=None):
|
|
223
|
+
return grpc.experimental.unary_unary(
|
|
224
|
+
request,
|
|
225
|
+
target,
|
|
226
|
+
'/yandex.cloud.iam.v1.OAuthClientSecretService/Delete',
|
|
227
|
+
yandex_dot_cloud_dot_iam_dot_v1_dot_oauth__client__secret__service__pb2.DeleteOAuthClientSecretRequest.SerializeToString,
|
|
228
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
229
|
+
options,
|
|
230
|
+
channel_credentials,
|
|
231
|
+
insecure,
|
|
232
|
+
call_credentials,
|
|
233
|
+
compression,
|
|
234
|
+
wait_for_ready,
|
|
235
|
+
timeout,
|
|
236
|
+
metadata,
|
|
237
|
+
_registered_method=True)
|
|
@@ -0,0 +1,121 @@
|
|
|
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.iam.v1.oauth_client_secret_pb2
|
|
12
|
+
import yandex.cloud.iam.v1.oauth_client_secret_service_pb2
|
|
13
|
+
import yandex.cloud.operation.operation_pb2
|
|
14
|
+
|
|
15
|
+
_T = typing.TypeVar("_T")
|
|
16
|
+
|
|
17
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
18
|
+
|
|
19
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
20
|
+
...
|
|
21
|
+
|
|
22
|
+
class OAuthClientSecretServiceStub:
|
|
23
|
+
"""A set of methods for managing OAuthClientSecret resources."""
|
|
24
|
+
|
|
25
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
26
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
27
|
+
yandex.cloud.iam.v1.oauth_client_secret_service_pb2.GetOAuthClientSecretRequest,
|
|
28
|
+
yandex.cloud.iam.v1.oauth_client_secret_pb2.OAuthClientSecret,
|
|
29
|
+
]
|
|
30
|
+
"""Returns the sepcified OAuthClientSecret resource.
|
|
31
|
+
|
|
32
|
+
To get the list of available OAuthClientSecret resources, make a [List] request.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
36
|
+
yandex.cloud.iam.v1.oauth_client_secret_service_pb2.ListOAuthClientSecretsRequest,
|
|
37
|
+
yandex.cloud.iam.v1.oauth_client_secret_service_pb2.ListOAuthClientSecretsResponse,
|
|
38
|
+
]
|
|
39
|
+
"""Retrieves the list of OAuthClientSecret resources of the specified OAuthClient."""
|
|
40
|
+
|
|
41
|
+
Create: grpc.UnaryUnaryMultiCallable[
|
|
42
|
+
yandex.cloud.iam.v1.oauth_client_secret_service_pb2.CreateOAuthClientSecretRequest,
|
|
43
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
44
|
+
]
|
|
45
|
+
"""Creates an OAuthClientSecret resource for the specified OAuthClient."""
|
|
46
|
+
|
|
47
|
+
Delete: grpc.UnaryUnaryMultiCallable[
|
|
48
|
+
yandex.cloud.iam.v1.oauth_client_secret_service_pb2.DeleteOAuthClientSecretRequest,
|
|
49
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
50
|
+
]
|
|
51
|
+
"""Deletes the specified OAuthClientSecret resource."""
|
|
52
|
+
|
|
53
|
+
class OAuthClientSecretServiceAsyncStub:
|
|
54
|
+
"""A set of methods for managing OAuthClientSecret resources."""
|
|
55
|
+
|
|
56
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
57
|
+
yandex.cloud.iam.v1.oauth_client_secret_service_pb2.GetOAuthClientSecretRequest,
|
|
58
|
+
yandex.cloud.iam.v1.oauth_client_secret_pb2.OAuthClientSecret,
|
|
59
|
+
]
|
|
60
|
+
"""Returns the sepcified OAuthClientSecret resource.
|
|
61
|
+
|
|
62
|
+
To get the list of available OAuthClientSecret resources, make a [List] request.
|
|
63
|
+
"""
|
|
64
|
+
|
|
65
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
66
|
+
yandex.cloud.iam.v1.oauth_client_secret_service_pb2.ListOAuthClientSecretsRequest,
|
|
67
|
+
yandex.cloud.iam.v1.oauth_client_secret_service_pb2.ListOAuthClientSecretsResponse,
|
|
68
|
+
]
|
|
69
|
+
"""Retrieves the list of OAuthClientSecret resources of the specified OAuthClient."""
|
|
70
|
+
|
|
71
|
+
Create: grpc.aio.UnaryUnaryMultiCallable[
|
|
72
|
+
yandex.cloud.iam.v1.oauth_client_secret_service_pb2.CreateOAuthClientSecretRequest,
|
|
73
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
74
|
+
]
|
|
75
|
+
"""Creates an OAuthClientSecret resource for the specified OAuthClient."""
|
|
76
|
+
|
|
77
|
+
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
78
|
+
yandex.cloud.iam.v1.oauth_client_secret_service_pb2.DeleteOAuthClientSecretRequest,
|
|
79
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
80
|
+
]
|
|
81
|
+
"""Deletes the specified OAuthClientSecret resource."""
|
|
82
|
+
|
|
83
|
+
class OAuthClientSecretServiceServicer(metaclass=abc.ABCMeta):
|
|
84
|
+
"""A set of methods for managing OAuthClientSecret resources."""
|
|
85
|
+
|
|
86
|
+
@abc.abstractmethod
|
|
87
|
+
def Get(
|
|
88
|
+
self,
|
|
89
|
+
request: yandex.cloud.iam.v1.oauth_client_secret_service_pb2.GetOAuthClientSecretRequest,
|
|
90
|
+
context: _ServicerContext,
|
|
91
|
+
) -> typing.Union[yandex.cloud.iam.v1.oauth_client_secret_pb2.OAuthClientSecret, collections.abc.Awaitable[yandex.cloud.iam.v1.oauth_client_secret_pb2.OAuthClientSecret]]:
|
|
92
|
+
"""Returns the sepcified OAuthClientSecret resource.
|
|
93
|
+
|
|
94
|
+
To get the list of available OAuthClientSecret resources, make a [List] request.
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
@abc.abstractmethod
|
|
98
|
+
def List(
|
|
99
|
+
self,
|
|
100
|
+
request: yandex.cloud.iam.v1.oauth_client_secret_service_pb2.ListOAuthClientSecretsRequest,
|
|
101
|
+
context: _ServicerContext,
|
|
102
|
+
) -> typing.Union[yandex.cloud.iam.v1.oauth_client_secret_service_pb2.ListOAuthClientSecretsResponse, collections.abc.Awaitable[yandex.cloud.iam.v1.oauth_client_secret_service_pb2.ListOAuthClientSecretsResponse]]:
|
|
103
|
+
"""Retrieves the list of OAuthClientSecret resources of the specified OAuthClient."""
|
|
104
|
+
|
|
105
|
+
@abc.abstractmethod
|
|
106
|
+
def Create(
|
|
107
|
+
self,
|
|
108
|
+
request: yandex.cloud.iam.v1.oauth_client_secret_service_pb2.CreateOAuthClientSecretRequest,
|
|
109
|
+
context: _ServicerContext,
|
|
110
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
111
|
+
"""Creates an OAuthClientSecret resource for the specified OAuthClient."""
|
|
112
|
+
|
|
113
|
+
@abc.abstractmethod
|
|
114
|
+
def Delete(
|
|
115
|
+
self,
|
|
116
|
+
request: yandex.cloud.iam.v1.oauth_client_secret_service_pb2.DeleteOAuthClientSecretRequest,
|
|
117
|
+
context: _ServicerContext,
|
|
118
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
119
|
+
"""Deletes the specified OAuthClientSecret resource."""
|
|
120
|
+
|
|
121
|
+
def add_OAuthClientSecretServiceServicer_to_server(servicer: OAuthClientSecretServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|