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 abstract class BareMetalSolutionClient

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

BareMetalSolution client wrapper, for convenient use.

## Inheritance

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

## 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.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Derived Types

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

## 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

## Remarks

Performs management operations on Bare Metal Solution servers.

The `baremetalsolution.googleapis.com` service provides management
capabilities for Bare Metal Solution servers. To access the API methods, you
must assign Bare Metal Solution IAM roles containing the desired permissions
to your staff in your Google Cloud project. You must also enable the Bare
Metal Solution API. Once enabled, the methods act
upon specific servers in your Bare Metal Solution environment.

## Properties

### CreateNfsShareOperationsClient

    public virtual OperationsClient CreateNfsShareOperationsClient { get; }

The long-running operations client for `CreateNfsShare`.

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

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the BareMetalSolution service, which is a host of
"baremetalsolution.googleapis.com" and a port of 443.

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

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default BareMetalSolution scopes.

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

**Remarks** The default BareMetalSolution scopes are:

- <https://www.googleapis.com/auth/cloud-platform>

<br />

### DeleteNfsShareOperationsClient

    public virtual OperationsClient DeleteNfsShareOperationsClient { get; }

The long-running operations client for `DeleteNfsShare`.

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

### DetachLunOperationsClient

    public virtual OperationsClient DetachLunOperationsClient { get; }

The long-running operations client for `DetachLun`.

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

### DisableInteractiveSerialConsoleOperationsClient

    public virtual OperationsClient DisableInteractiveSerialConsoleOperationsClient { get; }

The long-running operations client for `DisableInteractiveSerialConsole`.

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

### EnableInteractiveSerialConsoleOperationsClient

    public virtual OperationsClient EnableInteractiveSerialConsoleOperationsClient { get; }

The long-running operations client for `EnableInteractiveSerialConsole`.

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

### EvictLunOperationsClient

    public virtual OperationsClient EvictLunOperationsClient { get; }

The long-running operations client for `EvictLun`.

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

### EvictVolumeOperationsClient

    public virtual OperationsClient EvictVolumeOperationsClient { get; }

The long-running operations client for `EvictVolume`.

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

### GrpcClient

    public virtual BareMetalSolution.BareMetalSolutionClient GrpcClient { get; }

The underlying gRPC BareMetalSolution client

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

### IAMPolicyClient

    public virtual IAMPolicyClient IAMPolicyClient { get; }

The [IAMPolicyClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.IAMPolicyClient.md.txt) associated with this client.

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

### LocationsClient

    public virtual LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.md.txt) associated with this client.

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

### ResetInstanceOperationsClient

    public virtual OperationsClient ResetInstanceOperationsClient { get; }

The long-running operations client for `ResetInstance`.

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

### ResizeVolumeOperationsClient

    public virtual OperationsClient ResizeVolumeOperationsClient { get; }

The long-running operations client for `ResizeVolume`.

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

### RestoreVolumeSnapshotOperationsClient

    public virtual OperationsClient RestoreVolumeSnapshotOperationsClient { get; }

The long-running operations client for `RestoreVolumeSnapshot`.

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

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

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

### StartInstanceOperationsClient

    public virtual OperationsClient StartInstanceOperationsClient { get; }

The long-running operations client for `StartInstance`.

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

### StopInstanceOperationsClient

    public virtual OperationsClient StopInstanceOperationsClient { get; }

The long-running operations client for `StopInstance`.

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

### UpdateInstanceOperationsClient

    public virtual OperationsClient UpdateInstanceOperationsClient { get; }

The long-running operations client for `UpdateInstance`.

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

### UpdateNetworkOperationsClient

    public virtual OperationsClient UpdateNetworkOperationsClient { get; }

The long-running operations client for `UpdateNetwork`.

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

### UpdateNfsShareOperationsClient

    public virtual OperationsClient UpdateNfsShareOperationsClient { get; }

The long-running operations client for `UpdateNfsShare`.

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

### UpdateVolumeOperationsClient

    public virtual OperationsClient UpdateVolumeOperationsClient { get; }

The long-running operations client for `UpdateVolume`.

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

## Methods

### Create()

    public static BareMetalSolutionClient Create()

Synchronously creates a [BareMetalSolutionClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.BareMetalSolutionClient.md.txt) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [BareMetalSolutionClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.BareMetalSolutionClientBuilder.md.txt).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `BareMetalSolutionClient` | The created [BareMetalSolutionClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.BareMetalSolutionClient.md.txt). |

### CreateAsync(CancellationToken)

    public static Task<BareMetalSolutionClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a [BareMetalSolutionClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.BareMetalSolutionClient.md.txt) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [BareMetalSolutionClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.BareMetalSolutionClientBuilder.md.txt).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `CancellationToken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskBareMetalSolutionClient` | The task representing the created [BareMetalSolutionClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.BareMetalSolutionClient.md.txt). |

### CreateNfsShare(LocationName, NfsShare, CallSettings)

    public virtual Operation<NfsShare, OperationMetadata> CreateNfsShare(LocationName parent, NfsShare nfsShare, CallSettings callSettings = null)

Create an NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent project and location. |
| `nfsShare` | `NfsShare` Required. The NfsShare to create. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationNfsShareOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
NfsShare nfsShare = new NfsShare();
// Make the request
Operation<NfsShare, OperationMetadata> response = bareMetalSolutionClient.CreateNfsShare(parent, nfsShare);

// Poll until the returned long-running operation is complete
Operation<NfsShare, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
NfsShare result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<NfsShare, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceCreateNfsShare(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    NfsShare retrievedResult = retrievedResponse.Result;
}
```

### CreateNfsShare(CreateNfsShareRequest, CallSettings)

    public virtual Operation<NfsShare, OperationMetadata> CreateNfsShare(CreateNfsShareRequest request, CallSettings callSettings = null)

Create an NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateNfsShareRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationNfsShareOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
CreateNfsShareRequest request = new CreateNfsShareRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    NfsShare = new NfsShare(),
};
// Make the request
Operation<NfsShare, OperationMetadata> response = bareMetalSolutionClient.CreateNfsShare(request);

// Poll until the returned long-running operation is complete
Operation<NfsShare, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
NfsShare result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<NfsShare, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceCreateNfsShare(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    NfsShare retrievedResult = retrievedResponse.Result;
}
```

### CreateNfsShare(string, NfsShare, CallSettings)

    public virtual Operation<NfsShare, OperationMetadata> CreateNfsShare(string parent, NfsShare nfsShare, CallSettings callSettings = null)

Create an NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent project and location. |
| `nfsShare` | `NfsShare` Required. The NfsShare to create. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationNfsShareOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
NfsShare nfsShare = new NfsShare();
// Make the request
Operation<NfsShare, OperationMetadata> response = bareMetalSolutionClient.CreateNfsShare(parent, nfsShare);

// Poll until the returned long-running operation is complete
Operation<NfsShare, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
NfsShare result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<NfsShare, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceCreateNfsShare(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    NfsShare retrievedResult = retrievedResponse.Result;
}
```

### CreateNfsShareAsync(LocationName, NfsShare, CallSettings)

    public virtual Task<Operation<NfsShare, OperationMetadata>> CreateNfsShareAsync(LocationName parent, NfsShare nfsShare, CallSettings callSettings = null)

Create an NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent project and location. |
| `nfsShare` | `NfsShare` Required. The NfsShare to create. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationNfsShareOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
NfsShare nfsShare = new NfsShare();
// Make the request
Operation<NfsShare, OperationMetadata> response = await bareMetalSolutionClient.CreateNfsShareAsync(parent, nfsShare);

// Poll until the returned long-running operation is complete
Operation<NfsShare, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NfsShare result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<NfsShare, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceCreateNfsShareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    NfsShare retrievedResult = retrievedResponse.Result;
}
```

### CreateNfsShareAsync(LocationName, NfsShare, CancellationToken)

    public virtual Task<Operation<NfsShare, OperationMetadata>> CreateNfsShareAsync(LocationName parent, NfsShare nfsShare, CancellationToken cancellationToken)

Create an NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent project and location. |
| `nfsShare` | `NfsShare` Required. The NfsShare to create. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationNfsShareOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
NfsShare nfsShare = new NfsShare();
// Make the request
Operation<NfsShare, OperationMetadata> response = await bareMetalSolutionClient.CreateNfsShareAsync(parent, nfsShare);

// Poll until the returned long-running operation is complete
Operation<NfsShare, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NfsShare result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<NfsShare, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceCreateNfsShareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    NfsShare retrievedResult = retrievedResponse.Result;
}
```

### CreateNfsShareAsync(CreateNfsShareRequest, CallSettings)

    public virtual Task<Operation<NfsShare, OperationMetadata>> CreateNfsShareAsync(CreateNfsShareRequest request, CallSettings callSettings = null)

Create an NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateNfsShareRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationNfsShareOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
CreateNfsShareRequest request = new CreateNfsShareRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    NfsShare = new NfsShare(),
};
// Make the request
Operation<NfsShare, OperationMetadata> response = await bareMetalSolutionClient.CreateNfsShareAsync(request);

// Poll until the returned long-running operation is complete
Operation<NfsShare, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NfsShare result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<NfsShare, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceCreateNfsShareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    NfsShare retrievedResult = retrievedResponse.Result;
}
```

### CreateNfsShareAsync(CreateNfsShareRequest, CancellationToken)

    public virtual Task<Operation<NfsShare, OperationMetadata>> CreateNfsShareAsync(CreateNfsShareRequest request, CancellationToken cancellationToken)

Create an NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateNfsShareRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationNfsShareOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
CreateNfsShareRequest request = new CreateNfsShareRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    NfsShare = new NfsShare(),
};
// Make the request
Operation<NfsShare, OperationMetadata> response = await bareMetalSolutionClient.CreateNfsShareAsync(request);

// Poll until the returned long-running operation is complete
Operation<NfsShare, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NfsShare result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<NfsShare, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceCreateNfsShareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    NfsShare retrievedResult = retrievedResponse.Result;
}
```

### CreateNfsShareAsync(string, NfsShare, CallSettings)

    public virtual Task<Operation<NfsShare, OperationMetadata>> CreateNfsShareAsync(string parent, NfsShare nfsShare, CallSettings callSettings = null)

Create an NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent project and location. |
| `nfsShare` | `NfsShare` Required. The NfsShare to create. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationNfsShareOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
NfsShare nfsShare = new NfsShare();
// Make the request
Operation<NfsShare, OperationMetadata> response = await bareMetalSolutionClient.CreateNfsShareAsync(parent, nfsShare);

// Poll until the returned long-running operation is complete
Operation<NfsShare, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NfsShare result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<NfsShare, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceCreateNfsShareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    NfsShare retrievedResult = retrievedResponse.Result;
}
```

### CreateNfsShareAsync(string, NfsShare, CancellationToken)

    public virtual Task<Operation<NfsShare, OperationMetadata>> CreateNfsShareAsync(string parent, NfsShare nfsShare, CancellationToken cancellationToken)

Create an NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent project and location. |
| `nfsShare` | `NfsShare` Required. The NfsShare to create. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationNfsShareOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
NfsShare nfsShare = new NfsShare();
// Make the request
Operation<NfsShare, OperationMetadata> response = await bareMetalSolutionClient.CreateNfsShareAsync(parent, nfsShare);

// Poll until the returned long-running operation is complete
Operation<NfsShare, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NfsShare result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<NfsShare, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceCreateNfsShareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    NfsShare retrievedResult = retrievedResponse.Result;
}
```

### CreateProvisioningConfig(LocationName, ProvisioningConfig, CallSettings)

    public virtual ProvisioningConfig CreateProvisioningConfig(LocationName parent, ProvisioningConfig provisioningConfig, CallSettings callSettings = null)

Create new ProvisioningConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent project and location containing the ProvisioningConfig. |
| `provisioningConfig` | `ProvisioningConfig` Required. The ProvisioningConfig to create. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ProvisioningConfig` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ProvisioningConfig provisioningConfig = new ProvisioningConfig();
// Make the request
ProvisioningConfig response = bareMetalSolutionClient.CreateProvisioningConfig(parent, provisioningConfig);
```

### CreateProvisioningConfig(CreateProvisioningConfigRequest, CallSettings)

    public virtual ProvisioningConfig CreateProvisioningConfig(CreateProvisioningConfigRequest request, CallSettings callSettings = null)

Create new ProvisioningConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateProvisioningConfigRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ProvisioningConfig` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
CreateProvisioningConfigRequest request = new CreateProvisioningConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ProvisioningConfig = new ProvisioningConfig(),
    Email = "",
};
// Make the request
ProvisioningConfig response = bareMetalSolutionClient.CreateProvisioningConfig(request);
```

### CreateProvisioningConfig(string, ProvisioningConfig, CallSettings)

    public virtual ProvisioningConfig CreateProvisioningConfig(string parent, ProvisioningConfig provisioningConfig, CallSettings callSettings = null)

Create new ProvisioningConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent project and location containing the ProvisioningConfig. |
| `provisioningConfig` | `ProvisioningConfig` Required. The ProvisioningConfig to create. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ProvisioningConfig` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ProvisioningConfig provisioningConfig = new ProvisioningConfig();
// Make the request
ProvisioningConfig response = bareMetalSolutionClient.CreateProvisioningConfig(parent, provisioningConfig);
```

### CreateProvisioningConfigAsync(LocationName, ProvisioningConfig, CallSettings)

    public virtual Task<ProvisioningConfig> CreateProvisioningConfigAsync(LocationName parent, ProvisioningConfig provisioningConfig, CallSettings callSettings = null)

Create new ProvisioningConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent project and location containing the ProvisioningConfig. |
| `provisioningConfig` | `ProvisioningConfig` Required. The ProvisioningConfig to create. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskProvisioningConfig` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ProvisioningConfig provisioningConfig = new ProvisioningConfig();
// Make the request
ProvisioningConfig response = await bareMetalSolutionClient.CreateProvisioningConfigAsync(parent, provisioningConfig);
```

### CreateProvisioningConfigAsync(LocationName, ProvisioningConfig, CancellationToken)

    public virtual Task<ProvisioningConfig> CreateProvisioningConfigAsync(LocationName parent, ProvisioningConfig provisioningConfig, CancellationToken cancellationToken)

Create new ProvisioningConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent project and location containing the ProvisioningConfig. |
| `provisioningConfig` | `ProvisioningConfig` Required. The ProvisioningConfig to create. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskProvisioningConfig` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ProvisioningConfig provisioningConfig = new ProvisioningConfig();
// Make the request
ProvisioningConfig response = await bareMetalSolutionClient.CreateProvisioningConfigAsync(parent, provisioningConfig);
```

### CreateProvisioningConfigAsync(CreateProvisioningConfigRequest, CallSettings)

    public virtual Task<ProvisioningConfig> CreateProvisioningConfigAsync(CreateProvisioningConfigRequest request, CallSettings callSettings = null)

Create new ProvisioningConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateProvisioningConfigRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskProvisioningConfig` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
CreateProvisioningConfigRequest request = new CreateProvisioningConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ProvisioningConfig = new ProvisioningConfig(),
    Email = "",
};
// Make the request
ProvisioningConfig response = await bareMetalSolutionClient.CreateProvisioningConfigAsync(request);
```

### CreateProvisioningConfigAsync(CreateProvisioningConfigRequest, CancellationToken)

    public virtual Task<ProvisioningConfig> CreateProvisioningConfigAsync(CreateProvisioningConfigRequest request, CancellationToken cancellationToken)

Create new ProvisioningConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateProvisioningConfigRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskProvisioningConfig` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
CreateProvisioningConfigRequest request = new CreateProvisioningConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ProvisioningConfig = new ProvisioningConfig(),
    Email = "",
};
// Make the request
ProvisioningConfig response = await bareMetalSolutionClient.CreateProvisioningConfigAsync(request);
```

### CreateProvisioningConfigAsync(string, ProvisioningConfig, CallSettings)

    public virtual Task<ProvisioningConfig> CreateProvisioningConfigAsync(string parent, ProvisioningConfig provisioningConfig, CallSettings callSettings = null)

Create new ProvisioningConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent project and location containing the ProvisioningConfig. |
| `provisioningConfig` | `ProvisioningConfig` Required. The ProvisioningConfig to create. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskProvisioningConfig` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ProvisioningConfig provisioningConfig = new ProvisioningConfig();
// Make the request
ProvisioningConfig response = await bareMetalSolutionClient.CreateProvisioningConfigAsync(parent, provisioningConfig);
```

### CreateProvisioningConfigAsync(string, ProvisioningConfig, CancellationToken)

    public virtual Task<ProvisioningConfig> CreateProvisioningConfigAsync(string parent, ProvisioningConfig provisioningConfig, CancellationToken cancellationToken)

Create new ProvisioningConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent project and location containing the ProvisioningConfig. |
| `provisioningConfig` | `ProvisioningConfig` Required. The ProvisioningConfig to create. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskProvisioningConfig` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ProvisioningConfig provisioningConfig = new ProvisioningConfig();
// Make the request
ProvisioningConfig response = await bareMetalSolutionClient.CreateProvisioningConfigAsync(parent, provisioningConfig);
```

### CreateSSHKey(LocationName, SSHKey, string, CallSettings)

    public virtual SSHKey CreateSSHKey(LocationName parent, SSHKey sshKey, string sshKeyId, CallSettings callSettings = null)

Register a public SSH key in the specified project for use with the
interactive serial console feature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent containing the SSH keys. |
| `sshKey` | `SSHKey` Required. The SSH key to register. |
| `sshKeyId` | `string` Required. The ID to use for the key, which will become the final component of the key's resource name. This value must match the regex: \[a-zA-Z0-9@.-_\]{1,64} |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SSHKey` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
SSHKey sshKey = new SSHKey();
string sshKeyId = "";
// Make the request
SSHKey response = bareMetalSolutionClient.CreateSSHKey(parent, sshKey, sshKeyId);
```

### CreateSSHKey(CreateSSHKeyRequest, CallSettings)

    public virtual SSHKey CreateSSHKey(CreateSSHKeyRequest request, CallSettings callSettings = null)

Register a public SSH key in the specified project for use with the
interactive serial console feature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateSSHKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SSHKey` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
CreateSSHKeyRequest request = new CreateSSHKeyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SshKey = new SSHKey(),
    SshKeyId = "",
};
// Make the request
SSHKey response = bareMetalSolutionClient.CreateSSHKey(request);
```

### CreateSSHKey(string, SSHKey, string, CallSettings)

    public virtual SSHKey CreateSSHKey(string parent, SSHKey sshKey, string sshKeyId, CallSettings callSettings = null)

Register a public SSH key in the specified project for use with the
interactive serial console feature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent containing the SSH keys. |
| `sshKey` | `SSHKey` Required. The SSH key to register. |
| `sshKeyId` | `string` Required. The ID to use for the key, which will become the final component of the key's resource name. This value must match the regex: \[a-zA-Z0-9@.-_\]{1,64} |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SSHKey` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
SSHKey sshKey = new SSHKey();
string sshKeyId = "";
// Make the request
SSHKey response = bareMetalSolutionClient.CreateSSHKey(parent, sshKey, sshKeyId);
```

### CreateSSHKeyAsync(LocationName, SSHKey, string, CallSettings)

    public virtual Task<SSHKey> CreateSSHKeyAsync(LocationName parent, SSHKey sshKey, string sshKeyId, CallSettings callSettings = null)

Register a public SSH key in the specified project for use with the
interactive serial console feature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent containing the SSH keys. |
| `sshKey` | `SSHKey` Required. The SSH key to register. |
| `sshKeyId` | `string` Required. The ID to use for the key, which will become the final component of the key's resource name. This value must match the regex: \[a-zA-Z0-9@.-_\]{1,64} |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskSSHKey` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
SSHKey sshKey = new SSHKey();
string sshKeyId = "";
// Make the request
SSHKey response = await bareMetalSolutionClient.CreateSSHKeyAsync(parent, sshKey, sshKeyId);
```

### CreateSSHKeyAsync(LocationName, SSHKey, string, CancellationToken)

    public virtual Task<SSHKey> CreateSSHKeyAsync(LocationName parent, SSHKey sshKey, string sshKeyId, CancellationToken cancellationToken)

Register a public SSH key in the specified project for use with the
interactive serial console feature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent containing the SSH keys. |
| `sshKey` | `SSHKey` Required. The SSH key to register. |
| `sshKeyId` | `string` Required. The ID to use for the key, which will become the final component of the key's resource name. This value must match the regex: \[a-zA-Z0-9@.-_\]{1,64} |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskSSHKey` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
SSHKey sshKey = new SSHKey();
string sshKeyId = "";
// Make the request
SSHKey response = await bareMetalSolutionClient.CreateSSHKeyAsync(parent, sshKey, sshKeyId);
```

### CreateSSHKeyAsync(CreateSSHKeyRequest, CallSettings)

    public virtual Task<SSHKey> CreateSSHKeyAsync(CreateSSHKeyRequest request, CallSettings callSettings = null)

Register a public SSH key in the specified project for use with the
interactive serial console feature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateSSHKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskSSHKey` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
CreateSSHKeyRequest request = new CreateSSHKeyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SshKey = new SSHKey(),
    SshKeyId = "",
};
// Make the request
SSHKey response = await bareMetalSolutionClient.CreateSSHKeyAsync(request);
```

### CreateSSHKeyAsync(CreateSSHKeyRequest, CancellationToken)

    public virtual Task<SSHKey> CreateSSHKeyAsync(CreateSSHKeyRequest request, CancellationToken cancellationToken)

Register a public SSH key in the specified project for use with the
interactive serial console feature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateSSHKeyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskSSHKey` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
CreateSSHKeyRequest request = new CreateSSHKeyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SshKey = new SSHKey(),
    SshKeyId = "",
};
// Make the request
SSHKey response = await bareMetalSolutionClient.CreateSSHKeyAsync(request);
```

### CreateSSHKeyAsync(string, SSHKey, string, CallSettings)

    public virtual Task<SSHKey> CreateSSHKeyAsync(string parent, SSHKey sshKey, string sshKeyId, CallSettings callSettings = null)

Register a public SSH key in the specified project for use with the
interactive serial console feature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent containing the SSH keys. |
| `sshKey` | `SSHKey` Required. The SSH key to register. |
| `sshKeyId` | `string` Required. The ID to use for the key, which will become the final component of the key's resource name. This value must match the regex: \[a-zA-Z0-9@.-_\]{1,64} |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskSSHKey` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
SSHKey sshKey = new SSHKey();
string sshKeyId = "";
// Make the request
SSHKey response = await bareMetalSolutionClient.CreateSSHKeyAsync(parent, sshKey, sshKeyId);
```

### CreateSSHKeyAsync(string, SSHKey, string, CancellationToken)

    public virtual Task<SSHKey> CreateSSHKeyAsync(string parent, SSHKey sshKey, string sshKeyId, CancellationToken cancellationToken)

Register a public SSH key in the specified project for use with the
interactive serial console feature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent containing the SSH keys. |
| `sshKey` | `SSHKey` Required. The SSH key to register. |
| `sshKeyId` | `string` Required. The ID to use for the key, which will become the final component of the key's resource name. This value must match the regex: \[a-zA-Z0-9@.-_\]{1,64} |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskSSHKey` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
SSHKey sshKey = new SSHKey();
string sshKeyId = "";
// Make the request
SSHKey response = await bareMetalSolutionClient.CreateSSHKeyAsync(parent, sshKey, sshKeyId);
```

### CreateVolumeSnapshot(CreateVolumeSnapshotRequest, CallSettings)

    public virtual VolumeSnapshot CreateVolumeSnapshot(CreateVolumeSnapshotRequest request, CallSettings callSettings = null)

Takes a snapshot of a boot volume.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateVolumeSnapshotRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `VolumeSnapshot` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
CreateVolumeSnapshotRequest request = new CreateVolumeSnapshotRequest
{
    ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    VolumeSnapshot = new VolumeSnapshot(),
};
// Make the request
VolumeSnapshot response = bareMetalSolutionClient.CreateVolumeSnapshot(request);
```

### CreateVolumeSnapshot(VolumeName, VolumeSnapshot, CallSettings)

    public virtual VolumeSnapshot CreateVolumeSnapshot(VolumeName parent, VolumeSnapshot volumeSnapshot, CallSettings callSettings = null)

Takes a snapshot of a boot volume.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `VolumeName` Required. The volume to snapshot. |
| `volumeSnapshot` | `VolumeSnapshot` Required. The snapshot to create. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `VolumeSnapshot` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
VolumeSnapshot volumeSnapshot = new VolumeSnapshot();
// Make the request
VolumeSnapshot response = bareMetalSolutionClient.CreateVolumeSnapshot(parent, volumeSnapshot);
```

### CreateVolumeSnapshot(string, VolumeSnapshot, CallSettings)

    public virtual VolumeSnapshot CreateVolumeSnapshot(string parent, VolumeSnapshot volumeSnapshot, CallSettings callSettings = null)

Takes a snapshot of a boot volume.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The volume to snapshot. |
| `volumeSnapshot` | `VolumeSnapshot` Required. The snapshot to create. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `VolumeSnapshot` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
VolumeSnapshot volumeSnapshot = new VolumeSnapshot();
// Make the request
VolumeSnapshot response = bareMetalSolutionClient.CreateVolumeSnapshot(parent, volumeSnapshot);
```

### CreateVolumeSnapshotAsync(CreateVolumeSnapshotRequest, CallSettings)

    public virtual Task<VolumeSnapshot> CreateVolumeSnapshotAsync(CreateVolumeSnapshotRequest request, CallSettings callSettings = null)

Takes a snapshot of a boot volume.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateVolumeSnapshotRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolumeSnapshot` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
CreateVolumeSnapshotRequest request = new CreateVolumeSnapshotRequest
{
    ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    VolumeSnapshot = new VolumeSnapshot(),
};
// Make the request
VolumeSnapshot response = await bareMetalSolutionClient.CreateVolumeSnapshotAsync(request);
```

### CreateVolumeSnapshotAsync(CreateVolumeSnapshotRequest, CancellationToken)

    public virtual Task<VolumeSnapshot> CreateVolumeSnapshotAsync(CreateVolumeSnapshotRequest request, CancellationToken cancellationToken)

Takes a snapshot of a boot volume.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateVolumeSnapshotRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolumeSnapshot` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
CreateVolumeSnapshotRequest request = new CreateVolumeSnapshotRequest
{
    ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    VolumeSnapshot = new VolumeSnapshot(),
};
// Make the request
VolumeSnapshot response = await bareMetalSolutionClient.CreateVolumeSnapshotAsync(request);
```

### CreateVolumeSnapshotAsync(VolumeName, VolumeSnapshot, CallSettings)

    public virtual Task<VolumeSnapshot> CreateVolumeSnapshotAsync(VolumeName parent, VolumeSnapshot volumeSnapshot, CallSettings callSettings = null)

Takes a snapshot of a boot volume.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `VolumeName` Required. The volume to snapshot. |
| `volumeSnapshot` | `VolumeSnapshot` Required. The snapshot to create. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolumeSnapshot` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
VolumeSnapshot volumeSnapshot = new VolumeSnapshot();
// Make the request
VolumeSnapshot response = await bareMetalSolutionClient.CreateVolumeSnapshotAsync(parent, volumeSnapshot);
```

### CreateVolumeSnapshotAsync(VolumeName, VolumeSnapshot, CancellationToken)

    public virtual Task<VolumeSnapshot> CreateVolumeSnapshotAsync(VolumeName parent, VolumeSnapshot volumeSnapshot, CancellationToken cancellationToken)

Takes a snapshot of a boot volume.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `VolumeName` Required. The volume to snapshot. |
| `volumeSnapshot` | `VolumeSnapshot` Required. The snapshot to create. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolumeSnapshot` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
VolumeSnapshot volumeSnapshot = new VolumeSnapshot();
// Make the request
VolumeSnapshot response = await bareMetalSolutionClient.CreateVolumeSnapshotAsync(parent, volumeSnapshot);
```

### CreateVolumeSnapshotAsync(string, VolumeSnapshot, CallSettings)

    public virtual Task<VolumeSnapshot> CreateVolumeSnapshotAsync(string parent, VolumeSnapshot volumeSnapshot, CallSettings callSettings = null)

Takes a snapshot of a boot volume.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The volume to snapshot. |
| `volumeSnapshot` | `VolumeSnapshot` Required. The snapshot to create. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolumeSnapshot` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
VolumeSnapshot volumeSnapshot = new VolumeSnapshot();
// Make the request
VolumeSnapshot response = await bareMetalSolutionClient.CreateVolumeSnapshotAsync(parent, volumeSnapshot);
```

### CreateVolumeSnapshotAsync(string, VolumeSnapshot, CancellationToken)

    public virtual Task<VolumeSnapshot> CreateVolumeSnapshotAsync(string parent, VolumeSnapshot volumeSnapshot, CancellationToken cancellationToken)

Takes a snapshot of a boot volume.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The volume to snapshot. |
| `volumeSnapshot` | `VolumeSnapshot` Required. The snapshot to create. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolumeSnapshot` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
VolumeSnapshot volumeSnapshot = new VolumeSnapshot();
// Make the request
VolumeSnapshot response = await bareMetalSolutionClient.CreateVolumeSnapshotAsync(parent, volumeSnapshot);
```

### DeleteNfsShare(DeleteNfsShareRequest, CallSettings)

    public virtual Operation<Empty, OperationMetadata> DeleteNfsShare(DeleteNfsShareRequest request, CallSettings callSettings = null)

Delete an NFS share. The underlying volume is automatically deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteNfsShareRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEmptyOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
DeleteNfsShareRequest request = new DeleteNfsShareRequest
{
    NFSShareName = NFSShareName.FromProjectLocationNfsShare("[PROJECT]", "[LOCATION]", "[NFS_SHARE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = bareMetalSolutionClient.DeleteNfsShare(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceDeleteNfsShare(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeleteNfsShare(NFSShareName, CallSettings)

    public virtual Operation<Empty, OperationMetadata> DeleteNfsShare(NFSShareName name, CallSettings callSettings = null)

Delete an NFS share. The underlying volume is automatically deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `NFSShareName` Required. The name of the NFS share to delete. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEmptyOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
NFSShareName name = NFSShareName.FromProjectLocationNfsShare("[PROJECT]", "[LOCATION]", "[NFS_SHARE]");
// Make the request
Operation<Empty, OperationMetadata> response = bareMetalSolutionClient.DeleteNfsShare(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceDeleteNfsShare(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeleteNfsShare(string, CallSettings)

    public virtual Operation<Empty, OperationMetadata> DeleteNfsShare(string name, CallSettings callSettings = null)

Delete an NFS share. The underlying volume is automatically deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the NFS share to delete. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEmptyOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nfsShares/[NFS_SHARE]";
// Make the request
Operation<Empty, OperationMetadata> response = bareMetalSolutionClient.DeleteNfsShare(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceDeleteNfsShare(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeleteNfsShareAsync(DeleteNfsShareRequest, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> DeleteNfsShareAsync(DeleteNfsShareRequest request, CallSettings callSettings = null)

Delete an NFS share. The underlying volume is automatically deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteNfsShareRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
DeleteNfsShareRequest request = new DeleteNfsShareRequest
{
    NFSShareName = NFSShareName.FromProjectLocationNfsShare("[PROJECT]", "[LOCATION]", "[NFS_SHARE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await bareMetalSolutionClient.DeleteNfsShareAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceDeleteNfsShareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeleteNfsShareAsync(DeleteNfsShareRequest, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> DeleteNfsShareAsync(DeleteNfsShareRequest request, CancellationToken cancellationToken)

Delete an NFS share. The underlying volume is automatically deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteNfsShareRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
DeleteNfsShareRequest request = new DeleteNfsShareRequest
{
    NFSShareName = NFSShareName.FromProjectLocationNfsShare("[PROJECT]", "[LOCATION]", "[NFS_SHARE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await bareMetalSolutionClient.DeleteNfsShareAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceDeleteNfsShareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeleteNfsShareAsync(NFSShareName, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> DeleteNfsShareAsync(NFSShareName name, CallSettings callSettings = null)

Delete an NFS share. The underlying volume is automatically deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `NFSShareName` Required. The name of the NFS share to delete. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
NFSShareName name = NFSShareName.FromProjectLocationNfsShare("[PROJECT]", "[LOCATION]", "[NFS_SHARE]");
// Make the request
Operation<Empty, OperationMetadata> response = await bareMetalSolutionClient.DeleteNfsShareAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceDeleteNfsShareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeleteNfsShareAsync(NFSShareName, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> DeleteNfsShareAsync(NFSShareName name, CancellationToken cancellationToken)

Delete an NFS share. The underlying volume is automatically deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `NFSShareName` Required. The name of the NFS share to delete. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
NFSShareName name = NFSShareName.FromProjectLocationNfsShare("[PROJECT]", "[LOCATION]", "[NFS_SHARE]");
// Make the request
Operation<Empty, OperationMetadata> response = await bareMetalSolutionClient.DeleteNfsShareAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceDeleteNfsShareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeleteNfsShareAsync(string, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> DeleteNfsShareAsync(string name, CallSettings callSettings = null)

Delete an NFS share. The underlying volume is automatically deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the NFS share to delete. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nfsShares/[NFS_SHARE]";
// Make the request
Operation<Empty, OperationMetadata> response = await bareMetalSolutionClient.DeleteNfsShareAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceDeleteNfsShareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeleteNfsShareAsync(string, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> DeleteNfsShareAsync(string name, CancellationToken cancellationToken)

Delete an NFS share. The underlying volume is automatically deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the NFS share to delete. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nfsShares/[NFS_SHARE]";
// Make the request
Operation<Empty, OperationMetadata> response = await bareMetalSolutionClient.DeleteNfsShareAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceDeleteNfsShareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeleteSSHKey(DeleteSSHKeyRequest, CallSettings)

    public virtual void DeleteSSHKey(DeleteSSHKeyRequest request, CallSettings callSettings = null)

Deletes a public SSH key registered in the specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteSSHKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
DeleteSSHKeyRequest request = new DeleteSSHKeyRequest
{
    SshKeyName = SshKeyName.FromProjectLocationSshKey("[PROJECT]", "[LOCATION]", "[SSH_KEY]"),
};
// Make the request
bareMetalSolutionClient.DeleteSSHKey(request);
```

### DeleteSSHKey(SshKeyName, CallSettings)

    public virtual void DeleteSSHKey(SshKeyName name, CallSettings callSettings = null)

Deletes a public SSH key registered in the specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `SshKeyName` Required. The name of the SSH key to delete. Currently, the only valid value for the location is "global". |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
SshKeyName name = SshKeyName.FromProjectLocationSshKey("[PROJECT]", "[LOCATION]", "[SSH_KEY]");
// Make the request
bareMetalSolutionClient.DeleteSSHKey(name);
```

### DeleteSSHKey(string, CallSettings)

    public virtual void DeleteSSHKey(string name, CallSettings callSettings = null)

Deletes a public SSH key registered in the specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the SSH key to delete. Currently, the only valid value for the location is "global". |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sshKeys/[SSH_KEY]";
// Make the request
bareMetalSolutionClient.DeleteSSHKey(name);
```

### DeleteSSHKeyAsync(DeleteSSHKeyRequest, CallSettings)

    public virtual Task DeleteSSHKeyAsync(DeleteSSHKeyRequest request, CallSettings callSettings = null)

Deletes a public SSH key registered in the specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteSSHKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
DeleteSSHKeyRequest request = new DeleteSSHKeyRequest
{
    SshKeyName = SshKeyName.FromProjectLocationSshKey("[PROJECT]", "[LOCATION]", "[SSH_KEY]"),
};
// Make the request
await bareMetalSolutionClient.DeleteSSHKeyAsync(request);
```

### DeleteSSHKeyAsync(DeleteSSHKeyRequest, CancellationToken)

    public virtual Task DeleteSSHKeyAsync(DeleteSSHKeyRequest request, CancellationToken cancellationToken)

Deletes a public SSH key registered in the specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteSSHKeyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
DeleteSSHKeyRequest request = new DeleteSSHKeyRequest
{
    SshKeyName = SshKeyName.FromProjectLocationSshKey("[PROJECT]", "[LOCATION]", "[SSH_KEY]"),
};
// Make the request
await bareMetalSolutionClient.DeleteSSHKeyAsync(request);
```

### DeleteSSHKeyAsync(SshKeyName, CallSettings)

    public virtual Task DeleteSSHKeyAsync(SshKeyName name, CallSettings callSettings = null)

Deletes a public SSH key registered in the specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `SshKeyName` Required. The name of the SSH key to delete. Currently, the only valid value for the location is "global". |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
SshKeyName name = SshKeyName.FromProjectLocationSshKey("[PROJECT]", "[LOCATION]", "[SSH_KEY]");
// Make the request
await bareMetalSolutionClient.DeleteSSHKeyAsync(name);
```

### DeleteSSHKeyAsync(SshKeyName, CancellationToken)

    public virtual Task DeleteSSHKeyAsync(SshKeyName name, CancellationToken cancellationToken)

Deletes a public SSH key registered in the specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `SshKeyName` Required. The name of the SSH key to delete. Currently, the only valid value for the location is "global". |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
SshKeyName name = SshKeyName.FromProjectLocationSshKey("[PROJECT]", "[LOCATION]", "[SSH_KEY]");
// Make the request
await bareMetalSolutionClient.DeleteSSHKeyAsync(name);
```

### DeleteSSHKeyAsync(string, CallSettings)

    public virtual Task DeleteSSHKeyAsync(string name, CallSettings callSettings = null)

Deletes a public SSH key registered in the specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the SSH key to delete. Currently, the only valid value for the location is "global". |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sshKeys/[SSH_KEY]";
// Make the request
await bareMetalSolutionClient.DeleteSSHKeyAsync(name);
```

### DeleteSSHKeyAsync(string, CancellationToken)

    public virtual Task DeleteSSHKeyAsync(string name, CancellationToken cancellationToken)

Deletes a public SSH key registered in the specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the SSH key to delete. Currently, the only valid value for the location is "global". |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sshKeys/[SSH_KEY]";
// Make the request
await bareMetalSolutionClient.DeleteSSHKeyAsync(name);
```

### DeleteVolumeSnapshot(DeleteVolumeSnapshotRequest, CallSettings)

    public virtual void DeleteVolumeSnapshot(DeleteVolumeSnapshotRequest request, CallSettings callSettings = null)

Deletes a volume snapshot.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteVolumeSnapshotRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
DeleteVolumeSnapshotRequest request = new DeleteVolumeSnapshotRequest
{
    VolumeSnapshotName = VolumeSnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"),
};
// Make the request
bareMetalSolutionClient.DeleteVolumeSnapshot(request);
```

### DeleteVolumeSnapshot(VolumeSnapshotName, CallSettings)

    public virtual void DeleteVolumeSnapshot(VolumeSnapshotName name, CallSettings callSettings = null)

Deletes a volume snapshot.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `VolumeSnapshotName` Required. The name of the snapshot to delete. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
VolumeSnapshotName name = VolumeSnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]");
// Make the request
bareMetalSolutionClient.DeleteVolumeSnapshot(name);
```

### DeleteVolumeSnapshot(string, CallSettings)

    public virtual void DeleteVolumeSnapshot(string name, CallSettings callSettings = null)

Deletes a volume snapshot.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the snapshot to delete. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/snapshots/[SNAPSHOT]";
// Make the request
bareMetalSolutionClient.DeleteVolumeSnapshot(name);
```

### DeleteVolumeSnapshotAsync(DeleteVolumeSnapshotRequest, CallSettings)

    public virtual Task DeleteVolumeSnapshotAsync(DeleteVolumeSnapshotRequest request, CallSettings callSettings = null)

Deletes a volume snapshot.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteVolumeSnapshotRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
DeleteVolumeSnapshotRequest request = new DeleteVolumeSnapshotRequest
{
    VolumeSnapshotName = VolumeSnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"),
};
// Make the request
await bareMetalSolutionClient.DeleteVolumeSnapshotAsync(request);
```

### DeleteVolumeSnapshotAsync(DeleteVolumeSnapshotRequest, CancellationToken)

    public virtual Task DeleteVolumeSnapshotAsync(DeleteVolumeSnapshotRequest request, CancellationToken cancellationToken)

Deletes a volume snapshot.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteVolumeSnapshotRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
DeleteVolumeSnapshotRequest request = new DeleteVolumeSnapshotRequest
{
    VolumeSnapshotName = VolumeSnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"),
};
// Make the request
await bareMetalSolutionClient.DeleteVolumeSnapshotAsync(request);
```

### DeleteVolumeSnapshotAsync(VolumeSnapshotName, CallSettings)

    public virtual Task DeleteVolumeSnapshotAsync(VolumeSnapshotName name, CallSettings callSettings = null)

Deletes a volume snapshot.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `VolumeSnapshotName` Required. The name of the snapshot to delete. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
VolumeSnapshotName name = VolumeSnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]");
// Make the request
await bareMetalSolutionClient.DeleteVolumeSnapshotAsync(name);
```

### DeleteVolumeSnapshotAsync(VolumeSnapshotName, CancellationToken)

    public virtual Task DeleteVolumeSnapshotAsync(VolumeSnapshotName name, CancellationToken cancellationToken)

Deletes a volume snapshot.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `VolumeSnapshotName` Required. The name of the snapshot to delete. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
VolumeSnapshotName name = VolumeSnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]");
// Make the request
await bareMetalSolutionClient.DeleteVolumeSnapshotAsync(name);
```

### DeleteVolumeSnapshotAsync(string, CallSettings)

    public virtual Task DeleteVolumeSnapshotAsync(string name, CallSettings callSettings = null)

Deletes a volume snapshot.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the snapshot to delete. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/snapshots/[SNAPSHOT]";
// Make the request
await bareMetalSolutionClient.DeleteVolumeSnapshotAsync(name);
```

### DeleteVolumeSnapshotAsync(string, CancellationToken)

    public virtual Task DeleteVolumeSnapshotAsync(string name, CancellationToken cancellationToken)

Deletes a volume snapshot.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the snapshot to delete. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/snapshots/[SNAPSHOT]";
// Make the request
await bareMetalSolutionClient.DeleteVolumeSnapshotAsync(name);
```

### DetachLun(DetachLunRequest, CallSettings)

    public virtual Operation<Instance, OperationMetadata> DetachLun(DetachLunRequest request, CallSettings callSettings = null)

Detach LUN from Instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DetachLunRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationInstanceOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
DetachLunRequest request = new DetachLunRequest
{
    InstanceAsInstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
    LunAsLunName = LunName.FromProjectLocationVolumeLun("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"),
    SkipReboot = false,
};
// Make the request
Operation<Instance, OperationMetadata> response = bareMetalSolutionClient.DetachLun(request);

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Instance result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Instance, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceDetachLun(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Instance retrievedResult = retrievedResponse.Result;
}
```

### DetachLun(InstanceName, LunName, CallSettings)

    public virtual Operation<Instance, OperationMetadata> DetachLun(InstanceName instance, LunName lun, CallSettings callSettings = null)

Detach LUN from Instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `instance` | `InstanceName` Required. Name of the instance. |
| `lun` | `LunName` Required. Name of the Lun to detach. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationInstanceOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
InstanceName instance = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
LunName lun = LunName.FromProjectLocationVolumeLun("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]");
// Make the request
Operation<Instance, OperationMetadata> response = bareMetalSolutionClient.DetachLun(instance, lun);

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Instance result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Instance, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceDetachLun(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Instance retrievedResult = retrievedResponse.Result;
}
```

### DetachLun(string, string, CallSettings)

    public virtual Operation<Instance, OperationMetadata> DetachLun(string instance, string lun, CallSettings callSettings = null)

Detach LUN from Instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `instance` | `string` Required. Name of the instance. |
| `lun` | `string` Required. Name of the Lun to detach. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationInstanceOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string instance = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
string lun = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/luns/[LUN]";
// Make the request
Operation<Instance, OperationMetadata> response = bareMetalSolutionClient.DetachLun(instance, lun);

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Instance result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Instance, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceDetachLun(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Instance retrievedResult = retrievedResponse.Result;
}
```

### DetachLunAsync(DetachLunRequest, CallSettings)

    public virtual Task<Operation<Instance, OperationMetadata>> DetachLunAsync(DetachLunRequest request, CallSettings callSettings = null)

Detach LUN from Instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DetachLunRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationInstanceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
DetachLunRequest request = new DetachLunRequest
{
    InstanceAsInstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
    LunAsLunName = LunName.FromProjectLocationVolumeLun("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"),
    SkipReboot = false,
};
// Make the request
Operation<Instance, OperationMetadata> response = await bareMetalSolutionClient.DetachLunAsync(request);

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Instance result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Instance, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceDetachLunAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Instance retrievedResult = retrievedResponse.Result;
}
```

### DetachLunAsync(DetachLunRequest, CancellationToken)

    public virtual Task<Operation<Instance, OperationMetadata>> DetachLunAsync(DetachLunRequest request, CancellationToken cancellationToken)

Detach LUN from Instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DetachLunRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationInstanceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
DetachLunRequest request = new DetachLunRequest
{
    InstanceAsInstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
    LunAsLunName = LunName.FromProjectLocationVolumeLun("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"),
    SkipReboot = false,
};
// Make the request
Operation<Instance, OperationMetadata> response = await bareMetalSolutionClient.DetachLunAsync(request);

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Instance result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Instance, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceDetachLunAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Instance retrievedResult = retrievedResponse.Result;
}
```

### DetachLunAsync(InstanceName, LunName, CallSettings)

    public virtual Task<Operation<Instance, OperationMetadata>> DetachLunAsync(InstanceName instance, LunName lun, CallSettings callSettings = null)

Detach LUN from Instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `instance` | `InstanceName` Required. Name of the instance. |
| `lun` | `LunName` Required. Name of the Lun to detach. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationInstanceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
InstanceName instance = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
LunName lun = LunName.FromProjectLocationVolumeLun("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]");
// Make the request
Operation<Instance, OperationMetadata> response = await bareMetalSolutionClient.DetachLunAsync(instance, lun);

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Instance result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Instance, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceDetachLunAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Instance retrievedResult = retrievedResponse.Result;
}
```

### DetachLunAsync(InstanceName, LunName, CancellationToken)

    public virtual Task<Operation<Instance, OperationMetadata>> DetachLunAsync(InstanceName instance, LunName lun, CancellationToken cancellationToken)

Detach LUN from Instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `instance` | `InstanceName` Required. Name of the instance. |
| `lun` | `LunName` Required. Name of the Lun to detach. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationInstanceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
InstanceName instance = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
LunName lun = LunName.FromProjectLocationVolumeLun("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]");
// Make the request
Operation<Instance, OperationMetadata> response = await bareMetalSolutionClient.DetachLunAsync(instance, lun);

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Instance result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Instance, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceDetachLunAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Instance retrievedResult = retrievedResponse.Result;
}
```

### DetachLunAsync(string, string, CallSettings)

    public virtual Task<Operation<Instance, OperationMetadata>> DetachLunAsync(string instance, string lun, CallSettings callSettings = null)

Detach LUN from Instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `instance` | `string` Required. Name of the instance. |
| `lun` | `string` Required. Name of the Lun to detach. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationInstanceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string instance = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
string lun = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/luns/[LUN]";
// Make the request
Operation<Instance, OperationMetadata> response = await bareMetalSolutionClient.DetachLunAsync(instance, lun);

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Instance result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Instance, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceDetachLunAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Instance retrievedResult = retrievedResponse.Result;
}
```

### DetachLunAsync(string, string, CancellationToken)

    public virtual Task<Operation<Instance, OperationMetadata>> DetachLunAsync(string instance, string lun, CancellationToken cancellationToken)

Detach LUN from Instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `instance` | `string` Required. Name of the instance. |
| `lun` | `string` Required. Name of the Lun to detach. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationInstanceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string instance = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
string lun = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/luns/[LUN]";
// Make the request
Operation<Instance, OperationMetadata> response = await bareMetalSolutionClient.DetachLunAsync(instance, lun);

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Instance result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Instance, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceDetachLunAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Instance retrievedResult = retrievedResponse.Result;
}
```

### DisableInteractiveSerialConsole(DisableInteractiveSerialConsoleRequest, CallSettings)

    public virtual Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> DisableInteractiveSerialConsole(DisableInteractiveSerialConsoleRequest request, CallSettings callSettings = null)

Disable the interactive serial console feature on an instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DisableInteractiveSerialConsoleRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationDisableInteractiveSerialConsoleResponseOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
DisableInteractiveSerialConsoleRequest request = new DisableInteractiveSerialConsoleRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> response = bareMetalSolutionClient.DisableInteractiveSerialConsole(request);

// Poll until the returned long-running operation is complete
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DisableInteractiveSerialConsoleResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceDisableInteractiveSerialConsole(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DisableInteractiveSerialConsoleResponse retrievedResult = retrievedResponse.Result;
}
```

### DisableInteractiveSerialConsole(InstanceName, CallSettings)

    public virtual Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> DisableInteractiveSerialConsole(InstanceName name, CallSettings callSettings = null)

Disable the interactive serial console feature on an instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationDisableInteractiveSerialConsoleResponseOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> response = bareMetalSolutionClient.DisableInteractiveSerialConsole(name);

// Poll until the returned long-running operation is complete
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DisableInteractiveSerialConsoleResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceDisableInteractiveSerialConsole(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DisableInteractiveSerialConsoleResponse retrievedResult = retrievedResponse.Result;
}
```

### DisableInteractiveSerialConsole(string, CallSettings)

    public virtual Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> DisableInteractiveSerialConsole(string name, CallSettings callSettings = null)

Disable the interactive serial console feature on an instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationDisableInteractiveSerialConsoleResponseOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> response = bareMetalSolutionClient.DisableInteractiveSerialConsole(name);

// Poll until the returned long-running operation is complete
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DisableInteractiveSerialConsoleResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceDisableInteractiveSerialConsole(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DisableInteractiveSerialConsoleResponse retrievedResult = retrievedResponse.Result;
}
```

### DisableInteractiveSerialConsoleAsync(DisableInteractiveSerialConsoleRequest, CallSettings)

    public virtual Task<Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata>> DisableInteractiveSerialConsoleAsync(DisableInteractiveSerialConsoleRequest request, CallSettings callSettings = null)

Disable the interactive serial console feature on an instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DisableInteractiveSerialConsoleRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationDisableInteractiveSerialConsoleResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
DisableInteractiveSerialConsoleRequest request = new DisableInteractiveSerialConsoleRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> response = await bareMetalSolutionClient.DisableInteractiveSerialConsoleAsync(request);

// Poll until the returned long-running operation is complete
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DisableInteractiveSerialConsoleResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceDisableInteractiveSerialConsoleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DisableInteractiveSerialConsoleResponse retrievedResult = retrievedResponse.Result;
}
```

### DisableInteractiveSerialConsoleAsync(DisableInteractiveSerialConsoleRequest, CancellationToken)

    public virtual Task<Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata>> DisableInteractiveSerialConsoleAsync(DisableInteractiveSerialConsoleRequest request, CancellationToken cancellationToken)

Disable the interactive serial console feature on an instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DisableInteractiveSerialConsoleRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationDisableInteractiveSerialConsoleResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
DisableInteractiveSerialConsoleRequest request = new DisableInteractiveSerialConsoleRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> response = await bareMetalSolutionClient.DisableInteractiveSerialConsoleAsync(request);

// Poll until the returned long-running operation is complete
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DisableInteractiveSerialConsoleResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceDisableInteractiveSerialConsoleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DisableInteractiveSerialConsoleResponse retrievedResult = retrievedResponse.Result;
}
```

### DisableInteractiveSerialConsoleAsync(InstanceName, CallSettings)

    public virtual Task<Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata>> DisableInteractiveSerialConsoleAsync(InstanceName name, CallSettings callSettings = null)

Disable the interactive serial console feature on an instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationDisableInteractiveSerialConsoleResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> response = await bareMetalSolutionClient.DisableInteractiveSerialConsoleAsync(name);

// Poll until the returned long-running operation is complete
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DisableInteractiveSerialConsoleResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceDisableInteractiveSerialConsoleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DisableInteractiveSerialConsoleResponse retrievedResult = retrievedResponse.Result;
}
```

### DisableInteractiveSerialConsoleAsync(InstanceName, CancellationToken)

    public virtual Task<Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata>> DisableInteractiveSerialConsoleAsync(InstanceName name, CancellationToken cancellationToken)

Disable the interactive serial console feature on an instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. Name of the resource. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationDisableInteractiveSerialConsoleResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> response = await bareMetalSolutionClient.DisableInteractiveSerialConsoleAsync(name);

// Poll until the returned long-running operation is complete
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DisableInteractiveSerialConsoleResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceDisableInteractiveSerialConsoleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DisableInteractiveSerialConsoleResponse retrievedResult = retrievedResponse.Result;
}
```

### DisableInteractiveSerialConsoleAsync(string, CallSettings)

    public virtual Task<Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata>> DisableInteractiveSerialConsoleAsync(string name, CallSettings callSettings = null)

Disable the interactive serial console feature on an instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationDisableInteractiveSerialConsoleResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> response = await bareMetalSolutionClient.DisableInteractiveSerialConsoleAsync(name);

// Poll until the returned long-running operation is complete
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DisableInteractiveSerialConsoleResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceDisableInteractiveSerialConsoleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DisableInteractiveSerialConsoleResponse retrievedResult = retrievedResponse.Result;
}
```

### DisableInteractiveSerialConsoleAsync(string, CancellationToken)

    public virtual Task<Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata>> DisableInteractiveSerialConsoleAsync(string name, CancellationToken cancellationToken)

Disable the interactive serial console feature on an instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationDisableInteractiveSerialConsoleResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> response = await bareMetalSolutionClient.DisableInteractiveSerialConsoleAsync(name);

// Poll until the returned long-running operation is complete
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DisableInteractiveSerialConsoleResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceDisableInteractiveSerialConsoleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DisableInteractiveSerialConsoleResponse retrievedResult = retrievedResponse.Result;
}
```

### EnableInteractiveSerialConsole(EnableInteractiveSerialConsoleRequest, CallSettings)

    public virtual Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> EnableInteractiveSerialConsole(EnableInteractiveSerialConsoleRequest request, CallSettings callSettings = null)

Enable the interactive serial console feature on an instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `EnableInteractiveSerialConsoleRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEnableInteractiveSerialConsoleResponseOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
EnableInteractiveSerialConsoleRequest request = new EnableInteractiveSerialConsoleRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> response = bareMetalSolutionClient.EnableInteractiveSerialConsole(request);

// Poll until the returned long-running operation is complete
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
EnableInteractiveSerialConsoleResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceEnableInteractiveSerialConsole(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    EnableInteractiveSerialConsoleResponse retrievedResult = retrievedResponse.Result;
}
```

### EnableInteractiveSerialConsole(InstanceName, CallSettings)

    public virtual Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> EnableInteractiveSerialConsole(InstanceName name, CallSettings callSettings = null)

Enable the interactive serial console feature on an instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEnableInteractiveSerialConsoleResponseOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> response = bareMetalSolutionClient.EnableInteractiveSerialConsole(name);

// Poll until the returned long-running operation is complete
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
EnableInteractiveSerialConsoleResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceEnableInteractiveSerialConsole(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    EnableInteractiveSerialConsoleResponse retrievedResult = retrievedResponse.Result;
}
```

### EnableInteractiveSerialConsole(string, CallSettings)

    public virtual Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> EnableInteractiveSerialConsole(string name, CallSettings callSettings = null)

Enable the interactive serial console feature on an instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEnableInteractiveSerialConsoleResponseOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> response = bareMetalSolutionClient.EnableInteractiveSerialConsole(name);

// Poll until the returned long-running operation is complete
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
EnableInteractiveSerialConsoleResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceEnableInteractiveSerialConsole(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    EnableInteractiveSerialConsoleResponse retrievedResult = retrievedResponse.Result;
}
```

### EnableInteractiveSerialConsoleAsync(EnableInteractiveSerialConsoleRequest, CallSettings)

    public virtual Task<Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata>> EnableInteractiveSerialConsoleAsync(EnableInteractiveSerialConsoleRequest request, CallSettings callSettings = null)

Enable the interactive serial console feature on an instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `EnableInteractiveSerialConsoleRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEnableInteractiveSerialConsoleResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
EnableInteractiveSerialConsoleRequest request = new EnableInteractiveSerialConsoleRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> response = await bareMetalSolutionClient.EnableInteractiveSerialConsoleAsync(request);

// Poll until the returned long-running operation is complete
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
EnableInteractiveSerialConsoleResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceEnableInteractiveSerialConsoleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    EnableInteractiveSerialConsoleResponse retrievedResult = retrievedResponse.Result;
}
```

### EnableInteractiveSerialConsoleAsync(EnableInteractiveSerialConsoleRequest, CancellationToken)

    public virtual Task<Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata>> EnableInteractiveSerialConsoleAsync(EnableInteractiveSerialConsoleRequest request, CancellationToken cancellationToken)

Enable the interactive serial console feature on an instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `EnableInteractiveSerialConsoleRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEnableInteractiveSerialConsoleResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
EnableInteractiveSerialConsoleRequest request = new EnableInteractiveSerialConsoleRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> response = await bareMetalSolutionClient.EnableInteractiveSerialConsoleAsync(request);

// Poll until the returned long-running operation is complete
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
EnableInteractiveSerialConsoleResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceEnableInteractiveSerialConsoleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    EnableInteractiveSerialConsoleResponse retrievedResult = retrievedResponse.Result;
}
```

### EnableInteractiveSerialConsoleAsync(InstanceName, CallSettings)

    public virtual Task<Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata>> EnableInteractiveSerialConsoleAsync(InstanceName name, CallSettings callSettings = null)

Enable the interactive serial console feature on an instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEnableInteractiveSerialConsoleResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> response = await bareMetalSolutionClient.EnableInteractiveSerialConsoleAsync(name);

// Poll until the returned long-running operation is complete
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
EnableInteractiveSerialConsoleResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceEnableInteractiveSerialConsoleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    EnableInteractiveSerialConsoleResponse retrievedResult = retrievedResponse.Result;
}
```

### EnableInteractiveSerialConsoleAsync(InstanceName, CancellationToken)

    public virtual Task<Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata>> EnableInteractiveSerialConsoleAsync(InstanceName name, CancellationToken cancellationToken)

Enable the interactive serial console feature on an instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. Name of the resource. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEnableInteractiveSerialConsoleResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> response = await bareMetalSolutionClient.EnableInteractiveSerialConsoleAsync(name);

// Poll until the returned long-running operation is complete
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
EnableInteractiveSerialConsoleResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceEnableInteractiveSerialConsoleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    EnableInteractiveSerialConsoleResponse retrievedResult = retrievedResponse.Result;
}
```

### EnableInteractiveSerialConsoleAsync(string, CallSettings)

    public virtual Task<Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata>> EnableInteractiveSerialConsoleAsync(string name, CallSettings callSettings = null)

Enable the interactive serial console feature on an instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEnableInteractiveSerialConsoleResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> response = await bareMetalSolutionClient.EnableInteractiveSerialConsoleAsync(name);

// Poll until the returned long-running operation is complete
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
EnableInteractiveSerialConsoleResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceEnableInteractiveSerialConsoleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    EnableInteractiveSerialConsoleResponse retrievedResult = retrievedResponse.Result;
}
```

### EnableInteractiveSerialConsoleAsync(string, CancellationToken)

    public virtual Task<Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata>> EnableInteractiveSerialConsoleAsync(string name, CancellationToken cancellationToken)

Enable the interactive serial console feature on an instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEnableInteractiveSerialConsoleResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> response = await bareMetalSolutionClient.EnableInteractiveSerialConsoleAsync(name);

// Poll until the returned long-running operation is complete
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
EnableInteractiveSerialConsoleResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceEnableInteractiveSerialConsoleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    EnableInteractiveSerialConsoleResponse retrievedResult = retrievedResponse.Result;
}
```

### EvictLun(EvictLunRequest, CallSettings)

    public virtual Operation<Empty, OperationMetadata> EvictLun(EvictLunRequest request, CallSettings callSettings = null)

Skips lun's cooloff and deletes it now.
Lun must be in cooloff state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `EvictLunRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEmptyOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
EvictLunRequest request = new EvictLunRequest
{
    LunName = LunName.FromProjectLocationVolumeLun("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = bareMetalSolutionClient.EvictLun(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceEvictLun(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### EvictLun(LunName, CallSettings)

    public virtual Operation<Empty, OperationMetadata> EvictLun(LunName name, CallSettings callSettings = null)

Skips lun's cooloff and deletes it now.
Lun must be in cooloff state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `LunName` Required. The name of the lun. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEmptyOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
LunName name = LunName.FromProjectLocationVolumeLun("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]");
// Make the request
Operation<Empty, OperationMetadata> response = bareMetalSolutionClient.EvictLun(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceEvictLun(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### EvictLun(string, CallSettings)

    public virtual Operation<Empty, OperationMetadata> EvictLun(string name, CallSettings callSettings = null)

Skips lun's cooloff and deletes it now.
Lun must be in cooloff state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the lun. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEmptyOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/luns/[LUN]";
// Make the request
Operation<Empty, OperationMetadata> response = bareMetalSolutionClient.EvictLun(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceEvictLun(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### EvictLunAsync(EvictLunRequest, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> EvictLunAsync(EvictLunRequest request, CallSettings callSettings = null)

Skips lun's cooloff and deletes it now.
Lun must be in cooloff state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `EvictLunRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
EvictLunRequest request = new EvictLunRequest
{
    LunName = LunName.FromProjectLocationVolumeLun("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await bareMetalSolutionClient.EvictLunAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceEvictLunAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### EvictLunAsync(EvictLunRequest, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> EvictLunAsync(EvictLunRequest request, CancellationToken cancellationToken)

Skips lun's cooloff and deletes it now.
Lun must be in cooloff state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `EvictLunRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
EvictLunRequest request = new EvictLunRequest
{
    LunName = LunName.FromProjectLocationVolumeLun("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await bareMetalSolutionClient.EvictLunAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceEvictLunAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### EvictLunAsync(LunName, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> EvictLunAsync(LunName name, CallSettings callSettings = null)

Skips lun's cooloff and deletes it now.
Lun must be in cooloff state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `LunName` Required. The name of the lun. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LunName name = LunName.FromProjectLocationVolumeLun("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]");
// Make the request
Operation<Empty, OperationMetadata> response = await bareMetalSolutionClient.EvictLunAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceEvictLunAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### EvictLunAsync(LunName, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> EvictLunAsync(LunName name, CancellationToken cancellationToken)

Skips lun's cooloff and deletes it now.
Lun must be in cooloff state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `LunName` Required. The name of the lun. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LunName name = LunName.FromProjectLocationVolumeLun("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]");
// Make the request
Operation<Empty, OperationMetadata> response = await bareMetalSolutionClient.EvictLunAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceEvictLunAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### EvictLunAsync(string, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> EvictLunAsync(string name, CallSettings callSettings = null)

Skips lun's cooloff and deletes it now.
Lun must be in cooloff state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the lun. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/luns/[LUN]";
// Make the request
Operation<Empty, OperationMetadata> response = await bareMetalSolutionClient.EvictLunAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceEvictLunAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### EvictLunAsync(string, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> EvictLunAsync(string name, CancellationToken cancellationToken)

Skips lun's cooloff and deletes it now.
Lun must be in cooloff state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the lun. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/luns/[LUN]";
// Make the request
Operation<Empty, OperationMetadata> response = await bareMetalSolutionClient.EvictLunAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceEvictLunAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### EvictVolume(EvictVolumeRequest, CallSettings)

    public virtual Operation<Empty, OperationMetadata> EvictVolume(EvictVolumeRequest request, CallSettings callSettings = null)

Skips volume's cooloff and deletes it now.
Volume must be in cooloff state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `EvictVolumeRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEmptyOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
EvictVolumeRequest request = new EvictVolumeRequest
{
    VolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = bareMetalSolutionClient.EvictVolume(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceEvictVolume(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### EvictVolume(VolumeName, CallSettings)

    public virtual Operation<Empty, OperationMetadata> EvictVolume(VolumeName name, CallSettings callSettings = null)

Skips volume's cooloff and deletes it now.
Volume must be in cooloff state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `VolumeName` Required. The name of the Volume. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEmptyOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
VolumeName name = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
Operation<Empty, OperationMetadata> response = bareMetalSolutionClient.EvictVolume(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceEvictVolume(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### EvictVolume(string, CallSettings)

    public virtual Operation<Empty, OperationMetadata> EvictVolume(string name, CallSettings callSettings = null)

Skips volume's cooloff and deletes it now.
Volume must be in cooloff state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the Volume. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEmptyOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
Operation<Empty, OperationMetadata> response = bareMetalSolutionClient.EvictVolume(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceEvictVolume(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### EvictVolumeAsync(EvictVolumeRequest, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> EvictVolumeAsync(EvictVolumeRequest request, CallSettings callSettings = null)

Skips volume's cooloff and deletes it now.
Volume must be in cooloff state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `EvictVolumeRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
EvictVolumeRequest request = new EvictVolumeRequest
{
    VolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await bareMetalSolutionClient.EvictVolumeAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceEvictVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### EvictVolumeAsync(EvictVolumeRequest, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> EvictVolumeAsync(EvictVolumeRequest request, CancellationToken cancellationToken)

Skips volume's cooloff and deletes it now.
Volume must be in cooloff state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `EvictVolumeRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
EvictVolumeRequest request = new EvictVolumeRequest
{
    VolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await bareMetalSolutionClient.EvictVolumeAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceEvictVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### EvictVolumeAsync(VolumeName, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> EvictVolumeAsync(VolumeName name, CallSettings callSettings = null)

Skips volume's cooloff and deletes it now.
Volume must be in cooloff state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `VolumeName` Required. The name of the Volume. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
VolumeName name = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
Operation<Empty, OperationMetadata> response = await bareMetalSolutionClient.EvictVolumeAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceEvictVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### EvictVolumeAsync(VolumeName, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> EvictVolumeAsync(VolumeName name, CancellationToken cancellationToken)

Skips volume's cooloff and deletes it now.
Volume must be in cooloff state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `VolumeName` Required. The name of the Volume. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
VolumeName name = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
Operation<Empty, OperationMetadata> response = await bareMetalSolutionClient.EvictVolumeAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceEvictVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### EvictVolumeAsync(string, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> EvictVolumeAsync(string name, CallSettings callSettings = null)

Skips volume's cooloff and deletes it now.
Volume must be in cooloff state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the Volume. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
Operation<Empty, OperationMetadata> response = await bareMetalSolutionClient.EvictVolumeAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceEvictVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### EvictVolumeAsync(string, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> EvictVolumeAsync(string name, CancellationToken cancellationToken)

Skips volume's cooloff and deletes it now.
Volume must be in cooloff state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the Volume. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
Operation<Empty, OperationMetadata> response = await bareMetalSolutionClient.EvictVolumeAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceEvictVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### GetInstance(GetInstanceRequest, CallSettings)

    public virtual Instance GetInstance(GetInstanceRequest request, CallSettings callSettings = null)

Get details about a single server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Instance` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
GetInstanceRequest request = new GetInstanceRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Instance response = bareMetalSolutionClient.GetInstance(request);
```

### GetInstance(InstanceName, CallSettings)

    public virtual Instance GetInstance(InstanceName name, CallSettings callSettings = null)

Get details about a single server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Instance` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Instance response = bareMetalSolutionClient.GetInstance(name);
```

### GetInstance(string, CallSettings)

    public virtual Instance GetInstance(string name, CallSettings callSettings = null)

Get details about a single server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Instance` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Instance response = bareMetalSolutionClient.GetInstance(name);
```

### GetInstanceAsync(GetInstanceRequest, CallSettings)

    public virtual Task<Instance> GetInstanceAsync(GetInstanceRequest request, CallSettings callSettings = null)

Get details about a single server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskInstance` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
GetInstanceRequest request = new GetInstanceRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Instance response = await bareMetalSolutionClient.GetInstanceAsync(request);
```

### GetInstanceAsync(GetInstanceRequest, CancellationToken)

    public virtual Task<Instance> GetInstanceAsync(GetInstanceRequest request, CancellationToken cancellationToken)

Get details about a single server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetInstanceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskInstance` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
GetInstanceRequest request = new GetInstanceRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Instance response = await bareMetalSolutionClient.GetInstanceAsync(request);
```

### GetInstanceAsync(InstanceName, CallSettings)

    public virtual Task<Instance> GetInstanceAsync(InstanceName name, CallSettings callSettings = null)

Get details about a single server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskInstance` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Instance response = await bareMetalSolutionClient.GetInstanceAsync(name);
```

### GetInstanceAsync(InstanceName, CancellationToken)

    public virtual Task<Instance> GetInstanceAsync(InstanceName name, CancellationToken cancellationToken)

Get details about a single server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. Name of the resource. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskInstance` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Instance response = await bareMetalSolutionClient.GetInstanceAsync(name);
```

### GetInstanceAsync(string, CallSettings)

    public virtual Task<Instance> GetInstanceAsync(string name, CallSettings callSettings = null)

Get details about a single server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskInstance` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Instance response = await bareMetalSolutionClient.GetInstanceAsync(name);
```

### GetInstanceAsync(string, CancellationToken)

    public virtual Task<Instance> GetInstanceAsync(string name, CancellationToken cancellationToken)

Get details about a single server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskInstance` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Instance response = await bareMetalSolutionClient.GetInstanceAsync(name);
```

### GetLun(GetLunRequest, CallSettings)

    public virtual Lun GetLun(GetLunRequest request, CallSettings callSettings = null)

Get details of a single storage logical unit number(LUN).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetLunRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Lun` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
GetLunRequest request = new GetLunRequest
{
    LunName = LunName.FromProjectLocationVolumeLun("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"),
};
// Make the request
Lun response = bareMetalSolutionClient.GetLun(request);
```

### GetLun(LunName, CallSettings)

    public virtual Lun GetLun(LunName name, CallSettings callSettings = null)

Get details of a single storage logical unit number(LUN).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `LunName` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Lun` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
LunName name = LunName.FromProjectLocationVolumeLun("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]");
// Make the request
Lun response = bareMetalSolutionClient.GetLun(name);
```

### GetLun(string, CallSettings)

    public virtual Lun GetLun(string name, CallSettings callSettings = null)

Get details of a single storage logical unit number(LUN).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Lun` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/luns/[LUN]";
// Make the request
Lun response = bareMetalSolutionClient.GetLun(name);
```

### GetLunAsync(GetLunRequest, CallSettings)

    public virtual Task<Lun> GetLunAsync(GetLunRequest request, CallSettings callSettings = null)

Get details of a single storage logical unit number(LUN).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetLunRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskLun` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
GetLunRequest request = new GetLunRequest
{
    LunName = LunName.FromProjectLocationVolumeLun("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"),
};
// Make the request
Lun response = await bareMetalSolutionClient.GetLunAsync(request);
```

### GetLunAsync(GetLunRequest, CancellationToken)

    public virtual Task<Lun> GetLunAsync(GetLunRequest request, CancellationToken cancellationToken)

Get details of a single storage logical unit number(LUN).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetLunRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskLun` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
GetLunRequest request = new GetLunRequest
{
    LunName = LunName.FromProjectLocationVolumeLun("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"),
};
// Make the request
Lun response = await bareMetalSolutionClient.GetLunAsync(request);
```

### GetLunAsync(LunName, CallSettings)

    public virtual Task<Lun> GetLunAsync(LunName name, CallSettings callSettings = null)

Get details of a single storage logical unit number(LUN).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `LunName` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskLun` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LunName name = LunName.FromProjectLocationVolumeLun("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]");
// Make the request
Lun response = await bareMetalSolutionClient.GetLunAsync(name);
```

### GetLunAsync(LunName, CancellationToken)

    public virtual Task<Lun> GetLunAsync(LunName name, CancellationToken cancellationToken)

Get details of a single storage logical unit number(LUN).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `LunName` Required. Name of the resource. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskLun` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LunName name = LunName.FromProjectLocationVolumeLun("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]");
// Make the request
Lun response = await bareMetalSolutionClient.GetLunAsync(name);
```

### GetLunAsync(string, CallSettings)

    public virtual Task<Lun> GetLunAsync(string name, CallSettings callSettings = null)

Get details of a single storage logical unit number(LUN).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskLun` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/luns/[LUN]";
// Make the request
Lun response = await bareMetalSolutionClient.GetLunAsync(name);
```

### GetLunAsync(string, CancellationToken)

    public virtual Task<Lun> GetLunAsync(string name, CancellationToken cancellationToken)

Get details of a single storage logical unit number(LUN).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskLun` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/luns/[LUN]";
// Make the request
Lun response = await bareMetalSolutionClient.GetLunAsync(name);
```

### GetNetwork(GetNetworkRequest, CallSettings)

    public virtual Network GetNetwork(GetNetworkRequest request, CallSettings callSettings = null)

Get details of a single network.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetNetworkRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Network` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
GetNetworkRequest request = new GetNetworkRequest
{
    NetworkName = NetworkName.FromProjectLocationNetwork("[PROJECT]", "[LOCATION]", "[NETWORK]"),
};
// Make the request
Network response = bareMetalSolutionClient.GetNetwork(request);
```

### GetNetwork(NetworkName, CallSettings)

    public virtual Network GetNetwork(NetworkName name, CallSettings callSettings = null)

Get details of a single network.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `NetworkName` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Network` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
NetworkName name = NetworkName.FromProjectLocationNetwork("[PROJECT]", "[LOCATION]", "[NETWORK]");
// Make the request
Network response = bareMetalSolutionClient.GetNetwork(name);
```

### GetNetwork(string, CallSettings)

    public virtual Network GetNetwork(string name, CallSettings callSettings = null)

Get details of a single network.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Network` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/networks/[NETWORK]";
// Make the request
Network response = bareMetalSolutionClient.GetNetwork(name);
```

### GetNetworkAsync(GetNetworkRequest, CallSettings)

    public virtual Task<Network> GetNetworkAsync(GetNetworkRequest request, CallSettings callSettings = null)

Get details of a single network.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetNetworkRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNetwork` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
GetNetworkRequest request = new GetNetworkRequest
{
    NetworkName = NetworkName.FromProjectLocationNetwork("[PROJECT]", "[LOCATION]", "[NETWORK]"),
};
// Make the request
Network response = await bareMetalSolutionClient.GetNetworkAsync(request);
```

### GetNetworkAsync(GetNetworkRequest, CancellationToken)

    public virtual Task<Network> GetNetworkAsync(GetNetworkRequest request, CancellationToken cancellationToken)

Get details of a single network.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetNetworkRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNetwork` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
GetNetworkRequest request = new GetNetworkRequest
{
    NetworkName = NetworkName.FromProjectLocationNetwork("[PROJECT]", "[LOCATION]", "[NETWORK]"),
};
// Make the request
Network response = await bareMetalSolutionClient.GetNetworkAsync(request);
```

### GetNetworkAsync(NetworkName, CallSettings)

    public virtual Task<Network> GetNetworkAsync(NetworkName name, CallSettings callSettings = null)

Get details of a single network.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `NetworkName` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNetwork` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
NetworkName name = NetworkName.FromProjectLocationNetwork("[PROJECT]", "[LOCATION]", "[NETWORK]");
// Make the request
Network response = await bareMetalSolutionClient.GetNetworkAsync(name);
```

### GetNetworkAsync(NetworkName, CancellationToken)

    public virtual Task<Network> GetNetworkAsync(NetworkName name, CancellationToken cancellationToken)

Get details of a single network.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `NetworkName` Required. Name of the resource. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNetwork` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
NetworkName name = NetworkName.FromProjectLocationNetwork("[PROJECT]", "[LOCATION]", "[NETWORK]");
// Make the request
Network response = await bareMetalSolutionClient.GetNetworkAsync(name);
```

### GetNetworkAsync(string, CallSettings)

    public virtual Task<Network> GetNetworkAsync(string name, CallSettings callSettings = null)

Get details of a single network.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNetwork` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/networks/[NETWORK]";
// Make the request
Network response = await bareMetalSolutionClient.GetNetworkAsync(name);
```

### GetNetworkAsync(string, CancellationToken)

    public virtual Task<Network> GetNetworkAsync(string name, CancellationToken cancellationToken)

Get details of a single network.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNetwork` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/networks/[NETWORK]";
// Make the request
Network response = await bareMetalSolutionClient.GetNetworkAsync(name);
```

### GetNfsShare(GetNfsShareRequest, CallSettings)

    public virtual NfsShare GetNfsShare(GetNfsShareRequest request, CallSettings callSettings = null)

Get details of a single NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetNfsShareRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `NfsShare` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
GetNfsShareRequest request = new GetNfsShareRequest
{
    NFSShareName = NFSShareName.FromProjectLocationNfsShare("[PROJECT]", "[LOCATION]", "[NFS_SHARE]"),
};
// Make the request
NfsShare response = bareMetalSolutionClient.GetNfsShare(request);
```

### GetNfsShare(NFSShareName, CallSettings)

    public virtual NfsShare GetNfsShare(NFSShareName name, CallSettings callSettings = null)

Get details of a single NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `NFSShareName` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `NfsShare` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
NFSShareName name = NFSShareName.FromProjectLocationNfsShare("[PROJECT]", "[LOCATION]", "[NFS_SHARE]");
// Make the request
NfsShare response = bareMetalSolutionClient.GetNfsShare(name);
```

### GetNfsShare(string, CallSettings)

    public virtual NfsShare GetNfsShare(string name, CallSettings callSettings = null)

Get details of a single NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `NfsShare` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nfsShares/[NFS_SHARE]";
// Make the request
NfsShare response = bareMetalSolutionClient.GetNfsShare(name);
```

### GetNfsShareAsync(GetNfsShareRequest, CallSettings)

    public virtual Task<NfsShare> GetNfsShareAsync(GetNfsShareRequest request, CallSettings callSettings = null)

Get details of a single NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetNfsShareRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNfsShare` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
GetNfsShareRequest request = new GetNfsShareRequest
{
    NFSShareName = NFSShareName.FromProjectLocationNfsShare("[PROJECT]", "[LOCATION]", "[NFS_SHARE]"),
};
// Make the request
NfsShare response = await bareMetalSolutionClient.GetNfsShareAsync(request);
```

### GetNfsShareAsync(GetNfsShareRequest, CancellationToken)

    public virtual Task<NfsShare> GetNfsShareAsync(GetNfsShareRequest request, CancellationToken cancellationToken)

Get details of a single NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetNfsShareRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNfsShare` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
GetNfsShareRequest request = new GetNfsShareRequest
{
    NFSShareName = NFSShareName.FromProjectLocationNfsShare("[PROJECT]", "[LOCATION]", "[NFS_SHARE]"),
};
// Make the request
NfsShare response = await bareMetalSolutionClient.GetNfsShareAsync(request);
```

### GetNfsShareAsync(NFSShareName, CallSettings)

    public virtual Task<NfsShare> GetNfsShareAsync(NFSShareName name, CallSettings callSettings = null)

Get details of a single NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `NFSShareName` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNfsShare` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
NFSShareName name = NFSShareName.FromProjectLocationNfsShare("[PROJECT]", "[LOCATION]", "[NFS_SHARE]");
// Make the request
NfsShare response = await bareMetalSolutionClient.GetNfsShareAsync(name);
```

### GetNfsShareAsync(NFSShareName, CancellationToken)

    public virtual Task<NfsShare> GetNfsShareAsync(NFSShareName name, CancellationToken cancellationToken)

Get details of a single NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `NFSShareName` Required. Name of the resource. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNfsShare` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
NFSShareName name = NFSShareName.FromProjectLocationNfsShare("[PROJECT]", "[LOCATION]", "[NFS_SHARE]");
// Make the request
NfsShare response = await bareMetalSolutionClient.GetNfsShareAsync(name);
```

### GetNfsShareAsync(string, CallSettings)

    public virtual Task<NfsShare> GetNfsShareAsync(string name, CallSettings callSettings = null)

Get details of a single NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNfsShare` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nfsShares/[NFS_SHARE]";
// Make the request
NfsShare response = await bareMetalSolutionClient.GetNfsShareAsync(name);
```

### GetNfsShareAsync(string, CancellationToken)

    public virtual Task<NfsShare> GetNfsShareAsync(string name, CancellationToken cancellationToken)

Get details of a single NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNfsShare` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nfsShares/[NFS_SHARE]";
// Make the request
NfsShare response = await bareMetalSolutionClient.GetNfsShareAsync(name);
```

### GetProvisioningConfig(GetProvisioningConfigRequest, CallSettings)

    public virtual ProvisioningConfig GetProvisioningConfig(GetProvisioningConfigRequest request, CallSettings callSettings = null)

Get ProvisioningConfig by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetProvisioningConfigRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ProvisioningConfig` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
GetProvisioningConfigRequest request = new GetProvisioningConfigRequest
{
    ProvisioningConfigName = ProvisioningConfigName.FromProjectLocationProvisioningConfig("[PROJECT]", "[LOCATION]", "[PROVISIONING_CONFIG]"),
};
// Make the request
ProvisioningConfig response = bareMetalSolutionClient.GetProvisioningConfig(request);
```

### GetProvisioningConfig(ProvisioningConfigName, CallSettings)

    public virtual ProvisioningConfig GetProvisioningConfig(ProvisioningConfigName name, CallSettings callSettings = null)

Get ProvisioningConfig by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `ProvisioningConfigName` Required. Name of the ProvisioningConfig. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ProvisioningConfig` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
ProvisioningConfigName name = ProvisioningConfigName.FromProjectLocationProvisioningConfig("[PROJECT]", "[LOCATION]", "[PROVISIONING_CONFIG]");
// Make the request
ProvisioningConfig response = bareMetalSolutionClient.GetProvisioningConfig(name);
```

### GetProvisioningConfig(string, CallSettings)

    public virtual ProvisioningConfig GetProvisioningConfig(string name, CallSettings callSettings = null)

Get ProvisioningConfig by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the ProvisioningConfig. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ProvisioningConfig` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/provisioningConfigs/[PROVISIONING_CONFIG]";
// Make the request
ProvisioningConfig response = bareMetalSolutionClient.GetProvisioningConfig(name);
```

### GetProvisioningConfigAsync(GetProvisioningConfigRequest, CallSettings)

    public virtual Task<ProvisioningConfig> GetProvisioningConfigAsync(GetProvisioningConfigRequest request, CallSettings callSettings = null)

Get ProvisioningConfig by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetProvisioningConfigRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskProvisioningConfig` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
GetProvisioningConfigRequest request = new GetProvisioningConfigRequest
{
    ProvisioningConfigName = ProvisioningConfigName.FromProjectLocationProvisioningConfig("[PROJECT]", "[LOCATION]", "[PROVISIONING_CONFIG]"),
};
// Make the request
ProvisioningConfig response = await bareMetalSolutionClient.GetProvisioningConfigAsync(request);
```

### GetProvisioningConfigAsync(GetProvisioningConfigRequest, CancellationToken)

    public virtual Task<ProvisioningConfig> GetProvisioningConfigAsync(GetProvisioningConfigRequest request, CancellationToken cancellationToken)

Get ProvisioningConfig by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetProvisioningConfigRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskProvisioningConfig` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
GetProvisioningConfigRequest request = new GetProvisioningConfigRequest
{
    ProvisioningConfigName = ProvisioningConfigName.FromProjectLocationProvisioningConfig("[PROJECT]", "[LOCATION]", "[PROVISIONING_CONFIG]"),
};
// Make the request
ProvisioningConfig response = await bareMetalSolutionClient.GetProvisioningConfigAsync(request);
```

### GetProvisioningConfigAsync(ProvisioningConfigName, CallSettings)

    public virtual Task<ProvisioningConfig> GetProvisioningConfigAsync(ProvisioningConfigName name, CallSettings callSettings = null)

Get ProvisioningConfig by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `ProvisioningConfigName` Required. Name of the ProvisioningConfig. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskProvisioningConfig` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
ProvisioningConfigName name = ProvisioningConfigName.FromProjectLocationProvisioningConfig("[PROJECT]", "[LOCATION]", "[PROVISIONING_CONFIG]");
// Make the request
ProvisioningConfig response = await bareMetalSolutionClient.GetProvisioningConfigAsync(name);
```

### GetProvisioningConfigAsync(ProvisioningConfigName, CancellationToken)

    public virtual Task<ProvisioningConfig> GetProvisioningConfigAsync(ProvisioningConfigName name, CancellationToken cancellationToken)

Get ProvisioningConfig by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `ProvisioningConfigName` Required. Name of the ProvisioningConfig. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskProvisioningConfig` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
ProvisioningConfigName name = ProvisioningConfigName.FromProjectLocationProvisioningConfig("[PROJECT]", "[LOCATION]", "[PROVISIONING_CONFIG]");
// Make the request
ProvisioningConfig response = await bareMetalSolutionClient.GetProvisioningConfigAsync(name);
```

### GetProvisioningConfigAsync(string, CallSettings)

    public virtual Task<ProvisioningConfig> GetProvisioningConfigAsync(string name, CallSettings callSettings = null)

Get ProvisioningConfig by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the ProvisioningConfig. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskProvisioningConfig` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/provisioningConfigs/[PROVISIONING_CONFIG]";
// Make the request
ProvisioningConfig response = await bareMetalSolutionClient.GetProvisioningConfigAsync(name);
```

### GetProvisioningConfigAsync(string, CancellationToken)

    public virtual Task<ProvisioningConfig> GetProvisioningConfigAsync(string name, CancellationToken cancellationToken)

Get ProvisioningConfig by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the ProvisioningConfig. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskProvisioningConfig` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/provisioningConfigs/[PROVISIONING_CONFIG]";
// Make the request
ProvisioningConfig response = await bareMetalSolutionClient.GetProvisioningConfigAsync(name);
```

### GetVolume(GetVolumeRequest, CallSettings)

    public virtual Volume GetVolume(GetVolumeRequest request, CallSettings callSettings = null)

Get details of a single storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetVolumeRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Volume` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
GetVolumeRequest request = new GetVolumeRequest
{
    VolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
};
// Make the request
Volume response = bareMetalSolutionClient.GetVolume(request);
```

### GetVolume(VolumeName, CallSettings)

    public virtual Volume GetVolume(VolumeName name, CallSettings callSettings = null)

Get details of a single storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `VolumeName` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Volume` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
VolumeName name = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
Volume response = bareMetalSolutionClient.GetVolume(name);
```

### GetVolume(string, CallSettings)

    public virtual Volume GetVolume(string name, CallSettings callSettings = null)

Get details of a single storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Volume` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
Volume response = bareMetalSolutionClient.GetVolume(name);
```

### GetVolumeAsync(GetVolumeRequest, CallSettings)

    public virtual Task<Volume> GetVolumeAsync(GetVolumeRequest request, CallSettings callSettings = null)

Get details of a single storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetVolumeRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolume` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
GetVolumeRequest request = new GetVolumeRequest
{
    VolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
};
// Make the request
Volume response = await bareMetalSolutionClient.GetVolumeAsync(request);
```

### GetVolumeAsync(GetVolumeRequest, CancellationToken)

    public virtual Task<Volume> GetVolumeAsync(GetVolumeRequest request, CancellationToken cancellationToken)

Get details of a single storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetVolumeRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolume` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
GetVolumeRequest request = new GetVolumeRequest
{
    VolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
};
// Make the request
Volume response = await bareMetalSolutionClient.GetVolumeAsync(request);
```

### GetVolumeAsync(VolumeName, CallSettings)

    public virtual Task<Volume> GetVolumeAsync(VolumeName name, CallSettings callSettings = null)

Get details of a single storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `VolumeName` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolume` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
VolumeName name = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
Volume response = await bareMetalSolutionClient.GetVolumeAsync(name);
```

### GetVolumeAsync(VolumeName, CancellationToken)

    public virtual Task<Volume> GetVolumeAsync(VolumeName name, CancellationToken cancellationToken)

Get details of a single storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `VolumeName` Required. Name of the resource. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolume` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
VolumeName name = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
Volume response = await bareMetalSolutionClient.GetVolumeAsync(name);
```

### GetVolumeAsync(string, CallSettings)

    public virtual Task<Volume> GetVolumeAsync(string name, CallSettings callSettings = null)

Get details of a single storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolume` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
Volume response = await bareMetalSolutionClient.GetVolumeAsync(name);
```

### GetVolumeAsync(string, CancellationToken)

    public virtual Task<Volume> GetVolumeAsync(string name, CancellationToken cancellationToken)

Get details of a single storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolume` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
Volume response = await bareMetalSolutionClient.GetVolumeAsync(name);
```

### GetVolumeSnapshot(GetVolumeSnapshotRequest, CallSettings)

    public virtual VolumeSnapshot GetVolumeSnapshot(GetVolumeSnapshotRequest request, CallSettings callSettings = null)

Returns the specified snapshot resource.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetVolumeSnapshotRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `VolumeSnapshot` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
GetVolumeSnapshotRequest request = new GetVolumeSnapshotRequest
{
    VolumeSnapshotName = VolumeSnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"),
};
// Make the request
VolumeSnapshot response = bareMetalSolutionClient.GetVolumeSnapshot(request);
```

### GetVolumeSnapshot(VolumeSnapshotName, CallSettings)

    public virtual VolumeSnapshot GetVolumeSnapshot(VolumeSnapshotName name, CallSettings callSettings = null)

Returns the specified snapshot resource.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `VolumeSnapshotName` Required. The name of the snapshot. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `VolumeSnapshot` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
VolumeSnapshotName name = VolumeSnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]");
// Make the request
VolumeSnapshot response = bareMetalSolutionClient.GetVolumeSnapshot(name);
```

### GetVolumeSnapshot(string, CallSettings)

    public virtual VolumeSnapshot GetVolumeSnapshot(string name, CallSettings callSettings = null)

Returns the specified snapshot resource.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the snapshot. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `VolumeSnapshot` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/snapshots/[SNAPSHOT]";
// Make the request
VolumeSnapshot response = bareMetalSolutionClient.GetVolumeSnapshot(name);
```

### GetVolumeSnapshotAsync(GetVolumeSnapshotRequest, CallSettings)

    public virtual Task<VolumeSnapshot> GetVolumeSnapshotAsync(GetVolumeSnapshotRequest request, CallSettings callSettings = null)

Returns the specified snapshot resource.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetVolumeSnapshotRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolumeSnapshot` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
GetVolumeSnapshotRequest request = new GetVolumeSnapshotRequest
{
    VolumeSnapshotName = VolumeSnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"),
};
// Make the request
VolumeSnapshot response = await bareMetalSolutionClient.GetVolumeSnapshotAsync(request);
```

### GetVolumeSnapshotAsync(GetVolumeSnapshotRequest, CancellationToken)

    public virtual Task<VolumeSnapshot> GetVolumeSnapshotAsync(GetVolumeSnapshotRequest request, CancellationToken cancellationToken)

Returns the specified snapshot resource.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetVolumeSnapshotRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolumeSnapshot` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
GetVolumeSnapshotRequest request = new GetVolumeSnapshotRequest
{
    VolumeSnapshotName = VolumeSnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"),
};
// Make the request
VolumeSnapshot response = await bareMetalSolutionClient.GetVolumeSnapshotAsync(request);
```

### GetVolumeSnapshotAsync(VolumeSnapshotName, CallSettings)

    public virtual Task<VolumeSnapshot> GetVolumeSnapshotAsync(VolumeSnapshotName name, CallSettings callSettings = null)

Returns the specified snapshot resource.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `VolumeSnapshotName` Required. The name of the snapshot. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolumeSnapshot` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
VolumeSnapshotName name = VolumeSnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]");
// Make the request
VolumeSnapshot response = await bareMetalSolutionClient.GetVolumeSnapshotAsync(name);
```

### GetVolumeSnapshotAsync(VolumeSnapshotName, CancellationToken)

    public virtual Task<VolumeSnapshot> GetVolumeSnapshotAsync(VolumeSnapshotName name, CancellationToken cancellationToken)

Returns the specified snapshot resource.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `VolumeSnapshotName` Required. The name of the snapshot. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolumeSnapshot` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
VolumeSnapshotName name = VolumeSnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]");
// Make the request
VolumeSnapshot response = await bareMetalSolutionClient.GetVolumeSnapshotAsync(name);
```

### GetVolumeSnapshotAsync(string, CallSettings)

    public virtual Task<VolumeSnapshot> GetVolumeSnapshotAsync(string name, CallSettings callSettings = null)

Returns the specified snapshot resource.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the snapshot. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolumeSnapshot` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/snapshots/[SNAPSHOT]";
// Make the request
VolumeSnapshot response = await bareMetalSolutionClient.GetVolumeSnapshotAsync(name);
```

### GetVolumeSnapshotAsync(string, CancellationToken)

    public virtual Task<VolumeSnapshot> GetVolumeSnapshotAsync(string name, CancellationToken cancellationToken)

Returns the specified snapshot resource.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the snapshot. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolumeSnapshot` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/snapshots/[SNAPSHOT]";
// Make the request
VolumeSnapshot response = await bareMetalSolutionClient.GetVolumeSnapshotAsync(name);
```

### ListInstances(LocationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListInstancesResponse, Instance> ListInstances(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List servers in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. Parent value for ListInstancesRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListInstancesResponseInstance` | A pageable sequence of [Instance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Instance.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListInstancesResponse, Instance> response = bareMetalSolutionClient.ListInstances(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Instance item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListInstancesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Instance item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Instance> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Instance item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListInstances(ListInstancesRequest, CallSettings)

    public virtual PagedEnumerable<ListInstancesResponse, Instance> ListInstances(ListInstancesRequest request, CallSettings callSettings = null)

List servers in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListInstancesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListInstancesResponseInstance` | A pageable sequence of [Instance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Instance.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
ListInstancesRequest request = new ListInstancesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
};
// Make the request
PagedEnumerable<ListInstancesResponse, Instance> response = bareMetalSolutionClient.ListInstances(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Instance item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListInstancesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Instance item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Instance> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Instance item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListInstances(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListInstancesResponse, Instance> ListInstances(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List servers in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent value for ListInstancesRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListInstancesResponseInstance` | A pageable sequence of [Instance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Instance.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListInstancesResponse, Instance> response = bareMetalSolutionClient.ListInstances(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Instance item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListInstancesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Instance item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Instance> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Instance item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListInstancesAsync(LocationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListInstancesResponse, Instance> ListInstancesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List servers in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. Parent value for ListInstancesRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListInstancesResponseInstance` | A pageable asynchronous sequence of [Instance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Instance.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListInstancesResponse, Instance> response = bareMetalSolutionClient.ListInstancesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Instance item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListInstancesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Instance item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Instance> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Instance item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListInstancesAsync(ListInstancesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListInstancesResponse, Instance> ListInstancesAsync(ListInstancesRequest request, CallSettings callSettings = null)

List servers in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListInstancesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListInstancesResponseInstance` | A pageable asynchronous sequence of [Instance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Instance.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
ListInstancesRequest request = new ListInstancesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListInstancesResponse, Instance> response = bareMetalSolutionClient.ListInstancesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Instance item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListInstancesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Instance item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Instance> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Instance item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListInstancesAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListInstancesResponse, Instance> ListInstancesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List servers in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent value for ListInstancesRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListInstancesResponseInstance` | A pageable asynchronous sequence of [Instance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Instance.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListInstancesResponse, Instance> response = bareMetalSolutionClient.ListInstancesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Instance item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListInstancesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Instance item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Instance> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Instance item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListLuns(ListLunsRequest, CallSettings)

    public virtual PagedEnumerable<ListLunsResponse, Lun> ListLuns(ListLunsRequest request, CallSettings callSettings = null)

List storage volume luns for given storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListLunsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListLunsResponseLun` | A pageable sequence of [Lun](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Lun.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
ListLunsRequest request = new ListLunsRequest
{
    ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
};
// Make the request
PagedEnumerable<ListLunsResponse, Lun> response = bareMetalSolutionClient.ListLuns(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Lun item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListLunsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Lun item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Lun> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Lun item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListLuns(VolumeName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListLunsResponse, Lun> ListLuns(VolumeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List storage volume luns for given storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `VolumeName` Required. Parent value for ListLunsRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListLunsResponseLun` | A pageable sequence of [Lun](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Lun.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
PagedEnumerable<ListLunsResponse, Lun> response = bareMetalSolutionClient.ListLuns(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Lun item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListLunsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Lun item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Lun> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Lun item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListLuns(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListLunsResponse, Lun> ListLuns(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List storage volume luns for given storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent value for ListLunsRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListLunsResponseLun` | A pageable sequence of [Lun](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Lun.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
PagedEnumerable<ListLunsResponse, Lun> response = bareMetalSolutionClient.ListLuns(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Lun item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListLunsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Lun item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Lun> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Lun item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListLunsAsync(ListLunsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListLunsResponse, Lun> ListLunsAsync(ListLunsRequest request, CallSettings callSettings = null)

List storage volume luns for given storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListLunsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListLunsResponseLun` | A pageable asynchronous sequence of [Lun](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Lun.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
ListLunsRequest request = new ListLunsRequest
{
    ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
};
// Make the request
PagedAsyncEnumerable<ListLunsResponse, Lun> response = bareMetalSolutionClient.ListLunsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Lun item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListLunsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Lun item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Lun> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Lun item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListLunsAsync(VolumeName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListLunsResponse, Lun> ListLunsAsync(VolumeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List storage volume luns for given storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `VolumeName` Required. Parent value for ListLunsRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListLunsResponseLun` | A pageable asynchronous sequence of [Lun](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Lun.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
PagedAsyncEnumerable<ListLunsResponse, Lun> response = bareMetalSolutionClient.ListLunsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Lun item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListLunsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Lun item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Lun> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Lun item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListLunsAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListLunsResponse, Lun> ListLunsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List storage volume luns for given storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent value for ListLunsRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListLunsResponseLun` | A pageable asynchronous sequence of [Lun](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Lun.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
PagedAsyncEnumerable<ListLunsResponse, Lun> response = bareMetalSolutionClient.ListLunsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Lun item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListLunsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Lun item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Lun> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Lun item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListNetworkUsage(LocationName, CallSettings)

    public virtual ListNetworkUsageResponse ListNetworkUsage(LocationName location, CallSettings callSettings = null)

List all Networks (and used IPs for each Network) in the vendor account
associated with the specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `location` | `LocationName` Required. Parent value (project and location). |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ListNetworkUsageResponse` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
LocationName location = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
ListNetworkUsageResponse response = bareMetalSolutionClient.ListNetworkUsage(location);
```

### ListNetworkUsage(ListNetworkUsageRequest, CallSettings)

    public virtual ListNetworkUsageResponse ListNetworkUsage(ListNetworkUsageRequest request, CallSettings callSettings = null)

List all Networks (and used IPs for each Network) in the vendor account
associated with the specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListNetworkUsageRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ListNetworkUsageResponse` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
ListNetworkUsageRequest request = new ListNetworkUsageRequest
{
    LocationAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
ListNetworkUsageResponse response = bareMetalSolutionClient.ListNetworkUsage(request);
```

### ListNetworkUsage(string, CallSettings)

    public virtual ListNetworkUsageResponse ListNetworkUsage(string location, CallSettings callSettings = null)

List all Networks (and used IPs for each Network) in the vendor account
associated with the specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `location` | `string` Required. Parent value (project and location). |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ListNetworkUsageResponse` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string location = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
ListNetworkUsageResponse response = bareMetalSolutionClient.ListNetworkUsage(location);
```

### ListNetworkUsageAsync(LocationName, CallSettings)

    public virtual Task<ListNetworkUsageResponse> ListNetworkUsageAsync(LocationName location, CallSettings callSettings = null)

List all Networks (and used IPs for each Network) in the vendor account
associated with the specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `location` | `LocationName` Required. Parent value (project and location). |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskListNetworkUsageResponse` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LocationName location = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
ListNetworkUsageResponse response = await bareMetalSolutionClient.ListNetworkUsageAsync(location);
```

### ListNetworkUsageAsync(LocationName, CancellationToken)

    public virtual Task<ListNetworkUsageResponse> ListNetworkUsageAsync(LocationName location, CancellationToken cancellationToken)

List all Networks (and used IPs for each Network) in the vendor account
associated with the specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `location` | `LocationName` Required. Parent value (project and location). |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskListNetworkUsageResponse` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LocationName location = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
ListNetworkUsageResponse response = await bareMetalSolutionClient.ListNetworkUsageAsync(location);
```

### ListNetworkUsageAsync(ListNetworkUsageRequest, CallSettings)

    public virtual Task<ListNetworkUsageResponse> ListNetworkUsageAsync(ListNetworkUsageRequest request, CallSettings callSettings = null)

List all Networks (and used IPs for each Network) in the vendor account
associated with the specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListNetworkUsageRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskListNetworkUsageResponse` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
ListNetworkUsageRequest request = new ListNetworkUsageRequest
{
    LocationAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
ListNetworkUsageResponse response = await bareMetalSolutionClient.ListNetworkUsageAsync(request);
```

### ListNetworkUsageAsync(ListNetworkUsageRequest, CancellationToken)

    public virtual Task<ListNetworkUsageResponse> ListNetworkUsageAsync(ListNetworkUsageRequest request, CancellationToken cancellationToken)

List all Networks (and used IPs for each Network) in the vendor account
associated with the specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListNetworkUsageRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskListNetworkUsageResponse` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
ListNetworkUsageRequest request = new ListNetworkUsageRequest
{
    LocationAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
ListNetworkUsageResponse response = await bareMetalSolutionClient.ListNetworkUsageAsync(request);
```

### ListNetworkUsageAsync(string, CallSettings)

    public virtual Task<ListNetworkUsageResponse> ListNetworkUsageAsync(string location, CallSettings callSettings = null)

List all Networks (and used IPs for each Network) in the vendor account
associated with the specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `location` | `string` Required. Parent value (project and location). |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskListNetworkUsageResponse` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string location = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
ListNetworkUsageResponse response = await bareMetalSolutionClient.ListNetworkUsageAsync(location);
```

### ListNetworkUsageAsync(string, CancellationToken)

    public virtual Task<ListNetworkUsageResponse> ListNetworkUsageAsync(string location, CancellationToken cancellationToken)

List all Networks (and used IPs for each Network) in the vendor account
associated with the specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `location` | `string` Required. Parent value (project and location). |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskListNetworkUsageResponse` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string location = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
ListNetworkUsageResponse response = await bareMetalSolutionClient.ListNetworkUsageAsync(location);
```

### ListNetworks(LocationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListNetworksResponse, Network> ListNetworks(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List network in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. Parent value for ListNetworksRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListNetworksResponseNetwork` | A pageable sequence of [Network](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Network.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListNetworksResponse, Network> response = bareMetalSolutionClient.ListNetworks(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Network item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListNetworksResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Network item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Network> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Network item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListNetworks(ListNetworksRequest, CallSettings)

    public virtual PagedEnumerable<ListNetworksResponse, Network> ListNetworks(ListNetworksRequest request, CallSettings callSettings = null)

List network in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListNetworksRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListNetworksResponseNetwork` | A pageable sequence of [Network](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Network.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
ListNetworksRequest request = new ListNetworksRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
};
// Make the request
PagedEnumerable<ListNetworksResponse, Network> response = bareMetalSolutionClient.ListNetworks(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Network item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListNetworksResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Network item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Network> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Network item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListNetworks(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListNetworksResponse, Network> ListNetworks(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List network in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent value for ListNetworksRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListNetworksResponseNetwork` | A pageable sequence of [Network](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Network.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListNetworksResponse, Network> response = bareMetalSolutionClient.ListNetworks(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Network item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListNetworksResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Network item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Network> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Network item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListNetworksAsync(LocationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListNetworksResponse, Network> ListNetworksAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List network in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. Parent value for ListNetworksRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListNetworksResponseNetwork` | A pageable asynchronous sequence of [Network](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Network.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListNetworksResponse, Network> response = bareMetalSolutionClient.ListNetworksAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Network item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNetworksResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Network item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Network> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Network item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListNetworksAsync(ListNetworksRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListNetworksResponse, Network> ListNetworksAsync(ListNetworksRequest request, CallSettings callSettings = null)

List network in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListNetworksRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListNetworksResponseNetwork` | A pageable asynchronous sequence of [Network](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Network.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
ListNetworksRequest request = new ListNetworksRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListNetworksResponse, Network> response = bareMetalSolutionClient.ListNetworksAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Network item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNetworksResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Network item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Network> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Network item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListNetworksAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListNetworksResponse, Network> ListNetworksAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List network in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent value for ListNetworksRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListNetworksResponseNetwork` | A pageable asynchronous sequence of [Network](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Network.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListNetworksResponse, Network> response = bareMetalSolutionClient.ListNetworksAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Network item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNetworksResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Network item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Network> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Network item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListNfsShares(LocationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListNfsSharesResponse, NfsShare> ListNfsShares(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List NFS shares.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. Parent value for ListNfsSharesRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListNfsSharesResponseNfsShare` | A pageable sequence of [NfsShare](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.NfsShare.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListNfsSharesResponse, NfsShare> response = bareMetalSolutionClient.ListNfsShares(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (NfsShare item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListNfsSharesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NfsShare item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NfsShare> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NfsShare item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListNfsShares(ListNfsSharesRequest, CallSettings)

    public virtual PagedEnumerable<ListNfsSharesResponse, NfsShare> ListNfsShares(ListNfsSharesRequest request, CallSettings callSettings = null)

List NFS shares.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListNfsSharesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListNfsSharesResponseNfsShare` | A pageable sequence of [NfsShare](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.NfsShare.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
ListNfsSharesRequest request = new ListNfsSharesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
};
// Make the request
PagedEnumerable<ListNfsSharesResponse, NfsShare> response = bareMetalSolutionClient.ListNfsShares(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (NfsShare item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListNfsSharesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NfsShare item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NfsShare> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NfsShare item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListNfsShares(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListNfsSharesResponse, NfsShare> ListNfsShares(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List NFS shares.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent value for ListNfsSharesRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListNfsSharesResponseNfsShare` | A pageable sequence of [NfsShare](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.NfsShare.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListNfsSharesResponse, NfsShare> response = bareMetalSolutionClient.ListNfsShares(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (NfsShare item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListNfsSharesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NfsShare item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NfsShare> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NfsShare item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListNfsSharesAsync(LocationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListNfsSharesResponse, NfsShare> ListNfsSharesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List NFS shares.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. Parent value for ListNfsSharesRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListNfsSharesResponseNfsShare` | A pageable asynchronous sequence of [NfsShare](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.NfsShare.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListNfsSharesResponse, NfsShare> response = bareMetalSolutionClient.ListNfsSharesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NfsShare item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNfsSharesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NfsShare item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NfsShare> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NfsShare item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListNfsSharesAsync(ListNfsSharesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListNfsSharesResponse, NfsShare> ListNfsSharesAsync(ListNfsSharesRequest request, CallSettings callSettings = null)

List NFS shares.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListNfsSharesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListNfsSharesResponseNfsShare` | A pageable asynchronous sequence of [NfsShare](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.NfsShare.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
ListNfsSharesRequest request = new ListNfsSharesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListNfsSharesResponse, NfsShare> response = bareMetalSolutionClient.ListNfsSharesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NfsShare item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNfsSharesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NfsShare item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NfsShare> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NfsShare item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListNfsSharesAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListNfsSharesResponse, NfsShare> ListNfsSharesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List NFS shares.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent value for ListNfsSharesRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListNfsSharesResponseNfsShare` | A pageable asynchronous sequence of [NfsShare](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.NfsShare.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListNfsSharesResponse, NfsShare> response = bareMetalSolutionClient.ListNfsSharesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NfsShare item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNfsSharesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NfsShare item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NfsShare> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NfsShare item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListOSImages(LocationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListOSImagesResponse, OSImage> ListOSImages(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves the list of OS images which are currently approved.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. Parent value for ListProvisioningQuotasRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListOSImagesResponseOSImage` | A pageable sequence of [OSImage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.OSImage.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListOSImagesResponse, OSImage> response = bareMetalSolutionClient.ListOSImages(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (OSImage item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListOSImagesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (OSImage item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<OSImage> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (OSImage item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListOSImages(ListOSImagesRequest, CallSettings)

    public virtual PagedEnumerable<ListOSImagesResponse, OSImage> ListOSImages(ListOSImagesRequest request, CallSettings callSettings = null)

Retrieves the list of OS images which are currently approved.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListOSImagesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListOSImagesResponseOSImage` | A pageable sequence of [OSImage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.OSImage.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
ListOSImagesRequest request = new ListOSImagesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListOSImagesResponse, OSImage> response = bareMetalSolutionClient.ListOSImages(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (OSImage item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListOSImagesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (OSImage item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<OSImage> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (OSImage item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListOSImages(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListOSImagesResponse, OSImage> ListOSImages(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves the list of OS images which are currently approved.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent value for ListProvisioningQuotasRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListOSImagesResponseOSImage` | A pageable sequence of [OSImage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.OSImage.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListOSImagesResponse, OSImage> response = bareMetalSolutionClient.ListOSImages(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (OSImage item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListOSImagesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (OSImage item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<OSImage> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (OSImage item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListOSImagesAsync(LocationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListOSImagesResponse, OSImage> ListOSImagesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves the list of OS images which are currently approved.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. Parent value for ListProvisioningQuotasRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListOSImagesResponseOSImage` | A pageable asynchronous sequence of [OSImage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.OSImage.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListOSImagesResponse, OSImage> response = bareMetalSolutionClient.ListOSImagesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((OSImage item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListOSImagesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (OSImage item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<OSImage> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (OSImage item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListOSImagesAsync(ListOSImagesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListOSImagesResponse, OSImage> ListOSImagesAsync(ListOSImagesRequest request, CallSettings callSettings = null)

Retrieves the list of OS images which are currently approved.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListOSImagesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListOSImagesResponseOSImage` | A pageable asynchronous sequence of [OSImage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.OSImage.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
ListOSImagesRequest request = new ListOSImagesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListOSImagesResponse, OSImage> response = bareMetalSolutionClient.ListOSImagesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((OSImage item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListOSImagesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (OSImage item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<OSImage> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (OSImage item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListOSImagesAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListOSImagesResponse, OSImage> ListOSImagesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves the list of OS images which are currently approved.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent value for ListProvisioningQuotasRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListOSImagesResponseOSImage` | A pageable asynchronous sequence of [OSImage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.OSImage.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListOSImagesResponse, OSImage> response = bareMetalSolutionClient.ListOSImagesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((OSImage item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListOSImagesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (OSImage item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<OSImage> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (OSImage item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListProvisioningQuotas(LocationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListProvisioningQuotasResponse, ProvisioningQuota> ListProvisioningQuotas(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List the budget details to provision resources on a given project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. Parent value for ListProvisioningQuotasRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListProvisioningQuotasResponseProvisioningQuota` | A pageable sequence of [ProvisioningQuota](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.ProvisioningQuota.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListProvisioningQuotasResponse, ProvisioningQuota> response = bareMetalSolutionClient.ListProvisioningQuotas(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ProvisioningQuota item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListProvisioningQuotasResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ProvisioningQuota item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProvisioningQuota> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProvisioningQuota item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListProvisioningQuotas(ListProvisioningQuotasRequest, CallSettings)

    public virtual PagedEnumerable<ListProvisioningQuotasResponse, ProvisioningQuota> ListProvisioningQuotas(ListProvisioningQuotasRequest request, CallSettings callSettings = null)

List the budget details to provision resources on a given project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListProvisioningQuotasRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListProvisioningQuotasResponseProvisioningQuota` | A pageable sequence of [ProvisioningQuota](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.ProvisioningQuota.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
ListProvisioningQuotasRequest request = new ListProvisioningQuotasRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListProvisioningQuotasResponse, ProvisioningQuota> response = bareMetalSolutionClient.ListProvisioningQuotas(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ProvisioningQuota item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListProvisioningQuotasResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ProvisioningQuota item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProvisioningQuota> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProvisioningQuota item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListProvisioningQuotas(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListProvisioningQuotasResponse, ProvisioningQuota> ListProvisioningQuotas(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List the budget details to provision resources on a given project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent value for ListProvisioningQuotasRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListProvisioningQuotasResponseProvisioningQuota` | A pageable sequence of [ProvisioningQuota](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.ProvisioningQuota.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListProvisioningQuotasResponse, ProvisioningQuota> response = bareMetalSolutionClient.ListProvisioningQuotas(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ProvisioningQuota item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListProvisioningQuotasResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ProvisioningQuota item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProvisioningQuota> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProvisioningQuota item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListProvisioningQuotasAsync(LocationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListProvisioningQuotasResponse, ProvisioningQuota> ListProvisioningQuotasAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List the budget details to provision resources on a given project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. Parent value for ListProvisioningQuotasRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListProvisioningQuotasResponseProvisioningQuota` | A pageable asynchronous sequence of [ProvisioningQuota](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.ProvisioningQuota.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListProvisioningQuotasResponse, ProvisioningQuota> response = bareMetalSolutionClient.ListProvisioningQuotasAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ProvisioningQuota item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListProvisioningQuotasResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ProvisioningQuota item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProvisioningQuota> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProvisioningQuota item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListProvisioningQuotasAsync(ListProvisioningQuotasRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListProvisioningQuotasResponse, ProvisioningQuota> ListProvisioningQuotasAsync(ListProvisioningQuotasRequest request, CallSettings callSettings = null)

List the budget details to provision resources on a given project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListProvisioningQuotasRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListProvisioningQuotasResponseProvisioningQuota` | A pageable asynchronous sequence of [ProvisioningQuota](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.ProvisioningQuota.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
ListProvisioningQuotasRequest request = new ListProvisioningQuotasRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListProvisioningQuotasResponse, ProvisioningQuota> response = bareMetalSolutionClient.ListProvisioningQuotasAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ProvisioningQuota item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListProvisioningQuotasResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ProvisioningQuota item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProvisioningQuota> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProvisioningQuota item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListProvisioningQuotasAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListProvisioningQuotasResponse, ProvisioningQuota> ListProvisioningQuotasAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List the budget details to provision resources on a given project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent value for ListProvisioningQuotasRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListProvisioningQuotasResponseProvisioningQuota` | A pageable asynchronous sequence of [ProvisioningQuota](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.ProvisioningQuota.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListProvisioningQuotasResponse, ProvisioningQuota> response = bareMetalSolutionClient.ListProvisioningQuotasAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ProvisioningQuota item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListProvisioningQuotasResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ProvisioningQuota item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ProvisioningQuota> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ProvisioningQuota item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListSSHKeys(LocationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListSSHKeysResponse, SSHKey> ListSSHKeys(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the public SSH keys registered for the specified project.
These SSH keys are used only for the interactive serial console feature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent containing the SSH keys. Currently, the only valid value for the location is "global". |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListSSHKeysResponseSSHKey` | A pageable sequence of [SSHKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.SSHKey.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListSSHKeysResponse, SSHKey> response = bareMetalSolutionClient.ListSSHKeys(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (SSHKey item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSSHKeysResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SSHKey item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SSHKey> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SSHKey item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListSSHKeys(ListSSHKeysRequest, CallSettings)

    public virtual PagedEnumerable<ListSSHKeysResponse, SSHKey> ListSSHKeys(ListSSHKeysRequest request, CallSettings callSettings = null)

Lists the public SSH keys registered for the specified project.
These SSH keys are used only for the interactive serial console feature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListSSHKeysRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListSSHKeysResponseSSHKey` | A pageable sequence of [SSHKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.SSHKey.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
ListSSHKeysRequest request = new ListSSHKeysRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListSSHKeysResponse, SSHKey> response = bareMetalSolutionClient.ListSSHKeys(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (SSHKey item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSSHKeysResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SSHKey item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SSHKey> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SSHKey item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListSSHKeys(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListSSHKeysResponse, SSHKey> ListSSHKeys(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the public SSH keys registered for the specified project.
These SSH keys are used only for the interactive serial console feature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent containing the SSH keys. Currently, the only valid value for the location is "global". |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListSSHKeysResponseSSHKey` | A pageable sequence of [SSHKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.SSHKey.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListSSHKeysResponse, SSHKey> response = bareMetalSolutionClient.ListSSHKeys(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (SSHKey item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSSHKeysResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SSHKey item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SSHKey> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SSHKey item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListSSHKeysAsync(LocationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListSSHKeysResponse, SSHKey> ListSSHKeysAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the public SSH keys registered for the specified project.
These SSH keys are used only for the interactive serial console feature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent containing the SSH keys. Currently, the only valid value for the location is "global". |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListSSHKeysResponseSSHKey` | A pageable asynchronous sequence of [SSHKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.SSHKey.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListSSHKeysResponse, SSHKey> response = bareMetalSolutionClient.ListSSHKeysAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((SSHKey item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSSHKeysResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SSHKey item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SSHKey> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SSHKey item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListSSHKeysAsync(ListSSHKeysRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListSSHKeysResponse, SSHKey> ListSSHKeysAsync(ListSSHKeysRequest request, CallSettings callSettings = null)

Lists the public SSH keys registered for the specified project.
These SSH keys are used only for the interactive serial console feature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListSSHKeysRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListSSHKeysResponseSSHKey` | A pageable asynchronous sequence of [SSHKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.SSHKey.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
ListSSHKeysRequest request = new ListSSHKeysRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListSSHKeysResponse, SSHKey> response = bareMetalSolutionClient.ListSSHKeysAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((SSHKey item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSSHKeysResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SSHKey item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SSHKey> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SSHKey item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListSSHKeysAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListSSHKeysResponse, SSHKey> ListSSHKeysAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the public SSH keys registered for the specified project.
These SSH keys are used only for the interactive serial console feature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent containing the SSH keys. Currently, the only valid value for the location is "global". |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListSSHKeysResponseSSHKey` | A pageable asynchronous sequence of [SSHKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.SSHKey.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListSSHKeysResponse, SSHKey> response = bareMetalSolutionClient.ListSSHKeysAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((SSHKey item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSSHKeysResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SSHKey item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SSHKey> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SSHKey item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListVolumeSnapshots(ListVolumeSnapshotsRequest, CallSettings)

    public virtual PagedEnumerable<ListVolumeSnapshotsResponse, VolumeSnapshot> ListVolumeSnapshots(ListVolumeSnapshotsRequest request, CallSettings callSettings = null)

Retrieves the list of snapshots for the specified volume.
Returns a response with an empty list of snapshots if called
for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListVolumeSnapshotsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListVolumeSnapshotsResponseVolumeSnapshot` | A pageable sequence of [VolumeSnapshot](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.VolumeSnapshot.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
ListVolumeSnapshotsRequest request = new ListVolumeSnapshotsRequest
{
    ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
};
// Make the request
PagedEnumerable<ListVolumeSnapshotsResponse, VolumeSnapshot> response = bareMetalSolutionClient.ListVolumeSnapshots(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (VolumeSnapshot item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListVolumeSnapshotsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (VolumeSnapshot item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<VolumeSnapshot> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (VolumeSnapshot item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListVolumeSnapshots(VolumeName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListVolumeSnapshotsResponse, VolumeSnapshot> ListVolumeSnapshots(VolumeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves the list of snapshots for the specified volume.
Returns a response with an empty list of snapshots if called
for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `VolumeName` Required. Parent value for ListVolumesRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListVolumeSnapshotsResponseVolumeSnapshot` | A pageable sequence of [VolumeSnapshot](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.VolumeSnapshot.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
PagedEnumerable<ListVolumeSnapshotsResponse, VolumeSnapshot> response = bareMetalSolutionClient.ListVolumeSnapshots(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (VolumeSnapshot item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListVolumeSnapshotsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (VolumeSnapshot item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<VolumeSnapshot> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (VolumeSnapshot item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListVolumeSnapshots(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListVolumeSnapshotsResponse, VolumeSnapshot> ListVolumeSnapshots(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves the list of snapshots for the specified volume.
Returns a response with an empty list of snapshots if called
for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent value for ListVolumesRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListVolumeSnapshotsResponseVolumeSnapshot` | A pageable sequence of [VolumeSnapshot](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.VolumeSnapshot.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
PagedEnumerable<ListVolumeSnapshotsResponse, VolumeSnapshot> response = bareMetalSolutionClient.ListVolumeSnapshots(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (VolumeSnapshot item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListVolumeSnapshotsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (VolumeSnapshot item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<VolumeSnapshot> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (VolumeSnapshot item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListVolumeSnapshotsAsync(ListVolumeSnapshotsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListVolumeSnapshotsResponse, VolumeSnapshot> ListVolumeSnapshotsAsync(ListVolumeSnapshotsRequest request, CallSettings callSettings = null)

Retrieves the list of snapshots for the specified volume.
Returns a response with an empty list of snapshots if called
for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListVolumeSnapshotsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListVolumeSnapshotsResponseVolumeSnapshot` | A pageable asynchronous sequence of [VolumeSnapshot](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.VolumeSnapshot.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
ListVolumeSnapshotsRequest request = new ListVolumeSnapshotsRequest
{
    ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
};
// Make the request
PagedAsyncEnumerable<ListVolumeSnapshotsResponse, VolumeSnapshot> response = bareMetalSolutionClient.ListVolumeSnapshotsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((VolumeSnapshot item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListVolumeSnapshotsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (VolumeSnapshot item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<VolumeSnapshot> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (VolumeSnapshot item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListVolumeSnapshotsAsync(VolumeName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListVolumeSnapshotsResponse, VolumeSnapshot> ListVolumeSnapshotsAsync(VolumeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves the list of snapshots for the specified volume.
Returns a response with an empty list of snapshots if called
for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `VolumeName` Required. Parent value for ListVolumesRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListVolumeSnapshotsResponseVolumeSnapshot` | A pageable asynchronous sequence of [VolumeSnapshot](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.VolumeSnapshot.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
PagedAsyncEnumerable<ListVolumeSnapshotsResponse, VolumeSnapshot> response = bareMetalSolutionClient.ListVolumeSnapshotsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((VolumeSnapshot item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListVolumeSnapshotsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (VolumeSnapshot item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<VolumeSnapshot> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (VolumeSnapshot item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListVolumeSnapshotsAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListVolumeSnapshotsResponse, VolumeSnapshot> ListVolumeSnapshotsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves the list of snapshots for the specified volume.
Returns a response with an empty list of snapshots if called
for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent value for ListVolumesRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListVolumeSnapshotsResponseVolumeSnapshot` | A pageable asynchronous sequence of [VolumeSnapshot](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.VolumeSnapshot.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
PagedAsyncEnumerable<ListVolumeSnapshotsResponse, VolumeSnapshot> response = bareMetalSolutionClient.ListVolumeSnapshotsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((VolumeSnapshot item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListVolumeSnapshotsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (VolumeSnapshot item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<VolumeSnapshot> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (VolumeSnapshot item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListVolumes(LocationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListVolumesResponse, Volume> ListVolumes(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List storage volumes in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. Parent value for ListVolumesRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListVolumesResponseVolume` | A pageable sequence of [Volume](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Volume.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListVolumesResponse, Volume> response = bareMetalSolutionClient.ListVolumes(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Volume item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListVolumesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Volume item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Volume> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Volume item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListVolumes(ListVolumesRequest, CallSettings)

    public virtual PagedEnumerable<ListVolumesResponse, Volume> ListVolumes(ListVolumesRequest request, CallSettings callSettings = null)

List storage volumes in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListVolumesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListVolumesResponseVolume` | A pageable sequence of [Volume](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Volume.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
ListVolumesRequest request = new ListVolumesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
};
// Make the request
PagedEnumerable<ListVolumesResponse, Volume> response = bareMetalSolutionClient.ListVolumes(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Volume item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListVolumesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Volume item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Volume> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Volume item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListVolumes(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListVolumesResponse, Volume> ListVolumes(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List storage volumes in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent value for ListVolumesRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListVolumesResponseVolume` | A pageable sequence of [Volume](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Volume.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListVolumesResponse, Volume> response = bareMetalSolutionClient.ListVolumes(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Volume item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListVolumesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Volume item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Volume> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Volume item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListVolumesAsync(LocationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListVolumesResponse, Volume> ListVolumesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List storage volumes in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. Parent value for ListVolumesRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListVolumesResponseVolume` | A pageable asynchronous sequence of [Volume](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Volume.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListVolumesResponse, Volume> response = bareMetalSolutionClient.ListVolumesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Volume item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListVolumesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Volume item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Volume> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Volume item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListVolumesAsync(ListVolumesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListVolumesResponse, Volume> ListVolumesAsync(ListVolumesRequest request, CallSettings callSettings = null)

List storage volumes in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListVolumesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListVolumesResponseVolume` | A pageable asynchronous sequence of [Volume](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Volume.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
ListVolumesRequest request = new ListVolumesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListVolumesResponse, Volume> response = bareMetalSolutionClient.ListVolumesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Volume item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListVolumesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Volume item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Volume> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Volume item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### ListVolumesAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListVolumesResponse, Volume> ListVolumesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List storage volumes in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent value for ListVolumesRequest. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListVolumesResponseVolume` | A pageable asynchronous sequence of [Volume](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Volume.md.txt) resources. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListVolumesResponse, Volume> response = bareMetalSolutionClient.ListVolumesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Volume item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListVolumesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Volume item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Volume> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Volume item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
```

### PollOnceCreateNfsShare(string, CallSettings)

    public virtual Operation<NfsShare, OperationMetadata> PollOnceCreateNfsShare(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `CreateNfsShare`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationNfsShareOperationMetadata` | The result of polling the operation. |

### PollOnceCreateNfsShareAsync(string, CallSettings)

    public virtual Task<Operation<NfsShare, OperationMetadata>> PollOnceCreateNfsShareAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`CreateNfsShare`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationNfsShareOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceDeleteNfsShare(string, CallSettings)

    public virtual Operation<Empty, OperationMetadata> PollOnceDeleteNfsShare(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `DeleteNfsShare`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEmptyOperationMetadata` | The result of polling the operation. |

### PollOnceDeleteNfsShareAsync(string, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteNfsShareAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`DeleteNfsShare`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceDetachLun(string, CallSettings)

    public virtual Operation<Instance, OperationMetadata> PollOnceDetachLun(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `DetachLun`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationInstanceOperationMetadata` | The result of polling the operation. |

### PollOnceDetachLunAsync(string, CallSettings)

    public virtual Task<Operation<Instance, OperationMetadata>> PollOnceDetachLunAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`DetachLun`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationInstanceOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceDisableInteractiveSerialConsole(string, CallSettings)

    public virtual Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata> PollOnceDisableInteractiveSerialConsole(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of
`DisableInteractiveSerialConsole`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationDisableInteractiveSerialConsoleResponseOperationMetadata` | The result of polling the operation. |

### PollOnceDisableInteractiveSerialConsoleAsync(string, CallSettings)

    public virtual Task<Operation<DisableInteractiveSerialConsoleResponse, OperationMetadata>> PollOnceDisableInteractiveSerialConsoleAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`DisableInteractiveSerialConsole`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationDisableInteractiveSerialConsoleResponseOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceEnableInteractiveSerialConsole(string, CallSettings)

    public virtual Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata> PollOnceEnableInteractiveSerialConsole(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of
`EnableInteractiveSerialConsole`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEnableInteractiveSerialConsoleResponseOperationMetadata` | The result of polling the operation. |

### PollOnceEnableInteractiveSerialConsoleAsync(string, CallSettings)

    public virtual Task<Operation<EnableInteractiveSerialConsoleResponse, OperationMetadata>> PollOnceEnableInteractiveSerialConsoleAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`EnableInteractiveSerialConsole`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEnableInteractiveSerialConsoleResponseOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceEvictLun(string, CallSettings)

    public virtual Operation<Empty, OperationMetadata> PollOnceEvictLun(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `EvictLun`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEmptyOperationMetadata` | The result of polling the operation. |

### PollOnceEvictLunAsync(string, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> PollOnceEvictLunAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`EvictLun`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceEvictVolume(string, CallSettings)

    public virtual Operation<Empty, OperationMetadata> PollOnceEvictVolume(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `EvictVolume`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEmptyOperationMetadata` | The result of polling the operation. |

### PollOnceEvictVolumeAsync(string, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> PollOnceEvictVolumeAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`EvictVolume`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceResetInstance(string, CallSettings)

    public virtual Operation<ResetInstanceResponse, OperationMetadata> PollOnceResetInstance(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `ResetInstance`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationResetInstanceResponseOperationMetadata` | The result of polling the operation. |

### PollOnceResetInstanceAsync(string, CallSettings)

    public virtual Task<Operation<ResetInstanceResponse, OperationMetadata>> PollOnceResetInstanceAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`ResetInstance`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationResetInstanceResponseOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceResizeVolume(string, CallSettings)

    public virtual Operation<Volume, OperationMetadata> PollOnceResizeVolume(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `ResizeVolume`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationVolumeOperationMetadata` | The result of polling the operation. |

### PollOnceResizeVolumeAsync(string, CallSettings)

    public virtual Task<Operation<Volume, OperationMetadata>> PollOnceResizeVolumeAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`ResizeVolume`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationVolumeOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceRestoreVolumeSnapshot(string, CallSettings)

    public virtual Operation<VolumeSnapshot, OperationMetadata> PollOnceRestoreVolumeSnapshot(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `RestoreVolumeSnapshot`
.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationVolumeSnapshotOperationMetadata` | The result of polling the operation. |

### PollOnceRestoreVolumeSnapshotAsync(string, CallSettings)

    public virtual Task<Operation<VolumeSnapshot, OperationMetadata>> PollOnceRestoreVolumeSnapshotAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`RestoreVolumeSnapshot`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationVolumeSnapshotOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceStartInstance(string, CallSettings)

    public virtual Operation<StartInstanceResponse, OperationMetadata> PollOnceStartInstance(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `StartInstance`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationStartInstanceResponseOperationMetadata` | The result of polling the operation. |

### PollOnceStartInstanceAsync(string, CallSettings)

    public virtual Task<Operation<StartInstanceResponse, OperationMetadata>> PollOnceStartInstanceAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`StartInstance`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationStartInstanceResponseOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceStopInstance(string, CallSettings)

    public virtual Operation<StopInstanceResponse, OperationMetadata> PollOnceStopInstance(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `StopInstance`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationStopInstanceResponseOperationMetadata` | The result of polling the operation. |

### PollOnceStopInstanceAsync(string, CallSettings)

    public virtual Task<Operation<StopInstanceResponse, OperationMetadata>> PollOnceStopInstanceAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`StopInstance`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationStopInstanceResponseOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceUpdateInstance(string, CallSettings)

    public virtual Operation<Instance, OperationMetadata> PollOnceUpdateInstance(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `UpdateInstance`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationInstanceOperationMetadata` | The result of polling the operation. |

### PollOnceUpdateInstanceAsync(string, CallSettings)

    public virtual Task<Operation<Instance, OperationMetadata>> PollOnceUpdateInstanceAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`UpdateInstance`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationInstanceOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceUpdateNetwork(string, CallSettings)

    public virtual Operation<Network, OperationMetadata> PollOnceUpdateNetwork(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `UpdateNetwork`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationNetworkOperationMetadata` | The result of polling the operation. |

### PollOnceUpdateNetworkAsync(string, CallSettings)

    public virtual Task<Operation<Network, OperationMetadata>> PollOnceUpdateNetworkAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`UpdateNetwork`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationNetworkOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceUpdateNfsShare(string, CallSettings)

    public virtual Operation<NfsShare, OperationMetadata> PollOnceUpdateNfsShare(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `UpdateNfsShare`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationNfsShareOperationMetadata` | The result of polling the operation. |

### PollOnceUpdateNfsShareAsync(string, CallSettings)

    public virtual Task<Operation<NfsShare, OperationMetadata>> PollOnceUpdateNfsShareAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`UpdateNfsShare`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationNfsShareOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceUpdateVolume(string, CallSettings)

    public virtual Operation<Volume, OperationMetadata> PollOnceUpdateVolume(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `UpdateVolume`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationVolumeOperationMetadata` | The result of polling the operation. |

### PollOnceUpdateVolumeAsync(string, CallSettings)

    public virtual Task<Operation<Volume, OperationMetadata>> PollOnceUpdateVolumeAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`UpdateVolume`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationVolumeOperationMetadata` | A task representing the result of polling the operation. |

### RenameInstance(InstanceName, string, CallSettings)

    public virtual Instance RenameInstance(InstanceName name, string newInstanceId, CallSettings callSettings = null)

RenameInstance sets a new name for an instance.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. The `name` field is used to identify the instance. Format: projects/{project}/locations/{location}/instances/{instance} |
| `newInstanceId` | `string` Required. The new `id` of the instance. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Instance` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
string newInstanceId = "";
// Make the request
Instance response = bareMetalSolutionClient.RenameInstance(name, newInstanceId);
```

### RenameInstance(RenameInstanceRequest, CallSettings)

    public virtual Instance RenameInstance(RenameInstanceRequest request, CallSettings callSettings = null)

RenameInstance sets a new name for an instance.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RenameInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Instance` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
RenameInstanceRequest request = new RenameInstanceRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
    NewInstanceId = "",
};
// Make the request
Instance response = bareMetalSolutionClient.RenameInstance(request);
```

### RenameInstance(string, string, CallSettings)

    public virtual Instance RenameInstance(string name, string newInstanceId, CallSettings callSettings = null)

RenameInstance sets a new name for an instance.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The `name` field is used to identify the instance. Format: projects/{project}/locations/{location}/instances/{instance} |
| `newInstanceId` | `string` Required. The new `id` of the instance. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Instance` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
string newInstanceId = "";
// Make the request
Instance response = bareMetalSolutionClient.RenameInstance(name, newInstanceId);
```

### RenameInstanceAsync(InstanceName, string, CallSettings)

    public virtual Task<Instance> RenameInstanceAsync(InstanceName name, string newInstanceId, CallSettings callSettings = null)

RenameInstance sets a new name for an instance.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. The `name` field is used to identify the instance. Format: projects/{project}/locations/{location}/instances/{instance} |
| `newInstanceId` | `string` Required. The new `id` of the instance. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskInstance` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
string newInstanceId = "";
// Make the request
Instance response = await bareMetalSolutionClient.RenameInstanceAsync(name, newInstanceId);
```

### RenameInstanceAsync(InstanceName, string, CancellationToken)

    public virtual Task<Instance> RenameInstanceAsync(InstanceName name, string newInstanceId, CancellationToken cancellationToken)

RenameInstance sets a new name for an instance.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. The `name` field is used to identify the instance. Format: projects/{project}/locations/{location}/instances/{instance} |
| `newInstanceId` | `string` Required. The new `id` of the instance. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskInstance` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
string newInstanceId = "";
// Make the request
Instance response = await bareMetalSolutionClient.RenameInstanceAsync(name, newInstanceId);
```

### RenameInstanceAsync(RenameInstanceRequest, CallSettings)

    public virtual Task<Instance> RenameInstanceAsync(RenameInstanceRequest request, CallSettings callSettings = null)

RenameInstance sets a new name for an instance.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RenameInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskInstance` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
RenameInstanceRequest request = new RenameInstanceRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
    NewInstanceId = "",
};
// Make the request
Instance response = await bareMetalSolutionClient.RenameInstanceAsync(request);
```

### RenameInstanceAsync(RenameInstanceRequest, CancellationToken)

    public virtual Task<Instance> RenameInstanceAsync(RenameInstanceRequest request, CancellationToken cancellationToken)

RenameInstance sets a new name for an instance.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RenameInstanceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskInstance` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
RenameInstanceRequest request = new RenameInstanceRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
    NewInstanceId = "",
};
// Make the request
Instance response = await bareMetalSolutionClient.RenameInstanceAsync(request);
```

### RenameInstanceAsync(string, string, CallSettings)

    public virtual Task<Instance> RenameInstanceAsync(string name, string newInstanceId, CallSettings callSettings = null)

RenameInstance sets a new name for an instance.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The `name` field is used to identify the instance. Format: projects/{project}/locations/{location}/instances/{instance} |
| `newInstanceId` | `string` Required. The new `id` of the instance. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskInstance` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
string newInstanceId = "";
// Make the request
Instance response = await bareMetalSolutionClient.RenameInstanceAsync(name, newInstanceId);
```

### RenameInstanceAsync(string, string, CancellationToken)

    public virtual Task<Instance> RenameInstanceAsync(string name, string newInstanceId, CancellationToken cancellationToken)

RenameInstance sets a new name for an instance.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The `name` field is used to identify the instance. Format: projects/{project}/locations/{location}/instances/{instance} |
| `newInstanceId` | `string` Required. The new `id` of the instance. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskInstance` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
string newInstanceId = "";
// Make the request
Instance response = await bareMetalSolutionClient.RenameInstanceAsync(name, newInstanceId);
```

### RenameNetwork(NetworkName, string, CallSettings)

    public virtual Network RenameNetwork(NetworkName name, string newNetworkId, CallSettings callSettings = null)

RenameNetwork sets a new name for a network.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `NetworkName` Required. The `name` field is used to identify the network. Format: projects/{project}/locations/{location}/networks/{network} |
| `newNetworkId` | `string` Required. The new `id` of the network. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Network` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
NetworkName name = NetworkName.FromProjectLocationNetwork("[PROJECT]", "[LOCATION]", "[NETWORK]");
string newNetworkId = "";
// Make the request
Network response = bareMetalSolutionClient.RenameNetwork(name, newNetworkId);
```

### RenameNetwork(RenameNetworkRequest, CallSettings)

    public virtual Network RenameNetwork(RenameNetworkRequest request, CallSettings callSettings = null)

RenameNetwork sets a new name for a network.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RenameNetworkRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Network` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
RenameNetworkRequest request = new RenameNetworkRequest
{
    NetworkName = NetworkName.FromProjectLocationNetwork("[PROJECT]", "[LOCATION]", "[NETWORK]"),
    NewNetworkId = "",
};
// Make the request
Network response = bareMetalSolutionClient.RenameNetwork(request);
```

### RenameNetwork(string, string, CallSettings)

    public virtual Network RenameNetwork(string name, string newNetworkId, CallSettings callSettings = null)

RenameNetwork sets a new name for a network.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The `name` field is used to identify the network. Format: projects/{project}/locations/{location}/networks/{network} |
| `newNetworkId` | `string` Required. The new `id` of the network. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Network` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/networks/[NETWORK]";
string newNetworkId = "";
// Make the request
Network response = bareMetalSolutionClient.RenameNetwork(name, newNetworkId);
```

### RenameNetworkAsync(NetworkName, string, CallSettings)

    public virtual Task<Network> RenameNetworkAsync(NetworkName name, string newNetworkId, CallSettings callSettings = null)

RenameNetwork sets a new name for a network.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `NetworkName` Required. The `name` field is used to identify the network. Format: projects/{project}/locations/{location}/networks/{network} |
| `newNetworkId` | `string` Required. The new `id` of the network. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNetwork` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
NetworkName name = NetworkName.FromProjectLocationNetwork("[PROJECT]", "[LOCATION]", "[NETWORK]");
string newNetworkId = "";
// Make the request
Network response = await bareMetalSolutionClient.RenameNetworkAsync(name, newNetworkId);
```

### RenameNetworkAsync(NetworkName, string, CancellationToken)

    public virtual Task<Network> RenameNetworkAsync(NetworkName name, string newNetworkId, CancellationToken cancellationToken)

RenameNetwork sets a new name for a network.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `NetworkName` Required. The `name` field is used to identify the network. Format: projects/{project}/locations/{location}/networks/{network} |
| `newNetworkId` | `string` Required. The new `id` of the network. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNetwork` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
NetworkName name = NetworkName.FromProjectLocationNetwork("[PROJECT]", "[LOCATION]", "[NETWORK]");
string newNetworkId = "";
// Make the request
Network response = await bareMetalSolutionClient.RenameNetworkAsync(name, newNetworkId);
```

### RenameNetworkAsync(RenameNetworkRequest, CallSettings)

    public virtual Task<Network> RenameNetworkAsync(RenameNetworkRequest request, CallSettings callSettings = null)

RenameNetwork sets a new name for a network.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RenameNetworkRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNetwork` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
RenameNetworkRequest request = new RenameNetworkRequest
{
    NetworkName = NetworkName.FromProjectLocationNetwork("[PROJECT]", "[LOCATION]", "[NETWORK]"),
    NewNetworkId = "",
};
// Make the request
Network response = await bareMetalSolutionClient.RenameNetworkAsync(request);
```

### RenameNetworkAsync(RenameNetworkRequest, CancellationToken)

    public virtual Task<Network> RenameNetworkAsync(RenameNetworkRequest request, CancellationToken cancellationToken)

RenameNetwork sets a new name for a network.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RenameNetworkRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNetwork` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
RenameNetworkRequest request = new RenameNetworkRequest
{
    NetworkName = NetworkName.FromProjectLocationNetwork("[PROJECT]", "[LOCATION]", "[NETWORK]"),
    NewNetworkId = "",
};
// Make the request
Network response = await bareMetalSolutionClient.RenameNetworkAsync(request);
```

### RenameNetworkAsync(string, string, CallSettings)

    public virtual Task<Network> RenameNetworkAsync(string name, string newNetworkId, CallSettings callSettings = null)

RenameNetwork sets a new name for a network.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The `name` field is used to identify the network. Format: projects/{project}/locations/{location}/networks/{network} |
| `newNetworkId` | `string` Required. The new `id` of the network. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNetwork` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/networks/[NETWORK]";
string newNetworkId = "";
// Make the request
Network response = await bareMetalSolutionClient.RenameNetworkAsync(name, newNetworkId);
```

### RenameNetworkAsync(string, string, CancellationToken)

    public virtual Task<Network> RenameNetworkAsync(string name, string newNetworkId, CancellationToken cancellationToken)

RenameNetwork sets a new name for a network.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The `name` field is used to identify the network. Format: projects/{project}/locations/{location}/networks/{network} |
| `newNetworkId` | `string` Required. The new `id` of the network. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNetwork` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/networks/[NETWORK]";
string newNetworkId = "";
// Make the request
Network response = await bareMetalSolutionClient.RenameNetworkAsync(name, newNetworkId);
```

### RenameNfsShare(NFSShareName, string, CallSettings)

    public virtual NfsShare RenameNfsShare(NFSShareName name, string newNfsshareId, CallSettings callSettings = null)

RenameNfsShare sets a new name for an nfsshare.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `NFSShareName` Required. The `name` field is used to identify the nfsshare. Format: projects/{project}/locations/{location}/nfsshares/{nfsshare} |
| `newNfsshareId` | `string` Required. The new `id` of the nfsshare. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `NfsShare` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
NFSShareName name = NFSShareName.FromProjectLocationNfsShare("[PROJECT]", "[LOCATION]", "[NFS_SHARE]");
string newNfsshareId = "";
// Make the request
NfsShare response = bareMetalSolutionClient.RenameNfsShare(name, newNfsshareId);
```

### RenameNfsShare(RenameNfsShareRequest, CallSettings)

    public virtual NfsShare RenameNfsShare(RenameNfsShareRequest request, CallSettings callSettings = null)

RenameNfsShare sets a new name for an nfsshare.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RenameNfsShareRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `NfsShare` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
RenameNfsShareRequest request = new RenameNfsShareRequest
{
    NFSShareName = NFSShareName.FromProjectLocationNfsShare("[PROJECT]", "[LOCATION]", "[NFS_SHARE]"),
    NewNfsshareId = "",
};
// Make the request
NfsShare response = bareMetalSolutionClient.RenameNfsShare(request);
```

### RenameNfsShare(string, string, CallSettings)

    public virtual NfsShare RenameNfsShare(string name, string newNfsshareId, CallSettings callSettings = null)

RenameNfsShare sets a new name for an nfsshare.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The `name` field is used to identify the nfsshare. Format: projects/{project}/locations/{location}/nfsshares/{nfsshare} |
| `newNfsshareId` | `string` Required. The new `id` of the nfsshare. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `NfsShare` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nfsShares/[NFS_SHARE]";
string newNfsshareId = "";
// Make the request
NfsShare response = bareMetalSolutionClient.RenameNfsShare(name, newNfsshareId);
```

### RenameNfsShareAsync(NFSShareName, string, CallSettings)

    public virtual Task<NfsShare> RenameNfsShareAsync(NFSShareName name, string newNfsshareId, CallSettings callSettings = null)

RenameNfsShare sets a new name for an nfsshare.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `NFSShareName` Required. The `name` field is used to identify the nfsshare. Format: projects/{project}/locations/{location}/nfsshares/{nfsshare} |
| `newNfsshareId` | `string` Required. The new `id` of the nfsshare. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNfsShare` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
NFSShareName name = NFSShareName.FromProjectLocationNfsShare("[PROJECT]", "[LOCATION]", "[NFS_SHARE]");
string newNfsshareId = "";
// Make the request
NfsShare response = await bareMetalSolutionClient.RenameNfsShareAsync(name, newNfsshareId);
```

### RenameNfsShareAsync(NFSShareName, string, CancellationToken)

    public virtual Task<NfsShare> RenameNfsShareAsync(NFSShareName name, string newNfsshareId, CancellationToken cancellationToken)

RenameNfsShare sets a new name for an nfsshare.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `NFSShareName` Required. The `name` field is used to identify the nfsshare. Format: projects/{project}/locations/{location}/nfsshares/{nfsshare} |
| `newNfsshareId` | `string` Required. The new `id` of the nfsshare. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNfsShare` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
NFSShareName name = NFSShareName.FromProjectLocationNfsShare("[PROJECT]", "[LOCATION]", "[NFS_SHARE]");
string newNfsshareId = "";
// Make the request
NfsShare response = await bareMetalSolutionClient.RenameNfsShareAsync(name, newNfsshareId);
```

### RenameNfsShareAsync(RenameNfsShareRequest, CallSettings)

    public virtual Task<NfsShare> RenameNfsShareAsync(RenameNfsShareRequest request, CallSettings callSettings = null)

RenameNfsShare sets a new name for an nfsshare.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RenameNfsShareRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNfsShare` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
RenameNfsShareRequest request = new RenameNfsShareRequest
{
    NFSShareName = NFSShareName.FromProjectLocationNfsShare("[PROJECT]", "[LOCATION]", "[NFS_SHARE]"),
    NewNfsshareId = "",
};
// Make the request
NfsShare response = await bareMetalSolutionClient.RenameNfsShareAsync(request);
```

### RenameNfsShareAsync(RenameNfsShareRequest, CancellationToken)

    public virtual Task<NfsShare> RenameNfsShareAsync(RenameNfsShareRequest request, CancellationToken cancellationToken)

RenameNfsShare sets a new name for an nfsshare.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RenameNfsShareRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNfsShare` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
RenameNfsShareRequest request = new RenameNfsShareRequest
{
    NFSShareName = NFSShareName.FromProjectLocationNfsShare("[PROJECT]", "[LOCATION]", "[NFS_SHARE]"),
    NewNfsshareId = "",
};
// Make the request
NfsShare response = await bareMetalSolutionClient.RenameNfsShareAsync(request);
```

### RenameNfsShareAsync(string, string, CallSettings)

    public virtual Task<NfsShare> RenameNfsShareAsync(string name, string newNfsshareId, CallSettings callSettings = null)

RenameNfsShare sets a new name for an nfsshare.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The `name` field is used to identify the nfsshare. Format: projects/{project}/locations/{location}/nfsshares/{nfsshare} |
| `newNfsshareId` | `string` Required. The new `id` of the nfsshare. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNfsShare` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nfsShares/[NFS_SHARE]";
string newNfsshareId = "";
// Make the request
NfsShare response = await bareMetalSolutionClient.RenameNfsShareAsync(name, newNfsshareId);
```

### RenameNfsShareAsync(string, string, CancellationToken)

    public virtual Task<NfsShare> RenameNfsShareAsync(string name, string newNfsshareId, CancellationToken cancellationToken)

RenameNfsShare sets a new name for an nfsshare.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The `name` field is used to identify the nfsshare. Format: projects/{project}/locations/{location}/nfsshares/{nfsshare} |
| `newNfsshareId` | `string` Required. The new `id` of the nfsshare. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskNfsShare` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nfsShares/[NFS_SHARE]";
string newNfsshareId = "";
// Make the request
NfsShare response = await bareMetalSolutionClient.RenameNfsShareAsync(name, newNfsshareId);
```

### RenameVolume(RenameVolumeRequest, CallSettings)

    public virtual Volume RenameVolume(RenameVolumeRequest request, CallSettings callSettings = null)

RenameVolume sets a new name for a volume.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RenameVolumeRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Volume` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
RenameVolumeRequest request = new RenameVolumeRequest
{
    VolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    NewVolumeId = "",
};
// Make the request
Volume response = bareMetalSolutionClient.RenameVolume(request);
```

### RenameVolume(VolumeName, string, CallSettings)

    public virtual Volume RenameVolume(VolumeName name, string newVolumeId, CallSettings callSettings = null)

RenameVolume sets a new name for a volume.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `VolumeName` Required. The `name` field is used to identify the volume. Format: projects/{project}/locations/{location}/volumes/{volume} |
| `newVolumeId` | `string` Required. The new `id` of the volume. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Volume` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
VolumeName name = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
string newVolumeId = "";
// Make the request
Volume response = bareMetalSolutionClient.RenameVolume(name, newVolumeId);
```

### RenameVolume(string, string, CallSettings)

    public virtual Volume RenameVolume(string name, string newVolumeId, CallSettings callSettings = null)

RenameVolume sets a new name for a volume.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The `name` field is used to identify the volume. Format: projects/{project}/locations/{location}/volumes/{volume} |
| `newVolumeId` | `string` Required. The new `id` of the volume. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Volume` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
string newVolumeId = "";
// Make the request
Volume response = bareMetalSolutionClient.RenameVolume(name, newVolumeId);
```

### RenameVolumeAsync(RenameVolumeRequest, CallSettings)

    public virtual Task<Volume> RenameVolumeAsync(RenameVolumeRequest request, CallSettings callSettings = null)

RenameVolume sets a new name for a volume.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RenameVolumeRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolume` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
RenameVolumeRequest request = new RenameVolumeRequest
{
    VolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    NewVolumeId = "",
};
// Make the request
Volume response = await bareMetalSolutionClient.RenameVolumeAsync(request);
```

### RenameVolumeAsync(RenameVolumeRequest, CancellationToken)

    public virtual Task<Volume> RenameVolumeAsync(RenameVolumeRequest request, CancellationToken cancellationToken)

RenameVolume sets a new name for a volume.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RenameVolumeRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolume` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
RenameVolumeRequest request = new RenameVolumeRequest
{
    VolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    NewVolumeId = "",
};
// Make the request
Volume response = await bareMetalSolutionClient.RenameVolumeAsync(request);
```

### RenameVolumeAsync(VolumeName, string, CallSettings)

    public virtual Task<Volume> RenameVolumeAsync(VolumeName name, string newVolumeId, CallSettings callSettings = null)

RenameVolume sets a new name for a volume.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `VolumeName` Required. The `name` field is used to identify the volume. Format: projects/{project}/locations/{location}/volumes/{volume} |
| `newVolumeId` | `string` Required. The new `id` of the volume. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolume` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
VolumeName name = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
string newVolumeId = "";
// Make the request
Volume response = await bareMetalSolutionClient.RenameVolumeAsync(name, newVolumeId);
```

### RenameVolumeAsync(VolumeName, string, CancellationToken)

    public virtual Task<Volume> RenameVolumeAsync(VolumeName name, string newVolumeId, CancellationToken cancellationToken)

RenameVolume sets a new name for a volume.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `VolumeName` Required. The `name` field is used to identify the volume. Format: projects/{project}/locations/{location}/volumes/{volume} |
| `newVolumeId` | `string` Required. The new `id` of the volume. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolume` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
VolumeName name = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
string newVolumeId = "";
// Make the request
Volume response = await bareMetalSolutionClient.RenameVolumeAsync(name, newVolumeId);
```

### RenameVolumeAsync(string, string, CallSettings)

    public virtual Task<Volume> RenameVolumeAsync(string name, string newVolumeId, CallSettings callSettings = null)

RenameVolume sets a new name for a volume.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The `name` field is used to identify the volume. Format: projects/{project}/locations/{location}/volumes/{volume} |
| `newVolumeId` | `string` Required. The new `id` of the volume. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolume` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
string newVolumeId = "";
// Make the request
Volume response = await bareMetalSolutionClient.RenameVolumeAsync(name, newVolumeId);
```

### RenameVolumeAsync(string, string, CancellationToken)

    public virtual Task<Volume> RenameVolumeAsync(string name, string newVolumeId, CancellationToken cancellationToken)

RenameVolume sets a new name for a volume.
Use with caution, previous names become immediately invalidated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The `name` field is used to identify the volume. Format: projects/{project}/locations/{location}/volumes/{volume} |
| `newVolumeId` | `string` Required. The new `id` of the volume. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskVolume` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
string newVolumeId = "";
// Make the request
Volume response = await bareMetalSolutionClient.RenameVolumeAsync(name, newVolumeId);
```

### ResetInstance(InstanceName, CallSettings)

    public virtual Operation<ResetInstanceResponse, OperationMetadata> ResetInstance(InstanceName name, CallSettings callSettings = null)

Perform an ungraceful, hard reset on a server. Equivalent to shutting the
power off and then turning it back on.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationResetInstanceResponseOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Operation<ResetInstanceResponse, OperationMetadata> response = bareMetalSolutionClient.ResetInstance(name);

// Poll until the returned long-running operation is complete
Operation<ResetInstanceResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ResetInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ResetInstanceResponse, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceResetInstance(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ResetInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### ResetInstance(ResetInstanceRequest, CallSettings)

    public virtual Operation<ResetInstanceResponse, OperationMetadata> ResetInstance(ResetInstanceRequest request, CallSettings callSettings = null)

Perform an ungraceful, hard reset on a server. Equivalent to shutting the
power off and then turning it back on.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ResetInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationResetInstanceResponseOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
ResetInstanceRequest request = new ResetInstanceRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Operation<ResetInstanceResponse, OperationMetadata> response = bareMetalSolutionClient.ResetInstance(request);

// Poll until the returned long-running operation is complete
Operation<ResetInstanceResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ResetInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ResetInstanceResponse, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceResetInstance(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ResetInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### ResetInstance(string, CallSettings)

    public virtual Operation<ResetInstanceResponse, OperationMetadata> ResetInstance(string name, CallSettings callSettings = null)

Perform an ungraceful, hard reset on a server. Equivalent to shutting the
power off and then turning it back on.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationResetInstanceResponseOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Operation<ResetInstanceResponse, OperationMetadata> response = bareMetalSolutionClient.ResetInstance(name);

// Poll until the returned long-running operation is complete
Operation<ResetInstanceResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ResetInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ResetInstanceResponse, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceResetInstance(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ResetInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### ResetInstanceAsync(InstanceName, CallSettings)

    public virtual Task<Operation<ResetInstanceResponse, OperationMetadata>> ResetInstanceAsync(InstanceName name, CallSettings callSettings = null)

Perform an ungraceful, hard reset on a server. Equivalent to shutting the
power off and then turning it back on.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationResetInstanceResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Operation<ResetInstanceResponse, OperationMetadata> response = await bareMetalSolutionClient.ResetInstanceAsync(name);

// Poll until the returned long-running operation is complete
Operation<ResetInstanceResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ResetInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ResetInstanceResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceResetInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ResetInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### ResetInstanceAsync(InstanceName, CancellationToken)

    public virtual Task<Operation<ResetInstanceResponse, OperationMetadata>> ResetInstanceAsync(InstanceName name, CancellationToken cancellationToken)

Perform an ungraceful, hard reset on a server. Equivalent to shutting the
power off and then turning it back on.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. Name of the resource. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationResetInstanceResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Operation<ResetInstanceResponse, OperationMetadata> response = await bareMetalSolutionClient.ResetInstanceAsync(name);

// Poll until the returned long-running operation is complete
Operation<ResetInstanceResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ResetInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ResetInstanceResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceResetInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ResetInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### ResetInstanceAsync(ResetInstanceRequest, CallSettings)

    public virtual Task<Operation<ResetInstanceResponse, OperationMetadata>> ResetInstanceAsync(ResetInstanceRequest request, CallSettings callSettings = null)

Perform an ungraceful, hard reset on a server. Equivalent to shutting the
power off and then turning it back on.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ResetInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationResetInstanceResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
ResetInstanceRequest request = new ResetInstanceRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Operation<ResetInstanceResponse, OperationMetadata> response = await bareMetalSolutionClient.ResetInstanceAsync(request);

// Poll until the returned long-running operation is complete
Operation<ResetInstanceResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ResetInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ResetInstanceResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceResetInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ResetInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### ResetInstanceAsync(ResetInstanceRequest, CancellationToken)

    public virtual Task<Operation<ResetInstanceResponse, OperationMetadata>> ResetInstanceAsync(ResetInstanceRequest request, CancellationToken cancellationToken)

Perform an ungraceful, hard reset on a server. Equivalent to shutting the
power off and then turning it back on.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ResetInstanceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationResetInstanceResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
ResetInstanceRequest request = new ResetInstanceRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Operation<ResetInstanceResponse, OperationMetadata> response = await bareMetalSolutionClient.ResetInstanceAsync(request);

// Poll until the returned long-running operation is complete
Operation<ResetInstanceResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ResetInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ResetInstanceResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceResetInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ResetInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### ResetInstanceAsync(string, CallSettings)

    public virtual Task<Operation<ResetInstanceResponse, OperationMetadata>> ResetInstanceAsync(string name, CallSettings callSettings = null)

Perform an ungraceful, hard reset on a server. Equivalent to shutting the
power off and then turning it back on.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationResetInstanceResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Operation<ResetInstanceResponse, OperationMetadata> response = await bareMetalSolutionClient.ResetInstanceAsync(name);

// Poll until the returned long-running operation is complete
Operation<ResetInstanceResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ResetInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ResetInstanceResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceResetInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ResetInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### ResetInstanceAsync(string, CancellationToken)

    public virtual Task<Operation<ResetInstanceResponse, OperationMetadata>> ResetInstanceAsync(string name, CancellationToken cancellationToken)

Perform an ungraceful, hard reset on a server. Equivalent to shutting the
power off and then turning it back on.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationResetInstanceResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Operation<ResetInstanceResponse, OperationMetadata> response = await bareMetalSolutionClient.ResetInstanceAsync(name);

// Poll until the returned long-running operation is complete
Operation<ResetInstanceResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ResetInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ResetInstanceResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceResetInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ResetInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### ResizeVolume(ResizeVolumeRequest, CallSettings)

    public virtual Operation<Volume, OperationMetadata> ResizeVolume(ResizeVolumeRequest request, CallSettings callSettings = null)

Emergency Volume resize.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ResizeVolumeRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationVolumeOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
ResizeVolumeRequest request = new ResizeVolumeRequest
{
    VolumeAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    SizeGib = 0L,
};
// Make the request
Operation<Volume, OperationMetadata> response = bareMetalSolutionClient.ResizeVolume(request);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceResizeVolume(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}
```

### ResizeVolume(VolumeName, long, CallSettings)

    public virtual Operation<Volume, OperationMetadata> ResizeVolume(VolumeName volume, long sizeGib, CallSettings callSettings = null)

Emergency Volume resize.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `volume` | `VolumeName` Required. Volume to resize. |
| `sizeGib` | `long` New Volume size, in GiB. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationVolumeOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
VolumeName volume = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
long sizeGib = 0L;
// Make the request
Operation<Volume, OperationMetadata> response = bareMetalSolutionClient.ResizeVolume(volume, sizeGib);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceResizeVolume(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}
```

### ResizeVolume(string, long, CallSettings)

    public virtual Operation<Volume, OperationMetadata> ResizeVolume(string volume, long sizeGib, CallSettings callSettings = null)

Emergency Volume resize.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `volume` | `string` Required. Volume to resize. |
| `sizeGib` | `long` New Volume size, in GiB. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationVolumeOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string volume = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
long sizeGib = 0L;
// Make the request
Operation<Volume, OperationMetadata> response = bareMetalSolutionClient.ResizeVolume(volume, sizeGib);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceResizeVolume(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}
```

### ResizeVolumeAsync(ResizeVolumeRequest, CallSettings)

    public virtual Task<Operation<Volume, OperationMetadata>> ResizeVolumeAsync(ResizeVolumeRequest request, CallSettings callSettings = null)

Emergency Volume resize.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ResizeVolumeRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationVolumeOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
ResizeVolumeRequest request = new ResizeVolumeRequest
{
    VolumeAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    SizeGib = 0L,
};
// Make the request
Operation<Volume, OperationMetadata> response = await bareMetalSolutionClient.ResizeVolumeAsync(request);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceResizeVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}
```

### ResizeVolumeAsync(ResizeVolumeRequest, CancellationToken)

    public virtual Task<Operation<Volume, OperationMetadata>> ResizeVolumeAsync(ResizeVolumeRequest request, CancellationToken cancellationToken)

Emergency Volume resize.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ResizeVolumeRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationVolumeOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
ResizeVolumeRequest request = new ResizeVolumeRequest
{
    VolumeAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    SizeGib = 0L,
};
// Make the request
Operation<Volume, OperationMetadata> response = await bareMetalSolutionClient.ResizeVolumeAsync(request);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceResizeVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}
```

### ResizeVolumeAsync(VolumeName, long, CallSettings)

    public virtual Task<Operation<Volume, OperationMetadata>> ResizeVolumeAsync(VolumeName volume, long sizeGib, CallSettings callSettings = null)

Emergency Volume resize.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `volume` | `VolumeName` Required. Volume to resize. |
| `sizeGib` | `long` New Volume size, in GiB. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationVolumeOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
VolumeName volume = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
long sizeGib = 0L;
// Make the request
Operation<Volume, OperationMetadata> response = await bareMetalSolutionClient.ResizeVolumeAsync(volume, sizeGib);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceResizeVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}
```

### ResizeVolumeAsync(VolumeName, long, CancellationToken)

    public virtual Task<Operation<Volume, OperationMetadata>> ResizeVolumeAsync(VolumeName volume, long sizeGib, CancellationToken cancellationToken)

Emergency Volume resize.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `volume` | `VolumeName` Required. Volume to resize. |
| `sizeGib` | `long` New Volume size, in GiB. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationVolumeOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
VolumeName volume = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
long sizeGib = 0L;
// Make the request
Operation<Volume, OperationMetadata> response = await bareMetalSolutionClient.ResizeVolumeAsync(volume, sizeGib);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceResizeVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}
```

### ResizeVolumeAsync(string, long, CallSettings)

    public virtual Task<Operation<Volume, OperationMetadata>> ResizeVolumeAsync(string volume, long sizeGib, CallSettings callSettings = null)

Emergency Volume resize.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `volume` | `string` Required. Volume to resize. |
| `sizeGib` | `long` New Volume size, in GiB. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationVolumeOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string volume = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
long sizeGib = 0L;
// Make the request
Operation<Volume, OperationMetadata> response = await bareMetalSolutionClient.ResizeVolumeAsync(volume, sizeGib);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceResizeVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}
```

### ResizeVolumeAsync(string, long, CancellationToken)

    public virtual Task<Operation<Volume, OperationMetadata>> ResizeVolumeAsync(string volume, long sizeGib, CancellationToken cancellationToken)

Emergency Volume resize.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `volume` | `string` Required. Volume to resize. |
| `sizeGib` | `long` New Volume size, in GiB. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationVolumeOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string volume = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
long sizeGib = 0L;
// Make the request
Operation<Volume, OperationMetadata> response = await bareMetalSolutionClient.ResizeVolumeAsync(volume, sizeGib);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceResizeVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}
```

### RestoreVolumeSnapshot(RestoreVolumeSnapshotRequest, CallSettings)

    public virtual Operation<VolumeSnapshot, OperationMetadata> RestoreVolumeSnapshot(RestoreVolumeSnapshotRequest request, CallSettings callSettings = null)

Uses the specified snapshot to restore its parent volume.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RestoreVolumeSnapshotRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationVolumeSnapshotOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
RestoreVolumeSnapshotRequest request = new RestoreVolumeSnapshotRequest
{
    VolumeSnapshotAsVolumeSnapshotName = VolumeSnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"),
};
// Make the request
Operation<VolumeSnapshot, OperationMetadata> response = bareMetalSolutionClient.RestoreVolumeSnapshot(request);

// Poll until the returned long-running operation is complete
Operation<VolumeSnapshot, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
VolumeSnapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<VolumeSnapshot, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceRestoreVolumeSnapshot(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    VolumeSnapshot retrievedResult = retrievedResponse.Result;
}
```

### RestoreVolumeSnapshot(VolumeSnapshotName, CallSettings)

    public virtual Operation<VolumeSnapshot, OperationMetadata> RestoreVolumeSnapshot(VolumeSnapshotName volumeSnapshot, CallSettings callSettings = null)

Uses the specified snapshot to restore its parent volume.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `volumeSnapshot` | `VolumeSnapshotName` Required. Name of the snapshot which will be used to restore its parent volume. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationVolumeSnapshotOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
VolumeSnapshotName volumeSnapshot = VolumeSnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]");
// Make the request
Operation<VolumeSnapshot, OperationMetadata> response = bareMetalSolutionClient.RestoreVolumeSnapshot(volumeSnapshot);

// Poll until the returned long-running operation is complete
Operation<VolumeSnapshot, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
VolumeSnapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<VolumeSnapshot, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceRestoreVolumeSnapshot(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    VolumeSnapshot retrievedResult = retrievedResponse.Result;
}
```

### RestoreVolumeSnapshot(string, CallSettings)

    public virtual Operation<VolumeSnapshot, OperationMetadata> RestoreVolumeSnapshot(string volumeSnapshot, CallSettings callSettings = null)

Uses the specified snapshot to restore its parent volume.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `volumeSnapshot` | `string` Required. Name of the snapshot which will be used to restore its parent volume. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationVolumeSnapshotOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string volumeSnapshot = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/snapshots/[SNAPSHOT]";
// Make the request
Operation<VolumeSnapshot, OperationMetadata> response = bareMetalSolutionClient.RestoreVolumeSnapshot(volumeSnapshot);

// Poll until the returned long-running operation is complete
Operation<VolumeSnapshot, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
VolumeSnapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<VolumeSnapshot, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceRestoreVolumeSnapshot(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    VolumeSnapshot retrievedResult = retrievedResponse.Result;
}
```

### RestoreVolumeSnapshotAsync(RestoreVolumeSnapshotRequest, CallSettings)

    public virtual Task<Operation<VolumeSnapshot, OperationMetadata>> RestoreVolumeSnapshotAsync(RestoreVolumeSnapshotRequest request, CallSettings callSettings = null)

Uses the specified snapshot to restore its parent volume.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RestoreVolumeSnapshotRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationVolumeSnapshotOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
RestoreVolumeSnapshotRequest request = new RestoreVolumeSnapshotRequest
{
    VolumeSnapshotAsVolumeSnapshotName = VolumeSnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"),
};
// Make the request
Operation<VolumeSnapshot, OperationMetadata> response = await bareMetalSolutionClient.RestoreVolumeSnapshotAsync(request);

// Poll until the returned long-running operation is complete
Operation<VolumeSnapshot, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
VolumeSnapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<VolumeSnapshot, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceRestoreVolumeSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    VolumeSnapshot retrievedResult = retrievedResponse.Result;
}
```

### RestoreVolumeSnapshotAsync(RestoreVolumeSnapshotRequest, CancellationToken)

    public virtual Task<Operation<VolumeSnapshot, OperationMetadata>> RestoreVolumeSnapshotAsync(RestoreVolumeSnapshotRequest request, CancellationToken cancellationToken)

Uses the specified snapshot to restore its parent volume.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RestoreVolumeSnapshotRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationVolumeSnapshotOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
RestoreVolumeSnapshotRequest request = new RestoreVolumeSnapshotRequest
{
    VolumeSnapshotAsVolumeSnapshotName = VolumeSnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"),
};
// Make the request
Operation<VolumeSnapshot, OperationMetadata> response = await bareMetalSolutionClient.RestoreVolumeSnapshotAsync(request);

// Poll until the returned long-running operation is complete
Operation<VolumeSnapshot, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
VolumeSnapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<VolumeSnapshot, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceRestoreVolumeSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    VolumeSnapshot retrievedResult = retrievedResponse.Result;
}
```

### RestoreVolumeSnapshotAsync(VolumeSnapshotName, CallSettings)

    public virtual Task<Operation<VolumeSnapshot, OperationMetadata>> RestoreVolumeSnapshotAsync(VolumeSnapshotName volumeSnapshot, CallSettings callSettings = null)

Uses the specified snapshot to restore its parent volume.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `volumeSnapshot` | `VolumeSnapshotName` Required. Name of the snapshot which will be used to restore its parent volume. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationVolumeSnapshotOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
VolumeSnapshotName volumeSnapshot = VolumeSnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]");
// Make the request
Operation<VolumeSnapshot, OperationMetadata> response = await bareMetalSolutionClient.RestoreVolumeSnapshotAsync(volumeSnapshot);

// Poll until the returned long-running operation is complete
Operation<VolumeSnapshot, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
VolumeSnapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<VolumeSnapshot, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceRestoreVolumeSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    VolumeSnapshot retrievedResult = retrievedResponse.Result;
}
```

### RestoreVolumeSnapshotAsync(VolumeSnapshotName, CancellationToken)

    public virtual Task<Operation<VolumeSnapshot, OperationMetadata>> RestoreVolumeSnapshotAsync(VolumeSnapshotName volumeSnapshot, CancellationToken cancellationToken)

Uses the specified snapshot to restore its parent volume.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `volumeSnapshot` | `VolumeSnapshotName` Required. Name of the snapshot which will be used to restore its parent volume. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationVolumeSnapshotOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
VolumeSnapshotName volumeSnapshot = VolumeSnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]");
// Make the request
Operation<VolumeSnapshot, OperationMetadata> response = await bareMetalSolutionClient.RestoreVolumeSnapshotAsync(volumeSnapshot);

// Poll until the returned long-running operation is complete
Operation<VolumeSnapshot, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
VolumeSnapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<VolumeSnapshot, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceRestoreVolumeSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    VolumeSnapshot retrievedResult = retrievedResponse.Result;
}
```

### RestoreVolumeSnapshotAsync(string, CallSettings)

    public virtual Task<Operation<VolumeSnapshot, OperationMetadata>> RestoreVolumeSnapshotAsync(string volumeSnapshot, CallSettings callSettings = null)

Uses the specified snapshot to restore its parent volume.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `volumeSnapshot` | `string` Required. Name of the snapshot which will be used to restore its parent volume. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationVolumeSnapshotOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string volumeSnapshot = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/snapshots/[SNAPSHOT]";
// Make the request
Operation<VolumeSnapshot, OperationMetadata> response = await bareMetalSolutionClient.RestoreVolumeSnapshotAsync(volumeSnapshot);

// Poll until the returned long-running operation is complete
Operation<VolumeSnapshot, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
VolumeSnapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<VolumeSnapshot, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceRestoreVolumeSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    VolumeSnapshot retrievedResult = retrievedResponse.Result;
}
```

### RestoreVolumeSnapshotAsync(string, CancellationToken)

    public virtual Task<Operation<VolumeSnapshot, OperationMetadata>> RestoreVolumeSnapshotAsync(string volumeSnapshot, CancellationToken cancellationToken)

Uses the specified snapshot to restore its parent volume.
Returns INVALID_ARGUMENT if called for a non-boot volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `volumeSnapshot` | `string` Required. Name of the snapshot which will be used to restore its parent volume. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationVolumeSnapshotOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string volumeSnapshot = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/snapshots/[SNAPSHOT]";
// Make the request
Operation<VolumeSnapshot, OperationMetadata> response = await bareMetalSolutionClient.RestoreVolumeSnapshotAsync(volumeSnapshot);

// Poll until the returned long-running operation is complete
Operation<VolumeSnapshot, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
VolumeSnapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<VolumeSnapshot, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceRestoreVolumeSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    VolumeSnapshot retrievedResult = retrievedResponse.Result;
}
```

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.BareMetalSolutionClient.md.txt#Google_Cloud_BareMetalSolution_V2_BareMetalSolutionClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.BareMetalSolutionClient.md.txt#Google_Cloud_BareMetalSolution_V2_BareMetalSolutionClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A task representing the asynchronous shutdown operation. |

**Remarks** After calling this method, further calls to [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.BareMetalSolutionClient.md.txt#Google_Cloud_BareMetalSolution_V2_BareMetalSolutionClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.BareMetalSolutionClient.md.txt#Google_Cloud_BareMetalSolution_V2_BareMetalSolutionClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.

### StartInstance(InstanceName, CallSettings)

    public virtual Operation<StartInstanceResponse, OperationMetadata> StartInstance(InstanceName name, CallSettings callSettings = null)

Starts a server that was shutdown.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationStartInstanceResponseOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Operation<StartInstanceResponse, OperationMetadata> response = bareMetalSolutionClient.StartInstance(name);

// Poll until the returned long-running operation is complete
Operation<StartInstanceResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
StartInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StartInstanceResponse, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceStartInstance(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StartInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### StartInstance(StartInstanceRequest, CallSettings)

    public virtual Operation<StartInstanceResponse, OperationMetadata> StartInstance(StartInstanceRequest request, CallSettings callSettings = null)

Starts a server that was shutdown.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `StartInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationStartInstanceResponseOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
StartInstanceRequest request = new StartInstanceRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Operation<StartInstanceResponse, OperationMetadata> response = bareMetalSolutionClient.StartInstance(request);

// Poll until the returned long-running operation is complete
Operation<StartInstanceResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
StartInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StartInstanceResponse, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceStartInstance(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StartInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### StartInstance(string, CallSettings)

    public virtual Operation<StartInstanceResponse, OperationMetadata> StartInstance(string name, CallSettings callSettings = null)

Starts a server that was shutdown.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationStartInstanceResponseOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Operation<StartInstanceResponse, OperationMetadata> response = bareMetalSolutionClient.StartInstance(name);

// Poll until the returned long-running operation is complete
Operation<StartInstanceResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
StartInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StartInstanceResponse, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceStartInstance(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StartInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### StartInstanceAsync(InstanceName, CallSettings)

    public virtual Task<Operation<StartInstanceResponse, OperationMetadata>> StartInstanceAsync(InstanceName name, CallSettings callSettings = null)

Starts a server that was shutdown.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationStartInstanceResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Operation<StartInstanceResponse, OperationMetadata> response = await bareMetalSolutionClient.StartInstanceAsync(name);

// Poll until the returned long-running operation is complete
Operation<StartInstanceResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StartInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StartInstanceResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceStartInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StartInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### StartInstanceAsync(InstanceName, CancellationToken)

    public virtual Task<Operation<StartInstanceResponse, OperationMetadata>> StartInstanceAsync(InstanceName name, CancellationToken cancellationToken)

Starts a server that was shutdown.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. Name of the resource. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationStartInstanceResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Operation<StartInstanceResponse, OperationMetadata> response = await bareMetalSolutionClient.StartInstanceAsync(name);

// Poll until the returned long-running operation is complete
Operation<StartInstanceResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StartInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StartInstanceResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceStartInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StartInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### StartInstanceAsync(StartInstanceRequest, CallSettings)

    public virtual Task<Operation<StartInstanceResponse, OperationMetadata>> StartInstanceAsync(StartInstanceRequest request, CallSettings callSettings = null)

Starts a server that was shutdown.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `StartInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationStartInstanceResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
StartInstanceRequest request = new StartInstanceRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Operation<StartInstanceResponse, OperationMetadata> response = await bareMetalSolutionClient.StartInstanceAsync(request);

// Poll until the returned long-running operation is complete
Operation<StartInstanceResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StartInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StartInstanceResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceStartInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StartInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### StartInstanceAsync(StartInstanceRequest, CancellationToken)

    public virtual Task<Operation<StartInstanceResponse, OperationMetadata>> StartInstanceAsync(StartInstanceRequest request, CancellationToken cancellationToken)

Starts a server that was shutdown.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `StartInstanceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationStartInstanceResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
StartInstanceRequest request = new StartInstanceRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Operation<StartInstanceResponse, OperationMetadata> response = await bareMetalSolutionClient.StartInstanceAsync(request);

// Poll until the returned long-running operation is complete
Operation<StartInstanceResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StartInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StartInstanceResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceStartInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StartInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### StartInstanceAsync(string, CallSettings)

    public virtual Task<Operation<StartInstanceResponse, OperationMetadata>> StartInstanceAsync(string name, CallSettings callSettings = null)

Starts a server that was shutdown.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationStartInstanceResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Operation<StartInstanceResponse, OperationMetadata> response = await bareMetalSolutionClient.StartInstanceAsync(name);

// Poll until the returned long-running operation is complete
Operation<StartInstanceResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StartInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StartInstanceResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceStartInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StartInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### StartInstanceAsync(string, CancellationToken)

    public virtual Task<Operation<StartInstanceResponse, OperationMetadata>> StartInstanceAsync(string name, CancellationToken cancellationToken)

Starts a server that was shutdown.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationStartInstanceResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Operation<StartInstanceResponse, OperationMetadata> response = await bareMetalSolutionClient.StartInstanceAsync(name);

// Poll until the returned long-running operation is complete
Operation<StartInstanceResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StartInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StartInstanceResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceStartInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StartInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### StopInstance(InstanceName, CallSettings)

    public virtual Operation<StopInstanceResponse, OperationMetadata> StopInstance(InstanceName name, CallSettings callSettings = null)

Stop a running server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationStopInstanceResponseOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Operation<StopInstanceResponse, OperationMetadata> response = bareMetalSolutionClient.StopInstance(name);

// Poll until the returned long-running operation is complete
Operation<StopInstanceResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
StopInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StopInstanceResponse, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceStopInstance(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StopInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### StopInstance(StopInstanceRequest, CallSettings)

    public virtual Operation<StopInstanceResponse, OperationMetadata> StopInstance(StopInstanceRequest request, CallSettings callSettings = null)

Stop a running server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `StopInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationStopInstanceResponseOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
StopInstanceRequest request = new StopInstanceRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Operation<StopInstanceResponse, OperationMetadata> response = bareMetalSolutionClient.StopInstance(request);

// Poll until the returned long-running operation is complete
Operation<StopInstanceResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
StopInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StopInstanceResponse, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceStopInstance(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StopInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### StopInstance(string, CallSettings)

    public virtual Operation<StopInstanceResponse, OperationMetadata> StopInstance(string name, CallSettings callSettings = null)

Stop a running server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationStopInstanceResponseOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Operation<StopInstanceResponse, OperationMetadata> response = bareMetalSolutionClient.StopInstance(name);

// Poll until the returned long-running operation is complete
Operation<StopInstanceResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
StopInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StopInstanceResponse, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceStopInstance(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StopInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### StopInstanceAsync(InstanceName, CallSettings)

    public virtual Task<Operation<StopInstanceResponse, OperationMetadata>> StopInstanceAsync(InstanceName name, CallSettings callSettings = null)

Stop a running server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationStopInstanceResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Operation<StopInstanceResponse, OperationMetadata> response = await bareMetalSolutionClient.StopInstanceAsync(name);

// Poll until the returned long-running operation is complete
Operation<StopInstanceResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StopInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StopInstanceResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceStopInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StopInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### StopInstanceAsync(InstanceName, CancellationToken)

    public virtual Task<Operation<StopInstanceResponse, OperationMetadata>> StopInstanceAsync(InstanceName name, CancellationToken cancellationToken)

Stop a running server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `InstanceName` Required. Name of the resource. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationStopInstanceResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
Operation<StopInstanceResponse, OperationMetadata> response = await bareMetalSolutionClient.StopInstanceAsync(name);

// Poll until the returned long-running operation is complete
Operation<StopInstanceResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StopInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StopInstanceResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceStopInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StopInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### StopInstanceAsync(StopInstanceRequest, CallSettings)

    public virtual Task<Operation<StopInstanceResponse, OperationMetadata>> StopInstanceAsync(StopInstanceRequest request, CallSettings callSettings = null)

Stop a running server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `StopInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationStopInstanceResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
StopInstanceRequest request = new StopInstanceRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Operation<StopInstanceResponse, OperationMetadata> response = await bareMetalSolutionClient.StopInstanceAsync(request);

// Poll until the returned long-running operation is complete
Operation<StopInstanceResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StopInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StopInstanceResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceStopInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StopInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### StopInstanceAsync(StopInstanceRequest, CancellationToken)

    public virtual Task<Operation<StopInstanceResponse, OperationMetadata>> StopInstanceAsync(StopInstanceRequest request, CancellationToken cancellationToken)

Stop a running server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `StopInstanceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationStopInstanceResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
StopInstanceRequest request = new StopInstanceRequest
{
    InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
Operation<StopInstanceResponse, OperationMetadata> response = await bareMetalSolutionClient.StopInstanceAsync(request);

// Poll until the returned long-running operation is complete
Operation<StopInstanceResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StopInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StopInstanceResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceStopInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StopInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### StopInstanceAsync(string, CallSettings)

    public virtual Task<Operation<StopInstanceResponse, OperationMetadata>> StopInstanceAsync(string name, CallSettings callSettings = null)

Stop a running server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationStopInstanceResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Operation<StopInstanceResponse, OperationMetadata> response = await bareMetalSolutionClient.StopInstanceAsync(name);

// Poll until the returned long-running operation is complete
Operation<StopInstanceResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StopInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StopInstanceResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceStopInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StopInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### StopInstanceAsync(string, CancellationToken)

    public virtual Task<Operation<StopInstanceResponse, OperationMetadata>> StopInstanceAsync(string name, CancellationToken cancellationToken)

Stop a running server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the resource. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationStopInstanceResponseOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
Operation<StopInstanceResponse, OperationMetadata> response = await bareMetalSolutionClient.StopInstanceAsync(name);

// Poll until the returned long-running operation is complete
Operation<StopInstanceResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StopInstanceResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StopInstanceResponse, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceStopInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StopInstanceResponse retrievedResult = retrievedResponse.Result;
}
```

### SubmitProvisioningConfig(LocationName, ProvisioningConfig, CallSettings)

    public virtual SubmitProvisioningConfigResponse SubmitProvisioningConfig(LocationName parent, ProvisioningConfig provisioningConfig, CallSettings callSettings = null)

Submit a provisiong configuration for a given project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent project and location containing the ProvisioningConfig. |
| `provisioningConfig` | `ProvisioningConfig` Required. The ProvisioningConfig to create. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SubmitProvisioningConfigResponse` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ProvisioningConfig provisioningConfig = new ProvisioningConfig();
// Make the request
SubmitProvisioningConfigResponse response = bareMetalSolutionClient.SubmitProvisioningConfig(parent, provisioningConfig);
```

### SubmitProvisioningConfig(SubmitProvisioningConfigRequest, CallSettings)

    public virtual SubmitProvisioningConfigResponse SubmitProvisioningConfig(SubmitProvisioningConfigRequest request, CallSettings callSettings = null)

Submit a provisiong configuration for a given project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `SubmitProvisioningConfigRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SubmitProvisioningConfigResponse` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
SubmitProvisioningConfigRequest request = new SubmitProvisioningConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ProvisioningConfig = new ProvisioningConfig(),
    Email = "",
};
// Make the request
SubmitProvisioningConfigResponse response = bareMetalSolutionClient.SubmitProvisioningConfig(request);
```

### SubmitProvisioningConfig(string, ProvisioningConfig, CallSettings)

    public virtual SubmitProvisioningConfigResponse SubmitProvisioningConfig(string parent, ProvisioningConfig provisioningConfig, CallSettings callSettings = null)

Submit a provisiong configuration for a given project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent project and location containing the ProvisioningConfig. |
| `provisioningConfig` | `ProvisioningConfig` Required. The ProvisioningConfig to create. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SubmitProvisioningConfigResponse` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ProvisioningConfig provisioningConfig = new ProvisioningConfig();
// Make the request
SubmitProvisioningConfigResponse response = bareMetalSolutionClient.SubmitProvisioningConfig(parent, provisioningConfig);
```

### SubmitProvisioningConfigAsync(LocationName, ProvisioningConfig, CallSettings)

    public virtual Task<SubmitProvisioningConfigResponse> SubmitProvisioningConfigAsync(LocationName parent, ProvisioningConfig provisioningConfig, CallSettings callSettings = null)

Submit a provisiong configuration for a given project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent project and location containing the ProvisioningConfig. |
| `provisioningConfig` | `ProvisioningConfig` Required. The ProvisioningConfig to create. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskSubmitProvisioningConfigResponse` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ProvisioningConfig provisioningConfig = new ProvisioningConfig();
// Make the request
SubmitProvisioningConfigResponse response = await bareMetalSolutionClient.SubmitProvisioningConfigAsync(parent, provisioningConfig);
```

### SubmitProvisioningConfigAsync(LocationName, ProvisioningConfig, CancellationToken)

    public virtual Task<SubmitProvisioningConfigResponse> SubmitProvisioningConfigAsync(LocationName parent, ProvisioningConfig provisioningConfig, CancellationToken cancellationToken)

Submit a provisiong configuration for a given project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent project and location containing the ProvisioningConfig. |
| `provisioningConfig` | `ProvisioningConfig` Required. The ProvisioningConfig to create. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskSubmitProvisioningConfigResponse` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ProvisioningConfig provisioningConfig = new ProvisioningConfig();
// Make the request
SubmitProvisioningConfigResponse response = await bareMetalSolutionClient.SubmitProvisioningConfigAsync(parent, provisioningConfig);
```

### SubmitProvisioningConfigAsync(SubmitProvisioningConfigRequest, CallSettings)

    public virtual Task<SubmitProvisioningConfigResponse> SubmitProvisioningConfigAsync(SubmitProvisioningConfigRequest request, CallSettings callSettings = null)

Submit a provisiong configuration for a given project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `SubmitProvisioningConfigRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskSubmitProvisioningConfigResponse` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
SubmitProvisioningConfigRequest request = new SubmitProvisioningConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ProvisioningConfig = new ProvisioningConfig(),
    Email = "",
};
// Make the request
SubmitProvisioningConfigResponse response = await bareMetalSolutionClient.SubmitProvisioningConfigAsync(request);
```

### SubmitProvisioningConfigAsync(SubmitProvisioningConfigRequest, CancellationToken)

    public virtual Task<SubmitProvisioningConfigResponse> SubmitProvisioningConfigAsync(SubmitProvisioningConfigRequest request, CancellationToken cancellationToken)

Submit a provisiong configuration for a given project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `SubmitProvisioningConfigRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskSubmitProvisioningConfigResponse` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
SubmitProvisioningConfigRequest request = new SubmitProvisioningConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ProvisioningConfig = new ProvisioningConfig(),
    Email = "",
};
// Make the request
SubmitProvisioningConfigResponse response = await bareMetalSolutionClient.SubmitProvisioningConfigAsync(request);
```

### SubmitProvisioningConfigAsync(string, ProvisioningConfig, CallSettings)

    public virtual Task<SubmitProvisioningConfigResponse> SubmitProvisioningConfigAsync(string parent, ProvisioningConfig provisioningConfig, CallSettings callSettings = null)

Submit a provisiong configuration for a given project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent project and location containing the ProvisioningConfig. |
| `provisioningConfig` | `ProvisioningConfig` Required. The ProvisioningConfig to create. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskSubmitProvisioningConfigResponse` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ProvisioningConfig provisioningConfig = new ProvisioningConfig();
// Make the request
SubmitProvisioningConfigResponse response = await bareMetalSolutionClient.SubmitProvisioningConfigAsync(parent, provisioningConfig);
```

### SubmitProvisioningConfigAsync(string, ProvisioningConfig, CancellationToken)

    public virtual Task<SubmitProvisioningConfigResponse> SubmitProvisioningConfigAsync(string parent, ProvisioningConfig provisioningConfig, CancellationToken cancellationToken)

Submit a provisiong configuration for a given project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent project and location containing the ProvisioningConfig. |
| `provisioningConfig` | `ProvisioningConfig` Required. The ProvisioningConfig to create. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskSubmitProvisioningConfigResponse` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ProvisioningConfig provisioningConfig = new ProvisioningConfig();
// Make the request
SubmitProvisioningConfigResponse response = await bareMetalSolutionClient.SubmitProvisioningConfigAsync(parent, provisioningConfig);
```

### UpdateInstance(Instance, FieldMask, CallSettings)

    public virtual Operation<Instance, OperationMetadata> UpdateInstance(Instance instance, FieldMask updateMask, CallSettings callSettings = null)

Update details of a single server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `instance` | `Instance` Required. The server to update. The `name` field is used to identify the instance to update. Format: projects/{project}/locations/{location}/instances/{instance} |
| `updateMask` | `FieldMask` The list of fields to update. The currently supported fields are: `labels` `hyperthreading_enabled` `os_image` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationInstanceOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
Instance instance = new Instance();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Instance, OperationMetadata> response = bareMetalSolutionClient.UpdateInstance(instance, updateMask);

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Instance result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Instance, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceUpdateInstance(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Instance retrievedResult = retrievedResponse.Result;
}
```

### UpdateInstance(UpdateInstanceRequest, CallSettings)

    public virtual Operation<Instance, OperationMetadata> UpdateInstance(UpdateInstanceRequest request, CallSettings callSettings = null)

Update details of a single server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationInstanceOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
UpdateInstanceRequest request = new UpdateInstanceRequest
{
    Instance = new Instance(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<Instance, OperationMetadata> response = bareMetalSolutionClient.UpdateInstance(request);

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Instance result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Instance, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceUpdateInstance(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Instance retrievedResult = retrievedResponse.Result;
}
```

### UpdateInstanceAsync(Instance, FieldMask, CallSettings)

    public virtual Task<Operation<Instance, OperationMetadata>> UpdateInstanceAsync(Instance instance, FieldMask updateMask, CallSettings callSettings = null)

Update details of a single server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `instance` | `Instance` Required. The server to update. The `name` field is used to identify the instance to update. Format: projects/{project}/locations/{location}/instances/{instance} |
| `updateMask` | `FieldMask` The list of fields to update. The currently supported fields are: `labels` `hyperthreading_enabled` `os_image` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationInstanceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
Instance instance = new Instance();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Instance, OperationMetadata> response = await bareMetalSolutionClient.UpdateInstanceAsync(instance, updateMask);

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Instance result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Instance, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceUpdateInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Instance retrievedResult = retrievedResponse.Result;
}
```

### UpdateInstanceAsync(Instance, FieldMask, CancellationToken)

    public virtual Task<Operation<Instance, OperationMetadata>> UpdateInstanceAsync(Instance instance, FieldMask updateMask, CancellationToken cancellationToken)

Update details of a single server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `instance` | `Instance` Required. The server to update. The `name` field is used to identify the instance to update. Format: projects/{project}/locations/{location}/instances/{instance} |
| `updateMask` | `FieldMask` The list of fields to update. The currently supported fields are: `labels` `hyperthreading_enabled` `os_image` |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationInstanceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
Instance instance = new Instance();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Instance, OperationMetadata> response = await bareMetalSolutionClient.UpdateInstanceAsync(instance, updateMask);

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Instance result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Instance, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceUpdateInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Instance retrievedResult = retrievedResponse.Result;
}
```

### UpdateInstanceAsync(UpdateInstanceRequest, CallSettings)

    public virtual Task<Operation<Instance, OperationMetadata>> UpdateInstanceAsync(UpdateInstanceRequest request, CallSettings callSettings = null)

Update details of a single server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationInstanceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
UpdateInstanceRequest request = new UpdateInstanceRequest
{
    Instance = new Instance(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<Instance, OperationMetadata> response = await bareMetalSolutionClient.UpdateInstanceAsync(request);

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Instance result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Instance, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceUpdateInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Instance retrievedResult = retrievedResponse.Result;
}
```

### UpdateInstanceAsync(UpdateInstanceRequest, CancellationToken)

    public virtual Task<Operation<Instance, OperationMetadata>> UpdateInstanceAsync(UpdateInstanceRequest request, CancellationToken cancellationToken)

Update details of a single server.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateInstanceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationInstanceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
UpdateInstanceRequest request = new UpdateInstanceRequest
{
    Instance = new Instance(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<Instance, OperationMetadata> response = await bareMetalSolutionClient.UpdateInstanceAsync(request);

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Instance result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Instance, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceUpdateInstanceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Instance retrievedResult = retrievedResponse.Result;
}
```

### UpdateNetwork(Network, FieldMask, CallSettings)

    public virtual Operation<Network, OperationMetadata> UpdateNetwork(Network network, FieldMask updateMask, CallSettings callSettings = null)

Update details of a single network.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `network` | `Network` Required. The network to update. The `name` field is used to identify the instance to update. Format: projects/{project}/locations/{location}/networks/{network} |
| `updateMask` | `FieldMask` The list of fields to update. The only currently supported fields are: `labels`, `reservations`, `vrf.vlan_attachments` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationNetworkOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
Network network = new Network();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Network, OperationMetadata> response = bareMetalSolutionClient.UpdateNetwork(network, updateMask);

// Poll until the returned long-running operation is complete
Operation<Network, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Network result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Network, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceUpdateNetwork(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Network retrievedResult = retrievedResponse.Result;
}
```

### UpdateNetwork(UpdateNetworkRequest, CallSettings)

    public virtual Operation<Network, OperationMetadata> UpdateNetwork(UpdateNetworkRequest request, CallSettings callSettings = null)

Update details of a single network.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateNetworkRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationNetworkOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
UpdateNetworkRequest request = new UpdateNetworkRequest
{
    Network = new Network(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<Network, OperationMetadata> response = bareMetalSolutionClient.UpdateNetwork(request);

// Poll until the returned long-running operation is complete
Operation<Network, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Network result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Network, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceUpdateNetwork(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Network retrievedResult = retrievedResponse.Result;
}
```

### UpdateNetworkAsync(Network, FieldMask, CallSettings)

    public virtual Task<Operation<Network, OperationMetadata>> UpdateNetworkAsync(Network network, FieldMask updateMask, CallSettings callSettings = null)

Update details of a single network.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `network` | `Network` Required. The network to update. The `name` field is used to identify the instance to update. Format: projects/{project}/locations/{location}/networks/{network} |
| `updateMask` | `FieldMask` The list of fields to update. The only currently supported fields are: `labels`, `reservations`, `vrf.vlan_attachments` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationNetworkOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
Network network = new Network();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Network, OperationMetadata> response = await bareMetalSolutionClient.UpdateNetworkAsync(network, updateMask);

// Poll until the returned long-running operation is complete
Operation<Network, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Network result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Network, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceUpdateNetworkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Network retrievedResult = retrievedResponse.Result;
}
```

### UpdateNetworkAsync(Network, FieldMask, CancellationToken)

    public virtual Task<Operation<Network, OperationMetadata>> UpdateNetworkAsync(Network network, FieldMask updateMask, CancellationToken cancellationToken)

Update details of a single network.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `network` | `Network` Required. The network to update. The `name` field is used to identify the instance to update. Format: projects/{project}/locations/{location}/networks/{network} |
| `updateMask` | `FieldMask` The list of fields to update. The only currently supported fields are: `labels`, `reservations`, `vrf.vlan_attachments` |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationNetworkOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
Network network = new Network();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Network, OperationMetadata> response = await bareMetalSolutionClient.UpdateNetworkAsync(network, updateMask);

// Poll until the returned long-running operation is complete
Operation<Network, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Network result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Network, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceUpdateNetworkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Network retrievedResult = retrievedResponse.Result;
}
```

### UpdateNetworkAsync(UpdateNetworkRequest, CallSettings)

    public virtual Task<Operation<Network, OperationMetadata>> UpdateNetworkAsync(UpdateNetworkRequest request, CallSettings callSettings = null)

Update details of a single network.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateNetworkRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationNetworkOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
UpdateNetworkRequest request = new UpdateNetworkRequest
{
    Network = new Network(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<Network, OperationMetadata> response = await bareMetalSolutionClient.UpdateNetworkAsync(request);

// Poll until the returned long-running operation is complete
Operation<Network, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Network result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Network, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceUpdateNetworkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Network retrievedResult = retrievedResponse.Result;
}
```

### UpdateNetworkAsync(UpdateNetworkRequest, CancellationToken)

    public virtual Task<Operation<Network, OperationMetadata>> UpdateNetworkAsync(UpdateNetworkRequest request, CancellationToken cancellationToken)

Update details of a single network.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateNetworkRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationNetworkOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
UpdateNetworkRequest request = new UpdateNetworkRequest
{
    Network = new Network(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<Network, OperationMetadata> response = await bareMetalSolutionClient.UpdateNetworkAsync(request);

// Poll until the returned long-running operation is complete
Operation<Network, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Network result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Network, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceUpdateNetworkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Network retrievedResult = retrievedResponse.Result;
}
```

### UpdateNfsShare(NfsShare, FieldMask, CallSettings)

    public virtual Operation<NfsShare, OperationMetadata> UpdateNfsShare(NfsShare nfsShare, FieldMask updateMask, CallSettings callSettings = null)

Update details of a single NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `nfsShare` | `NfsShare` Required. The NFS share to update. The `name` field is used to identify the NFS share to update. Format: projects/{project}/locations/{location}/nfsShares/{nfs_share} |
| `updateMask` | `FieldMask` The list of fields to update. The only currently supported fields are: `labels` `allowed_clients` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationNfsShareOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
NfsShare nfsShare = new NfsShare();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<NfsShare, OperationMetadata> response = bareMetalSolutionClient.UpdateNfsShare(nfsShare, updateMask);

// Poll until the returned long-running operation is complete
Operation<NfsShare, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
NfsShare result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<NfsShare, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceUpdateNfsShare(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    NfsShare retrievedResult = retrievedResponse.Result;
}
```

### UpdateNfsShare(UpdateNfsShareRequest, CallSettings)

    public virtual Operation<NfsShare, OperationMetadata> UpdateNfsShare(UpdateNfsShareRequest request, CallSettings callSettings = null)

Update details of a single NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateNfsShareRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationNfsShareOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
UpdateNfsShareRequest request = new UpdateNfsShareRequest
{
    NfsShare = new NfsShare(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<NfsShare, OperationMetadata> response = bareMetalSolutionClient.UpdateNfsShare(request);

// Poll until the returned long-running operation is complete
Operation<NfsShare, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
NfsShare result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<NfsShare, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceUpdateNfsShare(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    NfsShare retrievedResult = retrievedResponse.Result;
}
```

### UpdateNfsShareAsync(NfsShare, FieldMask, CallSettings)

    public virtual Task<Operation<NfsShare, OperationMetadata>> UpdateNfsShareAsync(NfsShare nfsShare, FieldMask updateMask, CallSettings callSettings = null)

Update details of a single NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `nfsShare` | `NfsShare` Required. The NFS share to update. The `name` field is used to identify the NFS share to update. Format: projects/{project}/locations/{location}/nfsShares/{nfs_share} |
| `updateMask` | `FieldMask` The list of fields to update. The only currently supported fields are: `labels` `allowed_clients` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationNfsShareOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
NfsShare nfsShare = new NfsShare();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<NfsShare, OperationMetadata> response = await bareMetalSolutionClient.UpdateNfsShareAsync(nfsShare, updateMask);

// Poll until the returned long-running operation is complete
Operation<NfsShare, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NfsShare result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<NfsShare, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceUpdateNfsShareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    NfsShare retrievedResult = retrievedResponse.Result;
}
```

### UpdateNfsShareAsync(NfsShare, FieldMask, CancellationToken)

    public virtual Task<Operation<NfsShare, OperationMetadata>> UpdateNfsShareAsync(NfsShare nfsShare, FieldMask updateMask, CancellationToken cancellationToken)

Update details of a single NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `nfsShare` | `NfsShare` Required. The NFS share to update. The `name` field is used to identify the NFS share to update. Format: projects/{project}/locations/{location}/nfsShares/{nfs_share} |
| `updateMask` | `FieldMask` The list of fields to update. The only currently supported fields are: `labels` `allowed_clients` |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationNfsShareOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
NfsShare nfsShare = new NfsShare();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<NfsShare, OperationMetadata> response = await bareMetalSolutionClient.UpdateNfsShareAsync(nfsShare, updateMask);

// Poll until the returned long-running operation is complete
Operation<NfsShare, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NfsShare result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<NfsShare, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceUpdateNfsShareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    NfsShare retrievedResult = retrievedResponse.Result;
}
```

### UpdateNfsShareAsync(UpdateNfsShareRequest, CallSettings)

    public virtual Task<Operation<NfsShare, OperationMetadata>> UpdateNfsShareAsync(UpdateNfsShareRequest request, CallSettings callSettings = null)

Update details of a single NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateNfsShareRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationNfsShareOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
UpdateNfsShareRequest request = new UpdateNfsShareRequest
{
    NfsShare = new NfsShare(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<NfsShare, OperationMetadata> response = await bareMetalSolutionClient.UpdateNfsShareAsync(request);

// Poll until the returned long-running operation is complete
Operation<NfsShare, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NfsShare result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<NfsShare, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceUpdateNfsShareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    NfsShare retrievedResult = retrievedResponse.Result;
}
```

### UpdateNfsShareAsync(UpdateNfsShareRequest, CancellationToken)

    public virtual Task<Operation<NfsShare, OperationMetadata>> UpdateNfsShareAsync(UpdateNfsShareRequest request, CancellationToken cancellationToken)

Update details of a single NFS share.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateNfsShareRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationNfsShareOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
UpdateNfsShareRequest request = new UpdateNfsShareRequest
{
    NfsShare = new NfsShare(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<NfsShare, OperationMetadata> response = await bareMetalSolutionClient.UpdateNfsShareAsync(request);

// Poll until the returned long-running operation is complete
Operation<NfsShare, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NfsShare result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<NfsShare, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceUpdateNfsShareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    NfsShare retrievedResult = retrievedResponse.Result;
}
```

### UpdateProvisioningConfig(ProvisioningConfig, FieldMask, CallSettings)

    public virtual ProvisioningConfig UpdateProvisioningConfig(ProvisioningConfig provisioningConfig, FieldMask updateMask, CallSettings callSettings = null)

Update existing ProvisioningConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `provisioningConfig` | `ProvisioningConfig` Required. The ProvisioningConfig to update. |
| `updateMask` | `FieldMask` Required. The list of fields to update. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ProvisioningConfig` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
ProvisioningConfig provisioningConfig = new ProvisioningConfig();
FieldMask updateMask = new FieldMask();
// Make the request
ProvisioningConfig response = bareMetalSolutionClient.UpdateProvisioningConfig(provisioningConfig, updateMask);
```

### UpdateProvisioningConfig(UpdateProvisioningConfigRequest, CallSettings)

    public virtual ProvisioningConfig UpdateProvisioningConfig(UpdateProvisioningConfigRequest request, CallSettings callSettings = null)

Update existing ProvisioningConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateProvisioningConfigRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ProvisioningConfig` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
UpdateProvisioningConfigRequest request = new UpdateProvisioningConfigRequest
{
    ProvisioningConfig = new ProvisioningConfig(),
    UpdateMask = new FieldMask(),
    Email = "",
};
// Make the request
ProvisioningConfig response = bareMetalSolutionClient.UpdateProvisioningConfig(request);
```

### UpdateProvisioningConfigAsync(ProvisioningConfig, FieldMask, CallSettings)

    public virtual Task<ProvisioningConfig> UpdateProvisioningConfigAsync(ProvisioningConfig provisioningConfig, FieldMask updateMask, CallSettings callSettings = null)

Update existing ProvisioningConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `provisioningConfig` | `ProvisioningConfig` Required. The ProvisioningConfig to update. |
| `updateMask` | `FieldMask` Required. The list of fields to update. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskProvisioningConfig` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
ProvisioningConfig provisioningConfig = new ProvisioningConfig();
FieldMask updateMask = new FieldMask();
// Make the request
ProvisioningConfig response = await bareMetalSolutionClient.UpdateProvisioningConfigAsync(provisioningConfig, updateMask);
```

### UpdateProvisioningConfigAsync(ProvisioningConfig, FieldMask, CancellationToken)

    public virtual Task<ProvisioningConfig> UpdateProvisioningConfigAsync(ProvisioningConfig provisioningConfig, FieldMask updateMask, CancellationToken cancellationToken)

Update existing ProvisioningConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `provisioningConfig` | `ProvisioningConfig` Required. The ProvisioningConfig to update. |
| `updateMask` | `FieldMask` Required. The list of fields to update. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskProvisioningConfig` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
ProvisioningConfig provisioningConfig = new ProvisioningConfig();
FieldMask updateMask = new FieldMask();
// Make the request
ProvisioningConfig response = await bareMetalSolutionClient.UpdateProvisioningConfigAsync(provisioningConfig, updateMask);
```

### UpdateProvisioningConfigAsync(UpdateProvisioningConfigRequest, CallSettings)

    public virtual Task<ProvisioningConfig> UpdateProvisioningConfigAsync(UpdateProvisioningConfigRequest request, CallSettings callSettings = null)

Update existing ProvisioningConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateProvisioningConfigRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskProvisioningConfig` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
UpdateProvisioningConfigRequest request = new UpdateProvisioningConfigRequest
{
    ProvisioningConfig = new ProvisioningConfig(),
    UpdateMask = new FieldMask(),
    Email = "",
};
// Make the request
ProvisioningConfig response = await bareMetalSolutionClient.UpdateProvisioningConfigAsync(request);
```

### UpdateProvisioningConfigAsync(UpdateProvisioningConfigRequest, CancellationToken)

    public virtual Task<ProvisioningConfig> UpdateProvisioningConfigAsync(UpdateProvisioningConfigRequest request, CancellationToken cancellationToken)

Update existing ProvisioningConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateProvisioningConfigRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskProvisioningConfig` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
UpdateProvisioningConfigRequest request = new UpdateProvisioningConfigRequest
{
    ProvisioningConfig = new ProvisioningConfig(),
    UpdateMask = new FieldMask(),
    Email = "",
};
// Make the request
ProvisioningConfig response = await bareMetalSolutionClient.UpdateProvisioningConfigAsync(request);
```

### UpdateVolume(UpdateVolumeRequest, CallSettings)

    public virtual Operation<Volume, OperationMetadata> UpdateVolume(UpdateVolumeRequest request, CallSettings callSettings = null)

Update details of a single storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateVolumeRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationVolumeOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
UpdateVolumeRequest request = new UpdateVolumeRequest
{
    Volume = new Volume(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<Volume, OperationMetadata> response = bareMetalSolutionClient.UpdateVolume(request);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceUpdateVolume(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}
```

### UpdateVolume(Volume, FieldMask, CallSettings)

    public virtual Operation<Volume, OperationMetadata> UpdateVolume(Volume volume, FieldMask updateMask, CallSettings callSettings = null)

Update details of a single storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `volume` | `Volume` Required. The volume to update. The `name` field is used to identify the volume to update. Format: projects/{project}/locations/{location}/volumes/{volume} |
| `updateMask` | `FieldMask` The list of fields to update. The only currently supported fields are: 'labels' |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationVolumeOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create();
// Initialize request argument(s)
Volume volume = new Volume();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Volume, OperationMetadata> response = bareMetalSolutionClient.UpdateVolume(volume, updateMask);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceUpdateVolume(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}
```

### UpdateVolumeAsync(UpdateVolumeRequest, CallSettings)

    public virtual Task<Operation<Volume, OperationMetadata>> UpdateVolumeAsync(UpdateVolumeRequest request, CallSettings callSettings = null)

Update details of a single storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateVolumeRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationVolumeOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
UpdateVolumeRequest request = new UpdateVolumeRequest
{
    Volume = new Volume(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<Volume, OperationMetadata> response = await bareMetalSolutionClient.UpdateVolumeAsync(request);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceUpdateVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}
```

### UpdateVolumeAsync(UpdateVolumeRequest, CancellationToken)

    public virtual Task<Operation<Volume, OperationMetadata>> UpdateVolumeAsync(UpdateVolumeRequest request, CancellationToken cancellationToken)

Update details of a single storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateVolumeRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationVolumeOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
UpdateVolumeRequest request = new UpdateVolumeRequest
{
    Volume = new Volume(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<Volume, OperationMetadata> response = await bareMetalSolutionClient.UpdateVolumeAsync(request);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceUpdateVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}
```

### UpdateVolumeAsync(Volume, FieldMask, CallSettings)

    public virtual Task<Operation<Volume, OperationMetadata>> UpdateVolumeAsync(Volume volume, FieldMask updateMask, CallSettings callSettings = null)

Update details of a single storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `volume` | `Volume` Required. The volume to update. The `name` field is used to identify the volume to update. Format: projects/{project}/locations/{location}/volumes/{volume} |
| `updateMask` | `FieldMask` The list of fields to update. The only currently supported fields are: 'labels' |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationVolumeOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
Volume volume = new Volume();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Volume, OperationMetadata> response = await bareMetalSolutionClient.UpdateVolumeAsync(volume, updateMask);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceUpdateVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}
```

### UpdateVolumeAsync(Volume, FieldMask, CancellationToken)

    public virtual Task<Operation<Volume, OperationMetadata>> UpdateVolumeAsync(Volume volume, FieldMask updateMask, CancellationToken cancellationToken)

Update details of a single storage volume.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `volume` | `Volume` Required. The volume to update. The `name` field is used to identify the volume to update. Format: projects/{project}/locations/{location}/volumes/{volume} |
| `updateMask` | `FieldMask` The list of fields to update. The only currently supported fields are: 'labels' |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationVolumeOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)
Volume volume = new Volume();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Volume, OperationMetadata> response = await bareMetalSolutionClient.UpdateVolumeAsync(volume, updateMask);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceUpdateVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}
```