Class: Google::Apis::SqladminV1beta4::PasswordValidationPolicy
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta4::PasswordValidationPolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sqladmin_v1beta4/classes.rb,
lib/google/apis/sqladmin_v1beta4/representations.rb,
lib/google/apis/sqladmin_v1beta4/representations.rb
Overview
Database instance local user password validation policy
Instance Attribute Summary collapse
-
#complexity ⇒ String
The complexity of the password.
-
#disallow_username_substring ⇒ Boolean
(also: #disallow_username_substring?)
Disallow username as a part of the password.
-
#min_length ⇒ Fixnum
Minimum number of characters allowed.
-
#password_change_interval ⇒ String
Minimum interval after which the password can be changed.
-
#reuse_interval ⇒ Fixnum
Number of previous passwords that cannot be reused.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PasswordValidationPolicy
constructor
A new instance of PasswordValidationPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PasswordValidationPolicy
Returns a new instance of PasswordValidationPolicy.
2555 2556 2557 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2555 def initialize(**args) update!(**args) end |
Instance Attribute Details
#complexity ⇒ String
The complexity of the password.
Corresponds to the JSON property complexity
2532 2533 2534 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2532 def complexity @complexity end |
#disallow_username_substring ⇒ Boolean Also known as: disallow_username_substring?
Disallow username as a part of the password.
Corresponds to the JSON property disallowUsernameSubstring
2537 2538 2539 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2537 def disallow_username_substring @disallow_username_substring end |
#min_length ⇒ Fixnum
Minimum number of characters allowed.
Corresponds to the JSON property minLength
2543 2544 2545 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2543 def min_length @min_length end |
#password_change_interval ⇒ String
Minimum interval after which the password can be changed.
Corresponds to the JSON property passwordChangeInterval
2548 2549 2550 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2548 def password_change_interval @password_change_interval end |
#reuse_interval ⇒ Fixnum
Number of previous passwords that cannot be reused.
Corresponds to the JSON property reuseInterval
2553 2554 2555 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2553 def reuse_interval @reuse_interval end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2560 2561 2562 2563 2564 2565 2566 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2560 def update!(**args) @complexity = args[:complexity] if args.key?(:complexity) @disallow_username_substring = args[:disallow_username_substring] if args.key?(:disallow_username_substring) @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 |