1.8.0 (latest) 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class DetachLunRequest : IMessage<DetachLunRequest>, IEquatable<DetachLunRequest>, IDeepCloneable<DetachLunRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Bare Metal Solution v2 API class DetachLunRequest.

Message for detach specific LUN from an Instance.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> DetachLunRequest

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[DetachLunRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.DetachLunRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DetachLunRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.DetachLunRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[DetachLunRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.DetachLunRequest.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.BareMetalSolution.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.md.txt)

## Assembly

Google.Cloud.BareMetalSolution.V2.dll

## Constructors

### DetachLunRequest()

    public DetachLunRequest()

### DetachLunRequest(DetachLunRequest)

    public DetachLunRequest(DetachLunRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `DetachLunRequest` |

## Properties

### Instance

    public string Instance { get; set; }

Required. Name of the instance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### InstanceAsInstanceName

    public InstanceName InstanceAsInstanceName { get; set; }

[InstanceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.InstanceName.md.txt)-typed view over the [Instance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.DetachLunRequest.md.txt#Google_Cloud_BareMetalSolution_V2_DetachLunRequest_Instance) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `InstanceName` |   |

### Lun

    public string Lun { get; set; }

Required. Name of the Lun to detach.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### LunAsLunName

    public LunName LunAsLunName { get; set; }

[LunName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.LunName.md.txt)-typed view over the [Lun](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.DetachLunRequest.md.txt#Google_Cloud_BareMetalSolution_V2_DetachLunRequest_Lun) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LunName` |   |

### SkipReboot

    public bool SkipReboot { get; set; }

If true, performs lun unmapping without instance reboot.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |