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

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

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) ⇒ LiveBroadcast

Returns a new instance of LiveBroadcast



3564
3565
3566
# File 'generated/google/apis/youtube_v3/classes.rb', line 3564

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



3529
3530
3531
# File 'generated/google/apis/youtube_v3/classes.rb', line 3529

def content_details
  @content_details
end

#etagString

Etag of this resource. Corresponds to the JSON property etag

Returns:

  • (String)


3534
3535
3536
# File 'generated/google/apis/youtube_v3/classes.rb', line 3534

def etag
  @etag
end

#idString

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

Returns:

  • (String)


3539
3540
3541
# File 'generated/google/apis/youtube_v3/classes.rb', line 3539

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)


3545
3546
3547
# File 'generated/google/apis/youtube_v3/classes.rb', line 3545

def kind
  @kind
end

#snippetGoogle::Apis::YoutubeV3::LiveBroadcastSnippet

The snippet object contains basic details about the event, including its title, description, start time, and end time. Corresponds to the JSON property snippet



3551
3552
3553
# File 'generated/google/apis/youtube_v3/classes.rb', line 3551

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



3557
3558
3559
# File 'generated/google/apis/youtube_v3/classes.rb', line 3557

def statistics
  @statistics
end

#statusGoogle::Apis::YoutubeV3::LiveBroadcastStatus

The status object contains information about the event's status. Corresponds to the JSON property status



3562
3563
3564
# File 'generated/google/apis/youtube_v3/classes.rb', line 3562

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3569
3570
3571
3572
3573
3574
3575
3576
3577
# File 'generated/google/apis/youtube_v3/classes.rb', line 3569

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