Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions

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

Custom strength options to enforce on user passwords.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_characterBoolean Also known as: contains_lowercase_character?

The password must contain a lower case character. Corresponds to the JSON property containsLowercaseCharacter

Returns:

  • (Boolean)


375
376
377
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 375

def contains_lowercase_character
  @contains_lowercase_character
end

#contains_non_alphanumeric_characterBoolean Also known as: contains_non_alphanumeric_character?

The password must contain a non alpha numeric character. Corresponds to the JSON property containsNonAlphanumericCharacter

Returns:

  • (Boolean)


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_characterBoolean Also known as: contains_numeric_character?

The password must contain a number. Corresponds to the JSON property containsNumericCharacter

Returns:

  • (Boolean)


387
388
389
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 387

def contains_numeric_character
  @contains_numeric_character
end

#contains_uppercase_characterBoolean Also known as: contains_uppercase_character?

The password must contain an upper case character. Corresponds to the JSON property containsUppercaseCharacter

Returns:

  • (Boolean)


393
394
395
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 393

def contains_uppercase_character
  @contains_uppercase_character
end

#max_password_lengthFixnum

Maximum password length. No default max length Corresponds to the JSON property maxPasswordLength

Returns:

  • (Fixnum)


399
400
401
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 399

def max_password_length
  @max_password_length
end

#min_password_lengthFixnum

Minimum password length. Range from 6 to 30 Corresponds to the JSON property minPasswordLength

Returns:

  • (Fixnum)


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