Class: Google::Apis::YoutubeV3::LiveStream

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/youtube_v3/classes.rb,
generated/google/apis/youtube_v3/representations.rb,
generated/google/apis/youtube_v3/representations.rb

Overview

A live stream describes a live ingestion point.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LiveStream

Returns a new instance of LiveStream



4977
4978
4979
# File 'generated/google/apis/youtube_v3/classes.rb', line 4977

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cdnGoogle::Apis::YoutubeV3::CdnSettings

Brief description of the live stream cdn settings. Corresponds to the JSON property cdn



4943
4944
4945
# File 'generated/google/apis/youtube_v3/classes.rb', line 4943

def cdn
  @cdn
end

#content_detailsGoogle::Apis::YoutubeV3::LiveStreamContentDetails

Detailed settings of a stream. Corresponds to the JSON property contentDetails



4948
4949
4950
# File 'generated/google/apis/youtube_v3/classes.rb', line 4948

def content_details
  @content_details
end

#etagString

Etag of this resource. Corresponds to the JSON property etag

Returns:

  • (String)


4953
4954
4955
# File 'generated/google/apis/youtube_v3/classes.rb', line 4953

def etag
  @etag
end

#idString

The ID that YouTube assigns to uniquely identify the stream. Corresponds to the JSON property id

Returns:

  • (String)


4958
4959
4960
# File 'generated/google/apis/youtube_v3/classes.rb', line 4958

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "youtube# liveStream". Corresponds to the JSON property kind

Returns:

  • (String)


4964
4965
4966
# File 'generated/google/apis/youtube_v3/classes.rb', line 4964

def kind
  @kind
end

#snippetGoogle::Apis::YoutubeV3::LiveStreamSnippet

The snippet object contains basic details about the stream, including its channel, title, and description. Corresponds to the JSON property snippet



4970
4971
4972
# File 'generated/google/apis/youtube_v3/classes.rb', line 4970

def snippet
  @snippet
end

#statusGoogle::Apis::YoutubeV3::LiveStreamStatus

Brief description of the live stream status. Corresponds to the JSON property status



4975
4976
4977
# File 'generated/google/apis/youtube_v3/classes.rb', line 4975

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4982
4983
4984
4985
4986
4987
4988
4989
4990
# File 'generated/google/apis/youtube_v3/classes.rb', line 4982

def update!(**args)
  @cdn = args[:cdn] if args.key?(:cdn)
  @content_details = args[:content_details] if args.key?(:content_details)
  @etag = args[:etag] if args.key?(:etag)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @snippet = args[:snippet] if args.key?(:snippet)
  @status = args[:status] if args.key?(:status)
end