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 \ V1Methods
__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 PostgreSQL. |
↳ enable_password_policy |
Google\Protobuf\BoolValue
Whether the password policy is enabled or not. |
↳ disallow_compromised_credentials |
Google\Protobuf\BoolValue
This field is deprecated and will be removed in a future version of the API. |
getMinLength
Minimum number of characters allowed.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Int32Value|null |
hasMinLength
clearMinLength
getMinLengthUnwrapped
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 |
setMinLengthUnwrapped
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
getReuseIntervalUnwrapped
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 |
setReuseIntervalUnwrapped
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
getDisallowUsernameSubstringUnwrapped
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 |
setDisallowUsernameSubstringUnwrapped
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 PostgreSQL.
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 PostgreSQL.
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
getEnablePasswordPolicyUnwrapped
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 |
setEnablePasswordPolicyUnwrapped
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 |
getDisallowCompromisedCredentials
This field is deprecated and will be removed in a future version of the API.
Returns | |
---|---|
Type | Description |
Google\Protobuf\BoolValue|null |
hasDisallowCompromisedCredentials
clearDisallowCompromisedCredentials
getDisallowCompromisedCredentialsUnwrapped
Returns the unboxed value from getDisallowCompromisedCredentials()
This field is deprecated and will be removed in a future version of the API.
Returns | |
---|---|
Type | Description |
bool|null |
setDisallowCompromisedCredentials
This field is deprecated and will be removed in a future version of the API.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\BoolValue
|
Returns | |
---|---|
Type | Description |
$this |
setDisallowCompromisedCredentialsUnwrapped
Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
This field is deprecated and will be removed in a future version of the API.
Parameter | |
---|---|
Name | Description |
var |
bool|null
|
Returns | |
---|---|
Type | Description |
$this |