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,152 @@
|
|
|
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_image_pb2
|
|
12
|
+
import yandex.cloud.clouddesktop.v1.desktop_image_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 DesktopImageServiceStub:
|
|
23
|
+
"""A service for managing desktop images."""
|
|
24
|
+
|
|
25
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
26
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
27
|
+
yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.ListDesktopImagesRequest,
|
|
28
|
+
yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.ListDesktopImagesResponse,
|
|
29
|
+
]
|
|
30
|
+
"""Lists desktop images in the specified folder."""
|
|
31
|
+
|
|
32
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
33
|
+
yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.GetDesktopImageRequest,
|
|
34
|
+
yandex.cloud.clouddesktop.v1.desktop_image_pb2.DesktopImage,
|
|
35
|
+
]
|
|
36
|
+
"""Returns the specified desktop image."""
|
|
37
|
+
|
|
38
|
+
Copy: grpc.UnaryUnaryMultiCallable[
|
|
39
|
+
yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.CopyDesktopImageRequest,
|
|
40
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
41
|
+
]
|
|
42
|
+
"""Copies the specified image to desktop image."""
|
|
43
|
+
|
|
44
|
+
Update: grpc.UnaryUnaryMultiCallable[
|
|
45
|
+
yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.UpdateDesktopImageRequest,
|
|
46
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
47
|
+
]
|
|
48
|
+
"""Updates desktop image properties."""
|
|
49
|
+
|
|
50
|
+
CopyFromDesktop: grpc.UnaryUnaryMultiCallable[
|
|
51
|
+
yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.CopyFromDesktopRequest,
|
|
52
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
53
|
+
]
|
|
54
|
+
"""Copies the specified desktop image from the specified desktop."""
|
|
55
|
+
|
|
56
|
+
Delete: grpc.UnaryUnaryMultiCallable[
|
|
57
|
+
yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.DeleteDesktopImageRequest,
|
|
58
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
59
|
+
]
|
|
60
|
+
"""Deletes the specified desktop image."""
|
|
61
|
+
|
|
62
|
+
class DesktopImageServiceAsyncStub:
|
|
63
|
+
"""A service for managing desktop images."""
|
|
64
|
+
|
|
65
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
66
|
+
yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.ListDesktopImagesRequest,
|
|
67
|
+
yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.ListDesktopImagesResponse,
|
|
68
|
+
]
|
|
69
|
+
"""Lists desktop images in the specified folder."""
|
|
70
|
+
|
|
71
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
72
|
+
yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.GetDesktopImageRequest,
|
|
73
|
+
yandex.cloud.clouddesktop.v1.desktop_image_pb2.DesktopImage,
|
|
74
|
+
]
|
|
75
|
+
"""Returns the specified desktop image."""
|
|
76
|
+
|
|
77
|
+
Copy: grpc.aio.UnaryUnaryMultiCallable[
|
|
78
|
+
yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.CopyDesktopImageRequest,
|
|
79
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
80
|
+
]
|
|
81
|
+
"""Copies the specified image to desktop image."""
|
|
82
|
+
|
|
83
|
+
Update: grpc.aio.UnaryUnaryMultiCallable[
|
|
84
|
+
yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.UpdateDesktopImageRequest,
|
|
85
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
86
|
+
]
|
|
87
|
+
"""Updates desktop image properties."""
|
|
88
|
+
|
|
89
|
+
CopyFromDesktop: grpc.aio.UnaryUnaryMultiCallable[
|
|
90
|
+
yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.CopyFromDesktopRequest,
|
|
91
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
92
|
+
]
|
|
93
|
+
"""Copies the specified desktop image from the specified desktop."""
|
|
94
|
+
|
|
95
|
+
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
96
|
+
yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.DeleteDesktopImageRequest,
|
|
97
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
98
|
+
]
|
|
99
|
+
"""Deletes the specified desktop image."""
|
|
100
|
+
|
|
101
|
+
class DesktopImageServiceServicer(metaclass=abc.ABCMeta):
|
|
102
|
+
"""A service for managing desktop images."""
|
|
103
|
+
|
|
104
|
+
@abc.abstractmethod
|
|
105
|
+
def List(
|
|
106
|
+
self,
|
|
107
|
+
request: yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.ListDesktopImagesRequest,
|
|
108
|
+
context: _ServicerContext,
|
|
109
|
+
) -> typing.Union[yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.ListDesktopImagesResponse, collections.abc.Awaitable[yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.ListDesktopImagesResponse]]:
|
|
110
|
+
"""Lists desktop images in the specified folder."""
|
|
111
|
+
|
|
112
|
+
@abc.abstractmethod
|
|
113
|
+
def Get(
|
|
114
|
+
self,
|
|
115
|
+
request: yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.GetDesktopImageRequest,
|
|
116
|
+
context: _ServicerContext,
|
|
117
|
+
) -> typing.Union[yandex.cloud.clouddesktop.v1.desktop_image_pb2.DesktopImage, collections.abc.Awaitable[yandex.cloud.clouddesktop.v1.desktop_image_pb2.DesktopImage]]:
|
|
118
|
+
"""Returns the specified desktop image."""
|
|
119
|
+
|
|
120
|
+
@abc.abstractmethod
|
|
121
|
+
def Copy(
|
|
122
|
+
self,
|
|
123
|
+
request: yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.CopyDesktopImageRequest,
|
|
124
|
+
context: _ServicerContext,
|
|
125
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
126
|
+
"""Copies the specified image to desktop image."""
|
|
127
|
+
|
|
128
|
+
@abc.abstractmethod
|
|
129
|
+
def Update(
|
|
130
|
+
self,
|
|
131
|
+
request: yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.UpdateDesktopImageRequest,
|
|
132
|
+
context: _ServicerContext,
|
|
133
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
134
|
+
"""Updates desktop image properties."""
|
|
135
|
+
|
|
136
|
+
@abc.abstractmethod
|
|
137
|
+
def CopyFromDesktop(
|
|
138
|
+
self,
|
|
139
|
+
request: yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.CopyFromDesktopRequest,
|
|
140
|
+
context: _ServicerContext,
|
|
141
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
142
|
+
"""Copies the specified desktop image from the specified desktop."""
|
|
143
|
+
|
|
144
|
+
@abc.abstractmethod
|
|
145
|
+
def Delete(
|
|
146
|
+
self,
|
|
147
|
+
request: yandex.cloud.clouddesktop.v1.desktop_image_service_pb2.DeleteDesktopImageRequest,
|
|
148
|
+
context: _ServicerContext,
|
|
149
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
150
|
+
"""Deletes the specified desktop image."""
|
|
151
|
+
|
|
152
|
+
def add_DesktopImageServiceServicer_to_server(servicer: DesktopImageServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -0,0 +1,65 @@
|
|
|
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/desktop.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/desktop.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
26
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*yandex/cloud/clouddesktop/v1/desktop.proto\x12 yandex.cloud.clouddesktop.v1.api\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\"\xbd\x05\n\x07\x44\x65sktop\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfolder_id\x18\x02 \x01(\t\x12\x18\n\x10\x64\x65sktop_group_id\x18\x03 \x01(\t\x12.\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x06status\x18\x05 \x01(\x0e\x32\x30.yandex.cloud.clouddesktop.v1.api.Desktop.Status\x12\x0c\n\x04name\x18\x0b \x01(\t\x12>\n\tresources\x18\x15 \x01(\x0b\x32+.yandex.cloud.clouddesktop.v1.api.Resources\x12N\n\x12network_interfaces\x18\x16 \x03(\x0b\x32\x32.yandex.cloud.clouddesktop.v1.api.NetworkInterface\x12\x35\n\x05users\x18\x17 \x03(\x0b\x32&.yandex.cloud.clouddesktop.v1.api.User\x12\x45\n\x06labels\x18\x18 \x03(\x0b\x32\x35.yandex.cloud.clouddesktop.v1.api.Desktop.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xaf\x01\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\x12\x0e\n\nRESTARTING\x10\x04\x12\x0c\n\x08UPDATING\x10\x05\x12\x0c\n\x08STARTING\x10\x06\x12\x0c\n\x08STOPPING\x10\x07\x12\x0b\n\x07STOPPED\x10\x08\x12\t\n\x05\x45RROR\x10\t\x12\x13\n\x0f\x43REATION_FAILED\x10\nJ\x04\x08\x0c\x10\x15J\x04\x08\x06\x10\x0b\"^\n\tResources\x12\x17\n\x06memory\x18\x01 \x01(\x03\x42\x07\xfa\xc7\x31\x03>=1\x12\x16\n\x05\x63ores\x18\x02 \x01(\x03\x42\x07\xfa\xc7\x31\x03>=1\x12 \n\rcore_fraction\x18\x03 \x01(\x03\x42\t\xfa\xc7\x31\x05\x30-100\"N\n\x04User\x12!\n\nsubject_id\x18\x01 \x01(\tB\r\xe8\xc7\x31\x01\x8a\xc8\x31\x05<=100\x12#\n\x0csubject_type\x18\x02 \x01(\tB\r\xe8\xc7\x31\x01\x8a\xc8\x31\x05<=100\"U\n\x10NetworkInterface\x12 \n\nnetwork_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x1f\n\tsubnet_id\x18\x02 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50Bq\n yandex.cloud.api.clouddesktop.v1ZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/clouddesktop/v1;clouddesktopb\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.clouddesktop.v1.desktop_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n yandex.cloud.api.clouddesktop.v1ZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/clouddesktop/v1;clouddesktop'
|
|
37
|
+
_globals['_DESKTOP_LABELSENTRY']._loaded_options = None
|
|
38
|
+
_globals['_DESKTOP_LABELSENTRY']._serialized_options = b'8\001'
|
|
39
|
+
_globals['_RESOURCES'].fields_by_name['memory']._loaded_options = None
|
|
40
|
+
_globals['_RESOURCES'].fields_by_name['memory']._serialized_options = b'\372\3071\003>=1'
|
|
41
|
+
_globals['_RESOURCES'].fields_by_name['cores']._loaded_options = None
|
|
42
|
+
_globals['_RESOURCES'].fields_by_name['cores']._serialized_options = b'\372\3071\003>=1'
|
|
43
|
+
_globals['_RESOURCES'].fields_by_name['core_fraction']._loaded_options = None
|
|
44
|
+
_globals['_RESOURCES'].fields_by_name['core_fraction']._serialized_options = b'\372\3071\0050-100'
|
|
45
|
+
_globals['_USER'].fields_by_name['subject_id']._loaded_options = None
|
|
46
|
+
_globals['_USER'].fields_by_name['subject_id']._serialized_options = b'\350\3071\001\212\3101\005<=100'
|
|
47
|
+
_globals['_USER'].fields_by_name['subject_type']._loaded_options = None
|
|
48
|
+
_globals['_USER'].fields_by_name['subject_type']._serialized_options = b'\350\3071\001\212\3101\005<=100'
|
|
49
|
+
_globals['_NETWORKINTERFACE'].fields_by_name['network_id']._loaded_options = None
|
|
50
|
+
_globals['_NETWORKINTERFACE'].fields_by_name['network_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
51
|
+
_globals['_NETWORKINTERFACE'].fields_by_name['subnet_id']._loaded_options = None
|
|
52
|
+
_globals['_NETWORKINTERFACE'].fields_by_name['subnet_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
53
|
+
_globals['_DESKTOP']._serialized_start=145
|
|
54
|
+
_globals['_DESKTOP']._serialized_end=846
|
|
55
|
+
_globals['_DESKTOP_LABELSENTRY']._serialized_start=611
|
|
56
|
+
_globals['_DESKTOP_LABELSENTRY']._serialized_end=656
|
|
57
|
+
_globals['_DESKTOP_STATUS']._serialized_start=659
|
|
58
|
+
_globals['_DESKTOP_STATUS']._serialized_end=834
|
|
59
|
+
_globals['_RESOURCES']._serialized_start=848
|
|
60
|
+
_globals['_RESOURCES']._serialized_end=942
|
|
61
|
+
_globals['_USER']._serialized_start=944
|
|
62
|
+
_globals['_USER']._serialized_end=1022
|
|
63
|
+
_globals['_NETWORKINTERFACE']._serialized_start=1024
|
|
64
|
+
_globals['_NETWORKINTERFACE']._serialized_end=1109
|
|
65
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,208 @@
|
|
|
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.internal.enum_type_wrapper
|
|
11
|
+
import google.protobuf.message
|
|
12
|
+
import google.protobuf.timestamp_pb2
|
|
13
|
+
import sys
|
|
14
|
+
import typing
|
|
15
|
+
|
|
16
|
+
if sys.version_info >= (3, 10):
|
|
17
|
+
import typing as typing_extensions
|
|
18
|
+
else:
|
|
19
|
+
import typing_extensions
|
|
20
|
+
|
|
21
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
22
|
+
|
|
23
|
+
@typing.final
|
|
24
|
+
class Desktop(google.protobuf.message.Message):
|
|
25
|
+
"""A desktop resource."""
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
28
|
+
|
|
29
|
+
class _Status:
|
|
30
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
31
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
32
|
+
|
|
33
|
+
class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Desktop._Status.ValueType], builtins.type):
|
|
34
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
35
|
+
STATUS_UNSPECIFIED: Desktop._Status.ValueType # 0
|
|
36
|
+
CREATING: Desktop._Status.ValueType # 1
|
|
37
|
+
"""Desktop is being created."""
|
|
38
|
+
ACTIVE: Desktop._Status.ValueType # 2
|
|
39
|
+
"""Desktop is ready to be used."""
|
|
40
|
+
DELETING: Desktop._Status.ValueType # 3
|
|
41
|
+
"""Desktop is being deleted."""
|
|
42
|
+
RESTARTING: Desktop._Status.ValueType # 4
|
|
43
|
+
"""Desktop is restarting."""
|
|
44
|
+
UPDATING: Desktop._Status.ValueType # 5
|
|
45
|
+
"""Desktop is updating."""
|
|
46
|
+
STARTING: Desktop._Status.ValueType # 6
|
|
47
|
+
"""Desktop is starting."""
|
|
48
|
+
STOPPING: Desktop._Status.ValueType # 7
|
|
49
|
+
"""Desktop is stopping."""
|
|
50
|
+
STOPPED: Desktop._Status.ValueType # 8
|
|
51
|
+
"""Desktop is stopped."""
|
|
52
|
+
ERROR: Desktop._Status.ValueType # 9
|
|
53
|
+
"""Desktop did not manage start or restart."""
|
|
54
|
+
CREATION_FAILED: Desktop._Status.ValueType # 10
|
|
55
|
+
"""Desktop did not manage to get created or updated."""
|
|
56
|
+
|
|
57
|
+
class Status(_Status, metaclass=_StatusEnumTypeWrapper): ...
|
|
58
|
+
STATUS_UNSPECIFIED: Desktop.Status.ValueType # 0
|
|
59
|
+
CREATING: Desktop.Status.ValueType # 1
|
|
60
|
+
"""Desktop is being created."""
|
|
61
|
+
ACTIVE: Desktop.Status.ValueType # 2
|
|
62
|
+
"""Desktop is ready to be used."""
|
|
63
|
+
DELETING: Desktop.Status.ValueType # 3
|
|
64
|
+
"""Desktop is being deleted."""
|
|
65
|
+
RESTARTING: Desktop.Status.ValueType # 4
|
|
66
|
+
"""Desktop is restarting."""
|
|
67
|
+
UPDATING: Desktop.Status.ValueType # 5
|
|
68
|
+
"""Desktop is updating."""
|
|
69
|
+
STARTING: Desktop.Status.ValueType # 6
|
|
70
|
+
"""Desktop is starting."""
|
|
71
|
+
STOPPING: Desktop.Status.ValueType # 7
|
|
72
|
+
"""Desktop is stopping."""
|
|
73
|
+
STOPPED: Desktop.Status.ValueType # 8
|
|
74
|
+
"""Desktop is stopped."""
|
|
75
|
+
ERROR: Desktop.Status.ValueType # 9
|
|
76
|
+
"""Desktop did not manage start or restart."""
|
|
77
|
+
CREATION_FAILED: Desktop.Status.ValueType # 10
|
|
78
|
+
"""Desktop did not manage to get created or updated."""
|
|
79
|
+
|
|
80
|
+
@typing.final
|
|
81
|
+
class LabelsEntry(google.protobuf.message.Message):
|
|
82
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
83
|
+
|
|
84
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
85
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
86
|
+
key: builtins.str
|
|
87
|
+
value: builtins.str
|
|
88
|
+
def __init__(
|
|
89
|
+
self,
|
|
90
|
+
*,
|
|
91
|
+
key: builtins.str = ...,
|
|
92
|
+
value: builtins.str = ...,
|
|
93
|
+
) -> None: ...
|
|
94
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
95
|
+
|
|
96
|
+
ID_FIELD_NUMBER: builtins.int
|
|
97
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
98
|
+
DESKTOP_GROUP_ID_FIELD_NUMBER: builtins.int
|
|
99
|
+
CREATED_AT_FIELD_NUMBER: builtins.int
|
|
100
|
+
STATUS_FIELD_NUMBER: builtins.int
|
|
101
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
102
|
+
RESOURCES_FIELD_NUMBER: builtins.int
|
|
103
|
+
NETWORK_INTERFACES_FIELD_NUMBER: builtins.int
|
|
104
|
+
USERS_FIELD_NUMBER: builtins.int
|
|
105
|
+
LABELS_FIELD_NUMBER: builtins.int
|
|
106
|
+
id: builtins.str
|
|
107
|
+
"""Desktop ID."""
|
|
108
|
+
folder_id: builtins.str
|
|
109
|
+
"""ID of the folder that the desktop belongs to."""
|
|
110
|
+
desktop_group_id: builtins.str
|
|
111
|
+
"""ID of the desktop group that the desktop belongs to."""
|
|
112
|
+
status: global___Desktop.Status.ValueType
|
|
113
|
+
"""Status of the desktop."""
|
|
114
|
+
name: builtins.str
|
|
115
|
+
"""Name of the desktop."""
|
|
116
|
+
@property
|
|
117
|
+
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
118
|
+
"""Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format."""
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
def resources(self) -> global___Resources:
|
|
122
|
+
"""Resources of the desktop."""
|
|
123
|
+
|
|
124
|
+
@property
|
|
125
|
+
def network_interfaces(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___NetworkInterface]: ...
|
|
126
|
+
@property
|
|
127
|
+
def users(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___User]: ...
|
|
128
|
+
@property
|
|
129
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
130
|
+
"""Labels of the desktop."""
|
|
131
|
+
|
|
132
|
+
def __init__(
|
|
133
|
+
self,
|
|
134
|
+
*,
|
|
135
|
+
id: builtins.str = ...,
|
|
136
|
+
folder_id: builtins.str = ...,
|
|
137
|
+
desktop_group_id: builtins.str = ...,
|
|
138
|
+
created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
139
|
+
status: global___Desktop.Status.ValueType = ...,
|
|
140
|
+
name: builtins.str = ...,
|
|
141
|
+
resources: global___Resources | None = ...,
|
|
142
|
+
network_interfaces: collections.abc.Iterable[global___NetworkInterface] | None = ...,
|
|
143
|
+
users: collections.abc.Iterable[global___User] | None = ...,
|
|
144
|
+
labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
145
|
+
) -> None: ...
|
|
146
|
+
def HasField(self, field_name: typing.Literal["created_at", b"created_at", "resources", b"resources"]) -> builtins.bool: ...
|
|
147
|
+
def ClearField(self, field_name: typing.Literal["created_at", b"created_at", "desktop_group_id", b"desktop_group_id", "folder_id", b"folder_id", "id", b"id", "labels", b"labels", "name", b"name", "network_interfaces", b"network_interfaces", "resources", b"resources", "status", b"status", "users", b"users"]) -> None: ...
|
|
148
|
+
|
|
149
|
+
global___Desktop = Desktop
|
|
150
|
+
|
|
151
|
+
@typing.final
|
|
152
|
+
class Resources(google.protobuf.message.Message):
|
|
153
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
154
|
+
|
|
155
|
+
MEMORY_FIELD_NUMBER: builtins.int
|
|
156
|
+
CORES_FIELD_NUMBER: builtins.int
|
|
157
|
+
CORE_FRACTION_FIELD_NUMBER: builtins.int
|
|
158
|
+
memory: builtins.int
|
|
159
|
+
cores: builtins.int
|
|
160
|
+
core_fraction: builtins.int
|
|
161
|
+
def __init__(
|
|
162
|
+
self,
|
|
163
|
+
*,
|
|
164
|
+
memory: builtins.int = ...,
|
|
165
|
+
cores: builtins.int = ...,
|
|
166
|
+
core_fraction: builtins.int = ...,
|
|
167
|
+
) -> None: ...
|
|
168
|
+
def ClearField(self, field_name: typing.Literal["core_fraction", b"core_fraction", "cores", b"cores", "memory", b"memory"]) -> None: ...
|
|
169
|
+
|
|
170
|
+
global___Resources = Resources
|
|
171
|
+
|
|
172
|
+
@typing.final
|
|
173
|
+
class User(google.protobuf.message.Message):
|
|
174
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
175
|
+
|
|
176
|
+
SUBJECT_ID_FIELD_NUMBER: builtins.int
|
|
177
|
+
SUBJECT_TYPE_FIELD_NUMBER: builtins.int
|
|
178
|
+
subject_id: builtins.str
|
|
179
|
+
"""Identity of the access binding."""
|
|
180
|
+
subject_type: builtins.str
|
|
181
|
+
"""Type of the access binding, e.g. userAccount, serviceAccount, system."""
|
|
182
|
+
def __init__(
|
|
183
|
+
self,
|
|
184
|
+
*,
|
|
185
|
+
subject_id: builtins.str = ...,
|
|
186
|
+
subject_type: builtins.str = ...,
|
|
187
|
+
) -> None: ...
|
|
188
|
+
def ClearField(self, field_name: typing.Literal["subject_id", b"subject_id", "subject_type", b"subject_type"]) -> None: ...
|
|
189
|
+
|
|
190
|
+
global___User = User
|
|
191
|
+
|
|
192
|
+
@typing.final
|
|
193
|
+
class NetworkInterface(google.protobuf.message.Message):
|
|
194
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
195
|
+
|
|
196
|
+
NETWORK_ID_FIELD_NUMBER: builtins.int
|
|
197
|
+
SUBNET_ID_FIELD_NUMBER: builtins.int
|
|
198
|
+
network_id: builtins.str
|
|
199
|
+
subnet_id: builtins.str
|
|
200
|
+
def __init__(
|
|
201
|
+
self,
|
|
202
|
+
*,
|
|
203
|
+
network_id: builtins.str = ...,
|
|
204
|
+
subnet_id: builtins.str = ...,
|
|
205
|
+
) -> None: ...
|
|
206
|
+
def ClearField(self, field_name: typing.Literal["network_id", b"network_id", "subnet_id", b"subnet_id"]) -> None: ...
|
|
207
|
+
|
|
208
|
+
global___NetworkInterface = NetworkInterface
|
|
@@ -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/desktop_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
|
+
...
|