class Google::Apis::SqladminV1beta4::PasswordValidationPolicy

Database instance local user password validation policy

Attributes

complexity[RW]

The complexity of the password. Corresponds to the JSON property `complexity` @return [String]

disallow_username_substring[RW]

Disallow username as a part of the password. Corresponds to the JSON property `disallowUsernameSubstring` @return [Boolean]

disallow_username_substring?[RW]

Disallow username as a part of the password. Corresponds to the JSON property `disallowUsernameSubstring` @return [Boolean]

enable_password_policy[RW]

Whether the password policy is enabled or not. Corresponds to the JSON property `enablePasswordPolicy` @return [Boolean]

enable_password_policy?[RW]

Whether the password policy is enabled or not. Corresponds to the JSON property `enablePasswordPolicy` @return [Boolean]

min_length[RW]

Minimum number of characters allowed. Corresponds to the JSON property `minLength` @return [Fixnum]

password_change_interval[RW]

Minimum interval after which the password can be changed. This flag is only supported for PostgresSQL. Corresponds to the JSON property `passwordChangeInterval` @return [String]

reuse_interval[RW]

Number of previous passwords that cannot be reused. Corresponds to the JSON property `reuseInterval` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 2653
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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