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

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

Overview

A live stream describes a live ingestion point.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LiveStream

Returns a new instance of LiveStream.



5102
5103
5104
# File 'lib/google/apis/youtube_v3/classes.rb', line 5102

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



5068
5069
5070
# File 'lib/google/apis/youtube_v3/classes.rb', line 5068

def cdn
  @cdn
end

#content_detailsGoogle::Apis::YoutubeV3::LiveStreamContentDetails

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



5073
5074
5075
# File 'lib/google/apis/youtube_v3/classes.rb', line 5073

def content_details
  @content_details
end

#etagString

Etag of this resource. Corresponds to the JSON property etag

Returns:

  • (String)


5078
5079
5080
# File 'lib/google/apis/youtube_v3/classes.rb', line 5078

def etag
  @etag
end

#idString

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

Returns:

  • (String)


5083
5084
5085
# File 'lib/google/apis/youtube_v3/classes.rb', line 5083

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)


5089
5090
5091
# File 'lib/google/apis/youtube_v3/classes.rb', line 5089

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



5095
5096
5097
# File 'lib/google/apis/youtube_v3/classes.rb', line 5095

def snippet
  @snippet
end

#statusGoogle::Apis::YoutubeV3::LiveStreamStatus

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



5100
5101
5102
# File 'lib/google/apis/youtube_v3/classes.rb', line 5100

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5107
5108
5109
5110
5111
5112
5113
5114
5115
# File 'lib/google/apis/youtube_v3/classes.rb', line 5107

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