Google Cloud Sql Admin V1 Client - Class UserPasswordValidationPolicy (0.18.0)

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 \ V1

Methods

__construct

Constructor.

Parameters
Name Description
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 Google\Protobuf\Duration

Expiration duration after password is updated.

↳ enable_failed_attempts_check bool

If true, failed login attempts check will be enabled.

↳ status Google\Cloud\Sql\V1\PasswordStatus

Output only. Read-only password 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.

Returns
Type Description
int

setAllowedFailedAttempts

Number of failed login attempts allowed before user get locked.

Parameter
Name Description
var int
Returns
Type Description
$this

getPasswordExpirationDuration

Expiration duration after password is updated.

Returns
Type Description
Google\Protobuf\Duration|null

hasPasswordExpirationDuration

clearPasswordExpirationDuration

setPasswordExpirationDuration

Expiration duration after password is updated.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this

getEnableFailedAttemptsCheck

If true, failed login attempts check will be enabled.

Returns
Type Description
bool

setEnableFailedAttemptsCheck

If true, failed login attempts check will be enabled.

Parameter
Name Description
var bool
Returns
Type Description
$this

getStatus

Output only. Read-only password status.

Returns
Type Description
Google\Cloud\Sql\V1\PasswordStatus|null

hasStatus

clearStatus

setStatus

Output only. Read-only password status.

Parameter
Name Description
var Google\Cloud\Sql\V1\PasswordStatus
Returns
Type Description
$this

getEnablePasswordVerification

If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.

Returns
Type Description
bool

setEnablePasswordVerification

If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.

Parameter
Name Description
var bool
Returns
Type Description
$this