Class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1DatabaseSnapshot

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 consistent snapshot of a database at a specific point in time.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirestoreAdminV1DatabaseSnapshot

Returns a new instance of GoogleFirestoreAdminV1DatabaseSnapshot.



1333
1334
1335
# File 'lib/google/apis/firestore_v1/classes.rb', line 1333

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

Instance Attribute Details

#databaseString

Required. A name of the form projects/project_id/databases/database_id` Corresponds to the JSON propertydatabase`

Returns:

  • (String)


1325
1326
1327
# File 'lib/google/apis/firestore_v1/classes.rb', line 1325

def database
  @database
end

#snapshot_timeString

Required. The timestamp at which the database snapshot is taken. The requested timestamp must be a whole minute within the PITR window. Corresponds to the JSON property snapshotTime

Returns:

  • (String)


1331
1332
1333
# File 'lib/google/apis/firestore_v1/classes.rb', line 1331

def snapshot_time
  @snapshot_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1338
1339
1340
1341
# File 'lib/google/apis/firestore_v1/classes.rb', line 1338

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