Class: Google::Apis::YoutubePartnerV1::TerritoryOwners
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::YoutubePartnerV1::TerritoryOwners
 
- 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
- 
  
    
      #owner  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the asset's owner or rights administrator. 
- 
  
    
      #publisher  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the asset's publisher. 
- 
  
    
      #ratio  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The percentage of the asset that the owner controls or administers. 
- 
  
    
      #territories  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of territories where the owner owns (or does not own) the asset. 
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This field indicates whether the ownership data applies or does not apply in the specified territories. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ TerritoryOwners 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of TerritoryOwners. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TerritoryOwners
Returns a new instance of TerritoryOwners
| 3755 3756 3757 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3755 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#owner ⇒ String
The name of the asset's owner or rights administrator.
Corresponds to the JSON property owner
| 3724 3725 3726 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3724 def owner @owner end | 
#publisher ⇒ String
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
| 3731 3732 3733 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3731 def publisher @publisher end | 
#ratio ⇒ Float
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
| 3741 3742 3743 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3741 def ratio @ratio end | 
#territories ⇒ Array<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
| 3747 3748 3749 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3747 def territories @territories end | 
#type ⇒ String
This field indicates whether the ownership data applies or does not apply in
the specified territories.
Corresponds to the JSON property type
| 3753 3754 3755 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3753 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3760 3761 3762 3763 3764 3765 3766 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3760 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 |