google-cloud-video-live_stream-v1 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -431,19 +431,22 @@ module Google
431
431
  # User-defined key/value metadata.
432
432
  # @!attribute [rw] input_switch
433
433
  # @return [::Google::Cloud::Video::LiveStream::V1::Event::InputSwitchTask]
434
- # Required. Switches to another input stream.
434
+ # Switches to another input stream.
435
435
  # @!attribute [rw] ad_break
436
436
  # @return [::Google::Cloud::Video::LiveStream::V1::Event::AdBreakTask]
437
- # Required. Inserts a new ad opportunity.
437
+ # Inserts a new ad opportunity.
438
438
  # @!attribute [rw] return_to_program
439
439
  # @return [::Google::Cloud::Video::LiveStream::V1::Event::ReturnToProgramTask]
440
- # Required. Stops any running ad break.
440
+ # Stops any running ad break.
441
+ # @!attribute [rw] slate
442
+ # @return [::Google::Cloud::Video::LiveStream::V1::Event::SlateTask]
443
+ # Inserts a slate.
441
444
  # @!attribute [rw] mute
442
445
  # @return [::Google::Cloud::Video::LiveStream::V1::Event::MuteTask]
443
- # Required. Mutes the stream.
446
+ # Mutes the stream.
444
447
  # @!attribute [rw] unmute
445
448
  # @return [::Google::Cloud::Video::LiveStream::V1::Event::UnmuteTask]
446
- # Required. Unmutes the stream.
449
+ # Unmutes the stream.
447
450
  # @!attribute [rw] execute_now
448
451
  # @return [::Boolean]
449
452
  # When this field is set to true, the event will be executed at the earliest
@@ -491,6 +494,22 @@ module Google
491
494
  extend ::Google::Protobuf::MessageExts::ClassMethods
492
495
  end
493
496
 
497
+ # Inserts a slate.
498
+ # @!attribute [rw] duration
499
+ # @return [::Google::Protobuf::Duration]
500
+ # Optional. Duration of the slate. Must be greater than 0 if specified.
501
+ # Omit this field for a long running slate.
502
+ # @!attribute [rw] asset
503
+ # @return [::String]
504
+ # Slate asset to use for the duration. If its duration is less than the
505
+ # duration of the SlateTask, then it will be looped. The slate must be
506
+ # represented in the form of:
507
+ # `projects/{project}/locations/{location}/assets/{assetId}`.
508
+ class SlateTask
509
+ include ::Google::Protobuf::MessageExts
510
+ extend ::Google::Protobuf::MessageExts::ClassMethods
511
+ end
512
+
494
513
  # Stops any events which are currently running. This only applies to events
495
514
  # with a duration.
496
515
  class ReturnToProgramTask
@@ -549,6 +568,96 @@ module Google
549
568
  end
550
569
  end
551
570
 
571
+ # An asset represents a video or an image.
572
+ # @!attribute [rw] name
573
+ # @return [::String]
574
+ # The resource name of the asset, in the form of:
575
+ # `projects/{project}/locations/{location}/assets/{assetId}`.
576
+ # @!attribute [r] create_time
577
+ # @return [::Google::Protobuf::Timestamp]
578
+ # Output only. The creation time.
579
+ # @!attribute [r] update_time
580
+ # @return [::Google::Protobuf::Timestamp]
581
+ # Output only. The update time.
582
+ # @!attribute [rw] labels
583
+ # @return [::Google::Protobuf::Map{::String => ::String}]
584
+ # User-defined key/value metadata.
585
+ # @!attribute [rw] video
586
+ # @return [::Google::Cloud::Video::LiveStream::V1::Asset::VideoAsset]
587
+ # VideoAsset represents a video.
588
+ # @!attribute [rw] image
589
+ # @return [::Google::Cloud::Video::LiveStream::V1::Asset::ImageAsset]
590
+ # ImageAsset represents an image.
591
+ # @!attribute [rw] crc32c
592
+ # @return [::String]
593
+ # Based64-encoded CRC32c checksum of the asset file. For more information,
594
+ # see the crc32c checksum of the [Cloud Storage Objects
595
+ # resource](https://cloud.google.com/storage/docs/json_api/v1/objects).
596
+ # If crc32c is omitted or left empty when the asset is created, this field is
597
+ # filled by the crc32c checksum of the Cloud Storage object indicated by
598
+ # [VideoAsset.uri] or [ImageAsset.uri].
599
+ # If crc32c is set, the asset can't be created if the crc32c value does not
600
+ # match with the crc32c checksum of the Cloud Storage object indicated by
601
+ # [VideoAsset.uri] or [ImageAsset.uri].
602
+ # @!attribute [r] state
603
+ # @return [::Google::Cloud::Video::LiveStream::V1::Asset::State]
604
+ # Output only. The state of the asset resource.
605
+ # @!attribute [r] error
606
+ # @return [::Google::Rpc::Status]
607
+ # Output only. Only present when `state` is `ERROR`. The reason for the error
608
+ # state of the asset.
609
+ class Asset
610
+ include ::Google::Protobuf::MessageExts
611
+ extend ::Google::Protobuf::MessageExts::ClassMethods
612
+
613
+ # VideoAsset represents a video. The supported formats are MP4, MPEG-TS, and
614
+ # FLV. The supported video codec is H264. The supported audio codecs are
615
+ # AAC, AC3, MP2, and MP3.
616
+ # @!attribute [rw] uri
617
+ # @return [::String]
618
+ # Cloud Storage URI of the video. The format is `gs://my-bucket/my-object`.
619
+ class VideoAsset
620
+ include ::Google::Protobuf::MessageExts
621
+ extend ::Google::Protobuf::MessageExts::ClassMethods
622
+ end
623
+
624
+ # Image represents an image. The supported format is JPEG.
625
+ # @!attribute [rw] uri
626
+ # @return [::String]
627
+ # Cloud Storage URI of the image. The format is `gs://my-bucket/my-object`.
628
+ class ImageAsset
629
+ include ::Google::Protobuf::MessageExts
630
+ extend ::Google::Protobuf::MessageExts::ClassMethods
631
+ end
632
+
633
+ # @!attribute [rw] key
634
+ # @return [::String]
635
+ # @!attribute [rw] value
636
+ # @return [::String]
637
+ class LabelsEntry
638
+ include ::Google::Protobuf::MessageExts
639
+ extend ::Google::Protobuf::MessageExts::ClassMethods
640
+ end
641
+
642
+ # State of the asset resource.
643
+ module State
644
+ # State is not specified.
645
+ STATE_UNSPECIFIED = 0
646
+
647
+ # The asset is being created.
648
+ CREATING = 1
649
+
650
+ # The asset is ready for use.
651
+ ACTIVE = 2
652
+
653
+ # The asset is being deleted.
654
+ DELETING = 3
655
+
656
+ # The asset has an error.
657
+ ERROR = 4
658
+ end
659
+ end
660
+
552
661
  # Encryption settings.
553
662
  # @!attribute [rw] id
554
663
  # @return [::String]
@@ -648,6 +757,55 @@ module Google
648
757
  extend ::Google::Protobuf::MessageExts::ClassMethods
649
758
  end
650
759
  end
760
+
761
+ # Pool resource defines the configuration of Live Stream pools for a specific
762
+ # location. Currently we support only one pool resource per project per
763
+ # location. After the creation of the first input, a default pool is created
764
+ # automatically at "projects/\\{project}/locations/\\{location}/pools/default".
765
+ # @!attribute [rw] name
766
+ # @return [::String]
767
+ # The resource name of the pool, in the form of:
768
+ # `projects/{project}/locations/{location}/pools/{poolId}`.
769
+ # @!attribute [r] create_time
770
+ # @return [::Google::Protobuf::Timestamp]
771
+ # Output only. The creation time.
772
+ # @!attribute [r] update_time
773
+ # @return [::Google::Protobuf::Timestamp]
774
+ # Output only. The update time.
775
+ # @!attribute [rw] labels
776
+ # @return [::Google::Protobuf::Map{::String => ::String}]
777
+ # User-defined key/value metadata.
778
+ # @!attribute [rw] network_config
779
+ # @return [::Google::Cloud::Video::LiveStream::V1::Pool::NetworkConfig]
780
+ # Network configuration for the pool.
781
+ class Pool
782
+ include ::Google::Protobuf::MessageExts
783
+ extend ::Google::Protobuf::MessageExts::ClassMethods
784
+
785
+ # Defines the network configuration for the pool.
786
+ # @!attribute [rw] peered_network
787
+ # @return [::String]
788
+ # peered_network is the network resource URL of the network that is peered
789
+ # to the service provider network. Must be of the format
790
+ # projects/NETWORK_PROJECT_NUMBER/global/networks/NETWORK_NAME, where
791
+ # NETWORK_PROJECT_NUMBER is the project number of the Cloud project that
792
+ # holds your VPC network and NETWORK_NAME is the name of your VPC network.
793
+ # If peered_network is omitted or empty, the pool will use endpoints that
794
+ # are publicly available.
795
+ class NetworkConfig
796
+ include ::Google::Protobuf::MessageExts
797
+ extend ::Google::Protobuf::MessageExts::ClassMethods
798
+ end
799
+
800
+ # @!attribute [rw] key
801
+ # @return [::String]
802
+ # @!attribute [rw] value
803
+ # @return [::String]
804
+ class LabelsEntry
805
+ include ::Google::Protobuf::MessageExts
806
+ extend ::Google::Protobuf::MessageExts::ClassMethods
807
+ end
808
+ end
651
809
  end
652
810
  end
653
811
  end
@@ -22,6 +22,112 @@ module Google
22
22
  module Video
23
23
  module LiveStream
24
24
  module V1
25
+ # Request message for "LivestreamService.CreateAsset".
26
+ # @!attribute [rw] parent
27
+ # @return [::String]
28
+ # Required. The parent location for the resource, in the form of:
29
+ # `projects/{project}/locations/{location}`.
30
+ # @!attribute [rw] asset
31
+ # @return [::Google::Cloud::Video::LiveStream::V1::Asset]
32
+ # Required. The asset resource to be created.
33
+ # @!attribute [rw] asset_id
34
+ # @return [::String]
35
+ # Required. The ID of the asset resource to be created.
36
+ # This value must be 1-63 characters, begin and end with `[a-z0-9]`,
37
+ # could contain dashes (-) in between.
38
+ # @!attribute [rw] request_id
39
+ # @return [::String]
40
+ # A request ID to identify requests. Specify a unique request ID
41
+ # so that if you must retry your request, the server will know to ignore
42
+ # the request if it has already been completed. The server will guarantee
43
+ # that for at least 60 minutes since the first request.
44
+ #
45
+ # For example, consider a situation where you make an initial request and the
46
+ # request times out. If you make the request again with the same request ID,
47
+ # the server can check if original operation with the same request ID was
48
+ # received, and if so, will ignore the second request. This prevents clients
49
+ # from accidentally creating duplicate commitments.
50
+ #
51
+ # The request ID must be a valid UUID with the exception that zero UUID is
52
+ # not supported `(00000000-0000-0000-0000-000000000000)`.
53
+ class CreateAssetRequest
54
+ include ::Google::Protobuf::MessageExts
55
+ extend ::Google::Protobuf::MessageExts::ClassMethods
56
+ end
57
+
58
+ # Request message for "LivestreamService.DeleteAsset".
59
+ # @!attribute [rw] name
60
+ # @return [::String]
61
+ # Required. The name of the asset resource, in the form of:
62
+ # `projects/{project}/locations/{location}/assets/{assetId}`.
63
+ # @!attribute [rw] request_id
64
+ # @return [::String]
65
+ # A request ID to identify requests. Specify a unique request ID
66
+ # so that if you must retry your request, the server will know to ignore
67
+ # the request if it has already been completed. The server will guarantee
68
+ # that for at least 60 minutes after the first request.
69
+ #
70
+ # For example, consider a situation where you make an initial request and the
71
+ # request times out. If you make the request again with the same request ID,
72
+ # the server can check if original operation with the same request ID was
73
+ # received, and if so, will ignore the second request. This prevents clients
74
+ # from accidentally creating duplicate commitments.
75
+ #
76
+ # The request ID must be a valid UUID with the exception that zero UUID is
77
+ # not supported `(00000000-0000-0000-0000-000000000000)`.
78
+ class DeleteAssetRequest
79
+ include ::Google::Protobuf::MessageExts
80
+ extend ::Google::Protobuf::MessageExts::ClassMethods
81
+ end
82
+
83
+ # Request message for "LivestreamService.ListAssets".
84
+ # @!attribute [rw] parent
85
+ # @return [::String]
86
+ # Required. The parent location for the resource, in the form of:
87
+ # `projects/{project}/locations/{location}`.
88
+ # @!attribute [rw] page_size
89
+ # @return [::Integer]
90
+ # Requested page size. Server may return fewer items than requested.
91
+ # If unspecified, server will pick an appropriate default.
92
+ # @!attribute [rw] page_token
93
+ # @return [::String]
94
+ # A token identifying a page of results the server should return.
95
+ # @!attribute [rw] filter
96
+ # @return [::String]
97
+ # Filtering results
98
+ # @!attribute [rw] order_by
99
+ # @return [::String]
100
+ # Hint for how to order the results
101
+ class ListAssetsRequest
102
+ include ::Google::Protobuf::MessageExts
103
+ extend ::Google::Protobuf::MessageExts::ClassMethods
104
+ end
105
+
106
+ # Response message for "LivestreamService.ListAssets".
107
+ # @!attribute [rw] assets
108
+ # @return [::Array<::Google::Cloud::Video::LiveStream::V1::Asset>]
109
+ # The list of Assets
110
+ # @!attribute [rw] next_page_token
111
+ # @return [::String]
112
+ # The next_page_token value returned from a previous List request, if any.
113
+ # @!attribute [rw] unreachable
114
+ # @return [::Array<::String>]
115
+ # Locations that could not be reached.
116
+ class ListAssetsResponse
117
+ include ::Google::Protobuf::MessageExts
118
+ extend ::Google::Protobuf::MessageExts::ClassMethods
119
+ end
120
+
121
+ # Request message for "LivestreamService.GetAsset".
122
+ # @!attribute [rw] name
123
+ # @return [::String]
124
+ # Required. Name of the resource, in the following form:
125
+ # `projects/{project}/locations/{location}/assets/{asset}`.
126
+ class GetAssetRequest
127
+ include ::Google::Protobuf::MessageExts
128
+ extend ::Google::Protobuf::MessageExts::ClassMethods
129
+ end
130
+
25
131
  # Request message for "LivestreamService.CreateChannel".
26
132
  # @!attribute [rw] parent
27
133
  # @return [::String]
@@ -528,6 +634,49 @@ module Google
528
634
  include ::Google::Protobuf::MessageExts
529
635
  extend ::Google::Protobuf::MessageExts::ClassMethods
530
636
  end
637
+
638
+ # Request message for "LivestreamService.GetPool".
639
+ # @!attribute [rw] name
640
+ # @return [::String]
641
+ # Required. The name of the pool resource, in the form of:
642
+ # `projects/{project}/locations/{location}/pools/{poolId}`.
643
+ class GetPoolRequest
644
+ include ::Google::Protobuf::MessageExts
645
+ extend ::Google::Protobuf::MessageExts::ClassMethods
646
+ end
647
+
648
+ # Request message for "LivestreamService.UpdatePool".
649
+ # @!attribute [rw] update_mask
650
+ # @return [::Google::Protobuf::FieldMask]
651
+ # Field mask is used to specify the fields to be overwritten in the Pool
652
+ # resource by the update. You can only update the following fields:
653
+ #
654
+ # * `networkConfig`
655
+ #
656
+ # The fields specified in the update_mask are relative to the resource, not
657
+ # the full request. A field will be overwritten if it is in the mask.
658
+ # @!attribute [rw] pool
659
+ # @return [::Google::Cloud::Video::LiveStream::V1::Pool]
660
+ # Required. The pool resource to be updated.
661
+ # @!attribute [rw] request_id
662
+ # @return [::String]
663
+ # A request ID to identify requests. Specify a unique request ID
664
+ # so that if you must retry your request, the server will know to ignore
665
+ # the request if it has already been completed. The server will guarantee
666
+ # that for at least 60 minutes since the first request.
667
+ #
668
+ # For example, consider a situation where you make an initial request and the
669
+ # request times out. If you make the request again with the same request ID,
670
+ # the server can check if original operation with the same request ID was
671
+ # received, and if so, will ignore the second request. This prevents clients
672
+ # from accidentally creating duplicate commitments.
673
+ #
674
+ # The request ID must be a valid UUID with the exception that zero UUID is
675
+ # not supported `(00000000-0000-0000-0000-000000000000)`.
676
+ class UpdatePoolRequest
677
+ include ::Google::Protobuf::MessageExts
678
+ extend ::Google::Protobuf::MessageExts::ClassMethods
679
+ end
531
680
  end
532
681
  end
533
682
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-video-live_stream-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
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: 2023-06-06 00:00:00.000000000 Z
11
+ date: 2023-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common