Bare Metal Solution v2 API - Class BareMetalSolutionClient (1.5.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 > BareMetalSolutionClient

Namespace

Google.Cloud.BareMetalSolution.V2

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
TypeDescription
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
TypeDescription
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default BareMetalSolution scopes.

Property Value
TypeDescription
IReadOnlyListstring
Remarks

The default BareMetalSolution scopes are:

DeleteNfsShareOperationsClient

public virtual OperationsClient DeleteNfsShareOperationsClient { get; }

The long-running operations client for DeleteNfsShare.

Property Value
TypeDescription
OperationsClient

DetachLunOperationsClient

public virtual OperationsClient DetachLunOperationsClient { get; }

The long-running operations client for DetachLun.

Property Value
TypeDescription
OperationsClient

DisableInteractiveSerialConsoleOperationsClient

public virtual OperationsClient DisableInteractiveSerialConsoleOperationsClient { get; }

The long-running operations client for DisableInteractiveSerialConsole.

Property Value
TypeDescription
OperationsClient

EnableInteractiveSerialConsoleOperationsClient

public virtual OperationsClient EnableInteractiveSerialConsoleOperationsClient { get; }

The long-running operations client for EnableInteractiveSerialConsole.

Property Value
TypeDescription
OperationsClient

EvictLunOperationsClient

public virtual OperationsClient EvictLunOperationsClient { get; }

The long-running operations client for EvictLun.

Property Value
TypeDescription
OperationsClient

EvictVolumeOperationsClient

public virtual OperationsClient EvictVolumeOperationsClient { get; }

The long-running operations client for EvictVolume.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual BareMetalSolution.BareMetalSolutionClient GrpcClient { get; }

The underlying gRPC BareMetalSolution client

Property Value
TypeDescription
BareMetalSolutionBareMetalSolutionClient

IAMPolicyClient

public virtual IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
TypeDescription
IAMPolicyClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient

ResetInstanceOperationsClient

public virtual OperationsClient ResetInstanceOperationsClient { get; }

The long-running operations client for ResetInstance.

Property Value
TypeDescription
OperationsClient

ResizeVolumeOperationsClient

public virtual OperationsClient ResizeVolumeOperationsClient { get; }

The long-running operations client for ResizeVolume.

Property Value
TypeDescription
OperationsClient

RestoreVolumeSnapshotOperationsClient

public virtual OperationsClient RestoreVolumeSnapshotOperationsClient { get; }

The long-running operations client for RestoreVolumeSnapshot.

Property Value
TypeDescription
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

StartInstanceOperationsClient

public virtual OperationsClient StartInstanceOperationsClient { get; }

The long-running operations client for StartInstance.

Property Value
TypeDescription
OperationsClient

StopInstanceOperationsClient

public virtual OperationsClient StopInstanceOperationsClient { get; }

The long-running operations client for StopInstance.

Property Value
TypeDescription
OperationsClient

UpdateInstanceOperationsClient

public virtual OperationsClient UpdateInstanceOperationsClient { get; }

The long-running operations client for UpdateInstance.

Property Value
TypeDescription
OperationsClient

UpdateNetworkOperationsClient

public virtual OperationsClient UpdateNetworkOperationsClient { get; }

The long-running operations client for UpdateNetwork.

Property Value
TypeDescription
OperationsClient

UpdateNfsShareOperationsClient

public virtual OperationsClient UpdateNfsShareOperationsClient { get; }

The long-running operations client for UpdateNfsShare.

Property Value
TypeDescription
OperationsClient

UpdateVolumeOperationsClient

public virtual OperationsClient UpdateVolumeOperationsClient { get; }

The long-running operations client for UpdateVolume.

Property Value
TypeDescription
OperationsClient

Methods

Create()

public static BareMetalSolutionClient Create()

Synchronously creates a BareMetalSolutionClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use BareMetalSolutionClientBuilder.

Returns
TypeDescription
BareMetalSolutionClient

The created BareMetalSolutionClient.

CreateAsync(CancellationToken)

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

Asynchronously creates a BareMetalSolutionClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use BareMetalSolutionClientBuilder.

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
TaskBareMetalSolutionClient

The task representing the created BareMetalSolutionClient.

CreateNfsShare(LocationName, NfsShare, CallSettings)

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

Create an NFS share.

Parameters
NameDescription
parentLocationName

Required. The parent project and location.

nfsShareNfsShare

Required. The NfsShare to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationNfsShareOperationMetadata

The RPC response.

Example
// 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
NameDescription
requestCreateNfsShareRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationNfsShareOperationMetadata

The RPC response.

Example
// 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
NameDescription
parentstring

Required. The parent project and location.

nfsShareNfsShare

Required. The NfsShare to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationNfsShareOperationMetadata

The RPC response.

Example
// 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
NameDescription
parentLocationName

Required. The parent project and location.

nfsShareNfsShare

Required. The NfsShare to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationNfsShareOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
parentLocationName

Required. The parent project and location.

nfsShareNfsShare

Required. The NfsShare to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationNfsShareOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
requestCreateNfsShareRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationNfsShareOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
requestCreateNfsShareRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationNfsShareOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
parentstring

Required. The parent project and location.

nfsShareNfsShare

Required. The NfsShare to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationNfsShareOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
parentstring

Required. The parent project and location.

nfsShareNfsShare

Required. The NfsShare to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationNfsShareOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
parentLocationName

Required. The parent project and location containing the ProvisioningConfig.

provisioningConfigProvisioningConfig

Required. The ProvisioningConfig to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ProvisioningConfig

The RPC response.

Example
// 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
NameDescription
requestCreateProvisioningConfigRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ProvisioningConfig

The RPC response.

Example
// 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
NameDescription
parentstring

Required. The parent project and location containing the ProvisioningConfig.

provisioningConfigProvisioningConfig

Required. The ProvisioningConfig to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ProvisioningConfig

The RPC response.

Example
// 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
NameDescription
parentLocationName

Required. The parent project and location containing the ProvisioningConfig.

provisioningConfigProvisioningConfig

Required. The ProvisioningConfig to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskProvisioningConfig

A Task containing the RPC response.

Example
// 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
NameDescription
parentLocationName

Required. The parent project and location containing the ProvisioningConfig.

provisioningConfigProvisioningConfig

Required. The ProvisioningConfig to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskProvisioningConfig

A Task containing the RPC response.

Example
// 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
NameDescription
requestCreateProvisioningConfigRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskProvisioningConfig

A Task containing the RPC response.

Example
// 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
NameDescription
requestCreateProvisioningConfigRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskProvisioningConfig

A Task containing the RPC response.

Example
// 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
NameDescription
parentstring

Required. The parent project and location containing the ProvisioningConfig.

provisioningConfigProvisioningConfig

Required. The ProvisioningConfig to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskProvisioningConfig

A Task containing the RPC response.

Example
// 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
NameDescription
parentstring

Required. The parent project and location containing the ProvisioningConfig.

provisioningConfigProvisioningConfig

Required. The ProvisioningConfig to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskProvisioningConfig

A Task containing the RPC response.

Example
// 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
NameDescription
parentLocationName

Required. The parent containing the SSH keys.

sshKeySSHKey

Required. The SSH key to register.

sshKeyIdstring

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}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SSHKey

The RPC response.

Example
// 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
NameDescription
requestCreateSSHKeyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SSHKey

The RPC response.

Example
// 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
NameDescription
parentstring

Required. The parent containing the SSH keys.

sshKeySSHKey

Required. The SSH key to register.

sshKeyIdstring

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}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SSHKey

The RPC response.

Example
// 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
NameDescription
parentLocationName

Required. The parent containing the SSH keys.

sshKeySSHKey

Required. The SSH key to register.

sshKeyIdstring

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}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSSHKey

A Task containing the RPC response.

Example
// 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
NameDescription
parentLocationName

Required. The parent containing the SSH keys.

sshKeySSHKey

Required. The SSH key to register.

sshKeyIdstring

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}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSSHKey

A Task containing the RPC response.

Example
// 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
NameDescription
requestCreateSSHKeyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSSHKey

A Task containing the RPC response.

Example
// 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
NameDescription
requestCreateSSHKeyRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSSHKey

A Task containing the RPC response.

Example
// 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
NameDescription
parentstring

Required. The parent containing the SSH keys.

sshKeySSHKey

Required. The SSH key to register.

sshKeyIdstring

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}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSSHKey

A Task containing the RPC response.

Example
// 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
NameDescription
parentstring

Required. The parent containing the SSH keys.

sshKeySSHKey

Required. The SSH key to register.

sshKeyIdstring

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}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSSHKey

A Task containing the RPC response.

Example
// 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
NameDescription
requestCreateVolumeSnapshotRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
VolumeSnapshot

The RPC response.

Example
// 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
NameDescription
parentVolumeName

Required. The volume to snapshot.

volumeSnapshotVolumeSnapshot

Required. The snapshot to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
VolumeSnapshot

The RPC response.

Example
// 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
NameDescription
parentstring

Required. The volume to snapshot.

volumeSnapshotVolumeSnapshot

Required. The snapshot to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
VolumeSnapshot

The RPC response.

Example
// 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
NameDescription
requestCreateVolumeSnapshotRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskVolumeSnapshot

A Task containing the RPC response.

Example
// 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
NameDescription
requestCreateVolumeSnapshotRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskVolumeSnapshot

A Task containing the RPC response.

Example
// 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
NameDescription
parentVolumeName

Required. The volume to snapshot.

volumeSnapshotVolumeSnapshot

Required. The snapshot to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskVolumeSnapshot

A Task containing the RPC response.

Example
// 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
NameDescription
parentVolumeName

Required. The volume to snapshot.

volumeSnapshotVolumeSnapshot

Required. The snapshot to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskVolumeSnapshot

A Task containing the RPC response.

Example
// 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
NameDescription
parentstring

Required. The volume to snapshot.

volumeSnapshotVolumeSnapshot

Required. The snapshot to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskVolumeSnapshot

A Task containing the RPC response.

Example
// 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
NameDescription
parentstring

Required. The volume to snapshot.

volumeSnapshotVolumeSnapshot

Required. The snapshot to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskVolumeSnapshot

A Task containing the RPC response.

Example
// 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
NameDescription
requestDeleteNfsShareRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// 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
NameDescription
nameNFSShareName

Required. The name of the NFS share to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// 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
NameDescription
namestring

Required. The name of the NFS share to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// 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
NameDescription
requestDeleteNfsShareRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
requestDeleteNfsShareRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
nameNFSShareName

Required. The name of the NFS share to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
nameNFSShareName

Required. The name of the NFS share to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. The name of the NFS share to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. The name of the NFS share to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
requestDeleteSSHKeyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// 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
NameDescription
nameSshKeyName

Required. The name of the SSH key to delete. Currently, the only valid value for the location is "global".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// 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
NameDescription
namestring

Required. The name of the SSH key to delete. Currently, the only valid value for the location is "global".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// 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
NameDescription
requestDeleteSSHKeyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// 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
NameDescription
requestDeleteSSHKeyRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// 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
NameDescription
nameSshKeyName

Required. The name of the SSH key to delete. Currently, the only valid value for the location is "global".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// 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
NameDescription
nameSshKeyName

Required. The name of the SSH key to delete. Currently, the only valid value for the location is "global".

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. The name of the SSH key to delete. Currently, the only valid value for the location is "global".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. The name of the SSH key to delete. Currently, the only valid value for the location is "global".

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// 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
NameDescription
requestDeleteVolumeSnapshotRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// 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
NameDescription
nameVolumeSnapshotName

Required. The name of the snapshot to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// 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
NameDescription
namestring

Required. The name of the snapshot to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// 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
NameDescription
requestDeleteVolumeSnapshotRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// 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
NameDescription
requestDeleteVolumeSnapshotRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// 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
NameDescription
nameVolumeSnapshotName

Required. The name of the snapshot to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// 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
NameDescription
nameVolumeSnapshotName

Required. The name of the snapshot to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. The name of the snapshot to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. The name of the snapshot to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// 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
NameDescription
requestDetachLunRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationInstanceOperationMetadata

The RPC response.

Example
// 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
NameDescription
instanceInstanceName

Required. Name of the instance.

lunLunName

Required. Name of the Lun to detach.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationInstanceOperationMetadata

The RPC response.

Example
// 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
NameDescription
instancestring

Required. Name of the instance.

lunstring

Required. Name of the Lun to detach.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationInstanceOperationMetadata

The RPC response.

Example
// 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
NameDescription
requestDetachLunRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationInstanceOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
requestDetachLunRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationInstanceOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
instanceInstanceName

Required. Name of the instance.

lunLunName

Required. Name of the Lun to detach.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationInstanceOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
instanceInstanceName

Required. Name of the instance.

lunLunName

Required. Name of the Lun to detach.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationInstanceOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
instancestring

Required. Name of the instance.

lunstring

Required. Name of the Lun to detach.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationInstanceOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
instancestring

Required. Name of the instance.

lunstring

Required. Name of the Lun to detach.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationInstanceOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
requestDisableInteractiveSerialConsoleRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationDisableInteractiveSerialConsoleResponseOperationMetadata

The RPC response.

Example
// 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
NameDescription
nameInstanceName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationDisableInteractiveSerialConsoleResponseOperationMetadata

The RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationDisableInteractiveSerialConsoleResponseOperationMetadata

The RPC response.

Example
// 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
NameDescription
requestDisableInteractiveSerialConsoleRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationDisableInteractiveSerialConsoleResponseOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
requestDisableInteractiveSerialConsoleRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationDisableInteractiveSerialConsoleResponseOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
nameInstanceName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationDisableInteractiveSerialConsoleResponseOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
nameInstanceName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationDisableInteractiveSerialConsoleResponseOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationDisableInteractiveSerialConsoleResponseOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationDisableInteractiveSerialConsoleResponseOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
requestEnableInteractiveSerialConsoleRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEnableInteractiveSerialConsoleResponseOperationMetadata

The RPC response.

Example
// 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
NameDescription
nameInstanceName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEnableInteractiveSerialConsoleResponseOperationMetadata

The RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEnableInteractiveSerialConsoleResponseOperationMetadata

The RPC response.

Example
// 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
NameDescription
requestEnableInteractiveSerialConsoleRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEnableInteractiveSerialConsoleResponseOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
requestEnableInteractiveSerialConsoleRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEnableInteractiveSerialConsoleResponseOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
nameInstanceName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEnableInteractiveSerialConsoleResponseOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
nameInstanceName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEnableInteractiveSerialConsoleResponseOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEnableInteractiveSerialConsoleResponseOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEnableInteractiveSerialConsoleResponseOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
requestEvictLunRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// 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
NameDescription
nameLunName

Required. The name of the lun.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// 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
NameDescription
namestring

Required. The name of the lun.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// 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
NameDescription
requestEvictLunRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
requestEvictLunRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
nameLunName

Required. The name of the lun.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
nameLunName

Required. The name of the lun.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. The name of the lun.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. The name of the lun.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
requestEvictVolumeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// 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
NameDescription
nameVolumeName

Required. The name of the Volume.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// 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
NameDescription
namestring

Required. The name of the Volume.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// 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
NameDescription
requestEvictVolumeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
requestEvictVolumeRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
nameVolumeName

Required. The name of the Volume.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
nameVolumeName

Required. The name of the Volume.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. The name of the Volume.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. The name of the Volume.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// 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
NameDescription
requestGetInstanceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Instance

The RPC response.

Example
// 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
NameDescription
nameInstanceName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Instance

The RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Instance

The RPC response.

Example
// 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
NameDescription
requestGetInstanceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskInstance

A Task containing the RPC response.

Example
// 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
NameDescription
requestGetInstanceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskInstance

A Task containing the RPC response.

Example
// 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
NameDescription
nameInstanceName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskInstance

A Task containing the RPC response.

Example
// 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
NameDescription
nameInstanceName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskInstance

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskInstance

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskInstance

A Task containing the RPC response.

Example
// 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
NameDescription
requestGetLunRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Lun

The RPC response.

Example
// 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
NameDescription
nameLunName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Lun

The RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Lun

The RPC response.

Example
// 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
NameDescription
requestGetLunRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskLun

A Task containing the RPC response.

Example
// 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
NameDescription
requestGetLunRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskLun

A Task containing the RPC response.

Example
// 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
NameDescription
nameLunName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskLun

A Task containing the RPC response.

Example
// 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
NameDescription
nameLunName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskLun

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskLun

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskLun

A Task containing the RPC response.

Example
// 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
NameDescription
requestGetNetworkRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Network

The RPC response.

Example
// 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
NameDescription
nameNetworkName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Network

The RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Network

The RPC response.

Example
// 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
NameDescription
requestGetNetworkRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNetwork

A Task containing the RPC response.

Example
// 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
NameDescription
requestGetNetworkRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNetwork

A Task containing the RPC response.

Example
// 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
NameDescription
nameNetworkName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNetwork

A Task containing the RPC response.

Example
// 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
NameDescription
nameNetworkName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNetwork

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNetwork

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNetwork

A Task containing the RPC response.

Example
// 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
NameDescription
requestGetNfsShareRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
NfsShare

The RPC response.

Example
// 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
NameDescription
nameNFSShareName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
NfsShare

The RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
NfsShare

The RPC response.

Example
// 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
NameDescription
requestGetNfsShareRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNfsShare

A Task containing the RPC response.

Example
// 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
NameDescription
requestGetNfsShareRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNfsShare

A Task containing the RPC response.

Example
// 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
NameDescription
nameNFSShareName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNfsShare

A Task containing the RPC response.

Example
// 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
NameDescription
nameNFSShareName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNfsShare

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNfsShare

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNfsShare

A Task containing the RPC response.

Example
// 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
NameDescription
requestGetProvisioningConfigRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ProvisioningConfig

The RPC response.

Example
// 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
NameDescription
nameProvisioningConfigName

Required. Name of the ProvisioningConfig.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ProvisioningConfig

The RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the ProvisioningConfig.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ProvisioningConfig

The RPC response.

Example
// 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
NameDescription
requestGetProvisioningConfigRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskProvisioningConfig

A Task containing the RPC response.

Example
// 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
NameDescription
requestGetProvisioningConfigRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskProvisioningConfig

A Task containing the RPC response.

Example
// 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
NameDescription
nameProvisioningConfigName

Required. Name of the ProvisioningConfig.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskProvisioningConfig

A Task containing the RPC response.

Example
// 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
NameDescription
nameProvisioningConfigName

Required. Name of the ProvisioningConfig.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskProvisioningConfig

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the ProvisioningConfig.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskProvisioningConfig

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the ProvisioningConfig.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskProvisioningConfig

A Task containing the RPC response.

Example
// 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
NameDescription
requestGetVolumeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Volume

The RPC response.

Example
// 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
NameDescription
nameVolumeName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Volume

The RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Volume

The RPC response.

Example
// 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
NameDescription
requestGetVolumeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskVolume

A Task containing the RPC response.

Example
// 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
NameDescription
requestGetVolumeRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskVolume

A Task containing the RPC response.

Example
// 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
NameDescription
nameVolumeName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskVolume

A Task containing the RPC response.

Example
// 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
NameDescription
nameVolumeName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskVolume

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskVolume

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskVolume

A Task containing the RPC response.

Example
// 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
NameDescription
requestGetVolumeSnapshotRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
VolumeSnapshot

The RPC response.

Example
// 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
NameDescription
nameVolumeSnapshotName

Required. The name of the snapshot.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
VolumeSnapshot

The RPC response.

Example
// 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
NameDescription
namestring

Required. The name of the snapshot.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
VolumeSnapshot

The RPC response.

Example
// 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
NameDescription
requestGetVolumeSnapshotRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskVolumeSnapshot

A Task containing the RPC response.

Example
// 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
NameDescription
requestGetVolumeSnapshotRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskVolumeSnapshot

A Task containing the RPC response.

Example
// 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
NameDescription
nameVolumeSnapshotName

Required. The name of the snapshot.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskVolumeSnapshot

A Task containing the RPC response.

Example
// 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
NameDescription
nameVolumeSnapshotName

Required. The name of the snapshot.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskVolumeSnapshot

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. The name of the snapshot.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskVolumeSnapshot

A Task containing the RPC response.

Example
// 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
NameDescription
namestring

Required. The name of the snapshot.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskVolumeSnapshot

A Task containing the RPC response.

Example
// 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
NameDescription
parentLocationName

Required. Parent value for ListInstancesRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListInstancesResponseInstance

A pageable sequence of Instance resources.

Example
// 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
NameDescription
requestListInstancesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListInstancesResponseInstance

A pageable sequence of Instance resources.

Example
// 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
NameDescription
parentstring

Required. Parent value for ListInstancesRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListInstancesResponseInstance

A pageable sequence of Instance resources.

Example
// 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
NameDescription
parentLocationName

Required. Parent value for ListInstancesRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListInstancesResponseInstance

A pageable asynchronous sequence of Instance resources.

Example
// 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
NameDescription
requestListInstancesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListInstancesResponseInstance

A pageable asynchronous sequence of Instance resources.

Example
// 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
NameDescription
parentstring

Required. Parent value for ListInstancesRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListInstancesResponseInstance

A pageable asynchronous sequence of Instance resources.

Example
// 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
NameDescription
requestListLunsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListLunsResponseLun

A pageable sequence of Lun resources.

Example
// 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
NameDescription
parentVolumeName

Required. Parent value for ListLunsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListLunsResponseLun

A pageable sequence of Lun resources.

Example
// 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
NameDescription
parentstring

Required. Parent value for ListLunsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListLunsResponseLun

A pageable sequence of Lun resources.

Example
// 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
NameDescription
requestListLunsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListLunsResponseLun

A pageable asynchronous sequence of Lun resources.

Example
// 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
NameDescription
parentVolumeName

Required. Parent value for ListLunsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListLunsResponseLun

A pageable asynchronous sequence of Lun resources.

Example
// 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
NameDescription
parentstring

Required. Parent value for ListLunsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListLunsResponseLun

A pageable asynchronous sequence of Lun resources.

Example
// 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
NameDescription
locationLocationName

Required. Parent value (project and location).

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ListNetworkUsageResponse

The RPC response.

Example
// 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
NameDescription
requestListNetworkUsageRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ListNetworkUsageResponse

The RPC response.

Example
// 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
NameDescription
locationstring

Required. Parent value (project and location).

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ListNetworkUsageResponse

The RPC response.

Example
// 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
NameDescription
locationLocationName

Required. Parent value (project and location).

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskListNetworkUsageResponse

A Task containing the RPC response.

Example
// Create client
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync();
// Initialize request argument(s)