Class: Google::Apis::SqladminV1beta4::PasswordStatus
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta4::PasswordStatus
- 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
Read-only password status.
Instance Attribute Summary collapse
-
#locked ⇒ Boolean
(also: #locked?)
If true, user does not have login privileges.
-
#password_expiration_time ⇒ String
The expiration time of the current password.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PasswordStatus
constructor
A new instance of PasswordStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PasswordStatus
Returns a new instance of PasswordStatus.
3410 3411 3412 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 3410 def initialize(**args) update!(**args) end |
Instance Attribute Details
#locked ⇒ Boolean Also known as: locked?
If true, user does not have login privileges.
Corresponds to the JSON property locked
3402 3403 3404 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 3402 def locked @locked end |
#password_expiration_time ⇒ String
The expiration time of the current password.
Corresponds to the JSON property passwordExpirationTime
3408 3409 3410 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 3408 def password_expiration_time @password_expiration_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3415 3416 3417 3418 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 3415 def update!(**args) @locked = args[:locked] if args.key?(:locked) @password_expiration_time = args[:password_expiration_time] if args.key?(:password_expiration_time) end |