# Secret Manager V1 API - Class Google::Cloud::SecretManager::V1::DestroySecretVersionRequest (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.21.0 0.20.0 0.19.2 0.18.0 0.17.2 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.3 Reference documentation and code samples for the Secret Manager V1 API class Google::Cloud::SecretManager::V1::DestroySecretVersionRequest.

Request message for
[SecretManagerService.DestroySecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretManagerService-Client#Google__Cloud__SecretManager__V1__SecretManagerService__Client_destroy_secret_version_instance_ "Google::Cloud::SecretManager::V1::SecretManagerService::Client#destroy_secret_version (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #etag

    def etag() -> ::String

**Returns**

- (::String) --- Optional. Etag of the [SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion "Google::Cloud::SecretManager::V1::SecretVersion (class)"). The request succeeds if it matches the etag of the currently stored secret version object. If the etag is omitted, the request succeeds.

### #etag=

    def etag=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Etag of the [SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion "Google::Cloud::SecretManager::V1::SecretVersion (class)"). The request succeeds if it matches the etag of the currently stored secret version object. If the etag is omitted, the request succeeds.
**Returns**

- (::String) --- Optional. Etag of the [SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion "Google::Cloud::SecretManager::V1::SecretVersion (class)"). The request succeeds if it matches the etag of the currently stored secret version object. If the etag is omitted, the request succeeds.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. The resource name of the [SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion "Google::Cloud::SecretManager::V1::SecretVersion (class)") to destroy in the format `projects/*/secrets/*/versions/*` or `projects/*/locations/*/secrets/*/versions/*`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the [SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion "Google::Cloud::SecretManager::V1::SecretVersion (class)") to destroy in the format `projects/*/secrets/*/versions/*` or `projects/*/locations/*/secrets/*/versions/*`.
**Returns**

- (::String) --- Required. The resource name of the [SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion "Google::Cloud::SecretManager::V1::SecretVersion (class)") to destroy in the format `projects/*/secrets/*/versions/*` or `projects/*/locations/*/secrets/*/versions/*`.