yandexcloud 0.319.0__py3-none-any.whl → 0.321.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.
- yandex/cloud/ai/ocr/v1/ocr_pb2.pyi +2 -2
- yandex/cloud/ai/ocr/v1/ocr_service_pb2.pyi +5 -5
- yandex/cloud/cic/__init__.py +0 -0
- yandex/cloud/cic/v1/__init__.py +0 -0
- yandex/cloud/cic/v1/common/__init__.py +0 -0
- yandex/cloud/cic/v1/common/lag_allocation_settings_pb2.py +29 -0
- yandex/cloud/cic/v1/common/lag_allocation_settings_pb2.pyi +61 -0
- yandex/cloud/cic/v1/common/lag_allocation_settings_pb2_grpc.py +4 -0
- yandex/cloud/cic/v1/common/lag_allocation_settings_pb2_grpc.pyi +17 -0
- yandex/cloud/cic/v1/common/lag_info_pb2.py +27 -0
- yandex/cloud/cic/v1/common/lag_info_pb2.pyi +42 -0
- yandex/cloud/cic/v1/common/lag_info_pb2_grpc.py +4 -0
- yandex/cloud/cic/v1/common/lag_info_pb2_grpc.pyi +17 -0
- yandex/cloud/cic/v1/common/transceiver_type_pb2.py +26 -0
- yandex/cloud/cic/v1/common/transceiver_type_pb2.pyi +40 -0
- yandex/cloud/cic/v1/common/transceiver_type_pb2_grpc.py +4 -0
- yandex/cloud/cic/v1/common/transceiver_type_pb2_grpc.pyi +17 -0
- yandex/cloud/cic/v1/partner_pb2.py +28 -0
- yandex/cloud/cic/v1/partner_pb2.pyi +59 -0
- yandex/cloud/cic/v1/partner_pb2_grpc.py +4 -0
- yandex/cloud/cic/v1/partner_pb2_grpc.pyi +17 -0
- yandex/cloud/cic/v1/partner_service_pb2.py +47 -0
- yandex/cloud/cic/v1/partner_service_pb2.pyi +95 -0
- yandex/cloud/cic/v1/partner_service_pb2_grpc.py +107 -0
- yandex/cloud/cic/v1/partner_service_pb2_grpc.pyi +80 -0
- yandex/cloud/cic/v1/peering_pb2.py +26 -0
- yandex/cloud/cic/v1/peering_pb2.pyi +57 -0
- yandex/cloud/cic/v1/peering_pb2_grpc.py +4 -0
- yandex/cloud/cic/v1/peering_pb2_grpc.pyi +17 -0
- yandex/cloud/cic/v1/point_of_presence_pb2.py +26 -0
- yandex/cloud/cic/v1/point_of_presence_pb2.pyi +33 -0
- yandex/cloud/cic/v1/point_of_presence_pb2_grpc.py +4 -0
- yandex/cloud/cic/v1/point_of_presence_pb2_grpc.pyi +17 -0
- yandex/cloud/cic/v1/point_of_presence_service_pb2.py +47 -0
- yandex/cloud/cic/v1/point_of_presence_service_pb2.pyi +95 -0
- yandex/cloud/cic/v1/point_of_presence_service_pb2_grpc.py +107 -0
- yandex/cloud/cic/v1/point_of_presence_service_pb2_grpc.pyi +80 -0
- yandex/cloud/cic/v1/private_connection_pb2.py +34 -0
- yandex/cloud/cic/v1/private_connection_pb2.pyi +130 -0
- yandex/cloud/cic/v1/private_connection_pb2_grpc.py +4 -0
- yandex/cloud/cic/v1/private_connection_pb2_grpc.pyi +17 -0
- yandex/cloud/cic/v1/private_connection_service_pb2.py +49 -0
- yandex/cloud/cic/v1/private_connection_service_pb2.pyi +101 -0
- yandex/cloud/cic/v1/private_connection_service_pb2_grpc.py +107 -0
- yandex/cloud/cic/v1/private_connection_service_pb2_grpc.pyi +80 -0
- yandex/cloud/cic/v1/public_connection_pb2.py +36 -0
- yandex/cloud/cic/v1/public_connection_pb2.pyi +154 -0
- yandex/cloud/cic/v1/public_connection_pb2_grpc.py +4 -0
- yandex/cloud/cic/v1/public_connection_pb2_grpc.pyi +17 -0
- yandex/cloud/cic/v1/public_connection_service_pb2.py +49 -0
- yandex/cloud/cic/v1/public_connection_service_pb2.pyi +101 -0
- yandex/cloud/cic/v1/public_connection_service_pb2_grpc.py +107 -0
- yandex/cloud/cic/v1/public_connection_service_pb2_grpc.pyi +80 -0
- yandex/cloud/cic/v1/trunk_connection_pb2.py +41 -0
- yandex/cloud/cic/v1/trunk_connection_pb2.pyi +240 -0
- yandex/cloud/cic/v1/trunk_connection_pb2_grpc.py +4 -0
- yandex/cloud/cic/v1/trunk_connection_pb2_grpc.pyi +17 -0
- yandex/cloud/cic/v1/trunk_connection_service_pb2.py +49 -0
- yandex/cloud/cic/v1/trunk_connection_service_pb2.pyi +101 -0
- yandex/cloud/cic/v1/trunk_connection_service_pb2_grpc.py +107 -0
- yandex/cloud/cic/v1/trunk_connection_service_pb2_grpc.pyi +80 -0
- yandex/cloud/cloudapps/__init__.py +0 -0
- yandex/cloud/cloudapps/workload/__init__.py +0 -0
- yandex/cloud/cloudapps/workload/v1/__init__.py +0 -0
- yandex/cloud/cloudapps/workload/v1/cloud_application_pb2.py +47 -0
- yandex/cloud/cloudapps/workload/v1/cloud_application_pb2.pyi +127 -0
- yandex/cloud/cloudapps/workload/v1/cloud_application_pb2_grpc.py +4 -0
- yandex/cloud/cloudapps/workload/v1/cloud_application_pb2_grpc.pyi +17 -0
- yandex/cloud/cloudapps/workload/v1/cloud_application_service_pb2.py +39 -0
- yandex/cloud/cloudapps/workload/v1/cloud_application_service_pb2.pyi +73 -0
- yandex/cloud/cloudapps/workload/v1/cloud_application_service_pb2_grpc.py +106 -0
- yandex/cloud/cloudapps/workload/v1/cloud_application_service_pb2_grpc.pyi +72 -0
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.py +27 -25
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.pyi +62 -10
- yandex/cloud/datatransfer/v1/endpoint/postgres_pb2.pyi +2 -2
- yandex/cloud/k8s/marketplace/__init__.py +0 -0
- yandex/cloud/k8s/marketplace/v1/__init__.py +0 -0
- yandex/cloud/k8s/marketplace/v1/helm_release_pb2.py +29 -0
- yandex/cloud/k8s/marketplace/v1/helm_release_pb2.pyi +119 -0
- yandex/cloud/k8s/marketplace/v1/helm_release_pb2_grpc.py +4 -0
- yandex/cloud/k8s/marketplace/v1/helm_release_pb2_grpc.pyi +17 -0
- yandex/cloud/k8s/marketplace/v1/helm_release_service_pb2.py +83 -0
- yandex/cloud/k8s/marketplace/v1/helm_release_service_pb2.pyi +253 -0
- yandex/cloud/k8s/marketplace/v1/helm_release_service_pb2_grpc.py +208 -0
- yandex/cloud/k8s/marketplace/v1/helm_release_service_pb2_grpc.pyi +132 -0
- yandex/cloud/marketplace/licensemanager/saas/__init__.py +0 -0
- yandex/cloud/marketplace/licensemanager/saas/v1/__init__.py +0 -0
- yandex/cloud/marketplace/licensemanager/saas/v1/instance_service_pb2.py +35 -0
- yandex/cloud/marketplace/licensemanager/saas/v1/instance_service_pb2.pyi +27 -0
- yandex/cloud/marketplace/licensemanager/saas/v1/instance_service_pb2_grpc.py +71 -0
- yandex/cloud/marketplace/licensemanager/saas/v1/instance_service_pb2_grpc.pyi +51 -0
- yandex/cloud/marketplace/licensemanager/saas/v1/lock_service_pb2.py +47 -0
- yandex/cloud/marketplace/licensemanager/saas/v1/lock_service_pb2.pyi +63 -0
- yandex/cloud/marketplace/licensemanager/saas/v1/lock_service_pb2_grpc.py +107 -0
- yandex/cloud/marketplace/licensemanager/saas/v1/lock_service_pb2_grpc.pyi +78 -0
- yandex/cloud/mdb/greenplum/v1/pxf_pb2.pyi +1 -1
- yandex/cloud/mdb/postgresql/v1/config/postgresql15_1c_pb2.py +15 -15
- yandex/cloud/mdb/postgresql/v1/config/postgresql15_1c_pb2.pyi +2 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql15_pb2.py +15 -15
- yandex/cloud/mdb/postgresql/v1/config/postgresql15_pb2.pyi +2 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql16_1c_pb2.py +15 -15
- yandex/cloud/mdb/postgresql/v1/config/postgresql16_1c_pb2.pyi +2 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql16_pb2.py +15 -15
- yandex/cloud/mdb/postgresql/v1/config/postgresql16_pb2.pyi +2 -0
- yandex/cloud/mdb/redis/v1/backup_service_pb2.py +19 -9
- yandex/cloud/mdb/redis/v1/backup_service_pb2.pyi +32 -0
- yandex/cloud/mdb/redis/v1/backup_service_pb2_grpc.py +35 -0
- yandex/cloud/mdb/redis/v1/backup_service_pb2_grpc.pyi +21 -0
- yandex/cloud/serverless/workflows/v1/history_entry_pb2.py +14 -10
- yandex/cloud/serverless/workflows/v1/history_entry_pb2.pyi +41 -2
- yandex/cloud/speechsense/v1/talk_service_pb2.py +7 -3
- yandex/cloud/storage/v1/s3api_pb2.py +31 -1
- yandex/cloud/storage/v1/s3api_pb2.pyi +359 -0
- {yandexcloud-0.319.0.dist-info → yandexcloud-0.321.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.319.0.dist-info → yandexcloud-0.321.0.dist-info}/RECORD +119 -29
- {yandexcloud-0.319.0.dist-info → yandexcloud-0.321.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.319.0.dist-info → yandexcloud-0.321.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.319.0.dist-info → yandexcloud-0.321.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.319.0.dist-info → yandexcloud-0.321.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,107 @@
|
|
|
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.cic.v1 import partner_pb2 as yandex_dot_cloud_dot_cic_dot_v1_dot_partner__pb2
|
|
6
|
+
from yandex.cloud.cic.v1 import partner_service_pb2 as yandex_dot_cloud_dot_cic_dot_v1_dot_partner__service__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class PartnerServiceStub(object):
|
|
10
|
+
"""A set of methods for managing Partner resources.
|
|
11
|
+
"""
|
|
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.cic.v1.PartnerService/Get',
|
|
21
|
+
request_serializer=yandex_dot_cloud_dot_cic_dot_v1_dot_partner__service__pb2.GetPartnerRequest.SerializeToString,
|
|
22
|
+
response_deserializer=yandex_dot_cloud_dot_cic_dot_v1_dot_partner__pb2.Partner.FromString,
|
|
23
|
+
)
|
|
24
|
+
self.List = channel.unary_unary(
|
|
25
|
+
'/yandex.cloud.cic.v1.PartnerService/List',
|
|
26
|
+
request_serializer=yandex_dot_cloud_dot_cic_dot_v1_dot_partner__service__pb2.ListPartnersRequest.SerializeToString,
|
|
27
|
+
response_deserializer=yandex_dot_cloud_dot_cic_dot_v1_dot_partner__service__pb2.ListPartnersResponse.FromString,
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class PartnerServiceServicer(object):
|
|
32
|
+
"""A set of methods for managing Partner resources.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
def Get(self, request, context):
|
|
36
|
+
"""Returns the specified Partner resource.
|
|
37
|
+
|
|
38
|
+
To get the list of available Partner resources, make a [List] request.
|
|
39
|
+
"""
|
|
40
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
41
|
+
context.set_details('Method not implemented!')
|
|
42
|
+
raise NotImplementedError('Method not implemented!')
|
|
43
|
+
|
|
44
|
+
def List(self, request, context):
|
|
45
|
+
"""Retrieves the list of Partner resources in the specified folder.
|
|
46
|
+
"""
|
|
47
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
48
|
+
context.set_details('Method not implemented!')
|
|
49
|
+
raise NotImplementedError('Method not implemented!')
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def add_PartnerServiceServicer_to_server(servicer, server):
|
|
53
|
+
rpc_method_handlers = {
|
|
54
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
55
|
+
servicer.Get,
|
|
56
|
+
request_deserializer=yandex_dot_cloud_dot_cic_dot_v1_dot_partner__service__pb2.GetPartnerRequest.FromString,
|
|
57
|
+
response_serializer=yandex_dot_cloud_dot_cic_dot_v1_dot_partner__pb2.Partner.SerializeToString,
|
|
58
|
+
),
|
|
59
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
60
|
+
servicer.List,
|
|
61
|
+
request_deserializer=yandex_dot_cloud_dot_cic_dot_v1_dot_partner__service__pb2.ListPartnersRequest.FromString,
|
|
62
|
+
response_serializer=yandex_dot_cloud_dot_cic_dot_v1_dot_partner__service__pb2.ListPartnersResponse.SerializeToString,
|
|
63
|
+
),
|
|
64
|
+
}
|
|
65
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
66
|
+
'yandex.cloud.cic.v1.PartnerService', rpc_method_handlers)
|
|
67
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
# This class is part of an EXPERIMENTAL API.
|
|
71
|
+
class PartnerService(object):
|
|
72
|
+
"""A set of methods for managing Partner resources.
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
@staticmethod
|
|
76
|
+
def Get(request,
|
|
77
|
+
target,
|
|
78
|
+
options=(),
|
|
79
|
+
channel_credentials=None,
|
|
80
|
+
call_credentials=None,
|
|
81
|
+
insecure=False,
|
|
82
|
+
compression=None,
|
|
83
|
+
wait_for_ready=None,
|
|
84
|
+
timeout=None,
|
|
85
|
+
metadata=None):
|
|
86
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.cic.v1.PartnerService/Get',
|
|
87
|
+
yandex_dot_cloud_dot_cic_dot_v1_dot_partner__service__pb2.GetPartnerRequest.SerializeToString,
|
|
88
|
+
yandex_dot_cloud_dot_cic_dot_v1_dot_partner__pb2.Partner.FromString,
|
|
89
|
+
options, channel_credentials,
|
|
90
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
91
|
+
|
|
92
|
+
@staticmethod
|
|
93
|
+
def List(request,
|
|
94
|
+
target,
|
|
95
|
+
options=(),
|
|
96
|
+
channel_credentials=None,
|
|
97
|
+
call_credentials=None,
|
|
98
|
+
insecure=False,
|
|
99
|
+
compression=None,
|
|
100
|
+
wait_for_ready=None,
|
|
101
|
+
timeout=None,
|
|
102
|
+
metadata=None):
|
|
103
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.cic.v1.PartnerService/List',
|
|
104
|
+
yandex_dot_cloud_dot_cic_dot_v1_dot_partner__service__pb2.ListPartnersRequest.SerializeToString,
|
|
105
|
+
yandex_dot_cloud_dot_cic_dot_v1_dot_partner__service__pb2.ListPartnersResponse.FromString,
|
|
106
|
+
options, channel_credentials,
|
|
107
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,80 @@
|
|
|
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.cic.v1.partner_pb2
|
|
12
|
+
import yandex.cloud.cic.v1.partner_service_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 PartnerServiceStub:
|
|
22
|
+
"""A set of methods for managing Partner resources."""
|
|
23
|
+
|
|
24
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
25
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
26
|
+
yandex.cloud.cic.v1.partner_service_pb2.GetPartnerRequest,
|
|
27
|
+
yandex.cloud.cic.v1.partner_pb2.Partner,
|
|
28
|
+
]
|
|
29
|
+
"""Returns the specified Partner resource.
|
|
30
|
+
|
|
31
|
+
To get the list of available Partner resources, make a [List] request.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
35
|
+
yandex.cloud.cic.v1.partner_service_pb2.ListPartnersRequest,
|
|
36
|
+
yandex.cloud.cic.v1.partner_service_pb2.ListPartnersResponse,
|
|
37
|
+
]
|
|
38
|
+
"""Retrieves the list of Partner resources in the specified folder."""
|
|
39
|
+
|
|
40
|
+
class PartnerServiceAsyncStub:
|
|
41
|
+
"""A set of methods for managing Partner resources."""
|
|
42
|
+
|
|
43
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
44
|
+
yandex.cloud.cic.v1.partner_service_pb2.GetPartnerRequest,
|
|
45
|
+
yandex.cloud.cic.v1.partner_pb2.Partner,
|
|
46
|
+
]
|
|
47
|
+
"""Returns the specified Partner resource.
|
|
48
|
+
|
|
49
|
+
To get the list of available Partner resources, make a [List] request.
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
53
|
+
yandex.cloud.cic.v1.partner_service_pb2.ListPartnersRequest,
|
|
54
|
+
yandex.cloud.cic.v1.partner_service_pb2.ListPartnersResponse,
|
|
55
|
+
]
|
|
56
|
+
"""Retrieves the list of Partner resources in the specified folder."""
|
|
57
|
+
|
|
58
|
+
class PartnerServiceServicer(metaclass=abc.ABCMeta):
|
|
59
|
+
"""A set of methods for managing Partner resources."""
|
|
60
|
+
|
|
61
|
+
@abc.abstractmethod
|
|
62
|
+
def Get(
|
|
63
|
+
self,
|
|
64
|
+
request: yandex.cloud.cic.v1.partner_service_pb2.GetPartnerRequest,
|
|
65
|
+
context: _ServicerContext,
|
|
66
|
+
) -> typing.Union[yandex.cloud.cic.v1.partner_pb2.Partner, collections.abc.Awaitable[yandex.cloud.cic.v1.partner_pb2.Partner]]:
|
|
67
|
+
"""Returns the specified Partner resource.
|
|
68
|
+
|
|
69
|
+
To get the list of available Partner resources, make a [List] request.
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
@abc.abstractmethod
|
|
73
|
+
def List(
|
|
74
|
+
self,
|
|
75
|
+
request: yandex.cloud.cic.v1.partner_service_pb2.ListPartnersRequest,
|
|
76
|
+
context: _ServicerContext,
|
|
77
|
+
) -> typing.Union[yandex.cloud.cic.v1.partner_service_pb2.ListPartnersResponse, collections.abc.Awaitable[yandex.cloud.cic.v1.partner_service_pb2.ListPartnersResponse]]:
|
|
78
|
+
"""Retrieves the list of Partner resources in the specified folder."""
|
|
79
|
+
|
|
80
|
+
def add_PartnerServiceServicer_to_server(servicer: PartnerServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/cic/v1/peering.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/cic/v1/peering.proto\x12\x13yandex.cloud.cic.v1\"\x8b\x01\n\x07Peering\x12\x16\n\x0epeering_subnet\x18\x01 \x01(\t\x12\x0f\n\x07peer_ip\x18\x02 \x01(\t\x12\x10\n\x08\x63loud_ip\x18\x03 \x01(\t\x12\x14\n\x0cpeer_bgp_asn\x18\x04 \x01(\x03\x12\x15\n\rcloud_bgp_asn\x18\x05 \x01(\x03\x12\x18\n\x10peer_bgp_md5_key\x18\x06 \x01(\tBV\n\x17yandex.cloud.api.cic.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/cic/v1;cicb\x06proto3')
|
|
17
|
+
|
|
18
|
+
_globals = globals()
|
|
19
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
20
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.cic.v1.peering_pb2', _globals)
|
|
21
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
22
|
+
DESCRIPTOR._options = None
|
|
23
|
+
DESCRIPTOR._serialized_options = b'\n\027yandex.cloud.api.cic.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/cic/v1;cic'
|
|
24
|
+
_globals['_PEERING']._serialized_start=59
|
|
25
|
+
_globals['_PEERING']._serialized_end=198
|
|
26
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,57 @@
|
|
|
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 Peering(google.protobuf.message.Message):
|
|
15
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
16
|
+
|
|
17
|
+
PEERING_SUBNET_FIELD_NUMBER: builtins.int
|
|
18
|
+
PEER_IP_FIELD_NUMBER: builtins.int
|
|
19
|
+
CLOUD_IP_FIELD_NUMBER: builtins.int
|
|
20
|
+
PEER_BGP_ASN_FIELD_NUMBER: builtins.int
|
|
21
|
+
CLOUD_BGP_ASN_FIELD_NUMBER: builtins.int
|
|
22
|
+
PEER_BGP_MD5_KEY_FIELD_NUMBER: builtins.int
|
|
23
|
+
peering_subnet: builtins.str
|
|
24
|
+
"""PeeringSubnet.
|
|
25
|
+
It's an ip with format ipPrefix/length where address part of ipPrefix is 0.
|
|
26
|
+
"""
|
|
27
|
+
peer_ip: builtins.str
|
|
28
|
+
"""PeerIp.
|
|
29
|
+
It's an ip with just an ipAddress format without mask.
|
|
30
|
+
"""
|
|
31
|
+
cloud_ip: builtins.str
|
|
32
|
+
"""CloudIp.
|
|
33
|
+
It's an ip with just an ipAddress format without mask.
|
|
34
|
+
"""
|
|
35
|
+
peer_bgp_asn: builtins.int
|
|
36
|
+
"""PeerBgpAsn.
|
|
37
|
+
PeerAsn excluding rfc5398 (excluding 64496 - 64511 and 65536 - 65551).
|
|
38
|
+
"""
|
|
39
|
+
cloud_bgp_asn: builtins.int
|
|
40
|
+
"""CloudBgpAsn."""
|
|
41
|
+
peer_bgp_md5_key: builtins.str
|
|
42
|
+
"""PeerBgpMd5Key.
|
|
43
|
+
Optional.
|
|
44
|
+
"""
|
|
45
|
+
def __init__(
|
|
46
|
+
self,
|
|
47
|
+
*,
|
|
48
|
+
peering_subnet: builtins.str = ...,
|
|
49
|
+
peer_ip: builtins.str = ...,
|
|
50
|
+
cloud_ip: builtins.str = ...,
|
|
51
|
+
peer_bgp_asn: builtins.int = ...,
|
|
52
|
+
cloud_bgp_asn: builtins.int = ...,
|
|
53
|
+
peer_bgp_md5_key: builtins.str = ...,
|
|
54
|
+
) -> None: ...
|
|
55
|
+
def ClearField(self, field_name: typing.Literal["cloud_bgp_asn", b"cloud_bgp_asn", "cloud_ip", b"cloud_ip", "peer_bgp_asn", b"peer_bgp_asn", "peer_bgp_md5_key", b"peer_bgp_md5_key", "peer_ip", b"peer_ip", "peering_subnet", b"peering_subnet"]) -> None: ...
|
|
56
|
+
|
|
57
|
+
global___Peering = Peering
|
|
@@ -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,26 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/cic/v1/point_of_presence.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/cic/v1/point_of_presence.proto\x12\x13yandex.cloud.cic.v1\"6\n\x0fPointOfPresence\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tregion_id\x18\x06 \x01(\tJ\x04\x08\x02\x10\x06\x42V\n\x17yandex.cloud.api.cic.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/cic/v1;cicb\x06proto3')
|
|
17
|
+
|
|
18
|
+
_globals = globals()
|
|
19
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
20
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.cic.v1.point_of_presence_pb2', _globals)
|
|
21
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
22
|
+
DESCRIPTOR._options = None
|
|
23
|
+
DESCRIPTOR._serialized_options = b'\n\027yandex.cloud.api.cic.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/cic/v1;cic'
|
|
24
|
+
_globals['_POINTOFPRESENCE']._serialized_start=68
|
|
25
|
+
_globals['_POINTOFPRESENCE']._serialized_end=122
|
|
26
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,33 @@
|
|
|
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 PointOfPresence(google.protobuf.message.Message):
|
|
15
|
+
"""A PointOfPresence resource."""
|
|
16
|
+
|
|
17
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18
|
+
|
|
19
|
+
ID_FIELD_NUMBER: builtins.int
|
|
20
|
+
REGION_ID_FIELD_NUMBER: builtins.int
|
|
21
|
+
id: builtins.str
|
|
22
|
+
"""ID of the pointOfPresence."""
|
|
23
|
+
region_id: builtins.str
|
|
24
|
+
"""ID of the region that the pointOfPresence belongs to."""
|
|
25
|
+
def __init__(
|
|
26
|
+
self,
|
|
27
|
+
*,
|
|
28
|
+
id: builtins.str = ...,
|
|
29
|
+
region_id: builtins.str = ...,
|
|
30
|
+
) -> None: ...
|
|
31
|
+
def ClearField(self, field_name: typing.Literal["id", b"id", "region_id", b"region_id"]) -> None: ...
|
|
32
|
+
|
|
33
|
+
global___PointOfPresence = PointOfPresence
|
|
@@ -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,47 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/cic/v1/point_of_presence_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 google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
15
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
16
|
+
from yandex.cloud.cic.v1 import point_of_presence_pb2 as yandex_dot_cloud_dot_cic_dot_v1_dot_point__of__presence__pb2
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3yandex/cloud/cic/v1/point_of_presence_service.proto\x12\x13yandex.cloud.cic.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1dyandex/cloud/validation.proto\x1a+yandex/cloud/cic/v1/point_of_presence.proto\"G\n\x19GetPointOfPresenceRequest\x12*\n\x14point_of_presence_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"}\n\x1bListPointOfPresencesRequest\x12\x1d\n\tpage_size\x18\x02 \x01(\x03\x42\n\xfa\xc7\x31\x06<=1000\x12\x1d\n\npage_token\x18\x03 \x01(\tB\t\x8a\xc8\x31\x05<=100\x12\x1a\n\x06\x66ilter\x18\x04 \x01(\tB\n\x8a\xc8\x31\x06<=1000J\x04\x08\x01\x10\x02\"y\n\x1cListPointOfPresencesResponse\x12@\n\x12point_of_presences\x18\x01 \x03(\x0b\x32$.yandex.cloud.cic.v1.PointOfPresence\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xbf\x02\n\x16PointOfPresenceService\x12\x94\x01\n\x03Get\x12..yandex.cloud.cic.v1.GetPointOfPresenceRequest\x1a$.yandex.cloud.cic.v1.PointOfPresence\"7\x82\xd3\xe4\x93\x02\x31\x12//cic/v1/pointOfPresences/{point_of_presence_id}\x12\x8d\x01\n\x04List\x12\x30.yandex.cloud.cic.v1.ListPointOfPresencesRequest\x1a\x31.yandex.cloud.cic.v1.ListPointOfPresencesResponse\" \x82\xd3\xe4\x93\x02\x1a\x12\x18/cic/v1/pointOfPresencesBV\n\x17yandex.cloud.api.cic.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/cic/v1;cicb\x06proto3')
|
|
20
|
+
|
|
21
|
+
_globals = globals()
|
|
22
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
23
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.cic.v1.point_of_presence_service_pb2', _globals)
|
|
24
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
25
|
+
DESCRIPTOR._options = None
|
|
26
|
+
DESCRIPTOR._serialized_options = b'\n\027yandex.cloud.api.cic.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/cic/v1;cic'
|
|
27
|
+
_GETPOINTOFPRESENCEREQUEST.fields_by_name['point_of_presence_id']._options = None
|
|
28
|
+
_GETPOINTOFPRESENCEREQUEST.fields_by_name['point_of_presence_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
29
|
+
_LISTPOINTOFPRESENCESREQUEST.fields_by_name['page_size']._options = None
|
|
30
|
+
_LISTPOINTOFPRESENCESREQUEST.fields_by_name['page_size']._serialized_options = b'\372\3071\006<=1000'
|
|
31
|
+
_LISTPOINTOFPRESENCESREQUEST.fields_by_name['page_token']._options = None
|
|
32
|
+
_LISTPOINTOFPRESENCESREQUEST.fields_by_name['page_token']._serialized_options = b'\212\3101\005<=100'
|
|
33
|
+
_LISTPOINTOFPRESENCESREQUEST.fields_by_name['filter']._options = None
|
|
34
|
+
_LISTPOINTOFPRESENCESREQUEST.fields_by_name['filter']._serialized_options = b'\212\3101\006<=1000'
|
|
35
|
+
_POINTOFPRESENCESERVICE.methods_by_name['Get']._options = None
|
|
36
|
+
_POINTOFPRESENCESERVICE.methods_by_name['Get']._serialized_options = b'\202\323\344\223\0021\022//cic/v1/pointOfPresences/{point_of_presence_id}'
|
|
37
|
+
_POINTOFPRESENCESERVICE.methods_by_name['List']._options = None
|
|
38
|
+
_POINTOFPRESENCESERVICE.methods_by_name['List']._serialized_options = b'\202\323\344\223\002\032\022\030/cic/v1/pointOfPresences'
|
|
39
|
+
_globals['_GETPOINTOFPRESENCEREQUEST']._serialized_start=182
|
|
40
|
+
_globals['_GETPOINTOFPRESENCEREQUEST']._serialized_end=253
|
|
41
|
+
_globals['_LISTPOINTOFPRESENCESREQUEST']._serialized_start=255
|
|
42
|
+
_globals['_LISTPOINTOFPRESENCESREQUEST']._serialized_end=380
|
|
43
|
+
_globals['_LISTPOINTOFPRESENCESRESPONSE']._serialized_start=382
|
|
44
|
+
_globals['_LISTPOINTOFPRESENCESRESPONSE']._serialized_end=503
|
|
45
|
+
_globals['_POINTOFPRESENCESERVICE']._serialized_start=506
|
|
46
|
+
_globals['_POINTOFPRESENCESERVICE']._serialized_end=825
|
|
47
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,95 @@
|
|
|
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.message
|
|
11
|
+
import typing
|
|
12
|
+
import yandex.cloud.cic.v1.point_of_presence_pb2
|
|
13
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
15
|
+
|
|
16
|
+
@typing.final
|
|
17
|
+
class GetPointOfPresenceRequest(google.protobuf.message.Message):
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
19
|
+
|
|
20
|
+
POINT_OF_PRESENCE_ID_FIELD_NUMBER: builtins.int
|
|
21
|
+
point_of_presence_id: builtins.str
|
|
22
|
+
"""ID of the PointOfPresence resource to return.
|
|
23
|
+
To get the pointOfPresence ID use a [PointOfPresenceService.List] request.
|
|
24
|
+
"""
|
|
25
|
+
def __init__(
|
|
26
|
+
self,
|
|
27
|
+
*,
|
|
28
|
+
point_of_presence_id: builtins.str = ...,
|
|
29
|
+
) -> None: ...
|
|
30
|
+
def ClearField(self, field_name: typing.Literal["point_of_presence_id", b"point_of_presence_id"]) -> None: ...
|
|
31
|
+
|
|
32
|
+
global___GetPointOfPresenceRequest = GetPointOfPresenceRequest
|
|
33
|
+
|
|
34
|
+
@typing.final
|
|
35
|
+
class ListPointOfPresencesRequest(google.protobuf.message.Message):
|
|
36
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
37
|
+
|
|
38
|
+
PAGE_SIZE_FIELD_NUMBER: builtins.int
|
|
39
|
+
PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
40
|
+
FILTER_FIELD_NUMBER: builtins.int
|
|
41
|
+
page_size: builtins.int
|
|
42
|
+
"""The maximum number of results per page to return. If the number of available
|
|
43
|
+
results is larger than [page_size],
|
|
44
|
+
the service returns a [ListPointOfPresencesResponse.next_page_token]
|
|
45
|
+
that can be used to get the next page of results in subsequent list requests. Default value: 100.
|
|
46
|
+
"""
|
|
47
|
+
page_token: builtins.str
|
|
48
|
+
"""Page token. To get the next page of results, set [page_token] to the
|
|
49
|
+
[ListPointOfPresencesResponse.next_page_token] returned by a previous list request.
|
|
50
|
+
"""
|
|
51
|
+
filter: builtins.str
|
|
52
|
+
"""A filter expression that filters resources listed in the response.
|
|
53
|
+
The expression must specify:
|
|
54
|
+
1. The field name. Currently you can use filtering only on [Subnet.name] field.
|
|
55
|
+
2. An `=` operator.
|
|
56
|
+
3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
|
|
57
|
+
"""
|
|
58
|
+
def __init__(
|
|
59
|
+
self,
|
|
60
|
+
*,
|
|
61
|
+
page_size: builtins.int = ...,
|
|
62
|
+
page_token: builtins.str = ...,
|
|
63
|
+
filter: builtins.str = ...,
|
|
64
|
+
) -> None: ...
|
|
65
|
+
def ClearField(self, field_name: typing.Literal["filter", b"filter", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ...
|
|
66
|
+
|
|
67
|
+
global___ListPointOfPresencesRequest = ListPointOfPresencesRequest
|
|
68
|
+
|
|
69
|
+
@typing.final
|
|
70
|
+
class ListPointOfPresencesResponse(google.protobuf.message.Message):
|
|
71
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
72
|
+
|
|
73
|
+
POINT_OF_PRESENCES_FIELD_NUMBER: builtins.int
|
|
74
|
+
NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
75
|
+
next_page_token: builtins.str
|
|
76
|
+
"""This token allows you to get the next page of results for list requests. If the number of results
|
|
77
|
+
is larger than [ListPointOfPresencesRequest.page_size], use
|
|
78
|
+
the [next_page_token] as the value
|
|
79
|
+
for the [ListPointOfPresencesRequest.page_token] query parameter
|
|
80
|
+
in the next list request. Subsequent list requests will have their own
|
|
81
|
+
[next_page_token] to continue paging through the results.
|
|
82
|
+
"""
|
|
83
|
+
@property
|
|
84
|
+
def point_of_presences(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.cic.v1.point_of_presence_pb2.PointOfPresence]:
|
|
85
|
+
"""List of PointOfPresence resources."""
|
|
86
|
+
|
|
87
|
+
def __init__(
|
|
88
|
+
self,
|
|
89
|
+
*,
|
|
90
|
+
point_of_presences: collections.abc.Iterable[yandex.cloud.cic.v1.point_of_presence_pb2.PointOfPresence] | None = ...,
|
|
91
|
+
next_page_token: builtins.str = ...,
|
|
92
|
+
) -> None: ...
|
|
93
|
+
def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "point_of_presences", b"point_of_presences"]) -> None: ...
|
|
94
|
+
|
|
95
|
+
global___ListPointOfPresencesResponse = ListPointOfPresencesResponse
|
|
@@ -0,0 +1,107 @@
|
|
|
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.cic.v1 import point_of_presence_pb2 as yandex_dot_cloud_dot_cic_dot_v1_dot_point__of__presence__pb2
|
|
6
|
+
from yandex.cloud.cic.v1 import point_of_presence_service_pb2 as yandex_dot_cloud_dot_cic_dot_v1_dot_point__of__presence__service__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class PointOfPresenceServiceStub(object):
|
|
10
|
+
"""A set of methods for managing PointOfPresence resources.
|
|
11
|
+
"""
|
|
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.cic.v1.PointOfPresenceService/Get',
|
|
21
|
+
request_serializer=yandex_dot_cloud_dot_cic_dot_v1_dot_point__of__presence__service__pb2.GetPointOfPresenceRequest.SerializeToString,
|
|
22
|
+
response_deserializer=yandex_dot_cloud_dot_cic_dot_v1_dot_point__of__presence__pb2.PointOfPresence.FromString,
|
|
23
|
+
)
|
|
24
|
+
self.List = channel.unary_unary(
|
|
25
|
+
'/yandex.cloud.cic.v1.PointOfPresenceService/List',
|
|
26
|
+
request_serializer=yandex_dot_cloud_dot_cic_dot_v1_dot_point__of__presence__service__pb2.ListPointOfPresencesRequest.SerializeToString,
|
|
27
|
+
response_deserializer=yandex_dot_cloud_dot_cic_dot_v1_dot_point__of__presence__service__pb2.ListPointOfPresencesResponse.FromString,
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class PointOfPresenceServiceServicer(object):
|
|
32
|
+
"""A set of methods for managing PointOfPresence resources.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
def Get(self, request, context):
|
|
36
|
+
"""Returns the specified PointOfPresence resource.
|
|
37
|
+
|
|
38
|
+
To get the list of available PointOfPresence resources, make a [List] request.
|
|
39
|
+
"""
|
|
40
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
41
|
+
context.set_details('Method not implemented!')
|
|
42
|
+
raise NotImplementedError('Method not implemented!')
|
|
43
|
+
|
|
44
|
+
def List(self, request, context):
|
|
45
|
+
"""Retrieves the list of PointOfPresence resources in the specified folder.
|
|
46
|
+
"""
|
|
47
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
48
|
+
context.set_details('Method not implemented!')
|
|
49
|
+
raise NotImplementedError('Method not implemented!')
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def add_PointOfPresenceServiceServicer_to_server(servicer, server):
|
|
53
|
+
rpc_method_handlers = {
|
|
54
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
55
|
+
servicer.Get,
|
|
56
|
+
request_deserializer=yandex_dot_cloud_dot_cic_dot_v1_dot_point__of__presence__service__pb2.GetPointOfPresenceRequest.FromString,
|
|
57
|
+
response_serializer=yandex_dot_cloud_dot_cic_dot_v1_dot_point__of__presence__pb2.PointOfPresence.SerializeToString,
|
|
58
|
+
),
|
|
59
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
60
|
+
servicer.List,
|
|
61
|
+
request_deserializer=yandex_dot_cloud_dot_cic_dot_v1_dot_point__of__presence__service__pb2.ListPointOfPresencesRequest.FromString,
|
|
62
|
+
response_serializer=yandex_dot_cloud_dot_cic_dot_v1_dot_point__of__presence__service__pb2.ListPointOfPresencesResponse.SerializeToString,
|
|
63
|
+
),
|
|
64
|
+
}
|
|
65
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
66
|
+
'yandex.cloud.cic.v1.PointOfPresenceService', rpc_method_handlers)
|
|
67
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
# This class is part of an EXPERIMENTAL API.
|
|
71
|
+
class PointOfPresenceService(object):
|
|
72
|
+
"""A set of methods for managing PointOfPresence resources.
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
@staticmethod
|
|
76
|
+
def Get(request,
|
|
77
|
+
target,
|
|
78
|
+
options=(),
|
|
79
|
+
channel_credentials=None,
|
|
80
|
+
call_credentials=None,
|
|
81
|
+
insecure=False,
|
|
82
|
+
compression=None,
|
|
83
|
+
wait_for_ready=None,
|
|
84
|
+
timeout=None,
|
|
85
|
+
metadata=None):
|
|
86
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.cic.v1.PointOfPresenceService/Get',
|
|
87
|
+
yandex_dot_cloud_dot_cic_dot_v1_dot_point__of__presence__service__pb2.GetPointOfPresenceRequest.SerializeToString,
|
|
88
|
+
yandex_dot_cloud_dot_cic_dot_v1_dot_point__of__presence__pb2.PointOfPresence.FromString,
|
|
89
|
+
options, channel_credentials,
|
|
90
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
91
|
+
|
|
92
|
+
@staticmethod
|
|
93
|
+
def List(request,
|
|
94
|
+
target,
|
|
95
|
+
options=(),
|
|
96
|
+
channel_credentials=None,
|
|
97
|
+
call_credentials=None,
|
|
98
|
+
insecure=False,
|
|
99
|
+
compression=None,
|
|
100
|
+
wait_for_ready=None,
|
|
101
|
+
timeout=None,
|
|
102
|
+
metadata=None):
|
|
103
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.cic.v1.PointOfPresenceService/List',
|
|
104
|
+
yandex_dot_cloud_dot_cic_dot_v1_dot_point__of__presence__service__pb2.ListPointOfPresencesRequest.SerializeToString,
|
|
105
|
+
yandex_dot_cloud_dot_cic_dot_v1_dot_point__of__presence__service__pb2.ListPointOfPresencesResponse.FromString,
|
|
106
|
+
options, channel_credentials,
|
|
107
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|