Class: Google::Apis::SqladminV1beta4::UserPasswordValidationPolicy
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::SqladminV1beta4::UserPasswordValidationPolicy
 
 
- 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
User level password validation policy.
Instance Attribute Summary collapse
- 
  
    
      #allowed_failed_attempts  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Number of failed login attempts allowed before user get locked.
 - 
  
    
      #enable_failed_attempts_check  ⇒ Boolean 
    
    
      (also: #enable_failed_attempts_check?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    
If true, failed login attempts check will be enabled.
 - 
  
    
      #enable_password_verification  ⇒ Boolean 
    
    
      (also: #enable_password_verification?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    
If true, the user must specify the current password before changing the password.
 - 
  
    
      #password_expiration_duration  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Expiration duration after password is updated.
 - 
  
    
      #status  ⇒ Google::Apis::SqladminV1beta4::PasswordStatus 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Read-only password status.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ UserPasswordValidationPolicy 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of UserPasswordValidationPolicy.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ UserPasswordValidationPolicy
Returns a new instance of UserPasswordValidationPolicy.
      4756 4757 4758  | 
    
      # File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 4756 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#allowed_failed_attempts ⇒ Fixnum
Number of failed login attempts allowed before user get locked.
Corresponds to the JSON property allowedFailedAttempts
      4731 4732 4733  | 
    
      # File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 4731 def allowed_failed_attempts @allowed_failed_attempts end  | 
  
#enable_failed_attempts_check ⇒ Boolean Also known as: enable_failed_attempts_check?
If true, failed login attempts check will be enabled.
Corresponds to the JSON property enableFailedAttemptsCheck
      4736 4737 4738  | 
    
      # File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 4736 def enable_failed_attempts_check @enable_failed_attempts_check end  | 
  
#enable_password_verification ⇒ Boolean Also known as: enable_password_verification?
If true, the user must specify the current password before changing the
password. This flag is supported only for MySQL.
Corresponds to the JSON property enablePasswordVerification
      4743 4744 4745  | 
    
      # File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 4743 def enable_password_verification @enable_password_verification end  | 
  
#password_expiration_duration ⇒ String
Expiration duration after password is updated.
Corresponds to the JSON property passwordExpirationDuration
      4749 4750 4751  | 
    
      # File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 4749 def password_expiration_duration @password_expiration_duration end  | 
  
#status ⇒ Google::Apis::SqladminV1beta4::PasswordStatus
Read-only password status.
Corresponds to the JSON property status
      4754 4755 4756  | 
    
      # File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 4754 def status @status end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      4761 4762 4763 4764 4765 4766 4767  | 
    
      # File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 4761 def update!(**args) @allowed_failed_attempts = args[:allowed_failed_attempts] if args.key?(:allowed_failed_attempts) @enable_failed_attempts_check = args[:enable_failed_attempts_check] if args.key?(:enable_failed_attempts_check) @enable_password_verification = args[:enable_password_verification] if args.key?(:enable_password_verification) @password_expiration_duration = args[:password_expiration_duration] if args.key?(:password_expiration_duration) @status = args[:status] if args.key?(:status) end  |