Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2PasswordPolicy

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

Configuration for password policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV2PasswordPolicy

Returns a new instance of GoogleCloudIdentitytoolkitV2PasswordPolicy.



2425
2426
2427
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2425

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

Instance Attribute Details

#allowed_non_alphanumeric_charactersArray<String>

Output only. Allowed characters which satisfy the non_alphanumeric requirement. Corresponds to the JSON property allowedNonAlphanumericCharacters

Returns:

  • (Array<String>)


2413
2414
2415
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2413

def allowed_non_alphanumeric_characters
  @allowed_non_alphanumeric_characters
end

#custom_strength_optionsGoogle::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2CustomStrengthOptions

Custom strength options to enforce on user passwords. Corresponds to the JSON property customStrengthOptions



2418
2419
2420
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2418

def custom_strength_options
  @custom_strength_options
end

#schema_versionFixnum

Output only. schema version number for the password policy Corresponds to the JSON property schemaVersion

Returns:

  • (Fixnum)


2423
2424
2425
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2423

def schema_version
  @schema_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2430
2431
2432
2433
2434
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2430

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