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



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

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)


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

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)


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

def id
  @id
end

#ipi_numberString

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

Returns:

  • (String)


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

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)


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

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


2928
2929
2930
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2928

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2935
2936
2937
2938
2939
2940
2941
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2935

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