Class: Google::Apis::YoutubeV3::AccessPolicy

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#allowedBoolean 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

Returns:

  • (Boolean)


33
34
35
# File 'generated/google/apis/youtube_v3/classes.rb', line 33

def allowed
  @allowed
end

#exceptionArray<String>

A list of region codes that identify countries where the default policy do not apply. Corresponds to the JSON property exception

Returns:

  • (Array<String>)


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