# Filestore V1 API - Class Google::Cloud::Filestore::V1::CreateSnapshotRequest (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::CreateSnapshotRequest.

CreateSnapshotRequest creates a snapshot.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The Filestore Instance to create the snapshots of, in the format `projects/{project_id}/locations/{location}/instances/{instance_id}`

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The Filestore Instance to create the snapshots of, in the format `projects/{project_id}/locations/{location}/instances/{instance_id}`
**Returns**

- (::String) --- Required. The Filestore Instance to create the snapshots of, in the format `projects/{project_id}/locations/{location}/instances/{instance_id}`

### #snapshot

    def snapshot() -> ::Google::Cloud::Filestore::V1::Snapshot

**Returns**

- ([::Google::Cloud::Filestore::V1::Snapshot](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-Snapshot)) --- Required. A snapshot resource.

### #snapshot=

    def snapshot=(value) -> ::Google::Cloud::Filestore::V1::Snapshot

**Parameter**

- **value** ([::Google::Cloud::Filestore::V1::Snapshot](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-Snapshot)) --- Required. A snapshot resource.
**Returns**

- ([::Google::Cloud::Filestore::V1::Snapshot](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-Snapshot)) --- Required. A snapshot resource.

### #snapshot_id

    def snapshot_id() -> ::String

**Returns**

- (::String) --- Required. The ID to use for the snapshot. The ID must be unique within the specified instance.

  This value must start with a lowercase letter followed by up to 62
  lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

### #snapshot_id=

    def snapshot_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The ID to use for the snapshot. The ID must be unique within the specified instance.


  This value must start with a lowercase letter followed by up to 62
  lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
**Returns**

- (::String) --- Required. The ID to use for the snapshot. The ID must be unique within the specified instance.

  This value must start with a lowercase letter followed by up to 62
  lowercase letters, numbers, or hyphens, and cannot end with a hyphen.