# Secret Manager V1BETA2 API - Class Google::Cloud::SecretManager::V1beta2::DeleteSecretRequest (v0.8.0)

0.8.0 (latest) 0.7.1 0.6.0 0.5.1 0.4.0 0.3.1 0.2.0 0.1.1 Reference documentation and code samples for the Secret Manager V1BETA2 API class Google::Cloud::SecretManager::V1beta2::DeleteSecretRequest.

Request message for
[SecretManagerService.DeleteSecret](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client#Google__Cloud__SecretManager__V1beta2__SecretManagerService__Client_delete_secret_instance_ "Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#delete_secret (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #etag

    def etag() -> ::String

**Returns**

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

### #etag=

    def etag=(value) -> ::String

**Parameter**

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

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

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. The resource name of the [Secret](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Secret "Google::Cloud::SecretManager::V1beta2::Secret (class)") to delete in the format `projects/*/secrets/*`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the [Secret](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Secret "Google::Cloud::SecretManager::V1beta2::Secret (class)") to delete in the format `projects/*/secrets/*`.
**Returns**

- (::String) --- Required. The resource name of the [Secret](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Secret "Google::Cloud::SecretManager::V1beta2::Secret (class)") to delete in the format `projects/*/secrets/*`.