# Cloud Firestore Admin V1 API - Class Google::Cloud::Firestore::Admin::V1::PitrSnapshot (v1.13.0)

1.13.0 (latest) 1.12.1 1.11.0 1.10.0 1.9.1 1.8.0 1.7.0 1.6.0 1.5.0 1.4.1 1.3.0 1.2.0 1.1.0 1.0.1 0.18.0 0.17.1 0.16.0 0.15.0 0.14.3 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.5 Reference documentation and code samples for the Cloud Firestore Admin V1 API class Google::Cloud::Firestore::Admin::V1::PitrSnapshot.

A consistent snapshot of a database at a specific point in time.
A PITR (Point-in-time recovery) snapshot with previous versions of a
database's data is available for every minute up to the associated database's
data retention period. If the PITR feature is enabled, the retention period
is 7 days; otherwise, it is one hour.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #database

    def database() -> ::String

**Returns**

- (::String) --- Required. The name of the database that this was a snapshot of. Format: `projects/{project}/databases/{database}`.

### #database=

    def database=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The name of the database that this was a snapshot of. Format: `projects/{project}/databases/{database}`.
**Returns**

- (::String) --- Required. The name of the database that this was a snapshot of. Format: `projects/{project}/databases/{database}`.

### #database_uid

    def database_uid() -> ::String

**Returns**

- (::String) --- Output only. Public UUID of the database the snapshot was associated with.

### #snapshot_time

    def snapshot_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/Google-Protobuf-Timestamp)) --- Required. Snapshot time of the database.

### #snapshot_time=

    def snapshot_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/Google-Protobuf-Timestamp)) --- Required. Snapshot time of the database.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/Google-Protobuf-Timestamp)) --- Required. Snapshot time of the database.