Class: Google::Apis::YoutubeV3::AccessPolicy
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::YoutubeV3::AccessPolicy
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/youtube_v3/classes.rb,
lib/google/apis/youtube_v3/representations.rb,
lib/google/apis/youtube_v3/representations.rb 
Overview
Rights management policy for YouTube resources.
Instance Attribute Summary collapse
- 
  
    
      #allowed  ⇒ Boolean 
    
    
      (also: #allowed?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The value of allowed indicates whether the access to the policy is allowed or denied by default.
 - 
  
    
      #exception  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A list of region codes that identify countries where the default policy do not apply.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AccessPolicy 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of AccessPolicy.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ AccessPolicy
Returns a new instance of AccessPolicy.
      98 99 100  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 98 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#allowed ⇒ Boolean Also known as: allowed?
The value of allowed indicates whether the access to the policy is allowed or
denied by default.
Corresponds to the JSON property allowed
      89 90 91  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 89 def allowed @allowed end  | 
  
#exception ⇒ Array<String>
A list of region codes that identify countries where the default policy do not
apply.
Corresponds to the JSON property exception
      96 97 98  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 96 def exception @exception end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      103 104 105 106  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 103 def update!(**args) @allowed = args[:allowed] if args.key?(:allowed) @exception = args[:exception] if args.key?(:exception) end  |