Class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1UserCreds

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

Overview

A Cloud Firestore User Creds.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirestoreAdminV1UserCreds

Returns a new instance of GoogleFirestoreAdminV1UserCreds.



3352
3353
3354
# File 'lib/google/apis/firestore_v1/classes.rb', line 3352

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

Instance Attribute Details

#create_timeString

Output only. The time the user creds were created. Corresponds to the JSON property createTime

Returns:

  • (String)


3322
3323
3324
# File 'lib/google/apis/firestore_v1/classes.rb', line 3322

def create_time
  @create_time
end

#nameString

Identifier. The resource name of the UserCreds. Format: projects/project/ databases/database/userCreds/user_creds` Corresponds to the JSON propertyname`

Returns:

  • (String)


3328
3329
3330
# File 'lib/google/apis/firestore_v1/classes.rb', line 3328

def name
  @name
end

#resource_identityGoogle::Apis::FirestoreV1::GoogleFirestoreAdminV1ResourceIdentity

Describes a Resource Identity principal. Corresponds to the JSON property resourceIdentity



3333
3334
3335
# File 'lib/google/apis/firestore_v1/classes.rb', line 3333

def resource_identity
  @resource_identity
end

#secure_passwordString

Output only. The plaintext server-generated password for the user creds. Only populated in responses for CreateUserCreds and ResetUserPassword. Corresponds to the JSON property securePassword

Returns:

  • (String)


3339
3340
3341
# File 'lib/google/apis/firestore_v1/classes.rb', line 3339

def secure_password
  @secure_password
end

#stateString

Output only. Whether the user creds are enabled or disabled. Defaults to ENABLED on creation. Corresponds to the JSON property state

Returns:

  • (String)


3345
3346
3347
# File 'lib/google/apis/firestore_v1/classes.rb', line 3345

def state
  @state
end

#update_timeString

Output only. The time the user creds were last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


3350
3351
3352
# File 'lib/google/apis/firestore_v1/classes.rb', line 3350

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3357
3358
3359
3360
3361
3362
3363
3364
# File 'lib/google/apis/firestore_v1/classes.rb', line 3357

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @name = args[:name] if args.key?(:name)
  @resource_identity = args[:resource_identity] if args.key?(:resource_identity)
  @secure_password = args[:secure_password] if args.key?(:secure_password)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
end