Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Commit a0d7927

Browse files
feat: add support for user labels for job and job template (#203)
* feat: add support for user labels for job and job template PiperOrigin-RevId: 455298767 Source-Link: googleapis/googleapis@a9969d3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/63c22c65700434a9dac45dbb4958954696755d07 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNjMjJjNjU3MDA0MzRhOWRhYzQ1ZGJiNDk1ODk1NDY5Njc1NWQwNyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 189914b commit a0d7927

File tree

1 file changed

+50
-10
lines changed

1 file changed

+50
-10
lines changed

google/cloud/video/transcoder_v1/types/resources.py

Lines changed: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,16 @@ class Job(proto.Message):
6363
``JobTemplate.config.inputs`` when using template. URI of
6464
the media. Input files must be at least 5 seconds in
6565
duration and stored in Cloud Storage (for example,
66-
``gs://bucket/inputs/file.mp4``).
66+
``gs://bucket/inputs/file.mp4``). See `Supported input and
67+
output
68+
formats <https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats>`__.
6769
output_uri (str):
6870
Input only. Specify the ``output_uri`` to populate an empty
6971
``Job.config.output.uri`` or
7072
``JobTemplate.config.output.uri`` when using template. URI
7173
for the output file(s). For example,
72-
``gs://my-bucket/outputs/``.
74+
``gs://my-bucket/outputs/``. See `Supported input and output
75+
formats <https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats>`__.
7376
template_id (str):
7477
Input only. Specify the ``template_id`` to use for
7578
populating ``Job.config``. The default is ``preset/web-hd``.
@@ -100,6 +103,9 @@ class Job(proto.Message):
100103
effective after job completion. Job should be
101104
deleted automatically after the given TTL. Enter
102105
a value between 1 and 90. The default is 30.
106+
labels (Mapping[str, str]):
107+
The labels associated with this job. You can
108+
use these to organize and group your jobs.
103109
error (google.rpc.status_pb2.Status):
104110
Output only. An error object that describes the reason for
105111
the failure. This property is always present when ``state``
@@ -161,6 +167,11 @@ class ProcessingState(proto.Enum):
161167
proto.INT32,
162168
number=15,
163169
)
170+
labels = proto.MapField(
171+
proto.STRING,
172+
proto.STRING,
173+
number=16,
174+
)
164175
error = proto.Field(
165176
proto.MESSAGE,
166177
number=17,
@@ -177,6 +188,10 @@ class JobTemplate(proto.Message):
177188
``projects/{project_number}/locations/{location}/jobTemplates/{job_template}``
178189
config (google.cloud.video.transcoder_v1.types.JobConfig):
179190
The configuration for this template.
191+
labels (Mapping[str, str]):
192+
The labels associated with this job template.
193+
You can use these to organize and group your job
194+
templates.
180195
"""
181196

182197
name = proto.Field(
@@ -188,6 +203,11 @@ class JobTemplate(proto.Message):
188203
number=2,
189204
message="JobConfig",
190205
)
206+
labels = proto.MapField(
207+
proto.STRING,
208+
proto.STRING,
209+
number=3,
210+
)
191211

192212

193213
class JobConfig(proto.Message):
@@ -215,6 +235,8 @@ class JobConfig(proto.Message):
215235
Destination on Pub/Sub.
216236
sprite_sheets (Sequence[google.cloud.video.transcoder_v1.types.SpriteSheet]):
217237
List of output sprite sheets.
238+
Spritesheets require at least one VideoStream in
239+
the Jobconfig.
218240
overlays (Sequence[google.cloud.video.transcoder_v1.types.Overlay]):
219241
List of overlays on the output video, in
220242
descending Z-order.
@@ -283,8 +305,10 @@ class Input(proto.Message):
283305
uri (str):
284306
URI of the media. Input files must be at least 5 seconds in
285307
duration and stored in Cloud Storage (for example,
286-
``gs://bucket/inputs/file.mp4``). If empty, the value will
287-
be populated from ``Job.input_uri``.
308+
``gs://bucket/inputs/file.mp4``). If empty, the value is
309+
populated from ``Job.input_uri``. See `Supported input and
310+
output
311+
formats <https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats>`__.
288312
preprocessing_config (google.cloud.video.transcoder_v1.types.PreprocessingConfig):
289313
Preprocessing configurations.
290314
"""
@@ -310,8 +334,10 @@ class Output(proto.Message):
310334
Attributes:
311335
uri (str):
312336
URI for the output file(s). For example,
313-
``gs://my-bucket/outputs/``. If empty the value is populated
314-
from ``Job.output_uri``.
337+
``gs://my-bucket/outputs/``. If empty, the value is
338+
populated from ``Job.output_uri``. See `Supported input and
339+
output
340+
formats <https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats>`__.
315341
"""
316342

317343
uri = proto.Field(
@@ -455,6 +481,9 @@ class MuxStream(proto.Message):
455481
- ``fmp4``- the corresponding file extension is ``.m4s``
456482
- ``mp4``
457483
- ``vtt``
484+
485+
See also: `Supported input and output
486+
formats <https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats>`__
458487
elementary_streams (Sequence[str]):
459488
List of ``ElementaryStream.key``\ s multiplexed in this
460489
stream.
@@ -902,6 +931,8 @@ class PreprocessingConfig(proto.Message):
902931
class Color(proto.Message):
903932
r"""Color preprocessing configuration.
904933
934+
**Note:** This configuration is not supported.
935+
905936
Attributes:
906937
saturation (float):
907938
Control color saturation of the video. Enter
@@ -936,6 +967,8 @@ class Color(proto.Message):
936967
class Denoise(proto.Message):
937968
r"""Denoise preprocessing configuration.
938969
970+
**Note:** This configuration is not supported.
971+
939972
Attributes:
940973
strength (float):
941974
Set strength of the denoise. Enter a value
@@ -963,6 +996,8 @@ class Denoise(proto.Message):
963996
class Deblock(proto.Message):
964997
r"""Deblock preprocessing configuration.
965998
999+
**Note:** This configuration is not supported.
1000+
9661001
Attributes:
9671002
strength (float):
9681003
Set strength of the deblocker. Enter a value
@@ -1003,9 +1038,13 @@ class Audio(proto.Message):
10031038
high_boost (bool):
10041039
Enable boosting high frequency components. The default is
10051040
``false``.
1041+
1042+
**Note:** This field is not supported.
10061043
low_boost (bool):
10071044
Enable boosting low frequency components. The default is
10081045
``false``.
1046+
1047+
**Note:** This field is not supported.
10091048
"""
10101049

10111050
lufs = proto.Field(
@@ -1658,11 +1697,12 @@ class Vp9CodecSettings(proto.Message):
16581697
Supported rate control modes:
16591698
16601699
- ``vbr`` - variable bitrate
1661-
- ``crf`` - constant rate factor
16621700
crf_level (int):
1663-
Target CRF level. Must be between 10 and 36,
1664-
where 10 is the highest quality and 36 is the
1665-
most efficient compression. The default is 21.
1701+
Target CRF level. Must be between 10 and 36, where 10 is the
1702+
highest quality and 36 is the most efficient compression.
1703+
The default is 21.
1704+
1705+
**Note:** This field is not supported.
16661706
gop_frame_count (int):
16671707
Select the GOP size based on the specified
16681708
frame count. Must be greater than zero.

0 commit comments

Comments
 (0)