Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class UserPasswordValidationPolicy.
User level password validation policy.
Generated from protobuf message google.cloud.sql.v1.UserPasswordValidationPolicy
Namespace
Google \ Cloud \ Sql \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ allowed_failed_attempts
int
Number of failed login attempts allowed before user get locked.
↳ password_expiration_duration
↳ enable_failed_attempts_check
bool
If true, failed login attempts check will be enabled.
↳ status
↳ enable_password_verification
bool
If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
getAllowedFailedAttempts
Number of failed login attempts allowed before user get locked.
int
setAllowedFailedAttempts
Number of failed login attempts allowed before user get locked.
var
int
$this
getPasswordExpirationDuration
Expiration duration after password is updated.
hasPasswordExpirationDuration
clearPasswordExpirationDuration
setPasswordExpirationDuration
Expiration duration after password is updated.
$this
getEnableFailedAttemptsCheck
If true, failed login attempts check will be enabled.
bool
setEnableFailedAttemptsCheck
If true, failed login attempts check will be enabled.
var
bool
$this
getStatus
Output only. Read-only password status.
hasStatus
clearStatus
setStatus
Output only. Read-only password status.
$this
getEnablePasswordVerification
If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
bool
setEnablePasswordVerification
If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
var
bool
$this