# Bare Metal Solution V2 API - Class Google::Cloud::BareMetalSolution::V2::VolumeSnapshot (v1.5.0)

1.5.0 (latest) 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.10.0 0.9.0 0.8.1 0.7.2 0.6.0 0.5.1 0.4.1 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Bare Metal Solution V2 API class Google::Cloud::BareMetalSolution::V2::VolumeSnapshot.

A snapshot of a volume. Only boot volumes can have snapshots.

## 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-bare_metal_solution-v2/latest/Google-Protobuf-Timestamp)) --- Output only. The creation time of the snapshot.

### #description

    def description() -> ::String

**Returns**

- (::String) --- The description of the snapshot.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- The description of the snapshot.
**Returns**

- (::String) --- The description of the snapshot.

### #id

    def id() -> ::String

**Returns**

- (::String) --- Output only. An identifier for the snapshot, generated by the backend.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The name of the snapshot.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The name of the snapshot.
**Returns**

- (::String) --- The name of the snapshot.

### #storage_volume

    def storage_volume() -> ::String

**Returns**

- (::String) --- Output only. The name of the volume which this snapshot belongs to.

### #type

    def type() -> ::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot::SnapshotType

**Returns**

- ([::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot::SnapshotType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bare_metal_solution-v2/latest/Google-Cloud-BareMetalSolution-V2-VolumeSnapshot-SnapshotType)) --- Output only. The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.