Cloud SQL Admin V1 API - Class Google::Cloud::Sql::V1::PasswordValidationPolicy (v0.1.0)

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

#complexity=

def complexity=(value) -> ::Google::Cloud::Sql::V1::PasswordValidationPolicy::Complexity
Parameter
Returns

#disallow_compromised_credentials

def disallow_compromised_credentials() -> ::Google::Protobuf::BoolValue
Returns

#disallow_compromised_credentials=

def disallow_compromised_credentials=(value) -> ::Google::Protobuf::BoolValue
Parameter
Returns

#disallow_username_substring

def disallow_username_substring() -> ::Google::Protobuf::BoolValue
Returns

#disallow_username_substring=

def disallow_username_substring=(value) -> ::Google::Protobuf::BoolValue
Parameter
Returns

#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

#min_length=

def min_length=(value) -> ::Google::Protobuf::Int32Value
Parameter
Returns

#password_change_interval

def password_change_interval() -> ::Google::Protobuf::Duration
Returns

#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

#reuse_interval

def reuse_interval() -> ::Google::Protobuf::Int32Value
Returns

#reuse_interval=

def reuse_interval=(value) -> ::Google::Protobuf::Int32Value
Parameter
Returns