yandexcloud 0.318.0__py3-none-any.whl → 0.320.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/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/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/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/_sdk.py +1 -0
- {yandexcloud-0.318.0.dist-info → yandexcloud-0.320.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.318.0.dist-info → yandexcloud-0.320.0.dist-info}/RECORD +110 -20
- {yandexcloud-0.318.0.dist-info → yandexcloud-0.320.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.318.0.dist-info → yandexcloud-0.320.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.318.0.dist-info → yandexcloud-0.320.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.318.0.dist-info → yandexcloud-0.320.0.dist-info}/top_level.txt +0 -0
|
@@ -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.point_of_presence_pb2
|
|
12
|
+
import yandex.cloud.cic.v1.point_of_presence_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 PointOfPresenceServiceStub:
|
|
22
|
+
"""A set of methods for managing PointOfPresence resources."""
|
|
23
|
+
|
|
24
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
25
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
26
|
+
yandex.cloud.cic.v1.point_of_presence_service_pb2.GetPointOfPresenceRequest,
|
|
27
|
+
yandex.cloud.cic.v1.point_of_presence_pb2.PointOfPresence,
|
|
28
|
+
]
|
|
29
|
+
"""Returns the specified PointOfPresence resource.
|
|
30
|
+
|
|
31
|
+
To get the list of available PointOfPresence resources, make a [List] request.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
35
|
+
yandex.cloud.cic.v1.point_of_presence_service_pb2.ListPointOfPresencesRequest,
|
|
36
|
+
yandex.cloud.cic.v1.point_of_presence_service_pb2.ListPointOfPresencesResponse,
|
|
37
|
+
]
|
|
38
|
+
"""Retrieves the list of PointOfPresence resources in the specified folder."""
|
|
39
|
+
|
|
40
|
+
class PointOfPresenceServiceAsyncStub:
|
|
41
|
+
"""A set of methods for managing PointOfPresence resources."""
|
|
42
|
+
|
|
43
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
44
|
+
yandex.cloud.cic.v1.point_of_presence_service_pb2.GetPointOfPresenceRequest,
|
|
45
|
+
yandex.cloud.cic.v1.point_of_presence_pb2.PointOfPresence,
|
|
46
|
+
]
|
|
47
|
+
"""Returns the specified PointOfPresence resource.
|
|
48
|
+
|
|
49
|
+
To get the list of available PointOfPresence resources, make a [List] request.
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
53
|
+
yandex.cloud.cic.v1.point_of_presence_service_pb2.ListPointOfPresencesRequest,
|
|
54
|
+
yandex.cloud.cic.v1.point_of_presence_service_pb2.ListPointOfPresencesResponse,
|
|
55
|
+
]
|
|
56
|
+
"""Retrieves the list of PointOfPresence resources in the specified folder."""
|
|
57
|
+
|
|
58
|
+
class PointOfPresenceServiceServicer(metaclass=abc.ABCMeta):
|
|
59
|
+
"""A set of methods for managing PointOfPresence resources."""
|
|
60
|
+
|
|
61
|
+
@abc.abstractmethod
|
|
62
|
+
def Get(
|
|
63
|
+
self,
|
|
64
|
+
request: yandex.cloud.cic.v1.point_of_presence_service_pb2.GetPointOfPresenceRequest,
|
|
65
|
+
context: _ServicerContext,
|
|
66
|
+
) -> typing.Union[yandex.cloud.cic.v1.point_of_presence_pb2.PointOfPresence, collections.abc.Awaitable[yandex.cloud.cic.v1.point_of_presence_pb2.PointOfPresence]]:
|
|
67
|
+
"""Returns the specified PointOfPresence resource.
|
|
68
|
+
|
|
69
|
+
To get the list of available PointOfPresence resources, make a [List] request.
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
@abc.abstractmethod
|
|
73
|
+
def List(
|
|
74
|
+
self,
|
|
75
|
+
request: yandex.cloud.cic.v1.point_of_presence_service_pb2.ListPointOfPresencesRequest,
|
|
76
|
+
context: _ServicerContext,
|
|
77
|
+
) -> typing.Union[yandex.cloud.cic.v1.point_of_presence_service_pb2.ListPointOfPresencesResponse, collections.abc.Awaitable[yandex.cloud.cic.v1.point_of_presence_service_pb2.ListPointOfPresencesResponse]]:
|
|
78
|
+
"""Retrieves the list of PointOfPresence resources in the specified folder."""
|
|
79
|
+
|
|
80
|
+
def add_PointOfPresenceServiceServicer_to_server(servicer: PointOfPresenceServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/cic/v1/private_connection.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 wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
|
|
15
|
+
from yandex.cloud.cic.v1 import peering_pb2 as yandex_dot_cloud_dot_cic_dot_v1_dot_peering__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/cic/v1/private_connection.proto\x12\x13yandex.cloud.cic.v1\x1a\x1egoogle/protobuf/wrappers.proto\x1a!yandex/cloud/cic/v1/peering.proto\"\xed\x03\n\x11PrivateConnection\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x11\n\tfolder_id\x18\x05 \x01(\t\x12\x11\n\tregion_id\x18\x06 \x01(\t\x12\x1b\n\x13trunk_connection_id\x18\x07 \x01(\t\x12,\n\x07vlan_id\x18\x08 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\x0cipv4_peering\x18\t \x01(\x0b\x32\x1c.yandex.cloud.cic.v1.Peering\x12N\n\x12ipv4_static_routes\x18\x12 \x03(\x0b\x32\x32.yandex.cloud.cic.v1.PrivateConnection.StaticRoute\x12\x42\n\x06labels\x18\x18 \x03(\x0b\x32\x32.yandex.cloud.cic.v1.PrivateConnection.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a/\n\x0bStaticRoute\x12\x0e\n\x06prefix\x18\x01 \x01(\t\x12\x10\n\x08next_hop\x18\x02 \x03(\tJ\x04\x08\x04\x10\x05J\x04\x08\n\x10\x12J\x04\x08\x13\x10\x18\x42V\n\x17yandex.cloud.api.cic.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/cic/v1;cicb\x06proto3')
|
|
19
|
+
|
|
20
|
+
_globals = globals()
|
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.cic.v1.private_connection_pb2', _globals)
|
|
23
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
|
+
DESCRIPTOR._options = None
|
|
25
|
+
DESCRIPTOR._serialized_options = b'\n\027yandex.cloud.api.cic.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/cic/v1;cic'
|
|
26
|
+
_PRIVATECONNECTION_LABELSENTRY._options = None
|
|
27
|
+
_PRIVATECONNECTION_LABELSENTRY._serialized_options = b'8\001'
|
|
28
|
+
_globals['_PRIVATECONNECTION']._serialized_start=137
|
|
29
|
+
_globals['_PRIVATECONNECTION']._serialized_end=630
|
|
30
|
+
_globals['_PRIVATECONNECTION_LABELSENTRY']._serialized_start=518
|
|
31
|
+
_globals['_PRIVATECONNECTION_LABELSENTRY']._serialized_end=563
|
|
32
|
+
_globals['_PRIVATECONNECTION_STATICROUTE']._serialized_start=565
|
|
33
|
+
_globals['_PRIVATECONNECTION_STATICROUTE']._serialized_end=612
|
|
34
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,130 @@
|
|
|
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 google.protobuf.wrappers_pb2
|
|
12
|
+
import typing
|
|
13
|
+
import yandex.cloud.cic.v1.peering_pb2
|
|
14
|
+
|
|
15
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
16
|
+
|
|
17
|
+
@typing.final
|
|
18
|
+
class PrivateConnection(google.protobuf.message.Message):
|
|
19
|
+
"""A PrivateConnection resource."""
|
|
20
|
+
|
|
21
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
22
|
+
|
|
23
|
+
@typing.final
|
|
24
|
+
class LabelsEntry(google.protobuf.message.Message):
|
|
25
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
26
|
+
|
|
27
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
28
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
29
|
+
key: builtins.str
|
|
30
|
+
value: builtins.str
|
|
31
|
+
def __init__(
|
|
32
|
+
self,
|
|
33
|
+
*,
|
|
34
|
+
key: builtins.str = ...,
|
|
35
|
+
value: builtins.str = ...,
|
|
36
|
+
) -> None: ...
|
|
37
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
38
|
+
|
|
39
|
+
@typing.final
|
|
40
|
+
class StaticRoute(google.protobuf.message.Message):
|
|
41
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
42
|
+
|
|
43
|
+
PREFIX_FIELD_NUMBER: builtins.int
|
|
44
|
+
NEXT_HOP_FIELD_NUMBER: builtins.int
|
|
45
|
+
prefix: builtins.str
|
|
46
|
+
"""Prefix.
|
|
47
|
+
It's an ip with format ipPrefix/length where address part of ipPrefix is 0.
|
|
48
|
+
"""
|
|
49
|
+
@property
|
|
50
|
+
def next_hop(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
51
|
+
"""PeerIp.
|
|
52
|
+
It's an ip with just an ipAddress format without mask.
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
def __init__(
|
|
56
|
+
self,
|
|
57
|
+
*,
|
|
58
|
+
prefix: builtins.str = ...,
|
|
59
|
+
next_hop: collections.abc.Iterable[builtins.str] | None = ...,
|
|
60
|
+
) -> None: ...
|
|
61
|
+
def ClearField(self, field_name: typing.Literal["next_hop", b"next_hop", "prefix", b"prefix"]) -> None: ...
|
|
62
|
+
|
|
63
|
+
ID_FIELD_NUMBER: builtins.int
|
|
64
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
65
|
+
DESCRIPTION_FIELD_NUMBER: builtins.int
|
|
66
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
67
|
+
REGION_ID_FIELD_NUMBER: builtins.int
|
|
68
|
+
TRUNK_CONNECTION_ID_FIELD_NUMBER: builtins.int
|
|
69
|
+
VLAN_ID_FIELD_NUMBER: builtins.int
|
|
70
|
+
IPV4_PEERING_FIELD_NUMBER: builtins.int
|
|
71
|
+
IPV4_STATIC_ROUTES_FIELD_NUMBER: builtins.int
|
|
72
|
+
LABELS_FIELD_NUMBER: builtins.int
|
|
73
|
+
id: builtins.str
|
|
74
|
+
"""ID of the privateConnection."""
|
|
75
|
+
name: builtins.str
|
|
76
|
+
"""Name of the privateConnection.
|
|
77
|
+
The name must be unique within the folder.
|
|
78
|
+
Value must match the regular expression ``\\|[a-zA-Z]([-_a-zA-Z0-9]{0,61}[a-zA-Z0-9])?``.
|
|
79
|
+
"""
|
|
80
|
+
description: builtins.str
|
|
81
|
+
"""Optional description of the privateConnection. 0-256 characters long."""
|
|
82
|
+
folder_id: builtins.str
|
|
83
|
+
"""ID of the folder that the privateConnection belongs to."""
|
|
84
|
+
region_id: builtins.str
|
|
85
|
+
"""ID of the region that the privateConnection belongs to."""
|
|
86
|
+
trunk_connection_id: builtins.str
|
|
87
|
+
"""ID of the trunk_connection that the privateConnection belongs to."""
|
|
88
|
+
@property
|
|
89
|
+
def vlan_id(self) -> google.protobuf.wrappers_pb2.Int64Value:
|
|
90
|
+
"""VLAN_ID that the privateConnection uses in multiplexing.
|
|
91
|
+
Not used in connections over partners-II
|
|
92
|
+
Value range: [1, 4095]
|
|
93
|
+
"""
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
def ipv4_peering(self) -> yandex.cloud.cic.v1.peering_pb2.Peering:
|
|
97
|
+
"""IPv4 peering config of connection"""
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def ipv4_static_routes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PrivateConnection.StaticRoute]:
|
|
101
|
+
"""IPv4 StaticRoute config of connection"""
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
105
|
+
"""Resource labels, `key:value` pairs.
|
|
106
|
+
No more than 64 per resource.
|
|
107
|
+
The maximum string length in characters for each value is 63.
|
|
108
|
+
Each value must match the regular expression `[-_0-9a-z]*`.
|
|
109
|
+
The string length in characters for each key must be 1-63.
|
|
110
|
+
Each key must match the regular expression `[a-z][-_0-9a-z]*`.
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
def __init__(
|
|
114
|
+
self,
|
|
115
|
+
*,
|
|
116
|
+
id: builtins.str = ...,
|
|
117
|
+
name: builtins.str = ...,
|
|
118
|
+
description: builtins.str = ...,
|
|
119
|
+
folder_id: builtins.str = ...,
|
|
120
|
+
region_id: builtins.str = ...,
|
|
121
|
+
trunk_connection_id: builtins.str = ...,
|
|
122
|
+
vlan_id: google.protobuf.wrappers_pb2.Int64Value | None = ...,
|
|
123
|
+
ipv4_peering: yandex.cloud.cic.v1.peering_pb2.Peering | None = ...,
|
|
124
|
+
ipv4_static_routes: collections.abc.Iterable[global___PrivateConnection.StaticRoute] | None = ...,
|
|
125
|
+
labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
126
|
+
) -> None: ...
|
|
127
|
+
def HasField(self, field_name: typing.Literal["ipv4_peering", b"ipv4_peering", "vlan_id", b"vlan_id"]) -> builtins.bool: ...
|
|
128
|
+
def ClearField(self, field_name: typing.Literal["description", b"description", "folder_id", b"folder_id", "id", b"id", "ipv4_peering", b"ipv4_peering", "ipv4_static_routes", b"ipv4_static_routes", "labels", b"labels", "name", b"name", "region_id", b"region_id", "trunk_connection_id", b"trunk_connection_id", "vlan_id", b"vlan_id"]) -> None: ...
|
|
129
|
+
|
|
130
|
+
global___PrivateConnection = PrivateConnection
|
|
@@ -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,49 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/cic/v1/private_connection_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 private_connection_pb2 as yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__pb2
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n4yandex/cloud/cic/v1/private_connection_service.proto\x12\x13yandex.cloud.cic.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1dyandex/cloud/validation.proto\x1a,yandex/cloud/cic/v1/private_connection.proto\"J\n\x1bGetPrivateConnectionRequest\x12+\n\x15private_connection_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"\x9a\x01\n\x1dListPrivateConnectionsRequest\x12\x1f\n\tfolder_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\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<=1000\"~\n\x1eListPrivateConnectionsResponse\x12\x43\n\x13private_connections\x18\x01 \x03(\x0b\x32&.yandex.cloud.cic.v1.PrivateConnection\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xce\x02\n\x18PrivateConnectionService\x12\x9b\x01\n\x03Get\x12\x30.yandex.cloud.cic.v1.GetPrivateConnectionRequest\x1a&.yandex.cloud.cic.v1.PrivateConnection\":\x82\xd3\xe4\x93\x02\x34\x12\x32/cic/v1/privateConnections/{private_connection_id}\x12\x93\x01\n\x04List\x12\x32.yandex.cloud.cic.v1.ListPrivateConnectionsRequest\x1a\x33.yandex.cloud.cic.v1.ListPrivateConnectionsResponse\"\"\x82\xd3\xe4\x93\x02\x1c\x12\x1a/cic/v1/privateConnectionsBV\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.private_connection_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
|
+
_GETPRIVATECONNECTIONREQUEST.fields_by_name['private_connection_id']._options = None
|
|
28
|
+
_GETPRIVATECONNECTIONREQUEST.fields_by_name['private_connection_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
29
|
+
_LISTPRIVATECONNECTIONSREQUEST.fields_by_name['folder_id']._options = None
|
|
30
|
+
_LISTPRIVATECONNECTIONSREQUEST.fields_by_name['folder_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
31
|
+
_LISTPRIVATECONNECTIONSREQUEST.fields_by_name['page_size']._options = None
|
|
32
|
+
_LISTPRIVATECONNECTIONSREQUEST.fields_by_name['page_size']._serialized_options = b'\372\3071\006<=1000'
|
|
33
|
+
_LISTPRIVATECONNECTIONSREQUEST.fields_by_name['page_token']._options = None
|
|
34
|
+
_LISTPRIVATECONNECTIONSREQUEST.fields_by_name['page_token']._serialized_options = b'\212\3101\005<=100'
|
|
35
|
+
_LISTPRIVATECONNECTIONSREQUEST.fields_by_name['filter']._options = None
|
|
36
|
+
_LISTPRIVATECONNECTIONSREQUEST.fields_by_name['filter']._serialized_options = b'\212\3101\006<=1000'
|
|
37
|
+
_PRIVATECONNECTIONSERVICE.methods_by_name['Get']._options = None
|
|
38
|
+
_PRIVATECONNECTIONSERVICE.methods_by_name['Get']._serialized_options = b'\202\323\344\223\0024\0222/cic/v1/privateConnections/{private_connection_id}'
|
|
39
|
+
_PRIVATECONNECTIONSERVICE.methods_by_name['List']._options = None
|
|
40
|
+
_PRIVATECONNECTIONSERVICE.methods_by_name['List']._serialized_options = b'\202\323\344\223\002\034\022\032/cic/v1/privateConnections'
|
|
41
|
+
_globals['_GETPRIVATECONNECTIONREQUEST']._serialized_start=184
|
|
42
|
+
_globals['_GETPRIVATECONNECTIONREQUEST']._serialized_end=258
|
|
43
|
+
_globals['_LISTPRIVATECONNECTIONSREQUEST']._serialized_start=261
|
|
44
|
+
_globals['_LISTPRIVATECONNECTIONSREQUEST']._serialized_end=415
|
|
45
|
+
_globals['_LISTPRIVATECONNECTIONSRESPONSE']._serialized_start=417
|
|
46
|
+
_globals['_LISTPRIVATECONNECTIONSRESPONSE']._serialized_end=543
|
|
47
|
+
_globals['_PRIVATECONNECTIONSERVICE']._serialized_start=546
|
|
48
|
+
_globals['_PRIVATECONNECTIONSERVICE']._serialized_end=880
|
|
49
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,101 @@
|
|
|
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.private_connection_pb2
|
|
13
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
15
|
+
|
|
16
|
+
@typing.final
|
|
17
|
+
class GetPrivateConnectionRequest(google.protobuf.message.Message):
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
19
|
+
|
|
20
|
+
PRIVATE_CONNECTION_ID_FIELD_NUMBER: builtins.int
|
|
21
|
+
private_connection_id: builtins.str
|
|
22
|
+
"""ID of the PrivateConnection resource to return.
|
|
23
|
+
To get the privateConnection ID use a [PrivateConnectionService.List] request.
|
|
24
|
+
"""
|
|
25
|
+
def __init__(
|
|
26
|
+
self,
|
|
27
|
+
*,
|
|
28
|
+
private_connection_id: builtins.str = ...,
|
|
29
|
+
) -> None: ...
|
|
30
|
+
def ClearField(self, field_name: typing.Literal["private_connection_id", b"private_connection_id"]) -> None: ...
|
|
31
|
+
|
|
32
|
+
global___GetPrivateConnectionRequest = GetPrivateConnectionRequest
|
|
33
|
+
|
|
34
|
+
@typing.final
|
|
35
|
+
class ListPrivateConnectionsRequest(google.protobuf.message.Message):
|
|
36
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
37
|
+
|
|
38
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
39
|
+
PAGE_SIZE_FIELD_NUMBER: builtins.int
|
|
40
|
+
PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
41
|
+
FILTER_FIELD_NUMBER: builtins.int
|
|
42
|
+
folder_id: builtins.str
|
|
43
|
+
"""ID of the folder to list privateConnections in.
|
|
44
|
+
To get the folder ID use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
|
|
45
|
+
"""
|
|
46
|
+
page_size: builtins.int
|
|
47
|
+
"""The maximum number of results per page to return. If the number of available
|
|
48
|
+
results is larger than [page_size],
|
|
49
|
+
the service returns a [ListPrivatesConnectionResponse.next_page_token]
|
|
50
|
+
that can be used to get the next page of results in subsequent list requests. Default value: 100.
|
|
51
|
+
"""
|
|
52
|
+
page_token: builtins.str
|
|
53
|
+
"""Page token. To get the next page of results, set [page_token] to the
|
|
54
|
+
[ListPrivatesConnectionResponse.next_page_token] returned by a previous list request.
|
|
55
|
+
"""
|
|
56
|
+
filter: builtins.str
|
|
57
|
+
"""A filter expression that filters resources listed in the response.
|
|
58
|
+
The expression must specify:
|
|
59
|
+
1. The field name. Currently you can use filtering only on [Subnet.name] field.
|
|
60
|
+
2. An `=` operator.
|
|
61
|
+
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]`.
|
|
62
|
+
"""
|
|
63
|
+
def __init__(
|
|
64
|
+
self,
|
|
65
|
+
*,
|
|
66
|
+
folder_id: builtins.str = ...,
|
|
67
|
+
page_size: builtins.int = ...,
|
|
68
|
+
page_token: builtins.str = ...,
|
|
69
|
+
filter: builtins.str = ...,
|
|
70
|
+
) -> None: ...
|
|
71
|
+
def ClearField(self, field_name: typing.Literal["filter", b"filter", "folder_id", b"folder_id", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ...
|
|
72
|
+
|
|
73
|
+
global___ListPrivateConnectionsRequest = ListPrivateConnectionsRequest
|
|
74
|
+
|
|
75
|
+
@typing.final
|
|
76
|
+
class ListPrivateConnectionsResponse(google.protobuf.message.Message):
|
|
77
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
78
|
+
|
|
79
|
+
PRIVATE_CONNECTIONS_FIELD_NUMBER: builtins.int
|
|
80
|
+
NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
81
|
+
next_page_token: builtins.str
|
|
82
|
+
"""This token allows you to get the next page of results for list requests. If the number of results
|
|
83
|
+
is larger than [ListPrivateConnectionsRequest.page_size], use
|
|
84
|
+
the [next_page_token] as the value
|
|
85
|
+
for the [ListPrivateConnectionsRequest.page_token] query parameter
|
|
86
|
+
in the next list request. Subsequent list requests will have their own
|
|
87
|
+
[next_page_token] to continue paging through the results.
|
|
88
|
+
"""
|
|
89
|
+
@property
|
|
90
|
+
def private_connections(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.cic.v1.private_connection_pb2.PrivateConnection]:
|
|
91
|
+
"""List of PrivateConnection resources."""
|
|
92
|
+
|
|
93
|
+
def __init__(
|
|
94
|
+
self,
|
|
95
|
+
*,
|
|
96
|
+
private_connections: collections.abc.Iterable[yandex.cloud.cic.v1.private_connection_pb2.PrivateConnection] | None = ...,
|
|
97
|
+
next_page_token: builtins.str = ...,
|
|
98
|
+
) -> None: ...
|
|
99
|
+
def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "private_connections", b"private_connections"]) -> None: ...
|
|
100
|
+
|
|
101
|
+
global___ListPrivateConnectionsResponse = ListPrivateConnectionsResponse
|
|
@@ -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 private_connection_pb2 as yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__pb2
|
|
6
|
+
from yandex.cloud.cic.v1 import private_connection_service_pb2 as yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__service__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class PrivateConnectionServiceStub(object):
|
|
10
|
+
"""A set of methods for managing PrivateConnection 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.PrivateConnectionService/Get',
|
|
21
|
+
request_serializer=yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__service__pb2.GetPrivateConnectionRequest.SerializeToString,
|
|
22
|
+
response_deserializer=yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__pb2.PrivateConnection.FromString,
|
|
23
|
+
)
|
|
24
|
+
self.List = channel.unary_unary(
|
|
25
|
+
'/yandex.cloud.cic.v1.PrivateConnectionService/List',
|
|
26
|
+
request_serializer=yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__service__pb2.ListPrivateConnectionsRequest.SerializeToString,
|
|
27
|
+
response_deserializer=yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__service__pb2.ListPrivateConnectionsResponse.FromString,
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class PrivateConnectionServiceServicer(object):
|
|
32
|
+
"""A set of methods for managing PrivateConnection resources.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
def Get(self, request, context):
|
|
36
|
+
"""Returns the specified PrivateConnection resource.
|
|
37
|
+
|
|
38
|
+
To get the list of available PrivateConnection 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 PrivateConnection 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_PrivateConnectionServiceServicer_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_private__connection__service__pb2.GetPrivateConnectionRequest.FromString,
|
|
57
|
+
response_serializer=yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__pb2.PrivateConnection.SerializeToString,
|
|
58
|
+
),
|
|
59
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
60
|
+
servicer.List,
|
|
61
|
+
request_deserializer=yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__service__pb2.ListPrivateConnectionsRequest.FromString,
|
|
62
|
+
response_serializer=yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__service__pb2.ListPrivateConnectionsResponse.SerializeToString,
|
|
63
|
+
),
|
|
64
|
+
}
|
|
65
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
66
|
+
'yandex.cloud.cic.v1.PrivateConnectionService', rpc_method_handlers)
|
|
67
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
# This class is part of an EXPERIMENTAL API.
|
|
71
|
+
class PrivateConnectionService(object):
|
|
72
|
+
"""A set of methods for managing PrivateConnection 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.PrivateConnectionService/Get',
|
|
87
|
+
yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__service__pb2.GetPrivateConnectionRequest.SerializeToString,
|
|
88
|
+
yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__pb2.PrivateConnection.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.PrivateConnectionService/List',
|
|
104
|
+
yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__service__pb2.ListPrivateConnectionsRequest.SerializeToString,
|
|
105
|
+
yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__service__pb2.ListPrivateConnectionsResponse.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.private_connection_pb2
|
|
12
|
+
import yandex.cloud.cic.v1.private_connection_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 PrivateConnectionServiceStub:
|
|
22
|
+
"""A set of methods for managing PrivateConnection resources."""
|
|
23
|
+
|
|
24
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
25
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
26
|
+
yandex.cloud.cic.v1.private_connection_service_pb2.GetPrivateConnectionRequest,
|
|
27
|
+
yandex.cloud.cic.v1.private_connection_pb2.PrivateConnection,
|
|
28
|
+
]
|
|
29
|
+
"""Returns the specified PrivateConnection resource.
|
|
30
|
+
|
|
31
|
+
To get the list of available PrivateConnection resources, make a [List] request.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
35
|
+
yandex.cloud.cic.v1.private_connection_service_pb2.ListPrivateConnectionsRequest,
|
|
36
|
+
yandex.cloud.cic.v1.private_connection_service_pb2.ListPrivateConnectionsResponse,
|
|
37
|
+
]
|
|
38
|
+
"""Retrieves the list of PrivateConnection resources in the specified folder."""
|
|
39
|
+
|
|
40
|
+
class PrivateConnectionServiceAsyncStub:
|
|
41
|
+
"""A set of methods for managing PrivateConnection resources."""
|
|
42
|
+
|
|
43
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
44
|
+
yandex.cloud.cic.v1.private_connection_service_pb2.GetPrivateConnectionRequest,
|
|
45
|
+
yandex.cloud.cic.v1.private_connection_pb2.PrivateConnection,
|
|
46
|
+
]
|
|
47
|
+
"""Returns the specified PrivateConnection resource.
|
|
48
|
+
|
|
49
|
+
To get the list of available PrivateConnection resources, make a [List] request.
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
53
|
+
yandex.cloud.cic.v1.private_connection_service_pb2.ListPrivateConnectionsRequest,
|
|
54
|
+
yandex.cloud.cic.v1.private_connection_service_pb2.ListPrivateConnectionsResponse,
|
|
55
|
+
]
|
|
56
|
+
"""Retrieves the list of PrivateConnection resources in the specified folder."""
|
|
57
|
+
|
|
58
|
+
class PrivateConnectionServiceServicer(metaclass=abc.ABCMeta):
|
|
59
|
+
"""A set of methods for managing PrivateConnection resources."""
|
|
60
|
+
|
|
61
|
+
@abc.abstractmethod
|
|
62
|
+
def Get(
|
|
63
|
+
self,
|
|
64
|
+
request: yandex.cloud.cic.v1.private_connection_service_pb2.GetPrivateConnectionRequest,
|
|
65
|
+
context: _ServicerContext,
|
|
66
|
+
) -> typing.Union[yandex.cloud.cic.v1.private_connection_pb2.PrivateConnection, collections.abc.Awaitable[yandex.cloud.cic.v1.private_connection_pb2.PrivateConnection]]:
|
|
67
|
+
"""Returns the specified PrivateConnection resource.
|
|
68
|
+
|
|
69
|
+
To get the list of available PrivateConnection resources, make a [List] request.
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
@abc.abstractmethod
|
|
73
|
+
def List(
|
|
74
|
+
self,
|
|
75
|
+
request: yandex.cloud.cic.v1.private_connection_service_pb2.ListPrivateConnectionsRequest,
|
|
76
|
+
context: _ServicerContext,
|
|
77
|
+
) -> typing.Union[yandex.cloud.cic.v1.private_connection_service_pb2.ListPrivateConnectionsResponse, collections.abc.Awaitable[yandex.cloud.cic.v1.private_connection_service_pb2.ListPrivateConnectionsResponse]]:
|
|
78
|
+
"""Retrieves the list of PrivateConnection resources in the specified folder."""
|
|
79
|
+
|
|
80
|
+
def add_PrivateConnectionServiceServicer_to_server(servicer: PrivateConnectionServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/cic/v1/public_connection.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 wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
|
|
15
|
+
from yandex.cloud.cic.v1 import peering_pb2 as yandex_dot_cloud_dot_cic_dot_v1_dot_peering__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+yandex/cloud/cic/v1/public_connection.proto\x12\x13yandex.cloud.cic.v1\x1a\x1egoogle/protobuf/wrappers.proto\x1a!yandex/cloud/cic/v1/peering.proto\"\xe5\x06\n\x10PublicConnection\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x11\n\tfolder_id\x18\x05 \x01(\t\x12\x11\n\tregion_id\x18\x06 \x01(\t\x12\x1b\n\x13trunk_connection_id\x18\x07 \x01(\t\x12,\n\x07vlan_id\x18\x08 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\x0cipv4_peering\x18\t \x01(\x0b\x32\x1c.yandex.cloud.cic.v1.Peering\x12Z\n\x1aipv4_allowed_service_types\x18\x0b \x03(\x0e\x32\x36.yandex.cloud.cic.v1.PublicConnection.CloudServiceType\x12$\n\x1cipv4_peer_announced_prefixes\x18\r \x03(\t\x12\x41\n\x06labels\x18\x12 \x03(\x0b\x32\x31.yandex.cloud.cic.v1.PublicConnection.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xf0\x02\n\x10\x43loudServiceType\x12\"\n\x1e\x43LOUD_SERVICE_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n\x14\x43LOUD_SERVICE_YANDEX\x10\x01\x1a\x02\x08\x01\x12\x1c\n\x18\x43LOUD_SERVICE_ALL_PUBLIC\x10\x02\x12\x14\n\x10\x43LOUD_SERVICE_S3\x10\x03\x12\x14\n\x10\x43LOUD_SERVICE_ML\x10\x04\x12\x17\n\x13\x43LOUD_SERVICE_APIGW\x10\x05\x12$\n CLOUD_SERVICE_CONTAINER_REGISTRY\x10\x06\x12\x19\n\x15\x43LOUD_SERVICE_CONSOLE\x10\x07\x12\x1c\n\x18\x43LOUD_SERVICE_MONITORING\x10\x08\x12\x1c\n\x18\x43LOUD_SERVICE_YANDEX_GPT\x10\t\x12#\n\x1f\x43LOUD_SERVICES_ALL_API_ENDPOINT\x10\n\x12\x15\n\x11\x43LOUD_SERVICE_YMQ\x10\x0bJ\x04\x08\x04\x10\x05J\x04\x08\n\x10\x0bJ\x04\x08\x0c\x10\rJ\x04\x08\x0e\x10\x12\x42V\n\x17yandex.cloud.api.cic.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/cic/v1;cicb\x06proto3')
|
|
19
|
+
|
|
20
|
+
_globals = globals()
|
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.cic.v1.public_connection_pb2', _globals)
|
|
23
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
|
+
DESCRIPTOR._options = None
|
|
25
|
+
DESCRIPTOR._serialized_options = b'\n\027yandex.cloud.api.cic.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/cic/v1;cic'
|
|
26
|
+
_PUBLICCONNECTION_LABELSENTRY._options = None
|
|
27
|
+
_PUBLICCONNECTION_LABELSENTRY._serialized_options = b'8\001'
|
|
28
|
+
_PUBLICCONNECTION_CLOUDSERVICETYPE.values_by_name["CLOUD_SERVICE_YANDEX"]._options = None
|
|
29
|
+
_PUBLICCONNECTION_CLOUDSERVICETYPE.values_by_name["CLOUD_SERVICE_YANDEX"]._serialized_options = b'\010\001'
|
|
30
|
+
_globals['_PUBLICCONNECTION']._serialized_start=136
|
|
31
|
+
_globals['_PUBLICCONNECTION']._serialized_end=1005
|
|
32
|
+
_globals['_PUBLICCONNECTION_LABELSENTRY']._serialized_start=565
|
|
33
|
+
_globals['_PUBLICCONNECTION_LABELSENTRY']._serialized_end=610
|
|
34
|
+
_globals['_PUBLICCONNECTION_CLOUDSERVICETYPE']._serialized_start=613
|
|
35
|
+
_globals['_PUBLICCONNECTION_CLOUDSERVICETYPE']._serialized_end=981
|
|
36
|
+
# @@protoc_insertion_point(module_scope)
|