Google Cloud Sql Admin V1beta4 Client - Class UserPasswordValidationPolicy (0.6.0)

Reference documentation and code samples for the Google Cloud Sql Admin V1beta4 Client class UserPasswordValidationPolicy.

User level password validation policy.

Generated from protobuf message google.cloud.sql.v1beta4.UserPasswordValidationPolicy

Namespace

Google \ Cloud \ Sql \ V1beta4

Methods

__construct

Constructor.

Parameters
NameDescription
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\V1beta4\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
TypeDescription
int

setAllowedFailedAttempts

Number of failed login attempts allowed before user get locked.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPasswordExpirationDuration

Expiration duration after password is updated.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasPasswordExpirationDuration

clearPasswordExpirationDuration

setPasswordExpirationDuration

Expiration duration after password is updated.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this

getEnableFailedAttemptsCheck

If true, failed login attempts check will be enabled.

Returns
TypeDescription
bool

setEnableFailedAttemptsCheck

If true, failed login attempts check will be enabled.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getStatus

Output only. Read-only password status.

Returns
TypeDescription
Google\Cloud\Sql\V1beta4\PasswordStatus|null

hasStatus

clearStatus

setStatus

Output only. Read-only password status.

Parameter
NameDescription
var Google\Cloud\Sql\V1beta4\PasswordStatus
Returns
TypeDescription
$this

getEnablePasswordVerification

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

Returns
TypeDescription
bool

setEnablePasswordVerification

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

Parameter
NameDescription
var bool
Returns
TypeDescription
$this