class Google::Apis::SqladminV1beta4::UserPasswordValidationPolicy
User
level password validation policy.
Attributes
Number of failed login attempts allowed before user get locked. Corresponds to the JSON property `allowedFailedAttempts` @return [Fixnum]
If true, failed login attempts check will be enabled. Corresponds to the JSON property `enableFailedAttemptsCheck` @return [Boolean]
If true, failed login attempts check will be enabled. Corresponds to the JSON property `enableFailedAttemptsCheck` @return [Boolean]
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]
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]
Expiration duration after password is updated. Corresponds to the JSON property `passwordExpirationDuration` @return [String]
Read-only password status. Corresponds to the JSON property `status` @return [Google::Apis::SqladminV1beta4::PasswordStatus]
Public Class Methods
# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 3798 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 3803 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