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 \ V1beta4Methods
__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 |
Google\Protobuf\Int32Value|null |
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 |
var |
Google\Protobuf\Int32Value
|
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 |
Google\Protobuf\Int32Value|null |
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 |
var |
Google\Protobuf\Int32Value
|
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 |
Google\Protobuf\BoolValue|null |
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 |
var |
Google\Protobuf\BoolValue
|
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 |
Google\Protobuf\Duration|null |
hasPasswordChangeInterval
clearPasswordChangeInterval
setPasswordChangeInterval
Minimum interval after which the password can be changed. This flag is only supported for PostgresSQL.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Duration
|
Returns | |
---|---|
Type | Description |
$this |
getEnablePasswordPolicy
Whether the password policy is enabled or not.
Returns | |
---|---|
Type | Description |
Google\Protobuf\BoolValue|null |
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 |
var |
Google\Protobuf\BoolValue
|
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 |