# Filestore V1 API - Class Google::Cloud::Filestore::V1::Snapshot (v2.7.0)

2.7.0 (latest) 2.6.1 2.5.0 2.4.1 2.3.1 2.2.0 2.1.1 2.0.0 1.2.0 1.1.0 1.0.1 0.9.0 0.8.2 0.7.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Filestore V1 API class Google::Cloud::Filestore::V1::Snapshot.

A Filestore snapshot.

## 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-filestore-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the snapshot was created.

### #description

    def description() -> ::String

**Returns**

- (::String) --- A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
**Returns**

- (::String) --- A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.

### #filesystem_used_bytes

    def filesystem_used_bytes() -> ::Integer

**Returns**

- (::Integer) --- Output only. The amount of bytes needed to allocate a full copy of the snapshot content

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Resource labels to represent user provided metadata.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Resource labels to represent user provided metadata.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Resource labels to represent user provided metadata.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.

### #state

    def state() -> ::Google::Cloud::Filestore::V1::Snapshot::State

**Returns**

- ([::Google::Cloud::Filestore::V1::Snapshot::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-Snapshot-State)) --- Output only. The snapshot state.

### #tags

    def tags() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Input only. Immutable. Tag key-value pairs bound to this
  resource. Each key must be a namespaced name and each value a short name.
  Example:
  "123456789012/environment" : "production",
  "123456789013/costCenter" : "marketing"
  See the documentation for more information:

  - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key
  - Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value

### #tags=

    def tags=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) ---

  Optional. Input only. Immutable. Tag key-value pairs bound to this
  resource. Each key must be a namespaced name and each value a short name.
  Example:
  "123456789012/environment" : "production",
  "123456789013/costCenter" : "marketing"
  See the documentation for more information:
  - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key
  - Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Input only. Immutable. Tag key-value pairs bound to this
  resource. Each key must be a namespaced name and each value a short name.
  Example:
  "123456789012/environment" : "production",
  "123456789013/costCenter" : "marketing"
  See the documentation for more information:

  - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key
  - Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value