Class: Google::Apis::YoutubeV3::LiveBroadcast

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 liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LiveBroadcast

Returns a new instance of LiveBroadcast.



3637
3638
3639
# File 'lib/google/apis/youtube_v3/classes.rb', line 3637

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

Instance Attribute Details

#content_detailsGoogle::Apis::YoutubeV3::LiveBroadcastContentDetails

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



3598
3599
3600
# File 'lib/google/apis/youtube_v3/classes.rb', line 3598

def content_details
  @content_details
end

#etagString

Etag of this resource. Corresponds to the JSON property etag

Returns:

  • (String)


3603
3604
3605
# File 'lib/google/apis/youtube_v3/classes.rb', line 3603

def etag
  @etag
end

#idString

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

Returns:

  • (String)


3608
3609
3610
# File 'lib/google/apis/youtube_v3/classes.rb', line 3608

def id
  @id
end

#kindString

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

Returns:

  • (String)


3614
3615
3616
# File 'lib/google/apis/youtube_v3/classes.rb', line 3614

def kind
  @kind
end

#monetization_detailsGoogle::Apis::YoutubeV3::LiveBroadcastMonetizationDetails

Monetization settings of a broadcast. Corresponds to the JSON property monetizationDetails



3619
3620
3621
# File 'lib/google/apis/youtube_v3/classes.rb', line 3619

def monetization_details
  @monetization_details
end

#snippetGoogle::Apis::YoutubeV3::LiveBroadcastSnippet

Basic broadcast information. Corresponds to the JSON property snippet



3624
3625
3626
# File 'lib/google/apis/youtube_v3/classes.rb', line 3624

def snippet
  @snippet
end

#statisticsGoogle::Apis::YoutubeV3::LiveBroadcastStatistics

Statistics about the live broadcast. These represent a snapshot of the values at the time of the request. Statistics are only returned for live broadcasts. Corresponds to the JSON property statistics



3630
3631
3632
# File 'lib/google/apis/youtube_v3/classes.rb', line 3630

def statistics
  @statistics
end

#statusGoogle::Apis::YoutubeV3::LiveBroadcastStatus

Live broadcast state. Corresponds to the JSON property status



3635
3636
3637
# File 'lib/google/apis/youtube_v3/classes.rb', line 3635

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
# File 'lib/google/apis/youtube_v3/classes.rb', line 3642

def update!(**args)
  @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)
  @monetization_details = args[:monetization_details] if args.key?(:monetization_details)
  @snippet = args[:snippet] if args.key?(:snippet)
  @statistics = args[:statistics] if args.key?(:statistics)
  @status = args[:status] if args.key?(:status)
end