Class: Google::Apis::YoutubeV3::AccessPolicy
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::AccessPolicy
- 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
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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AccessPolicy
Returns a new instance of AccessPolicy
42 43 44 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 42 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
33 34 35 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 33 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
40 41 42 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 40 def exception @exception end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
47 48 49 50 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 47 def update!(**args) @allowed = args[:allowed] if args.key?(:allowed) @exception = args[:exception] if args.key?(:exception) end |