Class: Google::Apis::YoutubeV3::VideoContentDetailsRegionRestriction
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::YoutubeV3::VideoContentDetailsRegionRestriction
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/youtube_v3/classes.rb,
 generated/google/apis/youtube_v3/representations.rb,
 generated/google/apis/youtube_v3/representations.rb
Overview
DEPRECATED Region restriction of the video.
Instance Attribute Summary collapse
- 
  
    
      #allowed  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of region codes that identify countries where the video is viewable. 
- 
  
    
      #blocked  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of region codes that identify countries where the video is blocked. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ VideoContentDetailsRegionRestriction 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of VideoContentDetailsRegionRestriction. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ VideoContentDetailsRegionRestriction
Returns a new instance of VideoContentDetailsRegionRestriction
| 7456 7457 7458 | # File 'generated/google/apis/youtube_v3/classes.rb', line 7456 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#allowed ⇒ Array<String>
A list of region codes that identify countries where the video is viewable. If
this property is present and a country is not listed in its value, then the
video is blocked from appearing in that country. If this property is present
and contains an empty list, the video is blocked in all countries.
Corresponds to the JSON property allowed
| 7446 7447 7448 | # File 'generated/google/apis/youtube_v3/classes.rb', line 7446 def allowed @allowed end | 
#blocked ⇒ Array<String>
A list of region codes that identify countries where the video is blocked. If
this property is present and a country is not listed in its value, then the
video is viewable in that country. If this property is present and contains an
empty list, the video is viewable in all countries.
Corresponds to the JSON property blocked
| 7454 7455 7456 | # File 'generated/google/apis/youtube_v3/classes.rb', line 7454 def blocked @blocked end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 7461 7462 7463 7464 | # File 'generated/google/apis/youtube_v3/classes.rb', line 7461 def update!(**args) @allowed = args[:allowed] if args.key?(:allowed) @blocked = args[:blocked] if args.key?(:blocked) end |