Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2AllowlistOnly
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2AllowlistOnly
- 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
-
#allowed_regions ⇒ Array<String>
Two letter unicode region codes to allow as defined by https://cldr.unicode.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2AllowlistOnly
constructor
A new instance of GoogleCloudIdentitytoolkitAdminV2AllowlistOnly.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_regions ⇒ Array<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
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 |