# Cloud Bigtable Admin V2 API - Class Google::Cloud::Bigtable::Admin::V2::Snapshot (v1.17.0)

1.17.0 (latest) 1.16.0 1.15.1 1.14.0 1.13.0 1.12.0 1.11.1 1.10.0 1.9.1 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.1 1.1.0 1.0.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.3 0.20.0 0.19.0 0.18.0 0.17.0 0.16.3 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.1 0.8.1 Reference documentation and code samples for the Cloud Bigtable Admin V2 API class Google::Cloud::Bigtable::Admin::V2::Snapshot.

A snapshot of a table at a particular time. A snapshot can be used as a
checkpoint for data restoration or a data source for a new table.


<br />

Note: This is a private alpha release of Cloud Bigtable snapshots. This
feature is not currently available to most Cloud Bigtable customers. This
feature might be changed in backward-incompatible ways and is not recommended
for production use. It is not subject to any SLA or deprecation policy.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the snapshot is created.

### #data_size_bytes

    def data_size_bytes() -> ::Integer

**Returns**

- (::Integer) --- Output only. The size of the data in the source table at the time the snapshot was taken. In some cases, this value may be computed asynchronously via a background process and a placeholder of 0 will be used in the meantime.

### #delete_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Protobuf-Timestamp)) --- The time when the snapshot will be deleted. The maximum amount of time a snapshot can stay active is 365 days. If 'ttl' is not specified, the default maximum of 365 days will be used.

### #delete_time=

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

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Protobuf-Timestamp)) --- The time when the snapshot will be deleted. The maximum amount of time a snapshot can stay active is 365 days. If 'ttl' is not specified, the default maximum of 365 days will be used.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Protobuf-Timestamp)) --- The time when the snapshot will be deleted. The maximum amount of time a snapshot can stay active is 365 days. If 'ttl' is not specified, the default maximum of 365 days will be used.

### #description

    def description() -> ::String

**Returns**

- ([::String](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-Type-String)) --- Description of the snapshot.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** ([::String](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-Type-String)) --- Description of the snapshot.
**Returns**

- ([::String](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-Type-String)) --- Description of the snapshot.

### #name

    def name() -> ::String

**Returns**

- ([::String](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-Type-String)) --- The unique name of the snapshot. Values are of the form `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** ([::String](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-Type-String)) --- The unique name of the snapshot. Values are of the form `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
**Returns**

- ([::String](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-Type-String)) --- The unique name of the snapshot. Values are of the form `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.

### #source_table

    def source_table() -> ::Google::Cloud::Bigtable::Admin::V2::Table

**Returns**

- ([::Google::Cloud::Bigtable::Admin::V2::Table](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-Table)) --- Output only. The source table at the time the snapshot was taken.

### #state

    def state() -> ::Google::Cloud::Bigtable::Admin::V2::Snapshot::State

**Returns**

- ([::Google::Cloud::Bigtable::Admin::V2::Snapshot::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-Snapshot-State)) --- Output only. The current state of the snapshot.