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

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

Database instance local user password validation policy

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

Namespace

Google \ Cloud \ Sql \ V1beta4

Methods

__construct

Constructor.

Parameters
Name
Description
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 PostgresSQL.

↳ enable_password_policy
Google\Protobuf\BoolValue

Whether the password policy is enabled or not.

getMinLength

Minimum number of characters allowed.

Returns
Type
Description

hasMinLength

clearMinLength

getMinLengthValue

Returns the unboxed value from getMinLength()

Minimum number of characters allowed.

Returns
Type
Description
int|null

setMinLength

Minimum number of characters allowed.

Parameter
Name
Description
Returns
Type
Description
$this

setMinLengthValue

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

Minimum number of characters allowed.

Parameter
Name
Description
var
int|null
Returns
Type
Description
$this

getComplexity

The complexity of the password.

Returns
Type
Description
int

setComplexity

The complexity of the password.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getReuseInterval

Number of previous passwords that cannot be reused.

Returns
Type
Description

hasReuseInterval

clearReuseInterval

getReuseIntervalValue

Returns the unboxed value from getReuseInterval()

Number of previous passwords that cannot be reused.

Returns
Type
Description
int|null

setReuseInterval

Number of previous passwords that cannot be reused.

Parameter
Name
Description
Returns
Type
Description
$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
Name
Description
var
int|null
Returns
Type
Description
$this

getDisallowUsernameSubstring

Disallow username as a part of the password.

Returns
Type
Description

hasDisallowUsernameSubstring

clearDisallowUsernameSubstring

getDisallowUsernameSubstringValue

Returns the unboxed value from getDisallowUsernameSubstring()

Disallow username as a part of the password.

Returns
Type
Description
bool|null

setDisallowUsernameSubstring

Disallow username as a part of the password.

Parameter
Name
Description
Returns
Type
Description
$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
Name
Description
var
bool|null
Returns
Type
Description
$this

getPasswordChangeInterval

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

Returns
Type
Description

hasPasswordChangeInterval

clearPasswordChangeInterval

setPasswordChangeInterval

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

Parameter
Name
Description
Returns
Type
Description
$this

getEnablePasswordPolicy

Whether the password policy is enabled or not.

Returns
Type
Description

hasEnablePasswordPolicy

clearEnablePasswordPolicy

getEnablePasswordPolicyValue

Returns the unboxed value from getEnablePasswordPolicy()

Whether the password policy is enabled or not.

Returns
Type
Description
bool|null

setEnablePasswordPolicy

Whether the password policy is enabled or not.

Parameter
Name
Description
Returns
Type
Description
$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
Name
Description
var
bool|null
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: