yandexcloud 0.326.0__py3-none-any.whl → 0.328.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/searchindex/search_index_file_service_pb2.py +21 -9
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2.pyi +39 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2_grpc.py +38 -3
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2_grpc.pyi +24 -3
- yandex/cloud/ai/dataset/v1/dataset_pb2.py +10 -8
- yandex/cloud/ai/dataset/v1/dataset_pb2.pyi +13 -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 +585 -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 +52 -48
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.pyi +45 -3
- 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/datatransfer/v1/endpoint/clickhouse_pb2.pyi +1 -1
- yandex/cloud/datatransfer/v1/endpoint/mysql_pb2.pyi +2 -2
- yandex/cloud/datatransfer/v1/endpoint/ydb_pb2.py +8 -8
- yandex/cloud/datatransfer/v1/endpoint/ydb_pb2.pyi +4 -1
- yandex/cloud/datatransfer/v1/endpoint/yds_pb2.py +4 -4
- yandex/cloud/datatransfer/v1/endpoint/yds_pb2.pyi +4 -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/marketplace/pim/__init__.py +0 -0
- yandex/cloud/marketplace/pim/v1/__init__.py +0 -0
- yandex/cloud/marketplace/pim/v1/saas/__init__.py +0 -0
- yandex/cloud/marketplace/pim/v1/saas/product_instance_pb2.py +41 -0
- yandex/cloud/marketplace/pim/v1/saas/product_instance_pb2.pyi +158 -0
- yandex/cloud/marketplace/pim/v1/saas/product_instance_pb2_grpc.py +4 -0
- yandex/cloud/marketplace/pim/v1/saas/product_instance_pb2_grpc.pyi +17 -0
- yandex/cloud/marketplace/pim/v1/saas/product_instance_service_pb2.py +42 -0
- yandex/cloud/marketplace/pim/v1/saas/product_instance_service_pb2.pyi +71 -0
- yandex/cloud/marketplace/pim/v1/saas/product_instance_service_pb2_grpc.py +101 -0
- yandex/cloud/marketplace/pim/v1/saas/product_instance_service_pb2_grpc.pyi +60 -0
- yandex/cloud/monitoring/v3/multi_source_chart_widget_pb2.py +81 -0
- yandex/cloud/monitoring/v3/multi_source_chart_widget_pb2.pyi +789 -0
- yandex/cloud/monitoring/v3/multi_source_chart_widget_pb2_grpc.py +4 -0
- yandex/cloud/monitoring/v3/multi_source_chart_widget_pb2_grpc.pyi +17 -0
- yandex/cloud/monitoring/v3/widget_pb2.py +6 -5
- yandex/cloud/monitoring/v3/widget_pb2.pyi +10 -3
- 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/containers/v1/container_pb2.py +44 -40
- yandex/cloud/serverless/containers/v1/container_pb2.pyi +51 -2
- yandex/cloud/serverless/containers/v1/container_service_pb2.py +18 -18
- yandex/cloud/serverless/containers/v1/container_service_pb2.pyi +8 -2
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.py +12 -6
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.pyi +31 -3
- yandex/cloud/serverless/functions/v1/function_pb2.py +42 -38
- yandex/cloud/serverless/functions/v1/function_pb2.pyi +51 -2
- yandex/cloud/serverless/functions/v1/function_service_pb2.py +36 -36
- yandex/cloud/serverless/functions/v1/function_service_pb2.pyi +8 -2
- 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
- yandex/cloud/speechsense/v1/talk_service_pb2.py +28 -28
- yandex/cloud/speechsense/v1/talk_service_pb2.pyi +10 -2
- yandex/cloud/storage/v1/s3api_pb2.py +21 -1
- yandex/cloud/storage/v1/s3api_pb2.pyi +392 -0
- yandex/cloud/ydb/v1/database_pb2.py +24 -10
- yandex/cloud/ydb/v1/database_pb2.pyi +53 -3
- {yandexcloud-0.326.0.dist-info → yandexcloud-0.328.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.326.0.dist-info → yandexcloud-0.328.0.dist-info}/RECORD +106 -57
- {yandexcloud-0.326.0.dist-info → yandexcloud-0.328.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.326.0.dist-info → yandexcloud-0.328.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.326.0.dist-info → yandexcloud-0.328.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.326.0.dist-info → yandexcloud-0.328.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,67 @@
|
|
|
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.marketplace.metering.v1 import product_usage_service_pb2 as yandex_dot_cloud_dot_marketplace_dot_metering_dot_v1_dot_product__usage__service__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ProductUsageServiceStub(object):
|
|
9
|
+
"""Missing associated documentation comment in .proto file."""
|
|
10
|
+
|
|
11
|
+
def __init__(self, channel):
|
|
12
|
+
"""Constructor.
|
|
13
|
+
|
|
14
|
+
Args:
|
|
15
|
+
channel: A grpc.Channel.
|
|
16
|
+
"""
|
|
17
|
+
self.Write = channel.unary_unary(
|
|
18
|
+
'/yandex.cloud.marketplace.metering.v1.ProductUsageService/Write',
|
|
19
|
+
request_serializer=yandex_dot_cloud_dot_marketplace_dot_metering_dot_v1_dot_product__usage__service__pb2.WriteUsageRequest.SerializeToString,
|
|
20
|
+
response_deserializer=yandex_dot_cloud_dot_marketplace_dot_metering_dot_v1_dot_product__usage__service__pb2.WriteUsageResponse.FromString,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class ProductUsageServiceServicer(object):
|
|
25
|
+
"""Missing associated documentation comment in .proto file."""
|
|
26
|
+
|
|
27
|
+
def Write(self, request, context):
|
|
28
|
+
"""Writes product's usage (authenticated by publisher's service account)
|
|
29
|
+
"""
|
|
30
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
31
|
+
context.set_details('Method not implemented!')
|
|
32
|
+
raise NotImplementedError('Method not implemented!')
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def add_ProductUsageServiceServicer_to_server(servicer, server):
|
|
36
|
+
rpc_method_handlers = {
|
|
37
|
+
'Write': grpc.unary_unary_rpc_method_handler(
|
|
38
|
+
servicer.Write,
|
|
39
|
+
request_deserializer=yandex_dot_cloud_dot_marketplace_dot_metering_dot_v1_dot_product__usage__service__pb2.WriteUsageRequest.FromString,
|
|
40
|
+
response_serializer=yandex_dot_cloud_dot_marketplace_dot_metering_dot_v1_dot_product__usage__service__pb2.WriteUsageResponse.SerializeToString,
|
|
41
|
+
),
|
|
42
|
+
}
|
|
43
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
44
|
+
'yandex.cloud.marketplace.metering.v1.ProductUsageService', rpc_method_handlers)
|
|
45
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# This class is part of an EXPERIMENTAL API.
|
|
49
|
+
class ProductUsageService(object):
|
|
50
|
+
"""Missing associated documentation comment in .proto file."""
|
|
51
|
+
|
|
52
|
+
@staticmethod
|
|
53
|
+
def Write(request,
|
|
54
|
+
target,
|
|
55
|
+
options=(),
|
|
56
|
+
channel_credentials=None,
|
|
57
|
+
call_credentials=None,
|
|
58
|
+
insecure=False,
|
|
59
|
+
compression=None,
|
|
60
|
+
wait_for_ready=None,
|
|
61
|
+
timeout=None,
|
|
62
|
+
metadata=None):
|
|
63
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.marketplace.metering.v1.ProductUsageService/Write',
|
|
64
|
+
yandex_dot_cloud_dot_marketplace_dot_metering_dot_v1_dot_product__usage__service__pb2.WriteUsageRequest.SerializeToString,
|
|
65
|
+
yandex_dot_cloud_dot_marketplace_dot_metering_dot_v1_dot_product__usage__service__pb2.WriteUsageResponse.FromString,
|
|
66
|
+
options, channel_credentials,
|
|
67
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,44 @@
|
|
|
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.marketplace.metering.v1.product_usage_service_pb2
|
|
12
|
+
|
|
13
|
+
_T = typing.TypeVar("_T")
|
|
14
|
+
|
|
15
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
16
|
+
|
|
17
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
18
|
+
...
|
|
19
|
+
|
|
20
|
+
class ProductUsageServiceStub:
|
|
21
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
22
|
+
Write: grpc.UnaryUnaryMultiCallable[
|
|
23
|
+
yandex.cloud.marketplace.metering.v1.product_usage_service_pb2.WriteUsageRequest,
|
|
24
|
+
yandex.cloud.marketplace.metering.v1.product_usage_service_pb2.WriteUsageResponse,
|
|
25
|
+
]
|
|
26
|
+
"""Writes product's usage (authenticated by publisher's service account)"""
|
|
27
|
+
|
|
28
|
+
class ProductUsageServiceAsyncStub:
|
|
29
|
+
Write: grpc.aio.UnaryUnaryMultiCallable[
|
|
30
|
+
yandex.cloud.marketplace.metering.v1.product_usage_service_pb2.WriteUsageRequest,
|
|
31
|
+
yandex.cloud.marketplace.metering.v1.product_usage_service_pb2.WriteUsageResponse,
|
|
32
|
+
]
|
|
33
|
+
"""Writes product's usage (authenticated by publisher's service account)"""
|
|
34
|
+
|
|
35
|
+
class ProductUsageServiceServicer(metaclass=abc.ABCMeta):
|
|
36
|
+
@abc.abstractmethod
|
|
37
|
+
def Write(
|
|
38
|
+
self,
|
|
39
|
+
request: yandex.cloud.marketplace.metering.v1.product_usage_service_pb2.WriteUsageRequest,
|
|
40
|
+
context: _ServicerContext,
|
|
41
|
+
) -> typing.Union[yandex.cloud.marketplace.metering.v1.product_usage_service_pb2.WriteUsageResponse, collections.abc.Awaitable[yandex.cloud.marketplace.metering.v1.product_usage_service_pb2.WriteUsageResponse]]:
|
|
42
|
+
"""Writes product's usage (authenticated by publisher's service account)"""
|
|
43
|
+
|
|
44
|
+
def add_ProductUsageServiceServicer_to_server(servicer: ProductUsageServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/marketplace/pim/v1/saas/product_instance.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/marketplace/pim/v1/saas/product_instance.proto\x12$yandex.cloud.marketplace.pim.v1.saas\x1a\x1fgoogle/protobuf/timestamp.proto\"\x90\x04\n\x0fProductInstance\x12\n\n\x02id\x18\x01 \x01(\t\x12\x13\n\x0bresource_id\x18\x02 \x01(\t\x12I\n\rresource_type\x18\x03 \x01(\x0e\x32\x32.yandex.cloud.marketplace.pim.v1.saas.ResourceType\x12\x66\n\x11resource_metadata\x18\x04 \x03(\x0b\x32K.yandex.cloud.marketplace.pim.v1.saas.ProductInstance.ResourceMetadataEntry\x12:\n\x05state\x18\x05 \x01(\x0e\x32+.yandex.cloud.marketplace.pim.v1.saas.State\x12.\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\tsaas_info\x18\x08 \x01(\x0b\x32..yandex.cloud.marketplace.pim.v1.saas.SaasInfoH\x00\x1a\x37\n\x15ResourceMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0f\n\rresource_info\"\x8b\x01\n\x08SaasInfo\x12\n\n\x02id\x18\x01 \x01(\t\x12\x46\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x38.yandex.cloud.marketplace.pim.v1.saas.SaasInfo.DataEntry\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01*s\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tACTIVATED\x10\x01\x12\x0f\n\x0b\x44\x45\x41\x43TIVATED\x10\x02\x12\x16\n\x12PENDING_ACTIVATION\x10\x03\x12\x0e\n\nDEPRECATED\x10\x04\x12\x0b\n\x07\x44\x45LETED\x10\x05*]\n\x0cResourceType\x12\x1d\n\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04SAAS\x10\x01\x12\x07\n\x03K8S\x10\x02\x12\x0b\n\x07\x43OMPUTE\x10\x03\x12\x0e\n\nCLOUD_APPS\x10\x04\x42y\n(yandex.cloud.api.marketplace.pim.v1.saasZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/pim/v1/saas;saasb\x06proto3')
|
|
18
|
+
|
|
19
|
+
_globals = globals()
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.marketplace.pim.v1.saas.product_instance_pb2', _globals)
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
DESCRIPTOR._options = None
|
|
24
|
+
DESCRIPTOR._serialized_options = b'\n(yandex.cloud.api.marketplace.pim.v1.saasZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/pim/v1/saas;saas'
|
|
25
|
+
_PRODUCTINSTANCE_RESOURCEMETADATAENTRY._options = None
|
|
26
|
+
_PRODUCTINSTANCE_RESOURCEMETADATAENTRY._serialized_options = b'8\001'
|
|
27
|
+
_SAASINFO_DATAENTRY._options = None
|
|
28
|
+
_SAASINFO_DATAENTRY._serialized_options = b'8\001'
|
|
29
|
+
_globals['_STATE']._serialized_start=807
|
|
30
|
+
_globals['_STATE']._serialized_end=922
|
|
31
|
+
_globals['_RESOURCETYPE']._serialized_start=924
|
|
32
|
+
_globals['_RESOURCETYPE']._serialized_end=1017
|
|
33
|
+
_globals['_PRODUCTINSTANCE']._serialized_start=135
|
|
34
|
+
_globals['_PRODUCTINSTANCE']._serialized_end=663
|
|
35
|
+
_globals['_PRODUCTINSTANCE_RESOURCEMETADATAENTRY']._serialized_start=591
|
|
36
|
+
_globals['_PRODUCTINSTANCE_RESOURCEMETADATAENTRY']._serialized_end=646
|
|
37
|
+
_globals['_SAASINFO']._serialized_start=666
|
|
38
|
+
_globals['_SAASINFO']._serialized_end=805
|
|
39
|
+
_globals['_SAASINFO_DATAENTRY']._serialized_start=762
|
|
40
|
+
_globals['_SAASINFO_DATAENTRY']._serialized_end=805
|
|
41
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,158 @@
|
|
|
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
|
+
class _State:
|
|
24
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
25
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
26
|
+
|
|
27
|
+
class _StateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_State.ValueType], builtins.type):
|
|
28
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
29
|
+
STATE_UNSPECIFIED: _State.ValueType # 0
|
|
30
|
+
ACTIVATED: _State.ValueType # 1
|
|
31
|
+
DEACTIVATED: _State.ValueType # 2
|
|
32
|
+
PENDING_ACTIVATION: _State.ValueType # 3
|
|
33
|
+
DEPRECATED: _State.ValueType # 4
|
|
34
|
+
DELETED: _State.ValueType # 5
|
|
35
|
+
|
|
36
|
+
class State(_State, metaclass=_StateEnumTypeWrapper): ...
|
|
37
|
+
|
|
38
|
+
STATE_UNSPECIFIED: State.ValueType # 0
|
|
39
|
+
ACTIVATED: State.ValueType # 1
|
|
40
|
+
DEACTIVATED: State.ValueType # 2
|
|
41
|
+
PENDING_ACTIVATION: State.ValueType # 3
|
|
42
|
+
DEPRECATED: State.ValueType # 4
|
|
43
|
+
DELETED: State.ValueType # 5
|
|
44
|
+
global___State = State
|
|
45
|
+
|
|
46
|
+
class _ResourceType:
|
|
47
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
48
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
49
|
+
|
|
50
|
+
class _ResourceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ResourceType.ValueType], builtins.type):
|
|
51
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
52
|
+
RESOURCE_TYPE_UNSPECIFIED: _ResourceType.ValueType # 0
|
|
53
|
+
SAAS: _ResourceType.ValueType # 1
|
|
54
|
+
K8S: _ResourceType.ValueType # 2
|
|
55
|
+
COMPUTE: _ResourceType.ValueType # 3
|
|
56
|
+
CLOUD_APPS: _ResourceType.ValueType # 4
|
|
57
|
+
|
|
58
|
+
class ResourceType(_ResourceType, metaclass=_ResourceTypeEnumTypeWrapper): ...
|
|
59
|
+
|
|
60
|
+
RESOURCE_TYPE_UNSPECIFIED: ResourceType.ValueType # 0
|
|
61
|
+
SAAS: ResourceType.ValueType # 1
|
|
62
|
+
K8S: ResourceType.ValueType # 2
|
|
63
|
+
COMPUTE: ResourceType.ValueType # 3
|
|
64
|
+
CLOUD_APPS: ResourceType.ValueType # 4
|
|
65
|
+
global___ResourceType = ResourceType
|
|
66
|
+
|
|
67
|
+
@typing.final
|
|
68
|
+
class ProductInstance(google.protobuf.message.Message):
|
|
69
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
70
|
+
|
|
71
|
+
@typing.final
|
|
72
|
+
class ResourceMetadataEntry(google.protobuf.message.Message):
|
|
73
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
74
|
+
|
|
75
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
76
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
77
|
+
key: builtins.str
|
|
78
|
+
value: builtins.str
|
|
79
|
+
def __init__(
|
|
80
|
+
self,
|
|
81
|
+
*,
|
|
82
|
+
key: builtins.str = ...,
|
|
83
|
+
value: builtins.str = ...,
|
|
84
|
+
) -> None: ...
|
|
85
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
86
|
+
|
|
87
|
+
ID_FIELD_NUMBER: builtins.int
|
|
88
|
+
RESOURCE_ID_FIELD_NUMBER: builtins.int
|
|
89
|
+
RESOURCE_TYPE_FIELD_NUMBER: builtins.int
|
|
90
|
+
RESOURCE_METADATA_FIELD_NUMBER: builtins.int
|
|
91
|
+
STATE_FIELD_NUMBER: builtins.int
|
|
92
|
+
CREATED_AT_FIELD_NUMBER: builtins.int
|
|
93
|
+
UPDATED_AT_FIELD_NUMBER: builtins.int
|
|
94
|
+
SAAS_INFO_FIELD_NUMBER: builtins.int
|
|
95
|
+
id: builtins.str
|
|
96
|
+
resource_id: builtins.str
|
|
97
|
+
resource_type: global___ResourceType.ValueType
|
|
98
|
+
state: global___State.ValueType
|
|
99
|
+
@property
|
|
100
|
+
def resource_metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
|
|
101
|
+
@property
|
|
102
|
+
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
103
|
+
@property
|
|
104
|
+
def updated_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
105
|
+
@property
|
|
106
|
+
def saas_info(self) -> global___SaasInfo: ...
|
|
107
|
+
def __init__(
|
|
108
|
+
self,
|
|
109
|
+
*,
|
|
110
|
+
id: builtins.str = ...,
|
|
111
|
+
resource_id: builtins.str = ...,
|
|
112
|
+
resource_type: global___ResourceType.ValueType = ...,
|
|
113
|
+
resource_metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
114
|
+
state: global___State.ValueType = ...,
|
|
115
|
+
created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
116
|
+
updated_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
117
|
+
saas_info: global___SaasInfo | None = ...,
|
|
118
|
+
) -> None: ...
|
|
119
|
+
def HasField(self, field_name: typing.Literal["created_at", b"created_at", "resource_info", b"resource_info", "saas_info", b"saas_info", "updated_at", b"updated_at"]) -> builtins.bool: ...
|
|
120
|
+
def ClearField(self, field_name: typing.Literal["created_at", b"created_at", "id", b"id", "resource_id", b"resource_id", "resource_info", b"resource_info", "resource_metadata", b"resource_metadata", "resource_type", b"resource_type", "saas_info", b"saas_info", "state", b"state", "updated_at", b"updated_at"]) -> None: ...
|
|
121
|
+
def WhichOneof(self, oneof_group: typing.Literal["resource_info", b"resource_info"]) -> typing.Literal["saas_info"] | None: ...
|
|
122
|
+
|
|
123
|
+
global___ProductInstance = ProductInstance
|
|
124
|
+
|
|
125
|
+
@typing.final
|
|
126
|
+
class SaasInfo(google.protobuf.message.Message):
|
|
127
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
128
|
+
|
|
129
|
+
@typing.final
|
|
130
|
+
class DataEntry(google.protobuf.message.Message):
|
|
131
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
132
|
+
|
|
133
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
134
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
135
|
+
key: builtins.str
|
|
136
|
+
value: builtins.str
|
|
137
|
+
def __init__(
|
|
138
|
+
self,
|
|
139
|
+
*,
|
|
140
|
+
key: builtins.str = ...,
|
|
141
|
+
value: builtins.str = ...,
|
|
142
|
+
) -> None: ...
|
|
143
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
144
|
+
|
|
145
|
+
ID_FIELD_NUMBER: builtins.int
|
|
146
|
+
DATA_FIELD_NUMBER: builtins.int
|
|
147
|
+
id: builtins.str
|
|
148
|
+
@property
|
|
149
|
+
def data(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
|
|
150
|
+
def __init__(
|
|
151
|
+
self,
|
|
152
|
+
*,
|
|
153
|
+
id: builtins.str = ...,
|
|
154
|
+
data: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
155
|
+
) -> None: ...
|
|
156
|
+
def ClearField(self, field_name: typing.Literal["data", b"data", "id", b"id"]) -> None: ...
|
|
157
|
+
|
|
158
|
+
global___SaasInfo = SaasInfo
|
|
@@ -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,42 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/marketplace/pim/v1/saas/product_instance_service.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
+
from google.protobuf.internal import builder as _builder
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from yandex.cloud.api import operation_pb2 as yandex_dot_cloud_dot_api_dot_operation__pb2
|
|
15
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
16
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
17
|
+
from yandex.cloud.marketplace.pim.v1.saas import product_instance_pb2 as yandex_dot_cloud_dot_marketplace_dot_pim_dot_v1_dot_saas_dot_product__instance__pb2
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nCyandex/cloud/marketplace/pim/v1/saas/product_instance_service.proto\x12$yandex.cloud.marketplace.pim.v1.saas\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\x1a;yandex/cloud/marketplace/pim/v1/saas/product_instance.proto\"F\n\x19GetProductInstanceRequest\x12)\n\x13product_instance_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"\x98\x01\n\x1b\x43laimProductInstanceRequest\x12\x1d\n\x05token\x18\x01 \x01(\tB\x0e\xe8\xc7\x31\x01\x8a\xc8\x31\x06<=1000\x12\x13\n\x0bresource_id\x18\x02 \x01(\t\x12\x45\n\rresource_info\x18\x03 \x01(\x0b\x32..yandex.cloud.marketplace.pim.v1.saas.SaasInfo\"l\n\x1c\x43laimProductInstanceMetadata\x12\x12\n\nproduct_id\x18\x01 \x01(\t\x12\x1b\n\x13product_instance_id\x18\x02 \x01(\t\x12\x1b\n\x13license_instance_id\x18\x03 \x01(\t2\xbc\x02\n\x16ProductInstanceService\x12}\n\x03Get\x12?.yandex.cloud.marketplace.pim.v1.saas.GetProductInstanceRequest\x1a\x35.yandex.cloud.marketplace.pim.v1.saas.ProductInstance\x12\xa2\x01\n\x05\x43laim\x12\x41.yandex.cloud.marketplace.pim.v1.saas.ClaimProductInstanceRequest\x1a!.yandex.cloud.operation.Operation\"3\xb2\xd2*/\n\x1c\x43laimProductInstanceMetadata\x12\x0fProductInstanceBy\n(yandex.cloud.api.marketplace.pim.v1.saasZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/pim/v1/saas;saasb\x06proto3')
|
|
21
|
+
|
|
22
|
+
_globals = globals()
|
|
23
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
24
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.marketplace.pim.v1.saas.product_instance_service_pb2', _globals)
|
|
25
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
26
|
+
DESCRIPTOR._options = None
|
|
27
|
+
DESCRIPTOR._serialized_options = b'\n(yandex.cloud.api.marketplace.pim.v1.saasZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/pim/v1/saas;saas'
|
|
28
|
+
_GETPRODUCTINSTANCEREQUEST.fields_by_name['product_instance_id']._options = None
|
|
29
|
+
_GETPRODUCTINSTANCEREQUEST.fields_by_name['product_instance_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
30
|
+
_CLAIMPRODUCTINSTANCEREQUEST.fields_by_name['token']._options = None
|
|
31
|
+
_CLAIMPRODUCTINSTANCEREQUEST.fields_by_name['token']._serialized_options = b'\350\3071\001\212\3101\006<=1000'
|
|
32
|
+
_PRODUCTINSTANCESERVICE.methods_by_name['Claim']._options = None
|
|
33
|
+
_PRODUCTINSTANCESERVICE.methods_by_name['Claim']._serialized_options = b'\262\322*/\n\034ClaimProductInstanceMetadata\022\017ProductInstance'
|
|
34
|
+
_globals['_GETPRODUCTINSTANCEREQUEST']._serialized_start=275
|
|
35
|
+
_globals['_GETPRODUCTINSTANCEREQUEST']._serialized_end=345
|
|
36
|
+
_globals['_CLAIMPRODUCTINSTANCEREQUEST']._serialized_start=348
|
|
37
|
+
_globals['_CLAIMPRODUCTINSTANCEREQUEST']._serialized_end=500
|
|
38
|
+
_globals['_CLAIMPRODUCTINSTANCEMETADATA']._serialized_start=502
|
|
39
|
+
_globals['_CLAIMPRODUCTINSTANCEMETADATA']._serialized_end=610
|
|
40
|
+
_globals['_PRODUCTINSTANCESERVICE']._serialized_start=613
|
|
41
|
+
_globals['_PRODUCTINSTANCESERVICE']._serialized_end=929
|
|
42
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
import yandex.cloud.marketplace.pim.v1.saas.product_instance_pb2
|
|
11
|
+
|
|
12
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
13
|
+
|
|
14
|
+
@typing.final
|
|
15
|
+
class GetProductInstanceRequest(google.protobuf.message.Message):
|
|
16
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
17
|
+
|
|
18
|
+
PRODUCT_INSTANCE_ID_FIELD_NUMBER: builtins.int
|
|
19
|
+
product_instance_id: builtins.str
|
|
20
|
+
def __init__(
|
|
21
|
+
self,
|
|
22
|
+
*,
|
|
23
|
+
product_instance_id: builtins.str = ...,
|
|
24
|
+
) -> None: ...
|
|
25
|
+
def ClearField(self, field_name: typing.Literal["product_instance_id", b"product_instance_id"]) -> None: ...
|
|
26
|
+
|
|
27
|
+
global___GetProductInstanceRequest = GetProductInstanceRequest
|
|
28
|
+
|
|
29
|
+
@typing.final
|
|
30
|
+
class ClaimProductInstanceRequest(google.protobuf.message.Message):
|
|
31
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
32
|
+
|
|
33
|
+
TOKEN_FIELD_NUMBER: builtins.int
|
|
34
|
+
RESOURCE_ID_FIELD_NUMBER: builtins.int
|
|
35
|
+
RESOURCE_INFO_FIELD_NUMBER: builtins.int
|
|
36
|
+
token: builtins.str
|
|
37
|
+
resource_id: builtins.str
|
|
38
|
+
@property
|
|
39
|
+
def resource_info(self) -> yandex.cloud.marketplace.pim.v1.saas.product_instance_pb2.SaasInfo: ...
|
|
40
|
+
def __init__(
|
|
41
|
+
self,
|
|
42
|
+
*,
|
|
43
|
+
token: builtins.str = ...,
|
|
44
|
+
resource_id: builtins.str = ...,
|
|
45
|
+
resource_info: yandex.cloud.marketplace.pim.v1.saas.product_instance_pb2.SaasInfo | None = ...,
|
|
46
|
+
) -> None: ...
|
|
47
|
+
def HasField(self, field_name: typing.Literal["resource_info", b"resource_info"]) -> builtins.bool: ...
|
|
48
|
+
def ClearField(self, field_name: typing.Literal["resource_id", b"resource_id", "resource_info", b"resource_info", "token", b"token"]) -> None: ...
|
|
49
|
+
|
|
50
|
+
global___ClaimProductInstanceRequest = ClaimProductInstanceRequest
|
|
51
|
+
|
|
52
|
+
@typing.final
|
|
53
|
+
class ClaimProductInstanceMetadata(google.protobuf.message.Message):
|
|
54
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
55
|
+
|
|
56
|
+
PRODUCT_ID_FIELD_NUMBER: builtins.int
|
|
57
|
+
PRODUCT_INSTANCE_ID_FIELD_NUMBER: builtins.int
|
|
58
|
+
LICENSE_INSTANCE_ID_FIELD_NUMBER: builtins.int
|
|
59
|
+
product_id: builtins.str
|
|
60
|
+
product_instance_id: builtins.str
|
|
61
|
+
license_instance_id: builtins.str
|
|
62
|
+
def __init__(
|
|
63
|
+
self,
|
|
64
|
+
*,
|
|
65
|
+
product_id: builtins.str = ...,
|
|
66
|
+
product_instance_id: builtins.str = ...,
|
|
67
|
+
license_instance_id: builtins.str = ...,
|
|
68
|
+
) -> None: ...
|
|
69
|
+
def ClearField(self, field_name: typing.Literal["license_instance_id", b"license_instance_id", "product_id", b"product_id", "product_instance_id", b"product_instance_id"]) -> None: ...
|
|
70
|
+
|
|
71
|
+
global___ClaimProductInstanceMetadata = ClaimProductInstanceMetadata
|
|
@@ -0,0 +1,101 @@
|
|
|
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.marketplace.pim.v1.saas import product_instance_pb2 as yandex_dot_cloud_dot_marketplace_dot_pim_dot_v1_dot_saas_dot_product__instance__pb2
|
|
6
|
+
from yandex.cloud.marketplace.pim.v1.saas import product_instance_service_pb2 as yandex_dot_cloud_dot_marketplace_dot_pim_dot_v1_dot_saas_dot_product__instance__service__pb2
|
|
7
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ProductInstanceServiceStub(object):
|
|
11
|
+
"""Missing associated documentation comment in .proto file."""
|
|
12
|
+
|
|
13
|
+
def __init__(self, channel):
|
|
14
|
+
"""Constructor.
|
|
15
|
+
|
|
16
|
+
Args:
|
|
17
|
+
channel: A grpc.Channel.
|
|
18
|
+
"""
|
|
19
|
+
self.Get = channel.unary_unary(
|
|
20
|
+
'/yandex.cloud.marketplace.pim.v1.saas.ProductInstanceService/Get',
|
|
21
|
+
request_serializer=yandex_dot_cloud_dot_marketplace_dot_pim_dot_v1_dot_saas_dot_product__instance__service__pb2.GetProductInstanceRequest.SerializeToString,
|
|
22
|
+
response_deserializer=yandex_dot_cloud_dot_marketplace_dot_pim_dot_v1_dot_saas_dot_product__instance__pb2.ProductInstance.FromString,
|
|
23
|
+
)
|
|
24
|
+
self.Claim = channel.unary_unary(
|
|
25
|
+
'/yandex.cloud.marketplace.pim.v1.saas.ProductInstanceService/Claim',
|
|
26
|
+
request_serializer=yandex_dot_cloud_dot_marketplace_dot_pim_dot_v1_dot_saas_dot_product__instance__service__pb2.ClaimProductInstanceRequest.SerializeToString,
|
|
27
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class ProductInstanceServiceServicer(object):
|
|
32
|
+
"""Missing associated documentation comment in .proto file."""
|
|
33
|
+
|
|
34
|
+
def Get(self, request, context):
|
|
35
|
+
"""Missing associated documentation comment in .proto file."""
|
|
36
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
37
|
+
context.set_details('Method not implemented!')
|
|
38
|
+
raise NotImplementedError('Method not implemented!')
|
|
39
|
+
|
|
40
|
+
def Claim(self, request, context):
|
|
41
|
+
"""Missing associated documentation comment in .proto file."""
|
|
42
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
43
|
+
context.set_details('Method not implemented!')
|
|
44
|
+
raise NotImplementedError('Method not implemented!')
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def add_ProductInstanceServiceServicer_to_server(servicer, server):
|
|
48
|
+
rpc_method_handlers = {
|
|
49
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
50
|
+
servicer.Get,
|
|
51
|
+
request_deserializer=yandex_dot_cloud_dot_marketplace_dot_pim_dot_v1_dot_saas_dot_product__instance__service__pb2.GetProductInstanceRequest.FromString,
|
|
52
|
+
response_serializer=yandex_dot_cloud_dot_marketplace_dot_pim_dot_v1_dot_saas_dot_product__instance__pb2.ProductInstance.SerializeToString,
|
|
53
|
+
),
|
|
54
|
+
'Claim': grpc.unary_unary_rpc_method_handler(
|
|
55
|
+
servicer.Claim,
|
|
56
|
+
request_deserializer=yandex_dot_cloud_dot_marketplace_dot_pim_dot_v1_dot_saas_dot_product__instance__service__pb2.ClaimProductInstanceRequest.FromString,
|
|
57
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
58
|
+
),
|
|
59
|
+
}
|
|
60
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
61
|
+
'yandex.cloud.marketplace.pim.v1.saas.ProductInstanceService', rpc_method_handlers)
|
|
62
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
# This class is part of an EXPERIMENTAL API.
|
|
66
|
+
class ProductInstanceService(object):
|
|
67
|
+
"""Missing associated documentation comment in .proto file."""
|
|
68
|
+
|
|
69
|
+
@staticmethod
|
|
70
|
+
def Get(request,
|
|
71
|
+
target,
|
|
72
|
+
options=(),
|
|
73
|
+
channel_credentials=None,
|
|
74
|
+
call_credentials=None,
|
|
75
|
+
insecure=False,
|
|
76
|
+
compression=None,
|
|
77
|
+
wait_for_ready=None,
|
|
78
|
+
timeout=None,
|
|
79
|
+
metadata=None):
|
|
80
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.marketplace.pim.v1.saas.ProductInstanceService/Get',
|
|
81
|
+
yandex_dot_cloud_dot_marketplace_dot_pim_dot_v1_dot_saas_dot_product__instance__service__pb2.GetProductInstanceRequest.SerializeToString,
|
|
82
|
+
yandex_dot_cloud_dot_marketplace_dot_pim_dot_v1_dot_saas_dot_product__instance__pb2.ProductInstance.FromString,
|
|
83
|
+
options, channel_credentials,
|
|
84
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
85
|
+
|
|
86
|
+
@staticmethod
|
|
87
|
+
def Claim(request,
|
|
88
|
+
target,
|
|
89
|
+
options=(),
|
|
90
|
+
channel_credentials=None,
|
|
91
|
+
call_credentials=None,
|
|
92
|
+
insecure=False,
|
|
93
|
+
compression=None,
|
|
94
|
+
wait_for_ready=None,
|
|
95
|
+
timeout=None,
|
|
96
|
+
metadata=None):
|
|
97
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.marketplace.pim.v1.saas.ProductInstanceService/Claim',
|
|
98
|
+
yandex_dot_cloud_dot_marketplace_dot_pim_dot_v1_dot_saas_dot_product__instance__service__pb2.ClaimProductInstanceRequest.SerializeToString,
|
|
99
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
100
|
+
options, channel_credentials,
|
|
101
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,60 @@
|
|
|
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.marketplace.pim.v1.saas.product_instance_pb2
|
|
12
|
+
import yandex.cloud.marketplace.pim.v1.saas.product_instance_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 ProductInstanceServiceStub:
|
|
23
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
24
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
25
|
+
yandex.cloud.marketplace.pim.v1.saas.product_instance_service_pb2.GetProductInstanceRequest,
|
|
26
|
+
yandex.cloud.marketplace.pim.v1.saas.product_instance_pb2.ProductInstance,
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
Claim: grpc.UnaryUnaryMultiCallable[
|
|
30
|
+
yandex.cloud.marketplace.pim.v1.saas.product_instance_service_pb2.ClaimProductInstanceRequest,
|
|
31
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
class ProductInstanceServiceAsyncStub:
|
|
35
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
36
|
+
yandex.cloud.marketplace.pim.v1.saas.product_instance_service_pb2.GetProductInstanceRequest,
|
|
37
|
+
yandex.cloud.marketplace.pim.v1.saas.product_instance_pb2.ProductInstance,
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
Claim: grpc.aio.UnaryUnaryMultiCallable[
|
|
41
|
+
yandex.cloud.marketplace.pim.v1.saas.product_instance_service_pb2.ClaimProductInstanceRequest,
|
|
42
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
43
|
+
]
|
|
44
|
+
|
|
45
|
+
class ProductInstanceServiceServicer(metaclass=abc.ABCMeta):
|
|
46
|
+
@abc.abstractmethod
|
|
47
|
+
def Get(
|
|
48
|
+
self,
|
|
49
|
+
request: yandex.cloud.marketplace.pim.v1.saas.product_instance_service_pb2.GetProductInstanceRequest,
|
|
50
|
+
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]]: ...
|
|
52
|
+
|
|
53
|
+
@abc.abstractmethod
|
|
54
|
+
def Claim(
|
|
55
|
+
self,
|
|
56
|
+
request: yandex.cloud.marketplace.pim.v1.saas.product_instance_service_pb2.ClaimProductInstanceRequest,
|
|
57
|
+
context: _ServicerContext,
|
|
58
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]: ...
|
|
59
|
+
|
|
60
|
+
def add_ProductInstanceServiceServicer_to_server(servicer: ProductInstanceServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|