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



1848
1849
1850
# File 'generated/google/apis/youtube_v3/classes.rb', line 1848

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)


1835
1836
1837
# File 'generated/google/apis/youtube_v3/classes.rb', line 1835

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)


1841
1842
1843
# File 'generated/google/apis/youtube_v3/classes.rb', line 1841

def long_uploads_status
  @long_uploads_status
end

#privacy_statusString

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

Returns:

  • (String)


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

def privacy_status
  @privacy_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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