Class: Google::Apis::YoutubePartnerV1::TerritoryCondition
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::YoutubePartnerV1::TerritoryCondition
 
- 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
- 
  
    
      #territories  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of territories. 
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This field indicates whether the associated policy rule is or is not valid in the specified territories. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ TerritoryCondition 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of TerritoryCondition. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TerritoryCondition
Returns a new instance of TerritoryCondition
| 3680 3681 3682 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3680 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#territories ⇒ Array<String>
A list of territories. Each territory is an ISO 3166 two-letter country code..
Corresponds to the JSON property territories
| 3672 3673 3674 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3672 def territories @territories end | 
#type ⇒ String
This field indicates whether the associated policy rule is or is not valid in
the specified territories.
Corresponds to the JSON property type
| 3678 3679 3680 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3678 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3685 3686 3687 3688 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3685 def update!(**args) @territories = args[:territories] if args.key?(:territories) @type = args[:type] if args.key?(:type) end |