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

Constructor Details

#initialize(**args) ⇒ Whitelist

Returns a new instance of Whitelist.



4516
4517
4518
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 4516

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)


4503
4504
4505
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 4503

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)


4509
4510
4511
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 4509

def kind
  @kind
end

#titleString

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

Returns:

  • (String)


4514
4515
4516
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 4514

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4521
4522
4523
4524
4525
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 4521

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