Reference documentation and code samples for the Cloud SQL Admin V1 API class Google::Cloud::Sql::V1::PasswordValidationPolicy.
Database instance local user password validation policy. This message defines the password policy for local database users. When enabled, it enforces constraints on password complexity, length, and reuse. Keep this policy enabled to help prevent unauthorized access.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#complexity
def complexity() -> ::Google::Cloud::Sql::V1::PasswordValidationPolicy::Complexity
Returns
- (::Google::Cloud::Sql::V1::PasswordValidationPolicy::Complexity) — The complexity of the password.
#complexity=
def complexity=(value) -> ::Google::Cloud::Sql::V1::PasswordValidationPolicy::Complexity
Parameter
- value (::Google::Cloud::Sql::V1::PasswordValidationPolicy::Complexity) — The complexity of the password.
Returns
- (::Google::Cloud::Sql::V1::PasswordValidationPolicy::Complexity) — The complexity of the password.
#disallow_compromised_credentials
def disallow_compromised_credentials() -> ::Google::Protobuf::BoolValue
Returns
- (::Google::Protobuf::BoolValue) — This field is deprecated and will be removed in a future version of the API.
#disallow_compromised_credentials=
def disallow_compromised_credentials=(value) -> ::Google::Protobuf::BoolValue
Parameter
- value (::Google::Protobuf::BoolValue) — This field is deprecated and will be removed in a future version of the API.
Returns
- (::Google::Protobuf::BoolValue) — This field is deprecated and will be removed in a future version of the API.
#disallow_username_substring
def disallow_username_substring() -> ::Google::Protobuf::BoolValue
Returns
- (::Google::Protobuf::BoolValue) — Disallow username as a part of the password.
#disallow_username_substring=
def disallow_username_substring=(value) -> ::Google::Protobuf::BoolValue
Parameter
- value (::Google::Protobuf::BoolValue) — Disallow username as a part of the password.
Returns
- (::Google::Protobuf::BoolValue) — Disallow username as a part of the password.
#enable_password_policy
def enable_password_policy() -> ::Google::Protobuf::BoolValue
Returns
- (::Google::Protobuf::BoolValue) — Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.
#enable_password_policy=
def enable_password_policy=(value) -> ::Google::Protobuf::BoolValue
Parameter
- value (::Google::Protobuf::BoolValue) — Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.
Returns
- (::Google::Protobuf::BoolValue) — Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.
#min_length
def min_length() -> ::Google::Protobuf::Int32Value
Returns
- (::Google::Protobuf::Int32Value) — Minimum number of characters allowed.
#min_length=
def min_length=(value) -> ::Google::Protobuf::Int32Value
Parameter
- value (::Google::Protobuf::Int32Value) — Minimum number of characters allowed.
Returns
- (::Google::Protobuf::Int32Value) — Minimum number of characters allowed.
#password_change_interval
def password_change_interval() -> ::Google::Protobuf::Duration
Returns
- (::Google::Protobuf::Duration) — Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
#password_change_interval=
def password_change_interval=(value) -> ::Google::Protobuf::Duration
Parameter
- value (::Google::Protobuf::Duration) — Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
Returns
- (::Google::Protobuf::Duration) — Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
#reuse_interval
def reuse_interval() -> ::Google::Protobuf::Int32Value
Returns
- (::Google::Protobuf::Int32Value) — Number of previous passwords that cannot be reused.
#reuse_interval=
def reuse_interval=(value) -> ::Google::Protobuf::Int32Value
Parameter
- value (::Google::Protobuf::Int32Value) — Number of previous passwords that cannot be reused.
Returns
- (::Google::Protobuf::Int32Value) — Number of previous passwords that cannot be reused.