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

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.

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