Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2AllowByDefault

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 allowing every region by default and adding disallowed regions to a disallow list.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2AllowByDefault

Returns a new instance of GoogleCloudIdentitytoolkitAdminV2AllowByDefault.



37
38
39
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 37

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

Instance Attribute Details

#disallowed_regionsArray<String>

Two letter unicode region codes to disallow 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 disallowedRegions

Returns:

  • (Array<String>)


35
36
37
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 35

def disallowed_regions
  @disallowed_regions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



42
43
44
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 42

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