Class: Google::Apis::YoutubePartnerV1::Publisher

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

Returns a new instance of Publisher.


2734
2735
2736
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2734

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

Instance Attribute Details

#cae_numberString

The publisher's unique CAE (Compositeur, Auteur and Editeur) number. Corresponds to the JSON property caeNumber

Returns:

  • (String)

2711
2712
2713
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2711

def cae_number
  @cae_number
end

#idString

A value that YouTube assigns and uses to uniquely identify the publisher. Corresponds to the JSON property id

Returns:

  • (String)

2716
2717
2718
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2716

def id
  @id
end

#ipi_numberString

The publisher's unique IPI (Interested Parties Information) code. Corresponds to the JSON property ipiNumber

Returns:

  • (String)

2721
2722
2723
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2721

def ipi_number
  @ipi_number
end

#kindString

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

Returns:

  • (String)

2727
2728
2729
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2727

def kind
  @kind
end

#nameString

The publisher's name. Corresponds to the JSON property name

Returns:

  • (String)

2732
2733
2734
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2732

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2739
2740
2741
2742
2743
2744
2745
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2739

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