Class: Google::Apis::SqladminV1beta4::PasswordStatus

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PasswordStatus

Returns a new instance of PasswordStatus.



2530
2531
2532
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2530

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)


2522
2523
2524
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2522

def locked
  @locked
end

#password_expiration_timeString

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

Returns:

  • (String)


2528
2529
2530
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2528

def password_expiration_time
  @password_expiration_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2535
2536
2537
2538
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2535

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