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.
data
array
Optional. Data for populating the Message object.
↳ min_length
↳ complexity
int
The complexity of the password.
↳ reuse_interval
↳ disallow_username_substring
↳ 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
↳ 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.
hasMinLength
clearMinLength
getMinLengthUnwrapped
Returns the unboxed value from getMinLength()
Minimum number of characters allowed.
int|null
setMinLength
Minimum number of characters allowed.
$this
setMinLengthUnwrapped
Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.
Minimum number of characters allowed.
var
int|null
$this
getComplexity
The complexity of the password.
int
setComplexity
The complexity of the password.
var
int
$this
getReuseInterval
Number of previous passwords that cannot be reused.
hasReuseInterval
clearReuseInterval
getReuseIntervalUnwrapped
Returns the unboxed value from getReuseInterval()
Number of previous passwords that cannot be reused.
int|null
setReuseInterval
Number of previous passwords that cannot be reused.
$this
setReuseIntervalUnwrapped
Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.
Number of previous passwords that cannot be reused.
var
int|null
$this
getDisallowUsernameSubstring
Disallow username as a part of the password.
hasDisallowUsernameSubstring
clearDisallowUsernameSubstring
getDisallowUsernameSubstringUnwrapped
Returns the unboxed value from getDisallowUsernameSubstring()
Disallow username as a part of the password.
bool|null
setDisallowUsernameSubstring
Disallow username as a part of the password.
$this
setDisallowUsernameSubstringUnwrapped
Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
Disallow username as a part of the password.
var
bool|null
$this
getPasswordChangeInterval
Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
hasPasswordChangeInterval
clearPasswordChangeInterval
setPasswordChangeInterval
Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
$this
getEnablePasswordPolicy
Whether the password policy is enabled or not.
hasEnablePasswordPolicy
clearEnablePasswordPolicy
getEnablePasswordPolicyUnwrapped
Returns the unboxed value from getEnablePasswordPolicy()
Whether the password policy is enabled or not.
bool|null
setEnablePasswordPolicy
Whether the password policy is enabled or not.
$this
setEnablePasswordPolicyUnwrapped
Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
Whether the password policy is enabled or not.
var
bool|null
$this
getDisallowCompromisedCredentials
This field is deprecated and will be removed in a future version of the API.
hasDisallowCompromisedCredentials
clearDisallowCompromisedCredentials
getDisallowCompromisedCredentialsUnwrapped
Returns the unboxed value from getDisallowCompromisedCredentials()
This field is deprecated and will be removed in a future version of the API.
bool|null
setDisallowCompromisedCredentials
This field is deprecated and will be removed in a future version of the API.
$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.
var
bool|null
$this