Class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1SourceInfo

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

Information about the provenance of this database.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirestoreAdminV1SourceInfo

Returns a new instance of GoogleFirestoreAdminV1SourceInfo.



2588
2589
2590
# File 'lib/google/apis/firestore_v1/classes.rb', line 2588

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

Instance Attribute Details

#backupGoogle::Apis::FirestoreV1::GoogleFirestoreAdminV1BackupSource

Information about a backup that was used to restore a database. Corresponds to the JSON property backup



2579
2580
2581
# File 'lib/google/apis/firestore_v1/classes.rb', line 2579

def backup
  @backup
end

#operationString

The associated long-running operation. This field may not be set after the operation has completed. Format: projects/project/databases/database/ operations/operation`. Corresponds to the JSON propertyoperation`

Returns:

  • (String)


2586
2587
2588
# File 'lib/google/apis/firestore_v1/classes.rb', line 2586

def operation
  @operation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2593
2594
2595
2596
# File 'lib/google/apis/firestore_v1/classes.rb', line 2593

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