Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2CustomStrengthOptions

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) ⇒ GoogleCloudIdentitytoolkitV2CustomStrengthOptions

Returns a new instance of GoogleCloudIdentitytoolkitV2CustomStrengthOptions.



2109
2110
2111
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2109

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)


2078
2079
2080
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2078

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)


2084
2085
2086
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2084

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)


2090
2091
2092
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2090

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)


2096
2097
2098
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2096

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)


2102
2103
2104
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2102

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)


2107
2108
2109
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2107

def min_password_length
  @min_password_length
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2114
2115
2116
2117
2118
2119
2120
2121
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2114

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