Class: Google::Apis::YoutubePartnerV1::Whitelist

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/youtube_partner_v1/classes.rb,
generated/google/apis/youtube_partner_v1/representations.rb,
generated/google/apis/youtube_partner_v1/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) ⇒ Whitelist

Returns a new instance of Whitelist



3911
3912
3913
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3911

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

Instance Attribute Details

#idString

The YouTube channel ID that uniquely identifies the whitelisted channel. Corresponds to the JSON property id

Returns:

  • (String)


3898
3899
3900
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3898

def id
  @id
end

#kindString

The type of the API resource. For whitelist resources, this value is youtubePartner#whitelist. Corresponds to the JSON property kind

Returns:

  • (String)


3904
3905
3906
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3904

def kind
  @kind
end

#titleString

Title of the whitelisted YouTube channel. Corresponds to the JSON property title

Returns:

  • (String)


3909
3910
3911
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3909

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3916
3917
3918
3919
3920
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3916

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @title = args[:title] if args.key?(:title)
end