Class: Google::Apis::YoutubeV3::LiveBroadcastStatus

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

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

Returns a new instance of LiveBroadcastStatus



4101
4102
4103
# File 'generated/google/apis/youtube_v3/classes.rb', line 4101

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

Instance Attribute Details

#life_cycle_statusString

The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method. Corresponds to the JSON property lifeCycleStatus

Returns:

  • (String)


4080
4081
4082
# File 'generated/google/apis/youtube_v3/classes.rb', line 4080

def life_cycle_status
  @life_cycle_status
end

#live_broadcast_priorityString

Priority of the live broadcast event (internal state). Corresponds to the JSON property liveBroadcastPriority

Returns:

  • (String)


4085
4086
4087
# File 'generated/google/apis/youtube_v3/classes.rb', line 4085

def live_broadcast_priority
  @live_broadcast_priority
end

#privacy_statusString

The broadcast's privacy status. Note that the broadcast represents exactly one YouTube video, so the privacy settings are identical to those supported for videos. In addition, you can set this field by modifying the broadcast resource or by setting the privacyStatus field of the corresponding video resource. Corresponds to the JSON property privacyStatus

Returns:

  • (String)


4094
4095
4096
# File 'generated/google/apis/youtube_v3/classes.rb', line 4094

def privacy_status
  @privacy_status
end

#recording_statusString

The broadcast's recording status. Corresponds to the JSON property recordingStatus

Returns:

  • (String)


4099
4100
4101
# File 'generated/google/apis/youtube_v3/classes.rb', line 4099

def recording_status
  @recording_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4106
4107
4108
4109
4110
4111
# File 'generated/google/apis/youtube_v3/classes.rb', line 4106

def update!(**args)
  @life_cycle_status = args[:life_cycle_status] if args.key?(:life_cycle_status)
  @live_broadcast_priority = args[:live_broadcast_priority] if args.key?(:live_broadcast_priority)
  @privacy_status = args[:privacy_status] if args.key?(:privacy_status)
  @recording_status = args[:recording_status] if args.key?(:recording_status)
end