yandexcloud 0.317.0__py3-none-any.whl → 0.319.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- yandex/cloud/ai/assistants/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/assistant_pb2.py +33 -0
- yandex/cloud/ai/assistants/v1/assistant_pb2.pyi +101 -0
- yandex/cloud/ai/assistants/v1/assistant_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/assistant_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/assistant_service_pb2.py +88 -0
- yandex/cloud/ai/assistants/v1/assistant_service_pb2.pyi +293 -0
- yandex/cloud/ai/assistants/v1/assistant_service_pb2_grpc.py +232 -0
- yandex/cloud/ai/assistants/v1/assistant_service_pb2_grpc.pyi +127 -0
- yandex/cloud/ai/assistants/v1/common_pb2.py +33 -0
- yandex/cloud/ai/assistants/v1/common_pb2.pyi +91 -0
- yandex/cloud/ai/assistants/v1/common_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/common_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/runs/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/runs/run_pb2.py +40 -0
- yandex/cloud/ai/assistants/v1/runs/run_pb2.pyi +154 -0
- yandex/cloud/ai/assistants/v1/runs/run_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/runs/run_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2.py +77 -0
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2.pyi +237 -0
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2_grpc.py +199 -0
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2_grpc.pyi +110 -0
- yandex/cloud/ai/assistants/v1/searchindex/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2.py +28 -0
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2.pyi +47 -0
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2.py +28 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2.pyi +43 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2.py +45 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2.pyi +72 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2_grpc.py +100 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2_grpc.pyi +59 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2.py +37 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2.pyi +132 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2.py +77 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2.pyi +205 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2_grpc.py +200 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2_grpc.pyi +111 -0
- yandex/cloud/ai/assistants/v1/threads/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/threads/message_pb2.py +45 -0
- yandex/cloud/ai/assistants/v1/threads/message_pb2.pyi +176 -0
- yandex/cloud/ai/assistants/v1/threads/message_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/threads/message_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2.py +55 -0
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2.pyi +91 -0
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2_grpc.py +133 -0
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2_grpc.pyi +76 -0
- yandex/cloud/ai/assistants/v1/threads/thread_pb2.py +32 -0
- yandex/cloud/ai/assistants/v1/threads/thread_pb2.pyi +85 -0
- yandex/cloud/ai/assistants/v1/threads/thread_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/threads/thread_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2.py +76 -0
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2.pyi +200 -0
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2_grpc.py +199 -0
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2_grpc.pyi +110 -0
- yandex/cloud/ai/assistants/v1/users/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/users/user_pb2.py +32 -0
- yandex/cloud/ai/assistants/v1/users/user_pb2.pyi +85 -0
- yandex/cloud/ai/assistants/v1/users/user_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/users/user_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/users/user_service_pb2.py +75 -0
- yandex/cloud/ai/assistants/v1/users/user_service_pb2.pyi +195 -0
- yandex/cloud/ai/assistants/v1/users/user_service_pb2_grpc.py +199 -0
- yandex/cloud/ai/assistants/v1/users/user_service_pb2_grpc.pyi +110 -0
- yandex/cloud/ai/common/__init__.py +0 -0
- yandex/cloud/ai/common/common_pb2.py +30 -0
- yandex/cloud/ai/common/common_pb2.pyi +69 -0
- yandex/cloud/ai/common/common_pb2_grpc.py +4 -0
- yandex/cloud/ai/common/common_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/files/__init__.py +0 -0
- yandex/cloud/ai/files/v1/__init__.py +0 -0
- yandex/cloud/ai/files/v1/file_pb2.py +32 -0
- yandex/cloud/ai/files/v1/file_pb2.pyi +85 -0
- yandex/cloud/ai/files/v1/file_pb2_grpc.py +4 -0
- yandex/cloud/ai/files/v1/file_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/files/v1/file_service_pb2.py +85 -0
- yandex/cloud/ai/files/v1/file_service_pb2.pyi +228 -0
- yandex/cloud/ai/files/v1/file_service_pb2_grpc.py +232 -0
- yandex/cloud/ai/files/v1/file_service_pb2_grpc.pyi +127 -0
- yandex/cloud/backup/v1/provider_service_pb2.py +12 -10
- yandex/cloud/backup/v1/provider_service_pb2.pyi +5 -1
- yandex/cloud/billing/v1/customer_pb2.pyi +32 -8
- yandex/cloud/billing/v1/customer_service_pb2.pyi +10 -2
- yandex/cloud/cloudrouter/__init__.py +0 -0
- yandex/cloud/cloudrouter/v1/__init__.py +0 -0
- yandex/cloud/cloudrouter/v1/routing_instance_pb2.py +42 -0
- yandex/cloud/cloudrouter/v1/routing_instance_pb2.pyi +215 -0
- yandex/cloud/cloudrouter/v1/routing_instance_pb2_grpc.py +4 -0
- yandex/cloud/cloudrouter/v1/routing_instance_pb2_grpc.pyi +17 -0
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2.py +57 -0
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2.pyi +137 -0
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2_grpc.py +179 -0
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2_grpc.pyi +138 -0
- yandex/cloud/iam/v1/refresh_token_pb2.py +29 -0
- yandex/cloud/iam/v1/refresh_token_pb2.pyi +98 -0
- yandex/cloud/iam/v1/refresh_token_pb2_grpc.py +4 -0
- yandex/cloud/iam/v1/refresh_token_pb2_grpc.pyi +17 -0
- yandex/cloud/iam/v1/refresh_token_service_pb2.py +67 -0
- yandex/cloud/iam/v1/refresh_token_service_pb2.pyi +186 -0
- yandex/cloud/iam/v1/refresh_token_service_pb2_grpc.py +105 -0
- yandex/cloud/iam/v1/refresh_token_service_pb2_grpc.pyi +71 -0
- yandex/cloud/iam/v1/service_control_pb2.py +5 -5
- yandex/cloud/iam/v1/service_control_pb2.pyi +4 -0
- yandex/cloud/lockbox/v1/secret_pb2.py +23 -11
- yandex/cloud/lockbox/v1/secret_pb2.pyi +73 -4
- yandex/cloud/lockbox/v1/secret_service_pb2.py +46 -46
- yandex/cloud/lockbox/v1/secret_service_pb2.pyi +14 -3
- yandex/cloud/mdb/clickhouse/v1/cluster_pb2.py +27 -25
- yandex/cloud/mdb/clickhouse/v1/cluster_pb2.pyi +16 -0
- yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2.py +81 -57
- yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2.pyi +144 -0
- yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2_grpc.py +68 -0
- yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2_grpc.pyi +40 -0
- yandex/cloud/oauth/claims_pb2.py +8 -7
- yandex/cloud/oauth/claims_pb2.pyi +9 -2
- yandex/cloud/serverless/eventrouter/v1/connector_service_pb2.pyi +1 -1
- yandex/cloud/serverless/eventrouter/v1/rule_pb2.pyi +3 -1
- yandex/cloud/serverless/eventrouter/v1/rule_service_pb2.pyi +2 -0
- yandex/cloud/storage/v1/s3api_pb2.py +35 -0
- yandex/cloud/storage/v1/s3api_pb2.pyi +181 -0
- yandex/cloud/storage/v1/s3api_pb2_grpc.py +4 -0
- yandex/cloud/storage/v1/s3api_pb2_grpc.pyi +17 -0
- yandexcloud/_sdk.py +2 -0
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/RECORD +135 -28
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,138 @@
|
|
|
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.cloudrouter.v1.routing_instance_pb2
|
|
12
|
+
import yandex.cloud.cloudrouter.v1.routing_instance_service_pb2
|
|
13
|
+
|
|
14
|
+
_T = typing.TypeVar("_T")
|
|
15
|
+
|
|
16
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
17
|
+
|
|
18
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
19
|
+
...
|
|
20
|
+
|
|
21
|
+
class RoutingInstanceServiceStub:
|
|
22
|
+
"""A set of methods for managing RoutingInstance resources."""
|
|
23
|
+
|
|
24
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
25
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
26
|
+
yandex.cloud.cloudrouter.v1.routing_instance_service_pb2.GetRoutingInstanceRequest,
|
|
27
|
+
yandex.cloud.cloudrouter.v1.routing_instance_pb2.RoutingInstance,
|
|
28
|
+
]
|
|
29
|
+
"""Returns the specified RoutingInstance resource.
|
|
30
|
+
|
|
31
|
+
To get the list of available RoutingInstance resources, make a [List] request.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
GetByVpcNetworkId: grpc.UnaryUnaryMultiCallable[
|
|
35
|
+
yandex.cloud.cloudrouter.v1.routing_instance_service_pb2.GetRoutingInstanceByVpcNetworkIdRequest,
|
|
36
|
+
yandex.cloud.cloudrouter.v1.routing_instance_pb2.RoutingInstance,
|
|
37
|
+
]
|
|
38
|
+
"""Returns the RoutingInstance resource by vpcNetworkId
|
|
39
|
+
|
|
40
|
+
To get the list of available RoutingInstance resources, make a [List] request.
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
GetByCicPrivateConnectionId: grpc.UnaryUnaryMultiCallable[
|
|
44
|
+
yandex.cloud.cloudrouter.v1.routing_instance_service_pb2.GetRoutingInstanceByCicPrivateConnectionIdRequest,
|
|
45
|
+
yandex.cloud.cloudrouter.v1.routing_instance_pb2.RoutingInstance,
|
|
46
|
+
]
|
|
47
|
+
"""Returns the RoutingInstance resource by cicPrivateConnectionId
|
|
48
|
+
|
|
49
|
+
To get the list of available RoutingInstance resources, make a [List] request.
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
53
|
+
yandex.cloud.cloudrouter.v1.routing_instance_service_pb2.ListRoutingInstancesRequest,
|
|
54
|
+
yandex.cloud.cloudrouter.v1.routing_instance_service_pb2.ListRoutingInstancesResponse,
|
|
55
|
+
]
|
|
56
|
+
"""Retrieves the list of RoutingInstance resources in the specified folder."""
|
|
57
|
+
|
|
58
|
+
class RoutingInstanceServiceAsyncStub:
|
|
59
|
+
"""A set of methods for managing RoutingInstance resources."""
|
|
60
|
+
|
|
61
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
62
|
+
yandex.cloud.cloudrouter.v1.routing_instance_service_pb2.GetRoutingInstanceRequest,
|
|
63
|
+
yandex.cloud.cloudrouter.v1.routing_instance_pb2.RoutingInstance,
|
|
64
|
+
]
|
|
65
|
+
"""Returns the specified RoutingInstance resource.
|
|
66
|
+
|
|
67
|
+
To get the list of available RoutingInstance resources, make a [List] request.
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
GetByVpcNetworkId: grpc.aio.UnaryUnaryMultiCallable[
|
|
71
|
+
yandex.cloud.cloudrouter.v1.routing_instance_service_pb2.GetRoutingInstanceByVpcNetworkIdRequest,
|
|
72
|
+
yandex.cloud.cloudrouter.v1.routing_instance_pb2.RoutingInstance,
|
|
73
|
+
]
|
|
74
|
+
"""Returns the RoutingInstance resource by vpcNetworkId
|
|
75
|
+
|
|
76
|
+
To get the list of available RoutingInstance resources, make a [List] request.
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
GetByCicPrivateConnectionId: grpc.aio.UnaryUnaryMultiCallable[
|
|
80
|
+
yandex.cloud.cloudrouter.v1.routing_instance_service_pb2.GetRoutingInstanceByCicPrivateConnectionIdRequest,
|
|
81
|
+
yandex.cloud.cloudrouter.v1.routing_instance_pb2.RoutingInstance,
|
|
82
|
+
]
|
|
83
|
+
"""Returns the RoutingInstance resource by cicPrivateConnectionId
|
|
84
|
+
|
|
85
|
+
To get the list of available RoutingInstance resources, make a [List] request.
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
89
|
+
yandex.cloud.cloudrouter.v1.routing_instance_service_pb2.ListRoutingInstancesRequest,
|
|
90
|
+
yandex.cloud.cloudrouter.v1.routing_instance_service_pb2.ListRoutingInstancesResponse,
|
|
91
|
+
]
|
|
92
|
+
"""Retrieves the list of RoutingInstance resources in the specified folder."""
|
|
93
|
+
|
|
94
|
+
class RoutingInstanceServiceServicer(metaclass=abc.ABCMeta):
|
|
95
|
+
"""A set of methods for managing RoutingInstance resources."""
|
|
96
|
+
|
|
97
|
+
@abc.abstractmethod
|
|
98
|
+
def Get(
|
|
99
|
+
self,
|
|
100
|
+
request: yandex.cloud.cloudrouter.v1.routing_instance_service_pb2.GetRoutingInstanceRequest,
|
|
101
|
+
context: _ServicerContext,
|
|
102
|
+
) -> typing.Union[yandex.cloud.cloudrouter.v1.routing_instance_pb2.RoutingInstance, collections.abc.Awaitable[yandex.cloud.cloudrouter.v1.routing_instance_pb2.RoutingInstance]]:
|
|
103
|
+
"""Returns the specified RoutingInstance resource.
|
|
104
|
+
|
|
105
|
+
To get the list of available RoutingInstance resources, make a [List] request.
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
@abc.abstractmethod
|
|
109
|
+
def GetByVpcNetworkId(
|
|
110
|
+
self,
|
|
111
|
+
request: yandex.cloud.cloudrouter.v1.routing_instance_service_pb2.GetRoutingInstanceByVpcNetworkIdRequest,
|
|
112
|
+
context: _ServicerContext,
|
|
113
|
+
) -> typing.Union[yandex.cloud.cloudrouter.v1.routing_instance_pb2.RoutingInstance, collections.abc.Awaitable[yandex.cloud.cloudrouter.v1.routing_instance_pb2.RoutingInstance]]:
|
|
114
|
+
"""Returns the RoutingInstance resource by vpcNetworkId
|
|
115
|
+
|
|
116
|
+
To get the list of available RoutingInstance resources, make a [List] request.
|
|
117
|
+
"""
|
|
118
|
+
|
|
119
|
+
@abc.abstractmethod
|
|
120
|
+
def GetByCicPrivateConnectionId(
|
|
121
|
+
self,
|
|
122
|
+
request: yandex.cloud.cloudrouter.v1.routing_instance_service_pb2.GetRoutingInstanceByCicPrivateConnectionIdRequest,
|
|
123
|
+
context: _ServicerContext,
|
|
124
|
+
) -> typing.Union[yandex.cloud.cloudrouter.v1.routing_instance_pb2.RoutingInstance, collections.abc.Awaitable[yandex.cloud.cloudrouter.v1.routing_instance_pb2.RoutingInstance]]:
|
|
125
|
+
"""Returns the RoutingInstance resource by cicPrivateConnectionId
|
|
126
|
+
|
|
127
|
+
To get the list of available RoutingInstance resources, make a [List] request.
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
@abc.abstractmethod
|
|
131
|
+
def List(
|
|
132
|
+
self,
|
|
133
|
+
request: yandex.cloud.cloudrouter.v1.routing_instance_service_pb2.ListRoutingInstancesRequest,
|
|
134
|
+
context: _ServicerContext,
|
|
135
|
+
) -> typing.Union[yandex.cloud.cloudrouter.v1.routing_instance_service_pb2.ListRoutingInstancesResponse, collections.abc.Awaitable[yandex.cloud.cloudrouter.v1.routing_instance_service_pb2.ListRoutingInstancesResponse]]:
|
|
136
|
+
"""Retrieves the list of RoutingInstance resources in the specified folder."""
|
|
137
|
+
|
|
138
|
+
def add_RoutingInstanceServiceServicer_to_server(servicer: RoutingInstanceServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/iam/v1/refresh_token.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'\n\'yandex/cloud/iam/v1/refresh_token.proto\x12\x13yandex.cloud.iam.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb2\x03\n\x0cRefreshToken\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1c\n\x14\x63lient_instance_info\x18\x02 \x01(\t\x12\x11\n\tclient_id\x18\x03 \x01(\t\x12\x12\n\nsubject_id\x18\x04 \x01(\t\x12.\n\ncreated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nexpires_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0clast_used_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\x10protection_level\x18\x08 \x01(\x0e\x32\x31.yandex.cloud.iam.v1.RefreshToken.ProtectionLevel\"r\n\x0fProtectionLevel\x12 \n\x1cPROTECTION_LEVEL_UNSPECIFIED\x10\x00\x12\x11\n\rNO_PROTECTION\x10\x01\x12\x15\n\x11INSECURE_KEY_DPOP\x10\x02\x12\x13\n\x0fSECURE_KEY_DPOP\x10\x03\x42V\n\x17yandex.cloud.api.iam.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1;iamb\x06proto3')
|
|
18
|
+
|
|
19
|
+
_globals = globals()
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.iam.v1.refresh_token_pb2', _globals)
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
DESCRIPTOR._options = None
|
|
24
|
+
DESCRIPTOR._serialized_options = b'\n\027yandex.cloud.api.iam.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1;iam'
|
|
25
|
+
_globals['_REFRESHTOKEN']._serialized_start=98
|
|
26
|
+
_globals['_REFRESHTOKEN']._serialized_end=532
|
|
27
|
+
_globals['_REFRESHTOKEN_PROTECTIONLEVEL']._serialized_start=418
|
|
28
|
+
_globals['_REFRESHTOKEN_PROTECTIONLEVEL']._serialized_end=532
|
|
29
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,98 @@
|
|
|
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.internal.enum_type_wrapper
|
|
9
|
+
import google.protobuf.message
|
|
10
|
+
import google.protobuf.timestamp_pb2
|
|
11
|
+
import sys
|
|
12
|
+
import typing
|
|
13
|
+
|
|
14
|
+
if sys.version_info >= (3, 10):
|
|
15
|
+
import typing as typing_extensions
|
|
16
|
+
else:
|
|
17
|
+
import typing_extensions
|
|
18
|
+
|
|
19
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
20
|
+
|
|
21
|
+
@typing.final
|
|
22
|
+
class RefreshToken(google.protobuf.message.Message):
|
|
23
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
24
|
+
|
|
25
|
+
class _ProtectionLevel:
|
|
26
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
27
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
28
|
+
|
|
29
|
+
class _ProtectionLevelEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[RefreshToken._ProtectionLevel.ValueType], builtins.type):
|
|
30
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
31
|
+
PROTECTION_LEVEL_UNSPECIFIED: RefreshToken._ProtectionLevel.ValueType # 0
|
|
32
|
+
NO_PROTECTION: RefreshToken._ProtectionLevel.ValueType # 1
|
|
33
|
+
"""Refresh token without DPOP"""
|
|
34
|
+
INSECURE_KEY_DPOP: RefreshToken._ProtectionLevel.ValueType # 2
|
|
35
|
+
"""Refresh token with dpop. The dpop key is not a YubiKey PIV key with required pin/touch policy and attestation."""
|
|
36
|
+
SECURE_KEY_DPOP: RefreshToken._ProtectionLevel.ValueType # 3
|
|
37
|
+
"""Refresh token with dpop. The dpop key is a YubiKey PIV key with required pin/touch policy and attestation."""
|
|
38
|
+
|
|
39
|
+
class ProtectionLevel(_ProtectionLevel, metaclass=_ProtectionLevelEnumTypeWrapper):
|
|
40
|
+
"""Protection level of the refresh token."""
|
|
41
|
+
|
|
42
|
+
PROTECTION_LEVEL_UNSPECIFIED: RefreshToken.ProtectionLevel.ValueType # 0
|
|
43
|
+
NO_PROTECTION: RefreshToken.ProtectionLevel.ValueType # 1
|
|
44
|
+
"""Refresh token without DPOP"""
|
|
45
|
+
INSECURE_KEY_DPOP: RefreshToken.ProtectionLevel.ValueType # 2
|
|
46
|
+
"""Refresh token with dpop. The dpop key is not a YubiKey PIV key with required pin/touch policy and attestation."""
|
|
47
|
+
SECURE_KEY_DPOP: RefreshToken.ProtectionLevel.ValueType # 3
|
|
48
|
+
"""Refresh token with dpop. The dpop key is a YubiKey PIV key with required pin/touch policy and attestation."""
|
|
49
|
+
|
|
50
|
+
ID_FIELD_NUMBER: builtins.int
|
|
51
|
+
CLIENT_INSTANCE_INFO_FIELD_NUMBER: builtins.int
|
|
52
|
+
CLIENT_ID_FIELD_NUMBER: builtins.int
|
|
53
|
+
SUBJECT_ID_FIELD_NUMBER: builtins.int
|
|
54
|
+
CREATED_AT_FIELD_NUMBER: builtins.int
|
|
55
|
+
EXPIRES_AT_FIELD_NUMBER: builtins.int
|
|
56
|
+
LAST_USED_AT_FIELD_NUMBER: builtins.int
|
|
57
|
+
PROTECTION_LEVEL_FIELD_NUMBER: builtins.int
|
|
58
|
+
id: builtins.str
|
|
59
|
+
"""Refresh Token id."""
|
|
60
|
+
client_instance_info: builtins.str
|
|
61
|
+
"""Information about the app for which the Refresh Token was issued."""
|
|
62
|
+
client_id: builtins.str
|
|
63
|
+
"""The OAuth client identifier for which the Refresh Token was issued."""
|
|
64
|
+
subject_id: builtins.str
|
|
65
|
+
"""The subject identifier for whom the Refresh Token was issued."""
|
|
66
|
+
protection_level: global___RefreshToken.ProtectionLevel.ValueType
|
|
67
|
+
"""Protection level of the refresh token.
|
|
68
|
+
|
|
69
|
+
It shows whether DPOP was used to protect the Refresh Token and and the level of security of the storage used for the DPOP key.
|
|
70
|
+
"""
|
|
71
|
+
@property
|
|
72
|
+
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
73
|
+
"""Refresh token creation time."""
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
def expires_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
77
|
+
"""Refresh token expiration time."""
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def last_used_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
81
|
+
"""Timestamp for the last authentication using this Refresh Token."""
|
|
82
|
+
|
|
83
|
+
def __init__(
|
|
84
|
+
self,
|
|
85
|
+
*,
|
|
86
|
+
id: builtins.str = ...,
|
|
87
|
+
client_instance_info: builtins.str = ...,
|
|
88
|
+
client_id: builtins.str = ...,
|
|
89
|
+
subject_id: builtins.str = ...,
|
|
90
|
+
created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
91
|
+
expires_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
92
|
+
last_used_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
93
|
+
protection_level: global___RefreshToken.ProtectionLevel.ValueType = ...,
|
|
94
|
+
) -> None: ...
|
|
95
|
+
def HasField(self, field_name: typing.Literal["created_at", b"created_at", "expires_at", b"expires_at", "last_used_at", b"last_used_at"]) -> builtins.bool: ...
|
|
96
|
+
def ClearField(self, field_name: typing.Literal["client_id", b"client_id", "client_instance_info", b"client_instance_info", "created_at", b"created_at", "expires_at", b"expires_at", "id", b"id", "last_used_at", b"last_used_at", "protection_level", b"protection_level", "subject_id", b"subject_id"]) -> None: ...
|
|
97
|
+
|
|
98
|
+
global___RefreshToken = RefreshToken
|
|
@@ -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,67 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/iam/v1/refresh_token_service.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.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
15
|
+
from yandex.cloud.api import operation_pb2 as yandex_dot_cloud_dot_api_dot_operation__pb2
|
|
16
|
+
from yandex.cloud.iam.v1 import refresh_token_pb2 as yandex_dot_cloud_dot_iam_dot_v1_dot_refresh__token__pb2
|
|
17
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
18
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/yandex/cloud/iam/v1/refresh_token_service.proto\x12\x13yandex.cloud.iam.v1\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a\'yandex/cloud/iam/v1/refresh_token.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\"K\n\x1aRevokeRefreshTokenMetadata\x12\x12\n\nsubject_id\x18\x01 \x01(\t\x12\x19\n\x11refresh_token_ids\x18\x02 \x03(\t\"\x9f\x01\n\x18ListRefreshTokensRequest\x12\x1c\n\nsubject_id\x18\x01 \x01(\tB\x08\x8a\xc8\x31\x04<=50\x12\x1d\n\tpage_size\x18\x04 \x01(\x03\x42\n\xfa\xc7\x31\x06\x30-1000\x12\x1e\n\npage_token\x18\x05 \x01(\tB\n\x8a\xc8\x31\x06<=2000\x12\x1a\n\x06\x66ilter\x18\x06 \x01(\tB\n\x8a\xc8\x31\x06<=1000J\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04\"o\n\x19ListRefreshTokensResponse\x12\x39\n\x0erefresh_tokens\x18\x01 \x03(\x0b\x32!.yandex.cloud.iam.v1.RefreshToken\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb2\x01\n\x19RevokeRefreshTokenRequest\x12$\n\x10refresh_token_id\x18\x01 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12#\n\rrefresh_token\x18\x02 \x01(\tB\n\x8a\xc8\x31\x06<=1000H\x00\x12:\n\rrevoke_filter\x18\x03 \x01(\x0b\x32!.yandex.cloud.iam.v1.RevokeFilterH\x00\x42\x0e\n\x06\x66ilter\x12\x04\xc0\xc1\x31\x01\"y\n\x0cRevokeFilter\x12\x1b\n\tclient_id\x18\x02 \x01(\tB\x08\x8a\xc8\x31\x04<=50\x12\x1c\n\nsubject_id\x18\x03 \x01(\tB\x08\x8a\xc8\x31\x04<=50\x12(\n\x14\x63lient_instance_info\x18\x04 \x01(\tB\n\x8a\xc8\x31\x06<=1000J\x04\x08\x01\x10\x02\"7\n\x1aRevokeRefreshTokenResponse\x12\x19\n\x11refresh_token_ids\x18\x01 \x03(\t2\xdf\x02\n\x13RefreshTokenService\x12\x84\x01\n\x04List\x12-.yandex.cloud.iam.v1.ListRefreshTokensRequest\x1a..yandex.cloud.iam.v1.ListRefreshTokensResponse\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/iam/v1/refreshTokens\x12\xc0\x01\n\x06Revoke\x12..yandex.cloud.iam.v1.RevokeRefreshTokenRequest\x1a!.yandex.cloud.operation.Operation\"c\xb2\xd2*8\n\x1aRevokeRefreshTokenMetadata\x12\x1aRevokeRefreshTokenResponse\x82\xd3\xe4\x93\x02!\"\x1c/iam/v1/refreshTokens:revoke:\x01*BV\n\x17yandex.cloud.api.iam.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1;iamb\x06proto3')
|
|
22
|
+
|
|
23
|
+
_globals = globals()
|
|
24
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
25
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.iam.v1.refresh_token_service_pb2', _globals)
|
|
26
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
27
|
+
DESCRIPTOR._options = None
|
|
28
|
+
DESCRIPTOR._serialized_options = b'\n\027yandex.cloud.api.iam.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1;iam'
|
|
29
|
+
_LISTREFRESHTOKENSREQUEST.fields_by_name['subject_id']._options = None
|
|
30
|
+
_LISTREFRESHTOKENSREQUEST.fields_by_name['subject_id']._serialized_options = b'\212\3101\004<=50'
|
|
31
|
+
_LISTREFRESHTOKENSREQUEST.fields_by_name['page_size']._options = None
|
|
32
|
+
_LISTREFRESHTOKENSREQUEST.fields_by_name['page_size']._serialized_options = b'\372\3071\0060-1000'
|
|
33
|
+
_LISTREFRESHTOKENSREQUEST.fields_by_name['page_token']._options = None
|
|
34
|
+
_LISTREFRESHTOKENSREQUEST.fields_by_name['page_token']._serialized_options = b'\212\3101\006<=2000'
|
|
35
|
+
_LISTREFRESHTOKENSREQUEST.fields_by_name['filter']._options = None
|
|
36
|
+
_LISTREFRESHTOKENSREQUEST.fields_by_name['filter']._serialized_options = b'\212\3101\006<=1000'
|
|
37
|
+
_REVOKEREFRESHTOKENREQUEST.oneofs_by_name['filter']._options = None
|
|
38
|
+
_REVOKEREFRESHTOKENREQUEST.oneofs_by_name['filter']._serialized_options = b'\300\3011\001'
|
|
39
|
+
_REVOKEREFRESHTOKENREQUEST.fields_by_name['refresh_token_id']._options = None
|
|
40
|
+
_REVOKEREFRESHTOKENREQUEST.fields_by_name['refresh_token_id']._serialized_options = b'\212\3101\004<=50'
|
|
41
|
+
_REVOKEREFRESHTOKENREQUEST.fields_by_name['refresh_token']._options = None
|
|
42
|
+
_REVOKEREFRESHTOKENREQUEST.fields_by_name['refresh_token']._serialized_options = b'\212\3101\006<=1000'
|
|
43
|
+
_REVOKEFILTER.fields_by_name['client_id']._options = None
|
|
44
|
+
_REVOKEFILTER.fields_by_name['client_id']._serialized_options = b'\212\3101\004<=50'
|
|
45
|
+
_REVOKEFILTER.fields_by_name['subject_id']._options = None
|
|
46
|
+
_REVOKEFILTER.fields_by_name['subject_id']._serialized_options = b'\212\3101\004<=50'
|
|
47
|
+
_REVOKEFILTER.fields_by_name['client_instance_info']._options = None
|
|
48
|
+
_REVOKEFILTER.fields_by_name['client_instance_info']._serialized_options = b'\212\3101\006<=1000'
|
|
49
|
+
_REFRESHTOKENSERVICE.methods_by_name['List']._options = None
|
|
50
|
+
_REFRESHTOKENSERVICE.methods_by_name['List']._serialized_options = b'\202\323\344\223\002\027\022\025/iam/v1/refreshTokens'
|
|
51
|
+
_REFRESHTOKENSERVICE.methods_by_name['Revoke']._options = None
|
|
52
|
+
_REFRESHTOKENSERVICE.methods_by_name['Revoke']._serialized_options = b'\262\322*8\n\032RevokeRefreshTokenMetadata\022\032RevokeRefreshTokenResponse\202\323\344\223\002!\"\034/iam/v1/refreshTokens:revoke:\001*'
|
|
53
|
+
_globals['_REVOKEREFRESHTOKENMETADATA']._serialized_start=248
|
|
54
|
+
_globals['_REVOKEREFRESHTOKENMETADATA']._serialized_end=323
|
|
55
|
+
_globals['_LISTREFRESHTOKENSREQUEST']._serialized_start=326
|
|
56
|
+
_globals['_LISTREFRESHTOKENSREQUEST']._serialized_end=485
|
|
57
|
+
_globals['_LISTREFRESHTOKENSRESPONSE']._serialized_start=487
|
|
58
|
+
_globals['_LISTREFRESHTOKENSRESPONSE']._serialized_end=598
|
|
59
|
+
_globals['_REVOKEREFRESHTOKENREQUEST']._serialized_start=601
|
|
60
|
+
_globals['_REVOKEREFRESHTOKENREQUEST']._serialized_end=779
|
|
61
|
+
_globals['_REVOKEFILTER']._serialized_start=781
|
|
62
|
+
_globals['_REVOKEFILTER']._serialized_end=902
|
|
63
|
+
_globals['_REVOKEREFRESHTOKENRESPONSE']._serialized_start=904
|
|
64
|
+
_globals['_REVOKEREFRESHTOKENRESPONSE']._serialized_end=959
|
|
65
|
+
_globals['_REFRESHTOKENSERVICE']._serialized_start=962
|
|
66
|
+
_globals['_REFRESHTOKENSERVICE']._serialized_end=1313
|
|
67
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,186 @@
|
|
|
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.refresh_token_pb2
|
|
13
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
15
|
+
|
|
16
|
+
@typing.final
|
|
17
|
+
class RevokeRefreshTokenMetadata(google.protobuf.message.Message):
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
19
|
+
|
|
20
|
+
SUBJECT_ID_FIELD_NUMBER: builtins.int
|
|
21
|
+
REFRESH_TOKEN_IDS_FIELD_NUMBER: builtins.int
|
|
22
|
+
subject_id: builtins.str
|
|
23
|
+
@property
|
|
24
|
+
def refresh_token_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
25
|
+
"""Id of revoked Refresh Tokens."""
|
|
26
|
+
|
|
27
|
+
def __init__(
|
|
28
|
+
self,
|
|
29
|
+
*,
|
|
30
|
+
subject_id: builtins.str = ...,
|
|
31
|
+
refresh_token_ids: collections.abc.Iterable[builtins.str] | None = ...,
|
|
32
|
+
) -> None: ...
|
|
33
|
+
def ClearField(self, field_name: typing.Literal["refresh_token_ids", b"refresh_token_ids", "subject_id", b"subject_id"]) -> None: ...
|
|
34
|
+
|
|
35
|
+
global___RevokeRefreshTokenMetadata = RevokeRefreshTokenMetadata
|
|
36
|
+
|
|
37
|
+
@typing.final
|
|
38
|
+
class ListRefreshTokensRequest(google.protobuf.message.Message):
|
|
39
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
40
|
+
|
|
41
|
+
SUBJECT_ID_FIELD_NUMBER: builtins.int
|
|
42
|
+
PAGE_SIZE_FIELD_NUMBER: builtins.int
|
|
43
|
+
PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
44
|
+
FILTER_FIELD_NUMBER: builtins.int
|
|
45
|
+
subject_id: builtins.str
|
|
46
|
+
page_size: builtins.int
|
|
47
|
+
"""The maximum number of results per page to return. If the number of available
|
|
48
|
+
results is larger than [page_size],
|
|
49
|
+
the service returns a [ListRefreshTokensResponse.next_page_token]
|
|
50
|
+
that can be used to get the next page of results in subsequent list requests.
|
|
51
|
+
Default value: 100.
|
|
52
|
+
"""
|
|
53
|
+
page_token: builtins.str
|
|
54
|
+
"""Page token. To get the next page of results, set [page_token]
|
|
55
|
+
to the [ListRefreshTokensResponse.next_page_token]
|
|
56
|
+
returned by a previous list request.
|
|
57
|
+
"""
|
|
58
|
+
filter: builtins.str
|
|
59
|
+
"""A filter expression that filters refresh tokens listed in the response.
|
|
60
|
+
|
|
61
|
+
The expression must specify:
|
|
62
|
+
1. The field name. Currently you can use filtering only on [RefreshToken.client_instance_info], [RefreshToken.client_id] or [RefreshToken.protection_level] fields.
|
|
63
|
+
2. The operator. An `=` operator can be used for all fields. An 'IN' operator can be used for [RefreshToken.protection_level].
|
|
64
|
+
3. The value. The value must be in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-zA-Z][_-a-zA-Z0-9]{1,61}[a-z0-9]`.
|
|
65
|
+
Example of a filter: `client_instance_info="clientInstanceInfo" AND protection_level IN ("INSECURE_KEY_DPOP", "SECURE_KEY_DPOP")`.
|
|
66
|
+
"""
|
|
67
|
+
def __init__(
|
|
68
|
+
self,
|
|
69
|
+
*,
|
|
70
|
+
subject_id: builtins.str = ...,
|
|
71
|
+
page_size: builtins.int = ...,
|
|
72
|
+
page_token: builtins.str = ...,
|
|
73
|
+
filter: builtins.str = ...,
|
|
74
|
+
) -> None: ...
|
|
75
|
+
def ClearField(self, field_name: typing.Literal["filter", b"filter", "page_size", b"page_size", "page_token", b"page_token", "subject_id", b"subject_id"]) -> None: ...
|
|
76
|
+
|
|
77
|
+
global___ListRefreshTokensRequest = ListRefreshTokensRequest
|
|
78
|
+
|
|
79
|
+
@typing.final
|
|
80
|
+
class ListRefreshTokensResponse(google.protobuf.message.Message):
|
|
81
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
82
|
+
|
|
83
|
+
REFRESH_TOKENS_FIELD_NUMBER: builtins.int
|
|
84
|
+
NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
85
|
+
next_page_token: builtins.str
|
|
86
|
+
"""This token allows you to get the next page of results for list requests. If the number of results
|
|
87
|
+
is larger than [ListRefreshTokensForSubjectRequest.page_size], use
|
|
88
|
+
the [next_page_token] as the value
|
|
89
|
+
for the [ListRefreshTokensForSubjectRequest.page_token] query parameter
|
|
90
|
+
in the next list request. Each subsequent list request will have its own
|
|
91
|
+
[next_page_token] to continue paging through the results.
|
|
92
|
+
"""
|
|
93
|
+
@property
|
|
94
|
+
def refresh_tokens(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.iam.v1.refresh_token_pb2.RefreshToken]:
|
|
95
|
+
"""List of Refresh Tokens"""
|
|
96
|
+
|
|
97
|
+
def __init__(
|
|
98
|
+
self,
|
|
99
|
+
*,
|
|
100
|
+
refresh_tokens: collections.abc.Iterable[yandex.cloud.iam.v1.refresh_token_pb2.RefreshToken] | None = ...,
|
|
101
|
+
next_page_token: builtins.str = ...,
|
|
102
|
+
) -> None: ...
|
|
103
|
+
def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "refresh_tokens", b"refresh_tokens"]) -> None: ...
|
|
104
|
+
|
|
105
|
+
global___ListRefreshTokensResponse = ListRefreshTokensResponse
|
|
106
|
+
|
|
107
|
+
@typing.final
|
|
108
|
+
class RevokeRefreshTokenRequest(google.protobuf.message.Message):
|
|
109
|
+
"""Revoke Refresh Token request.
|
|
110
|
+
If none of the parameters refresh_token_id, refresh_token, or revoke_filter are provided, all Refresh Tokens for the current subject will be revoked.
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
114
|
+
|
|
115
|
+
REFRESH_TOKEN_ID_FIELD_NUMBER: builtins.int
|
|
116
|
+
REFRESH_TOKEN_FIELD_NUMBER: builtins.int
|
|
117
|
+
REVOKE_FILTER_FIELD_NUMBER: builtins.int
|
|
118
|
+
refresh_token_id: builtins.str
|
|
119
|
+
"""Identifier of the Refresh Token to be revoked."""
|
|
120
|
+
refresh_token: builtins.str
|
|
121
|
+
"""The Refresh Token to be revoked."""
|
|
122
|
+
@property
|
|
123
|
+
def revoke_filter(self) -> global___RevokeFilter:
|
|
124
|
+
"""The filter for revoking Refresh Token"""
|
|
125
|
+
|
|
126
|
+
def __init__(
|
|
127
|
+
self,
|
|
128
|
+
*,
|
|
129
|
+
refresh_token_id: builtins.str = ...,
|
|
130
|
+
refresh_token: builtins.str = ...,
|
|
131
|
+
revoke_filter: global___RevokeFilter | None = ...,
|
|
132
|
+
) -> None: ...
|
|
133
|
+
def HasField(self, field_name: typing.Literal["filter", b"filter", "refresh_token", b"refresh_token", "refresh_token_id", b"refresh_token_id", "revoke_filter", b"revoke_filter"]) -> builtins.bool: ...
|
|
134
|
+
def ClearField(self, field_name: typing.Literal["filter", b"filter", "refresh_token", b"refresh_token", "refresh_token_id", b"refresh_token_id", "revoke_filter", b"revoke_filter"]) -> None: ...
|
|
135
|
+
def WhichOneof(self, oneof_group: typing.Literal["filter", b"filter"]) -> typing.Literal["refresh_token_id", "refresh_token", "revoke_filter"] | None: ...
|
|
136
|
+
|
|
137
|
+
global___RevokeRefreshTokenRequest = RevokeRefreshTokenRequest
|
|
138
|
+
|
|
139
|
+
@typing.final
|
|
140
|
+
class RevokeFilter(google.protobuf.message.Message):
|
|
141
|
+
"""The Filter object allows filtering Refresh Tokens that will be revoked.
|
|
142
|
+
It contains three optional fields.
|
|
143
|
+
When multiple fields are provided, they are combined using a logical AND operation.
|
|
144
|
+
"""
|
|
145
|
+
|
|
146
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
147
|
+
|
|
148
|
+
CLIENT_ID_FIELD_NUMBER: builtins.int
|
|
149
|
+
SUBJECT_ID_FIELD_NUMBER: builtins.int
|
|
150
|
+
CLIENT_INSTANCE_INFO_FIELD_NUMBER: builtins.int
|
|
151
|
+
client_id: builtins.str
|
|
152
|
+
"""The OAuth client identifier for which the Refresh Token was issued."""
|
|
153
|
+
subject_id: builtins.str
|
|
154
|
+
"""The subject identifier for whom the Refresh Token was issued.
|
|
155
|
+
If not specified, it defaults to the subject that made the request.
|
|
156
|
+
"""
|
|
157
|
+
client_instance_info: builtins.str
|
|
158
|
+
"""Information about the app for which the Refresh Token was issued."""
|
|
159
|
+
def __init__(
|
|
160
|
+
self,
|
|
161
|
+
*,
|
|
162
|
+
client_id: builtins.str = ...,
|
|
163
|
+
subject_id: builtins.str = ...,
|
|
164
|
+
client_instance_info: builtins.str = ...,
|
|
165
|
+
) -> None: ...
|
|
166
|
+
def ClearField(self, field_name: typing.Literal["client_id", b"client_id", "client_instance_info", b"client_instance_info", "subject_id", b"subject_id"]) -> None: ...
|
|
167
|
+
|
|
168
|
+
global___RevokeFilter = RevokeFilter
|
|
169
|
+
|
|
170
|
+
@typing.final
|
|
171
|
+
class RevokeRefreshTokenResponse(google.protobuf.message.Message):
|
|
172
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
173
|
+
|
|
174
|
+
REFRESH_TOKEN_IDS_FIELD_NUMBER: builtins.int
|
|
175
|
+
@property
|
|
176
|
+
def refresh_token_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
177
|
+
"""Id of revoked Refresh Tokens."""
|
|
178
|
+
|
|
179
|
+
def __init__(
|
|
180
|
+
self,
|
|
181
|
+
*,
|
|
182
|
+
refresh_token_ids: collections.abc.Iterable[builtins.str] | None = ...,
|
|
183
|
+
) -> None: ...
|
|
184
|
+
def ClearField(self, field_name: typing.Literal["refresh_token_ids", b"refresh_token_ids"]) -> None: ...
|
|
185
|
+
|
|
186
|
+
global___RevokeRefreshTokenResponse = RevokeRefreshTokenResponse
|
|
@@ -0,0 +1,105 @@
|
|
|
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 import refresh_token_service_pb2 as yandex_dot_cloud_dot_iam_dot_v1_dot_refresh__token__service__pb2
|
|
6
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class RefreshTokenServiceStub(object):
|
|
10
|
+
"""A set of methods for managing Refresh Tokens.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, channel):
|
|
14
|
+
"""Constructor.
|
|
15
|
+
|
|
16
|
+
Args:
|
|
17
|
+
channel: A grpc.Channel.
|
|
18
|
+
"""
|
|
19
|
+
self.List = channel.unary_unary(
|
|
20
|
+
'/yandex.cloud.iam.v1.RefreshTokenService/List',
|
|
21
|
+
request_serializer=yandex_dot_cloud_dot_iam_dot_v1_dot_refresh__token__service__pb2.ListRefreshTokensRequest.SerializeToString,
|
|
22
|
+
response_deserializer=yandex_dot_cloud_dot_iam_dot_v1_dot_refresh__token__service__pb2.ListRefreshTokensResponse.FromString,
|
|
23
|
+
)
|
|
24
|
+
self.Revoke = channel.unary_unary(
|
|
25
|
+
'/yandex.cloud.iam.v1.RefreshTokenService/Revoke',
|
|
26
|
+
request_serializer=yandex_dot_cloud_dot_iam_dot_v1_dot_refresh__token__service__pb2.RevokeRefreshTokenRequest.SerializeToString,
|
|
27
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class RefreshTokenServiceServicer(object):
|
|
32
|
+
"""A set of methods for managing Refresh Tokens.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
def List(self, request, context):
|
|
36
|
+
"""List subjects Refresh Tokens.
|
|
37
|
+
"""
|
|
38
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
39
|
+
context.set_details('Method not implemented!')
|
|
40
|
+
raise NotImplementedError('Method not implemented!')
|
|
41
|
+
|
|
42
|
+
def Revoke(self, request, context):
|
|
43
|
+
"""Revoke Refresh Tokens. Several Refresh Tokens can be revoked by one request.
|
|
44
|
+
"""
|
|
45
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
46
|
+
context.set_details('Method not implemented!')
|
|
47
|
+
raise NotImplementedError('Method not implemented!')
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def add_RefreshTokenServiceServicer_to_server(servicer, server):
|
|
51
|
+
rpc_method_handlers = {
|
|
52
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
53
|
+
servicer.List,
|
|
54
|
+
request_deserializer=yandex_dot_cloud_dot_iam_dot_v1_dot_refresh__token__service__pb2.ListRefreshTokensRequest.FromString,
|
|
55
|
+
response_serializer=yandex_dot_cloud_dot_iam_dot_v1_dot_refresh__token__service__pb2.ListRefreshTokensResponse.SerializeToString,
|
|
56
|
+
),
|
|
57
|
+
'Revoke': grpc.unary_unary_rpc_method_handler(
|
|
58
|
+
servicer.Revoke,
|
|
59
|
+
request_deserializer=yandex_dot_cloud_dot_iam_dot_v1_dot_refresh__token__service__pb2.RevokeRefreshTokenRequest.FromString,
|
|
60
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
61
|
+
),
|
|
62
|
+
}
|
|
63
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
64
|
+
'yandex.cloud.iam.v1.RefreshTokenService', rpc_method_handlers)
|
|
65
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# This class is part of an EXPERIMENTAL API.
|
|
69
|
+
class RefreshTokenService(object):
|
|
70
|
+
"""A set of methods for managing Refresh Tokens.
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
@staticmethod
|
|
74
|
+
def List(request,
|
|
75
|
+
target,
|
|
76
|
+
options=(),
|
|
77
|
+
channel_credentials=None,
|
|
78
|
+
call_credentials=None,
|
|
79
|
+
insecure=False,
|
|
80
|
+
compression=None,
|
|
81
|
+
wait_for_ready=None,
|
|
82
|
+
timeout=None,
|
|
83
|
+
metadata=None):
|
|
84
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.iam.v1.RefreshTokenService/List',
|
|
85
|
+
yandex_dot_cloud_dot_iam_dot_v1_dot_refresh__token__service__pb2.ListRefreshTokensRequest.SerializeToString,
|
|
86
|
+
yandex_dot_cloud_dot_iam_dot_v1_dot_refresh__token__service__pb2.ListRefreshTokensResponse.FromString,
|
|
87
|
+
options, channel_credentials,
|
|
88
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
89
|
+
|
|
90
|
+
@staticmethod
|
|
91
|
+
def Revoke(request,
|
|
92
|
+
target,
|
|
93
|
+
options=(),
|
|
94
|
+
channel_credentials=None,
|
|
95
|
+
call_credentials=None,
|
|
96
|
+
insecure=False,
|
|
97
|
+
compression=None,
|
|
98
|
+
wait_for_ready=None,
|
|
99
|
+
timeout=None,
|
|
100
|
+
metadata=None):
|
|
101
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.iam.v1.RefreshTokenService/Revoke',
|
|
102
|
+
yandex_dot_cloud_dot_iam_dot_v1_dot_refresh__token__service__pb2.RevokeRefreshTokenRequest.SerializeToString,
|
|
103
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
104
|
+
options, channel_credentials,
|
|
105
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|