Class: Google::Apis::YoutubeV3::ChannelStatus

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

JSON template for the status part of a channel.

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

Returns a new instance of ChannelStatus


1846
1847
1848
# File 'generated/google/apis/youtube_v3/classes.rb', line 1846

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

Instance Attribute Details

#is_linkedBoolean Also known as: is_linked?

If true, then the user is linked to either a YouTube username or G+ account. Otherwise, the user doesn't have a public YouTube identity. Corresponds to the JSON property isLinked

Returns:

  • (Boolean)

1833
1834
1835
# File 'generated/google/apis/youtube_v3/classes.rb', line 1833

def is_linked
  @is_linked
end

#long_uploads_statusString

The long uploads status of this channel. See Corresponds to the JSON property longUploadsStatus

Returns:

  • (String)

1839
1840
1841
# File 'generated/google/apis/youtube_v3/classes.rb', line 1839

def long_uploads_status
  @long_uploads_status
end

#privacy_statusString

Privacy status of the channel. Corresponds to the JSON property privacyStatus

Returns:

  • (String)

1844
1845
1846
# File 'generated/google/apis/youtube_v3/classes.rb', line 1844

def privacy_status
  @privacy_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1851
1852
1853
1854
1855
# File 'generated/google/apis/youtube_v3/classes.rb', line 1851

def update!(**args)
  @is_linked = args[:is_linked] if args.key?(:is_linked)
  @long_uploads_status = args[:long_uploads_status] if args.key?(:long_uploads_status)
  @privacy_status = args[:privacy_status] if args.key?(:privacy_status)
end