yandexcloud 0.310.0__py3-none-any.whl → 0.312.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/translate/v2/translation_service_pb2_grpc.py +6 -0
- yandex/cloud/ai/translate/v2/translation_service_pb2_grpc.pyi +12 -3
- yandex/cloud/audittrails/v1/trail_pb2.py +57 -37
- yandex/cloud/audittrails/v1/trail_pb2.pyi +115 -4
- yandex/cloud/audittrails/v1/trail_service_pb2.py +25 -23
- yandex/cloud/audittrails/v1/trail_service_pb2.pyi +22 -6
- yandex/cloud/compute/v1/instance_service_pb2.py +127 -127
- yandex/cloud/compute/v1/instance_service_pb2.pyi +0 -1
- yandex/cloud/compute/v1/instancegroup/instance_group_pb2.py +77 -77
- yandex/cloud/compute/v1/instancegroup/instance_group_pb2.pyi +1 -3
- yandex/cloud/iam/v1/workload/__init__.py +0 -0
- yandex/cloud/iam/v1/workload/federated_credential_pb2.py +27 -0
- yandex/cloud/iam/v1/workload/federated_credential_pb2.pyi +49 -0
- yandex/cloud/iam/v1/workload/federated_credential_pb2_grpc.py +4 -0
- yandex/cloud/iam/v1/workload/federated_credential_pb2_grpc.pyi +17 -0
- yandex/cloud/iam/v1/workload/federated_credential_service_pb2.py +69 -0
- yandex/cloud/iam/v1/workload/federated_credential_service_pb2.pyi +170 -0
- yandex/cloud/iam/v1/workload/federated_credential_service_pb2_grpc.py +176 -0
- yandex/cloud/iam/v1/workload/federated_credential_service_pb2_grpc.pyi +121 -0
- yandex/cloud/iam/v1/workload/oidc/__init__.py +0 -0
- yandex/cloud/iam/v1/workload/oidc/federation_pb2.py +31 -0
- yandex/cloud/iam/v1/workload/oidc/federation_pb2.pyi +95 -0
- yandex/cloud/iam/v1/workload/oidc/federation_pb2_grpc.py +4 -0
- yandex/cloud/iam/v1/workload/oidc/federation_pb2_grpc.pyi +17 -0
- yandex/cloud/iam/v1/workload/oidc/federation_service_pb2.py +100 -0
- yandex/cloud/iam/v1/workload/oidc/federation_service_pb2.pyi +304 -0
- yandex/cloud/iam/v1/workload/oidc/federation_service_pb2_grpc.py +210 -0
- yandex/cloud/iam/v1/workload/oidc/federation_service_pb2_grpc.pyi +141 -0
- yandex/cloud/mdb/clickhouse/v1/config/clickhouse_pb2.py +92 -60
- yandex/cloud/mdb/clickhouse/v1/config/clickhouse_pb2.pyi +304 -10
- yandex/cloud/mdb/clickhouse/v1/user_pb2.py +34 -26
- yandex/cloud/mdb/clickhouse/v1/user_pb2.pyi +84 -2
- yandex/cloud/vpc/v1/route_table_pb2.pyi +2 -2
- {yandexcloud-0.310.0.dist-info → yandexcloud-0.312.0.dist-info}/METADATA +8 -8
- {yandexcloud-0.310.0.dist-info → yandexcloud-0.312.0.dist-info}/RECORD +39 -21
- {yandexcloud-0.310.0.dist-info → yandexcloud-0.312.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.310.0.dist-info → yandexcloud-0.312.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.310.0.dist-info → yandexcloud-0.312.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.310.0.dist-info → yandexcloud-0.312.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,170 @@
|
|
|
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.workload.federated_credential_pb2
|
|
13
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
15
|
+
|
|
16
|
+
@typing.final
|
|
17
|
+
class GetFederatedCredentialRequest(google.protobuf.message.Message):
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
19
|
+
|
|
20
|
+
FEDERATED_CREDENTIAL_ID_FIELD_NUMBER: builtins.int
|
|
21
|
+
federated_credential_id: builtins.str
|
|
22
|
+
"""ID of the federated credential to return.
|
|
23
|
+
To get the federated credential ID, make a [FederatedCredentialService.List] request.
|
|
24
|
+
"""
|
|
25
|
+
def __init__(
|
|
26
|
+
self,
|
|
27
|
+
*,
|
|
28
|
+
federated_credential_id: builtins.str = ...,
|
|
29
|
+
) -> None: ...
|
|
30
|
+
def ClearField(self, field_name: typing.Literal["federated_credential_id", b"federated_credential_id"]) -> None: ...
|
|
31
|
+
|
|
32
|
+
global___GetFederatedCredentialRequest = GetFederatedCredentialRequest
|
|
33
|
+
|
|
34
|
+
@typing.final
|
|
35
|
+
class ListFederatedCredentialsRequest(google.protobuf.message.Message):
|
|
36
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
37
|
+
|
|
38
|
+
SERVICE_ACCOUNT_ID_FIELD_NUMBER: builtins.int
|
|
39
|
+
PAGE_SIZE_FIELD_NUMBER: builtins.int
|
|
40
|
+
PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
41
|
+
service_account_id: builtins.str
|
|
42
|
+
"""ID of the service account to list federated credentials for.
|
|
43
|
+
To get the the service account ID make a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
|
|
44
|
+
"""
|
|
45
|
+
page_size: builtins.int
|
|
46
|
+
"""The maximum number of results per page to return. If the number of available
|
|
47
|
+
results is larger than [page_size],
|
|
48
|
+
the service returns a [ListFederatedCredentialsResponse.next_page_token]
|
|
49
|
+
that can be used to get the next page of results in subsequent list requests.
|
|
50
|
+
Default value: 100.
|
|
51
|
+
"""
|
|
52
|
+
page_token: builtins.str
|
|
53
|
+
"""Page token. To get the next page of results, set [page_token]
|
|
54
|
+
to the [ListFederatedCredentialsResponse.next_page_token]
|
|
55
|
+
returned by a previous list request.
|
|
56
|
+
"""
|
|
57
|
+
def __init__(
|
|
58
|
+
self,
|
|
59
|
+
*,
|
|
60
|
+
service_account_id: builtins.str = ...,
|
|
61
|
+
page_size: builtins.int = ...,
|
|
62
|
+
page_token: builtins.str = ...,
|
|
63
|
+
) -> None: ...
|
|
64
|
+
def ClearField(self, field_name: typing.Literal["page_size", b"page_size", "page_token", b"page_token", "service_account_id", b"service_account_id"]) -> None: ...
|
|
65
|
+
|
|
66
|
+
global___ListFederatedCredentialsRequest = ListFederatedCredentialsRequest
|
|
67
|
+
|
|
68
|
+
@typing.final
|
|
69
|
+
class ListFederatedCredentialsResponse(google.protobuf.message.Message):
|
|
70
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
71
|
+
|
|
72
|
+
FEDERATED_CREDENTIALS_FIELD_NUMBER: builtins.int
|
|
73
|
+
NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
74
|
+
next_page_token: builtins.str
|
|
75
|
+
"""This token allows you to get the next page of results for list requests. If the number of results
|
|
76
|
+
is larger than [ListFederatedCredentialsRequest.page_size], use
|
|
77
|
+
the [next_page_token] as the value
|
|
78
|
+
for the [ListFederatedCredentialsRequest.page_token] query parameter
|
|
79
|
+
in the next list request. Each subsequent list request will have its own
|
|
80
|
+
[next_page_token] to continue paging through the results.
|
|
81
|
+
"""
|
|
82
|
+
@property
|
|
83
|
+
def federated_credentials(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.iam.v1.workload.federated_credential_pb2.FederatedCredential]:
|
|
84
|
+
"""List of federated credentials."""
|
|
85
|
+
|
|
86
|
+
def __init__(
|
|
87
|
+
self,
|
|
88
|
+
*,
|
|
89
|
+
federated_credentials: collections.abc.Iterable[yandex.cloud.iam.v1.workload.federated_credential_pb2.FederatedCredential] | None = ...,
|
|
90
|
+
next_page_token: builtins.str = ...,
|
|
91
|
+
) -> None: ...
|
|
92
|
+
def ClearField(self, field_name: typing.Literal["federated_credentials", b"federated_credentials", "next_page_token", b"next_page_token"]) -> None: ...
|
|
93
|
+
|
|
94
|
+
global___ListFederatedCredentialsResponse = ListFederatedCredentialsResponse
|
|
95
|
+
|
|
96
|
+
@typing.final
|
|
97
|
+
class CreateFederatedCredentialRequest(google.protobuf.message.Message):
|
|
98
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
99
|
+
|
|
100
|
+
SERVICE_ACCOUNT_ID_FIELD_NUMBER: builtins.int
|
|
101
|
+
FEDERATION_ID_FIELD_NUMBER: builtins.int
|
|
102
|
+
EXTERNAL_SUBJECT_ID_FIELD_NUMBER: builtins.int
|
|
103
|
+
service_account_id: builtins.str
|
|
104
|
+
"""ID of the service account to create a federated credential for.
|
|
105
|
+
To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
|
|
106
|
+
"""
|
|
107
|
+
federation_id: builtins.str
|
|
108
|
+
"""ID of the workload identity federation that is used for authentication."""
|
|
109
|
+
external_subject_id: builtins.str
|
|
110
|
+
"""Id of the external subject."""
|
|
111
|
+
def __init__(
|
|
112
|
+
self,
|
|
113
|
+
*,
|
|
114
|
+
service_account_id: builtins.str = ...,
|
|
115
|
+
federation_id: builtins.str = ...,
|
|
116
|
+
external_subject_id: builtins.str = ...,
|
|
117
|
+
) -> None: ...
|
|
118
|
+
def ClearField(self, field_name: typing.Literal["external_subject_id", b"external_subject_id", "federation_id", b"federation_id", "service_account_id", b"service_account_id"]) -> None: ...
|
|
119
|
+
|
|
120
|
+
global___CreateFederatedCredentialRequest = CreateFederatedCredentialRequest
|
|
121
|
+
|
|
122
|
+
@typing.final
|
|
123
|
+
class CreateFederatedCredentialMetadata(google.protobuf.message.Message):
|
|
124
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
125
|
+
|
|
126
|
+
FEDERATED_CREDENTIAL_ID_FIELD_NUMBER: builtins.int
|
|
127
|
+
federated_credential_id: builtins.str
|
|
128
|
+
"""ID of the federated credential that is being created."""
|
|
129
|
+
def __init__(
|
|
130
|
+
self,
|
|
131
|
+
*,
|
|
132
|
+
federated_credential_id: builtins.str = ...,
|
|
133
|
+
) -> None: ...
|
|
134
|
+
def ClearField(self, field_name: typing.Literal["federated_credential_id", b"federated_credential_id"]) -> None: ...
|
|
135
|
+
|
|
136
|
+
global___CreateFederatedCredentialMetadata = CreateFederatedCredentialMetadata
|
|
137
|
+
|
|
138
|
+
@typing.final
|
|
139
|
+
class DeleteFederatedCredentialRequest(google.protobuf.message.Message):
|
|
140
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
141
|
+
|
|
142
|
+
FEDERATED_CREDENTIAL_ID_FIELD_NUMBER: builtins.int
|
|
143
|
+
federated_credential_id: builtins.str
|
|
144
|
+
"""ID of the federated credential key to delete.
|
|
145
|
+
To get the federated credential ID, use a [FederatedCredentialService.List] request.
|
|
146
|
+
"""
|
|
147
|
+
def __init__(
|
|
148
|
+
self,
|
|
149
|
+
*,
|
|
150
|
+
federated_credential_id: builtins.str = ...,
|
|
151
|
+
) -> None: ...
|
|
152
|
+
def ClearField(self, field_name: typing.Literal["federated_credential_id", b"federated_credential_id"]) -> None: ...
|
|
153
|
+
|
|
154
|
+
global___DeleteFederatedCredentialRequest = DeleteFederatedCredentialRequest
|
|
155
|
+
|
|
156
|
+
@typing.final
|
|
157
|
+
class DeleteFederatedCredentialMetadata(google.protobuf.message.Message):
|
|
158
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
159
|
+
|
|
160
|
+
FEDERATED_CREDENTIAL_ID_FIELD_NUMBER: builtins.int
|
|
161
|
+
federated_credential_id: builtins.str
|
|
162
|
+
"""ID of the federated credential that is being deleted."""
|
|
163
|
+
def __init__(
|
|
164
|
+
self,
|
|
165
|
+
*,
|
|
166
|
+
federated_credential_id: builtins.str = ...,
|
|
167
|
+
) -> None: ...
|
|
168
|
+
def ClearField(self, field_name: typing.Literal["federated_credential_id", b"federated_credential_id"]) -> None: ...
|
|
169
|
+
|
|
170
|
+
global___DeleteFederatedCredentialMetadata = DeleteFederatedCredentialMetadata
|
|
@@ -0,0 +1,176 @@
|
|
|
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
|
+
|
|
5
|
+
from yandex.cloud.iam.v1.workload import federated_credential_pb2 as yandex_dot_cloud_dot_iam_dot_v1_dot_workload_dot_federated__credential__pb2
|
|
6
|
+
from yandex.cloud.iam.v1.workload import federated_credential_service_pb2 as yandex_dot_cloud_dot_iam_dot_v1_dot_workload_dot_federated__credential__service__pb2
|
|
7
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FederatedCredentialServiceStub(object):
|
|
11
|
+
"""A set of methods for managing federated credentials.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, channel):
|
|
15
|
+
"""Constructor.
|
|
16
|
+
|
|
17
|
+
Args:
|
|
18
|
+
channel: A grpc.Channel.
|
|
19
|
+
"""
|
|
20
|
+
self.Get = channel.unary_unary(
|
|
21
|
+
'/yandex.cloud.iam.v1.workload.FederatedCredentialService/Get',
|
|
22
|
+
request_serializer=yandex_dot_cloud_dot_iam_dot_v1_dot_workload_dot_federated__credential__service__pb2.GetFederatedCredentialRequest.SerializeToString,
|
|
23
|
+
response_deserializer=yandex_dot_cloud_dot_iam_dot_v1_dot_workload_dot_federated__credential__pb2.FederatedCredential.FromString,
|
|
24
|
+
)
|
|
25
|
+
self.List = channel.unary_unary(
|
|
26
|
+
'/yandex.cloud.iam.v1.workload.FederatedCredentialService/List',
|
|
27
|
+
request_serializer=yandex_dot_cloud_dot_iam_dot_v1_dot_workload_dot_federated__credential__service__pb2.ListFederatedCredentialsRequest.SerializeToString,
|
|
28
|
+
response_deserializer=yandex_dot_cloud_dot_iam_dot_v1_dot_workload_dot_federated__credential__service__pb2.ListFederatedCredentialsResponse.FromString,
|
|
29
|
+
)
|
|
30
|
+
self.Create = channel.unary_unary(
|
|
31
|
+
'/yandex.cloud.iam.v1.workload.FederatedCredentialService/Create',
|
|
32
|
+
request_serializer=yandex_dot_cloud_dot_iam_dot_v1_dot_workload_dot_federated__credential__service__pb2.CreateFederatedCredentialRequest.SerializeToString,
|
|
33
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
34
|
+
)
|
|
35
|
+
self.Delete = channel.unary_unary(
|
|
36
|
+
'/yandex.cloud.iam.v1.workload.FederatedCredentialService/Delete',
|
|
37
|
+
request_serializer=yandex_dot_cloud_dot_iam_dot_v1_dot_workload_dot_federated__credential__service__pb2.DeleteFederatedCredentialRequest.SerializeToString,
|
|
38
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class FederatedCredentialServiceServicer(object):
|
|
43
|
+
"""A set of methods for managing federated credentials.
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
def Get(self, request, context):
|
|
47
|
+
"""Returns the specified federated credential.
|
|
48
|
+
|
|
49
|
+
To get the list of available federated credentials, make a [List] request.
|
|
50
|
+
"""
|
|
51
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
52
|
+
context.set_details('Method not implemented!')
|
|
53
|
+
raise NotImplementedError('Method not implemented!')
|
|
54
|
+
|
|
55
|
+
def List(self, request, context):
|
|
56
|
+
"""Retrieves the list of federated credentials for the specified service account.
|
|
57
|
+
"""
|
|
58
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
59
|
+
context.set_details('Method not implemented!')
|
|
60
|
+
raise NotImplementedError('Method not implemented!')
|
|
61
|
+
|
|
62
|
+
def Create(self, request, context):
|
|
63
|
+
"""Creates a federated credential for the specified service account.
|
|
64
|
+
"""
|
|
65
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
66
|
+
context.set_details('Method not implemented!')
|
|
67
|
+
raise NotImplementedError('Method not implemented!')
|
|
68
|
+
|
|
69
|
+
def Delete(self, request, context):
|
|
70
|
+
"""Deletes the specified federated credential.
|
|
71
|
+
"""
|
|
72
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
73
|
+
context.set_details('Method not implemented!')
|
|
74
|
+
raise NotImplementedError('Method not implemented!')
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def add_FederatedCredentialServiceServicer_to_server(servicer, server):
|
|
78
|
+
rpc_method_handlers = {
|
|
79
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
80
|
+
servicer.Get,
|
|
81
|
+
request_deserializer=yandex_dot_cloud_dot_iam_dot_v1_dot_workload_dot_federated__credential__service__pb2.GetFederatedCredentialRequest.FromString,
|
|
82
|
+
response_serializer=yandex_dot_cloud_dot_iam_dot_v1_dot_workload_dot_federated__credential__pb2.FederatedCredential.SerializeToString,
|
|
83
|
+
),
|
|
84
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
85
|
+
servicer.List,
|
|
86
|
+
request_deserializer=yandex_dot_cloud_dot_iam_dot_v1_dot_workload_dot_federated__credential__service__pb2.ListFederatedCredentialsRequest.FromString,
|
|
87
|
+
response_serializer=yandex_dot_cloud_dot_iam_dot_v1_dot_workload_dot_federated__credential__service__pb2.ListFederatedCredentialsResponse.SerializeToString,
|
|
88
|
+
),
|
|
89
|
+
'Create': grpc.unary_unary_rpc_method_handler(
|
|
90
|
+
servicer.Create,
|
|
91
|
+
request_deserializer=yandex_dot_cloud_dot_iam_dot_v1_dot_workload_dot_federated__credential__service__pb2.CreateFederatedCredentialRequest.FromString,
|
|
92
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
93
|
+
),
|
|
94
|
+
'Delete': grpc.unary_unary_rpc_method_handler(
|
|
95
|
+
servicer.Delete,
|
|
96
|
+
request_deserializer=yandex_dot_cloud_dot_iam_dot_v1_dot_workload_dot_federated__credential__service__pb2.DeleteFederatedCredentialRequest.FromString,
|
|
97
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
98
|
+
),
|
|
99
|
+
}
|
|
100
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
101
|
+
'yandex.cloud.iam.v1.workload.FederatedCredentialService', rpc_method_handlers)
|
|
102
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
# This class is part of an EXPERIMENTAL API.
|
|
106
|
+
class FederatedCredentialService(object):
|
|
107
|
+
"""A set of methods for managing federated credentials.
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
@staticmethod
|
|
111
|
+
def Get(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(request, target, '/yandex.cloud.iam.v1.workload.FederatedCredentialService/Get',
|
|
122
|
+
yandex_dot_cloud_dot_iam_dot_v1_dot_workload_dot_federated__credential__service__pb2.GetFederatedCredentialRequest.SerializeToString,
|
|
123
|
+
yandex_dot_cloud_dot_iam_dot_v1_dot_workload_dot_federated__credential__pb2.FederatedCredential.FromString,
|
|
124
|
+
options, channel_credentials,
|
|
125
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
126
|
+
|
|
127
|
+
@staticmethod
|
|
128
|
+
def List(request,
|
|
129
|
+
target,
|
|
130
|
+
options=(),
|
|
131
|
+
channel_credentials=None,
|
|
132
|
+
call_credentials=None,
|
|
133
|
+
insecure=False,
|
|
134
|
+
compression=None,
|
|
135
|
+
wait_for_ready=None,
|
|
136
|
+
timeout=None,
|
|
137
|
+
metadata=None):
|
|
138
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.iam.v1.workload.FederatedCredentialService/List',
|
|
139
|
+
yandex_dot_cloud_dot_iam_dot_v1_dot_workload_dot_federated__credential__service__pb2.ListFederatedCredentialsRequest.SerializeToString,
|
|
140
|
+
yandex_dot_cloud_dot_iam_dot_v1_dot_workload_dot_federated__credential__service__pb2.ListFederatedCredentialsResponse.FromString,
|
|
141
|
+
options, channel_credentials,
|
|
142
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
143
|
+
|
|
144
|
+
@staticmethod
|
|
145
|
+
def Create(request,
|
|
146
|
+
target,
|
|
147
|
+
options=(),
|
|
148
|
+
channel_credentials=None,
|
|
149
|
+
call_credentials=None,
|
|
150
|
+
insecure=False,
|
|
151
|
+
compression=None,
|
|
152
|
+
wait_for_ready=None,
|
|
153
|
+
timeout=None,
|
|
154
|
+
metadata=None):
|
|
155
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.iam.v1.workload.FederatedCredentialService/Create',
|
|
156
|
+
yandex_dot_cloud_dot_iam_dot_v1_dot_workload_dot_federated__credential__service__pb2.CreateFederatedCredentialRequest.SerializeToString,
|
|
157
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
158
|
+
options, channel_credentials,
|
|
159
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
160
|
+
|
|
161
|
+
@staticmethod
|
|
162
|
+
def Delete(request,
|
|
163
|
+
target,
|
|
164
|
+
options=(),
|
|
165
|
+
channel_credentials=None,
|
|
166
|
+
call_credentials=None,
|
|
167
|
+
insecure=False,
|
|
168
|
+
compression=None,
|
|
169
|
+
wait_for_ready=None,
|
|
170
|
+
timeout=None,
|
|
171
|
+
metadata=None):
|
|
172
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.iam.v1.workload.FederatedCredentialService/Delete',
|
|
173
|
+
yandex_dot_cloud_dot_iam_dot_v1_dot_workload_dot_federated__credential__service__pb2.DeleteFederatedCredentialRequest.SerializeToString,
|
|
174
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
175
|
+
options, channel_credentials,
|
|
176
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -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.workload.federated_credential_pb2
|
|
12
|
+
import yandex.cloud.iam.v1.workload.federated_credential_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 FederatedCredentialServiceStub:
|
|
23
|
+
"""A set of methods for managing federated credentials."""
|
|
24
|
+
|
|
25
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
26
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
27
|
+
yandex.cloud.iam.v1.workload.federated_credential_service_pb2.GetFederatedCredentialRequest,
|
|
28
|
+
yandex.cloud.iam.v1.workload.federated_credential_pb2.FederatedCredential,
|
|
29
|
+
]
|
|
30
|
+
"""Returns the specified federated credential.
|
|
31
|
+
|
|
32
|
+
To get the list of available federated credentials, make a [List] request.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
36
|
+
yandex.cloud.iam.v1.workload.federated_credential_service_pb2.ListFederatedCredentialsRequest,
|
|
37
|
+
yandex.cloud.iam.v1.workload.federated_credential_service_pb2.ListFederatedCredentialsResponse,
|
|
38
|
+
]
|
|
39
|
+
"""Retrieves the list of federated credentials for the specified service account."""
|
|
40
|
+
|
|
41
|
+
Create: grpc.UnaryUnaryMultiCallable[
|
|
42
|
+
yandex.cloud.iam.v1.workload.federated_credential_service_pb2.CreateFederatedCredentialRequest,
|
|
43
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
44
|
+
]
|
|
45
|
+
"""Creates a federated credential for the specified service account."""
|
|
46
|
+
|
|
47
|
+
Delete: grpc.UnaryUnaryMultiCallable[
|
|
48
|
+
yandex.cloud.iam.v1.workload.federated_credential_service_pb2.DeleteFederatedCredentialRequest,
|
|
49
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
50
|
+
]
|
|
51
|
+
"""Deletes the specified federated credential."""
|
|
52
|
+
|
|
53
|
+
class FederatedCredentialServiceAsyncStub:
|
|
54
|
+
"""A set of methods for managing federated credentials."""
|
|
55
|
+
|
|
56
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
57
|
+
yandex.cloud.iam.v1.workload.federated_credential_service_pb2.GetFederatedCredentialRequest,
|
|
58
|
+
yandex.cloud.iam.v1.workload.federated_credential_pb2.FederatedCredential,
|
|
59
|
+
]
|
|
60
|
+
"""Returns the specified federated credential.
|
|
61
|
+
|
|
62
|
+
To get the list of available federated credentials, make a [List] request.
|
|
63
|
+
"""
|
|
64
|
+
|
|
65
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
66
|
+
yandex.cloud.iam.v1.workload.federated_credential_service_pb2.ListFederatedCredentialsRequest,
|
|
67
|
+
yandex.cloud.iam.v1.workload.federated_credential_service_pb2.ListFederatedCredentialsResponse,
|
|
68
|
+
]
|
|
69
|
+
"""Retrieves the list of federated credentials for the specified service account."""
|
|
70
|
+
|
|
71
|
+
Create: grpc.aio.UnaryUnaryMultiCallable[
|
|
72
|
+
yandex.cloud.iam.v1.workload.federated_credential_service_pb2.CreateFederatedCredentialRequest,
|
|
73
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
74
|
+
]
|
|
75
|
+
"""Creates a federated credential for the specified service account."""
|
|
76
|
+
|
|
77
|
+
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
78
|
+
yandex.cloud.iam.v1.workload.federated_credential_service_pb2.DeleteFederatedCredentialRequest,
|
|
79
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
80
|
+
]
|
|
81
|
+
"""Deletes the specified federated credential."""
|
|
82
|
+
|
|
83
|
+
class FederatedCredentialServiceServicer(metaclass=abc.ABCMeta):
|
|
84
|
+
"""A set of methods for managing federated credentials."""
|
|
85
|
+
|
|
86
|
+
@abc.abstractmethod
|
|
87
|
+
def Get(
|
|
88
|
+
self,
|
|
89
|
+
request: yandex.cloud.iam.v1.workload.federated_credential_service_pb2.GetFederatedCredentialRequest,
|
|
90
|
+
context: _ServicerContext,
|
|
91
|
+
) -> typing.Union[yandex.cloud.iam.v1.workload.federated_credential_pb2.FederatedCredential, collections.abc.Awaitable[yandex.cloud.iam.v1.workload.federated_credential_pb2.FederatedCredential]]:
|
|
92
|
+
"""Returns the specified federated credential.
|
|
93
|
+
|
|
94
|
+
To get the list of available federated credentials, make a [List] request.
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
@abc.abstractmethod
|
|
98
|
+
def List(
|
|
99
|
+
self,
|
|
100
|
+
request: yandex.cloud.iam.v1.workload.federated_credential_service_pb2.ListFederatedCredentialsRequest,
|
|
101
|
+
context: _ServicerContext,
|
|
102
|
+
) -> typing.Union[yandex.cloud.iam.v1.workload.federated_credential_service_pb2.ListFederatedCredentialsResponse, collections.abc.Awaitable[yandex.cloud.iam.v1.workload.federated_credential_service_pb2.ListFederatedCredentialsResponse]]:
|
|
103
|
+
"""Retrieves the list of federated credentials for the specified service account."""
|
|
104
|
+
|
|
105
|
+
@abc.abstractmethod
|
|
106
|
+
def Create(
|
|
107
|
+
self,
|
|
108
|
+
request: yandex.cloud.iam.v1.workload.federated_credential_service_pb2.CreateFederatedCredentialRequest,
|
|
109
|
+
context: _ServicerContext,
|
|
110
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
111
|
+
"""Creates a federated credential for the specified service account."""
|
|
112
|
+
|
|
113
|
+
@abc.abstractmethod
|
|
114
|
+
def Delete(
|
|
115
|
+
self,
|
|
116
|
+
request: yandex.cloud.iam.v1.workload.federated_credential_service_pb2.DeleteFederatedCredentialRequest,
|
|
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 federated credential."""
|
|
120
|
+
|
|
121
|
+
def add_FederatedCredentialServiceServicer_to_server(servicer: FederatedCredentialServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/iam/v1/workload/oidc/federation.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
+
from google.protobuf.internal import builder as _builder
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2yandex/cloud/iam/v1/workload/oidc/federation.proto\x12!yandex.cloud.iam.v1.workload.oidc\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbe\x02\n\nFederation\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x11\n\tfolder_id\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x0f\n\x07\x65nabled\x18\x05 \x01(\x08\x12\x11\n\taudiences\x18\x06 \x03(\t\x12\x0e\n\x06issuer\x18\x07 \x01(\t\x12\x10\n\x08jwks_url\x18\x08 \x01(\t\x12I\n\x06labels\x18\t \x03(\x0b\x32\x39.yandex.cloud.iam.v1.workload.oidc.Federation.LabelsEntry\x12.\n\ncreated_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42s\n%yandex.cloud.api.iam.v1.workload.oidcZJgithub.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/workload/oidc;oidcb\x06proto3')
|
|
18
|
+
|
|
19
|
+
_globals = globals()
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.iam.v1.workload.oidc.federation_pb2', _globals)
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
DESCRIPTOR._options = None
|
|
24
|
+
DESCRIPTOR._serialized_options = b'\n%yandex.cloud.api.iam.v1.workload.oidcZJgithub.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/workload/oidc;oidc'
|
|
25
|
+
_FEDERATION_LABELSENTRY._options = None
|
|
26
|
+
_FEDERATION_LABELSENTRY._serialized_options = b'8\001'
|
|
27
|
+
_globals['_FEDERATION']._serialized_start=123
|
|
28
|
+
_globals['_FEDERATION']._serialized_end=441
|
|
29
|
+
_globals['_FEDERATION_LABELSENTRY']._serialized_start=396
|
|
30
|
+
_globals['_FEDERATION_LABELSENTRY']._serialized_end=441
|
|
31
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,95 @@
|
|
|
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 google.protobuf.timestamp_pb2
|
|
12
|
+
import typing
|
|
13
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
15
|
+
|
|
16
|
+
@typing.final
|
|
17
|
+
class Federation(google.protobuf.message.Message):
|
|
18
|
+
"""A OIDC workload identity federation."""
|
|
19
|
+
|
|
20
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
21
|
+
|
|
22
|
+
@typing.final
|
|
23
|
+
class LabelsEntry(google.protobuf.message.Message):
|
|
24
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
25
|
+
|
|
26
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
27
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
28
|
+
key: builtins.str
|
|
29
|
+
value: builtins.str
|
|
30
|
+
def __init__(
|
|
31
|
+
self,
|
|
32
|
+
*,
|
|
33
|
+
key: builtins.str = ...,
|
|
34
|
+
value: builtins.str = ...,
|
|
35
|
+
) -> None: ...
|
|
36
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
37
|
+
|
|
38
|
+
ID_FIELD_NUMBER: builtins.int
|
|
39
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
40
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
41
|
+
DESCRIPTION_FIELD_NUMBER: builtins.int
|
|
42
|
+
ENABLED_FIELD_NUMBER: builtins.int
|
|
43
|
+
AUDIENCES_FIELD_NUMBER: builtins.int
|
|
44
|
+
ISSUER_FIELD_NUMBER: builtins.int
|
|
45
|
+
JWKS_URL_FIELD_NUMBER: builtins.int
|
|
46
|
+
LABELS_FIELD_NUMBER: builtins.int
|
|
47
|
+
CREATED_AT_FIELD_NUMBER: builtins.int
|
|
48
|
+
id: builtins.str
|
|
49
|
+
"""Id of the OIDC workload identity federation."""
|
|
50
|
+
name: builtins.str
|
|
51
|
+
"""Name of the OIDC workload identity federation
|
|
52
|
+
The name is unique within the folder. 3-63 characters long.
|
|
53
|
+
"""
|
|
54
|
+
folder_id: builtins.str
|
|
55
|
+
"""ID of the folder that the OIDC workload identity federation belongs to."""
|
|
56
|
+
description: builtins.str
|
|
57
|
+
"""Description of the service account. 0-256 characters long."""
|
|
58
|
+
enabled: builtins.bool
|
|
59
|
+
"""True - the OIDC workload identity federation is enabled and can be used for authentication.
|
|
60
|
+
False - the OIDC workload identity federation is disabled and cannot be used for authentication.
|
|
61
|
+
"""
|
|
62
|
+
issuer: builtins.str
|
|
63
|
+
"""URL of the external IdP server to be used for authentication."""
|
|
64
|
+
jwks_url: builtins.str
|
|
65
|
+
"""URL reference to trusted keys in format of JSON Web Key Set."""
|
|
66
|
+
@property
|
|
67
|
+
def audiences(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
68
|
+
"""List of trusted values for aud claim."""
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
72
|
+
"""Resource labels as `` key:value `` pairs"""
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
76
|
+
"""Creation timestamp."""
|
|
77
|
+
|
|
78
|
+
def __init__(
|
|
79
|
+
self,
|
|
80
|
+
*,
|
|
81
|
+
id: builtins.str = ...,
|
|
82
|
+
name: builtins.str = ...,
|
|
83
|
+
folder_id: builtins.str = ...,
|
|
84
|
+
description: builtins.str = ...,
|
|
85
|
+
enabled: builtins.bool = ...,
|
|
86
|
+
audiences: collections.abc.Iterable[builtins.str] | None = ...,
|
|
87
|
+
issuer: builtins.str = ...,
|
|
88
|
+
jwks_url: builtins.str = ...,
|
|
89
|
+
labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
90
|
+
created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
91
|
+
) -> None: ...
|
|
92
|
+
def HasField(self, field_name: typing.Literal["created_at", b"created_at"]) -> builtins.bool: ...
|
|
93
|
+
def ClearField(self, field_name: typing.Literal["audiences", b"audiences", "created_at", b"created_at", "description", b"description", "enabled", b"enabled", "folder_id", b"folder_id", "id", b"id", "issuer", b"issuer", "jwks_url", b"jwks_url", "labels", b"labels", "name", b"name"]) -> None: ...
|
|
94
|
+
|
|
95
|
+
global___Federation = Federation
|
|
@@ -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
|
+
...
|