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.
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
getMinLength
Minimum number of characters allowed.
hasMinLength
clearMinLength
getMinLengthValue
Returns the unboxed value from getMinLength()
Minimum number of characters allowed.
int|null
setMinLength
Minimum number of characters allowed.
$this
setMinLengthValue
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
getReuseIntervalValue
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
setReuseIntervalValue
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
getDisallowUsernameSubstringValue
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
setDisallowUsernameSubstringValue
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
getEnablePasswordPolicyValue
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
setEnablePasswordPolicyValue
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