yandexcloud 0.342.0__py3-none-any.whl → 0.344.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/batch_inference/v1/batch_inference_task_pb2.py +14 -7
- yandex/cloud/ai/batch_inference/v1/batch_inference_task_pb2.pyi +75 -2
- yandex/cloud/ai/tts/v3/tts_pb2.py +13 -1
- yandex/cloud/ai/tts/v3/tts_pb2.pyi +171 -0
- yandex/cloud/ai/tts/v3/tts_service_pb2.py +2 -2
- yandex/cloud/ai/tts/v3/tts_service_pb2_grpc.py +44 -0
- yandex/cloud/ai/tts/v3/tts_service_pb2_grpc.pyi +20 -0
- yandex/cloud/ai/tuning/v1/tuning_service_pb2.py +70 -68
- yandex/cloud/ai/tuning/v1/tuning_service_pb2.pyi +10 -2
- yandex/cloud/certificatemanager/v1/certificate_content_service_pb2.py +28 -9
- yandex/cloud/certificatemanager/v1/certificate_content_service_pb2.pyi +70 -0
- yandex/cloud/certificatemanager/v1/certificate_content_service_pb2_grpc.py +43 -0
- yandex/cloud/certificatemanager/v1/certificate_content_service_pb2_grpc.pyi +17 -0
- yandex/cloud/clouddesktop/__init__.py +0 -0
- yandex/cloud/clouddesktop/v1/__init__.py +0 -0
- yandex/cloud/clouddesktop/v1/desktop_group_pb2.py +71 -0
- yandex/cloud/clouddesktop/v1/desktop_group_pb2.pyi +232 -0
- yandex/cloud/clouddesktop/v1/desktop_group_pb2_grpc.py +24 -0
- yandex/cloud/clouddesktop/v1/desktop_group_pb2_grpc.pyi +17 -0
- yandex/cloud/clouddesktop/v1/desktop_group_service_pb2.py +146 -0
- yandex/cloud/clouddesktop/v1/desktop_group_service_pb2.pyi +443 -0
- yandex/cloud/clouddesktop/v1/desktop_group_service_pb2_grpc.py +502 -0
- yandex/cloud/clouddesktop/v1/desktop_group_service_pb2_grpc.pyi +242 -0
- yandex/cloud/clouddesktop/v1/desktop_image_pb2.py +44 -0
- yandex/cloud/clouddesktop/v1/desktop_image_pb2.pyi +111 -0
- yandex/cloud/clouddesktop/v1/desktop_image_pb2_grpc.py +24 -0
- yandex/cloud/clouddesktop/v1/desktop_image_pb2_grpc.pyi +17 -0
- yandex/cloud/clouddesktop/v1/desktop_image_service_pb2.py +115 -0
- yandex/cloud/clouddesktop/v1/desktop_image_service_pb2.pyi +275 -0
- yandex/cloud/clouddesktop/v1/desktop_image_service_pb2_grpc.py +323 -0
- yandex/cloud/clouddesktop/v1/desktop_image_service_pb2_grpc.pyi +152 -0
- yandex/cloud/clouddesktop/v1/desktop_pb2.py +65 -0
- yandex/cloud/clouddesktop/v1/desktop_pb2.pyi +208 -0
- yandex/cloud/clouddesktop/v1/desktop_pb2_grpc.py +24 -0
- yandex/cloud/clouddesktop/v1/desktop_pb2_grpc.pyi +17 -0
- yandex/cloud/clouddesktop/v1/desktop_service_pb2.py +171 -0
- yandex/cloud/clouddesktop/v1/desktop_service_pb2.pyi +541 -0
- yandex/cloud/clouddesktop/v1/desktop_service_pb2_grpc.py +589 -0
- yandex/cloud/clouddesktop/v1/desktop_service_pb2_grpc.pyi +281 -0
- yandex/cloud/clouddesktop/v1/disk_pb2.py +44 -0
- yandex/cloud/clouddesktop/v1/disk_pb2.pyi +61 -0
- yandex/cloud/clouddesktop/v1/disk_pb2_grpc.py +24 -0
- yandex/cloud/clouddesktop/v1/disk_pb2_grpc.pyi +17 -0
- yandex/cloud/cloudregistry/v1/registry_pb2.py +5 -5
- yandex/cloud/cloudregistry/v1/registry_pb2.pyi +4 -0
- yandex/cloud/marketplace/metering/v1/product_usage_service_pb2_grpc.py +6 -3
- yandex/cloud/marketplace/metering/v1/product_usage_service_pb2_grpc.pyi +6 -0
- yandex/cloud/marketplace/pim/v1/saas/product_instance_service_pb2.py +13 -10
- yandex/cloud/mdb/kafka/v1/user_pb2.py +3 -3
- yandex/cloud/mdb/kafka/v1/user_pb2.pyi +9 -0
- yandex/cloud/metastore/__init__.py +0 -0
- yandex/cloud/metastore/v1/__init__.py +0 -0
- yandex/cloud/metastore/v1/cluster_pb2.py +67 -0
- yandex/cloud/metastore/v1/cluster_pb2.pyi +325 -0
- yandex/cloud/metastore/v1/cluster_pb2_grpc.py +24 -0
- yandex/cloud/metastore/v1/cluster_pb2_grpc.pyi +17 -0
- yandex/cloud/metastore/v1/cluster_service_pb2.py +176 -0
- yandex/cloud/metastore/v1/cluster_service_pb2.pyi +628 -0
- yandex/cloud/metastore/v1/cluster_service_pb2_grpc.py +502 -0
- yandex/cloud/metastore/v1/cluster_service_pb2_grpc.pyi +247 -0
- yandex/cloud/metastore/v1/maintenance_pb2.py +53 -0
- yandex/cloud/metastore/v1/maintenance_pb2.pyi +123 -0
- yandex/cloud/metastore/v1/maintenance_pb2_grpc.py +24 -0
- yandex/cloud/metastore/v1/maintenance_pb2_grpc.pyi +17 -0
- yandex/cloud/monitoring/v3/chart_widget_pb2.py +52 -47
- yandex/cloud/monitoring/v3/chart_widget_pb2.pyi +52 -5
- yandex/cloud/monitoring/v3/dashboard_pb2.py +6 -5
- yandex/cloud/monitoring/v3/dashboard_pb2.pyi +8 -1
- yandex/cloud/monitoring/v3/dashboard_service_pb2.py +30 -29
- yandex/cloud/monitoring/v3/dashboard_service_pb2.pyi +15 -2
- yandex/cloud/monitoring/v3/link_item_pb2.py +40 -0
- yandex/cloud/monitoring/v3/link_item_pb2.pyi +53 -0
- yandex/cloud/monitoring/v3/link_item_pb2_grpc.py +24 -0
- yandex/cloud/monitoring/v3/link_item_pb2_grpc.pyi +17 -0
- yandex/cloud/monitoring/v3/link_pb2.py +39 -0
- yandex/cloud/monitoring/v3/link_pb2.pyi +70 -0
- yandex/cloud/monitoring/v3/link_pb2_grpc.py +24 -0
- yandex/cloud/monitoring/v3/link_pb2_grpc.pyi +17 -0
- yandex/cloud/monitoring/v3/multi_source_chart_widget_pb2.py +60 -55
- yandex/cloud/monitoring/v3/multi_source_chart_widget_pb2.pyi +52 -5
- yandex/cloud/monitoring/v3/thresholds_pb2.py +41 -0
- yandex/cloud/monitoring/v3/thresholds_pb2.pyi +73 -0
- yandex/cloud/monitoring/v3/thresholds_pb2_grpc.py +24 -0
- yandex/cloud/monitoring/v3/thresholds_pb2_grpc.pyi +17 -0
- yandex/cloud/monitoring/v3/widget_pb2.py +6 -5
- yandex/cloud/monitoring/v3/widget_pb2.pyi +8 -1
- yandex/cloud/searchapi/v2/gen_search_service_pb2.py +25 -25
- yandex/cloud/searchapi/v2/img_search_service_pb2.py +63 -0
- yandex/cloud/searchapi/v2/img_search_service_pb2.pyi +240 -0
- yandex/cloud/searchapi/v2/img_search_service_pb2_grpc.py +100 -0
- yandex/cloud/searchapi/v2/img_search_service_pb2_grpc.pyi +47 -0
- yandex/cloud/searchapi/v2/search_query_pb2.py +7 -7
- yandex/cloud/searchapi/v2/search_query_pb2.pyi +4 -0
- yandex/cloud/serverless/eventrouter/v1/bus_pb2.py +8 -10
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.py +10 -8
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.pyi +17 -3
- yandex/cloud/speechsense/v1/talk_service_pb2.py +39 -31
- yandex/cloud/speechsense/v1/talk_service_pb2.pyi +38 -0
- yandex/cloud/speechsense/v1/talk_service_pb2_grpc.py +46 -0
- yandex/cloud/speechsense/v1/talk_service_pb2_grpc.pyi +27 -0
- yandex/cloud/storage/v1/bucket_service_pb2.py +30 -30
- yandex/cloud/storage/v1/bucket_service_pb2.pyi +26 -4
- yandexcloud/__init__.py +1 -1
- {yandexcloud-0.342.0.dist-info → yandexcloud-0.344.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.342.0.dist-info → yandexcloud-0.344.0.dist-info}/RECORD +109 -49
- {yandexcloud-0.342.0.dist-info → yandexcloud-0.344.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.342.0.dist-info → yandexcloud-0.344.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.342.0.dist-info → yandexcloud-0.344.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.342.0.dist-info → yandexcloud-0.344.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,281 @@
|
|
|
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.clouddesktop.v1.desktop_pb2
|
|
12
|
+
import yandex.cloud.clouddesktop.v1.desktop_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 DesktopServiceStub:
|
|
23
|
+
"""A set of methods for managing desktop resources."""
|
|
24
|
+
|
|
25
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
26
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
27
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.GetDesktopRequest,
|
|
28
|
+
yandex.cloud.clouddesktop.v1.desktop_pb2.Desktop,
|
|
29
|
+
]
|
|
30
|
+
"""Returns the specified desktop resource.
|
|
31
|
+
|
|
32
|
+
To get the list of available desktops, make a [List] request.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
GetRdpFile: grpc.UnaryUnaryMultiCallable[
|
|
36
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.GetRdpFileRequest,
|
|
37
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.RdpFileResponse,
|
|
38
|
+
]
|
|
39
|
+
"""Returns a RDP file for the specified desktop."""
|
|
40
|
+
|
|
41
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
42
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.ListDesktopsRequest,
|
|
43
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.ListDesktopsResponse,
|
|
44
|
+
]
|
|
45
|
+
"""Retrieves the list of desktop resources."""
|
|
46
|
+
|
|
47
|
+
ListOperations: grpc.UnaryUnaryMultiCallable[
|
|
48
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.ListDesktopOperationsRequest,
|
|
49
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.ListDesktopOperationsResponse,
|
|
50
|
+
]
|
|
51
|
+
"""Returns list of the operations for the specified desktop."""
|
|
52
|
+
|
|
53
|
+
Create: grpc.UnaryUnaryMultiCallable[
|
|
54
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.CreateDesktopRequest,
|
|
55
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
56
|
+
]
|
|
57
|
+
"""Creates desktop in the specified folder."""
|
|
58
|
+
|
|
59
|
+
UpdateProperties: grpc.UnaryUnaryMultiCallable[
|
|
60
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.UpdatePropertiesRequest,
|
|
61
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
62
|
+
]
|
|
63
|
+
"""Updates desktop properties."""
|
|
64
|
+
|
|
65
|
+
Delete: grpc.UnaryUnaryMultiCallable[
|
|
66
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.DeleteDesktopRequest,
|
|
67
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
68
|
+
]
|
|
69
|
+
"""Deletes the specified desktop."""
|
|
70
|
+
|
|
71
|
+
ResetPassword: grpc.UnaryUnaryMultiCallable[
|
|
72
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.ResetPasswordRequest,
|
|
73
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.ResetPasswordResponse,
|
|
74
|
+
]
|
|
75
|
+
"""Reset password"""
|
|
76
|
+
|
|
77
|
+
Restart: grpc.UnaryUnaryMultiCallable[
|
|
78
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.RestartRequest,
|
|
79
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
80
|
+
]
|
|
81
|
+
"""Restart the specified desktop."""
|
|
82
|
+
|
|
83
|
+
Update: grpc.UnaryUnaryMultiCallable[
|
|
84
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.UpdateRequest,
|
|
85
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
86
|
+
]
|
|
87
|
+
"""Sync desktop with group configuration"""
|
|
88
|
+
|
|
89
|
+
Start: grpc.UnaryUnaryMultiCallable[
|
|
90
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.StartRequest,
|
|
91
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
92
|
+
]
|
|
93
|
+
"""Start the specified desktop."""
|
|
94
|
+
|
|
95
|
+
Stop: grpc.UnaryUnaryMultiCallable[
|
|
96
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.StopRequest,
|
|
97
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
98
|
+
]
|
|
99
|
+
"""Stop the specified desktop."""
|
|
100
|
+
|
|
101
|
+
class DesktopServiceAsyncStub:
|
|
102
|
+
"""A set of methods for managing desktop resources."""
|
|
103
|
+
|
|
104
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
105
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.GetDesktopRequest,
|
|
106
|
+
yandex.cloud.clouddesktop.v1.desktop_pb2.Desktop,
|
|
107
|
+
]
|
|
108
|
+
"""Returns the specified desktop resource.
|
|
109
|
+
|
|
110
|
+
To get the list of available desktops, make a [List] request.
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
GetRdpFile: grpc.aio.UnaryUnaryMultiCallable[
|
|
114
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.GetRdpFileRequest,
|
|
115
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.RdpFileResponse,
|
|
116
|
+
]
|
|
117
|
+
"""Returns a RDP file for the specified desktop."""
|
|
118
|
+
|
|
119
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
120
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.ListDesktopsRequest,
|
|
121
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.ListDesktopsResponse,
|
|
122
|
+
]
|
|
123
|
+
"""Retrieves the list of desktop resources."""
|
|
124
|
+
|
|
125
|
+
ListOperations: grpc.aio.UnaryUnaryMultiCallable[
|
|
126
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.ListDesktopOperationsRequest,
|
|
127
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.ListDesktopOperationsResponse,
|
|
128
|
+
]
|
|
129
|
+
"""Returns list of the operations for the specified desktop."""
|
|
130
|
+
|
|
131
|
+
Create: grpc.aio.UnaryUnaryMultiCallable[
|
|
132
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.CreateDesktopRequest,
|
|
133
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
134
|
+
]
|
|
135
|
+
"""Creates desktop in the specified folder."""
|
|
136
|
+
|
|
137
|
+
UpdateProperties: grpc.aio.UnaryUnaryMultiCallable[
|
|
138
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.UpdatePropertiesRequest,
|
|
139
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
140
|
+
]
|
|
141
|
+
"""Updates desktop properties."""
|
|
142
|
+
|
|
143
|
+
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
144
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.DeleteDesktopRequest,
|
|
145
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
146
|
+
]
|
|
147
|
+
"""Deletes the specified desktop."""
|
|
148
|
+
|
|
149
|
+
ResetPassword: grpc.aio.UnaryUnaryMultiCallable[
|
|
150
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.ResetPasswordRequest,
|
|
151
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.ResetPasswordResponse,
|
|
152
|
+
]
|
|
153
|
+
"""Reset password"""
|
|
154
|
+
|
|
155
|
+
Restart: grpc.aio.UnaryUnaryMultiCallable[
|
|
156
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.RestartRequest,
|
|
157
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
158
|
+
]
|
|
159
|
+
"""Restart the specified desktop."""
|
|
160
|
+
|
|
161
|
+
Update: grpc.aio.UnaryUnaryMultiCallable[
|
|
162
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.UpdateRequest,
|
|
163
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
164
|
+
]
|
|
165
|
+
"""Sync desktop with group configuration"""
|
|
166
|
+
|
|
167
|
+
Start: grpc.aio.UnaryUnaryMultiCallable[
|
|
168
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.StartRequest,
|
|
169
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
170
|
+
]
|
|
171
|
+
"""Start the specified desktop."""
|
|
172
|
+
|
|
173
|
+
Stop: grpc.aio.UnaryUnaryMultiCallable[
|
|
174
|
+
yandex.cloud.clouddesktop.v1.desktop_service_pb2.StopRequest,
|
|
175
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
176
|
+
]
|
|
177
|
+
"""Stop the specified desktop."""
|
|
178
|
+
|
|
179
|
+
class DesktopServiceServicer(metaclass=abc.ABCMeta):
|
|
180
|
+
"""A set of methods for managing desktop resources."""
|
|
181
|
+
|
|
182
|
+
@abc.abstractmethod
|
|
183
|
+
def Get(
|
|
184
|
+
self,
|
|
185
|
+
request: yandex.cloud.clouddesktop.v1.desktop_service_pb2.GetDesktopRequest,
|
|
186
|
+
context: _ServicerContext,
|
|
187
|
+
) -> typing.Union[yandex.cloud.clouddesktop.v1.desktop_pb2.Desktop, collections.abc.Awaitable[yandex.cloud.clouddesktop.v1.desktop_pb2.Desktop]]:
|
|
188
|
+
"""Returns the specified desktop resource.
|
|
189
|
+
|
|
190
|
+
To get the list of available desktops, make a [List] request.
|
|
191
|
+
"""
|
|
192
|
+
|
|
193
|
+
@abc.abstractmethod
|
|
194
|
+
def GetRdpFile(
|
|
195
|
+
self,
|
|
196
|
+
request: yandex.cloud.clouddesktop.v1.desktop_service_pb2.GetRdpFileRequest,
|
|
197
|
+
context: _ServicerContext,
|
|
198
|
+
) -> typing.Union[yandex.cloud.clouddesktop.v1.desktop_service_pb2.RdpFileResponse, collections.abc.Awaitable[yandex.cloud.clouddesktop.v1.desktop_service_pb2.RdpFileResponse]]:
|
|
199
|
+
"""Returns a RDP file for the specified desktop."""
|
|
200
|
+
|
|
201
|
+
@abc.abstractmethod
|
|
202
|
+
def List(
|
|
203
|
+
self,
|
|
204
|
+
request: yandex.cloud.clouddesktop.v1.desktop_service_pb2.ListDesktopsRequest,
|
|
205
|
+
context: _ServicerContext,
|
|
206
|
+
) -> typing.Union[yandex.cloud.clouddesktop.v1.desktop_service_pb2.ListDesktopsResponse, collections.abc.Awaitable[yandex.cloud.clouddesktop.v1.desktop_service_pb2.ListDesktopsResponse]]:
|
|
207
|
+
"""Retrieves the list of desktop resources."""
|
|
208
|
+
|
|
209
|
+
@abc.abstractmethod
|
|
210
|
+
def ListOperations(
|
|
211
|
+
self,
|
|
212
|
+
request: yandex.cloud.clouddesktop.v1.desktop_service_pb2.ListDesktopOperationsRequest,
|
|
213
|
+
context: _ServicerContext,
|
|
214
|
+
) -> typing.Union[yandex.cloud.clouddesktop.v1.desktop_service_pb2.ListDesktopOperationsResponse, collections.abc.Awaitable[yandex.cloud.clouddesktop.v1.desktop_service_pb2.ListDesktopOperationsResponse]]:
|
|
215
|
+
"""Returns list of the operations for the specified desktop."""
|
|
216
|
+
|
|
217
|
+
@abc.abstractmethod
|
|
218
|
+
def Create(
|
|
219
|
+
self,
|
|
220
|
+
request: yandex.cloud.clouddesktop.v1.desktop_service_pb2.CreateDesktopRequest,
|
|
221
|
+
context: _ServicerContext,
|
|
222
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
223
|
+
"""Creates desktop in the specified folder."""
|
|
224
|
+
|
|
225
|
+
@abc.abstractmethod
|
|
226
|
+
def UpdateProperties(
|
|
227
|
+
self,
|
|
228
|
+
request: yandex.cloud.clouddesktop.v1.desktop_service_pb2.UpdatePropertiesRequest,
|
|
229
|
+
context: _ServicerContext,
|
|
230
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
231
|
+
"""Updates desktop properties."""
|
|
232
|
+
|
|
233
|
+
@abc.abstractmethod
|
|
234
|
+
def Delete(
|
|
235
|
+
self,
|
|
236
|
+
request: yandex.cloud.clouddesktop.v1.desktop_service_pb2.DeleteDesktopRequest,
|
|
237
|
+
context: _ServicerContext,
|
|
238
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
239
|
+
"""Deletes the specified desktop."""
|
|
240
|
+
|
|
241
|
+
@abc.abstractmethod
|
|
242
|
+
def ResetPassword(
|
|
243
|
+
self,
|
|
244
|
+
request: yandex.cloud.clouddesktop.v1.desktop_service_pb2.ResetPasswordRequest,
|
|
245
|
+
context: _ServicerContext,
|
|
246
|
+
) -> typing.Union[yandex.cloud.clouddesktop.v1.desktop_service_pb2.ResetPasswordResponse, collections.abc.Awaitable[yandex.cloud.clouddesktop.v1.desktop_service_pb2.ResetPasswordResponse]]:
|
|
247
|
+
"""Reset password"""
|
|
248
|
+
|
|
249
|
+
@abc.abstractmethod
|
|
250
|
+
def Restart(
|
|
251
|
+
self,
|
|
252
|
+
request: yandex.cloud.clouddesktop.v1.desktop_service_pb2.RestartRequest,
|
|
253
|
+
context: _ServicerContext,
|
|
254
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
255
|
+
"""Restart the specified desktop."""
|
|
256
|
+
|
|
257
|
+
@abc.abstractmethod
|
|
258
|
+
def Update(
|
|
259
|
+
self,
|
|
260
|
+
request: yandex.cloud.clouddesktop.v1.desktop_service_pb2.UpdateRequest,
|
|
261
|
+
context: _ServicerContext,
|
|
262
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
263
|
+
"""Sync desktop with group configuration"""
|
|
264
|
+
|
|
265
|
+
@abc.abstractmethod
|
|
266
|
+
def Start(
|
|
267
|
+
self,
|
|
268
|
+
request: yandex.cloud.clouddesktop.v1.desktop_service_pb2.StartRequest,
|
|
269
|
+
context: _ServicerContext,
|
|
270
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
271
|
+
"""Start the specified desktop."""
|
|
272
|
+
|
|
273
|
+
@abc.abstractmethod
|
|
274
|
+
def Stop(
|
|
275
|
+
self,
|
|
276
|
+
request: yandex.cloud.clouddesktop.v1.desktop_service_pb2.StopRequest,
|
|
277
|
+
context: _ServicerContext,
|
|
278
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
279
|
+
"""Stop the specified desktop."""
|
|
280
|
+
|
|
281
|
+
def add_DesktopServiceServicer_to_server(servicer: DesktopServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: yandex/cloud/clouddesktop/v1/disk.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/clouddesktop/v1/disk.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'yandex/cloud/clouddesktop/v1/disk.proto\x12 yandex.cloud.clouddesktop.v1.api\x1a\x1dyandex/cloud/validation.proto\"\x95\x01\n\x08\x44iskSpec\x12\x43\n\x04type\x18\x03 \x01(\x0e\x32/.yandex.cloud.clouddesktop.v1.api.DiskSpec.TypeB\x04\xe8\xc7\x31\x01\x12\x14\n\x04size\x18\x04 \x01(\x03\x42\x06\xfa\xc7\x31\x02>0\".\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03HDD\x10\x01\x12\x07\n\x03SSD\x10\x02\x42w\n yandex.cloud.api.clouddesktop.v1B\x04PADDZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/clouddesktop/v1;clouddesktopb\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.clouddesktop.v1.disk_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n yandex.cloud.api.clouddesktop.v1B\004PADDZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/clouddesktop/v1;clouddesktop'
|
|
36
|
+
_globals['_DISKSPEC'].fields_by_name['type']._loaded_options = None
|
|
37
|
+
_globals['_DISKSPEC'].fields_by_name['type']._serialized_options = b'\350\3071\001'
|
|
38
|
+
_globals['_DISKSPEC'].fields_by_name['size']._loaded_options = None
|
|
39
|
+
_globals['_DISKSPEC'].fields_by_name['size']._serialized_options = b'\372\3071\002>0'
|
|
40
|
+
_globals['_DISKSPEC']._serialized_start=109
|
|
41
|
+
_globals['_DISKSPEC']._serialized_end=258
|
|
42
|
+
_globals['_DISKSPEC_TYPE']._serialized_start=212
|
|
43
|
+
_globals['_DISKSPEC_TYPE']._serialized_end=258
|
|
44
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,61 @@
|
|
|
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 sys
|
|
11
|
+
import typing
|
|
12
|
+
|
|
13
|
+
if sys.version_info >= (3, 10):
|
|
14
|
+
import typing as typing_extensions
|
|
15
|
+
else:
|
|
16
|
+
import typing_extensions
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
19
|
+
|
|
20
|
+
@typing.final
|
|
21
|
+
class DiskSpec(google.protobuf.message.Message):
|
|
22
|
+
"""Disk specificaton."""
|
|
23
|
+
|
|
24
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
25
|
+
|
|
26
|
+
class _Type:
|
|
27
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
28
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
29
|
+
|
|
30
|
+
class _TypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DiskSpec._Type.ValueType], builtins.type):
|
|
31
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
32
|
+
TYPE_UNSPECIFIED: DiskSpec._Type.ValueType # 0
|
|
33
|
+
"""Disk type is not specified."""
|
|
34
|
+
HDD: DiskSpec._Type.ValueType # 1
|
|
35
|
+
"""HDD disk type."""
|
|
36
|
+
SSD: DiskSpec._Type.ValueType # 2
|
|
37
|
+
"""SSD disk type."""
|
|
38
|
+
|
|
39
|
+
class Type(_Type, metaclass=_TypeEnumTypeWrapper): ...
|
|
40
|
+
TYPE_UNSPECIFIED: DiskSpec.Type.ValueType # 0
|
|
41
|
+
"""Disk type is not specified."""
|
|
42
|
+
HDD: DiskSpec.Type.ValueType # 1
|
|
43
|
+
"""HDD disk type."""
|
|
44
|
+
SSD: DiskSpec.Type.ValueType # 2
|
|
45
|
+
"""SSD disk type."""
|
|
46
|
+
|
|
47
|
+
TYPE_FIELD_NUMBER: builtins.int
|
|
48
|
+
SIZE_FIELD_NUMBER: builtins.int
|
|
49
|
+
type: global___DiskSpec.Type.ValueType
|
|
50
|
+
"""Type of disk."""
|
|
51
|
+
size: builtins.int
|
|
52
|
+
"""Size of disk."""
|
|
53
|
+
def __init__(
|
|
54
|
+
self,
|
|
55
|
+
*,
|
|
56
|
+
type: global___DiskSpec.Type.ValueType = ...,
|
|
57
|
+
size: builtins.int = ...,
|
|
58
|
+
) -> None: ...
|
|
59
|
+
def ClearField(self, field_name: typing.Literal["size", b"size", "type", b"type"]) -> None: ...
|
|
60
|
+
|
|
61
|
+
global___DiskSpec = DiskSpec
|
|
@@ -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/clouddesktop/v1/disk_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
|
+
...
|
|
@@ -25,7 +25,7 @@ _sym_db = _symbol_database.Default()
|
|
|
25
25
|
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/cloudregistry/v1/registry.proto\x12\x1dyandex.cloud.cloudregistry.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/cloudregistry/v1/registry.proto\x12\x1dyandex.cloud.cloudregistry.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xba\x06\n\x08Registry\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfolder_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12:\n\x04kind\x18\x04 \x01(\x0e\x32,.yandex.cloud.cloudregistry.v1.Registry.Kind\x12:\n\x04type\x18\x05 \x01(\x0e\x32,.yandex.cloud.cloudregistry.v1.Registry.Type\x12>\n\x06status\x18\x06 \x01(\x0e\x32..yandex.cloud.cloudregistry.v1.Registry.Status\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12\x43\n\x06labels\x18\x08 \x03(\x0b\x32\x33.yandex.cloud.cloudregistry.v1.Registry.LabelsEntry\x12K\n\nproperties\x18\t \x03(\x0b\x32\x37.yandex.cloud.cloudregistry.v1.Registry.PropertiesEntry\x12.\n\ncreated_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bmodified_at\x18\x0b \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\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"H\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\"S\n\x04Kind\x12\x14\n\x10KIND_UNSPECIFIED\x10\x00\x12\t\n\x05MAVEN\x10\x01\x12\x07\n\x03NPM\x10\x02\x12\n\n\x06\x44OCKER\x10\x03\x12\t\n\x05NUGET\x10\x04\x12\n\n\x06\x44\x45\x42IAN\x10\x05\"@\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05LOCAL\x10\x01\x12\n\n\x06REMOTE\x10\x02\x12\x0b\n\x07VIRTUAL\x10\x03\x42t\n!yandex.cloud.api.cloudregistry.v1ZOgithub.com/yandex-cloud/go-genproto/yandex/cloud/cloudregistry/v1;cloudregistryb\x06proto3')
|
|
29
29
|
|
|
30
30
|
_globals = globals()
|
|
31
31
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -38,7 +38,7 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
38
38
|
_globals['_REGISTRY_PROPERTIESENTRY']._loaded_options = None
|
|
39
39
|
_globals['_REGISTRY_PROPERTIESENTRY']._serialized_options = b'8\001'
|
|
40
40
|
_globals['_REGISTRY']._serialized_start=113
|
|
41
|
-
_globals['_REGISTRY']._serialized_end=
|
|
41
|
+
_globals['_REGISTRY']._serialized_end=939
|
|
42
42
|
_globals['_REGISTRY_LABELSENTRY']._serialized_start=618
|
|
43
43
|
_globals['_REGISTRY_LABELSENTRY']._serialized_end=663
|
|
44
44
|
_globals['_REGISTRY_PROPERTIESENTRY']._serialized_start=665
|
|
@@ -46,7 +46,7 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
46
46
|
_globals['_REGISTRY_STATUS']._serialized_start=716
|
|
47
47
|
_globals['_REGISTRY_STATUS']._serialized_end=788
|
|
48
48
|
_globals['_REGISTRY_KIND']._serialized_start=790
|
|
49
|
-
_globals['_REGISTRY_KIND']._serialized_end=
|
|
50
|
-
_globals['_REGISTRY_TYPE']._serialized_start=
|
|
51
|
-
_globals['_REGISTRY_TYPE']._serialized_end=
|
|
49
|
+
_globals['_REGISTRY_KIND']._serialized_end=873
|
|
50
|
+
_globals['_REGISTRY_TYPE']._serialized_start=875
|
|
51
|
+
_globals['_REGISTRY_TYPE']._serialized_end=939
|
|
52
52
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -64,6 +64,8 @@ class Registry(google.protobuf.message.Message):
|
|
|
64
64
|
"""Registry kind is docker."""
|
|
65
65
|
NUGET: Registry._Kind.ValueType # 4
|
|
66
66
|
"""Registry kind is nuget."""
|
|
67
|
+
DEBIAN: Registry._Kind.ValueType # 5
|
|
68
|
+
"""Registry kind is debian."""
|
|
67
69
|
|
|
68
70
|
class Kind(_Kind, metaclass=_KindEnumTypeWrapper): ...
|
|
69
71
|
KIND_UNSPECIFIED: Registry.Kind.ValueType # 0
|
|
@@ -75,6 +77,8 @@ class Registry(google.protobuf.message.Message):
|
|
|
75
77
|
"""Registry kind is docker."""
|
|
76
78
|
NUGET: Registry.Kind.ValueType # 4
|
|
77
79
|
"""Registry kind is nuget."""
|
|
80
|
+
DEBIAN: Registry.Kind.ValueType # 5
|
|
81
|
+
"""Registry kind is debian."""
|
|
78
82
|
|
|
79
83
|
class _Type:
|
|
80
84
|
ValueType = typing.NewType("ValueType", builtins.int)
|
|
@@ -26,7 +26,8 @@ if _version_not_supported:
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
class ProductUsageServiceStub(object):
|
|
29
|
-
"""
|
|
29
|
+
"""A set of methods for managing product's usage with product instances.
|
|
30
|
+
"""
|
|
30
31
|
|
|
31
32
|
def __init__(self, channel):
|
|
32
33
|
"""Constructor.
|
|
@@ -42,7 +43,8 @@ class ProductUsageServiceStub(object):
|
|
|
42
43
|
|
|
43
44
|
|
|
44
45
|
class ProductUsageServiceServicer(object):
|
|
45
|
-
"""
|
|
46
|
+
"""A set of methods for managing product's usage with product instances.
|
|
47
|
+
"""
|
|
46
48
|
|
|
47
49
|
def Write(self, request, context):
|
|
48
50
|
"""Writes product's usage (authenticated by publisher's service account)
|
|
@@ -68,7 +70,8 @@ def add_ProductUsageServiceServicer_to_server(servicer, server):
|
|
|
68
70
|
|
|
69
71
|
# This class is part of an EXPERIMENTAL API.
|
|
70
72
|
class ProductUsageService(object):
|
|
71
|
-
"""
|
|
73
|
+
"""A set of methods for managing product's usage with product instances.
|
|
74
|
+
"""
|
|
72
75
|
|
|
73
76
|
@staticmethod
|
|
74
77
|
def Write(request,
|
|
@@ -18,6 +18,8 @@ class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type:
|
|
|
18
18
|
...
|
|
19
19
|
|
|
20
20
|
class ProductUsageServiceStub:
|
|
21
|
+
"""A set of methods for managing product's usage with product instances."""
|
|
22
|
+
|
|
21
23
|
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
22
24
|
Write: grpc.UnaryUnaryMultiCallable[
|
|
23
25
|
yandex.cloud.marketplace.metering.v1.product_usage_service_pb2.WriteUsageRequest,
|
|
@@ -26,6 +28,8 @@ class ProductUsageServiceStub:
|
|
|
26
28
|
"""Writes product's usage (authenticated by publisher's service account)"""
|
|
27
29
|
|
|
28
30
|
class ProductUsageServiceAsyncStub:
|
|
31
|
+
"""A set of methods for managing product's usage with product instances."""
|
|
32
|
+
|
|
29
33
|
Write: grpc.aio.UnaryUnaryMultiCallable[
|
|
30
34
|
yandex.cloud.marketplace.metering.v1.product_usage_service_pb2.WriteUsageRequest,
|
|
31
35
|
yandex.cloud.marketplace.metering.v1.product_usage_service_pb2.WriteUsageResponse,
|
|
@@ -33,6 +37,8 @@ class ProductUsageServiceAsyncStub:
|
|
|
33
37
|
"""Writes product's usage (authenticated by publisher's service account)"""
|
|
34
38
|
|
|
35
39
|
class ProductUsageServiceServicer(metaclass=abc.ABCMeta):
|
|
40
|
+
"""A set of methods for managing product's usage with product instances."""
|
|
41
|
+
|
|
36
42
|
@abc.abstractmethod
|
|
37
43
|
def Write(
|
|
38
44
|
self,
|
|
@@ -22,13 +22,14 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
22
22
|
_sym_db = _symbol_database.Default()
|
|
23
23
|
|
|
24
24
|
|
|
25
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
25
26
|
from yandex.cloud.api import operation_pb2 as yandex_dot_cloud_dot_api_dot_operation__pb2
|
|
26
27
|
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
27
28
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
28
29
|
from yandex.cloud.marketplace.pim.v1.saas import product_instance_pb2 as yandex_dot_cloud_dot_marketplace_dot_pim_dot_v1_dot_saas_dot_product__instance__pb2
|
|
29
30
|
|
|
30
31
|
|
|
31
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nCyandex/cloud/marketplace/pim/v1/saas/product_instance_service.proto\x12$yandex.cloud.marketplace.pim.v1.saas\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\x1a;yandex/cloud/marketplace/pim/v1/saas/product_instance.proto\"F\n\x19GetProductInstanceRequest\x12)\n\x13product_instance_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"\x98\x01\n\x1b\x43laimProductInstanceRequest\x12\x1d\n\x05token\x18\x01 \x01(\tB\x0e\xe8\xc7\x31\x01\x8a\xc8\x31\x06<=1000\x12\x13\n\x0bresource_id\x18\x02 \x01(\t\x12\x45\n\rresource_info\x18\x03 \x01(\x0b\x32..yandex.cloud.marketplace.pim.v1.saas.SaasInfo\"l\n\x1c\x43laimProductInstanceMetadata\x12\x12\n\nproduct_id\x18\x01 \x01(\t\x12\x1b\n\x13product_instance_id\x18\x02 \x01(\t\x12\x1b\n\x13license_instance_id\x18\x03 \x01(\t2\
|
|
32
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nCyandex/cloud/marketplace/pim/v1/saas/product_instance_service.proto\x12$yandex.cloud.marketplace.pim.v1.saas\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\x1a;yandex/cloud/marketplace/pim/v1/saas/product_instance.proto\"F\n\x19GetProductInstanceRequest\x12)\n\x13product_instance_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"\x98\x01\n\x1b\x43laimProductInstanceRequest\x12\x1d\n\x05token\x18\x01 \x01(\tB\x0e\xe8\xc7\x31\x01\x8a\xc8\x31\x06<=1000\x12\x13\n\x0bresource_id\x18\x02 \x01(\t\x12\x45\n\rresource_info\x18\x03 \x01(\x0b\x32..yandex.cloud.marketplace.pim.v1.saas.SaasInfo\"l\n\x1c\x43laimProductInstanceMetadata\x12\x12\n\nproduct_id\x18\x01 \x01(\t\x12\x1b\n\x13product_instance_id\x18\x02 \x01(\t\x12\x1b\n\x13license_instance_id\x18\x03 \x01(\t2\xb2\x03\n\x16ProductInstanceService\x12\xbf\x01\n\x03Get\x12?.yandex.cloud.marketplace.pim.v1.saas.GetProductInstanceRequest\x1a\x35.yandex.cloud.marketplace.pim.v1.saas.ProductInstance\"@\x82\xd3\xe4\x93\x02:\x12\x38/marketplace/pim/saas/v1/instances/{product_instance_id}\x12\xd5\x01\n\x05\x43laim\x12\x41.yandex.cloud.marketplace.pim.v1.saas.ClaimProductInstanceRequest\x1a!.yandex.cloud.operation.Operation\"f\xb2\xd2*/\n\x1c\x43laimProductInstanceMetadata\x12\x0fProductInstance\x82\xd3\xe4\x93\x02-\"(/marketplace/pim/saas/v1/instances/claim:\x01*By\n(yandex.cloud.api.marketplace.pim.v1.saasZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/pim/v1/saas;saasb\x06proto3')
|
|
32
33
|
|
|
33
34
|
_globals = globals()
|
|
34
35
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -40,14 +41,16 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
40
41
|
_globals['_GETPRODUCTINSTANCEREQUEST'].fields_by_name['product_instance_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
41
42
|
_globals['_CLAIMPRODUCTINSTANCEREQUEST'].fields_by_name['token']._loaded_options = None
|
|
42
43
|
_globals['_CLAIMPRODUCTINSTANCEREQUEST'].fields_by_name['token']._serialized_options = b'\350\3071\001\212\3101\006<=1000'
|
|
44
|
+
_globals['_PRODUCTINSTANCESERVICE'].methods_by_name['Get']._loaded_options = None
|
|
45
|
+
_globals['_PRODUCTINSTANCESERVICE'].methods_by_name['Get']._serialized_options = b'\202\323\344\223\002:\0228/marketplace/pim/saas/v1/instances/{product_instance_id}'
|
|
43
46
|
_globals['_PRODUCTINSTANCESERVICE'].methods_by_name['Claim']._loaded_options = None
|
|
44
|
-
_globals['_PRODUCTINSTANCESERVICE'].methods_by_name['Claim']._serialized_options = b'\262\322*/\n\034ClaimProductInstanceMetadata\022\017ProductInstance'
|
|
45
|
-
_globals['_GETPRODUCTINSTANCEREQUEST']._serialized_start=
|
|
46
|
-
_globals['_GETPRODUCTINSTANCEREQUEST']._serialized_end=
|
|
47
|
-
_globals['_CLAIMPRODUCTINSTANCEREQUEST']._serialized_start=
|
|
48
|
-
_globals['_CLAIMPRODUCTINSTANCEREQUEST']._serialized_end=
|
|
49
|
-
_globals['_CLAIMPRODUCTINSTANCEMETADATA']._serialized_start=
|
|
50
|
-
_globals['_CLAIMPRODUCTINSTANCEMETADATA']._serialized_end=
|
|
51
|
-
_globals['_PRODUCTINSTANCESERVICE']._serialized_start=
|
|
52
|
-
_globals['_PRODUCTINSTANCESERVICE']._serialized_end=
|
|
47
|
+
_globals['_PRODUCTINSTANCESERVICE'].methods_by_name['Claim']._serialized_options = b'\262\322*/\n\034ClaimProductInstanceMetadata\022\017ProductInstance\202\323\344\223\002-\"(/marketplace/pim/saas/v1/instances/claim:\001*'
|
|
48
|
+
_globals['_GETPRODUCTINSTANCEREQUEST']._serialized_start=305
|
|
49
|
+
_globals['_GETPRODUCTINSTANCEREQUEST']._serialized_end=375
|
|
50
|
+
_globals['_CLAIMPRODUCTINSTANCEREQUEST']._serialized_start=378
|
|
51
|
+
_globals['_CLAIMPRODUCTINSTANCEREQUEST']._serialized_end=530
|
|
52
|
+
_globals['_CLAIMPRODUCTINSTANCEMETADATA']._serialized_start=532
|
|
53
|
+
_globals['_CLAIMPRODUCTINSTANCEMETADATA']._serialized_end=640
|
|
54
|
+
_globals['_PRODUCTINSTANCESERVICE']._serialized_start=643
|
|
55
|
+
_globals['_PRODUCTINSTANCESERVICE']._serialized_end=1077
|
|
53
56
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -25,7 +25,7 @@ _sym_db = _symbol_database.Default()
|
|
|
25
25
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$yandex/cloud/mdb/kafka/v1/user.proto\x12\x19yandex.cloud.mdb.kafka.v1\x1a\x1dyandex/cloud/validation.proto\"d\n\x04User\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\ncluster_id\x18\x02 \x01(\t\x12:\n\x0bpermissions\x18\x03 \x03(\x0b\x32%.yandex.cloud.mdb.kafka.v1.Permission\"\x95\x01\n\x08UserSpec\x12,\n\x04name\x18\x01 \x01(\tB\x1e\xe8\xc7\x31\x01\xf2\xc7\x31\r[a-zA-Z0-9_]*\x8a\xc8\x31\x05\x31-256\x12\x1f\n\x08password\x18\x02 \x01(\tB\r\xe8\xc7\x31\x01\x8a\xc8\x31\x05\x38-128\x12:\n\x0bpermissions\x18\x03 \x03(\x0b\x32%.yandex.cloud.mdb.kafka.v1.Permission\"\
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$yandex/cloud/mdb/kafka/v1/user.proto\x12\x19yandex.cloud.mdb.kafka.v1\x1a\x1dyandex/cloud/validation.proto\"d\n\x04User\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\ncluster_id\x18\x02 \x01(\t\x12:\n\x0bpermissions\x18\x03 \x03(\x0b\x32%.yandex.cloud.mdb.kafka.v1.Permission\"\x95\x01\n\x08UserSpec\x12,\n\x04name\x18\x01 \x01(\tB\x1e\xe8\xc7\x31\x01\xf2\xc7\x31\r[a-zA-Z0-9_]*\x8a\xc8\x31\x05\x31-256\x12\x1f\n\x08password\x18\x02 \x01(\tB\r\xe8\xc7\x31\x01\x8a\xc8\x31\x05\x38-128\x12:\n\x0bpermissions\x18\x03 \x03(\x0b\x32%.yandex.cloud.mdb.kafka.v1.Permission\"\x8d\x03\n\nPermission\x12\x12\n\ntopic_name\x18\x01 \x01(\t\x12>\n\x04role\x18\x02 \x01(\x0e\x32\x30.yandex.cloud.mdb.kafka.v1.Permission.AccessRole\x12\x13\n\x0b\x61llow_hosts\x18\x04 \x03(\t\"\x8f\x02\n\nAccessRole\x12\x1b\n\x17\x41\x43\x43\x45SS_ROLE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x41\x43\x43\x45SS_ROLE_PRODUCER\x10\x01\x12\x18\n\x14\x41\x43\x43\x45SS_ROLE_CONSUMER\x10\x02\x12\x15\n\x11\x41\x43\x43\x45SS_ROLE_ADMIN\x10\x03\x12\x1b\n\x17\x41\x43\x43\x45SS_ROLE_TOPIC_ADMIN\x10\x04\x12\x1e\n\x1a\x41\x43\x43\x45SS_ROLE_TOPIC_PRODUCER\x10\x05\x12\x1e\n\x1a\x41\x43\x43\x45SS_ROLE_TOPIC_CONSUMER\x10\x06\x12\x1d\n\x19\x41\x43\x43\x45SS_ROLE_SCHEMA_READER\x10\x07\x12\x1d\n\x19\x41\x43\x43\x45SS_ROLE_SCHEMA_WRITER\x10\x08J\x04\x08\x03\x10\x04\x42\x64\n\x1dyandex.cloud.api.mdb.kafka.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/kafka/v1;kafkab\x06proto3')
|
|
29
29
|
|
|
30
30
|
_globals = globals()
|
|
31
31
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -42,7 +42,7 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
42
42
|
_globals['_USERSPEC']._serialized_start=201
|
|
43
43
|
_globals['_USERSPEC']._serialized_end=350
|
|
44
44
|
_globals['_PERMISSION']._serialized_start=353
|
|
45
|
-
_globals['_PERMISSION']._serialized_end=
|
|
45
|
+
_globals['_PERMISSION']._serialized_end=750
|
|
46
46
|
_globals['_PERMISSION_ACCESSROLE']._serialized_start=473
|
|
47
|
-
_globals['_PERMISSION_ACCESSROLE']._serialized_end=
|
|
47
|
+
_globals['_PERMISSION_ACCESSROLE']._serialized_end=744
|
|
48
48
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -97,6 +97,10 @@ class Permission(google.protobuf.message.Message):
|
|
|
97
97
|
"""Admin role for the user."""
|
|
98
98
|
ACCESS_ROLE_TOPIC_ADMIN: Permission._AccessRole.ValueType # 4
|
|
99
99
|
"""Admin permissions on topics role for the user."""
|
|
100
|
+
ACCESS_ROLE_TOPIC_PRODUCER: Permission._AccessRole.ValueType # 5
|
|
101
|
+
ACCESS_ROLE_TOPIC_CONSUMER: Permission._AccessRole.ValueType # 6
|
|
102
|
+
ACCESS_ROLE_SCHEMA_READER: Permission._AccessRole.ValueType # 7
|
|
103
|
+
ACCESS_ROLE_SCHEMA_WRITER: Permission._AccessRole.ValueType # 8
|
|
100
104
|
|
|
101
105
|
class AccessRole(_AccessRole, metaclass=_AccessRoleEnumTypeWrapper): ...
|
|
102
106
|
ACCESS_ROLE_UNSPECIFIED: Permission.AccessRole.ValueType # 0
|
|
@@ -108,12 +112,17 @@ class Permission(google.protobuf.message.Message):
|
|
|
108
112
|
"""Admin role for the user."""
|
|
109
113
|
ACCESS_ROLE_TOPIC_ADMIN: Permission.AccessRole.ValueType # 4
|
|
110
114
|
"""Admin permissions on topics role for the user."""
|
|
115
|
+
ACCESS_ROLE_TOPIC_PRODUCER: Permission.AccessRole.ValueType # 5
|
|
116
|
+
ACCESS_ROLE_TOPIC_CONSUMER: Permission.AccessRole.ValueType # 6
|
|
117
|
+
ACCESS_ROLE_SCHEMA_READER: Permission.AccessRole.ValueType # 7
|
|
118
|
+
ACCESS_ROLE_SCHEMA_WRITER: Permission.AccessRole.ValueType # 8
|
|
111
119
|
|
|
112
120
|
TOPIC_NAME_FIELD_NUMBER: builtins.int
|
|
113
121
|
ROLE_FIELD_NUMBER: builtins.int
|
|
114
122
|
ALLOW_HOSTS_FIELD_NUMBER: builtins.int
|
|
115
123
|
topic_name: builtins.str
|
|
116
124
|
"""Name or prefix-pattern with wildcard for the topic that the permission grants access to.
|
|
125
|
+
With roles SCHEMA_READER and SCHEMA_WRITER: string that contains set of schema registry subjects, separated by ';'.
|
|
117
126
|
|
|
118
127
|
To get the topic name, make a [TopicService.List] request.
|
|
119
128
|
"""
|
|
File without changes
|
|
File without changes
|