Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions
- 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
Custom strength options to enforce on user passwords.
Instance Attribute Summary collapse
-
#contains_lowercase_character ⇒ Boolean
(also: #contains_lowercase_character?)
The password must contain a lower case character.
-
#contains_non_alphanumeric_character ⇒ Boolean
(also: #contains_non_alphanumeric_character?)
The password must contain a non alpha numeric character.
-
#contains_numeric_character ⇒ Boolean
(also: #contains_numeric_character?)
The password must contain a number.
-
#contains_uppercase_character ⇒ Boolean
(also: #contains_uppercase_character?)
The password must contain an upper case character.
-
#max_password_length ⇒ Fixnum
Maximum password length.
-
#min_password_length ⇒ Fixnum
Minimum password length.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions
constructor
A new instance of GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions
Returns a new instance of GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions.
406 407 408 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 406 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contains_lowercase_character ⇒ Boolean Also known as: contains_lowercase_character?
The password must contain a lower case character.
Corresponds to the JSON property containsLowercaseCharacter
375 376 377 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 375 def contains_lowercase_character @contains_lowercase_character end |
#contains_non_alphanumeric_character ⇒ Boolean Also known as: contains_non_alphanumeric_character?
The password must contain a non alpha numeric character.
Corresponds to the JSON property containsNonAlphanumericCharacter
381 382 383 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 381 def contains_non_alphanumeric_character @contains_non_alphanumeric_character end |
#contains_numeric_character ⇒ Boolean Also known as: contains_numeric_character?
The password must contain a number.
Corresponds to the JSON property containsNumericCharacter
387 388 389 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 387 def contains_numeric_character @contains_numeric_character end |
#contains_uppercase_character ⇒ Boolean Also known as: contains_uppercase_character?
The password must contain an upper case character.
Corresponds to the JSON property containsUppercaseCharacter
393 394 395 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 393 def contains_uppercase_character @contains_uppercase_character end |
#max_password_length ⇒ Fixnum
Maximum password length. No default max length
Corresponds to the JSON property maxPasswordLength
399 400 401 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 399 def max_password_length @max_password_length end |
#min_password_length ⇒ Fixnum
Minimum password length. Range from 6 to 30
Corresponds to the JSON property minPasswordLength
404 405 406 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 404 def min_password_length @min_password_length end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
411 412 413 414 415 416 417 418 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 411 def update!(**args) @contains_lowercase_character = args[:contains_lowercase_character] if args.key?(:contains_lowercase_character) @contains_non_alphanumeric_character = args[:contains_non_alphanumeric_character] if args.key?(:contains_non_alphanumeric_character) @contains_numeric_character = args[:contains_numeric_character] if args.key?(:contains_numeric_character) @contains_uppercase_character = args[:contains_uppercase_character] if args.key?(:contains_uppercase_character) @max_password_length = args[:max_password_length] if args.key?(:max_password_length) @min_password_length = args[:min_password_length] if args.key?(:min_password_length) end |