Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2AllowlistOnly

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

Overview

Defines a policy of only allowing regions by explicitly adding them to an allowlist.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2AllowlistOnly

Returns a new instance of GoogleCloudIdentitytoolkitAdminV2AllowlistOnly.



59
60
61
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 59

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

Instance Attribute Details

#allowed_regionsArray<String>

Two letter unicode region codes to allow as defined by https://cldr.unicode. org/ The full list of these region codes is here: https://github.com/unicode- cldr/cldr-localenames-full/blob/master/main/en/territories.json Corresponds to the JSON property allowedRegions

Returns:

  • (Array<String>)


57
58
59
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 57

def allowed_regions
  @allowed_regions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



64
65
66
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 64

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