Class: Google::Apis::SqladminV1::PasswordStatus

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sqladmin_v1/classes.rb,
lib/google/apis/sqladmin_v1/representations.rb,
lib/google/apis/sqladmin_v1/representations.rb

Overview

Read-only password status.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PasswordStatus

Returns a new instance of PasswordStatus.



2685
2686
2687
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2685

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#lockedBoolean Also known as: locked?

If true, user does not have login privileges. Corresponds to the JSON property locked

Returns:

  • (Boolean)


2677
2678
2679
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2677

def locked
  @locked
end

#password_expiration_timeString

The expiration time of the current password. Corresponds to the JSON property passwordExpirationTime

Returns:

  • (String)


2683
2684
2685
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2683

def password_expiration_time
  @password_expiration_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2690
2691
2692
2693
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2690

def update!(**args)
  @locked = args[:locked] if args.key?(:locked)
  @password_expiration_time = args[:password_expiration_time] if args.key?(:password_expiration_time)
end