yandexcloud 0.334.0__py3-none-any.whl → 0.335.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/tuning/v1/tuning_service_pb2.py +8 -8
- yandex/cloud/ai/tuning/v1/tuning_service_pb2.pyi +11 -3
- yandex/cloud/cic/v1/partner_pb2.pyi +1 -1
- yandex/cloud/cic/v1/private_connection_pb2.py +10 -9
- yandex/cloud/cic/v1/private_connection_pb2.pyi +40 -12
- yandex/cloud/cic/v1/private_connection_service_pb2.py +76 -9
- yandex/cloud/cic/v1/private_connection_service_pb2.pyi +379 -1
- yandex/cloud/cic/v1/private_connection_service_pb2_grpc.py +270 -0
- yandex/cloud/cic/v1/private_connection_service_pb2_grpc.pyi +151 -0
- yandex/cloud/cic/v1/public_connection_pb2.py +10 -7
- yandex/cloud/cic/v1/public_connection_pb2.pyi +32 -2
- yandex/cloud/cic/v1/trunk_connection_pb2.py +16 -13
- yandex/cloud/cic/v1/trunk_connection_pb2.pyi +38 -2
- yandex/cloud/cic/v1/trunk_connection_service_pb2.py +62 -9
- yandex/cloud/cic/v1/trunk_connection_service_pb2.pyi +360 -1
- yandex/cloud/cic/v1/trunk_connection_service_pb2_grpc.py +180 -0
- yandex/cloud/cic/v1/trunk_connection_service_pb2_grpc.pyi +99 -0
- yandex/cloud/cloudrouter/v1/routing_instance_pb2.py +16 -15
- yandex/cloud/cloudrouter/v1/routing_instance_pb2.pyi +11 -3
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2.py +86 -15
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2.pyi +388 -1
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2_grpc.py +360 -0
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2_grpc.pyi +203 -0
- yandex/cloud/compute/v1/instance_pb2.py +52 -52
- yandex/cloud/compute/v1/instance_pb2.pyi +5 -1
- yandex/cloud/compute/v1/instance_service_pb2.py +130 -126
- yandex/cloud/compute/v1/instance_service_pb2.pyi +17 -2
- yandex/cloud/compute/v1/reserved_instance_pool_pb2.py +59 -0
- yandex/cloud/compute/v1/reserved_instance_pool_pb2.pyi +171 -0
- yandex/cloud/compute/v1/reserved_instance_pool_pb2_grpc.py +24 -0
- yandex/cloud/compute/v1/reserved_instance_pool_pb2_grpc.pyi +17 -0
- yandex/cloud/compute/v1/reserved_instance_pool_service_pb2.py +123 -0
- yandex/cloud/compute/v1/reserved_instance_pool_service_pb2.pyi +345 -0
- yandex/cloud/compute/v1/reserved_instance_pool_service_pb2_grpc.py +282 -0
- yandex/cloud/compute/v1/reserved_instance_pool_service_pb2_grpc.pyi +147 -0
- yandex/cloud/mdb/greenplum/v1/cluster_pb2.py +30 -24
- yandex/cloud/mdb/greenplum/v1/cluster_pb2.pyi +47 -2
- yandex/cloud/mdb/greenplum/v1/cluster_service_pb2.py +78 -78
- yandex/cloud/mdb/greenplum/v1/cluster_service_pb2.pyi +29 -5
- yandex/cloud/mdb/mongodb/v1/cluster_service_pb2.pyi +0 -2
- yandex/cloud/mdb/mongodb/v1/config/mongodb_pb2.py +38 -22
- yandex/cloud/mdb/mongodb/v1/config/mongodb_pb2.pyi +193 -13
- yandex/cloud/mdb/mysql/v1/config/mysql5_7_pb2.py +18 -18
- yandex/cloud/mdb/mysql/v1/config/mysql5_7_pb2.pyi +8 -0
- yandex/cloud/mdb/mysql/v1/config/mysql8_0_pb2.py +18 -18
- yandex/cloud/mdb/mysql/v1/config/mysql8_0_pb2.pyi +8 -0
- yandex/cloud/mdb/mysql/v1/user_pb2.py +3 -3
- yandex/cloud/mdb/mysql/v1/user_pb2.pyi +8 -0
- yandex/cloud/storage/v1/bucket_pb2.py +75 -73
- yandex/cloud/video/v1/channel_service_pb2.py +36 -29
- yandex/cloud/video/v1/channel_service_pb2_grpc.py +133 -0
- yandex/cloud/video/v1/channel_service_pb2_grpc.pyi +61 -0
- yandex/cloud/video/v1/episode_service_pb2.py +54 -53
- yandex/cloud/video/v1/episode_service_pb2.pyi +9 -2
- yandexcloud/__init__.py +2 -1
- yandexcloud/_channels.py +8 -3
- yandexcloud/_retry_interceptor.py +2 -0
- yandexcloud/_retry_policy.py +31 -0
- yandexcloud/_sdk.py +5 -10
- {yandexcloud-0.334.0.dist-info → yandexcloud-0.335.0.dist-info}/METADATA +20 -1
- {yandexcloud-0.334.0.dist-info → yandexcloud-0.335.0.dist-info}/RECORD +65 -56
- {yandexcloud-0.334.0.dist-info → yandexcloud-0.335.0.dist-info}/WHEEL +1 -1
- {yandexcloud-0.334.0.dist-info → yandexcloud-0.335.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.334.0.dist-info → yandexcloud-0.335.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.334.0.dist-info → yandexcloud-0.335.0.dist-info}/top_level.txt +0 -0
|
@@ -25,12 +25,13 @@ _sym_db = _symbol_database.Default()
|
|
|
25
25
|
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
26
26
|
from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2
|
|
27
27
|
from yandex.cloud.api import operation_pb2 as yandex_dot_cloud_dot_api_dot_operation__pb2
|
|
28
|
+
from yandex.cloud.access import access_pb2 as yandex_dot_cloud_dot_access_dot_access__pb2
|
|
28
29
|
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
29
30
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
30
31
|
from yandex.cloud.video.v1 import channel_pb2 as yandex_dot_cloud_dot_video_dot_v1_dot_channel__pb2
|
|
31
32
|
|
|
32
33
|
|
|
33
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+yandex/cloud/video/v1/channel_service.proto\x12\x15yandex.cloud.video.v1\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\x1a#yandex/cloud/video/v1/channel.proto\"5\n\x11GetChannelRequest\x12 \n\nchannel_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"\xad\x01\n\x13ListChannelsRequest\x12%\n\x0forganization_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x1c\n\tpage_size\x18\x64 \x01(\x03\x42\t\xfa\xc7\x31\x05<=100\x12\x1d\n\npage_token\x18\x65 \x01(\tB\t\x8a\xc8\x31\x05<=200\x12\x10\n\x08order_by\x18\x66 \x01(\t\x12\x1a\n\x06\x66ilter\x18g \x01(\tB\n\x8a\xc8\x31\x06<=1000J\x04\x08\x02\x10\x64\"g\n\x14ListChannelsResponse\x12\x30\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x1e.yandex.cloud.video.v1.Channel\x12\x17\n\x0fnext_page_token\x18\x64 \x01(\tJ\x04\x08\x02\x10\x64\"\xa9\x02\n\x14\x43reateChannelRequest\x12%\n\x0forganization_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x13\n\x05title\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x89\x01\n\x06labels\x18\xc8\x01 \x03(\x0b\x32\x37.yandex.cloud.video.v1.CreateChannelRequest.LabelsEntryB?\xf2\xc7\x31\x0f[-_.@:/0-9a-z]*\x82\xc8\x31\x04<=64\x8a\xc8\x31\x04<=63\xb2\xc8\x31\x18\x12\x10[a-z][-_0-9a-z]*\x1a\x04<=63\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01J\x05\x08\x04\x10\xc8\x01\"+\n\x15\x43reateChannelMetadata\x12\x12\n\nchannel_id\x18\x01 \x01(\t\"\xce\x02\n\x14UpdateChannelRequest\x12 \n\nchannel_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\r\n\x05title\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x89\x01\n\x06labels\x18\xc8\x01 \x03(\x0b\x32\x37.yandex.cloud.video.v1.UpdateChannelRequest.LabelsEntryB?\xf2\xc7\x31\x0f[-_.@:/0-9a-z]*\x82\xc8\x31\x04<=64\x8a\xc8\x31\x04<=63\xb2\xc8\x31\x18\x12\x10[a-z][-_0-9a-z]*\x1a\x04<=63\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01J\x05\x08\x05\x10\xc8\x01\"+\n\x15UpdateChannelMetadata\x12\x12\n\nchannel_id\x18\x01 \x01(\t\"8\n\x14\x44\x65leteChannelRequest\x12 \n\nchannel_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"+\n\x15\x44\x65leteChannelMetadata\x12\x12\n\nchannel_id\x18\x01 \x01(\t\"k\n\x1a\x42\x61tchDeleteChannelsRequest\x12%\n\x0forganization_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12&\n\x0b\x63hannel_ids\x18\x02 \x03(\tB\x11\x82\xc8\x31\x05\x31-100\x8a\xc8\x31\x04<=50\"2\n\x1b\x42\x61tchDeleteChannelsMetadata\x12\x13\n\x0b\x63hannel_ids\x18\x01 \x03(\t2\
|
|
34
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+yandex/cloud/video/v1/channel_service.proto\x12\x15yandex.cloud.video.v1\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a yandex/cloud/api/operation.proto\x1a yandex/cloud/access/access.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\x1a#yandex/cloud/video/v1/channel.proto\"5\n\x11GetChannelRequest\x12 \n\nchannel_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"\xad\x01\n\x13ListChannelsRequest\x12%\n\x0forganization_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x1c\n\tpage_size\x18\x64 \x01(\x03\x42\t\xfa\xc7\x31\x05<=100\x12\x1d\n\npage_token\x18\x65 \x01(\tB\t\x8a\xc8\x31\x05<=200\x12\x10\n\x08order_by\x18\x66 \x01(\t\x12\x1a\n\x06\x66ilter\x18g \x01(\tB\n\x8a\xc8\x31\x06<=1000J\x04\x08\x02\x10\x64\"g\n\x14ListChannelsResponse\x12\x30\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x1e.yandex.cloud.video.v1.Channel\x12\x17\n\x0fnext_page_token\x18\x64 \x01(\tJ\x04\x08\x02\x10\x64\"\xa9\x02\n\x14\x43reateChannelRequest\x12%\n\x0forganization_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x13\n\x05title\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x89\x01\n\x06labels\x18\xc8\x01 \x03(\x0b\x32\x37.yandex.cloud.video.v1.CreateChannelRequest.LabelsEntryB?\xf2\xc7\x31\x0f[-_.@:/0-9a-z]*\x82\xc8\x31\x04<=64\x8a\xc8\x31\x04<=63\xb2\xc8\x31\x18\x12\x10[a-z][-_0-9a-z]*\x1a\x04<=63\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01J\x05\x08\x04\x10\xc8\x01\"+\n\x15\x43reateChannelMetadata\x12\x12\n\nchannel_id\x18\x01 \x01(\t\"\xce\x02\n\x14UpdateChannelRequest\x12 \n\nchannel_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\r\n\x05title\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x89\x01\n\x06labels\x18\xc8\x01 \x03(\x0b\x32\x37.yandex.cloud.video.v1.UpdateChannelRequest.LabelsEntryB?\xf2\xc7\x31\x0f[-_.@:/0-9a-z]*\x82\xc8\x31\x04<=64\x8a\xc8\x31\x04<=63\xb2\xc8\x31\x18\x12\x10[a-z][-_0-9a-z]*\x1a\x04<=63\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01J\x05\x08\x05\x10\xc8\x01\"+\n\x15UpdateChannelMetadata\x12\x12\n\nchannel_id\x18\x01 \x01(\t\"8\n\x14\x44\x65leteChannelRequest\x12 \n\nchannel_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"+\n\x15\x44\x65leteChannelMetadata\x12\x12\n\nchannel_id\x18\x01 \x01(\t\"k\n\x1a\x42\x61tchDeleteChannelsRequest\x12%\n\x0forganization_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12&\n\x0b\x63hannel_ids\x18\x02 \x03(\tB\x11\x82\xc8\x31\x05\x31-100\x8a\xc8\x31\x04<=50\"2\n\x1b\x42\x61tchDeleteChannelsMetadata\x12\x13\n\x0b\x63hannel_ids\x18\x01 \x03(\t2\xf8\x0c\n\x0e\x43hannelService\x12x\n\x03Get\x12(.yandex.cloud.video.v1.GetChannelRequest\x1a\x1e.yandex.cloud.video.v1.Channel\"\'\x82\xd3\xe4\x93\x02!\x12\x1f/video/v1/channels/{channel_id}\x12{\n\x04List\x12*.yandex.cloud.video.v1.ListChannelsRequest\x1a+.yandex.cloud.video.v1.ListChannelsResponse\"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/video/v1/channels\x12\x9b\x01\n\x06\x43reate\x12+.yandex.cloud.video.v1.CreateChannelRequest\x1a!.yandex.cloud.operation.Operation\"A\xb2\xd2* \n\x15\x43reateChannelMetadata\x12\x07\x43hannel\x82\xd3\xe4\x93\x02\x17\"\x12/video/v1/channels:\x01*\x12\xa8\x01\n\x06Update\x12+.yandex.cloud.video.v1.UpdateChannelRequest\x1a!.yandex.cloud.operation.Operation\"N\xb2\xd2* \n\x15UpdateChannelMetadata\x12\x07\x43hannel\x82\xd3\xe4\x93\x02$2\x1f/video/v1/channels/{channel_id}:\x01*\x12\xb3\x01\n\x06\x44\x65lete\x12+.yandex.cloud.video.v1.DeleteChannelRequest\x1a!.yandex.cloud.operation.Operation\"Y\xb2\xd2*.\n\x15\x44\x65leteChannelMetadata\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02!*\x1f/video/v1/channels/{channel_id}\x12\xc6\x01\n\x0b\x42\x61tchDelete\x12\x31.yandex.cloud.video.v1.BatchDeleteChannelsRequest\x1a!.yandex.cloud.operation.Operation\"a\xb2\xd2*4\n\x1b\x42\x61tchDeleteChannelsMetadata\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02#\"\x1e/video/v1/channels:batchDelete:\x01*\x12\xb2\x01\n\x12ListAccessBindings\x12..yandex.cloud.access.ListAccessBindingsRequest\x1a/.yandex.cloud.access.ListAccessBindingsResponse\";\x82\xd3\xe4\x93\x02\x35\x12\x33/video/v1/channels/{resource_id}:listAccessBindings\x12\xf1\x01\n\x11SetAccessBindings\x12-.yandex.cloud.access.SetAccessBindingsRequest\x1a!.yandex.cloud.operation.Operation\"\x89\x01\xb2\xd2*H\n access.SetAccessBindingsMetadata\x12$access.AccessBindingsOperationResult\x82\xd3\xe4\x93\x02\x37\"2/video/v1/channels/{resource_id}:setAccessBindings:\x01*\x12\xfd\x01\n\x14UpdateAccessBindings\x12\x30.yandex.cloud.access.UpdateAccessBindingsRequest\x1a!.yandex.cloud.operation.Operation\"\x8f\x01\xb2\xd2*K\n#access.UpdateAccessBindingsMetadata\x12$access.AccessBindingsOperationResult\x82\xd3\xe4\x93\x02:25/video/v1/channels/{resource_id}:updateAccessBindings:\x01*B\\\n\x19yandex.cloud.api.video.v1Z?github.com/yandex-cloud/go-genproto/yandex/cloud/video/v1;videob\x06proto3')
|
|
34
35
|
|
|
35
36
|
_globals = globals()
|
|
36
37
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -80,32 +81,38 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
80
81
|
_globals['_CHANNELSERVICE'].methods_by_name['Delete']._serialized_options = b'\262\322*.\n\025DeleteChannelMetadata\022\025google.protobuf.Empty\202\323\344\223\002!*\037/video/v1/channels/{channel_id}'
|
|
81
82
|
_globals['_CHANNELSERVICE'].methods_by_name['BatchDelete']._loaded_options = None
|
|
82
83
|
_globals['_CHANNELSERVICE'].methods_by_name['BatchDelete']._serialized_options = b'\262\322*4\n\033BatchDeleteChannelsMetadata\022\025google.protobuf.Empty\202\323\344\223\002#\"\036/video/v1/channels:batchDelete:\001*'
|
|
83
|
-
_globals['
|
|
84
|
-
_globals['
|
|
85
|
-
_globals['
|
|
86
|
-
_globals['
|
|
87
|
-
_globals['
|
|
88
|
-
_globals['
|
|
89
|
-
_globals['
|
|
90
|
-
_globals['
|
|
91
|
-
_globals['
|
|
92
|
-
_globals['
|
|
93
|
-
_globals['
|
|
94
|
-
_globals['
|
|
95
|
-
_globals['
|
|
96
|
-
_globals['
|
|
97
|
-
_globals['
|
|
98
|
-
_globals['
|
|
99
|
-
_globals['
|
|
100
|
-
_globals['
|
|
101
|
-
_globals['
|
|
102
|
-
_globals['
|
|
103
|
-
_globals['
|
|
104
|
-
_globals['
|
|
105
|
-
_globals['
|
|
106
|
-
_globals['
|
|
107
|
-
_globals['
|
|
108
|
-
_globals['
|
|
109
|
-
_globals['
|
|
110
|
-
_globals['
|
|
84
|
+
_globals['_CHANNELSERVICE'].methods_by_name['ListAccessBindings']._loaded_options = None
|
|
85
|
+
_globals['_CHANNELSERVICE'].methods_by_name['ListAccessBindings']._serialized_options = b'\202\323\344\223\0025\0223/video/v1/channels/{resource_id}:listAccessBindings'
|
|
86
|
+
_globals['_CHANNELSERVICE'].methods_by_name['SetAccessBindings']._loaded_options = None
|
|
87
|
+
_globals['_CHANNELSERVICE'].methods_by_name['SetAccessBindings']._serialized_options = b'\262\322*H\n access.SetAccessBindingsMetadata\022$access.AccessBindingsOperationResult\202\323\344\223\0027\"2/video/v1/channels/{resource_id}:setAccessBindings:\001*'
|
|
88
|
+
_globals['_CHANNELSERVICE'].methods_by_name['UpdateAccessBindings']._loaded_options = None
|
|
89
|
+
_globals['_CHANNELSERVICE'].methods_by_name['UpdateAccessBindings']._serialized_options = b'\262\322*K\n#access.UpdateAccessBindingsMetadata\022$access.AccessBindingsOperationResult\202\323\344\223\002:25/video/v1/channels/{resource_id}:updateAccessBindings:\001*'
|
|
90
|
+
_globals['_GETCHANNELREQUEST']._serialized_start=310
|
|
91
|
+
_globals['_GETCHANNELREQUEST']._serialized_end=363
|
|
92
|
+
_globals['_LISTCHANNELSREQUEST']._serialized_start=366
|
|
93
|
+
_globals['_LISTCHANNELSREQUEST']._serialized_end=539
|
|
94
|
+
_globals['_LISTCHANNELSRESPONSE']._serialized_start=541
|
|
95
|
+
_globals['_LISTCHANNELSRESPONSE']._serialized_end=644
|
|
96
|
+
_globals['_CREATECHANNELREQUEST']._serialized_start=647
|
|
97
|
+
_globals['_CREATECHANNELREQUEST']._serialized_end=944
|
|
98
|
+
_globals['_CREATECHANNELREQUEST_LABELSENTRY']._serialized_start=892
|
|
99
|
+
_globals['_CREATECHANNELREQUEST_LABELSENTRY']._serialized_end=937
|
|
100
|
+
_globals['_CREATECHANNELMETADATA']._serialized_start=946
|
|
101
|
+
_globals['_CREATECHANNELMETADATA']._serialized_end=989
|
|
102
|
+
_globals['_UPDATECHANNELREQUEST']._serialized_start=992
|
|
103
|
+
_globals['_UPDATECHANNELREQUEST']._serialized_end=1326
|
|
104
|
+
_globals['_UPDATECHANNELREQUEST_LABELSENTRY']._serialized_start=892
|
|
105
|
+
_globals['_UPDATECHANNELREQUEST_LABELSENTRY']._serialized_end=937
|
|
106
|
+
_globals['_UPDATECHANNELMETADATA']._serialized_start=1328
|
|
107
|
+
_globals['_UPDATECHANNELMETADATA']._serialized_end=1371
|
|
108
|
+
_globals['_DELETECHANNELREQUEST']._serialized_start=1373
|
|
109
|
+
_globals['_DELETECHANNELREQUEST']._serialized_end=1429
|
|
110
|
+
_globals['_DELETECHANNELMETADATA']._serialized_start=1431
|
|
111
|
+
_globals['_DELETECHANNELMETADATA']._serialized_end=1474
|
|
112
|
+
_globals['_BATCHDELETECHANNELSREQUEST']._serialized_start=1476
|
|
113
|
+
_globals['_BATCHDELETECHANNELSREQUEST']._serialized_end=1583
|
|
114
|
+
_globals['_BATCHDELETECHANNELSMETADATA']._serialized_start=1585
|
|
115
|
+
_globals['_BATCHDELETECHANNELSMETADATA']._serialized_end=1635
|
|
116
|
+
_globals['_CHANNELSERVICE']._serialized_start=1638
|
|
117
|
+
_globals['_CHANNELSERVICE']._serialized_end=3294
|
|
111
118
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import grpc
|
|
4
4
|
import warnings
|
|
5
5
|
|
|
6
|
+
from yandex.cloud.access import access_pb2 as yandex_dot_cloud_dot_access_dot_access__pb2
|
|
6
7
|
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
7
8
|
from yandex.cloud.video.v1 import channel_pb2 as yandex_dot_cloud_dot_video_dot_v1_dot_channel__pb2
|
|
8
9
|
from yandex.cloud.video.v1 import channel_service_pb2 as yandex_dot_cloud_dot_video_dot_v1_dot_channel__service__pb2
|
|
@@ -67,6 +68,21 @@ class ChannelServiceStub(object):
|
|
|
67
68
|
request_serializer=yandex_dot_cloud_dot_video_dot_v1_dot_channel__service__pb2.BatchDeleteChannelsRequest.SerializeToString,
|
|
68
69
|
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
69
70
|
_registered_method=True)
|
|
71
|
+
self.ListAccessBindings = channel.unary_unary(
|
|
72
|
+
'/yandex.cloud.video.v1.ChannelService/ListAccessBindings',
|
|
73
|
+
request_serializer=yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsRequest.SerializeToString,
|
|
74
|
+
response_deserializer=yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsResponse.FromString,
|
|
75
|
+
_registered_method=True)
|
|
76
|
+
self.SetAccessBindings = channel.unary_unary(
|
|
77
|
+
'/yandex.cloud.video.v1.ChannelService/SetAccessBindings',
|
|
78
|
+
request_serializer=yandex_dot_cloud_dot_access_dot_access__pb2.SetAccessBindingsRequest.SerializeToString,
|
|
79
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
80
|
+
_registered_method=True)
|
|
81
|
+
self.UpdateAccessBindings = channel.unary_unary(
|
|
82
|
+
'/yandex.cloud.video.v1.ChannelService/UpdateAccessBindings',
|
|
83
|
+
request_serializer=yandex_dot_cloud_dot_access_dot_access__pb2.UpdateAccessBindingsRequest.SerializeToString,
|
|
84
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
85
|
+
_registered_method=True)
|
|
70
86
|
|
|
71
87
|
|
|
72
88
|
class ChannelServiceServicer(object):
|
|
@@ -115,6 +131,27 @@ class ChannelServiceServicer(object):
|
|
|
115
131
|
context.set_details('Method not implemented!')
|
|
116
132
|
raise NotImplementedError('Method not implemented!')
|
|
117
133
|
|
|
134
|
+
def ListAccessBindings(self, request, context):
|
|
135
|
+
"""Lists existing access bindings for the specified channel.
|
|
136
|
+
"""
|
|
137
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
138
|
+
context.set_details('Method not implemented!')
|
|
139
|
+
raise NotImplementedError('Method not implemented!')
|
|
140
|
+
|
|
141
|
+
def SetAccessBindings(self, request, context):
|
|
142
|
+
"""Sets access bindings for the channel.
|
|
143
|
+
"""
|
|
144
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
145
|
+
context.set_details('Method not implemented!')
|
|
146
|
+
raise NotImplementedError('Method not implemented!')
|
|
147
|
+
|
|
148
|
+
def UpdateAccessBindings(self, request, context):
|
|
149
|
+
"""Updates access bindings for the specified channel.
|
|
150
|
+
"""
|
|
151
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
152
|
+
context.set_details('Method not implemented!')
|
|
153
|
+
raise NotImplementedError('Method not implemented!')
|
|
154
|
+
|
|
118
155
|
|
|
119
156
|
def add_ChannelServiceServicer_to_server(servicer, server):
|
|
120
157
|
rpc_method_handlers = {
|
|
@@ -148,6 +185,21 @@ def add_ChannelServiceServicer_to_server(servicer, server):
|
|
|
148
185
|
request_deserializer=yandex_dot_cloud_dot_video_dot_v1_dot_channel__service__pb2.BatchDeleteChannelsRequest.FromString,
|
|
149
186
|
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
150
187
|
),
|
|
188
|
+
'ListAccessBindings': grpc.unary_unary_rpc_method_handler(
|
|
189
|
+
servicer.ListAccessBindings,
|
|
190
|
+
request_deserializer=yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsRequest.FromString,
|
|
191
|
+
response_serializer=yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsResponse.SerializeToString,
|
|
192
|
+
),
|
|
193
|
+
'SetAccessBindings': grpc.unary_unary_rpc_method_handler(
|
|
194
|
+
servicer.SetAccessBindings,
|
|
195
|
+
request_deserializer=yandex_dot_cloud_dot_access_dot_access__pb2.SetAccessBindingsRequest.FromString,
|
|
196
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
197
|
+
),
|
|
198
|
+
'UpdateAccessBindings': grpc.unary_unary_rpc_method_handler(
|
|
199
|
+
servicer.UpdateAccessBindings,
|
|
200
|
+
request_deserializer=yandex_dot_cloud_dot_access_dot_access__pb2.UpdateAccessBindingsRequest.FromString,
|
|
201
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
202
|
+
),
|
|
151
203
|
}
|
|
152
204
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
153
205
|
'yandex.cloud.video.v1.ChannelService', rpc_method_handlers)
|
|
@@ -321,3 +373,84 @@ class ChannelService(object):
|
|
|
321
373
|
timeout,
|
|
322
374
|
metadata,
|
|
323
375
|
_registered_method=True)
|
|
376
|
+
|
|
377
|
+
@staticmethod
|
|
378
|
+
def ListAccessBindings(request,
|
|
379
|
+
target,
|
|
380
|
+
options=(),
|
|
381
|
+
channel_credentials=None,
|
|
382
|
+
call_credentials=None,
|
|
383
|
+
insecure=False,
|
|
384
|
+
compression=None,
|
|
385
|
+
wait_for_ready=None,
|
|
386
|
+
timeout=None,
|
|
387
|
+
metadata=None):
|
|
388
|
+
return grpc.experimental.unary_unary(
|
|
389
|
+
request,
|
|
390
|
+
target,
|
|
391
|
+
'/yandex.cloud.video.v1.ChannelService/ListAccessBindings',
|
|
392
|
+
yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsRequest.SerializeToString,
|
|
393
|
+
yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsResponse.FromString,
|
|
394
|
+
options,
|
|
395
|
+
channel_credentials,
|
|
396
|
+
insecure,
|
|
397
|
+
call_credentials,
|
|
398
|
+
compression,
|
|
399
|
+
wait_for_ready,
|
|
400
|
+
timeout,
|
|
401
|
+
metadata,
|
|
402
|
+
_registered_method=True)
|
|
403
|
+
|
|
404
|
+
@staticmethod
|
|
405
|
+
def SetAccessBindings(request,
|
|
406
|
+
target,
|
|
407
|
+
options=(),
|
|
408
|
+
channel_credentials=None,
|
|
409
|
+
call_credentials=None,
|
|
410
|
+
insecure=False,
|
|
411
|
+
compression=None,
|
|
412
|
+
wait_for_ready=None,
|
|
413
|
+
timeout=None,
|
|
414
|
+
metadata=None):
|
|
415
|
+
return grpc.experimental.unary_unary(
|
|
416
|
+
request,
|
|
417
|
+
target,
|
|
418
|
+
'/yandex.cloud.video.v1.ChannelService/SetAccessBindings',
|
|
419
|
+
yandex_dot_cloud_dot_access_dot_access__pb2.SetAccessBindingsRequest.SerializeToString,
|
|
420
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
421
|
+
options,
|
|
422
|
+
channel_credentials,
|
|
423
|
+
insecure,
|
|
424
|
+
call_credentials,
|
|
425
|
+
compression,
|
|
426
|
+
wait_for_ready,
|
|
427
|
+
timeout,
|
|
428
|
+
metadata,
|
|
429
|
+
_registered_method=True)
|
|
430
|
+
|
|
431
|
+
@staticmethod
|
|
432
|
+
def UpdateAccessBindings(request,
|
|
433
|
+
target,
|
|
434
|
+
options=(),
|
|
435
|
+
channel_credentials=None,
|
|
436
|
+
call_credentials=None,
|
|
437
|
+
insecure=False,
|
|
438
|
+
compression=None,
|
|
439
|
+
wait_for_ready=None,
|
|
440
|
+
timeout=None,
|
|
441
|
+
metadata=None):
|
|
442
|
+
return grpc.experimental.unary_unary(
|
|
443
|
+
request,
|
|
444
|
+
target,
|
|
445
|
+
'/yandex.cloud.video.v1.ChannelService/UpdateAccessBindings',
|
|
446
|
+
yandex_dot_cloud_dot_access_dot_access__pb2.UpdateAccessBindingsRequest.SerializeToString,
|
|
447
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
448
|
+
options,
|
|
449
|
+
channel_credentials,
|
|
450
|
+
insecure,
|
|
451
|
+
call_credentials,
|
|
452
|
+
compression,
|
|
453
|
+
wait_for_ready,
|
|
454
|
+
timeout,
|
|
455
|
+
metadata,
|
|
456
|
+
_registered_method=True)
|
|
@@ -8,6 +8,7 @@ import collections.abc
|
|
|
8
8
|
import grpc
|
|
9
9
|
import grpc.aio
|
|
10
10
|
import typing
|
|
11
|
+
import yandex.cloud.access.access_pb2
|
|
11
12
|
import yandex.cloud.operation.operation_pb2
|
|
12
13
|
import yandex.cloud.video.v1.channel_pb2
|
|
13
14
|
import yandex.cloud.video.v1.channel_service_pb2
|
|
@@ -59,6 +60,24 @@ class ChannelServiceStub:
|
|
|
59
60
|
]
|
|
60
61
|
"""Batch delete channels."""
|
|
61
62
|
|
|
63
|
+
ListAccessBindings: grpc.UnaryUnaryMultiCallable[
|
|
64
|
+
yandex.cloud.access.access_pb2.ListAccessBindingsRequest,
|
|
65
|
+
yandex.cloud.access.access_pb2.ListAccessBindingsResponse,
|
|
66
|
+
]
|
|
67
|
+
"""Lists existing access bindings for the specified channel."""
|
|
68
|
+
|
|
69
|
+
SetAccessBindings: grpc.UnaryUnaryMultiCallable[
|
|
70
|
+
yandex.cloud.access.access_pb2.SetAccessBindingsRequest,
|
|
71
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
72
|
+
]
|
|
73
|
+
"""Sets access bindings for the channel."""
|
|
74
|
+
|
|
75
|
+
UpdateAccessBindings: grpc.UnaryUnaryMultiCallable[
|
|
76
|
+
yandex.cloud.access.access_pb2.UpdateAccessBindingsRequest,
|
|
77
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
78
|
+
]
|
|
79
|
+
"""Updates access bindings for the specified channel."""
|
|
80
|
+
|
|
62
81
|
class ChannelServiceAsyncStub:
|
|
63
82
|
"""Channel management service."""
|
|
64
83
|
|
|
@@ -98,6 +117,24 @@ class ChannelServiceAsyncStub:
|
|
|
98
117
|
]
|
|
99
118
|
"""Batch delete channels."""
|
|
100
119
|
|
|
120
|
+
ListAccessBindings: grpc.aio.UnaryUnaryMultiCallable[
|
|
121
|
+
yandex.cloud.access.access_pb2.ListAccessBindingsRequest,
|
|
122
|
+
yandex.cloud.access.access_pb2.ListAccessBindingsResponse,
|
|
123
|
+
]
|
|
124
|
+
"""Lists existing access bindings for the specified channel."""
|
|
125
|
+
|
|
126
|
+
SetAccessBindings: grpc.aio.UnaryUnaryMultiCallable[
|
|
127
|
+
yandex.cloud.access.access_pb2.SetAccessBindingsRequest,
|
|
128
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
129
|
+
]
|
|
130
|
+
"""Sets access bindings for the channel."""
|
|
131
|
+
|
|
132
|
+
UpdateAccessBindings: grpc.aio.UnaryUnaryMultiCallable[
|
|
133
|
+
yandex.cloud.access.access_pb2.UpdateAccessBindingsRequest,
|
|
134
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
135
|
+
]
|
|
136
|
+
"""Updates access bindings for the specified channel."""
|
|
137
|
+
|
|
101
138
|
class ChannelServiceServicer(metaclass=abc.ABCMeta):
|
|
102
139
|
"""Channel management service."""
|
|
103
140
|
|
|
@@ -149,4 +186,28 @@ class ChannelServiceServicer(metaclass=abc.ABCMeta):
|
|
|
149
186
|
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
150
187
|
"""Batch delete channels."""
|
|
151
188
|
|
|
189
|
+
@abc.abstractmethod
|
|
190
|
+
def ListAccessBindings(
|
|
191
|
+
self,
|
|
192
|
+
request: yandex.cloud.access.access_pb2.ListAccessBindingsRequest,
|
|
193
|
+
context: _ServicerContext,
|
|
194
|
+
) -> typing.Union[yandex.cloud.access.access_pb2.ListAccessBindingsResponse, collections.abc.Awaitable[yandex.cloud.access.access_pb2.ListAccessBindingsResponse]]:
|
|
195
|
+
"""Lists existing access bindings for the specified channel."""
|
|
196
|
+
|
|
197
|
+
@abc.abstractmethod
|
|
198
|
+
def SetAccessBindings(
|
|
199
|
+
self,
|
|
200
|
+
request: yandex.cloud.access.access_pb2.SetAccessBindingsRequest,
|
|
201
|
+
context: _ServicerContext,
|
|
202
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
203
|
+
"""Sets access bindings for the channel."""
|
|
204
|
+
|
|
205
|
+
@abc.abstractmethod
|
|
206
|
+
def UpdateAccessBindings(
|
|
207
|
+
self,
|
|
208
|
+
request: yandex.cloud.access.access_pb2.UpdateAccessBindingsRequest,
|
|
209
|
+
context: _ServicerContext,
|
|
210
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
211
|
+
"""Updates access bindings for the specified channel."""
|
|
212
|
+
|
|
152
213
|
def add_ChannelServiceServicer_to_server(servicer: ChannelServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -23,6 +23,7 @@ _sym_db = _symbol_database.Default()
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
26
|
+
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
|
|
26
27
|
from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2
|
|
27
28
|
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
28
29
|
from yandex.cloud.api import operation_pb2 as yandex_dot_cloud_dot_api_dot_operation__pb2
|
|
@@ -32,7 +33,7 @@ from yandex.cloud.video.v1 import episode_pb2 as yandex_dot_cloud_dot_video_dot_
|
|
|
32
33
|
from yandex.cloud.video.v1 import manifest_pb2 as yandex_dot_cloud_dot_video_dot_v1_dot_manifest__pb2
|
|
33
34
|
|
|
34
35
|
|
|
35
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+yandex/cloud/video/v1/episode_service.proto\x12\x15yandex.cloud.video.v1\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\x1a#yandex/cloud/video/v1/episode.proto\x1a$yandex/cloud/video/v1/manifest.proto\"5\n\x11GetEpisodeRequest\x12 \n\nepisode_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"\xd5\x01\n\x13ListEpisodesRequest\x12\x1d\n\tstream_id\x18\x01 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12\x1b\n\x07line_id\x18\x02 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12\x1c\n\tpage_size\x18\x64 \x01(\x03\x42\t\xfa\xc7\x31\x05<=100\x12\x1d\n\npage_token\x18\x65 \x01(\tB\t\x8a\xc8\x31\x05<=200\x12\x10\n\x08order_by\x18\x66 \x01(\t\x12\x1a\n\x06\x66ilter\x18g \x01(\tB\n\x8a\xc8\x31\x06<=1000B\x11\n\tparent_id\x12\x04\xc0\xc1\x31\x01J\x04\x08\x03\x10\x64\"g\n\x14ListEpisodesResponse\x12\x30\n\x08\x65pisodes\x18\x01 \x03(\x0b\x32\x1e.yandex.cloud.video.v1.Episode\x12\x17\n\x0fnext_page_token\x18\x64 \x01(\tJ\x04\x08\x02\x10\x64\"c\n\x17\x42\x61tchGetEpisodesRequest\x12 \n\nchannel_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12&\n\x0b\x65pisode_ids\x18\x02 \x03(\tB\x11\x82\xc8\x31\x05\x31-100\x8a\xc8\x31\x04<=50\"L\n\x18\x42\x61tchGetEpisodesResponse\x12\x30\n\x08\x65pisodes\x18\x01 \x03(\x0b\x32\x1e.yandex.cloud.video.v1.Episode\"\xc7\x04\n\x14\x43reateEpisodeRequest\x12\x1d\n\tstream_id\x18\x64 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12\x1b\n\x07line_id\x18\x65 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12\x13\n\x05title\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x1e\n\x0cthumbnail_id\x18\x04 \x01(\tB\x08\x8a\xc8\x31\x04<=50\x12.\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x64vr_seconds\x18\x07 \x01(\x03\x12J\n\rpublic_access\x18\xe8\x07 \x01(\x0b\x32\x30.yandex.cloud.video.v1.EpisodePublicAccessParamsH\x01\x12S\n\x12\x61uth_system_access\x18\xea\x07 \x01(\x0b\x32\x34.yandex.cloud.video.v1.EpisodeAuthSystemAccessParamsH\x01\x12M\n\x0fsign_url_access\x18\xeb\x07 \x01(\x0b\x32\x31.yandex.cloud.video.v1.EpisodeSignURLAccessParamsH\x01\x42\x11\n\tparent_id\x12\x04\xc0\xc1\x31\x01\x42\x15\n\raccess_rights\x12\x04\xc0\xc1\x31\x01J\x06\x08\xe9\x07\x10\xea\x07J\x04\x08\x01\x10\x02J\x04\x08\x08\x10\x64J\x05\x08\x66\x10\xe8\x07\"\x1b\n\x19\x45pisodePublicAccessParams\"\x1f\n\x1d\x45pisodeAuthSystemAccessParams\"\x1c\n\x1a\x45pisodeSignURLAccessParams\"+\n\x15\x43reateEpisodeMetadata\x12\x12\n\nepisode_id\x18\x01 \x01(\t\"\xb2\x04\n\x14UpdateEpisodeRequest\x12 \n\nepisode_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\r\n\x05title\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x1e\n\x0cthumbnail_id\x18\x05 \x01(\tB\x08\x8a\xc8\x31\x04<=50\x12.\n\nstart_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x64vr_seconds\x18\x08 \x01(\x03\x12J\n\rpublic_access\x18\xe8\x07 \x01(\x0b\x32\x30.yandex.cloud.video.v1.EpisodePublicAccessParamsH\x00\x12S\n\x12\x61uth_system_access\x18\xea\x07 \x01(\x0b\x32\x34.yandex.cloud.video.v1.EpisodeAuthSystemAccessParamsH\x00\x12M\n\x0fsign_url_access\x18\xeb\x07 \x01(\x0b\x32\x31.yandex.cloud.video.v1.EpisodeSignURLAccessParamsH\x00\x42\x0f\n\raccess_rightsJ\x06\x08\xe9\x07\x10\xea\x07J\x05\x08\t\x10\xe8\x07\"+\n\x15UpdateEpisodeMetadata\x12\x12\n\nepisode_id\x18\x01 \x01(\t\"8\n\x14\x44\x65leteEpisodeRequest\x12 \n\nepisode_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"+\n\x15\x44\x65leteEpisodeMetadata\x12\x12\n\nepisode_id\x18\x01 \x01(\t\"\x92\x01\n\x1a\x42\x61tchDeleteEpisodesRequest\x12\x1d\n\tstream_id\x18\x64 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12\x1b\n\x07line_id\x18\x65 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12&\n\x0b\x65pisode_ids\x18\x01 \x03(\tB\x11\x82\xc8\x31\x05\x31-100\x8a\xc8\x31\x04<=50B\n\n\x02id\x12\x04\xc0\xc1\x31\x01J\x04\x08\x02\x10\x64\"2\n\x1b\x42\x61tchDeleteEpisodesMetadata\x12\x13\n\x0b\x65pisode_ids\x18\x01 \x03(\t\"\xec\x01\n\x1bPerformEpisodeActionRequest\x12 \n\nepisode_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12?\n\x07publish\x18\xea\x07 \x01(\x0b\x32+.yandex.cloud.video.v1.PublishEpisodeActionH\x00\x12\x43\n\tunpublish\x18\xeb\x07 \x01(\x0b\x32-.yandex.cloud.video.v1.UnpublishEpisodeActionH\x00\x42\x0e\n\x06\x61\x63tion\x12\x04\xc0\xc1\x31\x01J\x06\x08\xe8\x07\x10\xe9\x07J\x06\x08\xe9\x07\x10\xea\x07J\x05\x08\x02\x10\xe8\x07\"\x16\n\x14PublishEpisodeAction\"\x18\n\x16UnpublishEpisodeAction\"2\n\x1cPerformEpisodeActionMetadata\x12\x12\n\nepisode_id\x18\x01 \x01(\t\"
|
|
36
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+yandex/cloud/video/v1/episode_service.proto\x12\x15yandex.cloud.video.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\x1a#yandex/cloud/video/v1/episode.proto\x1a$yandex/cloud/video/v1/manifest.proto\"5\n\x11GetEpisodeRequest\x12 \n\nepisode_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"\xd5\x01\n\x13ListEpisodesRequest\x12\x1d\n\tstream_id\x18\x01 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12\x1b\n\x07line_id\x18\x02 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12\x1c\n\tpage_size\x18\x64 \x01(\x03\x42\t\xfa\xc7\x31\x05<=100\x12\x1d\n\npage_token\x18\x65 \x01(\tB\t\x8a\xc8\x31\x05<=200\x12\x10\n\x08order_by\x18\x66 \x01(\t\x12\x1a\n\x06\x66ilter\x18g \x01(\tB\n\x8a\xc8\x31\x06<=1000B\x11\n\tparent_id\x12\x04\xc0\xc1\x31\x01J\x04\x08\x03\x10\x64\"g\n\x14ListEpisodesResponse\x12\x30\n\x08\x65pisodes\x18\x01 \x03(\x0b\x32\x1e.yandex.cloud.video.v1.Episode\x12\x17\n\x0fnext_page_token\x18\x64 \x01(\tJ\x04\x08\x02\x10\x64\"c\n\x17\x42\x61tchGetEpisodesRequest\x12 \n\nchannel_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12&\n\x0b\x65pisode_ids\x18\x02 \x03(\tB\x11\x82\xc8\x31\x05\x31-100\x8a\xc8\x31\x04<=50\"L\n\x18\x42\x61tchGetEpisodesResponse\x12\x30\n\x08\x65pisodes\x18\x01 \x03(\x0b\x32\x1e.yandex.cloud.video.v1.Episode\"\xc7\x04\n\x14\x43reateEpisodeRequest\x12\x1d\n\tstream_id\x18\x64 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12\x1b\n\x07line_id\x18\x65 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12\x13\n\x05title\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x1e\n\x0cthumbnail_id\x18\x04 \x01(\tB\x08\x8a\xc8\x31\x04<=50\x12.\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x64vr_seconds\x18\x07 \x01(\x03\x12J\n\rpublic_access\x18\xe8\x07 \x01(\x0b\x32\x30.yandex.cloud.video.v1.EpisodePublicAccessParamsH\x01\x12S\n\x12\x61uth_system_access\x18\xea\x07 \x01(\x0b\x32\x34.yandex.cloud.video.v1.EpisodeAuthSystemAccessParamsH\x01\x12M\n\x0fsign_url_access\x18\xeb\x07 \x01(\x0b\x32\x31.yandex.cloud.video.v1.EpisodeSignURLAccessParamsH\x01\x42\x11\n\tparent_id\x12\x04\xc0\xc1\x31\x01\x42\x15\n\raccess_rights\x12\x04\xc0\xc1\x31\x01J\x06\x08\xe9\x07\x10\xea\x07J\x04\x08\x01\x10\x02J\x04\x08\x08\x10\x64J\x05\x08\x66\x10\xe8\x07\"\x1b\n\x19\x45pisodePublicAccessParams\"\x1f\n\x1d\x45pisodeAuthSystemAccessParams\"\x1c\n\x1a\x45pisodeSignURLAccessParams\"+\n\x15\x43reateEpisodeMetadata\x12\x12\n\nepisode_id\x18\x01 \x01(\t\"\xb2\x04\n\x14UpdateEpisodeRequest\x12 \n\nepisode_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\r\n\x05title\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x1e\n\x0cthumbnail_id\x18\x05 \x01(\tB\x08\x8a\xc8\x31\x04<=50\x12.\n\nstart_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x64vr_seconds\x18\x08 \x01(\x03\x12J\n\rpublic_access\x18\xe8\x07 \x01(\x0b\x32\x30.yandex.cloud.video.v1.EpisodePublicAccessParamsH\x00\x12S\n\x12\x61uth_system_access\x18\xea\x07 \x01(\x0b\x32\x34.yandex.cloud.video.v1.EpisodeAuthSystemAccessParamsH\x00\x12M\n\x0fsign_url_access\x18\xeb\x07 \x01(\x0b\x32\x31.yandex.cloud.video.v1.EpisodeSignURLAccessParamsH\x00\x42\x0f\n\raccess_rightsJ\x06\x08\xe9\x07\x10\xea\x07J\x05\x08\t\x10\xe8\x07\"+\n\x15UpdateEpisodeMetadata\x12\x12\n\nepisode_id\x18\x01 \x01(\t\"8\n\x14\x44\x65leteEpisodeRequest\x12 \n\nepisode_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"+\n\x15\x44\x65leteEpisodeMetadata\x12\x12\n\nepisode_id\x18\x01 \x01(\t\"\x92\x01\n\x1a\x42\x61tchDeleteEpisodesRequest\x12\x1d\n\tstream_id\x18\x64 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12\x1b\n\x07line_id\x18\x65 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12&\n\x0b\x65pisode_ids\x18\x01 \x03(\tB\x11\x82\xc8\x31\x05\x31-100\x8a\xc8\x31\x04<=50B\n\n\x02id\x12\x04\xc0\xc1\x31\x01J\x04\x08\x02\x10\x64\"2\n\x1b\x42\x61tchDeleteEpisodesMetadata\x12\x13\n\x0b\x65pisode_ids\x18\x01 \x03(\t\"\xec\x01\n\x1bPerformEpisodeActionRequest\x12 \n\nepisode_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12?\n\x07publish\x18\xea\x07 \x01(\x0b\x32+.yandex.cloud.video.v1.PublishEpisodeActionH\x00\x12\x43\n\tunpublish\x18\xeb\x07 \x01(\x0b\x32-.yandex.cloud.video.v1.UnpublishEpisodeActionH\x00\x42\x0e\n\x06\x61\x63tion\x12\x04\xc0\xc1\x31\x01J\x06\x08\xe8\x07\x10\xe9\x07J\x06\x08\xe9\x07\x10\xea\x07J\x05\x08\x02\x10\xe8\x07\"\x16\n\x14PublishEpisodeAction\"\x18\n\x16UnpublishEpisodeAction\"2\n\x1cPerformEpisodeActionMetadata\x12\x12\n\nepisode_id\x18\x01 \x01(\t\"\xbd\x01\n\x1aGetEpisodePlayerURLRequest\x12 \n\nepisode_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12:\n\x06params\x18\x02 \x01(\x0b\x32*.yandex.cloud.video.v1.EpisodePlayerParams\x12\x41\n\x1esigned_url_expiration_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\"E\n\x13\x45pisodePlayerParams\x12\x0c\n\x04mute\x18\x01 \x01(\x08\x12\x10\n\x08\x61utoplay\x18\x02 \x01(\x08\x12\x0e\n\x06hidden\x18\x03 \x01(\x08\"?\n\x1bGetEpisodePlayerURLResponse\x12\x12\n\nplayer_url\x18\x01 \x01(\t\x12\x0c\n\x04html\x18\x02 \x01(\t\">\n\x1aGetEpisodeManifestsRequest\x12 \n\nepisode_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"Q\n\x1bGetEpisodeManifestsResponse\x12\x32\n\tmanifests\x18\x01 \x03(\x0b\x32\x1f.yandex.cloud.video.v1.Manifest2\xe6\x0c\n\x0e\x45pisodeService\x12x\n\x03Get\x12(.yandex.cloud.video.v1.GetEpisodeRequest\x1a\x1e.yandex.cloud.video.v1.Episode\"\'\x82\xd3\xe4\x93\x02!\x12\x1f/video/v1/episodes/{episode_id}\x12{\n\x04List\x12*.yandex.cloud.video.v1.ListEpisodesRequest\x1a+.yandex.cloud.video.v1.ListEpisodesResponse\"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/video/v1/episodes\x12\x93\x01\n\x08\x42\x61tchGet\x12..yandex.cloud.video.v1.BatchGetEpisodesRequest\x1a/.yandex.cloud.video.v1.BatchGetEpisodesResponse\"&\x82\xd3\xe4\x93\x02 \"\x1b/video/v1/episodes:batchGet:\x01*\x12\x9b\x01\n\x06\x43reate\x12+.yandex.cloud.video.v1.CreateEpisodeRequest\x1a!.yandex.cloud.operation.Operation\"A\xb2\xd2* \n\x15\x43reateEpisodeMetadata\x12\x07\x45pisode\x82\xd3\xe4\x93\x02\x17\"\x12/video/v1/episodes:\x01*\x12\xa8\x01\n\x06Update\x12+.yandex.cloud.video.v1.UpdateEpisodeRequest\x1a!.yandex.cloud.operation.Operation\"N\xb2\xd2* \n\x15UpdateEpisodeMetadata\x12\x07\x45pisode\x82\xd3\xe4\x93\x02$2\x1f/video/v1/episodes/{episode_id}:\x01*\x12\xb3\x01\n\x06\x44\x65lete\x12+.yandex.cloud.video.v1.DeleteEpisodeRequest\x1a!.yandex.cloud.operation.Operation\"Y\xb2\xd2*.\n\x15\x44\x65leteEpisodeMetadata\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02!*\x1f/video/v1/episodes/{episode_id}\x12\x9d\x01\n\x0b\x42\x61tchDelete\x12\x31.yandex.cloud.video.v1.BatchDeleteEpisodesRequest\x1a!.yandex.cloud.operation.Operation\"8\xb2\xd2*4\n\x1b\x42\x61tchDeleteEpisodesMetadata\x12\x15google.protobuf.Empty\x12\xcb\x01\n\rPerformAction\x12\x32.yandex.cloud.video.v1.PerformEpisodeActionRequest\x1a!.yandex.cloud.operation.Operation\"c\xb2\xd2*\'\n\x1cPerformEpisodeActionMetadata\x12\x07\x45pisode\x82\xd3\xe4\x93\x02\x32\"-/video/v1/episodes/{episode_id}:performAction:\x01*\x12\xab\x01\n\x0cGetPlayerURL\x12\x31.yandex.cloud.video.v1.GetEpisodePlayerURLRequest\x1a\x32.yandex.cloud.video.v1.GetEpisodePlayerURLResponse\"4\x82\xd3\xe4\x93\x02.\x12,/video/v1/episodes/{episode_id}:getPlayerUrl\x12\xab\x01\n\x0cGetManifests\x12\x31.yandex.cloud.video.v1.GetEpisodeManifestsRequest\x1a\x32.yandex.cloud.video.v1.GetEpisodeManifestsResponse\"4\x82\xd3\xe4\x93\x02.\x12,/video/v1/episodes/{episode_id}:getManifestsB\\\n\x19yandex.cloud.api.video.v1Z?github.com/yandex-cloud/go-genproto/yandex/cloud/video/v1;videob\x06proto3')
|
|
36
37
|
|
|
37
38
|
_globals = globals()
|
|
38
39
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -112,56 +113,56 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
112
113
|
_globals['_EPISODESERVICE'].methods_by_name['GetPlayerURL']._serialized_options = b'\202\323\344\223\002.\022,/video/v1/episodes/{episode_id}:getPlayerUrl'
|
|
113
114
|
_globals['_EPISODESERVICE'].methods_by_name['GetManifests']._loaded_options = None
|
|
114
115
|
_globals['_EPISODESERVICE'].methods_by_name['GetManifests']._serialized_options = b'\202\323\344\223\002.\022,/video/v1/episodes/{episode_id}:getManifests'
|
|
115
|
-
_globals['_GETEPISODEREQUEST']._serialized_start=
|
|
116
|
-
_globals['_GETEPISODEREQUEST']._serialized_end=
|
|
117
|
-
_globals['_LISTEPISODESREQUEST']._serialized_start=
|
|
118
|
-
_globals['_LISTEPISODESREQUEST']._serialized_end=
|
|
119
|
-
_globals['_LISTEPISODESRESPONSE']._serialized_start=
|
|
120
|
-
_globals['_LISTEPISODESRESPONSE']._serialized_end=
|
|
121
|
-
_globals['_BATCHGETEPISODESREQUEST']._serialized_start=
|
|
122
|
-
_globals['_BATCHGETEPISODESREQUEST']._serialized_end=
|
|
123
|
-
_globals['_BATCHGETEPISODESRESPONSE']._serialized_start=
|
|
124
|
-
_globals['_BATCHGETEPISODESRESPONSE']._serialized_end=
|
|
125
|
-
_globals['_CREATEEPISODEREQUEST']._serialized_start=
|
|
126
|
-
_globals['_CREATEEPISODEREQUEST']._serialized_end=
|
|
127
|
-
_globals['_EPISODEPUBLICACCESSPARAMS']._serialized_start=
|
|
128
|
-
_globals['_EPISODEPUBLICACCESSPARAMS']._serialized_end=
|
|
129
|
-
_globals['_EPISODEAUTHSYSTEMACCESSPARAMS']._serialized_start=
|
|
130
|
-
_globals['_EPISODEAUTHSYSTEMACCESSPARAMS']._serialized_end=
|
|
131
|
-
_globals['_EPISODESIGNURLACCESSPARAMS']._serialized_start=
|
|
132
|
-
_globals['_EPISODESIGNURLACCESSPARAMS']._serialized_end=
|
|
133
|
-
_globals['_CREATEEPISODEMETADATA']._serialized_start=
|
|
134
|
-
_globals['_CREATEEPISODEMETADATA']._serialized_end=
|
|
135
|
-
_globals['_UPDATEEPISODEREQUEST']._serialized_start=
|
|
136
|
-
_globals['_UPDATEEPISODEREQUEST']._serialized_end=
|
|
137
|
-
_globals['_UPDATEEPISODEMETADATA']._serialized_start=
|
|
138
|
-
_globals['_UPDATEEPISODEMETADATA']._serialized_end=
|
|
139
|
-
_globals['_DELETEEPISODEREQUEST']._serialized_start=
|
|
140
|
-
_globals['_DELETEEPISODEREQUEST']._serialized_end=
|
|
141
|
-
_globals['_DELETEEPISODEMETADATA']._serialized_start=
|
|
142
|
-
_globals['_DELETEEPISODEMETADATA']._serialized_end=
|
|
143
|
-
_globals['_BATCHDELETEEPISODESREQUEST']._serialized_start=
|
|
144
|
-
_globals['_BATCHDELETEEPISODESREQUEST']._serialized_end=
|
|
145
|
-
_globals['_BATCHDELETEEPISODESMETADATA']._serialized_start=
|
|
146
|
-
_globals['_BATCHDELETEEPISODESMETADATA']._serialized_end=
|
|
147
|
-
_globals['_PERFORMEPISODEACTIONREQUEST']._serialized_start=
|
|
148
|
-
_globals['_PERFORMEPISODEACTIONREQUEST']._serialized_end=
|
|
149
|
-
_globals['_PUBLISHEPISODEACTION']._serialized_start=
|
|
150
|
-
_globals['_PUBLISHEPISODEACTION']._serialized_end=
|
|
151
|
-
_globals['_UNPUBLISHEPISODEACTION']._serialized_start=
|
|
152
|
-
_globals['_UNPUBLISHEPISODEACTION']._serialized_end=
|
|
153
|
-
_globals['_PERFORMEPISODEACTIONMETADATA']._serialized_start=
|
|
154
|
-
_globals['_PERFORMEPISODEACTIONMETADATA']._serialized_end=
|
|
155
|
-
_globals['_GETEPISODEPLAYERURLREQUEST']._serialized_start=
|
|
156
|
-
_globals['_GETEPISODEPLAYERURLREQUEST']._serialized_end=
|
|
157
|
-
_globals['_EPISODEPLAYERPARAMS']._serialized_start=
|
|
158
|
-
_globals['_EPISODEPLAYERPARAMS']._serialized_end=
|
|
159
|
-
_globals['_GETEPISODEPLAYERURLRESPONSE']._serialized_start=
|
|
160
|
-
_globals['_GETEPISODEPLAYERURLRESPONSE']._serialized_end=
|
|
161
|
-
_globals['_GETEPISODEMANIFESTSREQUEST']._serialized_start=
|
|
162
|
-
_globals['_GETEPISODEMANIFESTSREQUEST']._serialized_end=
|
|
163
|
-
_globals['_GETEPISODEMANIFESTSRESPONSE']._serialized_start=
|
|
164
|
-
_globals['_GETEPISODEMANIFESTSRESPONSE']._serialized_end=
|
|
165
|
-
_globals['_EPISODESERVICE']._serialized_start=
|
|
166
|
-
_globals['_EPISODESERVICE']._serialized_end=
|
|
116
|
+
_globals['_GETEPISODEREQUEST']._serialized_start=379
|
|
117
|
+
_globals['_GETEPISODEREQUEST']._serialized_end=432
|
|
118
|
+
_globals['_LISTEPISODESREQUEST']._serialized_start=435
|
|
119
|
+
_globals['_LISTEPISODESREQUEST']._serialized_end=648
|
|
120
|
+
_globals['_LISTEPISODESRESPONSE']._serialized_start=650
|
|
121
|
+
_globals['_LISTEPISODESRESPONSE']._serialized_end=753
|
|
122
|
+
_globals['_BATCHGETEPISODESREQUEST']._serialized_start=755
|
|
123
|
+
_globals['_BATCHGETEPISODESREQUEST']._serialized_end=854
|
|
124
|
+
_globals['_BATCHGETEPISODESRESPONSE']._serialized_start=856
|
|
125
|
+
_globals['_BATCHGETEPISODESRESPONSE']._serialized_end=932
|
|
126
|
+
_globals['_CREATEEPISODEREQUEST']._serialized_start=935
|
|
127
|
+
_globals['_CREATEEPISODEREQUEST']._serialized_end=1518
|
|
128
|
+
_globals['_EPISODEPUBLICACCESSPARAMS']._serialized_start=1520
|
|
129
|
+
_globals['_EPISODEPUBLICACCESSPARAMS']._serialized_end=1547
|
|
130
|
+
_globals['_EPISODEAUTHSYSTEMACCESSPARAMS']._serialized_start=1549
|
|
131
|
+
_globals['_EPISODEAUTHSYSTEMACCESSPARAMS']._serialized_end=1580
|
|
132
|
+
_globals['_EPISODESIGNURLACCESSPARAMS']._serialized_start=1582
|
|
133
|
+
_globals['_EPISODESIGNURLACCESSPARAMS']._serialized_end=1610
|
|
134
|
+
_globals['_CREATEEPISODEMETADATA']._serialized_start=1612
|
|
135
|
+
_globals['_CREATEEPISODEMETADATA']._serialized_end=1655
|
|
136
|
+
_globals['_UPDATEEPISODEREQUEST']._serialized_start=1658
|
|
137
|
+
_globals['_UPDATEEPISODEREQUEST']._serialized_end=2220
|
|
138
|
+
_globals['_UPDATEEPISODEMETADATA']._serialized_start=2222
|
|
139
|
+
_globals['_UPDATEEPISODEMETADATA']._serialized_end=2265
|
|
140
|
+
_globals['_DELETEEPISODEREQUEST']._serialized_start=2267
|
|
141
|
+
_globals['_DELETEEPISODEREQUEST']._serialized_end=2323
|
|
142
|
+
_globals['_DELETEEPISODEMETADATA']._serialized_start=2325
|
|
143
|
+
_globals['_DELETEEPISODEMETADATA']._serialized_end=2368
|
|
144
|
+
_globals['_BATCHDELETEEPISODESREQUEST']._serialized_start=2371
|
|
145
|
+
_globals['_BATCHDELETEEPISODESREQUEST']._serialized_end=2517
|
|
146
|
+
_globals['_BATCHDELETEEPISODESMETADATA']._serialized_start=2519
|
|
147
|
+
_globals['_BATCHDELETEEPISODESMETADATA']._serialized_end=2569
|
|
148
|
+
_globals['_PERFORMEPISODEACTIONREQUEST']._serialized_start=2572
|
|
149
|
+
_globals['_PERFORMEPISODEACTIONREQUEST']._serialized_end=2808
|
|
150
|
+
_globals['_PUBLISHEPISODEACTION']._serialized_start=2810
|
|
151
|
+
_globals['_PUBLISHEPISODEACTION']._serialized_end=2832
|
|
152
|
+
_globals['_UNPUBLISHEPISODEACTION']._serialized_start=2834
|
|
153
|
+
_globals['_UNPUBLISHEPISODEACTION']._serialized_end=2858
|
|
154
|
+
_globals['_PERFORMEPISODEACTIONMETADATA']._serialized_start=2860
|
|
155
|
+
_globals['_PERFORMEPISODEACTIONMETADATA']._serialized_end=2910
|
|
156
|
+
_globals['_GETEPISODEPLAYERURLREQUEST']._serialized_start=2913
|
|
157
|
+
_globals['_GETEPISODEPLAYERURLREQUEST']._serialized_end=3102
|
|
158
|
+
_globals['_EPISODEPLAYERPARAMS']._serialized_start=3104
|
|
159
|
+
_globals['_EPISODEPLAYERPARAMS']._serialized_end=3173
|
|
160
|
+
_globals['_GETEPISODEPLAYERURLRESPONSE']._serialized_start=3175
|
|
161
|
+
_globals['_GETEPISODEPLAYERURLRESPONSE']._serialized_end=3238
|
|
162
|
+
_globals['_GETEPISODEMANIFESTSREQUEST']._serialized_start=3240
|
|
163
|
+
_globals['_GETEPISODEMANIFESTSREQUEST']._serialized_end=3302
|
|
164
|
+
_globals['_GETEPISODEMANIFESTSRESPONSE']._serialized_start=3304
|
|
165
|
+
_globals['_GETEPISODEMANIFESTSRESPONSE']._serialized_end=3385
|
|
166
|
+
_globals['_EPISODESERVICE']._serialized_start=3388
|
|
167
|
+
_globals['_EPISODESERVICE']._serialized_end=5026
|
|
167
168
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -6,6 +6,7 @@ isort:skip_file
|
|
|
6
6
|
import builtins
|
|
7
7
|
import collections.abc
|
|
8
8
|
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.duration_pb2
|
|
9
10
|
import google.protobuf.field_mask_pb2
|
|
10
11
|
import google.protobuf.internal.containers
|
|
11
12
|
import google.protobuf.message
|
|
@@ -496,18 +497,24 @@ class GetEpisodePlayerURLRequest(google.protobuf.message.Message):
|
|
|
496
497
|
|
|
497
498
|
EPISODE_ID_FIELD_NUMBER: builtins.int
|
|
498
499
|
PARAMS_FIELD_NUMBER: builtins.int
|
|
500
|
+
SIGNED_URL_EXPIRATION_DURATION_FIELD_NUMBER: builtins.int
|
|
499
501
|
episode_id: builtins.str
|
|
500
502
|
"""ID of the episode."""
|
|
501
503
|
@property
|
|
502
504
|
def params(self) -> global___EpisodePlayerParams: ...
|
|
505
|
+
@property
|
|
506
|
+
def signed_url_expiration_duration(self) -> google.protobuf.duration_pb2.Duration:
|
|
507
|
+
"""Optional field, used to set custom url expiration duration for episodes with sign_url_access"""
|
|
508
|
+
|
|
503
509
|
def __init__(
|
|
504
510
|
self,
|
|
505
511
|
*,
|
|
506
512
|
episode_id: builtins.str = ...,
|
|
507
513
|
params: global___EpisodePlayerParams | None = ...,
|
|
514
|
+
signed_url_expiration_duration: google.protobuf.duration_pb2.Duration | None = ...,
|
|
508
515
|
) -> None: ...
|
|
509
|
-
def HasField(self, field_name: typing.Literal["params", b"params"]) -> builtins.bool: ...
|
|
510
|
-
def ClearField(self, field_name: typing.Literal["episode_id", b"episode_id", "params", b"params"]) -> None: ...
|
|
516
|
+
def HasField(self, field_name: typing.Literal["params", b"params", "signed_url_expiration_duration", b"signed_url_expiration_duration"]) -> builtins.bool: ...
|
|
517
|
+
def ClearField(self, field_name: typing.Literal["episode_id", b"episode_id", "params", b"params", "signed_url_expiration_duration", b"signed_url_expiration_duration"]) -> None: ...
|
|
511
518
|
|
|
512
519
|
global___GetEpisodePlayerURLRequest = GetEpisodePlayerURLRequest
|
|
513
520
|
|
yandexcloud/__init__.py
CHANGED
|
@@ -8,6 +8,7 @@ from yandexcloud._backoff import (
|
|
|
8
8
|
default_backoff,
|
|
9
9
|
)
|
|
10
10
|
from yandexcloud._retry_interceptor import RetryInterceptor
|
|
11
|
+
from yandexcloud._retry_policy import RetryPolicy
|
|
11
12
|
from yandexcloud._sdk import SDK
|
|
12
13
|
|
|
13
|
-
__version__ = "0.
|
|
14
|
+
__version__ = "0.335.0"
|
yandexcloud/_channels.py
CHANGED
|
@@ -30,6 +30,7 @@ class Channels:
|
|
|
30
30
|
root_certificates: Optional[bytes] = None,
|
|
31
31
|
private_key: Optional[bytes] = None,
|
|
32
32
|
certificate_chain: Optional[bytes] = None,
|
|
33
|
+
service_config: Optional[str] = None,
|
|
33
34
|
**_: str,
|
|
34
35
|
) -> None:
|
|
35
36
|
self._channel_creds = grpc.ssl_channel_credentials(
|
|
@@ -48,10 +49,14 @@ class Channels:
|
|
|
48
49
|
self._client_user_agent = client_user_agent
|
|
49
50
|
self._config_endpoints = endpoints if endpoints is not None else {}
|
|
50
51
|
self._endpoints: Optional[Dict[str, str]] = None
|
|
52
|
+
# flake8: noqa
|
|
51
53
|
self.channel_options = tuple(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
[
|
|
55
|
+
("grpc.primary_user_agent", user_agent)
|
|
56
|
+
for user_agent in [self._client_user_agent, SDK_USER_AGENT]
|
|
57
|
+
if user_agent is not None
|
|
58
|
+
]
|
|
59
|
+
+ ([("grpc.service_config", service_config)] if service_config is not None else [])
|
|
55
60
|
)
|
|
56
61
|
|
|
57
62
|
def channel(self, service: str, endpoint: Optional[str] = None, insecure: bool = False) -> grpc.Channel:
|
|
@@ -4,6 +4,7 @@ import uuid
|
|
|
4
4
|
from typing import Callable, Iterable, Optional
|
|
5
5
|
|
|
6
6
|
import grpc
|
|
7
|
+
from deprecated import deprecated
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
class _ClientCallDetails(
|
|
@@ -19,6 +20,7 @@ class _RetryCall(Exception):
|
|
|
19
20
|
pass
|
|
20
21
|
|
|
21
22
|
|
|
23
|
+
@deprecated(version="0.335.0", reason="Instead of this class use retry_policy field when building the SDK")
|
|
22
24
|
class RetryInterceptor(grpc.UnaryUnaryClientInterceptor):
|
|
23
25
|
"""RetryInterceptor implements grpc retries.
|
|
24
26
|
It supports retries quantity, list of retriable codes, backoff function,
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import json
|
|
2
|
+
from typing import Tuple
|
|
3
|
+
|
|
4
|
+
import grpc
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class RetryPolicy:
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
max_attempts: int = 4,
|
|
11
|
+
status_codes: Tuple["grpc.StatusCode"] = (grpc.StatusCode.UNAVAILABLE,),
|
|
12
|
+
):
|
|
13
|
+
self.__policy = {
|
|
14
|
+
"methodConfig": [
|
|
15
|
+
{
|
|
16
|
+
"name": [{}],
|
|
17
|
+
"retryPolicy": {
|
|
18
|
+
"maxAttempts": max_attempts,
|
|
19
|
+
"initialBackoff": "0.1s",
|
|
20
|
+
"maxBackoff": "20s",
|
|
21
|
+
"backoffMultiplier": 2,
|
|
22
|
+
"retryableStatusCodes": [status.name for status in status_codes],
|
|
23
|
+
},
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"retryThrottling": {"maxTokens": 100, "tokenRatio": 0.1},
|
|
27
|
+
"waitForReady": True,
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
def to_json(self) -> str:
|
|
31
|
+
return json.dumps(self.__policy)
|