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



2924
2925
2926
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2924

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)


2901
2902
2903
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2901

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)


2906
2907
2908
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2906

def id
  @id
end

#ipi_numberString

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

Returns:

  • (String)


2911
2912
2913
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2911

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)


2917
2918
2919
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2917

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


2922
2923
2924
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2922

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2929
2930
2931
2932
2933
2934
2935
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2929

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