google-cloud-video-live_stream-v1 2.1.0 → 2.2.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.
@@ -672,7 +672,7 @@ module Google
672
672
  # @!attribute [rw] name
673
673
  # @return [::String]
674
674
  # The resource name of the clip, in the following format:
675
- # `projects/{project}/locations/{location}/channels/{c}/clips/{clipId}`.
675
+ # `projects/{project}/locations/{location}/channels/{channelId}/clips/{clipId}`.
676
676
  # `{clipId}` is a user-specified resource id that conforms to the following
677
677
  # criteria:
678
678
  #
@@ -714,6 +714,10 @@ module Google
714
714
  # @return [::Array<::Google::Cloud::Video::LiveStream::V1::Clip::ClipManifest>]
715
715
  # Required. A list of clip manifests. Currently only one clip manifest is
716
716
  # allowed.
717
+ # @!attribute [rw] output_type
718
+ # @return [::Google::Cloud::Video::LiveStream::V1::Clip::OutputType]
719
+ # Optional. OutputType of the clip. If not specified, the default value is
720
+ # MANIFEST.
717
721
  class Clip
718
722
  include ::Google::Protobuf::MessageExts
719
723
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -788,6 +792,153 @@ module Google
788
792
  # field.
789
793
  FAILED = 4
790
794
  end
795
+
796
+ # OutputType represents the output type of the clip.
797
+ module OutputType
798
+ # OutputType is not specified.
799
+ OUTPUT_TYPE_UNSPECIFIED = 0
800
+
801
+ # OutputType is a VOD manifest. This is the default value.
802
+ MANIFEST = 1
803
+
804
+ # OutputType is an MP4 file.
805
+ MP4 = 2
806
+ end
807
+ end
808
+
809
+ # TimeInterval represents a time interval.
810
+ # @!attribute [rw] start_time
811
+ # @return [::Google::Protobuf::Timestamp]
812
+ # Optional. The start time of the interval.
813
+ # @!attribute [rw] end_time
814
+ # @return [::Google::Protobuf::Timestamp]
815
+ # Optional. The end time of the interval.
816
+ class TimeInterval
817
+ include ::Google::Protobuf::MessageExts
818
+ extend ::Google::Protobuf::MessageExts::ClassMethods
819
+ end
820
+
821
+ # DvrSession is a sub-resource under channel. Each DvrSession represents a DVR
822
+ # recording of the live stream for a specific time range.
823
+ # @!attribute [rw] name
824
+ # @return [::String]
825
+ # Identifier. The resource name of the DVR session, in the following format:
826
+ # `projects/{project}/locations/{location}/channels/{channelId}/dvrSessions/{dvrSessionId}`.
827
+ # `{dvrSessionId}` is a user-specified resource id that conforms to the
828
+ # following criteria:
829
+ #
830
+ # 1. 1 character minimum, 63 characters maximum
831
+ # 2. Only contains letters, digits, underscores, and hyphens
832
+ # @!attribute [r] create_time
833
+ # @return [::Google::Protobuf::Timestamp]
834
+ # Output only. The creation time.
835
+ # @!attribute [r] update_time
836
+ # @return [::Google::Protobuf::Timestamp]
837
+ # Output only. The update time.
838
+ # @!attribute [rw] labels
839
+ # @return [::Google::Protobuf::Map{::String => ::String}]
840
+ # Optional. User-defined key/value metadata.
841
+ # @!attribute [r] state
842
+ # @return [::Google::Cloud::Video::LiveStream::V1::DvrSession::State]
843
+ # Output only. The state of the clip.
844
+ # @!attribute [r] error
845
+ # @return [::Google::Rpc::Status]
846
+ # Output only. An error object that describes the reason for the failure.
847
+ # This property only presents when `state` is `FAILED`.
848
+ # @!attribute [rw] dvr_manifests
849
+ # @return [::Array<::Google::Cloud::Video::LiveStream::V1::DvrSession::DvrManifest>]
850
+ # Required. A list of DVR manifests. Currently only one DVR manifest is
851
+ # allowed.
852
+ # @!attribute [rw] dvr_windows
853
+ # @return [::Array<::Google::Cloud::Video::LiveStream::V1::DvrSession::DvrWindow>]
854
+ # Required. The specified ranges of segments to generate a DVR recording.
855
+ class DvrSession
856
+ include ::Google::Protobuf::MessageExts
857
+ extend ::Google::Protobuf::MessageExts::ClassMethods
858
+
859
+ # DvrManifest identifies a source manifest and specifies a file name for the
860
+ # generated DVR manifest.
861
+ # @!attribute [rw] manifest_key
862
+ # @return [::String]
863
+ # Required. A unique key that identifies a manifest config in the parent
864
+ # channel. This key is the same as `channel.manifests.key` for the selected
865
+ # manifest.
866
+ # @!attribute [r] output_uri
867
+ # @return [::String]
868
+ # Output only. The output URI of the DVR manifest. The DVR output will be
869
+ # placed in a directory named `dvr/dvrSessionId/` under the parent
870
+ # channel's output uri. Format:
871
+ # \\{channel.output.uri}/dvr/\\{dvrSessionId}/\\{channel.manifests.fileName}
872
+ # Example: gs://my-bucket/outputs/dvr/my-dvr-session/main.m3u8
873
+ class DvrManifest
874
+ include ::Google::Protobuf::MessageExts
875
+ extend ::Google::Protobuf::MessageExts::ClassMethods
876
+ end
877
+
878
+ # DvrWindow represents a DVR window.
879
+ # @!attribute [rw] time_interval
880
+ # @return [::Google::Cloud::Video::LiveStream::V1::TimeInterval]
881
+ # A time interval in the form of a tuple of Unix epoch time.
882
+ class DvrWindow
883
+ include ::Google::Protobuf::MessageExts
884
+ extend ::Google::Protobuf::MessageExts::ClassMethods
885
+ end
886
+
887
+ # @!attribute [rw] key
888
+ # @return [::String]
889
+ # @!attribute [rw] value
890
+ # @return [::String]
891
+ class LabelsEntry
892
+ include ::Google::Protobuf::MessageExts
893
+ extend ::Google::Protobuf::MessageExts::ClassMethods
894
+ end
895
+
896
+ # State of the DVR session.
897
+ module State
898
+ # State is not specified.
899
+ STATE_UNSPECIFIED = 0
900
+
901
+ # The operation is pending to be picked up by the server.
902
+ PENDING = 1
903
+
904
+ # The session is being updated.
905
+ UPDATING = 2
906
+
907
+ # The session is scheduled and waiting for the start time.
908
+ SCHEDULED = 3
909
+
910
+ # The session is currently in progress and the outputs are available in the
911
+ # specified Cloud Storage bucket. For additional information, see the
912
+ # `dvr_manifests.output_uri` field.
913
+ LIVE = 4
914
+
915
+ # Outputs are available in the specified Cloud Storage bucket. For
916
+ # additional information, see the `dvr_manifests.output_uri` field.
917
+ FINISHED = 5
918
+
919
+ # The operation has failed. For additional information, see the `error`
920
+ # field.
921
+ FAILED = 6
922
+
923
+ # The session is being deleted.
924
+ DELETING = 7
925
+
926
+ # The session is being post processed.
927
+ POST_PROCESSING = 8
928
+
929
+ # The session is in cooldown. The cooldown period lasts for 60 seconds.
930
+ # When the DVR session is updated by the user to have a new end time that
931
+ # is likely already in the past, the DVR manifest will end as soon as
932
+ # possible and the DVR session will move to this state. This is done to
933
+ # prevent the players to receive a manifest update that removes a segment
934
+ # that has already been played. After the cooldown period ends, a new
935
+ # manifest is generated that honors the new end time.
936
+ COOLDOWN = 9
937
+
938
+ # The session is being stopped. The session will move to STOPPING state, if
939
+ # the parent channel is updated.
940
+ STOPPING = 10
941
+ end
791
942
  end
792
943
 
793
944
  # An asset represents a video or an image.
@@ -458,6 +458,7 @@ module Google
458
458
  # Field mask is used to specify the fields to be overwritten in the Input
459
459
  # resource by the update. You can only update the following fields:
460
460
  #
461
+ # * [`tier`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.inputs#Tier)
461
462
  # * [`preprocessingConfig`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.inputs#PreprocessingConfig)
462
463
  # * [`securityRules`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.inputs#SecurityRule)
463
464
  #
@@ -713,6 +714,146 @@ module Google
713
714
  extend ::Google::Protobuf::MessageExts::ClassMethods
714
715
  end
715
716
 
717
+ # Request message for "LivestreamService.ListDvrSessions".
718
+ # @!attribute [rw] parent
719
+ # @return [::String]
720
+ # Required. Parent value for ListDvrSessionsRequest
721
+ # @!attribute [rw] page_size
722
+ # @return [::Integer]
723
+ # Optional. Requested page size. Server may return fewer items than
724
+ # requested. If unspecified, server will pick an appropriate default.
725
+ # @!attribute [rw] page_token
726
+ # @return [::String]
727
+ # Optional. A token identifying a page of results the server should return.
728
+ # @!attribute [rw] filter
729
+ # @return [::String]
730
+ # Optional. Filtering results
731
+ # @!attribute [rw] order_by
732
+ # @return [::String]
733
+ # Optional. Hint for how to order the results
734
+ class ListDvrSessionsRequest
735
+ include ::Google::Protobuf::MessageExts
736
+ extend ::Google::Protobuf::MessageExts::ClassMethods
737
+ end
738
+
739
+ # Response message for "LivestreamService.ListDvrSessions".
740
+ # @!attribute [rw] dvr_sessions
741
+ # @return [::Array<::Google::Cloud::Video::LiveStream::V1::DvrSession>]
742
+ # The list of DVR sessions
743
+ # @!attribute [rw] next_page_token
744
+ # @return [::String]
745
+ # A token identifying a page of results the server should return.
746
+ # @!attribute [rw] unreachable
747
+ # @return [::Array<::String>]
748
+ # Locations that could not be reached.
749
+ class ListDvrSessionsResponse
750
+ include ::Google::Protobuf::MessageExts
751
+ extend ::Google::Protobuf::MessageExts::ClassMethods
752
+ end
753
+
754
+ # Request message for "LivestreamService.GetDvrSession".
755
+ # @!attribute [rw] name
756
+ # @return [::String]
757
+ # Required. Name of the resource, in the following form:
758
+ # `projects/{project}/locations/{location}/channels/{channelId}/dvrSessions/{dvrSessionId}`.
759
+ class GetDvrSessionRequest
760
+ include ::Google::Protobuf::MessageExts
761
+ extend ::Google::Protobuf::MessageExts::ClassMethods
762
+ end
763
+
764
+ # Request message for "LivestreamService.CreateDvrSession".
765
+ # @!attribute [rw] parent
766
+ # @return [::String]
767
+ # Required. The parent resource name, in the following form:
768
+ # `projects/{project}/locations/{location}/channels/{channelId}`.
769
+ # @!attribute [rw] dvr_session_id
770
+ # @return [::String]
771
+ # Required. Id of the requesting object in the following form:
772
+ #
773
+ # 1. 1 character minimum, 63 characters maximum
774
+ # 2. Only contains letters, digits, underscores, and hyphens
775
+ # @!attribute [rw] dvr_session
776
+ # @return [::Google::Cloud::Video::LiveStream::V1::DvrSession]
777
+ # Required. The resource being created
778
+ # @!attribute [rw] request_id
779
+ # @return [::String]
780
+ # Optional. An optional request ID to identify requests. Specify a unique
781
+ # request ID so that if you must retry your request, the server will know to
782
+ # ignore the request if it has already been completed. The server will
783
+ # guarantee that for at least 60 minutes since the first request.
784
+ #
785
+ # For example, consider a situation where you make an initial request and
786
+ # the request times out. If you make the request again with the same request
787
+ # ID, the server can check if original operation with the same request ID
788
+ # was received, and if so, will ignore the second request. This prevents
789
+ # clients from accidentally creating duplicate commitments.
790
+ #
791
+ # The request ID must be a valid UUID with the exception that zero UUID is
792
+ # not supported (00000000-0000-0000-0000-000000000000).
793
+ class CreateDvrSessionRequest
794
+ include ::Google::Protobuf::MessageExts
795
+ extend ::Google::Protobuf::MessageExts::ClassMethods
796
+ end
797
+
798
+ # Request message for "LivestreamService.DeleteDvrSession".
799
+ # @!attribute [rw] name
800
+ # @return [::String]
801
+ # Required. The name of the event resource, in the form of:
802
+ # `projects/{project}/locations/{location}/channels/{channelId}/dvrSessions/{dvrSessionId}`.
803
+ # @!attribute [rw] request_id
804
+ # @return [::String]
805
+ # Optional. A request ID to identify requests. Specify a unique request ID
806
+ # so that if you must retry your request, the server will know to ignore
807
+ # the request if it has already been completed. The server will guarantee
808
+ # that for at least 60 minutes since the first request.
809
+ #
810
+ # For example, consider a situation where you make an initial request and the
811
+ # request times out. If you make the request again with the same request ID,
812
+ # the server can check if original operation with the same request ID was
813
+ # received, and if so, will ignore the second request. This prevents clients
814
+ # from accidentally creating duplicate commitments.
815
+ #
816
+ # The request ID must be a valid UUID with the exception that zero UUID is
817
+ # not supported `(00000000-0000-0000-0000-000000000000)`.
818
+ class DeleteDvrSessionRequest
819
+ include ::Google::Protobuf::MessageExts
820
+ extend ::Google::Protobuf::MessageExts::ClassMethods
821
+ end
822
+
823
+ # Request message for "LivestreamService.UpdateDvrSession".
824
+ # @!attribute [rw] update_mask
825
+ # @return [::Google::Protobuf::FieldMask]
826
+ # Required. Field mask is used to specify the fields to be overwritten in the
827
+ # DvrSession resource by the update. You can only update the following
828
+ # fields:
829
+ #
830
+ # * `dvrWindows`
831
+ #
832
+ # The fields specified in the update_mask are relative to the resource, not
833
+ # the full request. A field will be overwritten if it is in the mask.
834
+ # @!attribute [rw] dvr_session
835
+ # @return [::Google::Cloud::Video::LiveStream::V1::DvrSession]
836
+ # Required. The DVR session resource to be updated.
837
+ # @!attribute [rw] request_id
838
+ # @return [::String]
839
+ # Optional. A request ID to identify requests. Specify a unique request ID
840
+ # so that if you must retry your request, the server will know to ignore
841
+ # the request if it has already been completed. The server will guarantee
842
+ # that for at least 60 minutes since the first request.
843
+ #
844
+ # For example, consider a situation where you make an initial request and the
845
+ # request times out. If you make the request again with the same request ID,
846
+ # the server can check if original operation with the same request ID was
847
+ # received, and if so, will ignore the second request. This prevents clients
848
+ # from accidentally creating duplicate commitments.
849
+ #
850
+ # The request ID must be a valid UUID with the exception that zero UUID is
851
+ # not supported `(00000000-0000-0000-0000-000000000000)`.
852
+ class UpdateDvrSessionRequest
853
+ include ::Google::Protobuf::MessageExts
854
+ extend ::Google::Protobuf::MessageExts::ClassMethods
855
+ end
856
+
716
857
  # Represents the metadata of the long-running operation.
717
858
  # @!attribute [r] create_time
718
859
  # @return [::Google::Protobuf::Timestamp]
@@ -730,9 +871,10 @@ module Google
730
871
  # @return [::Boolean]
731
872
  # Output only. Identifies whether the user has requested cancellation
732
873
  # of the operation. Operations that have successfully been cancelled
733
- # have [Operation.error][] value with a
734
- # {::Google::Rpc::Status#code google.rpc.Status.code} of 1, corresponding to
735
- # `Code.CANCELLED`.
874
+ # have
875
+ # {::Google::Longrunning::Operation#error google.longrunning.Operation.error}
876
+ # value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
877
+ # corresponding to `Code.CANCELLED`.
736
878
  # @!attribute [r] api_version
737
879
  # @return [::String]
738
880
  # Output only. API version used to start the operation.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-video-live_stream-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC