yandexcloud 0.351.0__py3-none-any.whl → 0.353.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/foundation_models/v1/text_generation/text_generation_service_pb2.py +18 -18
- yandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service_pb2.pyi +18 -2
- yandex/cloud/ai/tuning/v1/tuning_service_pb2.py +13 -3
- yandex/cloud/ai/tuning/v1/tuning_service_pb2.pyi +40 -0
- yandex/cloud/ai/tuning/v1/tuning_service_pb2_grpc.py +43 -0
- yandex/cloud/ai/tuning/v1/tuning_service_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/tuning/v1/tuning_task_pb2.py +3 -3
- yandex/cloud/ai/tuning/v1/tuning_task_pb2.pyi +2 -0
- yandex/cloud/baremetal/v1alpha/server_pb2.py +13 -11
- yandex/cloud/cdn/v1/origin_group_pb2.py +3 -3
- yandex/cloud/cdn/v1/origin_group_pb2.pyi +5 -1
- yandex/cloud/cdn/v1/origin_group_service_pb2.py +14 -14
- yandex/cloud/cdn/v1/origin_group_service_pb2.pyi +5 -1
- yandex/cloud/cdn/v1/origin_pb2.py +10 -10
- yandex/cloud/cdn/v1/origin_pb2.pyi +5 -1
- yandex/cloud/cdn/v1/origin_service_pb2.py +14 -14
- yandex/cloud/cdn/v1/origin_service_pb2.pyi +5 -1
- yandex/cloud/cdn/v1/resource_pb2.py +64 -64
- yandex/cloud/cdn/v1/resource_pb2.pyi +9 -1
- yandex/cloud/cdn/v1/resource_service_pb2.py +26 -26
- yandex/cloud/cdn/v1/resource_service_pb2.pyi +5 -1
- yandex/cloud/connectionmanager/__init__.py +0 -0
- yandex/cloud/connectionmanager/v1/__init__.py +0 -0
- yandex/cloud/connectionmanager/v1/clickhouse_pb2.py +46 -0
- yandex/cloud/connectionmanager/v1/clickhouse_pb2.pyi +138 -0
- yandex/cloud/connectionmanager/v1/clickhouse_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/clickhouse_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/common_pb2.py +49 -0
- yandex/cloud/connectionmanager/v1/common_pb2.pyi +187 -0
- yandex/cloud/connectionmanager/v1/common_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/common_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/connection_pb2.py +58 -0
- yandex/cloud/connectionmanager/v1/connection_pb2.pyi +205 -0
- yandex/cloud/connectionmanager/v1/connection_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/connection_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/connection_service_pb2.py +91 -0
- yandex/cloud/connectionmanager/v1/connection_service_pb2.pyi +320 -0
- yandex/cloud/connectionmanager/v1/connection_service_pb2_grpc.py +362 -0
- yandex/cloud/connectionmanager/v1/connection_service_pb2_grpc.pyi +163 -0
- yandex/cloud/connectionmanager/v1/greenplum_pb2.py +48 -0
- yandex/cloud/connectionmanager/v1/greenplum_pb2.pyi +151 -0
- yandex/cloud/connectionmanager/v1/greenplum_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/greenplum_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/mongodb_pb2.py +50 -0
- yandex/cloud/connectionmanager/v1/mongodb_pb2.pyi +169 -0
- yandex/cloud/connectionmanager/v1/mongodb_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/mongodb_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/mysql_pb2.py +48 -0
- yandex/cloud/connectionmanager/v1/mysql_pb2.pyi +151 -0
- yandex/cloud/connectionmanager/v1/mysql_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/mysql_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/opensearch_pb2.py +48 -0
- yandex/cloud/connectionmanager/v1/opensearch_pb2.pyi +148 -0
- yandex/cloud/connectionmanager/v1/opensearch_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/opensearch_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/package_options_pb2.py +35 -0
- yandex/cloud/connectionmanager/v1/package_options_pb2.pyi +8 -0
- yandex/cloud/connectionmanager/v1/package_options_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/package_options_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/postgresql_pb2.py +50 -0
- yandex/cloud/connectionmanager/v1/postgresql_pb2.pyi +171 -0
- yandex/cloud/connectionmanager/v1/postgresql_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/postgresql_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/redis_pb2.py +50 -0
- yandex/cloud/connectionmanager/v1/redis_pb2.pyi +163 -0
- yandex/cloud/connectionmanager/v1/redis_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/redis_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/trino_pb2.py +44 -0
- yandex/cloud/connectionmanager/v1/trino_pb2.pyi +88 -0
- yandex/cloud/connectionmanager/v1/trino_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/trino_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/valkey_pb2.py +50 -0
- yandex/cloud/connectionmanager/v1/valkey_pb2.pyi +173 -0
- yandex/cloud/connectionmanager/v1/valkey_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/valkey_pb2_grpc.pyi +17 -0
- yandex/cloud/iot/broker/v1/broker_service_pb2.py +50 -50
- yandex/cloud/iot/devices/v1/device_service_pb2.py +61 -61
- yandex/cloud/iot/devices/v1/registry_service_pb2.py +82 -82
- yandex/cloud/mdb/greenplum/v1/hba_rule_pb2.py +9 -5
- yandex/cloud/mdb/mongodb/v1/config/mongodb_pb2.py +94 -76
- yandex/cloud/mdb/mongodb/v1/config/mongodb_pb2.pyi +239 -14
- yandex/cloud/mdb/mysql/v1/cluster_service_pb2.py +74 -76
- yandex/cloud/metastore/v1/cluster_pb2.py +19 -19
- yandex/cloud/metastore/v1/cluster_pb2.pyi +39 -32
- yandex/cloud/metastore/v1/cluster_service_pb2.py +47 -47
- yandex/cloud/metastore/v1/cluster_service_pb2.pyi +90 -91
- yandex/cloud/metastore/v1/cluster_service_pb2_grpc.py +63 -66
- yandex/cloud/metastore/v1/cluster_service_pb2_grpc.pyi +62 -77
- yandex/cloud/organizationmanager/v1/saml/federation_pb2.py +17 -3
- yandex/cloud/organizationmanager/v1/saml/federation_pb2.pyi +209 -0
- yandex/cloud/organizationmanager/v1/saml/federation_service_pb2.py +55 -3
- yandex/cloud/organizationmanager/v1/saml/federation_service_pb2.pyi +231 -0
- yandex/cloud/organizationmanager/v1/saml/federation_service_pb2_grpc.py +222 -0
- yandex/cloud/organizationmanager/v1/saml/federation_service_pb2_grpc.pyi +109 -0
- yandex/cloud/quotamanager/v1/quota_request_service_pb2.py +3 -3
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.py +12 -10
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.pyi +17 -3
- yandex/cloud/video/v1/channel_pb2.py +12 -12
- yandex/cloud/video/v1/channel_pb2.pyi +88 -22
- yandex/cloud/video/v1/channel_service_pb2.py +14 -14
- yandex/cloud/video/v1/channel_service_pb2.pyi +77 -41
- yandex/cloud/video/v1/channel_service_pb2_grpc.py +26 -9
- yandex/cloud/video/v1/channel_service_pb2_grpc.pyi +87 -30
- yandex/cloud/video/v1/episode_pb2.py +8 -10
- yandex/cloud/video/v1/episode_pb2.pyi +52 -36
- yandex/cloud/video/v1/episode_service_pb2.py +44 -42
- yandex/cloud/video/v1/episode_service_pb2.pyi +131 -82
- yandex/cloud/video/v1/episode_service_pb2_grpc.py +30 -10
- yandex/cloud/video/v1/episode_service_pb2_grpc.pyi +102 -33
- yandex/cloud/video/v1/manifest_pb2.pyi +24 -1
- yandex/cloud/video/v1/playlist_pb2.py +4 -6
- yandex/cloud/video/v1/playlist_pb2.pyi +24 -12
- yandex/cloud/video/v1/playlist_service_pb2.py +28 -24
- yandex/cloud/video/v1/playlist_service_pb2.pyi +99 -47
- yandex/cloud/video/v1/playlist_service_pb2_grpc.py +20 -7
- yandex/cloud/video/v1/playlist_service_pb2_grpc.pyi +75 -24
- yandex/cloud/video/v1/stream_line_pb2.py +16 -16
- yandex/cloud/video/v1/stream_line_pb2.pyi +11 -12
- yandex/cloud/video/v1/stream_line_service_pb2.py +54 -56
- yandex/cloud/video/v1/stream_line_service_pb2.pyi +110 -65
- yandex/cloud/video/v1/stream_line_service_pb2_grpc.py +25 -10
- yandex/cloud/video/v1/stream_line_service_pb2_grpc.pyi +96 -33
- yandex/cloud/video/v1/stream_pb2.pyi +49 -36
- yandex/cloud/video/v1/stream_service_pb2.pyi +123 -52
- yandex/cloud/video/v1/stream_service_pb2_grpc.py +25 -8
- yandex/cloud/video/v1/stream_service_pb2_grpc.pyi +84 -27
- yandex/cloud/video/v1/style_preset_pb2.py +49 -0
- yandex/cloud/video/v1/style_preset_pb2.pyi +200 -0
- yandex/cloud/video/v1/style_preset_pb2_grpc.py +24 -0
- yandex/cloud/video/v1/style_preset_pb2_grpc.pyi +17 -0
- yandex/cloud/video/v1/style_preset_service_pb2.py +141 -0
- yandex/cloud/video/v1/style_preset_service_pb2.pyi +348 -0
- yandex/cloud/video/v1/style_preset_service_pb2_grpc.py +290 -0
- yandex/cloud/video/v1/style_preset_service_pb2_grpc.pyi +171 -0
- yandex/cloud/video/v1/subtitle_pb2.pyi +32 -23
- yandex/cloud/video/v1/subtitle_service_pb2.py +17 -17
- yandex/cloud/video/v1/subtitle_service_pb2.pyi +25 -13
- yandex/cloud/video/v1/subtitle_service_pb2_grpc.py +18 -5
- yandex/cloud/video/v1/subtitle_service_pb2_grpc.pyi +63 -18
- yandex/cloud/video/v1/thumbnail_pb2.py +3 -3
- yandex/cloud/video/v1/thumbnail_pb2.pyi +18 -5
- yandex/cloud/video/v1/thumbnail_service_pb2.py +39 -31
- yandex/cloud/video/v1/thumbnail_service_pb2.pyi +94 -33
- yandex/cloud/video/v1/thumbnail_service_pb2_grpc.py +21 -6
- yandex/cloud/video/v1/thumbnail_service_pb2_grpc.pyi +75 -21
- yandex/cloud/video/v1/video_pb2.py +24 -24
- yandex/cloud/video/v1/video_pb2.pyi +105 -64
- yandex/cloud/video/v1/video_service_pb2.py +80 -74
- yandex/cloud/video/v1/video_service_pb2.pyi +193 -90
- yandex/cloud/video/v1/video_service_pb2_grpc.py +35 -12
- yandex/cloud/video/v1/video_service_pb2_grpc.pyi +123 -39
- yandex/cloud/ytsaurus/v1/package_options_pb2.py +35 -0
- yandex/cloud/ytsaurus/v1/package_options_pb2.pyi +8 -0
- yandex/cloud/ytsaurus/v1/package_options_pb2_grpc.py +24 -0
- yandex/cloud/ytsaurus/v1/package_options_pb2_grpc.pyi +17 -0
- yandexcloud/__init__.py +1 -1
- yandexcloud/_wrappers/dataproc/__init__.py +4 -0
- {yandexcloud-0.351.0.dist-info → yandexcloud-0.353.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.351.0.dist-info → yandexcloud-0.353.0.dist-info}/RECORD +163 -97
- {yandexcloud-0.351.0.dist-info → yandexcloud-0.353.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.351.0.dist-info → yandexcloud-0.353.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.351.0.dist-info → yandexcloud-0.353.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.351.0.dist-info → yandexcloud-0.353.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,290 @@
|
|
|
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
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
7
|
+
from yandex.cloud.video.v1 import style_preset_pb2 as yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__pb2
|
|
8
|
+
from yandex.cloud.video.v1 import style_preset_service_pb2 as yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__service__pb2
|
|
9
|
+
|
|
10
|
+
GRPC_GENERATED_VERSION = '1.70.0'
|
|
11
|
+
GRPC_VERSION = grpc.__version__
|
|
12
|
+
_version_not_supported = False
|
|
13
|
+
|
|
14
|
+
try:
|
|
15
|
+
from grpc._utilities import first_version_is_lower
|
|
16
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
17
|
+
except ImportError:
|
|
18
|
+
_version_not_supported = True
|
|
19
|
+
|
|
20
|
+
if _version_not_supported:
|
|
21
|
+
raise RuntimeError(
|
|
22
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
23
|
+
+ f' but the generated code in yandex/cloud/video/v1/style_preset_service_pb2_grpc.py depends on'
|
|
24
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
25
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
26
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class StylePresetServiceStub(object):
|
|
31
|
+
"""StylePreset management service.
|
|
32
|
+
Provides methods for creating, retrieving, updating, and deleting style presets,
|
|
33
|
+
which define the visual appearance and layout of video players and associated widgets.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
def __init__(self, channel):
|
|
37
|
+
"""Constructor.
|
|
38
|
+
|
|
39
|
+
Args:
|
|
40
|
+
channel: A grpc.Channel.
|
|
41
|
+
"""
|
|
42
|
+
self.Get = channel.unary_unary(
|
|
43
|
+
'/yandex.cloud.video.v1.StylePresetService/Get',
|
|
44
|
+
request_serializer=yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__service__pb2.GetStylePresetRequest.SerializeToString,
|
|
45
|
+
response_deserializer=yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__pb2.StylePreset.FromString,
|
|
46
|
+
_registered_method=True)
|
|
47
|
+
self.List = channel.unary_unary(
|
|
48
|
+
'/yandex.cloud.video.v1.StylePresetService/List',
|
|
49
|
+
request_serializer=yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__service__pb2.ListStylePresetsRequest.SerializeToString,
|
|
50
|
+
response_deserializer=yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__service__pb2.ListStylePresetsResponse.FromString,
|
|
51
|
+
_registered_method=True)
|
|
52
|
+
self.Create = channel.unary_unary(
|
|
53
|
+
'/yandex.cloud.video.v1.StylePresetService/Create',
|
|
54
|
+
request_serializer=yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__service__pb2.CreateStylePresetRequest.SerializeToString,
|
|
55
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
56
|
+
_registered_method=True)
|
|
57
|
+
self.Update = channel.unary_unary(
|
|
58
|
+
'/yandex.cloud.video.v1.StylePresetService/Update',
|
|
59
|
+
request_serializer=yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__service__pb2.UpdateStylePresetRequest.SerializeToString,
|
|
60
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
61
|
+
_registered_method=True)
|
|
62
|
+
self.Delete = channel.unary_unary(
|
|
63
|
+
'/yandex.cloud.video.v1.StylePresetService/Delete',
|
|
64
|
+
request_serializer=yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__service__pb2.DeleteStylePresetRequest.SerializeToString,
|
|
65
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
66
|
+
_registered_method=True)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class StylePresetServiceServicer(object):
|
|
70
|
+
"""StylePreset management service.
|
|
71
|
+
Provides methods for creating, retrieving, updating, and deleting style presets,
|
|
72
|
+
which define the visual appearance and layout of video players and associated widgets.
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
def Get(self, request, context):
|
|
76
|
+
"""Retrieves detailed information about a specific style preset by its ID.
|
|
77
|
+
Returns all style preset properties, colors, layout settings, and widget configurations.
|
|
78
|
+
"""
|
|
79
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
80
|
+
context.set_details('Method not implemented!')
|
|
81
|
+
raise NotImplementedError('Method not implemented!')
|
|
82
|
+
|
|
83
|
+
def List(self, request, context):
|
|
84
|
+
"""Lists all style presets in a specific channel with pagination support.
|
|
85
|
+
Results can be filtered and sorted using the provided parameters.
|
|
86
|
+
"""
|
|
87
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
88
|
+
context.set_details('Method not implemented!')
|
|
89
|
+
raise NotImplementedError('Method not implemented!')
|
|
90
|
+
|
|
91
|
+
def Create(self, request, context):
|
|
92
|
+
"""Creates a new style preset in the specified channel with the provided visual settings.
|
|
93
|
+
Style presets define the appearance of players, including colors, spacing, borders, and widgets.
|
|
94
|
+
"""
|
|
95
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
96
|
+
context.set_details('Method not implemented!')
|
|
97
|
+
raise NotImplementedError('Method not implemented!')
|
|
98
|
+
|
|
99
|
+
def Update(self, request, context):
|
|
100
|
+
"""Updates an existing style preset's properties and visual settings.
|
|
101
|
+
Only fields specified in the field_mask will be updated.
|
|
102
|
+
"""
|
|
103
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
104
|
+
context.set_details('Method not implemented!')
|
|
105
|
+
raise NotImplementedError('Method not implemented!')
|
|
106
|
+
|
|
107
|
+
def Delete(self, request, context):
|
|
108
|
+
"""Deletes a specific style preset by its ID.
|
|
109
|
+
This operation will fail if the style preset is currently in use by any videos, streams, or playlists.
|
|
110
|
+
"""
|
|
111
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
112
|
+
context.set_details('Method not implemented!')
|
|
113
|
+
raise NotImplementedError('Method not implemented!')
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
def add_StylePresetServiceServicer_to_server(servicer, server):
|
|
117
|
+
rpc_method_handlers = {
|
|
118
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
119
|
+
servicer.Get,
|
|
120
|
+
request_deserializer=yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__service__pb2.GetStylePresetRequest.FromString,
|
|
121
|
+
response_serializer=yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__pb2.StylePreset.SerializeToString,
|
|
122
|
+
),
|
|
123
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
124
|
+
servicer.List,
|
|
125
|
+
request_deserializer=yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__service__pb2.ListStylePresetsRequest.FromString,
|
|
126
|
+
response_serializer=yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__service__pb2.ListStylePresetsResponse.SerializeToString,
|
|
127
|
+
),
|
|
128
|
+
'Create': grpc.unary_unary_rpc_method_handler(
|
|
129
|
+
servicer.Create,
|
|
130
|
+
request_deserializer=yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__service__pb2.CreateStylePresetRequest.FromString,
|
|
131
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
132
|
+
),
|
|
133
|
+
'Update': grpc.unary_unary_rpc_method_handler(
|
|
134
|
+
servicer.Update,
|
|
135
|
+
request_deserializer=yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__service__pb2.UpdateStylePresetRequest.FromString,
|
|
136
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
137
|
+
),
|
|
138
|
+
'Delete': grpc.unary_unary_rpc_method_handler(
|
|
139
|
+
servicer.Delete,
|
|
140
|
+
request_deserializer=yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__service__pb2.DeleteStylePresetRequest.FromString,
|
|
141
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
142
|
+
),
|
|
143
|
+
}
|
|
144
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
145
|
+
'yandex.cloud.video.v1.StylePresetService', rpc_method_handlers)
|
|
146
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
147
|
+
server.add_registered_method_handlers('yandex.cloud.video.v1.StylePresetService', rpc_method_handlers)
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
# This class is part of an EXPERIMENTAL API.
|
|
151
|
+
class StylePresetService(object):
|
|
152
|
+
"""StylePreset management service.
|
|
153
|
+
Provides methods for creating, retrieving, updating, and deleting style presets,
|
|
154
|
+
which define the visual appearance and layout of video players and associated widgets.
|
|
155
|
+
"""
|
|
156
|
+
|
|
157
|
+
@staticmethod
|
|
158
|
+
def Get(request,
|
|
159
|
+
target,
|
|
160
|
+
options=(),
|
|
161
|
+
channel_credentials=None,
|
|
162
|
+
call_credentials=None,
|
|
163
|
+
insecure=False,
|
|
164
|
+
compression=None,
|
|
165
|
+
wait_for_ready=None,
|
|
166
|
+
timeout=None,
|
|
167
|
+
metadata=None):
|
|
168
|
+
return grpc.experimental.unary_unary(
|
|
169
|
+
request,
|
|
170
|
+
target,
|
|
171
|
+
'/yandex.cloud.video.v1.StylePresetService/Get',
|
|
172
|
+
yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__service__pb2.GetStylePresetRequest.SerializeToString,
|
|
173
|
+
yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__pb2.StylePreset.FromString,
|
|
174
|
+
options,
|
|
175
|
+
channel_credentials,
|
|
176
|
+
insecure,
|
|
177
|
+
call_credentials,
|
|
178
|
+
compression,
|
|
179
|
+
wait_for_ready,
|
|
180
|
+
timeout,
|
|
181
|
+
metadata,
|
|
182
|
+
_registered_method=True)
|
|
183
|
+
|
|
184
|
+
@staticmethod
|
|
185
|
+
def List(request,
|
|
186
|
+
target,
|
|
187
|
+
options=(),
|
|
188
|
+
channel_credentials=None,
|
|
189
|
+
call_credentials=None,
|
|
190
|
+
insecure=False,
|
|
191
|
+
compression=None,
|
|
192
|
+
wait_for_ready=None,
|
|
193
|
+
timeout=None,
|
|
194
|
+
metadata=None):
|
|
195
|
+
return grpc.experimental.unary_unary(
|
|
196
|
+
request,
|
|
197
|
+
target,
|
|
198
|
+
'/yandex.cloud.video.v1.StylePresetService/List',
|
|
199
|
+
yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__service__pb2.ListStylePresetsRequest.SerializeToString,
|
|
200
|
+
yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__service__pb2.ListStylePresetsResponse.FromString,
|
|
201
|
+
options,
|
|
202
|
+
channel_credentials,
|
|
203
|
+
insecure,
|
|
204
|
+
call_credentials,
|
|
205
|
+
compression,
|
|
206
|
+
wait_for_ready,
|
|
207
|
+
timeout,
|
|
208
|
+
metadata,
|
|
209
|
+
_registered_method=True)
|
|
210
|
+
|
|
211
|
+
@staticmethod
|
|
212
|
+
def Create(request,
|
|
213
|
+
target,
|
|
214
|
+
options=(),
|
|
215
|
+
channel_credentials=None,
|
|
216
|
+
call_credentials=None,
|
|
217
|
+
insecure=False,
|
|
218
|
+
compression=None,
|
|
219
|
+
wait_for_ready=None,
|
|
220
|
+
timeout=None,
|
|
221
|
+
metadata=None):
|
|
222
|
+
return grpc.experimental.unary_unary(
|
|
223
|
+
request,
|
|
224
|
+
target,
|
|
225
|
+
'/yandex.cloud.video.v1.StylePresetService/Create',
|
|
226
|
+
yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__service__pb2.CreateStylePresetRequest.SerializeToString,
|
|
227
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
228
|
+
options,
|
|
229
|
+
channel_credentials,
|
|
230
|
+
insecure,
|
|
231
|
+
call_credentials,
|
|
232
|
+
compression,
|
|
233
|
+
wait_for_ready,
|
|
234
|
+
timeout,
|
|
235
|
+
metadata,
|
|
236
|
+
_registered_method=True)
|
|
237
|
+
|
|
238
|
+
@staticmethod
|
|
239
|
+
def Update(request,
|
|
240
|
+
target,
|
|
241
|
+
options=(),
|
|
242
|
+
channel_credentials=None,
|
|
243
|
+
call_credentials=None,
|
|
244
|
+
insecure=False,
|
|
245
|
+
compression=None,
|
|
246
|
+
wait_for_ready=None,
|
|
247
|
+
timeout=None,
|
|
248
|
+
metadata=None):
|
|
249
|
+
return grpc.experimental.unary_unary(
|
|
250
|
+
request,
|
|
251
|
+
target,
|
|
252
|
+
'/yandex.cloud.video.v1.StylePresetService/Update',
|
|
253
|
+
yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__service__pb2.UpdateStylePresetRequest.SerializeToString,
|
|
254
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
255
|
+
options,
|
|
256
|
+
channel_credentials,
|
|
257
|
+
insecure,
|
|
258
|
+
call_credentials,
|
|
259
|
+
compression,
|
|
260
|
+
wait_for_ready,
|
|
261
|
+
timeout,
|
|
262
|
+
metadata,
|
|
263
|
+
_registered_method=True)
|
|
264
|
+
|
|
265
|
+
@staticmethod
|
|
266
|
+
def Delete(request,
|
|
267
|
+
target,
|
|
268
|
+
options=(),
|
|
269
|
+
channel_credentials=None,
|
|
270
|
+
call_credentials=None,
|
|
271
|
+
insecure=False,
|
|
272
|
+
compression=None,
|
|
273
|
+
wait_for_ready=None,
|
|
274
|
+
timeout=None,
|
|
275
|
+
metadata=None):
|
|
276
|
+
return grpc.experimental.unary_unary(
|
|
277
|
+
request,
|
|
278
|
+
target,
|
|
279
|
+
'/yandex.cloud.video.v1.StylePresetService/Delete',
|
|
280
|
+
yandex_dot_cloud_dot_video_dot_v1_dot_style__preset__service__pb2.DeleteStylePresetRequest.SerializeToString,
|
|
281
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
282
|
+
options,
|
|
283
|
+
channel_credentials,
|
|
284
|
+
insecure,
|
|
285
|
+
call_credentials,
|
|
286
|
+
compression,
|
|
287
|
+
wait_for_ready,
|
|
288
|
+
timeout,
|
|
289
|
+
metadata,
|
|
290
|
+
_registered_method=True)
|
|
@@ -0,0 +1,171 @@
|
|
|
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.operation.operation_pb2
|
|
12
|
+
import yandex.cloud.video.v1.style_preset_pb2
|
|
13
|
+
import yandex.cloud.video.v1.style_preset_service_pb2
|
|
14
|
+
|
|
15
|
+
_T = typing.TypeVar("_T")
|
|
16
|
+
|
|
17
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
18
|
+
|
|
19
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
20
|
+
...
|
|
21
|
+
|
|
22
|
+
class StylePresetServiceStub:
|
|
23
|
+
"""StylePreset management service.
|
|
24
|
+
Provides methods for creating, retrieving, updating, and deleting style presets,
|
|
25
|
+
which define the visual appearance and layout of video players and associated widgets.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
29
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
30
|
+
yandex.cloud.video.v1.style_preset_service_pb2.GetStylePresetRequest,
|
|
31
|
+
yandex.cloud.video.v1.style_preset_pb2.StylePreset,
|
|
32
|
+
]
|
|
33
|
+
"""Retrieves detailed information about a specific style preset by its ID.
|
|
34
|
+
Returns all style preset properties, colors, layout settings, and widget configurations.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
38
|
+
yandex.cloud.video.v1.style_preset_service_pb2.ListStylePresetsRequest,
|
|
39
|
+
yandex.cloud.video.v1.style_preset_service_pb2.ListStylePresetsResponse,
|
|
40
|
+
]
|
|
41
|
+
"""Lists all style presets in a specific channel with pagination support.
|
|
42
|
+
Results can be filtered and sorted using the provided parameters.
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
Create: grpc.UnaryUnaryMultiCallable[
|
|
46
|
+
yandex.cloud.video.v1.style_preset_service_pb2.CreateStylePresetRequest,
|
|
47
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
48
|
+
]
|
|
49
|
+
"""Creates a new style preset in the specified channel with the provided visual settings.
|
|
50
|
+
Style presets define the appearance of players, including colors, spacing, borders, and widgets.
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
Update: grpc.UnaryUnaryMultiCallable[
|
|
54
|
+
yandex.cloud.video.v1.style_preset_service_pb2.UpdateStylePresetRequest,
|
|
55
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
56
|
+
]
|
|
57
|
+
"""Updates an existing style preset's properties and visual settings.
|
|
58
|
+
Only fields specified in the field_mask will be updated.
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
Delete: grpc.UnaryUnaryMultiCallable[
|
|
62
|
+
yandex.cloud.video.v1.style_preset_service_pb2.DeleteStylePresetRequest,
|
|
63
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
64
|
+
]
|
|
65
|
+
"""Deletes a specific style preset by its ID.
|
|
66
|
+
This operation will fail if the style preset is currently in use by any videos, streams, or playlists.
|
|
67
|
+
"""
|
|
68
|
+
|
|
69
|
+
class StylePresetServiceAsyncStub:
|
|
70
|
+
"""StylePreset management service.
|
|
71
|
+
Provides methods for creating, retrieving, updating, and deleting style presets,
|
|
72
|
+
which define the visual appearance and layout of video players and associated widgets.
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
76
|
+
yandex.cloud.video.v1.style_preset_service_pb2.GetStylePresetRequest,
|
|
77
|
+
yandex.cloud.video.v1.style_preset_pb2.StylePreset,
|
|
78
|
+
]
|
|
79
|
+
"""Retrieves detailed information about a specific style preset by its ID.
|
|
80
|
+
Returns all style preset properties, colors, layout settings, and widget configurations.
|
|
81
|
+
"""
|
|
82
|
+
|
|
83
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
84
|
+
yandex.cloud.video.v1.style_preset_service_pb2.ListStylePresetsRequest,
|
|
85
|
+
yandex.cloud.video.v1.style_preset_service_pb2.ListStylePresetsResponse,
|
|
86
|
+
]
|
|
87
|
+
"""Lists all style presets in a specific channel with pagination support.
|
|
88
|
+
Results can be filtered and sorted using the provided parameters.
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
Create: grpc.aio.UnaryUnaryMultiCallable[
|
|
92
|
+
yandex.cloud.video.v1.style_preset_service_pb2.CreateStylePresetRequest,
|
|
93
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
94
|
+
]
|
|
95
|
+
"""Creates a new style preset in the specified channel with the provided visual settings.
|
|
96
|
+
Style presets define the appearance of players, including colors, spacing, borders, and widgets.
|
|
97
|
+
"""
|
|
98
|
+
|
|
99
|
+
Update: grpc.aio.UnaryUnaryMultiCallable[
|
|
100
|
+
yandex.cloud.video.v1.style_preset_service_pb2.UpdateStylePresetRequest,
|
|
101
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
102
|
+
]
|
|
103
|
+
"""Updates an existing style preset's properties and visual settings.
|
|
104
|
+
Only fields specified in the field_mask will be updated.
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
108
|
+
yandex.cloud.video.v1.style_preset_service_pb2.DeleteStylePresetRequest,
|
|
109
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
110
|
+
]
|
|
111
|
+
"""Deletes a specific style preset by its ID.
|
|
112
|
+
This operation will fail if the style preset is currently in use by any videos, streams, or playlists.
|
|
113
|
+
"""
|
|
114
|
+
|
|
115
|
+
class StylePresetServiceServicer(metaclass=abc.ABCMeta):
|
|
116
|
+
"""StylePreset management service.
|
|
117
|
+
Provides methods for creating, retrieving, updating, and deleting style presets,
|
|
118
|
+
which define the visual appearance and layout of video players and associated widgets.
|
|
119
|
+
"""
|
|
120
|
+
|
|
121
|
+
@abc.abstractmethod
|
|
122
|
+
def Get(
|
|
123
|
+
self,
|
|
124
|
+
request: yandex.cloud.video.v1.style_preset_service_pb2.GetStylePresetRequest,
|
|
125
|
+
context: _ServicerContext,
|
|
126
|
+
) -> typing.Union[yandex.cloud.video.v1.style_preset_pb2.StylePreset, collections.abc.Awaitable[yandex.cloud.video.v1.style_preset_pb2.StylePreset]]:
|
|
127
|
+
"""Retrieves detailed information about a specific style preset by its ID.
|
|
128
|
+
Returns all style preset properties, colors, layout settings, and widget configurations.
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
@abc.abstractmethod
|
|
132
|
+
def List(
|
|
133
|
+
self,
|
|
134
|
+
request: yandex.cloud.video.v1.style_preset_service_pb2.ListStylePresetsRequest,
|
|
135
|
+
context: _ServicerContext,
|
|
136
|
+
) -> typing.Union[yandex.cloud.video.v1.style_preset_service_pb2.ListStylePresetsResponse, collections.abc.Awaitable[yandex.cloud.video.v1.style_preset_service_pb2.ListStylePresetsResponse]]:
|
|
137
|
+
"""Lists all style presets in a specific channel with pagination support.
|
|
138
|
+
Results can be filtered and sorted using the provided parameters.
|
|
139
|
+
"""
|
|
140
|
+
|
|
141
|
+
@abc.abstractmethod
|
|
142
|
+
def Create(
|
|
143
|
+
self,
|
|
144
|
+
request: yandex.cloud.video.v1.style_preset_service_pb2.CreateStylePresetRequest,
|
|
145
|
+
context: _ServicerContext,
|
|
146
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
147
|
+
"""Creates a new style preset in the specified channel with the provided visual settings.
|
|
148
|
+
Style presets define the appearance of players, including colors, spacing, borders, and widgets.
|
|
149
|
+
"""
|
|
150
|
+
|
|
151
|
+
@abc.abstractmethod
|
|
152
|
+
def Update(
|
|
153
|
+
self,
|
|
154
|
+
request: yandex.cloud.video.v1.style_preset_service_pb2.UpdateStylePresetRequest,
|
|
155
|
+
context: _ServicerContext,
|
|
156
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
157
|
+
"""Updates an existing style preset's properties and visual settings.
|
|
158
|
+
Only fields specified in the field_mask will be updated.
|
|
159
|
+
"""
|
|
160
|
+
|
|
161
|
+
@abc.abstractmethod
|
|
162
|
+
def Delete(
|
|
163
|
+
self,
|
|
164
|
+
request: yandex.cloud.video.v1.style_preset_service_pb2.DeleteStylePresetRequest,
|
|
165
|
+
context: _ServicerContext,
|
|
166
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
167
|
+
"""Deletes a specific style preset by its ID.
|
|
168
|
+
This operation will fail if the style preset is currently in use by any videos, streams, or playlists.
|
|
169
|
+
"""
|
|
170
|
+
|
|
171
|
+
def add_StylePresetServiceServicer_to_server(servicer: StylePresetServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -20,6 +20,11 @@ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
|
20
20
|
|
|
21
21
|
@typing.final
|
|
22
22
|
class Subtitle(google.protobuf.message.Message):
|
|
23
|
+
"""Entity representing a subtitle track that can be associated with a video.
|
|
24
|
+
Subtitles provide text versions of the audio content, enabling accessibility
|
|
25
|
+
and multilingual support for video content.
|
|
26
|
+
"""
|
|
27
|
+
|
|
23
28
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
24
29
|
|
|
25
30
|
class _SubtitleStatus:
|
|
@@ -29,19 +34,21 @@ class Subtitle(google.protobuf.message.Message):
|
|
|
29
34
|
class _SubtitleStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Subtitle._SubtitleStatus.ValueType], builtins.type):
|
|
30
35
|
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
31
36
|
SUBTITLE_STATUS_UNSPECIFIED: Subtitle._SubtitleStatus.ValueType # 0
|
|
32
|
-
"""
|
|
37
|
+
"""The subtitle status is not specified."""
|
|
33
38
|
WAIT_UPLOADING: Subtitle._SubtitleStatus.ValueType # 1
|
|
34
|
-
"""
|
|
39
|
+
"""The subtitle file upload is in progress, waiting for all bytes to be received."""
|
|
35
40
|
UPLOADED: Subtitle._SubtitleStatus.ValueType # 2
|
|
36
|
-
"""
|
|
41
|
+
"""The subtitle file has been fully uploaded and is ready for use."""
|
|
42
|
+
|
|
43
|
+
class SubtitleStatus(_SubtitleStatus, metaclass=_SubtitleStatusEnumTypeWrapper):
|
|
44
|
+
"""Current processing status of the subtitle."""
|
|
37
45
|
|
|
38
|
-
class SubtitleStatus(_SubtitleStatus, metaclass=_SubtitleStatusEnumTypeWrapper): ...
|
|
39
46
|
SUBTITLE_STATUS_UNSPECIFIED: Subtitle.SubtitleStatus.ValueType # 0
|
|
40
|
-
"""
|
|
47
|
+
"""The subtitle status is not specified."""
|
|
41
48
|
WAIT_UPLOADING: Subtitle.SubtitleStatus.ValueType # 1
|
|
42
|
-
"""
|
|
49
|
+
"""The subtitle file upload is in progress, waiting for all bytes to be received."""
|
|
43
50
|
UPLOADED: Subtitle.SubtitleStatus.ValueType # 2
|
|
44
|
-
"""
|
|
51
|
+
"""The subtitle file has been fully uploaded and is ready for use."""
|
|
45
52
|
|
|
46
53
|
class _SubtitleSourceType:
|
|
47
54
|
ValueType = typing.NewType("ValueType", builtins.int)
|
|
@@ -50,19 +57,21 @@ class Subtitle(google.protobuf.message.Message):
|
|
|
50
57
|
class _SubtitleSourceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Subtitle._SubtitleSourceType.ValueType], builtins.type):
|
|
51
58
|
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
52
59
|
SUBTITLE_SOURCE_TYPE_UNSPECIFIED: Subtitle._SubtitleSourceType.ValueType # 0
|
|
53
|
-
"""
|
|
60
|
+
"""The subtitle source type is not specified."""
|
|
54
61
|
MANUAL: Subtitle._SubtitleSourceType.ValueType # 1
|
|
55
|
-
"""
|
|
62
|
+
"""The subtitle was manually created and uploaded by a user."""
|
|
56
63
|
GENERATED: Subtitle._SubtitleSourceType.ValueType # 2
|
|
57
|
-
"""
|
|
64
|
+
"""The subtitle was automatically generated through speech recognition."""
|
|
65
|
+
|
|
66
|
+
class SubtitleSourceType(_SubtitleSourceType, metaclass=_SubtitleSourceTypeEnumTypeWrapper):
|
|
67
|
+
"""Source type representing how the subtitle was created or obtained."""
|
|
58
68
|
|
|
59
|
-
class SubtitleSourceType(_SubtitleSourceType, metaclass=_SubtitleSourceTypeEnumTypeWrapper): ...
|
|
60
69
|
SUBTITLE_SOURCE_TYPE_UNSPECIFIED: Subtitle.SubtitleSourceType.ValueType # 0
|
|
61
|
-
"""
|
|
70
|
+
"""The subtitle source type is not specified."""
|
|
62
71
|
MANUAL: Subtitle.SubtitleSourceType.ValueType # 1
|
|
63
|
-
"""
|
|
72
|
+
"""The subtitle was manually created and uploaded by a user."""
|
|
64
73
|
GENERATED: Subtitle.SubtitleSourceType.ValueType # 2
|
|
65
|
-
"""
|
|
74
|
+
"""The subtitle was automatically generated through speech recognition."""
|
|
66
75
|
|
|
67
76
|
ID_FIELD_NUMBER: builtins.int
|
|
68
77
|
LANGUAGE_FIELD_NUMBER: builtins.int
|
|
@@ -74,26 +83,26 @@ class Subtitle(google.protobuf.message.Message):
|
|
|
74
83
|
UPDATED_AT_FIELD_NUMBER: builtins.int
|
|
75
84
|
VIDEO_ID_FIELD_NUMBER: builtins.int
|
|
76
85
|
id: builtins.str
|
|
77
|
-
"""
|
|
86
|
+
"""Unique identifier of the subtitle track."""
|
|
78
87
|
language: builtins.str
|
|
79
|
-
"""
|
|
88
|
+
"""Language of the subtitle content according to ISO 639-2/T."""
|
|
80
89
|
label: builtins.str
|
|
81
|
-
"""
|
|
90
|
+
"""Display label for the subtitle track shown in the video player's subtitle selection menu."""
|
|
82
91
|
status: global___Subtitle.SubtitleStatus.ValueType
|
|
83
|
-
"""
|
|
92
|
+
"""Current processing status of the subtitle."""
|
|
84
93
|
source_type: global___Subtitle.SubtitleSourceType.ValueType
|
|
85
|
-
"""
|
|
94
|
+
"""Indicates how the subtitle was created or obtained."""
|
|
86
95
|
filename: builtins.str
|
|
87
|
-
"""
|
|
96
|
+
"""Original filename of the subtitle file."""
|
|
88
97
|
video_id: builtins.str
|
|
89
|
-
"""
|
|
98
|
+
"""Identifier of the video this subtitle belongs to."""
|
|
90
99
|
@property
|
|
91
100
|
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
92
|
-
"""
|
|
101
|
+
"""Timestamp when the subtitle was initially created in the system."""
|
|
93
102
|
|
|
94
103
|
@property
|
|
95
104
|
def updated_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
96
|
-
"""
|
|
105
|
+
"""Timestamp of the last modification to the subtitle or its metadata."""
|
|
97
106
|
|
|
98
107
|
def __init__(
|
|
99
108
|
self,
|
|
@@ -29,7 +29,7 @@ from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
|
29
29
|
from yandex.cloud.video.v1 import subtitle_pb2 as yandex_dot_cloud_dot_video_dot_v1_dot_subtitle__pb2
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/video/v1/subtitle_service.proto\x12\x15yandex.cloud.video.v1\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\x1a$yandex/cloud/video/v1/subtitle.proto\"7\n\x12GetSubtitleRequest\x12!\n\x0bsubtitle_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"\x94\x01\n\x14ListSubtitlesRequest\x12\x1c\n\tpage_size\x18\x64 \x01(\x03\x42\t\xfa\xc7\x31\x05<=100\x12\x1f\n\npage_token\x18\x65 \x01(\tB\x0b\x8a\xc8\x31\x07<=15000\x12\x1d\n\x08video_id\x18\xe8\x07 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x42\x11\n\tparent_id\x12\x04\xc0\xc1\x31\x01J\x04\x08\x01\x10\x64J\x05\x08\x66\x10\xe8\x07\"j\n\x15ListSubtitlesResponse\x12\x32\n\tsubtitles\x18\x01 \x03(\x0b\x32\x1f.yandex.cloud.video.v1.Subtitle\x12\x17\n\x0fnext_page_token\x18\x64 \x01(\tJ\x04\x08\x02\x10\x64\"\
|
|
32
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/video/v1/subtitle_service.proto\x12\x15yandex.cloud.video.v1\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\x1a$yandex/cloud/video/v1/subtitle.proto\"7\n\x12GetSubtitleRequest\x12!\n\x0bsubtitle_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"\x94\x01\n\x14ListSubtitlesRequest\x12\x1c\n\tpage_size\x18\x64 \x01(\x03\x42\t\xfa\xc7\x31\x05<=100\x12\x1f\n\npage_token\x18\x65 \x01(\tB\x0b\x8a\xc8\x31\x07<=15000\x12\x1d\n\x08video_id\x18\xe8\x07 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x42\x11\n\tparent_id\x12\x04\xc0\xc1\x31\x01J\x04\x08\x01\x10\x64J\x05\x08\x66\x10\xe8\x07\"j\n\x15ListSubtitlesResponse\x12\x32\n\tsubtitles\x18\x01 \x03(\x0b\x32\x1f.yandex.cloud.video.v1.Subtitle\x12\x17\n\x0fnext_page_token\x18\x64 \x01(\tJ\x04\x08\x02\x10\x64\"\x91\x02\n\x15\x43reateSubtitleRequest\x12N\n\x08language\x18\x01 \x01(\tB<\xf2\xc7\x31\x33\x61ra|deu|eng|fra|ita|jpn|kaz|kor|rus|spa|tur|ukr|zho\x8a\xc8\x31\x01\x33\x12\x17\n\x05label\x18\x02 \x01(\tB\x08\x8a\xc8\x31\x04<=50\x12\x1d\n\x08video_id\x18\xe8\x07 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12>\n\x06upload\x18\xcc\x08 \x01(\x0b\x32+.yandex.cloud.video.v1.SubtitleUploadParamsH\x01\x42\x11\n\tparent_id\x12\x04\xc0\xc1\x31\x01\x42\x0e\n\x06source\x12\x04\xc0\xc1\x31\x01J\x05\x08\x03\x10\xe8\x07J\x06\x08\xe9\x07\x10\xcc\x08\".\n\x14SubtitleUploadParams\x12\x16\n\x08\x66ilename\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"-\n\x16\x43reateSubtitleMetadata\x12\x13\n\x0bsubtitle_id\x18\x01 \x01(\t\"E\n GenerateSubtitleUploadURLRequest\x12!\n\x0bsubtitle_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"7\n!GenerateSubtitleUploadURLResponse\x12\x12\n\nupload_url\x18\x01 \x01(\t\":\n\x15\x44\x65leteSubtitleRequest\x12!\n\x0bsubtitle_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"-\n\x16\x44\x65leteSubtitleMetadata\x12\x13\n\x0bsubtitle_id\x18\x01 \x01(\t2\xb1\x06\n\x0fSubtitleService\x12|\n\x03Get\x12).yandex.cloud.video.v1.GetSubtitleRequest\x1a\x1f.yandex.cloud.video.v1.Subtitle\")\x82\xd3\xe4\x93\x02#\x12!/video/v1/subtitles/{subtitle_id}\x12~\n\x04List\x12+.yandex.cloud.video.v1.ListSubtitlesRequest\x1a,.yandex.cloud.video.v1.ListSubtitlesResponse\"\x1b\x82\xd3\xe4\x93\x02\x15\x12\x13/video/v1/subtitles\x12\x9f\x01\n\x06\x43reate\x12,.yandex.cloud.video.v1.CreateSubtitleRequest\x1a!.yandex.cloud.operation.Operation\"D\xb2\xd2*\"\n\x16\x43reateSubtitleMetadata\x12\x08Subtitle\x82\xd3\xe4\x93\x02\x18\"\x13/video/v1/subtitles:\x01*\x12\xc3\x01\n\x11GenerateUploadURL\x12\x37.yandex.cloud.video.v1.GenerateSubtitleUploadURLRequest\x1a\x38.yandex.cloud.video.v1.GenerateSubtitleUploadURLResponse\";\x82\xd3\xe4\x93\x02\x35\x12\x33/video/v1/subtitles/{subtitle_id}:generateUploadURL\x12\xb7\x01\n\x06\x44\x65lete\x12,.yandex.cloud.video.v1.DeleteSubtitleRequest\x1a!.yandex.cloud.operation.Operation\"\\\xb2\xd2*/\n\x16\x44\x65leteSubtitleMetadata\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02#*!/video/v1/subtitles/{subtitle_id}B\\\n\x19yandex.cloud.api.video.v1Z?github.com/yandex-cloud/go-genproto/yandex/cloud/video/v1;videob\x06proto3')
|
|
33
33
|
|
|
34
34
|
_globals = globals()
|
|
35
35
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -52,7 +52,7 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
52
52
|
_globals['_CREATESUBTITLEREQUEST'].oneofs_by_name['source']._loaded_options = None
|
|
53
53
|
_globals['_CREATESUBTITLEREQUEST'].oneofs_by_name['source']._serialized_options = b'\300\3011\001'
|
|
54
54
|
_globals['_CREATESUBTITLEREQUEST'].fields_by_name['language']._loaded_options = None
|
|
55
|
-
_globals['_CREATESUBTITLEREQUEST'].fields_by_name['language']._serialized_options = b'\362\
|
|
55
|
+
_globals['_CREATESUBTITLEREQUEST'].fields_by_name['language']._serialized_options = b'\362\30713ara|deu|eng|fra|ita|jpn|kaz|kor|rus|spa|tur|ukr|zho\212\3101\0013'
|
|
56
56
|
_globals['_CREATESUBTITLEREQUEST'].fields_by_name['label']._loaded_options = None
|
|
57
57
|
_globals['_CREATESUBTITLEREQUEST'].fields_by_name['label']._serialized_options = b'\212\3101\004<=50'
|
|
58
58
|
_globals['_CREATESUBTITLEREQUEST'].fields_by_name['video_id']._loaded_options = None
|
|
@@ -80,19 +80,19 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
80
80
|
_globals['_LISTSUBTITLESRESPONSE']._serialized_start=452
|
|
81
81
|
_globals['_LISTSUBTITLESRESPONSE']._serialized_end=558
|
|
82
82
|
_globals['_CREATESUBTITLEREQUEST']._serialized_start=561
|
|
83
|
-
_globals['_CREATESUBTITLEREQUEST']._serialized_end=
|
|
84
|
-
_globals['_SUBTITLEUPLOADPARAMS']._serialized_start=
|
|
85
|
-
_globals['_SUBTITLEUPLOADPARAMS']._serialized_end=
|
|
86
|
-
_globals['_CREATESUBTITLEMETADATA']._serialized_start=
|
|
87
|
-
_globals['_CREATESUBTITLEMETADATA']._serialized_end=
|
|
88
|
-
_globals['_GENERATESUBTITLEUPLOADURLREQUEST']._serialized_start=
|
|
89
|
-
_globals['_GENERATESUBTITLEUPLOADURLREQUEST']._serialized_end=
|
|
90
|
-
_globals['_GENERATESUBTITLEUPLOADURLRESPONSE']._serialized_start=
|
|
91
|
-
_globals['_GENERATESUBTITLEUPLOADURLRESPONSE']._serialized_end=
|
|
92
|
-
_globals['_DELETESUBTITLEREQUEST']._serialized_start=
|
|
93
|
-
_globals['_DELETESUBTITLEREQUEST']._serialized_end=
|
|
94
|
-
_globals['_DELETESUBTITLEMETADATA']._serialized_start=
|
|
95
|
-
_globals['_DELETESUBTITLEMETADATA']._serialized_end=
|
|
96
|
-
_globals['_SUBTITLESERVICE']._serialized_start=
|
|
97
|
-
_globals['_SUBTITLESERVICE']._serialized_end=
|
|
83
|
+
_globals['_CREATESUBTITLEREQUEST']._serialized_end=834
|
|
84
|
+
_globals['_SUBTITLEUPLOADPARAMS']._serialized_start=836
|
|
85
|
+
_globals['_SUBTITLEUPLOADPARAMS']._serialized_end=882
|
|
86
|
+
_globals['_CREATESUBTITLEMETADATA']._serialized_start=884
|
|
87
|
+
_globals['_CREATESUBTITLEMETADATA']._serialized_end=929
|
|
88
|
+
_globals['_GENERATESUBTITLEUPLOADURLREQUEST']._serialized_start=931
|
|
89
|
+
_globals['_GENERATESUBTITLEUPLOADURLREQUEST']._serialized_end=1000
|
|
90
|
+
_globals['_GENERATESUBTITLEUPLOADURLRESPONSE']._serialized_start=1002
|
|
91
|
+
_globals['_GENERATESUBTITLEUPLOADURLRESPONSE']._serialized_end=1057
|
|
92
|
+
_globals['_DELETESUBTITLEREQUEST']._serialized_start=1059
|
|
93
|
+
_globals['_DELETESUBTITLEREQUEST']._serialized_end=1117
|
|
94
|
+
_globals['_DELETESUBTITLEMETADATA']._serialized_start=1119
|
|
95
|
+
_globals['_DELETESUBTITLEMETADATA']._serialized_end=1164
|
|
96
|
+
_globals['_SUBTITLESERVICE']._serialized_start=1167
|
|
97
|
+
_globals['_SUBTITLESERVICE']._serialized_end=1984
|
|
98
98
|
# @@protoc_insertion_point(module_scope)
|