google-cloud-video-transcoder-v1 0.2.0 → 0.3.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a48b8945217f91acc6ce9123a9bd85f01ef758bf7710b265cbe49133beabe4a
4
- data.tar.gz: f146397966ccebbea1cb7dfe69ac2d677fafecbd1ac079e1d696734c556be864
3
+ metadata.gz: e55f8a81959f4f388d65bdc1aa87af77c720b3034a2b9643a151b2b8d096ae05
4
+ data.tar.gz: a682ac2f2500fb05d2d879e9769ba197e0b7a5ed00812e0b12e0ee32ebfce23f
5
5
  SHA512:
6
- metadata.gz: cce02934e9dda7f222bb310ee312dbf4eb0af45756de82faa9b58d6b6f401b0c74825ad6ada728e69b27081b353e3f2c370e609c6d750f13cf52a07e75546d78
7
- data.tar.gz: 242f819a108ec9ff07df887f88ae4dc78778f2dff167fdab7c41ab21eb849bbbc2eaf08507069395e7256890f072e026fca5e2276fee0ff30fe3a191ef31dd5a
6
+ metadata.gz: 7225a87eb28f49e8d9828201c88114fb67b9c9550da4d43f8e3f4c9d944d468def92907d6409521ea3d5eee387de896fcb697ea9ffbe2d45162c389f22c1b71c
7
+ data.tar.gz: b3605aae33d8e2b05013851914b8bc31f2d204f0a396016af2b6991f4032015fabac64bd06fbc87aaeba0b579e983fe03e57f73017b0f2cc2d3f6349c1d2772f
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Transcoder V1 API
2
+ --title="Transcoder V1 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/AUTHENTICATION.md CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
121
121
  *should* only be used during development.
122
122
 
123
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
124
- [dev-console]: https://console.cloud.google.com/project
125
-
126
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
127
-
128
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
129
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
130
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
131
-
132
123
  ## Creating a Service Account
133
124
 
134
125
  Google Cloud requires **Service Account Credentials** to
@@ -139,31 +130,22 @@ If you are not running this client within
139
130
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
140
131
  need a Google Developers service account.
141
132
 
142
- 1. Visit the [Google Developers Console][dev-console].
133
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
143
134
  2. Create a new project or click on an existing project.
144
- 3. Activate the slide-out navigation tray and select **API Manager**. From
135
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
145
136
  here, you will enable the APIs that your application requires.
146
137
 
147
- ![Enable the APIs that your application requires][enable-apis]
148
-
149
138
  *Note: You may need to enable billing in order to use these services.*
150
139
 
151
140
  4. Select **Credentials** from the side navigation.
152
141
 
153
- You should see a screen like one of the following.
154
-
155
- ![Create a new service account][create-new-service-account]
156
-
157
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
158
-
159
- Find the "Add credentials" drop down and select "Service account" to be
160
- guided through downloading a new JSON key file.
142
+ Find the "Create credentials" drop down near the top of the page, and select
143
+ "Service account" to be guided through downloading a new JSON key file.
161
144
 
162
145
  If you want to re-use an existing service account, you can easily generate a
163
- new key file. Just select the account you wish to re-use, and click "Generate
164
- new JSON key":
165
-
166
- ![Re-use an existing service account][reuse-service-account]
146
+ new key file. Just select the account you wish to re-use, click the pencil
147
+ tool on the right side to edit the service account, select the **Keys** tab,
148
+ and then select **Add Key**.
167
149
 
168
150
  The key file you download will be used by this library to authenticate API
169
151
  requests and should be stored in a secure location.
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Video::Transcoder::V1::CreateJobRequest.new # (reques
37
37
  response = client.create_job request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-video-transcoder-v1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/transcoder/)
@@ -69,6 +69,11 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
79
  This library is supported on Ruby 2.5+.
@@ -1,12 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/video/transcoder/v1/resources.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/field_behavior_pb'
5
7
  require 'google/api/resource_pb'
6
8
  require 'google/protobuf/duration_pb'
7
9
  require 'google/protobuf/timestamp_pb'
8
10
  require 'google/rpc/status_pb'
9
- require 'google/protobuf'
10
11
 
11
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
13
  add_file("google/cloud/video/transcoder/v1/resources.proto", :syntax => :proto3) do
@@ -19,6 +20,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
19
20
  optional :start_time, :message, 13, "google.protobuf.Timestamp"
20
21
  optional :end_time, :message, 14, "google.protobuf.Timestamp"
21
22
  optional :ttl_after_completion_days, :int32, 15
23
+ map :labels, :string, :string, 16
22
24
  optional :error, :message, 17, "google.rpc.Status"
23
25
  oneof :job_config do
24
26
  optional :template_id, :string, 4
@@ -35,6 +37,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
35
37
  add_message "google.cloud.video.transcoder.v1.JobTemplate" do
36
38
  optional :name, :string, 1
37
39
  optional :config, :message, 2, "google.cloud.video.transcoder.v1.JobConfig"
40
+ map :labels, :string, :string, 3
38
41
  end
39
42
  add_message "google.cloud.video.transcoder.v1.JobConfig" do
40
43
  repeated :inputs, :message, 1, "google.cloud.video.transcoder.v1.Input"
@@ -1,13 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/video/transcoder/v1/services.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
7
9
  require 'google/api/resource_pb'
8
10
  require 'google/cloud/video/transcoder/v1/resources_pb'
9
11
  require 'google/protobuf/empty_pb'
10
- require 'google/protobuf'
11
12
 
12
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
14
  add_file("google/cloud/video/transcoder/v1/services.proto", :syntax => :proto3) do
@@ -203,6 +203,21 @@ module Google
203
203
  #
204
204
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
205
205
  #
206
+ # @example Basic example
207
+ # require "google/cloud/video/transcoder/v1"
208
+ #
209
+ # # Create a client object. The client can be reused for multiple calls.
210
+ # client = Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
211
+ #
212
+ # # Create a request. To set request fields, pass in keyword arguments.
213
+ # request = Google::Cloud::Video::Transcoder::V1::CreateJobRequest.new
214
+ #
215
+ # # Call the create_job method.
216
+ # result = client.create_job request
217
+ #
218
+ # # The returned object is of type Google::Cloud::Video::Transcoder::V1::Job.
219
+ # p result
220
+ #
206
221
  def create_job request, options = nil
207
222
  raise ::ArgumentError, "request must be provided" if request.nil?
208
223
 
@@ -220,9 +235,11 @@ module Google
220
235
  gapic_version: ::Google::Cloud::Video::Transcoder::V1::VERSION
221
236
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
222
237
 
223
- header_params = {
224
- "parent" => request.parent
225
- }
238
+ header_params = {}
239
+ if request.parent
240
+ header_params["parent"] = request.parent
241
+ end
242
+
226
243
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
227
244
  metadata[:"x-goog-request-params"] ||= request_params_header
228
245
 
@@ -282,6 +299,27 @@ module Google
282
299
  #
283
300
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
284
301
  #
302
+ # @example Basic example
303
+ # require "google/cloud/video/transcoder/v1"
304
+ #
305
+ # # Create a client object. The client can be reused for multiple calls.
306
+ # client = Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
307
+ #
308
+ # # Create a request. To set request fields, pass in keyword arguments.
309
+ # request = Google::Cloud::Video::Transcoder::V1::ListJobsRequest.new
310
+ #
311
+ # # Call the list_jobs method.
312
+ # result = client.list_jobs request
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|
319
+ # # Each element is of type ::Google::Cloud::Video::Transcoder::V1::Job.
320
+ # p response
321
+ # end
322
+ #
285
323
  def list_jobs request, options = nil
286
324
  raise ::ArgumentError, "request must be provided" if request.nil?
287
325
 
@@ -299,9 +337,11 @@ module Google
299
337
  gapic_version: ::Google::Cloud::Video::Transcoder::V1::VERSION
300
338
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
301
339
 
302
- header_params = {
303
- "parent" => request.parent
304
- }
340
+ header_params = {}
341
+ if request.parent
342
+ header_params["parent"] = request.parent
343
+ end
344
+
305
345
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
306
346
  metadata[:"x-goog-request-params"] ||= request_params_header
307
347
 
@@ -352,6 +392,21 @@ module Google
352
392
  #
353
393
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
354
394
  #
395
+ # @example Basic example
396
+ # require "google/cloud/video/transcoder/v1"
397
+ #
398
+ # # Create a client object. The client can be reused for multiple calls.
399
+ # client = Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
400
+ #
401
+ # # Create a request. To set request fields, pass in keyword arguments.
402
+ # request = Google::Cloud::Video::Transcoder::V1::GetJobRequest.new
403
+ #
404
+ # # Call the get_job method.
405
+ # result = client.get_job request
406
+ #
407
+ # # The returned object is of type Google::Cloud::Video::Transcoder::V1::Job.
408
+ # p result
409
+ #
355
410
  def get_job request, options = nil
356
411
  raise ::ArgumentError, "request must be provided" if request.nil?
357
412
 
@@ -369,9 +424,11 @@ module Google
369
424
  gapic_version: ::Google::Cloud::Video::Transcoder::V1::VERSION
370
425
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
371
426
 
372
- header_params = {
373
- "name" => request.name
374
- }
427
+ header_params = {}
428
+ if request.name
429
+ header_params["name"] = request.name
430
+ end
431
+
375
432
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
376
433
  metadata[:"x-goog-request-params"] ||= request_params_header
377
434
 
@@ -424,6 +481,21 @@ module Google
424
481
  #
425
482
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
426
483
  #
484
+ # @example Basic example
485
+ # require "google/cloud/video/transcoder/v1"
486
+ #
487
+ # # Create a client object. The client can be reused for multiple calls.
488
+ # client = Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
489
+ #
490
+ # # Create a request. To set request fields, pass in keyword arguments.
491
+ # request = Google::Cloud::Video::Transcoder::V1::DeleteJobRequest.new
492
+ #
493
+ # # Call the delete_job method.
494
+ # result = client.delete_job request
495
+ #
496
+ # # The returned object is of type Google::Protobuf::Empty.
497
+ # p result
498
+ #
427
499
  def delete_job request, options = nil
428
500
  raise ::ArgumentError, "request must be provided" if request.nil?
429
501
 
@@ -441,9 +513,11 @@ module Google
441
513
  gapic_version: ::Google::Cloud::Video::Transcoder::V1::VERSION
442
514
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
443
515
 
444
- header_params = {
445
- "name" => request.name
446
- }
516
+ header_params = {}
517
+ if request.name
518
+ header_params["name"] = request.name
519
+ end
520
+
447
521
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
448
522
  metadata[:"x-goog-request-params"] ||= request_params_header
449
523
 
@@ -501,6 +575,21 @@ module Google
501
575
  #
502
576
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
503
577
  #
578
+ # @example Basic example
579
+ # require "google/cloud/video/transcoder/v1"
580
+ #
581
+ # # Create a client object. The client can be reused for multiple calls.
582
+ # client = Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
583
+ #
584
+ # # Create a request. To set request fields, pass in keyword arguments.
585
+ # request = Google::Cloud::Video::Transcoder::V1::CreateJobTemplateRequest.new
586
+ #
587
+ # # Call the create_job_template method.
588
+ # result = client.create_job_template request
589
+ #
590
+ # # The returned object is of type Google::Cloud::Video::Transcoder::V1::JobTemplate.
591
+ # p result
592
+ #
504
593
  def create_job_template request, options = nil
505
594
  raise ::ArgumentError, "request must be provided" if request.nil?
506
595
 
@@ -518,9 +607,11 @@ module Google
518
607
  gapic_version: ::Google::Cloud::Video::Transcoder::V1::VERSION
519
608
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
520
609
 
521
- header_params = {
522
- "parent" => request.parent
523
- }
610
+ header_params = {}
611
+ if request.parent
612
+ header_params["parent"] = request.parent
613
+ end
614
+
524
615
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
525
616
  metadata[:"x-goog-request-params"] ||= request_params_header
526
617
 
@@ -581,6 +672,27 @@ module Google
581
672
  #
582
673
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
583
674
  #
675
+ # @example Basic example
676
+ # require "google/cloud/video/transcoder/v1"
677
+ #
678
+ # # Create a client object. The client can be reused for multiple calls.
679
+ # client = Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
680
+ #
681
+ # # Create a request. To set request fields, pass in keyword arguments.
682
+ # request = Google::Cloud::Video::Transcoder::V1::ListJobTemplatesRequest.new
683
+ #
684
+ # # Call the list_job_templates method.
685
+ # result = client.list_job_templates request
686
+ #
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|
692
+ # # Each element is of type ::Google::Cloud::Video::Transcoder::V1::JobTemplate.
693
+ # p response
694
+ # end
695
+ #
584
696
  def list_job_templates request, options = nil
585
697
  raise ::ArgumentError, "request must be provided" if request.nil?
586
698
 
@@ -598,9 +710,11 @@ module Google
598
710
  gapic_version: ::Google::Cloud::Video::Transcoder::V1::VERSION
599
711
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
600
712
 
601
- header_params = {
602
- "parent" => request.parent
603
- }
713
+ header_params = {}
714
+ if request.parent
715
+ header_params["parent"] = request.parent
716
+ end
717
+
604
718
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
605
719
  metadata[:"x-goog-request-params"] ||= request_params_header
606
720
 
@@ -652,6 +766,21 @@ module Google
652
766
  #
653
767
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
654
768
  #
769
+ # @example Basic example
770
+ # require "google/cloud/video/transcoder/v1"
771
+ #
772
+ # # Create a client object. The client can be reused for multiple calls.
773
+ # client = Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
774
+ #
775
+ # # Create a request. To set request fields, pass in keyword arguments.
776
+ # request = Google::Cloud::Video::Transcoder::V1::GetJobTemplateRequest.new
777
+ #
778
+ # # Call the get_job_template method.
779
+ # result = client.get_job_template request
780
+ #
781
+ # # The returned object is of type Google::Cloud::Video::Transcoder::V1::JobTemplate.
782
+ # p result
783
+ #
655
784
  def get_job_template request, options = nil
656
785
  raise ::ArgumentError, "request must be provided" if request.nil?
657
786
 
@@ -669,9 +798,11 @@ module Google
669
798
  gapic_version: ::Google::Cloud::Video::Transcoder::V1::VERSION
670
799
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
671
800
 
672
- header_params = {
673
- "name" => request.name
674
- }
801
+ header_params = {}
802
+ if request.name
803
+ header_params["name"] = request.name
804
+ end
805
+
675
806
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
676
807
  metadata[:"x-goog-request-params"] ||= request_params_header
677
808
 
@@ -724,6 +855,21 @@ module Google
724
855
  #
725
856
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
726
857
  #
858
+ # @example Basic example
859
+ # require "google/cloud/video/transcoder/v1"
860
+ #
861
+ # # Create a client object. The client can be reused for multiple calls.
862
+ # client = Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
863
+ #
864
+ # # Create a request. To set request fields, pass in keyword arguments.
865
+ # request = Google::Cloud::Video::Transcoder::V1::DeleteJobTemplateRequest.new
866
+ #
867
+ # # Call the delete_job_template method.
868
+ # result = client.delete_job_template request
869
+ #
870
+ # # The returned object is of type Google::Protobuf::Empty.
871
+ # p result
872
+ #
727
873
  def delete_job_template request, options = nil
728
874
  raise ::ArgumentError, "request must be provided" if request.nil?
729
875
 
@@ -741,9 +887,11 @@ module Google
741
887
  gapic_version: ::Google::Cloud::Video::Transcoder::V1::VERSION
742
888
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
743
889
 
744
- header_params = {
745
- "name" => request.name
746
- }
890
+ header_params = {}
891
+ if request.name
892
+ header_params["name"] = request.name
893
+ end
894
+
747
895
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
748
896
  metadata[:"x-goog-request-params"] ||= request_params_header
749
897
 
@@ -22,7 +22,7 @@ module Google
22
22
  module Video
23
23
  module Transcoder
24
24
  module V1
25
- VERSION = "0.2.0"
25
+ VERSION = "0.3.0"
26
26
  end
27
27
  end
28
28
  end
@@ -26,6 +26,8 @@ module Google
26
26
  ##
27
27
  # To load this package, including all its services, and instantiate a client:
28
28
  #
29
+ # @example
30
+ #
29
31
  # require "google/cloud/video/transcoder/v1"
30
32
  # client = ::Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
31
33
  #
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -32,12 +32,16 @@ module Google
32
32
  # Input only. Specify the `input_uri` to populate empty `uri` fields in each element of
33
33
  # `Job.config.inputs` or `JobTemplate.config.inputs` when using template.
34
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`).
35
+ # stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`). See
36
+ # [Supported input and output
37
+ # formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
36
38
  # @!attribute [rw] output_uri
37
39
  # @return [::String]
38
40
  # Input only. Specify the `output_uri` to populate an empty `Job.config.output.uri` or
39
41
  # `JobTemplate.config.output.uri` when using template.
40
- # URI for the output file(s). For example, `gs://my-bucket/outputs/`.
42
+ # URI for the output file(s). For example, `gs://my-bucket/outputs/`. See
43
+ # [Supported input and output
44
+ # formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
41
45
  # @!attribute [rw] template_id
42
46
  # @return [::String]
43
47
  # Input only. Specify the `template_id` to use for populating `Job.config`. The default
@@ -68,6 +72,10 @@ module Google
68
72
  # Job time to live value in days, which will be effective after job
69
73
  # completion. Job should be deleted automatically after the given TTL. Enter
70
74
  # a value between 1 and 90. The default is 30.
75
+ # @!attribute [rw] labels
76
+ # @return [::Google::Protobuf::Map{::String => ::String}]
77
+ # The labels associated with this job. You can use these to organize and
78
+ # group your jobs.
71
79
  # @!attribute [r] error
72
80
  # @return [::Google::Rpc::Status]
73
81
  # Output only. An error object that describes the reason for the failure.
@@ -76,6 +84,15 @@ module Google
76
84
  include ::Google::Protobuf::MessageExts
77
85
  extend ::Google::Protobuf::MessageExts::ClassMethods
78
86
 
87
+ # @!attribute [rw] key
88
+ # @return [::String]
89
+ # @!attribute [rw] value
90
+ # @return [::String]
91
+ class LabelsEntry
92
+ include ::Google::Protobuf::MessageExts
93
+ extend ::Google::Protobuf::MessageExts::ClassMethods
94
+ end
95
+
79
96
  # The current state of the job.
80
97
  module ProcessingState
81
98
  # The processing state is not specified.
@@ -105,9 +122,22 @@ module Google
105
122
  # @!attribute [rw] config
106
123
  # @return [::Google::Cloud::Video::Transcoder::V1::JobConfig]
107
124
  # The configuration for this template.
125
+ # @!attribute [rw] labels
126
+ # @return [::Google::Protobuf::Map{::String => ::String}]
127
+ # The labels associated with this job template. You can use these to organize
128
+ # and group your job templates.
108
129
  class JobTemplate
109
130
  include ::Google::Protobuf::MessageExts
110
131
  extend ::Google::Protobuf::MessageExts::ClassMethods
132
+
133
+ # @!attribute [rw] key
134
+ # @return [::String]
135
+ # @!attribute [rw] value
136
+ # @return [::String]
137
+ class LabelsEntry
138
+ include ::Google::Protobuf::MessageExts
139
+ extend ::Google::Protobuf::MessageExts::ClassMethods
140
+ end
111
141
  end
112
142
 
113
143
  # Job configuration
@@ -140,6 +170,7 @@ module Google
140
170
  # @!attribute [rw] sprite_sheets
141
171
  # @return [::Array<::Google::Cloud::Video::Transcoder::V1::SpriteSheet>]
142
172
  # List of output sprite sheets.
173
+ # Spritesheets require at least one VideoStream in the Jobconfig.
143
174
  # @!attribute [rw] overlays
144
175
  # @return [::Array<::Google::Cloud::Video::Transcoder::V1::Overlay>]
145
176
  # List of overlays on the output video, in descending Z-order.
@@ -157,7 +188,9 @@ module Google
157
188
  # @return [::String]
158
189
  # URI of the media. Input files must be at least 5 seconds in duration and
159
190
  # stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
160
- # If empty, the value will be populated from `Job.input_uri`.
191
+ # If empty, the value is populated from `Job.input_uri`. See
192
+ # [Supported input and output
193
+ # formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
161
194
  # @!attribute [rw] preprocessing_config
162
195
  # @return [::Google::Cloud::Video::Transcoder::V1::PreprocessingConfig]
163
196
  # Preprocessing configurations.
@@ -170,7 +203,9 @@ module Google
170
203
  # @!attribute [rw] uri
171
204
  # @return [::String]
172
205
  # URI for the output file(s). For example, `gs://my-bucket/outputs/`.
173
- # If empty the value is populated from `Job.output_uri`.
206
+ # If empty, the value is populated from `Job.output_uri`. See
207
+ # [Supported input and output
208
+ # formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
174
209
  class Output
175
210
  include ::Google::Protobuf::MessageExts
176
211
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -251,6 +286,10 @@ module Google
251
286
  # - `fmp4`- the corresponding file extension is `.m4s`
252
287
  # - `mp4`
253
288
  # - `vtt`
289
+ #
290
+ # See also:
291
+ # [Supported input and output
292
+ # formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats)
254
293
  # @!attribute [rw] elementary_streams
255
294
  # @return [::Array<::String>]
256
295
  # List of `ElementaryStream.key`s multiplexed in this stream.
@@ -514,6 +553,8 @@ module Google
514
553
  extend ::Google::Protobuf::MessageExts::ClassMethods
515
554
 
516
555
  # Color preprocessing configuration.
556
+ #
557
+ # **Note:** This configuration is not supported.
517
558
  # @!attribute [rw] saturation
518
559
  # @return [::Float]
519
560
  # Control color saturation of the video. Enter a value between -1 and 1,
@@ -535,6 +576,8 @@ module Google
535
576
  end
536
577
 
537
578
  # Denoise preprocessing configuration.
579
+ #
580
+ # **Note:** This configuration is not supported.
538
581
  # @!attribute [rw] strength
539
582
  # @return [::Float]
540
583
  # Set strength of the denoise. Enter a value between 0 and 1. The higher
@@ -553,6 +596,8 @@ module Google
553
596
  end
554
597
 
555
598
  # Deblock preprocessing configuration.
599
+ #
600
+ # **Note:** This configuration is not supported.
556
601
  # @!attribute [rw] strength
557
602
  # @return [::Float]
558
603
  # Set strength of the deblocker. Enter a value between 0 and 1. The higher
@@ -583,9 +628,13 @@ module Google
583
628
  # @!attribute [rw] high_boost
584
629
  # @return [::Boolean]
585
630
  # Enable boosting high frequency components. The default is `false`.
631
+ #
632
+ # **Note:** This field is not supported.
586
633
  # @!attribute [rw] low_boost
587
634
  # @return [::Boolean]
588
635
  # Enable boosting low frequency components. The default is `false`.
636
+ #
637
+ # **Note:** This field is not supported.
589
638
  class Audio
590
639
  include ::Google::Protobuf::MessageExts
591
640
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -967,11 +1016,12 @@ module Google
967
1016
  # Supported rate control modes:
968
1017
  #
969
1018
  # - `vbr` - variable bitrate
970
- # - `crf` - constant rate factor
971
1019
  # @!attribute [rw] crf_level
972
1020
  # @return [::Integer]
973
1021
  # Target CRF level. Must be between 10 and 36, where 10 is the highest
974
1022
  # quality and 36 is the most efficient compression. The default is 21.
1023
+ #
1024
+ # **Note:** This field is not supported.
975
1025
  # @!attribute [rw] gop_frame_count
976
1026
  # @return [::Integer]
977
1027
  # Select the GOP size based on the specified frame count. Must be greater
@@ -44,7 +44,7 @@ module Google
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
46
  #
47
- # Example 3: Pack and unpack a message in Python.
47
+ # Example 3: Pack and unpack a message in Python.
48
48
  #
49
49
  # foo = Foo(...)
50
50
  # any = Any()
@@ -54,7 +54,7 @@ module Google
54
54
  # any.Unpack(foo)
55
55
  # ...
56
56
  #
57
- # Example 4: Pack and unpack a message in Go
57
+ # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
60
  # any, err := anypb.New(foo)
@@ -75,7 +75,7 @@ module Google
75
75
  #
76
76
  #
77
77
  # JSON
78
- # ====
78
+ #
79
79
  # The JSON representation of an `Any` value uses the regular
80
80
  # representation of the deserialized, embedded message, with an
81
81
  # additional field `@type` which contains the type URL. Example:
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.2.0
4
+ version: 0.3.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: 2021-10-18 00:00:00.000000000 Z
11
+ date: 2022-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -209,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
209
  - !ruby/object:Gem::Version
210
210
  version: '0'
211
211
  requirements: []
212
- rubygems_version: 3.2.17
212
+ rubygems_version: 3.3.14
213
213
  signing_key:
214
214
  specification_version: 4
215
215
  summary: API Client library for the Transcoder V1 API