Class: Google::Apis::YoutubeV3::LiveBroadcast
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::LiveBroadcast
- 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
-
#content_details ⇒ Google::Apis::YoutubeV3::LiveBroadcastContentDetails
Detailed settings of a broadcast.
-
#etag ⇒ String
Etag of this resource.
-
#id ⇒ String
The ID that YouTube assigns to uniquely identify the broadcast.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#monetization_details ⇒ Google::Apis::YoutubeV3::LiveBroadcastMonetizationDetails
Monetization settings of a broadcast.
-
#snippet ⇒ Google::Apis::YoutubeV3::LiveBroadcastSnippet
Basic broadcast information.
-
#statistics ⇒ Google::Apis::YoutubeV3::LiveBroadcastStatistics
Statistics about the live broadcast.
-
#status ⇒ Google::Apis::YoutubeV3::LiveBroadcastStatus
Live broadcast state.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LiveBroadcast
constructor
A new instance of LiveBroadcast.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LiveBroadcast
Returns a new instance of LiveBroadcast.
3780 3781 3782 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3780 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content_details ⇒ Google::Apis::YoutubeV3::LiveBroadcastContentDetails
Detailed settings of a broadcast.
Corresponds to the JSON property contentDetails
3741 3742 3743 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3741 def content_details @content_details end |
#etag ⇒ String
Etag of this resource.
Corresponds to the JSON property etag
3746 3747 3748 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3746 def etag @etag end |
#id ⇒ String
The ID that YouTube assigns to uniquely identify the broadcast.
Corresponds to the JSON property id
3751 3752 3753 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3751 def id @id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "youtube#
liveBroadcast".
Corresponds to the JSON property kind
3757 3758 3759 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3757 def kind @kind end |
#monetization_details ⇒ Google::Apis::YoutubeV3::LiveBroadcastMonetizationDetails
Monetization settings of a broadcast.
Corresponds to the JSON property monetizationDetails
3762 3763 3764 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3762 def monetization_details @monetization_details end |
#snippet ⇒ Google::Apis::YoutubeV3::LiveBroadcastSnippet
Basic broadcast information.
Corresponds to the JSON property snippet
3767 3768 3769 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3767 def snippet @snippet end |
#statistics ⇒ Google::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
3773 3774 3775 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3773 def statistics @statistics end |
#status ⇒ Google::Apis::YoutubeV3::LiveBroadcastStatus
Live broadcast state.
Corresponds to the JSON property status
3778 3779 3780 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3778 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3785 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 |