Class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1DatabaseSnapshot
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1::GoogleFirestoreAdminV1DatabaseSnapshot
- 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
-
#database ⇒ String
Required.
-
#snapshot_time ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleFirestoreAdminV1DatabaseSnapshot
constructor
A new instance of GoogleFirestoreAdminV1DatabaseSnapshot.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleFirestoreAdminV1DatabaseSnapshot
Returns a new instance of GoogleFirestoreAdminV1DatabaseSnapshot.
1356 1357 1358 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 1356 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database ⇒ String
Required. A name of the form projects/project_id/databases/database_id`
Corresponds to the JSON propertydatabase`
1348 1349 1350 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 1348 def database @database end |
#snapshot_time ⇒ String
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
1354 1355 1356 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 1354 def snapshot_time @snapshot_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1361 1362 1363 1364 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 1361 def update!(**args) @database = args[:database] if args.key?(:database) @snapshot_time = args[:snapshot_time] if args.key?(:snapshot_time) end |