Class: Google::Apis::YoutubePartnerV1::TerritoryCondition

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/youtube_partner_v1/classes.rb,
generated/google/apis/youtube_partner_v1/representations.rb,
generated/google/apis/youtube_partner_v1/representations.rb

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

Returns a new instance of TerritoryCondition.



3381
3382
3383
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3381

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#territoriesArray<String>

A list of territories. Each territory is an ISO 3166 two-letter country code.. Corresponds to the JSON property territories

Returns:

  • (Array<String>)


3373
3374
3375
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3373

def territories
  @territories
end

#typeString

This field indicates whether the associated policy rule is or is not valid in the specified territories. Corresponds to the JSON property type

Returns:

  • (String)


3379
3380
3381
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3379

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3386
3387
3388
3389
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3386

def update!(**args)
  @territories = args[:territories] if args.key?(:territories)
  @type = args[:type] if args.key?(:type)
end