yandexcloud 0.326.0__py3-none-any.whl → 0.327.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/dataset/v1/dataset_pb2.py +10 -8
- yandex/cloud/ai/dataset/v1/dataset_pb2.pyi +9 -1
- yandex/cloud/ai/dataset/v1/dataset_service_pb2.py +45 -39
- yandex/cloud/ai/dataset/v1/dataset_service_pb2.pyi +57 -2
- yandex/cloud/ai/dataset/v1/dataset_service_pb2_grpc.py +34 -0
- yandex/cloud/ai/dataset/v1/dataset_service_pb2_grpc.pyi +20 -0
- yandex/cloud/ai/tuning/__init__.py +0 -0
- yandex/cloud/ai/tuning/v1/__init__.py +0 -0
- yandex/cloud/ai/tuning/v1/tuning_optimizers_pb2.py +26 -0
- yandex/cloud/ai/tuning/v1/tuning_optimizers_pb2.pyi +35 -0
- yandex/cloud/ai/tuning/v1/tuning_optimizers_pb2_grpc.py +4 -0
- yandex/cloud/ai/tuning/v1/tuning_optimizers_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/tuning/v1/tuning_schedulers_pb2.py +30 -0
- yandex/cloud/ai/tuning/v1/tuning_schedulers_pb2.pyi +51 -0
- yandex/cloud/ai/tuning/v1/tuning_schedulers_pb2_grpc.py +4 -0
- yandex/cloud/ai/tuning/v1/tuning_schedulers_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/tuning/v1/tuning_service_pb2.py +101 -0
- yandex/cloud/ai/tuning/v1/tuning_service_pb2.pyi +577 -0
- yandex/cloud/ai/tuning/v1/tuning_service_pb2_grpc.py +232 -0
- yandex/cloud/ai/tuning/v1/tuning_service_pb2_grpc.pyi +127 -0
- yandex/cloud/ai/tuning/v1/tuning_task_pb2.py +29 -0
- yandex/cloud/ai/tuning/v1/tuning_task_pb2.pyi +86 -0
- yandex/cloud/ai/tuning/v1/tuning_task_pb2_grpc.py +4 -0
- yandex/cloud/ai/tuning/v1/tuning_task_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/tuning/v1/tuning_types_pb2.py +28 -0
- yandex/cloud/ai/tuning/v1/tuning_types_pb2.pyi +50 -0
- yandex/cloud/ai/tuning/v1/tuning_types_pb2_grpc.py +4 -0
- yandex/cloud/ai/tuning/v1/tuning_types_pb2_grpc.pyi +17 -0
- yandex/cloud/cic/v1/private_connection_pb2.py +5 -3
- yandex/cloud/cic/v1/private_connection_pb2.pyi +1 -0
- yandex/cloud/cloudregistry/v1/registry_service_pb2.py +41 -41
- yandex/cloud/dataproc/v1/cluster_pb2.py +20 -18
- yandex/cloud/dataproc/v1/cluster_pb2.pyi +20 -1
- yandex/cloud/dataproc/v1/cluster_service_pb2.py +40 -40
- yandex/cloud/dataproc/v1/cluster_service_pb2.pyi +5 -1
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.py +34 -32
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.pyi +21 -1
- yandex/cloud/datasphere/v2/jobs/project_job_service_pb2.py +54 -54
- yandex/cloud/datasphere/v2/jobs/project_job_service_pb2.pyi +7 -1
- yandex/cloud/marketplace/metering/v1/product_usage_service_pb2.py +39 -0
- yandex/cloud/marketplace/metering/v1/product_usage_service_pb2.pyi +64 -0
- yandex/cloud/marketplace/metering/v1/product_usage_service_pb2_grpc.py +67 -0
- yandex/cloud/marketplace/metering/v1/product_usage_service_pb2_grpc.pyi +44 -0
- yandex/cloud/searchapi/v2/search_query_pb2.py +8 -6
- yandex/cloud/searchapi/v2/search_query_pb2.pyi +24 -1
- yandex/cloud/searchapi/v2/search_service_pb2.py +14 -8
- yandex/cloud/searchapi/v2/search_service_pb2.pyi +33 -6
- yandex/cloud/searchapi/v2/search_service_pb2_grpc.py +64 -0
- yandex/cloud/searchapi/v2/search_service_pb2_grpc.pyi +29 -0
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.py +12 -6
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.pyi +31 -3
- yandex/cloud/speechsense/v1/classifier_pb2.py +26 -0
- yandex/cloud/speechsense/v1/classifier_pb2.pyi +35 -0
- yandex/cloud/speechsense/v1/classifier_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/classifier_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/classifiers_service_pb2.py +34 -0
- yandex/cloud/speechsense/v1/classifiers_service_pb2.pyi +48 -0
- yandex/cloud/speechsense/v1/classifiers_service_pb2_grpc.py +67 -0
- yandex/cloud/speechsense/v1/classifiers_service_pb2_grpc.pyi +44 -0
- {yandexcloud-0.326.0.dist-info → yandexcloud-0.327.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.326.0.dist-info → yandexcloud-0.327.0.dist-info}/RECORD +65 -31
- {yandexcloud-0.326.0.dist-info → yandexcloud-0.327.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.326.0.dist-info → yandexcloud-0.327.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.326.0.dist-info → yandexcloud-0.327.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.326.0.dist-info → yandexcloud-0.327.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,232 @@
|
|
|
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.ai.tuning.v1 import tuning_service_pb2 as yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2
|
|
6
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class TuningServiceStub(object):
|
|
10
|
+
"""Missing associated documentation comment in .proto file."""
|
|
11
|
+
|
|
12
|
+
def __init__(self, channel):
|
|
13
|
+
"""Constructor.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
channel: A grpc.Channel.
|
|
17
|
+
"""
|
|
18
|
+
self.Tune = channel.unary_unary(
|
|
19
|
+
'/yandex.cloud.ai.tuning.v1.TuningService/Tune',
|
|
20
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.TuningRequest.SerializeToString,
|
|
21
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
22
|
+
)
|
|
23
|
+
self.List = channel.unary_unary(
|
|
24
|
+
'/yandex.cloud.ai.tuning.v1.TuningService/List',
|
|
25
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.ListTuningsRequest.SerializeToString,
|
|
26
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.ListTuningsResponse.FromString,
|
|
27
|
+
)
|
|
28
|
+
self.Describe = channel.unary_unary(
|
|
29
|
+
'/yandex.cloud.ai.tuning.v1.TuningService/Describe',
|
|
30
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.DescribeTuningRequest.SerializeToString,
|
|
31
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.DescribeTuningResponse.FromString,
|
|
32
|
+
)
|
|
33
|
+
self.Cancel = channel.unary_unary(
|
|
34
|
+
'/yandex.cloud.ai.tuning.v1.TuningService/Cancel',
|
|
35
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.CancelTuningRequest.SerializeToString,
|
|
36
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.CancelTuningResponse.FromString,
|
|
37
|
+
)
|
|
38
|
+
self.GetMetricsUrl = channel.unary_unary(
|
|
39
|
+
'/yandex.cloud.ai.tuning.v1.TuningService/GetMetricsUrl',
|
|
40
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.GetMetricsUrlRequest.SerializeToString,
|
|
41
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.GetMetricsUrlResponse.FromString,
|
|
42
|
+
)
|
|
43
|
+
self.GetOptions = channel.unary_unary(
|
|
44
|
+
'/yandex.cloud.ai.tuning.v1.TuningService/GetOptions',
|
|
45
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.GetOptionsRequest.SerializeToString,
|
|
46
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.GetOptionsResponse.FromString,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class TuningServiceServicer(object):
|
|
51
|
+
"""Missing associated documentation comment in .proto file."""
|
|
52
|
+
|
|
53
|
+
def Tune(self, request, context):
|
|
54
|
+
"""Missing associated documentation comment in .proto file."""
|
|
55
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
56
|
+
context.set_details('Method not implemented!')
|
|
57
|
+
raise NotImplementedError('Method not implemented!')
|
|
58
|
+
|
|
59
|
+
def List(self, request, context):
|
|
60
|
+
"""Missing associated documentation comment in .proto file."""
|
|
61
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
62
|
+
context.set_details('Method not implemented!')
|
|
63
|
+
raise NotImplementedError('Method not implemented!')
|
|
64
|
+
|
|
65
|
+
def Describe(self, request, context):
|
|
66
|
+
"""Missing associated documentation comment in .proto file."""
|
|
67
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
68
|
+
context.set_details('Method not implemented!')
|
|
69
|
+
raise NotImplementedError('Method not implemented!')
|
|
70
|
+
|
|
71
|
+
def Cancel(self, request, context):
|
|
72
|
+
"""Missing associated documentation comment in .proto file."""
|
|
73
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
74
|
+
context.set_details('Method not implemented!')
|
|
75
|
+
raise NotImplementedError('Method not implemented!')
|
|
76
|
+
|
|
77
|
+
def GetMetricsUrl(self, request, context):
|
|
78
|
+
"""Missing associated documentation comment in .proto file."""
|
|
79
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
80
|
+
context.set_details('Method not implemented!')
|
|
81
|
+
raise NotImplementedError('Method not implemented!')
|
|
82
|
+
|
|
83
|
+
def GetOptions(self, request, context):
|
|
84
|
+
"""Missing associated documentation comment in .proto file."""
|
|
85
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
86
|
+
context.set_details('Method not implemented!')
|
|
87
|
+
raise NotImplementedError('Method not implemented!')
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def add_TuningServiceServicer_to_server(servicer, server):
|
|
91
|
+
rpc_method_handlers = {
|
|
92
|
+
'Tune': grpc.unary_unary_rpc_method_handler(
|
|
93
|
+
servicer.Tune,
|
|
94
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.TuningRequest.FromString,
|
|
95
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
96
|
+
),
|
|
97
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
98
|
+
servicer.List,
|
|
99
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.ListTuningsRequest.FromString,
|
|
100
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.ListTuningsResponse.SerializeToString,
|
|
101
|
+
),
|
|
102
|
+
'Describe': grpc.unary_unary_rpc_method_handler(
|
|
103
|
+
servicer.Describe,
|
|
104
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.DescribeTuningRequest.FromString,
|
|
105
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.DescribeTuningResponse.SerializeToString,
|
|
106
|
+
),
|
|
107
|
+
'Cancel': grpc.unary_unary_rpc_method_handler(
|
|
108
|
+
servicer.Cancel,
|
|
109
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.CancelTuningRequest.FromString,
|
|
110
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.CancelTuningResponse.SerializeToString,
|
|
111
|
+
),
|
|
112
|
+
'GetMetricsUrl': grpc.unary_unary_rpc_method_handler(
|
|
113
|
+
servicer.GetMetricsUrl,
|
|
114
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.GetMetricsUrlRequest.FromString,
|
|
115
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.GetMetricsUrlResponse.SerializeToString,
|
|
116
|
+
),
|
|
117
|
+
'GetOptions': grpc.unary_unary_rpc_method_handler(
|
|
118
|
+
servicer.GetOptions,
|
|
119
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.GetOptionsRequest.FromString,
|
|
120
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.GetOptionsResponse.SerializeToString,
|
|
121
|
+
),
|
|
122
|
+
}
|
|
123
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
124
|
+
'yandex.cloud.ai.tuning.v1.TuningService', rpc_method_handlers)
|
|
125
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
# This class is part of an EXPERIMENTAL API.
|
|
129
|
+
class TuningService(object):
|
|
130
|
+
"""Missing associated documentation comment in .proto file."""
|
|
131
|
+
|
|
132
|
+
@staticmethod
|
|
133
|
+
def Tune(request,
|
|
134
|
+
target,
|
|
135
|
+
options=(),
|
|
136
|
+
channel_credentials=None,
|
|
137
|
+
call_credentials=None,
|
|
138
|
+
insecure=False,
|
|
139
|
+
compression=None,
|
|
140
|
+
wait_for_ready=None,
|
|
141
|
+
timeout=None,
|
|
142
|
+
metadata=None):
|
|
143
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.tuning.v1.TuningService/Tune',
|
|
144
|
+
yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.TuningRequest.SerializeToString,
|
|
145
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
146
|
+
options, channel_credentials,
|
|
147
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
148
|
+
|
|
149
|
+
@staticmethod
|
|
150
|
+
def List(request,
|
|
151
|
+
target,
|
|
152
|
+
options=(),
|
|
153
|
+
channel_credentials=None,
|
|
154
|
+
call_credentials=None,
|
|
155
|
+
insecure=False,
|
|
156
|
+
compression=None,
|
|
157
|
+
wait_for_ready=None,
|
|
158
|
+
timeout=None,
|
|
159
|
+
metadata=None):
|
|
160
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.tuning.v1.TuningService/List',
|
|
161
|
+
yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.ListTuningsRequest.SerializeToString,
|
|
162
|
+
yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.ListTuningsResponse.FromString,
|
|
163
|
+
options, channel_credentials,
|
|
164
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
165
|
+
|
|
166
|
+
@staticmethod
|
|
167
|
+
def Describe(request,
|
|
168
|
+
target,
|
|
169
|
+
options=(),
|
|
170
|
+
channel_credentials=None,
|
|
171
|
+
call_credentials=None,
|
|
172
|
+
insecure=False,
|
|
173
|
+
compression=None,
|
|
174
|
+
wait_for_ready=None,
|
|
175
|
+
timeout=None,
|
|
176
|
+
metadata=None):
|
|
177
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.tuning.v1.TuningService/Describe',
|
|
178
|
+
yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.DescribeTuningRequest.SerializeToString,
|
|
179
|
+
yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.DescribeTuningResponse.FromString,
|
|
180
|
+
options, channel_credentials,
|
|
181
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
182
|
+
|
|
183
|
+
@staticmethod
|
|
184
|
+
def Cancel(request,
|
|
185
|
+
target,
|
|
186
|
+
options=(),
|
|
187
|
+
channel_credentials=None,
|
|
188
|
+
call_credentials=None,
|
|
189
|
+
insecure=False,
|
|
190
|
+
compression=None,
|
|
191
|
+
wait_for_ready=None,
|
|
192
|
+
timeout=None,
|
|
193
|
+
metadata=None):
|
|
194
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.tuning.v1.TuningService/Cancel',
|
|
195
|
+
yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.CancelTuningRequest.SerializeToString,
|
|
196
|
+
yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.CancelTuningResponse.FromString,
|
|
197
|
+
options, channel_credentials,
|
|
198
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
199
|
+
|
|
200
|
+
@staticmethod
|
|
201
|
+
def GetMetricsUrl(request,
|
|
202
|
+
target,
|
|
203
|
+
options=(),
|
|
204
|
+
channel_credentials=None,
|
|
205
|
+
call_credentials=None,
|
|
206
|
+
insecure=False,
|
|
207
|
+
compression=None,
|
|
208
|
+
wait_for_ready=None,
|
|
209
|
+
timeout=None,
|
|
210
|
+
metadata=None):
|
|
211
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.tuning.v1.TuningService/GetMetricsUrl',
|
|
212
|
+
yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.GetMetricsUrlRequest.SerializeToString,
|
|
213
|
+
yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.GetMetricsUrlResponse.FromString,
|
|
214
|
+
options, channel_credentials,
|
|
215
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
216
|
+
|
|
217
|
+
@staticmethod
|
|
218
|
+
def GetOptions(request,
|
|
219
|
+
target,
|
|
220
|
+
options=(),
|
|
221
|
+
channel_credentials=None,
|
|
222
|
+
call_credentials=None,
|
|
223
|
+
insecure=False,
|
|
224
|
+
compression=None,
|
|
225
|
+
wait_for_ready=None,
|
|
226
|
+
timeout=None,
|
|
227
|
+
metadata=None):
|
|
228
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.tuning.v1.TuningService/GetOptions',
|
|
229
|
+
yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.GetOptionsRequest.SerializeToString,
|
|
230
|
+
yandex_dot_cloud_dot_ai_dot_tuning_dot_v1_dot_tuning__service__pb2.GetOptionsResponse.FromString,
|
|
231
|
+
options, channel_credentials,
|
|
232
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,127 @@
|
|
|
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.ai.tuning.v1.tuning_service_pb2
|
|
12
|
+
import yandex.cloud.operation.operation_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 TuningServiceStub:
|
|
22
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
23
|
+
Tune: grpc.UnaryUnaryMultiCallable[
|
|
24
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.TuningRequest,
|
|
25
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
29
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.ListTuningsRequest,
|
|
30
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.ListTuningsResponse,
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
Describe: grpc.UnaryUnaryMultiCallable[
|
|
34
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.DescribeTuningRequest,
|
|
35
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.DescribeTuningResponse,
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
Cancel: grpc.UnaryUnaryMultiCallable[
|
|
39
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.CancelTuningRequest,
|
|
40
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.CancelTuningResponse,
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
GetMetricsUrl: grpc.UnaryUnaryMultiCallable[
|
|
44
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.GetMetricsUrlRequest,
|
|
45
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.GetMetricsUrlResponse,
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
GetOptions: grpc.UnaryUnaryMultiCallable[
|
|
49
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.GetOptionsRequest,
|
|
50
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.GetOptionsResponse,
|
|
51
|
+
]
|
|
52
|
+
|
|
53
|
+
class TuningServiceAsyncStub:
|
|
54
|
+
Tune: grpc.aio.UnaryUnaryMultiCallable[
|
|
55
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.TuningRequest,
|
|
56
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
60
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.ListTuningsRequest,
|
|
61
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.ListTuningsResponse,
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
Describe: grpc.aio.UnaryUnaryMultiCallable[
|
|
65
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.DescribeTuningRequest,
|
|
66
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.DescribeTuningResponse,
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
Cancel: grpc.aio.UnaryUnaryMultiCallable[
|
|
70
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.CancelTuningRequest,
|
|
71
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.CancelTuningResponse,
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
GetMetricsUrl: grpc.aio.UnaryUnaryMultiCallable[
|
|
75
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.GetMetricsUrlRequest,
|
|
76
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.GetMetricsUrlResponse,
|
|
77
|
+
]
|
|
78
|
+
|
|
79
|
+
GetOptions: grpc.aio.UnaryUnaryMultiCallable[
|
|
80
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.GetOptionsRequest,
|
|
81
|
+
yandex.cloud.ai.tuning.v1.tuning_service_pb2.GetOptionsResponse,
|
|
82
|
+
]
|
|
83
|
+
|
|
84
|
+
class TuningServiceServicer(metaclass=abc.ABCMeta):
|
|
85
|
+
@abc.abstractmethod
|
|
86
|
+
def Tune(
|
|
87
|
+
self,
|
|
88
|
+
request: yandex.cloud.ai.tuning.v1.tuning_service_pb2.TuningRequest,
|
|
89
|
+
context: _ServicerContext,
|
|
90
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]: ...
|
|
91
|
+
|
|
92
|
+
@abc.abstractmethod
|
|
93
|
+
def List(
|
|
94
|
+
self,
|
|
95
|
+
request: yandex.cloud.ai.tuning.v1.tuning_service_pb2.ListTuningsRequest,
|
|
96
|
+
context: _ServicerContext,
|
|
97
|
+
) -> typing.Union[yandex.cloud.ai.tuning.v1.tuning_service_pb2.ListTuningsResponse, collections.abc.Awaitable[yandex.cloud.ai.tuning.v1.tuning_service_pb2.ListTuningsResponse]]: ...
|
|
98
|
+
|
|
99
|
+
@abc.abstractmethod
|
|
100
|
+
def Describe(
|
|
101
|
+
self,
|
|
102
|
+
request: yandex.cloud.ai.tuning.v1.tuning_service_pb2.DescribeTuningRequest,
|
|
103
|
+
context: _ServicerContext,
|
|
104
|
+
) -> typing.Union[yandex.cloud.ai.tuning.v1.tuning_service_pb2.DescribeTuningResponse, collections.abc.Awaitable[yandex.cloud.ai.tuning.v1.tuning_service_pb2.DescribeTuningResponse]]: ...
|
|
105
|
+
|
|
106
|
+
@abc.abstractmethod
|
|
107
|
+
def Cancel(
|
|
108
|
+
self,
|
|
109
|
+
request: yandex.cloud.ai.tuning.v1.tuning_service_pb2.CancelTuningRequest,
|
|
110
|
+
context: _ServicerContext,
|
|
111
|
+
) -> typing.Union[yandex.cloud.ai.tuning.v1.tuning_service_pb2.CancelTuningResponse, collections.abc.Awaitable[yandex.cloud.ai.tuning.v1.tuning_service_pb2.CancelTuningResponse]]: ...
|
|
112
|
+
|
|
113
|
+
@abc.abstractmethod
|
|
114
|
+
def GetMetricsUrl(
|
|
115
|
+
self,
|
|
116
|
+
request: yandex.cloud.ai.tuning.v1.tuning_service_pb2.GetMetricsUrlRequest,
|
|
117
|
+
context: _ServicerContext,
|
|
118
|
+
) -> typing.Union[yandex.cloud.ai.tuning.v1.tuning_service_pb2.GetMetricsUrlResponse, collections.abc.Awaitable[yandex.cloud.ai.tuning.v1.tuning_service_pb2.GetMetricsUrlResponse]]: ...
|
|
119
|
+
|
|
120
|
+
@abc.abstractmethod
|
|
121
|
+
def GetOptions(
|
|
122
|
+
self,
|
|
123
|
+
request: yandex.cloud.ai.tuning.v1.tuning_service_pb2.GetOptionsRequest,
|
|
124
|
+
context: _ServicerContext,
|
|
125
|
+
) -> typing.Union[yandex.cloud.ai.tuning.v1.tuning_service_pb2.GetOptionsResponse, collections.abc.Awaitable[yandex.cloud.ai.tuning.v1.tuning_service_pb2.GetOptionsResponse]]: ...
|
|
126
|
+
|
|
127
|
+
def add_TuningServiceServicer_to_server(servicer: TuningServiceServicer, 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/ai/tuning/v1/tuning_task.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/ai/tuning/v1/tuning_task.proto\x12\x19yandex.cloud.ai.tuning.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xcb\x03\n\nTuningTask\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x03 \x01(\t\x12<\n\x06status\x18\x04 \x01(\x0e\x32,.yandex.cloud.ai.tuning.v1.TuningTask.Status\x12\x11\n\tfolder_id\x18\x05 \x01(\t\x12\x12\n\ncreated_by\x18\x06 \x01(\t\x12.\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstarted_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inished_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10source_model_uri\x18\n \x01(\t\x12\x18\n\x10target_model_uri\x18\x0b \x01(\t\"f\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0f\n\x0bIN_PROGRESS\x10\x03\x12\r\n\tCOMPLETED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05J\x04\x08\x02\x10\x03\x42\x63\n\x1dyandex.cloud.api.ai.tuning.v1ZBgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/tuning/v1;fomob\x06proto3')
|
|
18
|
+
|
|
19
|
+
_globals = globals()
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.ai.tuning.v1.tuning_task_pb2', _globals)
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
DESCRIPTOR._options = None
|
|
24
|
+
DESCRIPTOR._serialized_options = b'\n\035yandex.cloud.api.ai.tuning.v1ZBgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/tuning/v1;fomo'
|
|
25
|
+
_globals['_TUNINGTASK']._serialized_start=108
|
|
26
|
+
_globals['_TUNINGTASK']._serialized_end=567
|
|
27
|
+
_globals['_TUNINGTASK_STATUS']._serialized_start=459
|
|
28
|
+
_globals['_TUNINGTASK_STATUS']._serialized_end=561
|
|
29
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,86 @@
|
|
|
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 TuningTask(google.protobuf.message.Message):
|
|
23
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
24
|
+
|
|
25
|
+
class _Status:
|
|
26
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
27
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
28
|
+
|
|
29
|
+
class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[TuningTask._Status.ValueType], builtins.type):
|
|
30
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
31
|
+
STATUS_UNSPECIFIED: TuningTask._Status.ValueType # 0
|
|
32
|
+
CREATED: TuningTask._Status.ValueType # 1
|
|
33
|
+
PENDING: TuningTask._Status.ValueType # 2
|
|
34
|
+
IN_PROGRESS: TuningTask._Status.ValueType # 3
|
|
35
|
+
COMPLETED: TuningTask._Status.ValueType # 4
|
|
36
|
+
FAILED: TuningTask._Status.ValueType # 5
|
|
37
|
+
|
|
38
|
+
class Status(_Status, metaclass=_StatusEnumTypeWrapper): ...
|
|
39
|
+
STATUS_UNSPECIFIED: TuningTask.Status.ValueType # 0
|
|
40
|
+
CREATED: TuningTask.Status.ValueType # 1
|
|
41
|
+
PENDING: TuningTask.Status.ValueType # 2
|
|
42
|
+
IN_PROGRESS: TuningTask.Status.ValueType # 3
|
|
43
|
+
COMPLETED: TuningTask.Status.ValueType # 4
|
|
44
|
+
FAILED: TuningTask.Status.ValueType # 5
|
|
45
|
+
|
|
46
|
+
TASK_ID_FIELD_NUMBER: builtins.int
|
|
47
|
+
OPERATION_ID_FIELD_NUMBER: builtins.int
|
|
48
|
+
STATUS_FIELD_NUMBER: builtins.int
|
|
49
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
50
|
+
CREATED_BY_FIELD_NUMBER: builtins.int
|
|
51
|
+
CREATED_AT_FIELD_NUMBER: builtins.int
|
|
52
|
+
STARTED_AT_FIELD_NUMBER: builtins.int
|
|
53
|
+
FINISHED_AT_FIELD_NUMBER: builtins.int
|
|
54
|
+
SOURCE_MODEL_URI_FIELD_NUMBER: builtins.int
|
|
55
|
+
TARGET_MODEL_URI_FIELD_NUMBER: builtins.int
|
|
56
|
+
task_id: builtins.str
|
|
57
|
+
operation_id: builtins.str
|
|
58
|
+
status: global___TuningTask.Status.ValueType
|
|
59
|
+
folder_id: builtins.str
|
|
60
|
+
created_by: builtins.str
|
|
61
|
+
source_model_uri: builtins.str
|
|
62
|
+
target_model_uri: builtins.str
|
|
63
|
+
@property
|
|
64
|
+
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
65
|
+
@property
|
|
66
|
+
def started_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
67
|
+
@property
|
|
68
|
+
def finished_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
69
|
+
def __init__(
|
|
70
|
+
self,
|
|
71
|
+
*,
|
|
72
|
+
task_id: builtins.str = ...,
|
|
73
|
+
operation_id: builtins.str = ...,
|
|
74
|
+
status: global___TuningTask.Status.ValueType = ...,
|
|
75
|
+
folder_id: builtins.str = ...,
|
|
76
|
+
created_by: builtins.str = ...,
|
|
77
|
+
created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
78
|
+
started_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
79
|
+
finished_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
80
|
+
source_model_uri: builtins.str = ...,
|
|
81
|
+
target_model_uri: builtins.str = ...,
|
|
82
|
+
) -> None: ...
|
|
83
|
+
def HasField(self, field_name: typing.Literal["created_at", b"created_at", "finished_at", b"finished_at", "started_at", b"started_at"]) -> builtins.bool: ...
|
|
84
|
+
def ClearField(self, field_name: typing.Literal["created_at", b"created_at", "created_by", b"created_by", "finished_at", b"finished_at", "folder_id", b"folder_id", "operation_id", b"operation_id", "source_model_uri", b"source_model_uri", "started_at", b"started_at", "status", b"status", "target_model_uri", b"target_model_uri", "task_id", b"task_id"]) -> None: ...
|
|
85
|
+
|
|
86
|
+
global___TuningTask = TuningTask
|
|
@@ -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,28 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/ai/tuning/v1/tuning_types.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
|
+
|
|
15
|
+
|
|
16
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/ai/tuning/v1/tuning_types.proto\x12\x19yandex.cloud.ai.tuning.v1\"S\n\x0eTuningTypeLora\x12\x0c\n\x04rank\x18\x01 \x01(\x03\x12\r\n\x05\x61lpha\x18\x02 \x01(\x01\x12\x16\n\x0einitialization\x18\x03 \x01(\t\x12\x0c\n\x04type\x18\x04 \x01(\t\".\n\x14TuningTypePromptTune\x12\x16\n\x0evirtual_tokens\x18\x01 \x01(\x03\x42\x63\n\x1dyandex.cloud.api.ai.tuning.v1ZBgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/tuning/v1;fomob\x06proto3')
|
|
17
|
+
|
|
18
|
+
_globals = globals()
|
|
19
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
20
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.ai.tuning.v1.tuning_types_pb2', _globals)
|
|
21
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
22
|
+
DESCRIPTOR._options = None
|
|
23
|
+
DESCRIPTOR._serialized_options = b'\n\035yandex.cloud.api.ai.tuning.v1ZBgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/tuning/v1;fomo'
|
|
24
|
+
_globals['_TUNINGTYPELORA']._serialized_start=75
|
|
25
|
+
_globals['_TUNINGTYPELORA']._serialized_end=158
|
|
26
|
+
_globals['_TUNINGTYPEPROMPTTUNE']._serialized_start=160
|
|
27
|
+
_globals['_TUNINGTYPEPROMPTTUNE']._serialized_end=206
|
|
28
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,50 @@
|
|
|
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.message
|
|
9
|
+
import typing
|
|
10
|
+
|
|
11
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
12
|
+
|
|
13
|
+
@typing.final
|
|
14
|
+
class TuningTypeLora(google.protobuf.message.Message):
|
|
15
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
16
|
+
|
|
17
|
+
RANK_FIELD_NUMBER: builtins.int
|
|
18
|
+
ALPHA_FIELD_NUMBER: builtins.int
|
|
19
|
+
INITIALIZATION_FIELD_NUMBER: builtins.int
|
|
20
|
+
TYPE_FIELD_NUMBER: builtins.int
|
|
21
|
+
rank: builtins.int
|
|
22
|
+
alpha: builtins.float
|
|
23
|
+
initialization: builtins.str
|
|
24
|
+
type: builtins.str
|
|
25
|
+
def __init__(
|
|
26
|
+
self,
|
|
27
|
+
*,
|
|
28
|
+
rank: builtins.int = ...,
|
|
29
|
+
alpha: builtins.float = ...,
|
|
30
|
+
initialization: builtins.str = ...,
|
|
31
|
+
type: builtins.str = ...,
|
|
32
|
+
) -> None: ...
|
|
33
|
+
def ClearField(self, field_name: typing.Literal["alpha", b"alpha", "initialization", b"initialization", "rank", b"rank", "type", b"type"]) -> None: ...
|
|
34
|
+
|
|
35
|
+
global___TuningTypeLora = TuningTypeLora
|
|
36
|
+
|
|
37
|
+
@typing.final
|
|
38
|
+
class TuningTypePromptTune(google.protobuf.message.Message):
|
|
39
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
40
|
+
|
|
41
|
+
VIRTUAL_TOKENS_FIELD_NUMBER: builtins.int
|
|
42
|
+
virtual_tokens: builtins.int
|
|
43
|
+
def __init__(
|
|
44
|
+
self,
|
|
45
|
+
*,
|
|
46
|
+
virtual_tokens: builtins.int = ...,
|
|
47
|
+
) -> None: ...
|
|
48
|
+
def ClearField(self, field_name: typing.Literal["virtual_tokens", b"virtual_tokens"]) -> None: ...
|
|
49
|
+
|
|
50
|
+
global___TuningTypePromptTune = TuningTypePromptTune
|
|
@@ -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
|
+
...
|
|
@@ -15,7 +15,7 @@ from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb
|
|
|
15
15
|
from yandex.cloud.cic.v1 import peering_pb2 as yandex_dot_cloud_dot_cic_dot_v1_dot_peering__pb2
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/cic/v1/private_connection.proto\x12\x13yandex.cloud.cic.v1\x1a\x1egoogle/protobuf/wrappers.proto\x1a!yandex/cloud/cic/v1/peering.proto\"\
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/cic/v1/private_connection.proto\x12\x13yandex.cloud.cic.v1\x1a\x1egoogle/protobuf/wrappers.proto\x1a!yandex/cloud/cic/v1/peering.proto\"\xf1\x03\n\x11PrivateConnection\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x11\n\tfolder_id\x18\x05 \x01(\t\x12\x11\n\tregion_id\x18\x06 \x01(\t\x12\x1b\n\x13trunk_connection_id\x18\x07 \x01(\t\x12,\n\x07vlan_id\x18\x08 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\x0cipv4_peering\x18\t \x01(\x0b\x32\x1c.yandex.cloud.cic.v1.Peering\x12N\n\x12ipv4_static_routes\x18\x12 \x03(\x0b\x32\x32.yandex.cloud.cic.v1.PrivateConnection.StaticRoute\x12\x42\n\x06labels\x18\x18 \x03(\x0b\x32\x32.yandex.cloud.cic.v1.PrivateConnection.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x33\n\x0bStaticRoute\x12\x0e\n\x06prefix\x18\x01 \x01(\t\x12\x14\n\x08next_hop\x18\x02 \x03(\tB\x02\x18\x01J\x04\x08\x04\x10\x05J\x04\x08\n\x10\x12J\x04\x08\x13\x10\x18\x42V\n\x17yandex.cloud.api.cic.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/cic/v1;cicb\x06proto3')
|
|
19
19
|
|
|
20
20
|
_globals = globals()
|
|
21
21
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -25,10 +25,12 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
25
25
|
DESCRIPTOR._serialized_options = b'\n\027yandex.cloud.api.cic.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/cic/v1;cic'
|
|
26
26
|
_PRIVATECONNECTION_LABELSENTRY._options = None
|
|
27
27
|
_PRIVATECONNECTION_LABELSENTRY._serialized_options = b'8\001'
|
|
28
|
+
_PRIVATECONNECTION_STATICROUTE.fields_by_name['next_hop']._options = None
|
|
29
|
+
_PRIVATECONNECTION_STATICROUTE.fields_by_name['next_hop']._serialized_options = b'\030\001'
|
|
28
30
|
_globals['_PRIVATECONNECTION']._serialized_start=137
|
|
29
|
-
_globals['_PRIVATECONNECTION']._serialized_end=
|
|
31
|
+
_globals['_PRIVATECONNECTION']._serialized_end=634
|
|
30
32
|
_globals['_PRIVATECONNECTION_LABELSENTRY']._serialized_start=518
|
|
31
33
|
_globals['_PRIVATECONNECTION_LABELSENTRY']._serialized_end=563
|
|
32
34
|
_globals['_PRIVATECONNECTION_STATICROUTE']._serialized_start=565
|
|
33
|
-
_globals['_PRIVATECONNECTION_STATICROUTE']._serialized_end=
|
|
35
|
+
_globals['_PRIVATECONNECTION_STATICROUTE']._serialized_end=616
|
|
34
36
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -50,6 +50,7 @@ class PrivateConnection(google.protobuf.message.Message):
|
|
|
50
50
|
def next_hop(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
51
51
|
"""PeerIp.
|
|
52
52
|
It's an ip with just an ipAddress format without mask.
|
|
53
|
+
Will be removed in some next release
|
|
53
54
|
"""
|
|
54
55
|
|
|
55
56
|
def __init__(
|