google-cloud-video-transcoder-v1 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b16ab3ff17635cab535486041685b06d00f71ef581871e21873775ff8303d79a
4
- data.tar.gz: ea45cf851d7434b8887dbc2d2d34148fa812439eff5f1ccaee833cf90024e35a
3
+ metadata.gz: 6c1a8217f18c0b59be327c9a6629205aa35e13b45db02528c7c1034560841fda
4
+ data.tar.gz: 5b4165b7372641e647b527e6591b05ad1750313006be9663786c32455eaa6c0b
5
5
  SHA512:
6
- metadata.gz: 1bbaa45e9ca21ea47064a3532e6c35fc61df6a03a11e5f664b866ae274db26b23d32e415231b0ab3fdc74e6f342c729f53946db3ab741ccd85785bd532bfeceb
7
- data.tar.gz: fb2793a804b2d8debed2ebf3460f5461edfc9af1e66401d94f968d4d6e5681df6c5ed374dad2072feeb07b6bfb45a94e66be8d713de3d55864fa62d5e7690426
6
+ metadata.gz: 927ea1ca217a2a2c48715b2468b58bdf093dbaa28b07238e35e6a35c29588e81a54efd9da8c90de64206814a71114b170193d6e3090558d4e042717f30cff00b
7
+ data.tar.gz: a52906efefa5eea0128a5fde060aeab192040b062b88231e80499248f1b16c5326a2154c447fcc71e1cfb8776caa307f493ec58319825493c74bb3284ca27175
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Transcoder V1 API
2
2
 
3
- API Client library for the Transcoder V1 API
3
+ This API converts video files into formats suitable for consumer distribution. For more information, see the <a href="https://cloud.google.com/transcoder/docs/concepts/overview">Transcoder API overview</a>.
4
4
 
5
5
  The Transcoder API allows you to convert video files and package them for optimized delivery to web, mobile and connected TVs.
6
6
 
@@ -280,6 +280,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
280
280
  repeated :channel_layout, :string, 4
281
281
  repeated :mapping, :message, 5, "google.cloud.video.transcoder.v1.AudioStream.AudioMapping"
282
282
  optional :sample_rate_hertz, :int32, 6
283
+ optional :language_code, :string, 7
284
+ optional :display_name, :string, 8
283
285
  end
284
286
  add_message "google.cloud.video.transcoder.v1.AudioStream.AudioMapping" do
285
287
  optional :atom_key, :string, 1
@@ -291,7 +293,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
291
293
  end
292
294
  add_message "google.cloud.video.transcoder.v1.TextStream" do
293
295
  optional :codec, :string, 1
296
+ optional :language_code, :string, 2
294
297
  repeated :mapping, :message, 3, "google.cloud.video.transcoder.v1.TextStream.TextMapping"
298
+ optional :display_name, :string, 4
295
299
  end
296
300
  add_message "google.cloud.video.transcoder.v1.TextStream.TextMapping" do
297
301
  optional :atom_key, :string, 1
@@ -311,13 +311,11 @@ module Google
311
311
  # # Call the list_jobs method.
312
312
  # result = client.list_jobs request
313
313
  #
314
- # # The returned object is of type Gapic::PagedEnumerable. You can
315
- # # iterate over all elements by calling #each, and the enumerable
316
- # # will lazily make API calls to fetch subsequent pages. Other
317
- # # methods are also available for managing paging directly.
318
- # result.each do |response|
314
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
315
+ # # over elements, and API calls will be issued to fetch pages as needed.
316
+ # result.each do |item|
319
317
  # # Each element is of type ::Google::Cloud::Video::Transcoder::V1::Job.
320
- # p response
318
+ # p item
321
319
  # end
322
320
  #
323
321
  def list_jobs request, options = nil
@@ -561,8 +559,8 @@ module Google
561
559
  # @param job_template [::Google::Cloud::Video::Transcoder::V1::JobTemplate, ::Hash]
562
560
  # Required. Parameters for creating job template.
563
561
  # @param job_template_id [::String]
564
- # Required. The ID to use for the job template, which will become the final component
565
- # of the job template's resource name.
562
+ # Required. The ID to use for the job template, which will become the final
563
+ # component of the job template's resource name.
566
564
  #
567
565
  # This value should be 4-63 characters, and valid characters must match the
568
566
  # regular expression `[a-zA-Z][a-zA-Z0-9_-]*`.
@@ -650,8 +648,8 @@ module Google
650
648
  # the default parameter values, pass an empty Hash as a request object (see above).
651
649
  #
652
650
  # @param parent [::String]
653
- # Required. The parent location from which to retrieve the collection of job templates.
654
- # Format: `projects/{project}/locations/{location}`
651
+ # Required. The parent location from which to retrieve the collection of job
652
+ # templates. Format: `projects/{project}/locations/{location}`
655
653
  # @param page_size [::Integer]
656
654
  # The maximum number of items to return.
657
655
  # @param page_token [::String]
@@ -684,13 +682,11 @@ module Google
684
682
  # # Call the list_job_templates method.
685
683
  # result = client.list_job_templates request
686
684
  #
687
- # # The returned object is of type Gapic::PagedEnumerable. You can
688
- # # iterate over all elements by calling #each, and the enumerable
689
- # # will lazily make API calls to fetch subsequent pages. Other
690
- # # methods are also available for managing paging directly.
691
- # result.each do |response|
685
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
686
+ # # over elements, and API calls will be issued to fetch pages as needed.
687
+ # result.each do |item|
692
688
  # # Each element is of type ::Google::Cloud::Video::Transcoder::V1::JobTemplate.
693
- # p response
689
+ # p item
694
690
  # end
695
691
  #
696
692
  def list_job_templates request, options = nil
@@ -39,7 +39,7 @@ module Google
39
39
  # features such as Digital Rights Management (DRM), audio equalization, content
40
40
  # concatenation, and digital ad-stitch ready content generation.
41
41
  #
42
- # To load this service and instantiate a client:
42
+ # @example Load this service and instantiate a gRPC client
43
43
  #
44
44
  # require "google/cloud/video/transcoder/v1/transcoder_service"
45
45
  # client = ::Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
@@ -22,7 +22,7 @@ module Google
22
22
  module Video
23
23
  module Transcoder
24
24
  module V1
25
- VERSION = "0.5.0"
25
+ VERSION = "0.6.0"
26
26
  end
27
27
  end
28
28
  end
@@ -24,9 +24,9 @@ module Google
24
24
  module Video
25
25
  module Transcoder
26
26
  ##
27
- # To load this package, including all its services, and instantiate a client:
27
+ # API client module.
28
28
  #
29
- # @example
29
+ # @example Load this package, including all its services, and instantiate a gRPC client
30
30
  #
31
31
  # require "google/cloud/video/transcoder/v1"
32
32
  # client = ::Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
@@ -29,23 +29,23 @@ module Google
29
29
  # Format: `projects/{project_number}/locations/{location}/jobs/{job}`
30
30
  # @!attribute [rw] input_uri
31
31
  # @return [::String]
32
- # Input only. Specify the `input_uri` to populate empty `uri` fields in each element of
33
- # `Job.config.inputs` or `JobTemplate.config.inputs` when using template.
34
- # URI of the media. Input files must be at least 5 seconds in duration and
35
- # stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`). See
36
- # [Supported input and output
32
+ # Input only. Specify the `input_uri` to populate empty `uri` fields in each
33
+ # element of `Job.config.inputs` or `JobTemplate.config.inputs` when using
34
+ # template. URI of the media. Input files must be at least 5 seconds in
35
+ # duration and stored in Cloud Storage (for example,
36
+ # `gs://bucket/inputs/file.mp4`). See [Supported input and output
37
37
  # formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
38
38
  # @!attribute [rw] output_uri
39
39
  # @return [::String]
40
- # Input only. Specify the `output_uri` to populate an empty `Job.config.output.uri` or
41
- # `JobTemplate.config.output.uri` when using template.
42
- # URI for the output file(s). For example, `gs://my-bucket/outputs/`. See
43
- # [Supported input and output
40
+ # Input only. Specify the `output_uri` to populate an empty
41
+ # `Job.config.output.uri` or `JobTemplate.config.output.uri` when using
42
+ # template. URI for the output file(s). For example,
43
+ # `gs://my-bucket/outputs/`. See [Supported input and output
44
44
  # formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
45
45
  # @!attribute [rw] template_id
46
46
  # @return [::String]
47
- # Input only. Specify the `template_id` to use for populating `Job.config`. The default
48
- # is `preset/web-hd`.
47
+ # Input only. Specify the `template_id` to use for populating `Job.config`.
48
+ # The default is `preset/web-hd`.
49
49
  #
50
50
  # Preset Transcoder templates:
51
51
  # - `preset/{preset_id}`
@@ -311,7 +311,8 @@ module Google
311
311
  # Required. Type of the manifest, can be `HLS` or `DASH`.
312
312
  # @!attribute [rw] mux_streams
313
313
  # @return [::Array<::String>]
314
- # Required. List of user given `MuxStream.key`s that should appear in this manifest.
314
+ # Required. List of user given `MuxStream.key`s that should appear in this
315
+ # manifest.
315
316
  #
316
317
  # When `Manifest.type` is `HLS`, a media manifest with name `MuxStream.key`
317
318
  # and `.m3u8` extension is generated for each element of the
@@ -359,10 +360,13 @@ module Google
359
360
  # from 0 before the extension, such as `sprite_sheet0000000123.jpeg`.
360
361
  # @!attribute [rw] sprite_width_pixels
361
362
  # @return [::Integer]
362
- # Required. The width of sprite in pixels. Must be an even integer. To preserve the
363
- # source aspect ratio, set the {::Google::Cloud::Video::Transcoder::V1::SpriteSheet#sprite_width_pixels SpriteSheet.sprite_width_pixels} field or
364
- # the {::Google::Cloud::Video::Transcoder::V1::SpriteSheet#sprite_height_pixels SpriteSheet.sprite_height_pixels} field, but not both (the API will
365
- # automatically calculate the missing field).
363
+ # Required. The width of sprite in pixels. Must be an even integer. To
364
+ # preserve the source aspect ratio, set the
365
+ # {::Google::Cloud::Video::Transcoder::V1::SpriteSheet#sprite_width_pixels SpriteSheet.sprite_width_pixels}
366
+ # field or the
367
+ # {::Google::Cloud::Video::Transcoder::V1::SpriteSheet#sprite_height_pixels SpriteSheet.sprite_height_pixels}
368
+ # field, but not both (the API will automatically calculate the missing
369
+ # field).
366
370
  #
367
371
  # For portrait videos that contain horizontal ASR and rotation metadata,
368
372
  # provide the width, in pixels, per the horizontal ASR. The API calculates
@@ -370,10 +374,13 @@ module Google
370
374
  # and swaps the requested height and width for the output.
371
375
  # @!attribute [rw] sprite_height_pixels
372
376
  # @return [::Integer]
373
- # Required. The height of sprite in pixels. Must be an even integer. To preserve the
374
- # source aspect ratio, set the {::Google::Cloud::Video::Transcoder::V1::SpriteSheet#sprite_height_pixels SpriteSheet.sprite_height_pixels} field or
375
- # the {::Google::Cloud::Video::Transcoder::V1::SpriteSheet#sprite_width_pixels SpriteSheet.sprite_width_pixels} field, but not both (the API will
376
- # automatically calculate the missing field).
377
+ # Required. The height of sprite in pixels. Must be an even integer. To
378
+ # preserve the source aspect ratio, set the
379
+ # {::Google::Cloud::Video::Transcoder::V1::SpriteSheet#sprite_height_pixels SpriteSheet.sprite_height_pixels}
380
+ # field or the
381
+ # {::Google::Cloud::Video::Transcoder::V1::SpriteSheet#sprite_width_pixels SpriteSheet.sprite_width_pixels}
382
+ # field, but not both (the API will automatically calculate the missing
383
+ # field).
377
384
  #
378
385
  # For portrait videos that contain horizontal ASR and rotation metadata,
379
386
  # provide the height, in pixels, per the horizontal ASR. The API calculates
@@ -799,17 +806,17 @@ module Google
799
806
  # and swaps the requested height and width for the output.
800
807
  # @!attribute [rw] frame_rate
801
808
  # @return [::Float]
802
- # Required. The target video frame rate in frames per second (FPS). Must be less than
803
- # or equal to 120. Will default to the input frame rate if larger than the
804
- # input frame rate. The API will generate an output FPS that is divisible
805
- # by the input FPS, and smaller or equal to the target FPS. See
809
+ # Required. The target video frame rate in frames per second (FPS). Must be
810
+ # less than or equal to 120. Will default to the input frame rate if larger
811
+ # than the input frame rate. The API will generate an output FPS that is
812
+ # divisible by the input FPS, and smaller or equal to the target FPS. See
806
813
  # [Calculating frame
807
814
  # rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for
808
815
  # more information.
809
816
  # @!attribute [rw] bitrate_bps
810
817
  # @return [::Integer]
811
- # Required. The video bitrate in bits per second. The minimum value is 1,000.
812
- # The maximum value is 800,000,000.
818
+ # Required. The video bitrate in bits per second. The minimum value is
819
+ # 1,000. The maximum value is 800,000,000.
813
820
  # @!attribute [rw] pixel_format
814
821
  # @return [::String]
815
822
  # Pixel format to use. The default is `yuv420p`.
@@ -944,17 +951,17 @@ module Google
944
951
  # and swaps the requested height and width for the output.
945
952
  # @!attribute [rw] frame_rate
946
953
  # @return [::Float]
947
- # Required. The target video frame rate in frames per second (FPS). Must be less than
948
- # or equal to 120. Will default to the input frame rate if larger than the
949
- # input frame rate. The API will generate an output FPS that is divisible
950
- # by the input FPS, and smaller or equal to the target FPS. See
954
+ # Required. The target video frame rate in frames per second (FPS). Must be
955
+ # less than or equal to 120. Will default to the input frame rate if larger
956
+ # than the input frame rate. The API will generate an output FPS that is
957
+ # divisible by the input FPS, and smaller or equal to the target FPS. See
951
958
  # [Calculating frame
952
959
  # rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for
953
960
  # more information.
954
961
  # @!attribute [rw] bitrate_bps
955
962
  # @return [::Integer]
956
- # Required. The video bitrate in bits per second. The minimum value is 1,000.
957
- # The maximum value is 800,000,000.
963
+ # Required. The video bitrate in bits per second. The minimum value is
964
+ # 1,000. The maximum value is 800,000,000.
958
965
  # @!attribute [rw] pixel_format
959
966
  # @return [::String]
960
967
  # Pixel format to use. The default is `yuv420p`.
@@ -1096,17 +1103,17 @@ module Google
1096
1103
  # and swaps the requested height and width for the output.
1097
1104
  # @!attribute [rw] frame_rate
1098
1105
  # @return [::Float]
1099
- # Required. The target video frame rate in frames per second (FPS). Must be less than
1100
- # or equal to 120. Will default to the input frame rate if larger than the
1101
- # input frame rate. The API will generate an output FPS that is divisible
1102
- # by the input FPS, and smaller or equal to the target FPS. See
1106
+ # Required. The target video frame rate in frames per second (FPS). Must be
1107
+ # less than or equal to 120. Will default to the input frame rate if larger
1108
+ # than the input frame rate. The API will generate an output FPS that is
1109
+ # divisible by the input FPS, and smaller or equal to the target FPS. See
1103
1110
  # [Calculating frame
1104
1111
  # rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for
1105
1112
  # more information.
1106
1113
  # @!attribute [rw] bitrate_bps
1107
1114
  # @return [::Integer]
1108
- # Required. The video bitrate in bits per second. The minimum value is 1,000.
1109
- # The maximum value is 480,000,000.
1115
+ # Required. The video bitrate in bits per second. The minimum value is
1116
+ # 1,000. The maximum value is 480,000,000.
1110
1117
  # @!attribute [rw] pixel_format
1111
1118
  # @return [::String]
1112
1119
  # Pixel format to use. The default is `yuv420p`.
@@ -1182,7 +1189,8 @@ module Google
1182
1189
  # - `eac3`
1183
1190
  # @!attribute [rw] bitrate_bps
1184
1191
  # @return [::Integer]
1185
- # Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.
1192
+ # Required. Audio bitrate in bits per second. Must be between 1 and
1193
+ # 10,000,000.
1186
1194
  # @!attribute [rw] channel_count
1187
1195
  # @return [::Integer]
1188
1196
  # Number of audio channels. Must be between 1 and 6. The default is 2.
@@ -1206,6 +1214,15 @@ module Google
1206
1214
  # @!attribute [rw] sample_rate_hertz
1207
1215
  # @return [::Integer]
1208
1216
  # The audio sample rate in Hertz. The default is 48000 Hertz.
1217
+ # @!attribute [rw] language_code
1218
+ # @return [::String]
1219
+ # The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
1220
+ # information, see
1221
+ # https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1222
+ # @!attribute [rw] display_name
1223
+ # @return [::String]
1224
+ # The name for this particular audio stream that
1225
+ # will be added to the HLS/DASH manifest.
1209
1226
  class AudioStream
1210
1227
  include ::Google::Protobuf::MessageExts
1211
1228
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1213,8 +1230,8 @@ module Google
1213
1230
  # The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
1214
1231
  # @!attribute [rw] atom_key
1215
1232
  # @return [::String]
1216
- # Required. The `EditAtom.key` that references the atom with audio inputs in the
1217
- # `Job.edit_list`.
1233
+ # Required. The `EditAtom.key` that references the atom with audio inputs
1234
+ # in the `Job.edit_list`.
1218
1235
  # @!attribute [rw] input_key
1219
1236
  # @return [::String]
1220
1237
  # Required. The `Input.key` that identifies the input file.
@@ -1249,9 +1266,18 @@ module Google
1249
1266
  # - `cea608`
1250
1267
  # - `cea708`
1251
1268
  # - `webvtt`
1269
+ # @!attribute [rw] language_code
1270
+ # @return [::String]
1271
+ # The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
1272
+ # information, see
1273
+ # https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1252
1274
  # @!attribute [rw] mapping
1253
1275
  # @return [::Array<::Google::Cloud::Video::Transcoder::V1::TextStream::TextMapping>]
1254
1276
  # The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
1277
+ # @!attribute [rw] display_name
1278
+ # @return [::String]
1279
+ # The name for this particular text stream that
1280
+ # will be added to the HLS/DASH manifest.
1255
1281
  class TextStream
1256
1282
  include ::Google::Protobuf::MessageExts
1257
1283
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -109,8 +109,8 @@ module Google
109
109
  # Required. Parameters for creating job template.
110
110
  # @!attribute [rw] job_template_id
111
111
  # @return [::String]
112
- # Required. The ID to use for the job template, which will become the final component
113
- # of the job template's resource name.
112
+ # Required. The ID to use for the job template, which will become the final
113
+ # component of the job template's resource name.
114
114
  #
115
115
  # This value should be 4-63 characters, and valid characters must match the
116
116
  # regular expression `[a-zA-Z][a-zA-Z0-9_-]*`.
@@ -122,8 +122,8 @@ module Google
122
122
  # Request message for `TranscoderService.ListJobTemplates`.
123
123
  # @!attribute [rw] parent
124
124
  # @return [::String]
125
- # Required. The parent location from which to retrieve the collection of job templates.
126
- # Format: `projects/{project}/locations/{location}`
125
+ # Required. The parent location from which to retrieve the collection of job
126
+ # templates. Format: `projects/{project}/locations/{location}`
127
127
  # @!attribute [rw] page_size
128
128
  # @return [::Integer]
129
129
  # The maximum number of items to return.
@@ -28,12 +28,14 @@ module Google
28
28
  # [API Design Guide](https://cloud.google.com/apis/design/errors).
29
29
  # @!attribute [rw] code
30
30
  # @return [::Integer]
31
- # The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
31
+ # The status code, which should be an enum value of
32
+ # [google.rpc.Code][google.rpc.Code].
32
33
  # @!attribute [rw] message
33
34
  # @return [::String]
34
35
  # A developer-facing error message, which should be in English. Any
35
36
  # user-facing error message should be localized and sent in the
36
- # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized by the client.
37
+ # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
38
+ # by the client.
37
39
  # @!attribute [rw] details
38
40
  # @return [::Array<::Google::Protobuf::Any>]
39
41
  # A list of messages that carry the error details. There is a common set of
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-video-transcoder-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-09 00:00:00.000000000 Z
11
+ date: 2023-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.12'
19
+ version: 0.18.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.12'
29
+ version: 0.18.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 1.26.1
53
+ version: 1.26.3
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.26.1
60
+ version: 1.26.3
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -211,8 +211,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  - !ruby/object:Gem::Version
212
212
  version: '0'
213
213
  requirements: []
214
- rubygems_version: 3.3.14
214
+ rubygems_version: 3.4.2
215
215
  signing_key:
216
216
  specification_version: 4
217
- summary: API Client library for the Transcoder V1 API
217
+ summary: This API converts video files into formats suitable for consumer distribution.
218
+ For more information, see the <a href="https://cloud.google.com/transcoder/docs/concepts/overview">Transcoder
219
+ API overview</a>.
218
220
  test_files: []