Class: Google::Apis::YoutubePartnerV1::TerritoryOwners

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

Returns a new instance of TerritoryOwners



3636
3637
3638
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3636

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

Instance Attribute Details

#ownerString

The name of the asset's owner or rights administrator. Corresponds to the JSON property owner

Returns:

  • (String)


3605
3606
3607
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3605

def owner
  @owner
end

#publisherString

The name of the asset's publisher. This field is only used for composition assets, and it is used when the asset owner is not known to have a formal relationship established with YouTube. Corresponds to the JSON property publisher

Returns:

  • (String)


3612
3613
3614
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3612

def publisher
  @publisher
end

#ratioFloat

The percentage of the asset that the owner controls or administers. For composition assets, the value can be any value between 0 and 100 inclusive. For all other assets, the only valid values are 100, which indicates that the owner completely owns the asset in the specified territories, and 0, which indicates that you are removing ownership of the asset in the specified territories. Corresponds to the JSON property ratio

Returns:

  • (Float)


3622
3623
3624
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3622

def ratio
  @ratio
end

#territoriesArray<String>

A list of territories where the owner owns (or does not own) the asset. Each territory is an ISO 3166 two-letter country code.. Corresponds to the JSON property territories

Returns:

  • (Array<String>)


3628
3629
3630
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3628

def territories
  @territories
end

#typeString

This field indicates whether the ownership data applies or does not apply in the specified territories. Corresponds to the JSON property type

Returns:

  • (String)


3634
3635
3636
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3634

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3641
3642
3643
3644
3645
3646
3647
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3641

def update!(**args)
  @owner = args[:owner] if args.key?(:owner)
  @publisher = args[:publisher] if args.key?(:publisher)
  @ratio = args[:ratio] if args.key?(:ratio)
  @territories = args[:territories] if args.key?(:territories)
  @type = args[:type] if args.key?(:type)
end