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

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

Instance Method Summary collapse

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

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


89
90
91
# File 'lib/google/apis/youtube_v3/classes.rb', line 89

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>)


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