Google Cloud Sql Admin V1 Client - Class PasswordValidationPolicy (0.10.0)

Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class PasswordValidationPolicy.

Database instance local user password validation policy

Generated from protobuf message google.cloud.sql.v1.PasswordValidationPolicy

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ min_length Google\Protobuf\Int32Value

Minimum number of characters allowed.

↳ complexity int

The complexity of the password.

↳ reuse_interval Google\Protobuf\Int32Value

Number of previous passwords that cannot be reused.

↳ disallow_username_substring Google\Protobuf\BoolValue

Disallow username as a part of the password.

↳ password_change_interval Google\Protobuf\Duration

Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.

↳ enable_password_policy Google\Protobuf\BoolValue

Whether the password policy is enabled or not.

↳ disallow_compromised_credentials Google\Protobuf\BoolValue

Disallow credentials that have been previously compromised by a public data breach.

getMinLength

Minimum number of characters allowed.

Returns
TypeDescription
Google\Protobuf\Int32Value|null

hasMinLength

clearMinLength

getMinLengthValue

Returns the unboxed value from getMinLength()

Minimum number of characters allowed.

Returns
TypeDescription
int|null

setMinLength

Minimum number of characters allowed.

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

setMinLengthValue

Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.

Minimum number of characters allowed.

Parameter
NameDescription
var int|null
Returns
TypeDescription
$this

getComplexity

The complexity of the password.

Returns
TypeDescription
int

setComplexity

The complexity of the password.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getReuseInterval

Number of previous passwords that cannot be reused.

Returns
TypeDescription
Google\Protobuf\Int32Value|null

hasReuseInterval

clearReuseInterval

getReuseIntervalValue

Returns the unboxed value from getReuseInterval()

Number of previous passwords that cannot be reused.

Returns
TypeDescription
int|null

setReuseInterval

Number of previous passwords that cannot be reused.

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

setReuseIntervalValue

Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.

Number of previous passwords that cannot be reused.

Parameter
NameDescription
var int|null
Returns
TypeDescription
$this

getDisallowUsernameSubstring

Disallow username as a part of the password.

Returns
TypeDescription
Google\Protobuf\BoolValue|null

hasDisallowUsernameSubstring

clearDisallowUsernameSubstring

getDisallowUsernameSubstringValue

Returns the unboxed value from getDisallowUsernameSubstring()

Disallow username as a part of the password.

Returns
TypeDescription
bool|null

setDisallowUsernameSubstring

Disallow username as a part of the password.

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

setDisallowUsernameSubstringValue

Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

Disallow username as a part of the password.

Parameter
NameDescription
var bool|null
Returns
TypeDescription
$this

getPasswordChangeInterval

Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasPasswordChangeInterval

clearPasswordChangeInterval

setPasswordChangeInterval

Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.

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

getEnablePasswordPolicy

Whether the password policy is enabled or not.

Returns
TypeDescription
Google\Protobuf\BoolValue|null

hasEnablePasswordPolicy

clearEnablePasswordPolicy

getEnablePasswordPolicyValue

Returns the unboxed value from getEnablePasswordPolicy()

Whether the password policy is enabled or not.

Returns
TypeDescription
bool|null

setEnablePasswordPolicy

Whether the password policy is enabled or not.

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

setEnablePasswordPolicyValue

Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

Whether the password policy is enabled or not.

Parameter
NameDescription
var bool|null
Returns
TypeDescription
$this

getDisallowCompromisedCredentials

Disallow credentials that have been previously compromised by a public data breach.

Returns
TypeDescription
Google\Protobuf\BoolValue|null

hasDisallowCompromisedCredentials

clearDisallowCompromisedCredentials

getDisallowCompromisedCredentialsValue

Returns the unboxed value from getDisallowCompromisedCredentials()

Disallow credentials that have been previously compromised by a public data breach.

Returns
TypeDescription
bool|null

setDisallowCompromisedCredentials

Disallow credentials that have been previously compromised by a public data breach.

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

setDisallowCompromisedCredentialsValue

Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

Disallow credentials that have been previously compromised by a public data breach.

Parameter
NameDescription
var bool|null
Returns
TypeDescription
$this