class Google::Apis::SqladminV1beta4::UserPasswordValidationPolicy

User level password validation policy.

Attributes

allowed_failed_attempts[RW]

Number of failed login attempts allowed before user get locked. Corresponds to the JSON property `allowedFailedAttempts` @return [Fixnum]

enable_failed_attempts_check[RW]

If true, failed login attempts check will be enabled. Corresponds to the JSON property `enableFailedAttemptsCheck` @return [Boolean]

enable_failed_attempts_check?[RW]

If true, failed login attempts check will be enabled. Corresponds to the JSON property `enableFailedAttemptsCheck` @return [Boolean]

enable_password_verification[RW]

If true, the user must specify the current password before changing the password. This flag is supported only for MySQL. Corresponds to the JSON property `enablePasswordVerification` @return [Boolean]

enable_password_verification?[RW]

If true, the user must specify the current password before changing the password. This flag is supported only for MySQL. Corresponds to the JSON property `enablePasswordVerification` @return [Boolean]

password_expiration_duration[RW]

Expiration duration after password is updated. Corresponds to the JSON property `passwordExpirationDuration` @return [String]

status[RW]

Read-only password status. Corresponds to the JSON property `status` @return [Google::Apis::SqladminV1beta4::PasswordStatus]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 3710
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 3715
def update!(**args)
  @allowed_failed_attempts = args[:allowed_failed_attempts] if args.key?(:allowed_failed_attempts)
  @enable_failed_attempts_check = args[:enable_failed_attempts_check] if args.key?(:enable_failed_attempts_check)
  @enable_password_verification = args[:enable_password_verification] if args.key?(:enable_password_verification)
  @password_expiration_duration = args[:password_expiration_duration] if args.key?(:password_expiration_duration)
  @status = args[:status] if args.key?(:status)
end