yandexcloud 0.346.0__py3-none-any.whl → 0.347.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/assistants/v1/common_pb2.py +18 -10
- yandex/cloud/ai/assistants/v1/common_pb2.pyi +67 -2
- yandex/cloud/marketplace/licensemanager/saas/v1/lock_service_pb2.py +11 -3
- yandex/cloud/marketplace/licensemanager/saas/v1/lock_service_pb2.pyi +20 -0
- yandex/cloud/marketplace/licensemanager/saas/v1/lock_service_pb2_grpc.py +44 -0
- yandex/cloud/marketplace/licensemanager/saas/v1/lock_service_pb2_grpc.pyi +20 -0
- yandex/cloud/marketplace/pim/v1/saas/product_instance_pb2.pyi +35 -4
- yandex/cloud/marketplace/pim/v1/saas/product_instance_service_pb2.pyi +9 -1
- yandex/cloud/marketplace/pim/v1/saas/product_instance_service_pb2_grpc.py +10 -5
- yandex/cloud/marketplace/pim/v1/saas/product_instance_service_pb2_grpc.pyi +14 -2
- yandex/cloud/mdb/mysql/v1/cluster_service_pb2.py +74 -74
- yandex/cloud/mdb/mysql/v1/cluster_service_pb2.pyi +8 -2
- yandex/cloud/mdb/postgresql/v1/cluster_service_pb2.py +64 -64
- yandex/cloud/mdb/postgresql/v1/cluster_service_pb2.pyi +8 -2
- yandex/cloud/monitoring/v3/thresholds_pb2.py +5 -5
- yandex/cloud/monitoring/v3/thresholds_pb2.pyi +4 -2
- yandex/cloud/serverless/eventrouter/v1/event_service_pb2.py +7 -12
- yandexcloud/__init__.py +1 -1
- {yandexcloud-0.346.0.dist-info → yandexcloud-0.347.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.346.0.dist-info → yandexcloud-0.347.0.dist-info}/RECORD +24 -24
- {yandexcloud-0.346.0.dist-info → yandexcloud-0.347.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.346.0.dist-info → yandexcloud-0.347.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.346.0.dist-info → yandexcloud-0.347.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.346.0.dist-info → yandexcloud-0.347.0.dist-info}/top_level.txt +0 -0
|
@@ -27,7 +27,7 @@ from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb
|
|
|
27
27
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*yandex/cloud/ai/assistants/v1/common.proto\x12\x1dyandex.cloud.ai.assistants.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1dyandex/cloud/validation.proto\"\xf2\x02\n\x17PromptTruncationOptions\x12\x36\n\x11max_prompt_tokens\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\\\n\rauto_strategy\x18\x02 \x01(\x0b\x32\x43.yandex.cloud.ai.assistants.v1.PromptTruncationOptions.AutoStrategyH\x00\x12m\n\x16last_messages_strategy\x18\x03 \x01(\x0b\x32K.yandex.cloud.ai.assistants.v1.PromptTruncationOptions.LastMessagesStrategyH\x00\x1a\x0e\n\x0c\x41utoStrategy\x1a,\n\x14LastMessagesStrategy\x12\x14\n\x0cnum_messages\x18\x01 \x01(\x03\x42\x14\n\x12TruncationStrategy\"w\n\x11\x43ompletionOptions\x12/\n\nmax_tokens\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x31\n\x0btemperature\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\"\x9b\x01\n\x04Tool\x12\x46\n\x0csearch_index\x18\x01 \x01(\x0b\x32..yandex.cloud.ai.assistants.v1.SearchIndexToolH\x00\x12?\n\x08\x66unction\x18\x02 \x01(\x0b\x32+.yandex.cloud.ai.assistants.v1.FunctionToolH\x00\x42\n\n\x08ToolType\"`\n\x08ToolCall\x12\x44\n\rfunction_call\x18\x01 \x01(\x0b\x32+.yandex.cloud.ai.assistants.v1.FunctionCallH\x00\x42\x0e\n\x0cToolCallType\"K\n\x0cToolCallList\x12;\n\ntool_calls\x18\x01 \x03(\x0b\x32\'.yandex.cloud.ai.assistants.v1.ToolCall\"h\n\nToolResult\x12H\n\x0f\x66unction_result\x18\x01 \x01(\x0b\x32-.yandex.cloud.ai.assistants.v1.FunctionResultH\x00\x42\x10\n\x0eToolResultType\"Q\n\x0eToolResultList\x12?\n\x0ctool_results\x18\x01 \x03(\x0b\x32).yandex.cloud.ai.assistants.v1.ToolResult\"\
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*yandex/cloud/ai/assistants/v1/common.proto\x12\x1dyandex.cloud.ai.assistants.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1dyandex/cloud/validation.proto\"\xf2\x02\n\x17PromptTruncationOptions\x12\x36\n\x11max_prompt_tokens\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\\\n\rauto_strategy\x18\x02 \x01(\x0b\x32\x43.yandex.cloud.ai.assistants.v1.PromptTruncationOptions.AutoStrategyH\x00\x12m\n\x16last_messages_strategy\x18\x03 \x01(\x0b\x32K.yandex.cloud.ai.assistants.v1.PromptTruncationOptions.LastMessagesStrategyH\x00\x1a\x0e\n\x0c\x41utoStrategy\x1a,\n\x14LastMessagesStrategy\x12\x14\n\x0cnum_messages\x18\x01 \x01(\x03\x42\x14\n\x12TruncationStrategy\"w\n\x11\x43ompletionOptions\x12/\n\nmax_tokens\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x31\n\x0btemperature\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\"\x9b\x01\n\x04Tool\x12\x46\n\x0csearch_index\x18\x01 \x01(\x0b\x32..yandex.cloud.ai.assistants.v1.SearchIndexToolH\x00\x12?\n\x08\x66unction\x18\x02 \x01(\x0b\x32+.yandex.cloud.ai.assistants.v1.FunctionToolH\x00\x42\n\n\x08ToolType\"`\n\x08ToolCall\x12\x44\n\rfunction_call\x18\x01 \x01(\x0b\x32+.yandex.cloud.ai.assistants.v1.FunctionCallH\x00\x42\x0e\n\x0cToolCallType\"K\n\x0cToolCallList\x12;\n\ntool_calls\x18\x01 \x03(\x0b\x32\'.yandex.cloud.ai.assistants.v1.ToolCall\"h\n\nToolResult\x12H\n\x0f\x66unction_result\x18\x01 \x01(\x0b\x32-.yandex.cloud.ai.assistants.v1.FunctionResultH\x00\x42\x10\n\x0eToolResultType\"Q\n\x0eToolResultList\x12?\n\x0ctool_results\x18\x01 \x03(\x0b\x32).yandex.cloud.ai.assistants.v1.ToolResult\"\xf1\x01\n\x0fSearchIndexTool\x12\x18\n\x10search_index_ids\x18\x01 \x03(\t\x12\x34\n\x0fmax_num_results\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12J\n\x11rephraser_options\x18\x03 \x01(\x0b\x32/.yandex.cloud.ai.assistants.v1.RephraserOptions\x12\x42\n\rcall_strategy\x18\x04 \x01(\x0b\x32+.yandex.cloud.ai.assistants.v1.CallStrategy\"\xf7\x01\n\x0c\x43\x61llStrategy\x12M\n\x0b\x61lways_call\x18\x01 \x01(\x0b\x32\x36.yandex.cloud.ai.assistants.v1.CallStrategy.AlwaysCallH\x00\x12I\n\tauto_call\x18\x02 \x01(\x0b\x32\x34.yandex.cloud.ai.assistants.v1.CallStrategy.AutoCallH\x00\x1a\x0c\n\nAlwaysCall\x1a\x33\n\x08\x41utoCall\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0binstruction\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x42\n\n\x08Strategy\"^\n\x0c\x46unctionTool\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12+\n\nparameters\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\"H\n\x0c\x46unctionCall\x12\x0c\n\x04name\x18\x01 \x01(\t\x12*\n\targuments\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"@\n\x0e\x46unctionResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\x07\x63ontent\x18\x02 \x01(\tH\x00\x42\r\n\x0b\x43ontentType\"/\n\x10RephraserOptions\x12\x1b\n\rrephraser_uri\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x42q\n!yandex.cloud.api.ai.assistants.v1ZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1;assistantsb\x06proto3')
|
|
31
31
|
|
|
32
32
|
_globals = globals()
|
|
33
33
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -35,6 +35,8 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.ai.assistants.
|
|
|
35
35
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
36
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
37
|
_globals['DESCRIPTOR']._serialized_options = b'\n!yandex.cloud.api.ai.assistants.v1ZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1;assistants'
|
|
38
|
+
_globals['_CALLSTRATEGY_AUTOCALL'].fields_by_name['instruction']._loaded_options = None
|
|
39
|
+
_globals['_CALLSTRATEGY_AUTOCALL'].fields_by_name['instruction']._serialized_options = b'\350\3071\001'
|
|
38
40
|
_globals['_REPHRASEROPTIONS'].fields_by_name['rephraser_uri']._loaded_options = None
|
|
39
41
|
_globals['_REPHRASEROPTIONS'].fields_by_name['rephraser_uri']._serialized_options = b'\350\3071\001'
|
|
40
42
|
_globals['_PROMPTTRUNCATIONOPTIONS']._serialized_start=171
|
|
@@ -56,13 +58,19 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
56
58
|
_globals['_TOOLRESULTLIST']._serialized_start=1103
|
|
57
59
|
_globals['_TOOLRESULTLIST']._serialized_end=1184
|
|
58
60
|
_globals['_SEARCHINDEXTOOL']._serialized_start=1187
|
|
59
|
-
_globals['_SEARCHINDEXTOOL']._serialized_end=
|
|
60
|
-
_globals['
|
|
61
|
-
_globals['
|
|
62
|
-
_globals['
|
|
63
|
-
_globals['
|
|
64
|
-
_globals['
|
|
65
|
-
_globals['
|
|
66
|
-
_globals['
|
|
67
|
-
_globals['
|
|
61
|
+
_globals['_SEARCHINDEXTOOL']._serialized_end=1428
|
|
62
|
+
_globals['_CALLSTRATEGY']._serialized_start=1431
|
|
63
|
+
_globals['_CALLSTRATEGY']._serialized_end=1678
|
|
64
|
+
_globals['_CALLSTRATEGY_ALWAYSCALL']._serialized_start=1601
|
|
65
|
+
_globals['_CALLSTRATEGY_ALWAYSCALL']._serialized_end=1613
|
|
66
|
+
_globals['_CALLSTRATEGY_AUTOCALL']._serialized_start=1615
|
|
67
|
+
_globals['_CALLSTRATEGY_AUTOCALL']._serialized_end=1666
|
|
68
|
+
_globals['_FUNCTIONTOOL']._serialized_start=1680
|
|
69
|
+
_globals['_FUNCTIONTOOL']._serialized_end=1774
|
|
70
|
+
_globals['_FUNCTIONCALL']._serialized_start=1776
|
|
71
|
+
_globals['_FUNCTIONCALL']._serialized_end=1848
|
|
72
|
+
_globals['_FUNCTIONRESULT']._serialized_start=1850
|
|
73
|
+
_globals['_FUNCTIONRESULT']._serialized_end=1914
|
|
74
|
+
_globals['_REPHRASEROPTIONS']._serialized_start=1916
|
|
75
|
+
_globals['_REPHRASEROPTIONS']._serialized_end=1963
|
|
68
76
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -235,6 +235,7 @@ class SearchIndexTool(google.protobuf.message.Message):
|
|
|
235
235
|
SEARCH_INDEX_IDS_FIELD_NUMBER: builtins.int
|
|
236
236
|
MAX_NUM_RESULTS_FIELD_NUMBER: builtins.int
|
|
237
237
|
REPHRASER_OPTIONS_FIELD_NUMBER: builtins.int
|
|
238
|
+
CALL_STRATEGY_FIELD_NUMBER: builtins.int
|
|
238
239
|
@property
|
|
239
240
|
def search_index_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
240
241
|
"""A list of search index IDs that this tool will query. Currently, only a single index ID is supported."""
|
|
@@ -253,18 +254,82 @@ class SearchIndexTool(google.protobuf.message.Message):
|
|
|
253
254
|
incorporating context from the previous conversation.
|
|
254
255
|
"""
|
|
255
256
|
|
|
257
|
+
@property
|
|
258
|
+
def call_strategy(self) -> global___CallStrategy:
|
|
259
|
+
"""Defines the strategy for triggering search.
|
|
260
|
+
Controls whether search results are always included or returned only when
|
|
261
|
+
the model explicitly calls the tool.
|
|
262
|
+
"""
|
|
263
|
+
|
|
256
264
|
def __init__(
|
|
257
265
|
self,
|
|
258
266
|
*,
|
|
259
267
|
search_index_ids: collections.abc.Iterable[builtins.str] | None = ...,
|
|
260
268
|
max_num_results: google.protobuf.wrappers_pb2.Int64Value | None = ...,
|
|
261
269
|
rephraser_options: global___RephraserOptions | None = ...,
|
|
270
|
+
call_strategy: global___CallStrategy | None = ...,
|
|
262
271
|
) -> None: ...
|
|
263
|
-
def HasField(self, field_name: typing.Literal["max_num_results", b"max_num_results", "rephraser_options", b"rephraser_options"]) -> builtins.bool: ...
|
|
264
|
-
def ClearField(self, field_name: typing.Literal["max_num_results", b"max_num_results", "rephraser_options", b"rephraser_options", "search_index_ids", b"search_index_ids"]) -> None: ...
|
|
272
|
+
def HasField(self, field_name: typing.Literal["call_strategy", b"call_strategy", "max_num_results", b"max_num_results", "rephraser_options", b"rephraser_options"]) -> builtins.bool: ...
|
|
273
|
+
def ClearField(self, field_name: typing.Literal["call_strategy", b"call_strategy", "max_num_results", b"max_num_results", "rephraser_options", b"rephraser_options", "search_index_ids", b"search_index_ids"]) -> None: ...
|
|
265
274
|
|
|
266
275
|
global___SearchIndexTool = SearchIndexTool
|
|
267
276
|
|
|
277
|
+
@typing.final
|
|
278
|
+
class CallStrategy(google.protobuf.message.Message):
|
|
279
|
+
"""Defines when the assistant uses the search tool."""
|
|
280
|
+
|
|
281
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
282
|
+
|
|
283
|
+
@typing.final
|
|
284
|
+
class AlwaysCall(google.protobuf.message.Message):
|
|
285
|
+
"""Always includes retrieved search results in the prompt."""
|
|
286
|
+
|
|
287
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
288
|
+
|
|
289
|
+
def __init__(
|
|
290
|
+
self,
|
|
291
|
+
) -> None: ...
|
|
292
|
+
|
|
293
|
+
@typing.final
|
|
294
|
+
class AutoCall(google.protobuf.message.Message):
|
|
295
|
+
"""Exposes the tool as a callable function.
|
|
296
|
+
The model decides when to trigger search based on the instruction.
|
|
297
|
+
"""
|
|
298
|
+
|
|
299
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
300
|
+
|
|
301
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
302
|
+
INSTRUCTION_FIELD_NUMBER: builtins.int
|
|
303
|
+
name: builtins.str
|
|
304
|
+
"""The name of the tool as exposed to the model."""
|
|
305
|
+
instruction: builtins.str
|
|
306
|
+
"""Required instruction that helps the model decide when to call the tool."""
|
|
307
|
+
def __init__(
|
|
308
|
+
self,
|
|
309
|
+
*,
|
|
310
|
+
name: builtins.str = ...,
|
|
311
|
+
instruction: builtins.str = ...,
|
|
312
|
+
) -> None: ...
|
|
313
|
+
def ClearField(self, field_name: typing.Literal["instruction", b"instruction", "name", b"name"]) -> None: ...
|
|
314
|
+
|
|
315
|
+
ALWAYS_CALL_FIELD_NUMBER: builtins.int
|
|
316
|
+
AUTO_CALL_FIELD_NUMBER: builtins.int
|
|
317
|
+
@property
|
|
318
|
+
def always_call(self) -> global___CallStrategy.AlwaysCall: ...
|
|
319
|
+
@property
|
|
320
|
+
def auto_call(self) -> global___CallStrategy.AutoCall: ...
|
|
321
|
+
def __init__(
|
|
322
|
+
self,
|
|
323
|
+
*,
|
|
324
|
+
always_call: global___CallStrategy.AlwaysCall | None = ...,
|
|
325
|
+
auto_call: global___CallStrategy.AutoCall | None = ...,
|
|
326
|
+
) -> None: ...
|
|
327
|
+
def HasField(self, field_name: typing.Literal["Strategy", b"Strategy", "always_call", b"always_call", "auto_call", b"auto_call"]) -> builtins.bool: ...
|
|
328
|
+
def ClearField(self, field_name: typing.Literal["Strategy", b"Strategy", "always_call", b"always_call", "auto_call", b"auto_call"]) -> None: ...
|
|
329
|
+
def WhichOneof(self, oneof_group: typing.Literal["Strategy", b"Strategy"]) -> typing.Literal["always_call", "auto_call"] | None: ...
|
|
330
|
+
|
|
331
|
+
global___CallStrategy = CallStrategy
|
|
332
|
+
|
|
268
333
|
@typing.final
|
|
269
334
|
class FunctionTool(google.protobuf.message.Message):
|
|
270
335
|
"""Represents a function tool that can be invoked by the assistant."""
|
|
@@ -29,7 +29,7 @@ from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operati
|
|
|
29
29
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nByandex/cloud/marketplace/licensemanager/saas/v1/lock_service.proto\x12/yandex.cloud.marketplace.licensemanager.saas.v1\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a\x35yandex/cloud/marketplace/licensemanager/v1/lock.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\"L\n\x11\x45nsureLockRequest\x12\x1c\n\x0einstance_token\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x19\n\x0bresource_id\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\"%\n\x12\x45nsureLockMetadata\x12\x0f\n\x07lock_id\x18\x01 \x01(\t\"\'\n\x0eGetLockRequest\x12\x15\n\x07lock_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x32\
|
|
32
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nByandex/cloud/marketplace/licensemanager/saas/v1/lock_service.proto\x12/yandex.cloud.marketplace.licensemanager.saas.v1\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a\x35yandex/cloud/marketplace/licensemanager/v1/lock.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\"L\n\x11\x45nsureLockRequest\x12\x1c\n\x0einstance_token\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x19\n\x0bresource_id\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\"%\n\x12\x45nsureLockMetadata\x12\x0f\n\x07lock_id\x18\x01 \x01(\t\"\'\n\x0eGetLockRequest\x12\x15\n\x07lock_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"R\n\x1aGetLockByResourceIDRequest\x12\x19\n\x0bresource_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x19\n\x0binstance_id\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x32\xfd\x04\n\x0bLockService\x12\xdd\x01\n\x06\x45nsure\x12\x42.yandex.cloud.marketplace.licensemanager.saas.v1.EnsureLockRequest\x1a!.yandex.cloud.operation.Operation\"l\xb2\xd2*,\n\x12\x45nsureLockMetadata\x12\x16licensemanager.v1.Lock\x82\xd3\xe4\x93\x02\x36\"1/marketplace/license-manager/saas/v1/locks/ensure:\x01*\x12\xb6\x01\n\x03Get\x12?.yandex.cloud.marketplace.licensemanager.saas.v1.GetLockRequest\x1a\x30.yandex.cloud.marketplace.licensemanager.v1.Lock\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/marketplace/license-manager/saas/v1/locks/{lock_id}\x12\xd4\x01\n\x0fGetByResourceID\x12K.yandex.cloud.marketplace.licensemanager.saas.v1.GetLockByResourceIDRequest\x1a\x30.yandex.cloud.marketplace.licensemanager.v1.Lock\"B\x82\xd3\xe4\x93\x02<\x12:/marketplace/license-manager/saas/v1/locks:getByResourceIDB\x99\x01\n3yandex.cloud.api.marketplace.licensemanager.saas.v1Zbgithub.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/licensemanager/saas/v1;licensemanagerb\x06proto3')
|
|
33
33
|
|
|
34
34
|
_globals = globals()
|
|
35
35
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -43,16 +43,24 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
43
43
|
_globals['_ENSURELOCKREQUEST'].fields_by_name['resource_id']._serialized_options = b'\350\3071\001'
|
|
44
44
|
_globals['_GETLOCKREQUEST'].fields_by_name['lock_id']._loaded_options = None
|
|
45
45
|
_globals['_GETLOCKREQUEST'].fields_by_name['lock_id']._serialized_options = b'\350\3071\001'
|
|
46
|
+
_globals['_GETLOCKBYRESOURCEIDREQUEST'].fields_by_name['resource_id']._loaded_options = None
|
|
47
|
+
_globals['_GETLOCKBYRESOURCEIDREQUEST'].fields_by_name['resource_id']._serialized_options = b'\350\3071\001'
|
|
48
|
+
_globals['_GETLOCKBYRESOURCEIDREQUEST'].fields_by_name['instance_id']._loaded_options = None
|
|
49
|
+
_globals['_GETLOCKBYRESOURCEIDREQUEST'].fields_by_name['instance_id']._serialized_options = b'\350\3071\001'
|
|
46
50
|
_globals['_LOCKSERVICE'].methods_by_name['Ensure']._loaded_options = None
|
|
47
51
|
_globals['_LOCKSERVICE'].methods_by_name['Ensure']._serialized_options = b'\262\322*,\n\022EnsureLockMetadata\022\026licensemanager.v1.Lock\202\323\344\223\0026\"1/marketplace/license-manager/saas/v1/locks/ensure:\001*'
|
|
48
52
|
_globals['_LOCKSERVICE'].methods_by_name['Get']._loaded_options = None
|
|
49
53
|
_globals['_LOCKSERVICE'].methods_by_name['Get']._serialized_options = b'\202\323\344\223\0026\0224/marketplace/license-manager/saas/v1/locks/{lock_id}'
|
|
54
|
+
_globals['_LOCKSERVICE'].methods_by_name['GetByResourceID']._loaded_options = None
|
|
55
|
+
_globals['_LOCKSERVICE'].methods_by_name['GetByResourceID']._serialized_options = b'\202\323\344\223\002<\022:/marketplace/license-manager/saas/v1/locks:getByResourceID'
|
|
50
56
|
_globals['_ENSURELOCKREQUEST']._serialized_start=309
|
|
51
57
|
_globals['_ENSURELOCKREQUEST']._serialized_end=385
|
|
52
58
|
_globals['_ENSURELOCKMETADATA']._serialized_start=387
|
|
53
59
|
_globals['_ENSURELOCKMETADATA']._serialized_end=424
|
|
54
60
|
_globals['_GETLOCKREQUEST']._serialized_start=426
|
|
55
61
|
_globals['_GETLOCKREQUEST']._serialized_end=465
|
|
56
|
-
_globals['
|
|
57
|
-
_globals['
|
|
62
|
+
_globals['_GETLOCKBYRESOURCEIDREQUEST']._serialized_start=467
|
|
63
|
+
_globals['_GETLOCKBYRESOURCEIDREQUEST']._serialized_end=549
|
|
64
|
+
_globals['_LOCKSERVICE']._serialized_start=552
|
|
65
|
+
_globals['_LOCKSERVICE']._serialized_end=1189
|
|
58
66
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -61,3 +61,23 @@ class GetLockRequest(google.protobuf.message.Message):
|
|
|
61
61
|
def ClearField(self, field_name: typing.Literal["lock_id", b"lock_id"]) -> None: ...
|
|
62
62
|
|
|
63
63
|
global___GetLockRequest = GetLockRequest
|
|
64
|
+
|
|
65
|
+
@typing.final
|
|
66
|
+
class GetLockByResourceIDRequest(google.protobuf.message.Message):
|
|
67
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
68
|
+
|
|
69
|
+
RESOURCE_ID_FIELD_NUMBER: builtins.int
|
|
70
|
+
INSTANCE_ID_FIELD_NUMBER: builtins.int
|
|
71
|
+
resource_id: builtins.str
|
|
72
|
+
"""ID of the resource to with subscription is locked."""
|
|
73
|
+
instance_id: builtins.str
|
|
74
|
+
"""ID of the subscription"""
|
|
75
|
+
def __init__(
|
|
76
|
+
self,
|
|
77
|
+
*,
|
|
78
|
+
resource_id: builtins.str = ...,
|
|
79
|
+
instance_id: builtins.str = ...,
|
|
80
|
+
) -> None: ...
|
|
81
|
+
def ClearField(self, field_name: typing.Literal["instance_id", b"instance_id", "resource_id", b"resource_id"]) -> None: ...
|
|
82
|
+
|
|
83
|
+
global___GetLockByResourceIDRequest = GetLockByResourceIDRequest
|
|
@@ -47,6 +47,11 @@ class LockServiceStub(object):
|
|
|
47
47
|
request_serializer=yandex_dot_cloud_dot_marketplace_dot_licensemanager_dot_saas_dot_v1_dot_lock__service__pb2.GetLockRequest.SerializeToString,
|
|
48
48
|
response_deserializer=yandex_dot_cloud_dot_marketplace_dot_licensemanager_dot_v1_dot_lock__pb2.Lock.FromString,
|
|
49
49
|
_registered_method=True)
|
|
50
|
+
self.GetByResourceID = channel.unary_unary(
|
|
51
|
+
'/yandex.cloud.marketplace.licensemanager.saas.v1.LockService/GetByResourceID',
|
|
52
|
+
request_serializer=yandex_dot_cloud_dot_marketplace_dot_licensemanager_dot_saas_dot_v1_dot_lock__service__pb2.GetLockByResourceIDRequest.SerializeToString,
|
|
53
|
+
response_deserializer=yandex_dot_cloud_dot_marketplace_dot_licensemanager_dot_v1_dot_lock__pb2.Lock.FromString,
|
|
54
|
+
_registered_method=True)
|
|
50
55
|
|
|
51
56
|
|
|
52
57
|
class LockServiceServicer(object):
|
|
@@ -68,6 +73,13 @@ class LockServiceServicer(object):
|
|
|
68
73
|
context.set_details('Method not implemented!')
|
|
69
74
|
raise NotImplementedError('Method not implemented!')
|
|
70
75
|
|
|
76
|
+
def GetByResourceID(self, request, context):
|
|
77
|
+
"""Returns the subscription lock for given resource and subscription.
|
|
78
|
+
"""
|
|
79
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
80
|
+
context.set_details('Method not implemented!')
|
|
81
|
+
raise NotImplementedError('Method not implemented!')
|
|
82
|
+
|
|
71
83
|
|
|
72
84
|
def add_LockServiceServicer_to_server(servicer, server):
|
|
73
85
|
rpc_method_handlers = {
|
|
@@ -81,6 +93,11 @@ def add_LockServiceServicer_to_server(servicer, server):
|
|
|
81
93
|
request_deserializer=yandex_dot_cloud_dot_marketplace_dot_licensemanager_dot_saas_dot_v1_dot_lock__service__pb2.GetLockRequest.FromString,
|
|
82
94
|
response_serializer=yandex_dot_cloud_dot_marketplace_dot_licensemanager_dot_v1_dot_lock__pb2.Lock.SerializeToString,
|
|
83
95
|
),
|
|
96
|
+
'GetByResourceID': grpc.unary_unary_rpc_method_handler(
|
|
97
|
+
servicer.GetByResourceID,
|
|
98
|
+
request_deserializer=yandex_dot_cloud_dot_marketplace_dot_licensemanager_dot_saas_dot_v1_dot_lock__service__pb2.GetLockByResourceIDRequest.FromString,
|
|
99
|
+
response_serializer=yandex_dot_cloud_dot_marketplace_dot_licensemanager_dot_v1_dot_lock__pb2.Lock.SerializeToString,
|
|
100
|
+
),
|
|
84
101
|
}
|
|
85
102
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
86
103
|
'yandex.cloud.marketplace.licensemanager.saas.v1.LockService', rpc_method_handlers)
|
|
@@ -146,3 +163,30 @@ class LockService(object):
|
|
|
146
163
|
timeout,
|
|
147
164
|
metadata,
|
|
148
165
|
_registered_method=True)
|
|
166
|
+
|
|
167
|
+
@staticmethod
|
|
168
|
+
def GetByResourceID(request,
|
|
169
|
+
target,
|
|
170
|
+
options=(),
|
|
171
|
+
channel_credentials=None,
|
|
172
|
+
call_credentials=None,
|
|
173
|
+
insecure=False,
|
|
174
|
+
compression=None,
|
|
175
|
+
wait_for_ready=None,
|
|
176
|
+
timeout=None,
|
|
177
|
+
metadata=None):
|
|
178
|
+
return grpc.experimental.unary_unary(
|
|
179
|
+
request,
|
|
180
|
+
target,
|
|
181
|
+
'/yandex.cloud.marketplace.licensemanager.saas.v1.LockService/GetByResourceID',
|
|
182
|
+
yandex_dot_cloud_dot_marketplace_dot_licensemanager_dot_saas_dot_v1_dot_lock__service__pb2.GetLockByResourceIDRequest.SerializeToString,
|
|
183
|
+
yandex_dot_cloud_dot_marketplace_dot_licensemanager_dot_v1_dot_lock__pb2.Lock.FromString,
|
|
184
|
+
options,
|
|
185
|
+
channel_credentials,
|
|
186
|
+
insecure,
|
|
187
|
+
call_credentials,
|
|
188
|
+
compression,
|
|
189
|
+
wait_for_ready,
|
|
190
|
+
timeout,
|
|
191
|
+
metadata,
|
|
192
|
+
_registered_method=True)
|
|
@@ -37,6 +37,12 @@ class LockServiceStub:
|
|
|
37
37
|
]
|
|
38
38
|
"""Returns the specified subscription lock."""
|
|
39
39
|
|
|
40
|
+
GetByResourceID: grpc.UnaryUnaryMultiCallable[
|
|
41
|
+
yandex.cloud.marketplace.licensemanager.saas.v1.lock_service_pb2.GetLockByResourceIDRequest,
|
|
42
|
+
yandex.cloud.marketplace.licensemanager.v1.lock_pb2.Lock,
|
|
43
|
+
]
|
|
44
|
+
"""Returns the subscription lock for given resource and subscription."""
|
|
45
|
+
|
|
40
46
|
class LockServiceAsyncStub:
|
|
41
47
|
"""A set of methods for managing subscription locks."""
|
|
42
48
|
|
|
@@ -54,6 +60,12 @@ class LockServiceAsyncStub:
|
|
|
54
60
|
]
|
|
55
61
|
"""Returns the specified subscription lock."""
|
|
56
62
|
|
|
63
|
+
GetByResourceID: grpc.aio.UnaryUnaryMultiCallable[
|
|
64
|
+
yandex.cloud.marketplace.licensemanager.saas.v1.lock_service_pb2.GetLockByResourceIDRequest,
|
|
65
|
+
yandex.cloud.marketplace.licensemanager.v1.lock_pb2.Lock,
|
|
66
|
+
]
|
|
67
|
+
"""Returns the subscription lock for given resource and subscription."""
|
|
68
|
+
|
|
57
69
|
class LockServiceServicer(metaclass=abc.ABCMeta):
|
|
58
70
|
"""A set of methods for managing subscription locks."""
|
|
59
71
|
|
|
@@ -75,4 +87,12 @@ class LockServiceServicer(metaclass=abc.ABCMeta):
|
|
|
75
87
|
) -> typing.Union[yandex.cloud.marketplace.licensemanager.v1.lock_pb2.Lock, collections.abc.Awaitable[yandex.cloud.marketplace.licensemanager.v1.lock_pb2.Lock]]:
|
|
76
88
|
"""Returns the specified subscription lock."""
|
|
77
89
|
|
|
90
|
+
@abc.abstractmethod
|
|
91
|
+
def GetByResourceID(
|
|
92
|
+
self,
|
|
93
|
+
request: yandex.cloud.marketplace.licensemanager.saas.v1.lock_service_pb2.GetLockByResourceIDRequest,
|
|
94
|
+
context: _ServicerContext,
|
|
95
|
+
) -> typing.Union[yandex.cloud.marketplace.licensemanager.v1.lock_pb2.Lock, collections.abc.Awaitable[yandex.cloud.marketplace.licensemanager.v1.lock_pb2.Lock]]:
|
|
96
|
+
"""Returns the subscription lock for given resource and subscription."""
|
|
97
|
+
|
|
78
98
|
def add_LockServiceServicer_to_server(servicer: LockServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -28,19 +28,29 @@ class _StateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumType
|
|
|
28
28
|
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
29
29
|
STATE_UNSPECIFIED: _State.ValueType # 0
|
|
30
30
|
ACTIVATED: _State.ValueType # 1
|
|
31
|
+
"""Product instance is activated."""
|
|
31
32
|
DEACTIVATED: _State.ValueType # 2
|
|
33
|
+
"""Product instance is deactivated."""
|
|
32
34
|
PENDING_ACTIVATION: _State.ValueType # 3
|
|
35
|
+
"""Product instance is pending activation."""
|
|
33
36
|
DEPRECATED: _State.ValueType # 4
|
|
37
|
+
"""Product instance is deprecated."""
|
|
34
38
|
DELETED: _State.ValueType # 5
|
|
39
|
+
"""Product instance is deleted."""
|
|
35
40
|
|
|
36
41
|
class State(_State, metaclass=_StateEnumTypeWrapper): ...
|
|
37
42
|
|
|
38
43
|
STATE_UNSPECIFIED: State.ValueType # 0
|
|
39
44
|
ACTIVATED: State.ValueType # 1
|
|
45
|
+
"""Product instance is activated."""
|
|
40
46
|
DEACTIVATED: State.ValueType # 2
|
|
47
|
+
"""Product instance is deactivated."""
|
|
41
48
|
PENDING_ACTIVATION: State.ValueType # 3
|
|
49
|
+
"""Product instance is pending activation."""
|
|
42
50
|
DEPRECATED: State.ValueType # 4
|
|
51
|
+
"""Product instance is deprecated."""
|
|
43
52
|
DELETED: State.ValueType # 5
|
|
53
|
+
"""Product instance is deleted."""
|
|
44
54
|
global___State = State
|
|
45
55
|
|
|
46
56
|
class _ResourceType:
|
|
@@ -51,17 +61,25 @@ class _ResourceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._E
|
|
|
51
61
|
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
52
62
|
RESOURCE_TYPE_UNSPECIFIED: _ResourceType.ValueType # 0
|
|
53
63
|
SAAS: _ResourceType.ValueType # 1
|
|
64
|
+
"""SaaS resource."""
|
|
54
65
|
K8S: _ResourceType.ValueType # 2
|
|
66
|
+
"""Kubernetes resource."""
|
|
55
67
|
COMPUTE: _ResourceType.ValueType # 3
|
|
68
|
+
"""Compute resource."""
|
|
56
69
|
CLOUD_APPS: _ResourceType.ValueType # 4
|
|
70
|
+
"""Cloud Apps resource."""
|
|
57
71
|
|
|
58
72
|
class ResourceType(_ResourceType, metaclass=_ResourceTypeEnumTypeWrapper): ...
|
|
59
73
|
|
|
60
74
|
RESOURCE_TYPE_UNSPECIFIED: ResourceType.ValueType # 0
|
|
61
75
|
SAAS: ResourceType.ValueType # 1
|
|
76
|
+
"""SaaS resource."""
|
|
62
77
|
K8S: ResourceType.ValueType # 2
|
|
78
|
+
"""Kubernetes resource."""
|
|
63
79
|
COMPUTE: ResourceType.ValueType # 3
|
|
80
|
+
"""Compute resource."""
|
|
64
81
|
CLOUD_APPS: ResourceType.ValueType # 4
|
|
82
|
+
"""Cloud Apps resource."""
|
|
65
83
|
global___ResourceType = ResourceType
|
|
66
84
|
|
|
67
85
|
@typing.final
|
|
@@ -93,15 +111,25 @@ class ProductInstance(google.protobuf.message.Message):
|
|
|
93
111
|
UPDATED_AT_FIELD_NUMBER: builtins.int
|
|
94
112
|
SAAS_INFO_FIELD_NUMBER: builtins.int
|
|
95
113
|
id: builtins.str
|
|
114
|
+
"""ID of the product instance."""
|
|
96
115
|
resource_id: builtins.str
|
|
116
|
+
"""ID of the resource."""
|
|
97
117
|
resource_type: global___ResourceType.ValueType
|
|
118
|
+
"""Type of the resource."""
|
|
98
119
|
state: global___State.ValueType
|
|
120
|
+
"""State of the product instance."""
|
|
99
121
|
@property
|
|
100
|
-
def resource_metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
122
|
+
def resource_metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
123
|
+
"""Metadata of the resource; Reserved for future use."""
|
|
124
|
+
|
|
101
125
|
@property
|
|
102
|
-
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
126
|
+
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
127
|
+
"""Creation timestamp"""
|
|
128
|
+
|
|
103
129
|
@property
|
|
104
|
-
def updated_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
130
|
+
def updated_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
131
|
+
"""Update timestamp"""
|
|
132
|
+
|
|
105
133
|
@property
|
|
106
134
|
def saas_info(self) -> global___SaasInfo: ...
|
|
107
135
|
def __init__(
|
|
@@ -145,8 +173,11 @@ class SaasInfo(google.protobuf.message.Message):
|
|
|
145
173
|
ID_FIELD_NUMBER: builtins.int
|
|
146
174
|
DATA_FIELD_NUMBER: builtins.int
|
|
147
175
|
id: builtins.str
|
|
176
|
+
"""ID of the SaaS resource."""
|
|
148
177
|
@property
|
|
149
|
-
def data(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
178
|
+
def data(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
179
|
+
"""Additional data about the SaaS resource."""
|
|
180
|
+
|
|
150
181
|
def __init__(
|
|
151
182
|
self,
|
|
152
183
|
*,
|
|
@@ -17,6 +17,7 @@ class GetProductInstanceRequest(google.protobuf.message.Message):
|
|
|
17
17
|
|
|
18
18
|
PRODUCT_INSTANCE_ID_FIELD_NUMBER: builtins.int
|
|
19
19
|
product_instance_id: builtins.str
|
|
20
|
+
"""ID of the product instance to return."""
|
|
20
21
|
def __init__(
|
|
21
22
|
self,
|
|
22
23
|
*,
|
|
@@ -34,9 +35,13 @@ class ClaimProductInstanceRequest(google.protobuf.message.Message):
|
|
|
34
35
|
RESOURCE_ID_FIELD_NUMBER: builtins.int
|
|
35
36
|
RESOURCE_INFO_FIELD_NUMBER: builtins.int
|
|
36
37
|
token: builtins.str
|
|
38
|
+
"""Signed JWT token which contains information about product instance and subscription."""
|
|
37
39
|
resource_id: builtins.str
|
|
40
|
+
"""ID of the resource to which the product instance will be claimed."""
|
|
38
41
|
@property
|
|
39
|
-
def resource_info(self) -> yandex.cloud.marketplace.pim.v1.saas.product_instance_pb2.SaasInfo:
|
|
42
|
+
def resource_info(self) -> yandex.cloud.marketplace.pim.v1.saas.product_instance_pb2.SaasInfo:
|
|
43
|
+
"""Additional information about the resource."""
|
|
44
|
+
|
|
40
45
|
def __init__(
|
|
41
46
|
self,
|
|
42
47
|
*,
|
|
@@ -57,8 +62,11 @@ class ClaimProductInstanceMetadata(google.protobuf.message.Message):
|
|
|
57
62
|
PRODUCT_INSTANCE_ID_FIELD_NUMBER: builtins.int
|
|
58
63
|
LICENSE_INSTANCE_ID_FIELD_NUMBER: builtins.int
|
|
59
64
|
product_id: builtins.str
|
|
65
|
+
"""ID of the product to which the product instance belongs."""
|
|
60
66
|
product_instance_id: builtins.str
|
|
67
|
+
"""ID of the product instance."""
|
|
61
68
|
license_instance_id: builtins.str
|
|
69
|
+
"""ID of the subscription."""
|
|
62
70
|
def __init__(
|
|
63
71
|
self,
|
|
64
72
|
*,
|
|
@@ -28,7 +28,8 @@ if _version_not_supported:
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
class ProductInstanceServiceStub(object):
|
|
31
|
-
"""
|
|
31
|
+
"""A set of methods for managing product instances.
|
|
32
|
+
"""
|
|
32
33
|
|
|
33
34
|
def __init__(self, channel):
|
|
34
35
|
"""Constructor.
|
|
@@ -49,16 +50,19 @@ class ProductInstanceServiceStub(object):
|
|
|
49
50
|
|
|
50
51
|
|
|
51
52
|
class ProductInstanceServiceServicer(object):
|
|
52
|
-
"""
|
|
53
|
+
"""A set of methods for managing product instances.
|
|
54
|
+
"""
|
|
53
55
|
|
|
54
56
|
def Get(self, request, context):
|
|
55
|
-
"""
|
|
57
|
+
"""Returns the specified product instance.
|
|
58
|
+
"""
|
|
56
59
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
57
60
|
context.set_details('Method not implemented!')
|
|
58
61
|
raise NotImplementedError('Method not implemented!')
|
|
59
62
|
|
|
60
63
|
def Claim(self, request, context):
|
|
61
|
-
"""
|
|
64
|
+
"""Claims a product instance - activates it and optionally locks to subscription
|
|
65
|
+
"""
|
|
62
66
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
63
67
|
context.set_details('Method not implemented!')
|
|
64
68
|
raise NotImplementedError('Method not implemented!')
|
|
@@ -85,7 +89,8 @@ def add_ProductInstanceServiceServicer_to_server(servicer, server):
|
|
|
85
89
|
|
|
86
90
|
# This class is part of an EXPERIMENTAL API.
|
|
87
91
|
class ProductInstanceService(object):
|
|
88
|
-
"""
|
|
92
|
+
"""A set of methods for managing product instances.
|
|
93
|
+
"""
|
|
89
94
|
|
|
90
95
|
@staticmethod
|
|
91
96
|
def Get(request,
|
|
@@ -20,41 +20,53 @@ class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type:
|
|
|
20
20
|
...
|
|
21
21
|
|
|
22
22
|
class ProductInstanceServiceStub:
|
|
23
|
+
"""A set of methods for managing product instances."""
|
|
24
|
+
|
|
23
25
|
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
24
26
|
Get: grpc.UnaryUnaryMultiCallable[
|
|
25
27
|
yandex.cloud.marketplace.pim.v1.saas.product_instance_service_pb2.GetProductInstanceRequest,
|
|
26
28
|
yandex.cloud.marketplace.pim.v1.saas.product_instance_pb2.ProductInstance,
|
|
27
29
|
]
|
|
30
|
+
"""Returns the specified product instance."""
|
|
28
31
|
|
|
29
32
|
Claim: grpc.UnaryUnaryMultiCallable[
|
|
30
33
|
yandex.cloud.marketplace.pim.v1.saas.product_instance_service_pb2.ClaimProductInstanceRequest,
|
|
31
34
|
yandex.cloud.operation.operation_pb2.Operation,
|
|
32
35
|
]
|
|
36
|
+
"""Claims a product instance - activates it and optionally locks to subscription"""
|
|
33
37
|
|
|
34
38
|
class ProductInstanceServiceAsyncStub:
|
|
39
|
+
"""A set of methods for managing product instances."""
|
|
40
|
+
|
|
35
41
|
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
36
42
|
yandex.cloud.marketplace.pim.v1.saas.product_instance_service_pb2.GetProductInstanceRequest,
|
|
37
43
|
yandex.cloud.marketplace.pim.v1.saas.product_instance_pb2.ProductInstance,
|
|
38
44
|
]
|
|
45
|
+
"""Returns the specified product instance."""
|
|
39
46
|
|
|
40
47
|
Claim: grpc.aio.UnaryUnaryMultiCallable[
|
|
41
48
|
yandex.cloud.marketplace.pim.v1.saas.product_instance_service_pb2.ClaimProductInstanceRequest,
|
|
42
49
|
yandex.cloud.operation.operation_pb2.Operation,
|
|
43
50
|
]
|
|
51
|
+
"""Claims a product instance - activates it and optionally locks to subscription"""
|
|
44
52
|
|
|
45
53
|
class ProductInstanceServiceServicer(metaclass=abc.ABCMeta):
|
|
54
|
+
"""A set of methods for managing product instances."""
|
|
55
|
+
|
|
46
56
|
@abc.abstractmethod
|
|
47
57
|
def Get(
|
|
48
58
|
self,
|
|
49
59
|
request: yandex.cloud.marketplace.pim.v1.saas.product_instance_service_pb2.GetProductInstanceRequest,
|
|
50
60
|
context: _ServicerContext,
|
|
51
|
-
) -> typing.Union[yandex.cloud.marketplace.pim.v1.saas.product_instance_pb2.ProductInstance, collections.abc.Awaitable[yandex.cloud.marketplace.pim.v1.saas.product_instance_pb2.ProductInstance]]:
|
|
61
|
+
) -> typing.Union[yandex.cloud.marketplace.pim.v1.saas.product_instance_pb2.ProductInstance, collections.abc.Awaitable[yandex.cloud.marketplace.pim.v1.saas.product_instance_pb2.ProductInstance]]:
|
|
62
|
+
"""Returns the specified product instance."""
|
|
52
63
|
|
|
53
64
|
@abc.abstractmethod
|
|
54
65
|
def Claim(
|
|
55
66
|
self,
|
|
56
67
|
request: yandex.cloud.marketplace.pim.v1.saas.product_instance_service_pb2.ClaimProductInstanceRequest,
|
|
57
68
|
context: _ServicerContext,
|
|
58
|
-
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
69
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
70
|
+
"""Claims a product instance - activates it and optionally locks to subscription"""
|
|
59
71
|
|
|
60
72
|
def add_ProductInstanceServiceServicer_to_server(servicer: ProductInstanceServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|