class Google::Apis::SqladminV1beta4::PasswordValidationPolicy
Database
instance local user password validation policy
Attributes
The complexity of the password. Corresponds to the JSON property `complexity` @return [String]
Disallow username as a part of the password. Corresponds to the JSON property `disallowUsernameSubstring` @return [Boolean]
Disallow username as a part of the password. Corresponds to the JSON property `disallowUsernameSubstring` @return [Boolean]
Whether the password policy is enabled or not. Corresponds to the JSON property `enablePasswordPolicy` @return [Boolean]
Whether the password policy is enabled or not. Corresponds to the JSON property `enablePasswordPolicy` @return [Boolean]
Minimum number of characters allowed. Corresponds to the JSON property `minLength` @return [Fixnum]
Minimum interval after which the password can be changed. This flag is only supported for PostgresSQL. Corresponds to the JSON property `passwordChangeInterval` @return [String]
Number of previous passwords that cannot be reused. Corresponds to the JSON property `reuseInterval` @return [Fixnum]
Public Class Methods
# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 2653 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 2658 def update!(**args) @complexity = args[:complexity] if args.key?(:complexity) @disallow_username_substring = args[:disallow_username_substring] if args.key?(:disallow_username_substring) @enable_password_policy = args[:enable_password_policy] if args.key?(:enable_password_policy) @min_length = args[:min_length] if args.key?(:min_length) @password_change_interval = args[:password_change_interval] if args.key?(:password_change_interval) @reuse_interval = args[:reuse_interval] if args.key?(:reuse_interval) end