GDC Hardware Management v1alpha API - Class GDCHardwareManagementClient (1.0.0-alpha01)

public abstract class GDCHardwareManagementClient

Reference documentation and code samples for the GDC Hardware Management v1alpha API class GDCHardwareManagementClient.

GDCHardwareManagement client wrapper, for convenient use.

Inheritance

object > GDCHardwareManagementClient

Namespace

Google.Cloud.GdcHardwareManagement.V1Alpha

Assembly

Google.Cloud.GdcHardwareManagement.V1Alpha.dll

Remarks

The GDC Hardware Management service.

Properties

CreateCommentOperationsClient

public virtual OperationsClient CreateCommentOperationsClient { get; }

The long-running operations client for CreateComment.

Property Value
Type Description
OperationsClient

CreateHardwareGroupOperationsClient

public virtual OperationsClient CreateHardwareGroupOperationsClient { get; }

The long-running operations client for CreateHardwareGroup.

Property Value
Type Description
OperationsClient

CreateHardwareOperationsClient

public virtual OperationsClient CreateHardwareOperationsClient { get; }

The long-running operations client for CreateHardware.

Property Value
Type Description
OperationsClient

CreateOrderOperationsClient

public virtual OperationsClient CreateOrderOperationsClient { get; }

The long-running operations client for CreateOrder.

Property Value
Type Description
OperationsClient

CreateSiteOperationsClient

public virtual OperationsClient CreateSiteOperationsClient { get; }

The long-running operations client for CreateSite.

Property Value
Type Description
OperationsClient

CreateZoneOperationsClient

public virtual OperationsClient CreateZoneOperationsClient { get; }

The long-running operations client for CreateZone.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default GDCHardwareManagement scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default GDCHardwareManagement scopes are:

DeleteHardwareGroupOperationsClient

public virtual OperationsClient DeleteHardwareGroupOperationsClient { get; }

The long-running operations client for DeleteHardwareGroup.

Property Value
Type Description
OperationsClient

DeleteHardwareOperationsClient

public virtual OperationsClient DeleteHardwareOperationsClient { get; }

The long-running operations client for DeleteHardware.

Property Value
Type Description
OperationsClient

DeleteOrderOperationsClient

public virtual OperationsClient DeleteOrderOperationsClient { get; }

The long-running operations client for DeleteOrder.

Property Value
Type Description
OperationsClient

DeleteZoneOperationsClient

public virtual OperationsClient DeleteZoneOperationsClient { get; }

The long-running operations client for DeleteZone.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual GDCHardwareManagement.GDCHardwareManagementClient GrpcClient { get; }

The underlying gRPC GDCHardwareManagement client

Property Value
Type Description
GDCHardwareManagementGDCHardwareManagementClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

SignalZoneStateOperationsClient

public virtual OperationsClient SignalZoneStateOperationsClient { get; }

The long-running operations client for SignalZoneState.

Property Value
Type Description
OperationsClient

SubmitOrderOperationsClient

public virtual OperationsClient SubmitOrderOperationsClient { get; }

The long-running operations client for SubmitOrder.

Property Value
Type Description
OperationsClient

UpdateHardwareGroupOperationsClient

public virtual OperationsClient UpdateHardwareGroupOperationsClient { get; }

The long-running operations client for UpdateHardwareGroup.

Property Value
Type Description
OperationsClient

UpdateHardwareOperationsClient

public virtual OperationsClient UpdateHardwareOperationsClient { get; }

The long-running operations client for UpdateHardware.

Property Value
Type Description
OperationsClient

UpdateOrderOperationsClient

public virtual OperationsClient UpdateOrderOperationsClient { get; }

The long-running operations client for UpdateOrder.

Property Value
Type Description
OperationsClient

UpdateSiteOperationsClient

public virtual OperationsClient UpdateSiteOperationsClient { get; }

The long-running operations client for UpdateSite.

Property Value
Type Description
OperationsClient

UpdateZoneOperationsClient

public virtual OperationsClient UpdateZoneOperationsClient { get; }

The long-running operations client for UpdateZone.

Property Value
Type Description
OperationsClient

Methods

Create()

public static GDCHardwareManagementClient Create()

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

Returns
Type Description
GDCHardwareManagementClient

The created GDCHardwareManagementClient.

CreateAsync(CancellationToken)

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

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskGDCHardwareManagementClient

The task representing the created GDCHardwareManagementClient.

CreateComment(CreateCommentRequest, CallSettings)

public virtual Operation<Comment, OperationMetadata> CreateComment(CreateCommentRequest request, CallSettings callSettings = null)

Creates a new comment on an order.

Parameters
Name Description
request CreateCommentRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationCommentOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
CreateCommentRequest request = new CreateCommentRequest
{
    ParentAsOrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
    CommentId = "",
    Comment = new Comment(),
    RequestId = "",
};
// Make the request
Operation<Comment, OperationMetadata> response = gDCHardwareManagementClient.CreateComment(request);

// Poll until the returned long-running operation is complete
Operation<Comment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Comment 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<Comment, OperationMetadata> retrievedResponse = gDCHardwareManagementClient.PollOnceCreateComment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Comment retrievedResult = retrievedResponse.Result;
}

CreateComment(OrderName, Comment, string, CallSettings)

public virtual Operation<Comment, OperationMetadata> CreateComment(OrderName parent, Comment comment, string commentId, CallSettings callSettings = null)

Creates a new comment on an order.

Parameters
Name Description
parent OrderName

Required. The order to create the comment on. Format: projects/{project}/locations/{location}/orders/{order}

comment Comment

Required. The comment to create.

commentId string

Optional. ID used to uniquely identify the Comment within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The comment.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationCommentOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
OrderName parent = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
Comment comment = new Comment();
string commentId = "";
// Make the request
Operation<Comment, OperationMetadata> response = gDCHardwareManagementClient.CreateComment(parent, comment, commentId);

// Poll until the returned long-running operation is complete
Operation<Comment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Comment 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<Comment, OperationMetadata> retrievedResponse = gDCHardwareManagementClient.PollOnceCreateComment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Comment retrievedResult = retrievedResponse.Result;
}

CreateComment(string, Comment, string, CallSettings)

public virtual Operation<Comment, OperationMetadata> CreateComment(string parent, Comment comment, string commentId, CallSettings callSettings = null)

Creates a new comment on an order.

Parameters
Name Description
parent string

Required. The order to create the comment on. Format: projects/{project}/locations/{location}/orders/{order}

comment Comment

Required. The comment to create.

commentId string

Optional. ID used to uniquely identify the Comment within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The comment.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationCommentOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]";
Comment comment = new Comment();
string commentId = "";
// Make the request
Operation<Comment, OperationMetadata> response = gDCHardwareManagementClient.CreateComment(parent, comment, commentId);

// Poll until the returned long-running operation is complete
Operation<Comment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Comment 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<Comment, OperationMetadata> retrievedResponse = gDCHardwareManagementClient.PollOnceCreateComment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Comment retrievedResult = retrievedResponse.Result;
}

CreateCommentAsync(CreateCommentRequest, CallSettings)

public virtual Task<Operation<Comment, OperationMetadata>> CreateCommentAsync(CreateCommentRequest request, CallSettings callSettings = null)

Creates a new comment on an order.

Parameters
Name Description
request CreateCommentRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationCommentOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
CreateCommentRequest request = new CreateCommentRequest
{
    ParentAsOrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
    CommentId = "",
    Comment = new Comment(),
    RequestId = "",
};
// Make the request
Operation<Comment, OperationMetadata> response = await gDCHardwareManagementClient.CreateCommentAsync(request);

// Poll until the returned long-running operation is complete
Operation<Comment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Comment 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<Comment, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateCommentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Comment retrievedResult = retrievedResponse.Result;
}

CreateCommentAsync(CreateCommentRequest, CancellationToken)

public virtual Task<Operation<Comment, OperationMetadata>> CreateCommentAsync(CreateCommentRequest request, CancellationToken cancellationToken)

Creates a new comment on an order.

Parameters
Name Description
request CreateCommentRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationCommentOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
CreateCommentRequest request = new CreateCommentRequest
{
    ParentAsOrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
    CommentId = "",
    Comment = new Comment(),
    RequestId = "",
};
// Make the request
Operation<Comment, OperationMetadata> response = await gDCHardwareManagementClient.CreateCommentAsync(request);

// Poll until the returned long-running operation is complete
Operation<Comment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Comment 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<Comment, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateCommentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Comment retrievedResult = retrievedResponse.Result;
}

CreateCommentAsync(OrderName, Comment, string, CallSettings)

public virtual Task<Operation<Comment, OperationMetadata>> CreateCommentAsync(OrderName parent, Comment comment, string commentId, CallSettings callSettings = null)

Creates a new comment on an order.

Parameters
Name Description
parent OrderName

Required. The order to create the comment on. Format: projects/{project}/locations/{location}/orders/{order}

comment Comment

Required. The comment to create.

commentId string

Optional. ID used to uniquely identify the Comment within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The comment.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationCommentOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
OrderName parent = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
Comment comment = new Comment();
string commentId = "";
// Make the request
Operation<Comment, OperationMetadata> response = await gDCHardwareManagementClient.CreateCommentAsync(parent, comment, commentId);

// Poll until the returned long-running operation is complete
Operation<Comment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Comment 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<Comment, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateCommentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Comment retrievedResult = retrievedResponse.Result;
}

CreateCommentAsync(OrderName, Comment, string, CancellationToken)

public virtual Task<Operation<Comment, OperationMetadata>> CreateCommentAsync(OrderName parent, Comment comment, string commentId, CancellationToken cancellationToken)

Creates a new comment on an order.

Parameters
Name Description
parent OrderName

Required. The order to create the comment on. Format: projects/{project}/locations/{location}/orders/{order}

comment Comment

Required. The comment to create.

commentId string

Optional. ID used to uniquely identify the Comment within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The comment.name field in the request will be ignored.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationCommentOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
OrderName parent = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
Comment comment = new Comment();
string commentId = "";
// Make the request
Operation<Comment, OperationMetadata> response = await gDCHardwareManagementClient.CreateCommentAsync(parent, comment, commentId);

// Poll until the returned long-running operation is complete
Operation<Comment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Comment 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<Comment, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateCommentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Comment retrievedResult = retrievedResponse.Result;
}

CreateCommentAsync(string, Comment, string, CallSettings)

public virtual Task<Operation<Comment, OperationMetadata>> CreateCommentAsync(string parent, Comment comment, string commentId, CallSettings callSettings = null)

Creates a new comment on an order.

Parameters
Name Description
parent string

Required. The order to create the comment on. Format: projects/{project}/locations/{location}/orders/{order}

comment Comment

Required. The comment to create.

commentId string

Optional. ID used to uniquely identify the Comment within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The comment.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationCommentOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]";
Comment comment = new Comment();
string commentId = "";
// Make the request
Operation<Comment, OperationMetadata> response = await gDCHardwareManagementClient.CreateCommentAsync(parent, comment, commentId);

// Poll until the returned long-running operation is complete
Operation<Comment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Comment 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<Comment, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateCommentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Comment retrievedResult = retrievedResponse.Result;
}

CreateCommentAsync(string, Comment, string, CancellationToken)

public virtual Task<Operation<Comment, OperationMetadata>> CreateCommentAsync(string parent, Comment comment, string commentId, CancellationToken cancellationToken)

Creates a new comment on an order.

Parameters
Name Description
parent string

Required. The order to create the comment on. Format: projects/{project}/locations/{location}/orders/{order}

comment Comment

Required. The comment to create.

commentId string

Optional. ID used to uniquely identify the Comment within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The comment.name field in the request will be ignored.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationCommentOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]";
Comment comment = new Comment();
string commentId = "";
// Make the request
Operation<Comment, OperationMetadata> response = await gDCHardwareManagementClient.CreateCommentAsync(parent, comment, commentId);

// Poll until the returned long-running operation is complete
Operation<Comment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Comment 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<Comment, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateCommentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Comment retrievedResult = retrievedResponse.Result;
}

CreateHardware(LocationName, Hardware, string, CallSettings)

public virtual Operation<Hardware, OperationMetadata> CreateHardware(LocationName parent, Hardware hardware, string hardwareId, CallSettings callSettings = null)

Creates new hardware in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location to create hardware in. Format: projects/{project}/locations/{location}

hardware Hardware

Required. The resource to create.

hardwareId string

Optional. ID used to uniquely identify the Hardware within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The hardware.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationHardwareOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Hardware hardware = new Hardware();
string hardwareId = "";
// Make the request
Operation<Hardware, OperationMetadata> response = gDCHardwareManagementClient.CreateHardware(parent, hardware, hardwareId);

// Poll until the returned long-running operation is complete
Operation<Hardware, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Hardware 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<Hardware, OperationMetadata> retrievedResponse = gDCHardwareManagementClient.PollOnceCreateHardware(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Hardware retrievedResult = retrievedResponse.Result;
}

CreateHardware(CreateHardwareRequest, CallSettings)

public virtual Operation<Hardware, OperationMetadata> CreateHardware(CreateHardwareRequest request, CallSettings callSettings = null)

Creates new hardware in a given project and location.

Parameters
Name Description
request CreateHardwareRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationHardwareOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
CreateHardwareRequest request = new CreateHardwareRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    HardwareId = "",
    Hardware = new Hardware(),
};
// Make the request
Operation<Hardware, OperationMetadata> response = gDCHardwareManagementClient.CreateHardware(request);

// Poll until the returned long-running operation is complete
Operation<Hardware, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Hardware 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<Hardware, OperationMetadata> retrievedResponse = gDCHardwareManagementClient.PollOnceCreateHardware(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Hardware retrievedResult = retrievedResponse.Result;
}

CreateHardware(string, Hardware, string, CallSettings)

public virtual Operation<Hardware, OperationMetadata> CreateHardware(string parent, Hardware hardware, string hardwareId, CallSettings callSettings = null)

Creates new hardware in a given project and location.

Parameters
Name Description
parent string

Required. The project and location to create hardware in. Format: projects/{project}/locations/{location}

hardware Hardware

Required. The resource to create.

hardwareId string

Optional. ID used to uniquely identify the Hardware within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The hardware.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationHardwareOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Hardware hardware = new Hardware();
string hardwareId = "";
// Make the request
Operation<Hardware, OperationMetadata> response = gDCHardwareManagementClient.CreateHardware(parent, hardware, hardwareId);

// Poll until the returned long-running operation is complete
Operation<Hardware, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Hardware 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<Hardware, OperationMetadata> retrievedResponse = gDCHardwareManagementClient.PollOnceCreateHardware(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Hardware retrievedResult = retrievedResponse.Result;
}

CreateHardwareAsync(LocationName, Hardware, string, CallSettings)

public virtual Task<Operation<Hardware, OperationMetadata>> CreateHardwareAsync(LocationName parent, Hardware hardware, string hardwareId, CallSettings callSettings = null)

Creates new hardware in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location to create hardware in. Format: projects/{project}/locations/{location}

hardware Hardware

Required. The resource to create.

hardwareId string

Optional. ID used to uniquely identify the Hardware within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The hardware.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationHardwareOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Hardware hardware = new Hardware();
string hardwareId = "";
// Make the request
Operation<Hardware, OperationMetadata> response = await gDCHardwareManagementClient.CreateHardwareAsync(parent, hardware, hardwareId);

// Poll until the returned long-running operation is complete
Operation<Hardware, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Hardware 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<Hardware, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateHardwareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Hardware retrievedResult = retrievedResponse.Result;
}

CreateHardwareAsync(LocationName, Hardware, string, CancellationToken)

public virtual Task<Operation<Hardware, OperationMetadata>> CreateHardwareAsync(LocationName parent, Hardware hardware, string hardwareId, CancellationToken cancellationToken)

Creates new hardware in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location to create hardware in. Format: projects/{project}/locations/{location}

hardware Hardware

Required. The resource to create.

hardwareId string

Optional. ID used to uniquely identify the Hardware within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The hardware.name field in the request will be ignored.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationHardwareOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Hardware hardware = new Hardware();
string hardwareId = "";
// Make the request
Operation<Hardware, OperationMetadata> response = await gDCHardwareManagementClient.CreateHardwareAsync(parent, hardware, hardwareId);

// Poll until the returned long-running operation is complete
Operation<Hardware, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Hardware 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<Hardware, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateHardwareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Hardware retrievedResult = retrievedResponse.Result;
}

CreateHardwareAsync(CreateHardwareRequest, CallSettings)

public virtual Task<Operation<Hardware, OperationMetadata>> CreateHardwareAsync(CreateHardwareRequest request, CallSettings callSettings = null)

Creates new hardware in a given project and location.

Parameters
Name Description
request CreateHardwareRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationHardwareOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
CreateHardwareRequest request = new CreateHardwareRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    HardwareId = "",
    Hardware = new Hardware(),
};
// Make the request
Operation<Hardware, OperationMetadata> response = await gDCHardwareManagementClient.CreateHardwareAsync(request);

// Poll until the returned long-running operation is complete
Operation<Hardware, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Hardware 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<Hardware, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateHardwareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Hardware retrievedResult = retrievedResponse.Result;
}

CreateHardwareAsync(CreateHardwareRequest, CancellationToken)

public virtual Task<Operation<Hardware, OperationMetadata>> CreateHardwareAsync(CreateHardwareRequest request, CancellationToken cancellationToken)

Creates new hardware in a given project and location.

Parameters
Name Description
request CreateHardwareRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationHardwareOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
CreateHardwareRequest request = new CreateHardwareRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    HardwareId = "",
    Hardware = new Hardware(),
};
// Make the request
Operation<Hardware, OperationMetadata> response = await gDCHardwareManagementClient.CreateHardwareAsync(request);

// Poll until the returned long-running operation is complete
Operation<Hardware, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Hardware 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<Hardware, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateHardwareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Hardware retrievedResult = retrievedResponse.Result;
}

CreateHardwareAsync(string, Hardware, string, CallSettings)

public virtual Task<Operation<Hardware, OperationMetadata>> CreateHardwareAsync(string parent, Hardware hardware, string hardwareId, CallSettings callSettings = null)

Creates new hardware in a given project and location.

Parameters
Name Description
parent string

Required. The project and location to create hardware in. Format: projects/{project}/locations/{location}

hardware Hardware

Required. The resource to create.

hardwareId string

Optional. ID used to uniquely identify the Hardware within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The hardware.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationHardwareOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Hardware hardware = new Hardware();
string hardwareId = "";
// Make the request
Operation<Hardware, OperationMetadata> response = await gDCHardwareManagementClient.CreateHardwareAsync(parent, hardware, hardwareId);

// Poll until the returned long-running operation is complete
Operation<Hardware, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Hardware 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<Hardware, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateHardwareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Hardware retrievedResult = retrievedResponse.Result;
}

CreateHardwareAsync(string, Hardware, string, CancellationToken)

public virtual Task<Operation<Hardware, OperationMetadata>> CreateHardwareAsync(string parent, Hardware hardware, string hardwareId, CancellationToken cancellationToken)

Creates new hardware in a given project and location.

Parameters
Name Description
parent string

Required. The project and location to create hardware in. Format: projects/{project}/locations/{location}

hardware Hardware

Required. The resource to create.

hardwareId string

Optional. ID used to uniquely identify the Hardware within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The hardware.name field in the request will be ignored.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationHardwareOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Hardware hardware = new Hardware();
string hardwareId = "";
// Make the request
Operation<Hardware, OperationMetadata> response = await gDCHardwareManagementClient.CreateHardwareAsync(parent, hardware, hardwareId);

// Poll until the returned long-running operation is complete
Operation<Hardware, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Hardware 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<Hardware, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateHardwareAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Hardware retrievedResult = retrievedResponse.Result;
}

CreateHardwareGroup(CreateHardwareGroupRequest, CallSettings)

public virtual Operation<HardwareGroup, OperationMetadata> CreateHardwareGroup(CreateHardwareGroupRequest request, CallSettings callSettings = null)

Creates a new hardware group in a given order.

Parameters
Name Description
request CreateHardwareGroupRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationHardwareGroupOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
CreateHardwareGroupRequest request = new CreateHardwareGroupRequest
{
    ParentAsOrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
    HardwareGroupId = "",
    HardwareGroup = new HardwareGroup(),
    RequestId = "",
};
// Make the request
Operation<HardwareGroup, OperationMetadata> response = gDCHardwareManagementClient.CreateHardwareGroup(request);

// Poll until the returned long-running operation is complete
Operation<HardwareGroup, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
HardwareGroup 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<HardwareGroup, OperationMetadata> retrievedResponse = gDCHardwareManagementClient.PollOnceCreateHardwareGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    HardwareGroup retrievedResult = retrievedResponse.Result;
}

CreateHardwareGroup(OrderName, HardwareGroup, string, CallSettings)

public virtual Operation<HardwareGroup, OperationMetadata> CreateHardwareGroup(OrderName parent, HardwareGroup hardwareGroup, string hardwareGroupId, CallSettings callSettings = null)

Creates a new hardware group in a given order.

Parameters
Name Description
parent OrderName

Required. The order to create the hardware group in. Format: projects/{project}/locations/{location}/orders/{order}

hardwareGroup HardwareGroup

Required. The hardware group to create.

hardwareGroupId string

Optional. ID used to uniquely identify the HardwareGroup within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The hardware_group.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationHardwareGroupOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
OrderName parent = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
HardwareGroup hardwareGroup = new HardwareGroup();
string hardwareGroupId = "";
// Make the request
Operation<HardwareGroup, OperationMetadata> response = gDCHardwareManagementClient.CreateHardwareGroup(parent, hardwareGroup, hardwareGroupId);

// Poll until the returned long-running operation is complete
Operation<HardwareGroup, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
HardwareGroup 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<HardwareGroup, OperationMetadata> retrievedResponse = gDCHardwareManagementClient.PollOnceCreateHardwareGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    HardwareGroup retrievedResult = retrievedResponse.Result;
}

CreateHardwareGroup(string, HardwareGroup, string, CallSettings)

public virtual Operation<HardwareGroup, OperationMetadata> CreateHardwareGroup(string parent, HardwareGroup hardwareGroup, string hardwareGroupId, CallSettings callSettings = null)

Creates a new hardware group in a given order.

Parameters
Name Description
parent string

Required. The order to create the hardware group in. Format: projects/{project}/locations/{location}/orders/{order}

hardwareGroup HardwareGroup

Required. The hardware group to create.

hardwareGroupId string

Optional. ID used to uniquely identify the HardwareGroup within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The hardware_group.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationHardwareGroupOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]";
HardwareGroup hardwareGroup = new HardwareGroup();
string hardwareGroupId = "";
// Make the request
Operation<HardwareGroup, OperationMetadata> response = gDCHardwareManagementClient.CreateHardwareGroup(parent, hardwareGroup, hardwareGroupId);

// Poll until the returned long-running operation is complete
Operation<HardwareGroup, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
HardwareGroup 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<HardwareGroup, OperationMetadata> retrievedResponse = gDCHardwareManagementClient.PollOnceCreateHardwareGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    HardwareGroup retrievedResult = retrievedResponse.Result;
}

CreateHardwareGroupAsync(CreateHardwareGroupRequest, CallSettings)

public virtual Task<Operation<HardwareGroup, OperationMetadata>> CreateHardwareGroupAsync(CreateHardwareGroupRequest request, CallSettings callSettings = null)

Creates a new hardware group in a given order.

Parameters
Name Description
request CreateHardwareGroupRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationHardwareGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
CreateHardwareGroupRequest request = new CreateHardwareGroupRequest
{
    ParentAsOrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
    HardwareGroupId = "",
    HardwareGroup = new HardwareGroup(),
    RequestId = "",
};
// Make the request
Operation<HardwareGroup, OperationMetadata> response = await gDCHardwareManagementClient.CreateHardwareGroupAsync(request);

// Poll until the returned long-running operation is complete
Operation<HardwareGroup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
HardwareGroup 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<HardwareGroup, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateHardwareGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    HardwareGroup retrievedResult = retrievedResponse.Result;
}

CreateHardwareGroupAsync(CreateHardwareGroupRequest, CancellationToken)

public virtual Task<Operation<HardwareGroup, OperationMetadata>> CreateHardwareGroupAsync(CreateHardwareGroupRequest request, CancellationToken cancellationToken)

Creates a new hardware group in a given order.

Parameters
Name Description
request CreateHardwareGroupRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationHardwareGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
CreateHardwareGroupRequest request = new CreateHardwareGroupRequest
{
    ParentAsOrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
    HardwareGroupId = "",
    HardwareGroup = new HardwareGroup(),
    RequestId = "",
};
// Make the request
Operation<HardwareGroup, OperationMetadata> response = await gDCHardwareManagementClient.CreateHardwareGroupAsync(request);

// Poll until the returned long-running operation is complete
Operation<HardwareGroup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
HardwareGroup 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<HardwareGroup, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateHardwareGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    HardwareGroup retrievedResult = retrievedResponse.Result;
}

CreateHardwareGroupAsync(OrderName, HardwareGroup, string, CallSettings)

public virtual Task<Operation<HardwareGroup, OperationMetadata>> CreateHardwareGroupAsync(OrderName parent, HardwareGroup hardwareGroup, string hardwareGroupId, CallSettings callSettings = null)

Creates a new hardware group in a given order.

Parameters
Name Description
parent OrderName

Required. The order to create the hardware group in. Format: projects/{project}/locations/{location}/orders/{order}

hardwareGroup HardwareGroup

Required. The hardware group to create.

hardwareGroupId string

Optional. ID used to uniquely identify the HardwareGroup within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The hardware_group.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationHardwareGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
OrderName parent = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
HardwareGroup hardwareGroup = new HardwareGroup();
string hardwareGroupId = "";
// Make the request
Operation<HardwareGroup, OperationMetadata> response = await gDCHardwareManagementClient.CreateHardwareGroupAsync(parent, hardwareGroup, hardwareGroupId);

// Poll until the returned long-running operation is complete
Operation<HardwareGroup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
HardwareGroup 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<HardwareGroup, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateHardwareGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    HardwareGroup retrievedResult = retrievedResponse.Result;
}

CreateHardwareGroupAsync(OrderName, HardwareGroup, string, CancellationToken)

public virtual Task<Operation<HardwareGroup, OperationMetadata>> CreateHardwareGroupAsync(OrderName parent, HardwareGroup hardwareGroup, string hardwareGroupId, CancellationToken cancellationToken)

Creates a new hardware group in a given order.

Parameters
Name Description
parent OrderName

Required. The order to create the hardware group in. Format: projects/{project}/locations/{location}/orders/{order}

hardwareGroup HardwareGroup

Required. The hardware group to create.

hardwareGroupId string

Optional. ID used to uniquely identify the HardwareGroup within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The hardware_group.name field in the request will be ignored.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationHardwareGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
OrderName parent = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
HardwareGroup hardwareGroup = new HardwareGroup();
string hardwareGroupId = "";
// Make the request
Operation<HardwareGroup, OperationMetadata> response = await gDCHardwareManagementClient.CreateHardwareGroupAsync(parent, hardwareGroup, hardwareGroupId);

// Poll until the returned long-running operation is complete
Operation<HardwareGroup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
HardwareGroup 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<HardwareGroup, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateHardwareGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    HardwareGroup retrievedResult = retrievedResponse.Result;
}

CreateHardwareGroupAsync(string, HardwareGroup, string, CallSettings)

public virtual Task<Operation<HardwareGroup, OperationMetadata>> CreateHardwareGroupAsync(string parent, HardwareGroup hardwareGroup, string hardwareGroupId, CallSettings callSettings = null)

Creates a new hardware group in a given order.

Parameters
Name Description
parent string

Required. The order to create the hardware group in. Format: projects/{project}/locations/{location}/orders/{order}

hardwareGroup HardwareGroup

Required. The hardware group to create.

hardwareGroupId string

Optional. ID used to uniquely identify the HardwareGroup within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The hardware_group.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationHardwareGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]";
HardwareGroup hardwareGroup = new HardwareGroup();
string hardwareGroupId = "";
// Make the request
Operation<HardwareGroup, OperationMetadata> response = await gDCHardwareManagementClient.CreateHardwareGroupAsync(parent, hardwareGroup, hardwareGroupId);

// Poll until the returned long-running operation is complete
Operation<HardwareGroup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
HardwareGroup 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<HardwareGroup, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateHardwareGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    HardwareGroup retrievedResult = retrievedResponse.Result;
}

CreateHardwareGroupAsync(string, HardwareGroup, string, CancellationToken)

public virtual Task<Operation<HardwareGroup, OperationMetadata>> CreateHardwareGroupAsync(string parent, HardwareGroup hardwareGroup, string hardwareGroupId, CancellationToken cancellationToken)

Creates a new hardware group in a given order.

Parameters
Name Description
parent string

Required. The order to create the hardware group in. Format: projects/{project}/locations/{location}/orders/{order}

hardwareGroup HardwareGroup

Required. The hardware group to create.

hardwareGroupId string

Optional. ID used to uniquely identify the HardwareGroup within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The hardware_group.name field in the request will be ignored.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationHardwareGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]";
HardwareGroup hardwareGroup = new HardwareGroup();
string hardwareGroupId = "";
// Make the request
Operation<HardwareGroup, OperationMetadata> response = await gDCHardwareManagementClient.CreateHardwareGroupAsync(parent, hardwareGroup, hardwareGroupId);

// Poll until the returned long-running operation is complete
Operation<HardwareGroup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
HardwareGroup 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<HardwareGroup, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateHardwareGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    HardwareGroup retrievedResult = retrievedResponse.Result;
}

CreateOrder(LocationName, Order, string, CallSettings)

public virtual Operation<Order, OperationMetadata> CreateOrder(LocationName parent, Order order, string orderId, CallSettings callSettings = null)

Creates a new order in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location to create the order in. Format: projects/{project}/locations/{location}

order Order

Required. The order to create.

orderId string

Optional. ID used to uniquely identify the Order within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The order.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOrderOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Order order = new Order();
string orderId = "";
// Make the request
Operation<Order, OperationMetadata> response = gDCHardwareManagementClient.CreateOrder(parent, order, orderId);

// Poll until the returned long-running operation is complete
Operation<Order, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Order 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<Order, OperationMetadata> retrievedResponse = gDCHardwareManagementClient.PollOnceCreateOrder(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Order retrievedResult = retrievedResponse.Result;
}

CreateOrder(CreateOrderRequest, CallSettings)

public virtual Operation<Order, OperationMetadata> CreateOrder(CreateOrderRequest request, CallSettings callSettings = null)

Creates a new order in a given project and location.

Parameters
Name Description
request CreateOrderRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOrderOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
CreateOrderRequest request = new CreateOrderRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    OrderId = "",
    Order = new Order(),
    RequestId = "",
};
// Make the request
Operation<Order, OperationMetadata> response = gDCHardwareManagementClient.CreateOrder(request);

// Poll until the returned long-running operation is complete
Operation<Order, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Order 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<Order, OperationMetadata> retrievedResponse = gDCHardwareManagementClient.PollOnceCreateOrder(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Order retrievedResult = retrievedResponse.Result;
}

CreateOrder(string, Order, string, CallSettings)

public virtual Operation<Order, OperationMetadata> CreateOrder(string parent, Order order, string orderId, CallSettings callSettings = null)

Creates a new order in a given project and location.

Parameters
Name Description
parent string

Required. The project and location to create the order in. Format: projects/{project}/locations/{location}

order Order

Required. The order to create.

orderId string

Optional. ID used to uniquely identify the Order within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The order.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOrderOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Order order = new Order();
string orderId = "";
// Make the request
Operation<Order, OperationMetadata> response = gDCHardwareManagementClient.CreateOrder(parent, order, orderId);

// Poll until the returned long-running operation is complete
Operation<Order, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Order 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<Order, OperationMetadata> retrievedResponse = gDCHardwareManagementClient.PollOnceCreateOrder(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Order retrievedResult = retrievedResponse.Result;
}

CreateOrderAsync(LocationName, Order, string, CallSettings)

public virtual Task<Operation<Order, OperationMetadata>> CreateOrderAsync(LocationName parent, Order order, string orderId, CallSettings callSettings = null)

Creates a new order in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location to create the order in. Format: projects/{project}/locations/{location}

order Order

Required. The order to create.

orderId string

Optional. ID used to uniquely identify the Order within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The order.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOrderOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Order order = new Order();
string orderId = "";
// Make the request
Operation<Order, OperationMetadata> response = await gDCHardwareManagementClient.CreateOrderAsync(parent, order, orderId);

// Poll until the returned long-running operation is complete
Operation<Order, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Order 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<Order, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateOrderAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Order retrievedResult = retrievedResponse.Result;
}

CreateOrderAsync(LocationName, Order, string, CancellationToken)

public virtual Task<Operation<Order, OperationMetadata>> CreateOrderAsync(LocationName parent, Order order, string orderId, CancellationToken cancellationToken)

Creates a new order in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location to create the order in. Format: projects/{project}/locations/{location}

order Order

Required. The order to create.

orderId string

Optional. ID used to uniquely identify the Order within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The order.name field in the request will be ignored.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationOrderOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Order order = new Order();
string orderId = "";
// Make the request
Operation<Order, OperationMetadata> response = await gDCHardwareManagementClient.CreateOrderAsync(parent, order, orderId);

// Poll until the returned long-running operation is complete
Operation<Order, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Order 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<Order, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateOrderAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Order retrievedResult = retrievedResponse.Result;
}

CreateOrderAsync(CreateOrderRequest, CallSettings)

public virtual Task<Operation<Order, OperationMetadata>> CreateOrderAsync(CreateOrderRequest request, CallSettings callSettings = null)

Creates a new order in a given project and location.

Parameters
Name Description
request CreateOrderRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOrderOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
CreateOrderRequest request = new CreateOrderRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    OrderId = "",
    Order = new Order(),
    RequestId = "",
};
// Make the request
Operation<Order, OperationMetadata> response = await gDCHardwareManagementClient.CreateOrderAsync(request);

// Poll until the returned long-running operation is complete
Operation<Order, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Order 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<Order, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateOrderAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Order retrievedResult = retrievedResponse.Result;
}

CreateOrderAsync(CreateOrderRequest, CancellationToken)

public virtual Task<Operation<Order, OperationMetadata>> CreateOrderAsync(CreateOrderRequest request, CancellationToken cancellationToken)

Creates a new order in a given project and location.

Parameters
Name Description
request CreateOrderRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationOrderOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
CreateOrderRequest request = new CreateOrderRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    OrderId = "",
    Order = new Order(),
    RequestId = "",
};
// Make the request
Operation<Order, OperationMetadata> response = await gDCHardwareManagementClient.CreateOrderAsync(request);

// Poll until the returned long-running operation is complete
Operation<Order, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Order 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<Order, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateOrderAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Order retrievedResult = retrievedResponse.Result;
}

CreateOrderAsync(string, Order, string, CallSettings)

public virtual Task<Operation<Order, OperationMetadata>> CreateOrderAsync(string parent, Order order, string orderId, CallSettings callSettings = null)

Creates a new order in a given project and location.

Parameters
Name Description
parent string

Required. The project and location to create the order in. Format: projects/{project}/locations/{location}

order Order

Required. The order to create.

orderId string

Optional. ID used to uniquely identify the Order within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The order.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOrderOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Order order = new Order();
string orderId = "";
// Make the request
Operation<Order, OperationMetadata> response = await gDCHardwareManagementClient.CreateOrderAsync(parent, order, orderId);

// Poll until the returned long-running operation is complete
Operation<Order, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Order 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<Order, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateOrderAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Order retrievedResult = retrievedResponse.Result;
}

CreateOrderAsync(string, Order, string, CancellationToken)

public virtual Task<Operation<Order, OperationMetadata>> CreateOrderAsync(string parent, Order order, string orderId, CancellationToken cancellationToken)

Creates a new order in a given project and location.

Parameters
Name Description
parent string

Required. The project and location to create the order in. Format: projects/{project}/locations/{location}

order Order

Required. The order to create.

orderId string

Optional. ID used to uniquely identify the Order within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The order.name field in the request will be ignored.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationOrderOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Order order = new Order();
string orderId = "";
// Make the request
Operation<Order, OperationMetadata> response = await gDCHardwareManagementClient.CreateOrderAsync(parent, order, orderId);

// Poll until the returned long-running operation is complete
Operation<Order, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Order 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<Order, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateOrderAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Order retrievedResult = retrievedResponse.Result;
}

CreateSite(LocationName, Site, string, CallSettings)

public virtual Operation<Site, OperationMetadata> CreateSite(LocationName parent, Site site, string siteId, CallSettings callSettings = null)

Creates a new site in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location to create the site in. Format: projects/{project}/locations/{location}

site Site

Required. The site to create.

siteId string

Optional. ID used to uniquely identify the Site within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The site.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSiteOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Site site = new Site();
string siteId = "";
// Make the request
Operation<Site, OperationMetadata> response = gDCHardwareManagementClient.CreateSite(parent, site, siteId);

// Poll until the returned long-running operation is complete
Operation<Site, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Site 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<Site, OperationMetadata> retrievedResponse = gDCHardwareManagementClient.PollOnceCreateSite(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Site retrievedResult = retrievedResponse.Result;
}

CreateSite(CreateSiteRequest, CallSettings)

public virtual Operation<Site, OperationMetadata> CreateSite(CreateSiteRequest request, CallSettings callSettings = null)

Creates a new site in a given project and location.

Parameters
Name Description
request CreateSiteRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSiteOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
CreateSiteRequest request = new CreateSiteRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SiteId = "",
    Site = new Site(),
    RequestId = "",
};
// Make the request
Operation<Site, OperationMetadata> response = gDCHardwareManagementClient.CreateSite(request);

// Poll until the returned long-running operation is complete
Operation<Site, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Site 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<Site, OperationMetadata> retrievedResponse = gDCHardwareManagementClient.PollOnceCreateSite(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Site retrievedResult = retrievedResponse.Result;
}

CreateSite(string, Site, string, CallSettings)

public virtual Operation<Site, OperationMetadata> CreateSite(string parent, Site site, string siteId, CallSettings callSettings = null)

Creates a new site in a given project and location.

Parameters
Name Description
parent string

Required. The project and location to create the site in. Format: projects/{project}/locations/{location}

site Site

Required. The site to create.

siteId string

Optional. ID used to uniquely identify the Site within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The site.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSiteOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Site site = new Site();
string siteId = "";
// Make the request
Operation<Site, OperationMetadata> response = gDCHardwareManagementClient.CreateSite(parent, site, siteId);

// Poll until the returned long-running operation is complete
Operation<Site, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Site 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<Site, OperationMetadata> retrievedResponse = gDCHardwareManagementClient.PollOnceCreateSite(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Site retrievedResult = retrievedResponse.Result;
}

CreateSiteAsync(LocationName, Site, string, CallSettings)

public virtual Task<Operation<Site, OperationMetadata>> CreateSiteAsync(LocationName parent, Site site, string siteId, CallSettings callSettings = null)

Creates a new site in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location to create the site in. Format: projects/{project}/locations/{location}

site Site

Required. The site to create.

siteId string

Optional. ID used to uniquely identify the Site within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The site.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSiteOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Site site = new Site();
string siteId = "";
// Make the request
Operation<Site, OperationMetadata> response = await gDCHardwareManagementClient.CreateSiteAsync(parent, site, siteId);

// Poll until the returned long-running operation is complete
Operation<Site, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Site 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<Site, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateSiteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Site retrievedResult = retrievedResponse.Result;
}

CreateSiteAsync(LocationName, Site, string, CancellationToken)

public virtual Task<Operation<Site, OperationMetadata>> CreateSiteAsync(LocationName parent, Site site, string siteId, CancellationToken cancellationToken)

Creates a new site in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location to create the site in. Format: projects/{project}/locations/{location}

site Site

Required. The site to create.

siteId string

Optional. ID used to uniquely identify the Site within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The site.name field in the request will be ignored.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSiteOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Site site = new Site();
string siteId = "";
// Make the request
Operation<Site, OperationMetadata> response = await gDCHardwareManagementClient.CreateSiteAsync(parent, site, siteId);

// Poll until the returned long-running operation is complete
Operation<Site, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Site 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<Site, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateSiteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Site retrievedResult = retrievedResponse.Result;
}

CreateSiteAsync(CreateSiteRequest, CallSettings)

public virtual Task<Operation<Site, OperationMetadata>> CreateSiteAsync(CreateSiteRequest request, CallSettings callSettings = null)

Creates a new site in a given project and location.

Parameters
Name Description
request CreateSiteRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSiteOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
CreateSiteRequest request = new CreateSiteRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SiteId = "",
    Site = new Site(),
    RequestId = "",
};
// Make the request
Operation<Site, OperationMetadata> response = await gDCHardwareManagementClient.CreateSiteAsync(request);

// Poll until the returned long-running operation is complete
Operation<Site, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Site 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<Site, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateSiteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Site retrievedResult = retrievedResponse.Result;
}

CreateSiteAsync(CreateSiteRequest, CancellationToken)

public virtual Task<Operation<Site, OperationMetadata>> CreateSiteAsync(CreateSiteRequest request, CancellationToken cancellationToken)

Creates a new site in a given project and location.

Parameters
Name Description
request CreateSiteRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSiteOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
CreateSiteRequest request = new CreateSiteRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SiteId = "",
    Site = new Site(),
    RequestId = "",
};
// Make the request
Operation<Site, OperationMetadata> response = await gDCHardwareManagementClient.CreateSiteAsync(request);

// Poll until the returned long-running operation is complete
Operation<Site, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Site 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<Site, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateSiteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Site retrievedResult = retrievedResponse.Result;
}

CreateSiteAsync(string, Site, string, CallSettings)

public virtual Task<Operation<Site, OperationMetadata>> CreateSiteAsync(string parent, Site site, string siteId, CallSettings callSettings = null)

Creates a new site in a given project and location.

Parameters
Name Description
parent string

Required. The project and location to create the site in. Format: projects/{project}/locations/{location}

site Site

Required. The site to create.

siteId string

Optional. ID used to uniquely identify the Site within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The site.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSiteOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Site site = new Site();
string siteId = "";
// Make the request
Operation<Site, OperationMetadata> response = await gDCHardwareManagementClient.CreateSiteAsync(parent, site, siteId);

// Poll until the returned long-running operation is complete
Operation<Site, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Site 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<Site, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateSiteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Site retrievedResult = retrievedResponse.Result;
}

CreateSiteAsync(string, Site, string, CancellationToken)

public virtual Task<Operation<Site, OperationMetadata>> CreateSiteAsync(string parent, Site site, string siteId, CancellationToken cancellationToken)

Creates a new site in a given project and location.

Parameters
Name Description
parent string

Required. The project and location to create the site in. Format: projects/{project}/locations/{location}

site Site

Required. The site to create.

siteId string

Optional. ID used to uniquely identify the Site within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The site.name field in the request will be ignored.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSiteOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Site site = new Site();
string siteId = "";
// Make the request
Operation<Site, OperationMetadata> response = await gDCHardwareManagementClient.CreateSiteAsync(parent, site, siteId);

// Poll until the returned long-running operation is complete
Operation<Site, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Site 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<Site, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateSiteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Site retrievedResult = retrievedResponse.Result;
}

CreateZone(LocationName, Zone, string, CallSettings)

public virtual Operation<Zone, OperationMetadata> CreateZone(LocationName parent, Zone zone, string zoneId, CallSettings callSettings = null)

Creates a new zone in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location to create the zone in. Format: projects/{project}/locations/{location}

zone Zone

Required. The zone to create.

zoneId string

Optional. ID used to uniquely identify the Zone within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The zone.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationZoneOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Zone zone = new Zone();
string zoneId = "";
// Make the request
Operation<Zone, OperationMetadata> response = gDCHardwareManagementClient.CreateZone(parent, zone, zoneId);

// Poll until the returned long-running operation is complete
Operation<Zone, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Zone 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<Zone, OperationMetadata> retrievedResponse = gDCHardwareManagementClient.PollOnceCreateZone(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Zone retrievedResult = retrievedResponse.Result;
}

CreateZone(CreateZoneRequest, CallSettings)

public virtual Operation<Zone, OperationMetadata> CreateZone(CreateZoneRequest request, CallSettings callSettings = null)

Creates a new zone in a given project and location.

Parameters
Name Description
request CreateZoneRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationZoneOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
CreateZoneRequest request = new CreateZoneRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ZoneId = "",
    Zone = new Zone(),
    RequestId = "",
};
// Make the request
Operation<Zone, OperationMetadata> response = gDCHardwareManagementClient.CreateZone(request);

// Poll until the returned long-running operation is complete
Operation<Zone, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Zone 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<Zone, OperationMetadata> retrievedResponse = gDCHardwareManagementClient.PollOnceCreateZone(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Zone retrievedResult = retrievedResponse.Result;
}

CreateZone(string, Zone, string, CallSettings)

public virtual Operation<Zone, OperationMetadata> CreateZone(string parent, Zone zone, string zoneId, CallSettings callSettings = null)

Creates a new zone in a given project and location.

Parameters
Name Description
parent string

Required. The project and location to create the zone in. Format: projects/{project}/locations/{location}

zone Zone

Required. The zone to create.

zoneId string

Optional. ID used to uniquely identify the Zone within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The zone.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationZoneOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Zone zone = new Zone();
string zoneId = "";
// Make the request
Operation<Zone, OperationMetadata> response = gDCHardwareManagementClient.CreateZone(parent, zone, zoneId);

// Poll until the returned long-running operation is complete
Operation<Zone, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Zone 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<Zone, OperationMetadata> retrievedResponse = gDCHardwareManagementClient.PollOnceCreateZone(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Zone retrievedResult = retrievedResponse.Result;
}

CreateZoneAsync(LocationName, Zone, string, CallSettings)

public virtual Task<Operation<Zone, OperationMetadata>> CreateZoneAsync(LocationName parent, Zone zone, string zoneId, CallSettings callSettings = null)

Creates a new zone in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location to create the zone in. Format: projects/{project}/locations/{location}

zone Zone

Required. The zone to create.

zoneId string

Optional. ID used to uniquely identify the Zone within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The zone.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationZoneOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Zone zone = new Zone();
string zoneId = "";
// Make the request
Operation<Zone, OperationMetadata> response = await gDCHardwareManagementClient.CreateZoneAsync(parent, zone, zoneId);

// Poll until the returned long-running operation is complete
Operation<Zone, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Zone 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<Zone, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateZoneAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Zone retrievedResult = retrievedResponse.Result;
}

CreateZoneAsync(LocationName, Zone, string, CancellationToken)

public virtual Task<Operation<Zone, OperationMetadata>> CreateZoneAsync(LocationName parent, Zone zone, string zoneId, CancellationToken cancellationToken)

Creates a new zone in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location to create the zone in. Format: projects/{project}/locations/{location}

zone Zone

Required. The zone to create.

zoneId string

Optional. ID used to uniquely identify the Zone within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The zone.name field in the request will be ignored.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationZoneOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Zone zone = new Zone();
string zoneId = "";
// Make the request
Operation<Zone, OperationMetadata> response = await gDCHardwareManagementClient.CreateZoneAsync(parent, zone, zoneId);

// Poll until the returned long-running operation is complete
Operation<Zone, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Zone 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<Zone, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateZoneAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Zone retrievedResult = retrievedResponse.Result;
}

CreateZoneAsync(CreateZoneRequest, CallSettings)

public virtual Task<Operation<Zone, OperationMetadata>> CreateZoneAsync(CreateZoneRequest request, CallSettings callSettings = null)

Creates a new zone in a given project and location.

Parameters
Name Description
request CreateZoneRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationZoneOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
CreateZoneRequest request = new CreateZoneRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ZoneId = "",
    Zone = new Zone(),
    RequestId = "",
};
// Make the request
Operation<Zone, OperationMetadata> response = await gDCHardwareManagementClient.CreateZoneAsync(request);

// Poll until the returned long-running operation is complete
Operation<Zone, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Zone 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<Zone, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateZoneAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Zone retrievedResult = retrievedResponse.Result;
}

CreateZoneAsync(CreateZoneRequest, CancellationToken)

public virtual Task<Operation<Zone, OperationMetadata>> CreateZoneAsync(CreateZoneRequest request, CancellationToken cancellationToken)

Creates a new zone in a given project and location.

Parameters
Name Description
request CreateZoneRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationZoneOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
CreateZoneRequest request = new CreateZoneRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ZoneId = "",
    Zone = new Zone(),
    RequestId = "",
};
// Make the request
Operation<Zone, OperationMetadata> response = await gDCHardwareManagementClient.CreateZoneAsync(request);

// Poll until the returned long-running operation is complete
Operation<Zone, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Zone 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<Zone, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateZoneAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Zone retrievedResult = retrievedResponse.Result;
}

CreateZoneAsync(string, Zone, string, CallSettings)

public virtual Task<Operation<Zone, OperationMetadata>> CreateZoneAsync(string parent, Zone zone, string zoneId, CallSettings callSettings = null)

Creates a new zone in a given project and location.

Parameters
Name Description
parent string

Required. The project and location to create the zone in. Format: projects/{project}/locations/{location}

zone Zone

Required. The zone to create.

zoneId string

Optional. ID used to uniquely identify the Zone within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The zone.name field in the request will be ignored.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationZoneOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Zone zone = new Zone();
string zoneId = "";
// Make the request
Operation<Zone, OperationMetadata> response = await gDCHardwareManagementClient.CreateZoneAsync(parent, zone, zoneId);

// Poll until the returned long-running operation is complete
Operation<Zone, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Zone 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<Zone, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateZoneAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Zone retrievedResult = retrievedResponse.Result;
}

CreateZoneAsync(string, Zone, string, CancellationToken)

public virtual Task<Operation<Zone, OperationMetadata>> CreateZoneAsync(string parent, Zone zone, string zoneId, CancellationToken cancellationToken)

Creates a new zone in a given project and location.

Parameters
Name Description
parent string

Required. The project and location to create the zone in. Format: projects/{project}/locations/{location}

zone Zone

Required. The zone to create.

zoneId string

Optional. ID used to uniquely identify the Zone within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The zone.name field in the request will be ignored.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationZoneOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Zone zone = new Zone();
string zoneId = "";
// Make the request
Operation<Zone, OperationMetadata> response = await gDCHardwareManagementClient.CreateZoneAsync(parent, zone, zoneId);

// Poll until the returned long-running operation is complete
Operation<Zone, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Zone 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<Zone, OperationMetadata> retrievedResponse = await gDCHardwareManagementClient.PollOnceCreateZoneAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Zone retrievedResult = retrievedResponse.Result;
}

DeleteHardware(DeleteHardwareRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteHardware(DeleteHardwareRequest request, CallSettings callSettings = null)

Deletes hardware.

Parameters
Name Description
request DeleteHardwareRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
DeleteHardwareRequest request = new DeleteHardwareRequest
{
    HardwareName = HardwareName.FromProjectLocationHardware("[PROJECT]", "[LOCATION]", "[HARDWARE]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = gDCHardwareManagementClient.DeleteHardware(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 = gDCHardwareManagementClient.PollOnceDeleteHardware(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;
}

DeleteHardware(HardwareName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteHardware(HardwareName name, CallSettings callSettings = null)

Deletes hardware.

Parameters
Name Description
name HardwareName

Required. The name of the hardware. Format: projects/{project}/locations/{location}/hardware/{hardware}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
HardwareName name = HardwareName.FromProjectLocationHardware("[PROJECT]", "[LOCATION]", "[HARDWARE]");
// Make the request
Operation<Empty, OperationMetadata> response = gDCHardwareManagementClient.DeleteHardware(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 = gDCHardwareManagementClient.PollOnceDeleteHardware(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;
}

DeleteHardware(string, CallSettings)

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

Deletes hardware.

Parameters
Name Description
name string

Required. The name of the hardware. Format: projects/{project}/locations/{location}/hardware/{hardware}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/hardware/[HARDWARE]";
// Make the request
Operation<Empty, OperationMetadata> response = gDCHardwareManagementClient.DeleteHardware(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 = gDCHardwareManagementClient.PollOnceDeleteHardware(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;
}

DeleteHardwareAsync(DeleteHardwareRequest, CallSettings)

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

Deletes hardware.

Parameters
Name Description
request DeleteHardwareRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
DeleteHardwareRequest request = new DeleteHardwareRequest
{
    HardwareName = HardwareName.FromProjectLocationHardware("[PROJECT]", "[LOCATION]", "[HARDWARE]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteHardwareAsync(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 gDCHardwareManagementClient.PollOnceDeleteHardwareAsync(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;
}

DeleteHardwareAsync(DeleteHardwareRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteHardwareAsync(DeleteHardwareRequest request, CancellationToken cancellationToken)

Deletes hardware.

Parameters
Name Description
request DeleteHardwareRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
DeleteHardwareRequest request = new DeleteHardwareRequest
{
    HardwareName = HardwareName.FromProjectLocationHardware("[PROJECT]", "[LOCATION]", "[HARDWARE]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteHardwareAsync(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 gDCHardwareManagementClient.PollOnceDeleteHardwareAsync(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;
}

DeleteHardwareAsync(HardwareName, CallSettings)

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

Deletes hardware.

Parameters
Name Description
name HardwareName

Required. The name of the hardware. Format: projects/{project}/locations/{location}/hardware/{hardware}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
HardwareName name = HardwareName.FromProjectLocationHardware("[PROJECT]", "[LOCATION]", "[HARDWARE]");
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteHardwareAsync(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 gDCHardwareManagementClient.PollOnceDeleteHardwareAsync(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;
}

DeleteHardwareAsync(HardwareName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteHardwareAsync(HardwareName name, CancellationToken cancellationToken)

Deletes hardware.

Parameters
Name Description
name HardwareName

Required. The name of the hardware. Format: projects/{project}/locations/{location}/hardware/{hardware}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
HardwareName name = HardwareName.FromProjectLocationHardware("[PROJECT]", "[LOCATION]", "[HARDWARE]");
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteHardwareAsync(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 gDCHardwareManagementClient.PollOnceDeleteHardwareAsync(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;
}

DeleteHardwareAsync(string, CallSettings)

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

Deletes hardware.

Parameters
Name Description
name string

Required. The name of the hardware. Format: projects/{project}/locations/{location}/hardware/{hardware}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/hardware/[HARDWARE]";
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteHardwareAsync(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 gDCHardwareManagementClient.PollOnceDeleteHardwareAsync(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;
}

DeleteHardwareAsync(string, CancellationToken)

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

Deletes hardware.

Parameters
Name Description
name string

Required. The name of the hardware. Format: projects/{project}/locations/{location}/hardware/{hardware}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/hardware/[HARDWARE]";
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteHardwareAsync(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 gDCHardwareManagementClient.PollOnceDeleteHardwareAsync(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;
}

DeleteHardwareGroup(DeleteHardwareGroupRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteHardwareGroup(DeleteHardwareGroupRequest request, CallSettings callSettings = null)

Deletes a hardware group.

Parameters
Name Description
request DeleteHardwareGroupRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
DeleteHardwareGroupRequest request = new DeleteHardwareGroupRequest
{
    HardwareGroupName = HardwareGroupName.FromProjectLocationOrderHardwareGroup("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = gDCHardwareManagementClient.DeleteHardwareGroup(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 = gDCHardwareManagementClient.PollOnceDeleteHardwareGroup(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;
}

DeleteHardwareGroup(HardwareGroupName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteHardwareGroup(HardwareGroupName name, CallSettings callSettings = null)

Deletes a hardware group.

Parameters
Name Description
name HardwareGroupName

Required. The name of the hardware group. Format: projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
HardwareGroupName name = HardwareGroupName.FromProjectLocationOrderHardwareGroup("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]");
// Make the request
Operation<Empty, OperationMetadata> response = gDCHardwareManagementClient.DeleteHardwareGroup(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 = gDCHardwareManagementClient.PollOnceDeleteHardwareGroup(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;
}

DeleteHardwareGroup(string, CallSettings)

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

Deletes a hardware group.

Parameters
Name Description
name string

Required. The name of the hardware group. Format: projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]/hardwareGroups/[HARDWARE_GROUP]";
// Make the request
Operation<Empty, OperationMetadata> response = gDCHardwareManagementClient.DeleteHardwareGroup(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 = gDCHardwareManagementClient.PollOnceDeleteHardwareGroup(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;
}

DeleteHardwareGroupAsync(DeleteHardwareGroupRequest, CallSettings)

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

Deletes a hardware group.

Parameters
Name Description
request DeleteHardwareGroupRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
DeleteHardwareGroupRequest request = new DeleteHardwareGroupRequest
{
    HardwareGroupName = HardwareGroupName.FromProjectLocationOrderHardwareGroup("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteHardwareGroupAsync(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 gDCHardwareManagementClient.PollOnceDeleteHardwareGroupAsync(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;
}

DeleteHardwareGroupAsync(DeleteHardwareGroupRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteHardwareGroupAsync(DeleteHardwareGroupRequest request, CancellationToken cancellationToken)

Deletes a hardware group.

Parameters
Name Description
request DeleteHardwareGroupRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
DeleteHardwareGroupRequest request = new DeleteHardwareGroupRequest
{
    HardwareGroupName = HardwareGroupName.FromProjectLocationOrderHardwareGroup("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteHardwareGroupAsync(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 gDCHardwareManagementClient.PollOnceDeleteHardwareGroupAsync(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;
}

DeleteHardwareGroupAsync(HardwareGroupName, CallSettings)

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

Deletes a hardware group.

Parameters
Name Description
name HardwareGroupName

Required. The name of the hardware group. Format: projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
HardwareGroupName name = HardwareGroupName.FromProjectLocationOrderHardwareGroup("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]");
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteHardwareGroupAsync(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 gDCHardwareManagementClient.PollOnceDeleteHardwareGroupAsync(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;
}

DeleteHardwareGroupAsync(HardwareGroupName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteHardwareGroupAsync(HardwareGroupName name, CancellationToken cancellationToken)

Deletes a hardware group.

Parameters
Name Description
name HardwareGroupName

Required. The name of the hardware group. Format: projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
HardwareGroupName name = HardwareGroupName.FromProjectLocationOrderHardwareGroup("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]");
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteHardwareGroupAsync(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 gDCHardwareManagementClient.PollOnceDeleteHardwareGroupAsync(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;
}

DeleteHardwareGroupAsync(string, CallSettings)

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

Deletes a hardware group.

Parameters
Name Description
name string

Required. The name of the hardware group. Format: projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]/hardwareGroups/[HARDWARE_GROUP]";
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteHardwareGroupAsync(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 gDCHardwareManagementClient.PollOnceDeleteHardwareGroupAsync(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;
}

DeleteHardwareGroupAsync(string, CancellationToken)

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

Deletes a hardware group.

Parameters
Name Description
name string

Required. The name of the hardware group. Format: projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]/hardwareGroups/[HARDWARE_GROUP]";
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteHardwareGroupAsync(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 gDCHardwareManagementClient.PollOnceDeleteHardwareGroupAsync(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;
}

DeleteOrder(DeleteOrderRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteOrder(DeleteOrderRequest request, CallSettings callSettings = null)

Deletes an order.

Parameters
Name Description
request DeleteOrderRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
DeleteOrderRequest request = new DeleteOrderRequest
{
    OrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = gDCHardwareManagementClient.DeleteOrder(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 = gDCHardwareManagementClient.PollOnceDeleteOrder(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;
}

DeleteOrder(OrderName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteOrder(OrderName name, CallSettings callSettings = null)

Deletes an order.

Parameters
Name Description
name OrderName

Required. The name of the order. Format: projects/{project}/locations/{location}/orders/{order}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
OrderName name = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
// Make the request
Operation<Empty, OperationMetadata> response = gDCHardwareManagementClient.DeleteOrder(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 = gDCHardwareManagementClient.PollOnceDeleteOrder(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;
}

DeleteOrder(string, CallSettings)

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

Deletes an order.

Parameters
Name Description
name string

Required. The name of the order. Format: projects/{project}/locations/{location}/orders/{order}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]";
// Make the request
Operation<Empty, OperationMetadata> response = gDCHardwareManagementClient.DeleteOrder(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 = gDCHardwareManagementClient.PollOnceDeleteOrder(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;
}

DeleteOrderAsync(DeleteOrderRequest, CallSettings)

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

Deletes an order.

Parameters
Name Description
request DeleteOrderRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
DeleteOrderRequest request = new DeleteOrderRequest
{
    OrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteOrderAsync(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 gDCHardwareManagementClient.PollOnceDeleteOrderAsync(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;
}

DeleteOrderAsync(DeleteOrderRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteOrderAsync(DeleteOrderRequest request, CancellationToken cancellationToken)

Deletes an order.

Parameters
Name Description
request DeleteOrderRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
DeleteOrderRequest request = new DeleteOrderRequest
{
    OrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteOrderAsync(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 gDCHardwareManagementClient.PollOnceDeleteOrderAsync(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;
}

DeleteOrderAsync(OrderName, CallSettings)

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

Deletes an order.

Parameters
Name Description
name OrderName

Required. The name of the order. Format: projects/{project}/locations/{location}/orders/{order}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
OrderName name = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteOrderAsync(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 gDCHardwareManagementClient.PollOnceDeleteOrderAsync(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;
}

DeleteOrderAsync(OrderName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteOrderAsync(OrderName name, CancellationToken cancellationToken)

Deletes an order.

Parameters
Name Description
name OrderName

Required. The name of the order. Format: projects/{project}/locations/{location}/orders/{order}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
OrderName name = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteOrderAsync(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 gDCHardwareManagementClient.PollOnceDeleteOrderAsync(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;
}

DeleteOrderAsync(string, CallSettings)

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

Deletes an order.

Parameters
Name Description
name string

Required. The name of the order. Format: projects/{project}/locations/{location}/orders/{order}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]";
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteOrderAsync(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 gDCHardwareManagementClient.PollOnceDeleteOrderAsync(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;
}

DeleteOrderAsync(string, CancellationToken)

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

Deletes an order.

Parameters
Name Description
name string

Required. The name of the order. Format: projects/{project}/locations/{location}/orders/{order}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]";
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteOrderAsync(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 gDCHardwareManagementClient.PollOnceDeleteOrderAsync(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;
}

DeleteZone(DeleteZoneRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteZone(DeleteZoneRequest request, CallSettings callSettings = null)

Deletes a zone.

Parameters
Name Description
request DeleteZoneRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
DeleteZoneRequest request = new DeleteZoneRequest
{
    ZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = gDCHardwareManagementClient.DeleteZone(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 = gDCHardwareManagementClient.PollOnceDeleteZone(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;
}

DeleteZone(ZoneName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteZone(ZoneName name, CallSettings callSettings = null)

Deletes a zone.

Parameters
Name Description
name ZoneName

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
ZoneName name = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
// Make the request
Operation<Empty, OperationMetadata> response = gDCHardwareManagementClient.DeleteZone(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 = gDCHardwareManagementClient.PollOnceDeleteZone(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;
}

DeleteZone(string, CallSettings)

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

Deletes a zone.

Parameters
Name Description
name string

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
// Make the request
Operation<Empty, OperationMetadata> response = gDCHardwareManagementClient.DeleteZone(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 = gDCHardwareManagementClient.PollOnceDeleteZone(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;
}

DeleteZoneAsync(DeleteZoneRequest, CallSettings)

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

Deletes a zone.

Parameters
Name Description
request DeleteZoneRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
DeleteZoneRequest request = new DeleteZoneRequest
{
    ZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteZoneAsync(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 gDCHardwareManagementClient.PollOnceDeleteZoneAsync(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;
}

DeleteZoneAsync(DeleteZoneRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteZoneAsync(DeleteZoneRequest request, CancellationToken cancellationToken)

Deletes a zone.

Parameters
Name Description
request DeleteZoneRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
DeleteZoneRequest request = new DeleteZoneRequest
{
    ZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteZoneAsync(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 gDCHardwareManagementClient.PollOnceDeleteZoneAsync(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;
}

DeleteZoneAsync(ZoneName, CallSettings)

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

Deletes a zone.

Parameters
Name Description
name ZoneName

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
ZoneName name = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteZoneAsync(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 gDCHardwareManagementClient.PollOnceDeleteZoneAsync(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;
}

DeleteZoneAsync(ZoneName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteZoneAsync(ZoneName name, CancellationToken cancellationToken)

Deletes a zone.

Parameters
Name Description
name ZoneName

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
ZoneName name = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteZoneAsync(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 gDCHardwareManagementClient.PollOnceDeleteZoneAsync(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;
}

DeleteZoneAsync(string, CallSettings)

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

Deletes a zone.

Parameters
Name Description
name string

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteZoneAsync(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 gDCHardwareManagementClient.PollOnceDeleteZoneAsync(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;
}

DeleteZoneAsync(string, CancellationToken)

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

Deletes a zone.

Parameters
Name Description
name string

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
// Make the request
Operation<Empty, OperationMetadata> response = await gDCHardwareManagementClient.DeleteZoneAsync(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 gDCHardwareManagementClient.PollOnceDeleteZoneAsync(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;
}

GetChangeLogEntry(ChangeLogEntryName, CallSettings)

public virtual ChangeLogEntry GetChangeLogEntry(ChangeLogEntryName name, CallSettings callSettings = null)

Gets details of a change to an order.

Parameters
Name Description
name ChangeLogEntryName

Required. The name of the change log entry. Format: projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ChangeLogEntry

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
ChangeLogEntryName name = ChangeLogEntryName.FromProjectLocationOrderChangeLogEntry("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]");
// Make the request
ChangeLogEntry response = gDCHardwareManagementClient.GetChangeLogEntry(name);

GetChangeLogEntry(GetChangeLogEntryRequest, CallSettings)

public virtual ChangeLogEntry GetChangeLogEntry(GetChangeLogEntryRequest request, CallSettings callSettings = null)

Gets details of a change to an order.

Parameters
Name Description
request GetChangeLogEntryRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ChangeLogEntry

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
GetChangeLogEntryRequest request = new GetChangeLogEntryRequest
{
    ChangeLogEntryName = ChangeLogEntryName.FromProjectLocationOrderChangeLogEntry("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]"),
};
// Make the request
ChangeLogEntry response = gDCHardwareManagementClient.GetChangeLogEntry(request);

GetChangeLogEntry(string, CallSettings)

public virtual ChangeLogEntry GetChangeLogEntry(string name, CallSettings callSettings = null)

Gets details of a change to an order.

Parameters
Name Description
name string

Required. The name of the change log entry. Format: projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ChangeLogEntry

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]/changeLogEntries/[CHANGE_LOG_ENTRY]";
// Make the request
ChangeLogEntry response = gDCHardwareManagementClient.GetChangeLogEntry(name);

GetChangeLogEntryAsync(ChangeLogEntryName, CallSettings)

public virtual Task<ChangeLogEntry> GetChangeLogEntryAsync(ChangeLogEntryName name, CallSettings callSettings = null)

Gets details of a change to an order.

Parameters
Name Description
name ChangeLogEntryName

Required. The name of the change log entry. Format: projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskChangeLogEntry

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
ChangeLogEntryName name = ChangeLogEntryName.FromProjectLocationOrderChangeLogEntry("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]");
// Make the request
ChangeLogEntry response = await gDCHardwareManagementClient.GetChangeLogEntryAsync(name);

GetChangeLogEntryAsync(ChangeLogEntryName, CancellationToken)

public virtual Task<ChangeLogEntry> GetChangeLogEntryAsync(ChangeLogEntryName name, CancellationToken cancellationToken)

Gets details of a change to an order.

Parameters
Name Description
name ChangeLogEntryName

Required. The name of the change log entry. Format: projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskChangeLogEntry

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
ChangeLogEntryName name = ChangeLogEntryName.FromProjectLocationOrderChangeLogEntry("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]");
// Make the request
ChangeLogEntry response = await gDCHardwareManagementClient.GetChangeLogEntryAsync(name);

GetChangeLogEntryAsync(GetChangeLogEntryRequest, CallSettings)

public virtual Task<ChangeLogEntry> GetChangeLogEntryAsync(GetChangeLogEntryRequest request, CallSettings callSettings = null)

Gets details of a change to an order.

Parameters
Name Description
request GetChangeLogEntryRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskChangeLogEntry

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
GetChangeLogEntryRequest request = new GetChangeLogEntryRequest
{
    ChangeLogEntryName = ChangeLogEntryName.FromProjectLocationOrderChangeLogEntry("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]"),
};
// Make the request
ChangeLogEntry response = await gDCHardwareManagementClient.GetChangeLogEntryAsync(request);

GetChangeLogEntryAsync(GetChangeLogEntryRequest, CancellationToken)

public virtual Task<ChangeLogEntry> GetChangeLogEntryAsync(GetChangeLogEntryRequest request, CancellationToken cancellationToken)

Gets details of a change to an order.

Parameters
Name Description
request GetChangeLogEntryRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskChangeLogEntry

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
GetChangeLogEntryRequest request = new GetChangeLogEntryRequest
{
    ChangeLogEntryName = ChangeLogEntryName.FromProjectLocationOrderChangeLogEntry("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]"),
};
// Make the request
ChangeLogEntry response = await gDCHardwareManagementClient.GetChangeLogEntryAsync(request);

GetChangeLogEntryAsync(string, CallSettings)

public virtual Task<ChangeLogEntry> GetChangeLogEntryAsync(string name, CallSettings callSettings = null)

Gets details of a change to an order.

Parameters
Name Description
name string

Required. The name of the change log entry. Format: projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskChangeLogEntry

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]/changeLogEntries/[CHANGE_LOG_ENTRY]";
// Make the request
ChangeLogEntry response = await gDCHardwareManagementClient.GetChangeLogEntryAsync(name);

GetChangeLogEntryAsync(string, CancellationToken)

public virtual Task<ChangeLogEntry> GetChangeLogEntryAsync(string name, CancellationToken cancellationToken)

Gets details of a change to an order.

Parameters
Name Description
name string

Required. The name of the change log entry. Format: projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskChangeLogEntry

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]/changeLogEntries/[CHANGE_LOG_ENTRY]";
// Make the request
ChangeLogEntry response = await gDCHardwareManagementClient.GetChangeLogEntryAsync(name);

GetComment(CommentName, CallSettings)

public virtual Comment GetComment(CommentName name, CallSettings callSettings = null)

Gets the content of a comment.

Parameters
Name Description
name CommentName

Required. The name of the comment. Format: projects/{project}/locations/{location}/orders/{order}/comments/{comment}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Comment

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
CommentName name = CommentName.FromProjectLocationOrderComment("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]");
// Make the request
Comment response = gDCHardwareManagementClient.GetComment(name);

GetComment(GetCommentRequest, CallSettings)

public virtual Comment GetComment(GetCommentRequest request, CallSettings callSettings = null)

Gets the content of a comment.

Parameters
Name Description
request GetCommentRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Comment

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
GetCommentRequest request = new GetCommentRequest
{
    CommentName = CommentName.FromProjectLocationOrderComment("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]"),
};
// Make the request
Comment response = gDCHardwareManagementClient.GetComment(request);

GetComment(string, CallSettings)

public virtual Comment GetComment(string name, CallSettings callSettings = null)

Gets the content of a comment.

Parameters
Name Description
name string

Required. The name of the comment. Format: projects/{project}/locations/{location}/orders/{order}/comments/{comment}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Comment

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]/comments/[COMMENT]";
// Make the request
Comment response = gDCHardwareManagementClient.GetComment(name);

GetCommentAsync(CommentName, CallSettings)

public virtual Task<Comment> GetCommentAsync(CommentName name, CallSettings callSettings = null)

Gets the content of a comment.

Parameters
Name Description
name CommentName

Required. The name of the comment. Format: projects/{project}/locations/{location}/orders/{order}/comments/{comment}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskComment

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
CommentName name = CommentName.FromProjectLocationOrderComment("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]");
// Make the request
Comment response = await gDCHardwareManagementClient.GetCommentAsync(name);

GetCommentAsync(CommentName, CancellationToken)

public virtual Task<Comment> GetCommentAsync(CommentName name, CancellationToken cancellationToken)

Gets the content of a comment.

Parameters
Name Description
name CommentName

Required. The name of the comment. Format: projects/{project}/locations/{location}/orders/{order}/comments/{comment}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskComment

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
CommentName name = CommentName.FromProjectLocationOrderComment("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]");
// Make the request
Comment response = await gDCHardwareManagementClient.GetCommentAsync(name);

GetCommentAsync(GetCommentRequest, CallSettings)

public virtual Task<Comment> GetCommentAsync(GetCommentRequest request, CallSettings callSettings = null)

Gets the content of a comment.

Parameters
Name Description
request GetCommentRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskComment

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
GetCommentRequest request = new GetCommentRequest
{
    CommentName = CommentName.FromProjectLocationOrderComment("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]"),
};
// Make the request
Comment response = await gDCHardwareManagementClient.GetCommentAsync(request);

GetCommentAsync(GetCommentRequest, CancellationToken)

public virtual Task<Comment> GetCommentAsync(GetCommentRequest request, CancellationToken cancellationToken)

Gets the content of a comment.

Parameters
Name Description
request GetCommentRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskComment

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
GetCommentRequest request = new GetCommentRequest
{
    CommentName = CommentName.FromProjectLocationOrderComment("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]"),
};
// Make the request
Comment response = await gDCHardwareManagementClient.GetCommentAsync(request);

GetCommentAsync(string, CallSettings)

public virtual Task<Comment> GetCommentAsync(string name, CallSettings callSettings = null)

Gets the content of a comment.

Parameters
Name Description
name string

Required. The name of the comment. Format: projects/{project}/locations/{location}/orders/{order}/comments/{comment}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskComment

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]/comments/[COMMENT]";
// Make the request
Comment response = await gDCHardwareManagementClient.GetCommentAsync(name);

GetCommentAsync(string, CancellationToken)

public virtual Task<Comment> GetCommentAsync(string name, CancellationToken cancellationToken)

Gets the content of a comment.

Parameters
Name Description
name string

Required. The name of the comment. Format: projects/{project}/locations/{location}/orders/{order}/comments/{comment}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskComment

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]/comments/[COMMENT]";
// Make the request
Comment response = await gDCHardwareManagementClient.GetCommentAsync(name);

GetHardware(GetHardwareRequest, CallSettings)

public virtual Hardware GetHardware(GetHardwareRequest request, CallSettings callSettings = null)

Gets hardware details.

Parameters
Name Description
request GetHardwareRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Hardware

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
GetHardwareRequest request = new GetHardwareRequest
{
    HardwareName = HardwareName.FromProjectLocationHardware("[PROJECT]", "[LOCATION]", "[HARDWARE]"),
};
// Make the request
Hardware response = gDCHardwareManagementClient.GetHardware(request);

GetHardware(HardwareName, CallSettings)

public virtual Hardware GetHardware(HardwareName name, CallSettings callSettings = null)

Gets hardware details.

Parameters
Name Description
name HardwareName

Required. The name of the hardware. Format: projects/{project}/locations/{location}/hardware/{hardware}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Hardware

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
HardwareName name = HardwareName.FromProjectLocationHardware("[PROJECT]", "[LOCATION]", "[HARDWARE]");
// Make the request
Hardware response = gDCHardwareManagementClient.GetHardware(name);

GetHardware(string, CallSettings)

public virtual Hardware GetHardware(string name, CallSettings callSettings = null)

Gets hardware details.

Parameters
Name Description
name string

Required. The name of the hardware. Format: projects/{project}/locations/{location}/hardware/{hardware}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Hardware

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/hardware/[HARDWARE]";
// Make the request
Hardware response = gDCHardwareManagementClient.GetHardware(name);

GetHardwareAsync(GetHardwareRequest, CallSettings)

public virtual Task<Hardware> GetHardwareAsync(GetHardwareRequest request, CallSettings callSettings = null)

Gets hardware details.

Parameters
Name Description
request GetHardwareRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHardware

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
GetHardwareRequest request = new GetHardwareRequest
{
    HardwareName = HardwareName.FromProjectLocationHardware("[PROJECT]", "[LOCATION]", "[HARDWARE]"),
};
// Make the request
Hardware response = await gDCHardwareManagementClient.GetHardwareAsync(request);

GetHardwareAsync(GetHardwareRequest, CancellationToken)

public virtual Task<Hardware> GetHardwareAsync(GetHardwareRequest request, CancellationToken cancellationToken)

Gets hardware details.

Parameters
Name Description
request GetHardwareRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHardware

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
GetHardwareRequest request = new GetHardwareRequest
{
    HardwareName = HardwareName.FromProjectLocationHardware("[PROJECT]", "[LOCATION]", "[HARDWARE]"),
};
// Make the request
Hardware response = await gDCHardwareManagementClient.GetHardwareAsync(request);

GetHardwareAsync(HardwareName, CallSettings)

public virtual Task<Hardware> GetHardwareAsync(HardwareName name, CallSettings callSettings = null)

Gets hardware details.

Parameters
Name Description
name HardwareName

Required. The name of the hardware. Format: projects/{project}/locations/{location}/hardware/{hardware}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHardware

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
HardwareName name = HardwareName.FromProjectLocationHardware("[PROJECT]", "[LOCATION]", "[HARDWARE]");
// Make the request
Hardware response = await gDCHardwareManagementClient.GetHardwareAsync(name);

GetHardwareAsync(HardwareName, CancellationToken)

public virtual Task<Hardware> GetHardwareAsync(HardwareName name, CancellationToken cancellationToken)

Gets hardware details.

Parameters
Name Description
name HardwareName

Required. The name of the hardware. Format: projects/{project}/locations/{location}/hardware/{hardware}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHardware

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
HardwareName name = HardwareName.FromProjectLocationHardware("[PROJECT]", "[LOCATION]", "[HARDWARE]");
// Make the request
Hardware response = await gDCHardwareManagementClient.GetHardwareAsync(name);

GetHardwareAsync(string, CallSettings)

public virtual Task<Hardware> GetHardwareAsync(string name, CallSettings callSettings = null)

Gets hardware details.

Parameters
Name Description
name string

Required. The name of the hardware. Format: projects/{project}/locations/{location}/hardware/{hardware}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHardware

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/hardware/[HARDWARE]";
// Make the request
Hardware response = await gDCHardwareManagementClient.GetHardwareAsync(name);

GetHardwareAsync(string, CancellationToken)

public virtual Task<Hardware> GetHardwareAsync(string name, CancellationToken cancellationToken)

Gets hardware details.

Parameters
Name Description
name string

Required. The name of the hardware. Format: projects/{project}/locations/{location}/hardware/{hardware}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHardware

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/hardware/[HARDWARE]";
// Make the request
Hardware response = await gDCHardwareManagementClient.GetHardwareAsync(name);

GetHardwareGroup(GetHardwareGroupRequest, CallSettings)

public virtual HardwareGroup GetHardwareGroup(GetHardwareGroupRequest request, CallSettings callSettings = null)

Gets details of a hardware group.

Parameters
Name Description
request GetHardwareGroupRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
HardwareGroup

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
GetHardwareGroupRequest request = new GetHardwareGroupRequest
{
    HardwareGroupName = HardwareGroupName.FromProjectLocationOrderHardwareGroup("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]"),
};
// Make the request
HardwareGroup response = gDCHardwareManagementClient.GetHardwareGroup(request);

GetHardwareGroup(HardwareGroupName, CallSettings)

public virtual HardwareGroup GetHardwareGroup(HardwareGroupName name, CallSettings callSettings = null)

Gets details of a hardware group.

Parameters
Name Description
name HardwareGroupName

Required. The name of the hardware group. Format: projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
HardwareGroup

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
HardwareGroupName name = HardwareGroupName.FromProjectLocationOrderHardwareGroup("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]");
// Make the request
HardwareGroup response = gDCHardwareManagementClient.GetHardwareGroup(name);

GetHardwareGroup(string, CallSettings)

public virtual HardwareGroup GetHardwareGroup(string name, CallSettings callSettings = null)

Gets details of a hardware group.

Parameters
Name Description
name string

Required. The name of the hardware group. Format: projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
HardwareGroup

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]/hardwareGroups/[HARDWARE_GROUP]";
// Make the request
HardwareGroup response = gDCHardwareManagementClient.GetHardwareGroup(name);

GetHardwareGroupAsync(GetHardwareGroupRequest, CallSettings)

public virtual Task<HardwareGroup> GetHardwareGroupAsync(GetHardwareGroupRequest request, CallSettings callSettings = null)

Gets details of a hardware group.

Parameters
Name Description
request GetHardwareGroupRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHardwareGroup

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
GetHardwareGroupRequest request = new GetHardwareGroupRequest
{
    HardwareGroupName = HardwareGroupName.FromProjectLocationOrderHardwareGroup("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]"),
};
// Make the request
HardwareGroup response = await gDCHardwareManagementClient.GetHardwareGroupAsync(request);

GetHardwareGroupAsync(GetHardwareGroupRequest, CancellationToken)

public virtual Task<HardwareGroup> GetHardwareGroupAsync(GetHardwareGroupRequest request, CancellationToken cancellationToken)

Gets details of a hardware group.

Parameters
Name Description
request GetHardwareGroupRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHardwareGroup

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
GetHardwareGroupRequest request = new GetHardwareGroupRequest
{
    HardwareGroupName = HardwareGroupName.FromProjectLocationOrderHardwareGroup("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]"),
};
// Make the request
HardwareGroup response = await gDCHardwareManagementClient.GetHardwareGroupAsync(request);

GetHardwareGroupAsync(HardwareGroupName, CallSettings)

public virtual Task<HardwareGroup> GetHardwareGroupAsync(HardwareGroupName name, CallSettings callSettings = null)

Gets details of a hardware group.

Parameters
Name Description
name HardwareGroupName

Required. The name of the hardware group. Format: projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHardwareGroup

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
HardwareGroupName name = HardwareGroupName.FromProjectLocationOrderHardwareGroup("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]");
// Make the request
HardwareGroup response = await gDCHardwareManagementClient.GetHardwareGroupAsync(name);

GetHardwareGroupAsync(HardwareGroupName, CancellationToken)

public virtual Task<HardwareGroup> GetHardwareGroupAsync(HardwareGroupName name, CancellationToken cancellationToken)

Gets details of a hardware group.

Parameters
Name Description
name HardwareGroupName

Required. The name of the hardware group. Format: projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHardwareGroup

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
HardwareGroupName name = HardwareGroupName.FromProjectLocationOrderHardwareGroup("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]");
// Make the request
HardwareGroup response = await gDCHardwareManagementClient.GetHardwareGroupAsync(name);

GetHardwareGroupAsync(string, CallSettings)

public virtual Task<HardwareGroup> GetHardwareGroupAsync(string name, CallSettings callSettings = null)

Gets details of a hardware group.

Parameters
Name Description
name string

Required. The name of the hardware group. Format: projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHardwareGroup

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]/hardwareGroups/[HARDWARE_GROUP]";
// Make the request
HardwareGroup response = await gDCHardwareManagementClient.GetHardwareGroupAsync(name);

GetHardwareGroupAsync(string, CancellationToken)

public virtual Task<HardwareGroup> GetHardwareGroupAsync(string name, CancellationToken cancellationToken)

Gets details of a hardware group.

Parameters
Name Description
name string

Required. The name of the hardware group. Format: projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHardwareGroup

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]/hardwareGroups/[HARDWARE_GROUP]";
// Make the request
HardwareGroup response = await gDCHardwareManagementClient.GetHardwareGroupAsync(name);

GetOrder(GetOrderRequest, CallSettings)

public virtual Order GetOrder(GetOrderRequest request, CallSettings callSettings = null)

Gets details of an order.

Parameters
Name Description
request GetOrderRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Order

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
GetOrderRequest request = new GetOrderRequest
{
    OrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
};
// Make the request
Order response = gDCHardwareManagementClient.GetOrder(request);

GetOrder(OrderName, CallSettings)

public virtual Order GetOrder(OrderName name, CallSettings callSettings = null)

Gets details of an order.

Parameters
Name Description
name OrderName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Order

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
OrderName name = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
// Make the request
Order response = gDCHardwareManagementClient.GetOrder(name);

GetOrder(string, CallSettings)

public virtual Order GetOrder(string name, CallSettings callSettings = null)

Gets details of an order.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Order

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]";
// Make the request
Order response = gDCHardwareManagementClient.GetOrder(name);

GetOrderAsync(GetOrderRequest, CallSettings)

public virtual Task<Order> GetOrderAsync(GetOrderRequest request, CallSettings callSettings = null)

Gets details of an order.

Parameters
Name Description
request GetOrderRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOrder

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
GetOrderRequest request = new GetOrderRequest
{
    OrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
};
// Make the request
Order response = await gDCHardwareManagementClient.GetOrderAsync(request);

GetOrderAsync(GetOrderRequest, CancellationToken)

public virtual Task<Order> GetOrderAsync(GetOrderRequest request, CancellationToken cancellationToken)

Gets details of an order.

Parameters
Name Description
request GetOrderRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOrder

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
GetOrderRequest request = new GetOrderRequest
{
    OrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
};
// Make the request
Order response = await gDCHardwareManagementClient.GetOrderAsync(request);

GetOrderAsync(OrderName, CallSettings)

public virtual Task<Order> GetOrderAsync(OrderName name, CallSettings callSettings = null)

Gets details of an order.

Parameters
Name Description
name OrderName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOrder

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
OrderName name = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
// Make the request
Order response = await gDCHardwareManagementClient.GetOrderAsync(name);

GetOrderAsync(OrderName, CancellationToken)

public virtual Task<Order> GetOrderAsync(OrderName name, CancellationToken cancellationToken)

Gets details of an order.

Parameters
Name Description
name OrderName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOrder

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
OrderName name = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
// Make the request
Order response = await gDCHardwareManagementClient.GetOrderAsync(name);

GetOrderAsync(string, CallSettings)

public virtual Task<Order> GetOrderAsync(string name, CallSettings callSettings = null)

Gets details of an order.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOrder

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]";
// Make the request
Order response = await gDCHardwareManagementClient.GetOrderAsync(name);

GetOrderAsync(string, CancellationToken)

public virtual Task<Order> GetOrderAsync(string name, CancellationToken cancellationToken)

Gets details of an order.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOrder

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]";
// Make the request
Order response = await gDCHardwareManagementClient.GetOrderAsync(name);

GetSite(GetSiteRequest, CallSettings)

public virtual Site GetSite(GetSiteRequest request, CallSettings callSettings = null)

Gets details of a site.

Parameters
Name Description
request GetSiteRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Site

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
GetSiteRequest request = new GetSiteRequest
{
    SiteName = SiteName.FromProjectLocationSite("[PROJECT]", "[LOCATION]", "[SITE]"),
};
// Make the request
Site response = gDCHardwareManagementClient.GetSite(request);

GetSite(SiteName, CallSettings)

public virtual Site GetSite(SiteName name, CallSettings callSettings = null)

Gets details of a site.

Parameters
Name Description
name SiteName

Required. The name of the site. Format: projects/{project}/locations/{location}/sites/{site}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Site

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
SiteName name = SiteName.FromProjectLocationSite("[PROJECT]", "[LOCATION]", "[SITE]");
// Make the request
Site response = gDCHardwareManagementClient.GetSite(name);

GetSite(string, CallSettings)

public virtual Site GetSite(string name, CallSettings callSettings = null)

Gets details of a site.

Parameters
Name Description
name string

Required. The name of the site. Format: projects/{project}/locations/{location}/sites/{site}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Site

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sites/[SITE]";
// Make the request
Site response = gDCHardwareManagementClient.GetSite(name);

GetSiteAsync(GetSiteRequest, CallSettings)

public virtual Task<Site> GetSiteAsync(GetSiteRequest request, CallSettings callSettings = null)

Gets details of a site.

Parameters
Name Description
request GetSiteRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSite

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
GetSiteRequest request = new GetSiteRequest
{
    SiteName = SiteName.FromProjectLocationSite("[PROJECT]", "[LOCATION]", "[SITE]"),
};
// Make the request
Site response = await gDCHardwareManagementClient.GetSiteAsync(request);

GetSiteAsync(GetSiteRequest, CancellationToken)

public virtual Task<Site> GetSiteAsync(GetSiteRequest request, CancellationToken cancellationToken)

Gets details of a site.

Parameters
Name Description
request GetSiteRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSite

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
GetSiteRequest request = new GetSiteRequest
{
    SiteName = SiteName.FromProjectLocationSite("[PROJECT]", "[LOCATION]", "[SITE]"),
};
// Make the request
Site response = await gDCHardwareManagementClient.GetSiteAsync(request);

GetSiteAsync(SiteName, CallSettings)

public virtual Task<Site> GetSiteAsync(SiteName name, CallSettings callSettings = null)

Gets details of a site.

Parameters
Name Description
name SiteName

Required. The name of the site. Format: projects/{project}/locations/{location}/sites/{site}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSite

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
SiteName name = SiteName.FromProjectLocationSite("[PROJECT]", "[LOCATION]", "[SITE]");
// Make the request
Site response = await gDCHardwareManagementClient.GetSiteAsync(name);

GetSiteAsync(SiteName, CancellationToken)

public virtual Task<Site> GetSiteAsync(SiteName name, CancellationToken cancellationToken)

Gets details of a site.

Parameters
Name Description
name SiteName

Required. The name of the site. Format: projects/{project}/locations/{location}/sites/{site}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSite

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
SiteName name = SiteName.FromProjectLocationSite("[PROJECT]", "[LOCATION]", "[SITE]");
// Make the request
Site response = await gDCHardwareManagementClient.GetSiteAsync(name);

GetSiteAsync(string, CallSettings)

public virtual Task<Site> GetSiteAsync(string name, CallSettings callSettings = null)

Gets details of a site.

Parameters
Name Description
name string

Required. The name of the site. Format: projects/{project}/locations/{location}/sites/{site}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSite

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sites/[SITE]";
// Make the request
Site response = await gDCHardwareManagementClient.GetSiteAsync(name);

GetSiteAsync(string, CancellationToken)

public virtual Task<Site> GetSiteAsync(string name, CancellationToken cancellationToken)

Gets details of a site.

Parameters
Name Description
name string

Required. The name of the site. Format: projects/{project}/locations/{location}/sites/{site}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSite

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sites/[SITE]";
// Make the request
Site response = await gDCHardwareManagementClient.GetSiteAsync(name);

GetSku(GetSkuRequest, CallSettings)

public virtual Sku GetSku(GetSkuRequest request, CallSettings callSettings = null)

Gets details of an SKU.

Parameters
Name Description
request GetSkuRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Sku

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
GetSkuRequest request = new GetSkuRequest
{
    SkuName = SkuName.FromProjectLocationSku("[PROJECT]", "[LOCATION]", "[SKU]"),
};
// Make the request
Sku response = gDCHardwareManagementClient.GetSku(request);

GetSku(SkuName, CallSettings)

public virtual Sku GetSku(SkuName name, CallSettings callSettings = null)

Gets details of an SKU.

Parameters
Name Description
name SkuName

Required. The name of the SKU. Format: projects/{project}/locations/{location}/skus/{sku}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Sku

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
SkuName name = SkuName.FromProjectLocationSku("[PROJECT]", "[LOCATION]", "[SKU]");
// Make the request
Sku response = gDCHardwareManagementClient.GetSku(name);

GetSku(string, CallSettings)

public virtual Sku GetSku(string name, CallSettings callSettings = null)

Gets details of an SKU.

Parameters
Name Description
name string

Required. The name of the SKU. Format: projects/{project}/locations/{location}/skus/{sku}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Sku

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/skus/[SKU]";
// Make the request
Sku response = gDCHardwareManagementClient.GetSku(name);

GetSkuAsync(GetSkuRequest, CallSettings)

public virtual Task<Sku> GetSkuAsync(GetSkuRequest request, CallSettings callSettings = null)

Gets details of an SKU.

Parameters
Name Description
request GetSkuRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSku

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
GetSkuRequest request = new GetSkuRequest
{
    SkuName = SkuName.FromProjectLocationSku("[PROJECT]", "[LOCATION]", "[SKU]"),
};
// Make the request
Sku response = await gDCHardwareManagementClient.GetSkuAsync(request);

GetSkuAsync(GetSkuRequest, CancellationToken)

public virtual Task<Sku> GetSkuAsync(GetSkuRequest request, CancellationToken cancellationToken)

Gets details of an SKU.

Parameters
Name Description
request GetSkuRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSku

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
GetSkuRequest request = new GetSkuRequest
{
    SkuName = SkuName.FromProjectLocationSku("[PROJECT]", "[LOCATION]", "[SKU]"),
};
// Make the request
Sku response = await gDCHardwareManagementClient.GetSkuAsync(request);

GetSkuAsync(SkuName, CallSettings)

public virtual Task<Sku> GetSkuAsync(SkuName name, CallSettings callSettings = null)

Gets details of an SKU.

Parameters
Name Description
name SkuName

Required. The name of the SKU. Format: projects/{project}/locations/{location}/skus/{sku}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSku

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
SkuName name = SkuName.FromProjectLocationSku("[PROJECT]", "[LOCATION]", "[SKU]");
// Make the request
Sku response = await gDCHardwareManagementClient.GetSkuAsync(name);

GetSkuAsync(SkuName, CancellationToken)

public virtual Task<Sku> GetSkuAsync(SkuName name, CancellationToken cancellationToken)

Gets details of an SKU.

Parameters
Name Description
name SkuName

Required. The name of the SKU. Format: projects/{project}/locations/{location}/skus/{sku}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSku

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
SkuName name = SkuName.FromProjectLocationSku("[PROJECT]", "[LOCATION]", "[SKU]");
// Make the request
Sku response = await gDCHardwareManagementClient.GetSkuAsync(name);

GetSkuAsync(string, CallSettings)

public virtual Task<Sku> GetSkuAsync(string name, CallSettings callSettings = null)

Gets details of an SKU.

Parameters
Name Description
name string

Required. The name of the SKU. Format: projects/{project}/locations/{location}/skus/{sku}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSku

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/skus/[SKU]";
// Make the request
Sku response = await gDCHardwareManagementClient.GetSkuAsync(name);

GetSkuAsync(string, CancellationToken)

public virtual Task<Sku> GetSkuAsync(string name, CancellationToken cancellationToken)

Gets details of an SKU.

Parameters
Name Description
name string

Required. The name of the SKU. Format: projects/{project}/locations/{location}/skus/{sku}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSku

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/skus/[SKU]";
// Make the request
Sku response = await gDCHardwareManagementClient.GetSkuAsync(name);

GetZone(GetZoneRequest, CallSettings)

public virtual Zone GetZone(GetZoneRequest request, CallSettings callSettings = null)

Gets details of a zone.

Parameters
Name Description
request GetZoneRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Zone

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
GetZoneRequest request = new GetZoneRequest
{
    ZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
};
// Make the request
Zone response = gDCHardwareManagementClient.GetZone(request);

GetZone(ZoneName, CallSettings)

public virtual Zone GetZone(ZoneName name, CallSettings callSettings = null)

Gets details of a zone.

Parameters
Name Description
name ZoneName

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Zone

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
ZoneName name = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
// Make the request
Zone response = gDCHardwareManagementClient.GetZone(name);

GetZone(string, CallSettings)

public virtual Zone GetZone(string name, CallSettings callSettings = null)

Gets details of a zone.

Parameters
Name Description
name string

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Zone

The RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
// Make the request
Zone response = gDCHardwareManagementClient.GetZone(name);

GetZoneAsync(GetZoneRequest, CallSettings)

public virtual Task<Zone> GetZoneAsync(GetZoneRequest request, CallSettings callSettings = null)

Gets details of a zone.

Parameters
Name Description
request GetZoneRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskZone

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
GetZoneRequest request = new GetZoneRequest
{
    ZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
};
// Make the request
Zone response = await gDCHardwareManagementClient.GetZoneAsync(request);

GetZoneAsync(GetZoneRequest, CancellationToken)

public virtual Task<Zone> GetZoneAsync(GetZoneRequest request, CancellationToken cancellationToken)

Gets details of a zone.

Parameters
Name Description
request GetZoneRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskZone

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
GetZoneRequest request = new GetZoneRequest
{
    ZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
};
// Make the request
Zone response = await gDCHardwareManagementClient.GetZoneAsync(request);

GetZoneAsync(ZoneName, CallSettings)

public virtual Task<Zone> GetZoneAsync(ZoneName name, CallSettings callSettings = null)

Gets details of a zone.

Parameters
Name Description
name ZoneName

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskZone

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
ZoneName name = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
// Make the request
Zone response = await gDCHardwareManagementClient.GetZoneAsync(name);

GetZoneAsync(ZoneName, CancellationToken)

public virtual Task<Zone> GetZoneAsync(ZoneName name, CancellationToken cancellationToken)

Gets details of a zone.

Parameters
Name Description
name ZoneName

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskZone

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
ZoneName name = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
// Make the request
Zone response = await gDCHardwareManagementClient.GetZoneAsync(name);

GetZoneAsync(string, CallSettings)

public virtual Task<Zone> GetZoneAsync(string name, CallSettings callSettings = null)

Gets details of a zone.

Parameters
Name Description
name string

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskZone

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
// Make the request
Zone response = await gDCHardwareManagementClient.GetZoneAsync(name);

GetZoneAsync(string, CancellationToken)

public virtual Task<Zone> GetZoneAsync(string name, CancellationToken cancellationToken)

Gets details of a zone.

Parameters
Name Description
name string

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskZone

A Task containing the RPC response.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
// Make the request
Zone response = await gDCHardwareManagementClient.GetZoneAsync(name);

ListChangeLogEntries(ListChangeLogEntriesRequest, CallSettings)

public virtual PagedEnumerable<ListChangeLogEntriesResponse, ChangeLogEntry> ListChangeLogEntries(ListChangeLogEntriesRequest request, CallSettings callSettings = null)

Lists the changes made to an order.

Parameters
Name Description
request ListChangeLogEntriesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListChangeLogEntriesResponseChangeLogEntry

A pageable sequence of ChangeLogEntry resources.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
ListChangeLogEntriesRequest request = new ListChangeLogEntriesRequest
{
    ParentAsOrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListChangeLogEntriesResponse, ChangeLogEntry> response = gDCHardwareManagementClient.ListChangeLogEntries(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ChangeLogEntry 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 (ListChangeLogEntriesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ChangeLogEntry 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<ChangeLogEntry> 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 (ChangeLogEntry 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;

ListChangeLogEntries(OrderName, string, int?, CallSettings)

public virtual PagedEnumerable<ListChangeLogEntriesResponse, ChangeLogEntry> ListChangeLogEntries(OrderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the changes made to an order.

Parameters
Name Description
parent OrderName

Required. The order to list change log entries for. Format: projects/{project}/locations/{location}/orders/{order}

pageToken string

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

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListChangeLogEntriesResponseChangeLogEntry

A pageable sequence of ChangeLogEntry resources.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
OrderName parent = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
// Make the request
PagedEnumerable<ListChangeLogEntriesResponse, ChangeLogEntry> response = gDCHardwareManagementClient.ListChangeLogEntries(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ChangeLogEntry 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 (ListChangeLogEntriesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ChangeLogEntry 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<ChangeLogEntry> 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 (ChangeLogEntry 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;

ListChangeLogEntries(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListChangeLogEntriesResponse, ChangeLogEntry> ListChangeLogEntries(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the changes made to an order.

Parameters
Name Description
parent string

Required. The order to list change log entries for. Format: projects/{project}/locations/{location}/orders/{order}

pageToken string

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

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListChangeLogEntriesResponseChangeLogEntry

A pageable sequence of ChangeLogEntry resources.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]";
// Make the request
PagedEnumerable<ListChangeLogEntriesResponse, ChangeLogEntry> response = gDCHardwareManagementClient.ListChangeLogEntries(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ChangeLogEntry 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 (ListChangeLogEntriesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ChangeLogEntry 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<ChangeLogEntry> 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 (ChangeLogEntry 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;

ListChangeLogEntriesAsync(ListChangeLogEntriesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListChangeLogEntriesResponse, ChangeLogEntry> ListChangeLogEntriesAsync(ListChangeLogEntriesRequest request, CallSettings callSettings = null)

Lists the changes made to an order.

Parameters
Name Description
request ListChangeLogEntriesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListChangeLogEntriesResponseChangeLogEntry

A pageable asynchronous sequence of ChangeLogEntry resources.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
ListChangeLogEntriesRequest request = new ListChangeLogEntriesRequest
{
    ParentAsOrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListChangeLogEntriesResponse, ChangeLogEntry> response = gDCHardwareManagementClient.ListChangeLogEntriesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ChangeLogEntry 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((ListChangeLogEntriesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ChangeLogEntry 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<ChangeLogEntry> 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 (ChangeLogEntry 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;

ListChangeLogEntriesAsync(OrderName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListChangeLogEntriesResponse, ChangeLogEntry> ListChangeLogEntriesAsync(OrderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the changes made to an order.

Parameters
Name Description
parent OrderName

Required. The order to list change log entries for. Format: projects/{project}/locations/{location}/orders/{order}

pageToken string

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

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListChangeLogEntriesResponseChangeLogEntry

A pageable asynchronous sequence of ChangeLogEntry resources.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
OrderName parent = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
// Make the request
PagedAsyncEnumerable<ListChangeLogEntriesResponse, ChangeLogEntry> response = gDCHardwareManagementClient.ListChangeLogEntriesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ChangeLogEntry 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((ListChangeLogEntriesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ChangeLogEntry 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<ChangeLogEntry> 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 (ChangeLogEntry 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;

ListChangeLogEntriesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListChangeLogEntriesResponse, ChangeLogEntry> ListChangeLogEntriesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the changes made to an order.

Parameters
Name Description
parent string

Required. The order to list change log entries for. Format: projects/{project}/locations/{location}/orders/{order}

pageToken string

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

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListChangeLogEntriesResponseChangeLogEntry

A pageable asynchronous sequence of ChangeLogEntry resources.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]";
// Make the request
PagedAsyncEnumerable<ListChangeLogEntriesResponse, ChangeLogEntry> response = gDCHardwareManagementClient.ListChangeLogEntriesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ChangeLogEntry 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((ListChangeLogEntriesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ChangeLogEntry 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<ChangeLogEntry> 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 (ChangeLogEntry 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;

ListComments(ListCommentsRequest, CallSettings)

public virtual PagedEnumerable<ListCommentsResponse, Comment> ListComments(ListCommentsRequest request, CallSettings callSettings = null)

Lists the comments on an order.

Parameters
Name Description
request ListCommentsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListCommentsResponseComment

A pageable sequence of Comment resources.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
ListCommentsRequest request = new ListCommentsRequest
{
    ParentAsOrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListCommentsResponse, Comment> response = gDCHardwareManagementClient.ListComments(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Comment 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 (ListCommentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Comment 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<Comment> 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 (Comment 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;

ListComments(OrderName, string, int?, CallSettings)

public virtual PagedEnumerable<ListCommentsResponse, Comment> ListComments(OrderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the comments on an order.

Parameters
Name Description
parent OrderName

Required. The order to list comments on. Format: projects/{project}/locations/{location}/orders/{order}

pageToken string

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

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListCommentsResponseComment

A pageable sequence of Comment resources.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
OrderName parent = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
// Make the request
PagedEnumerable<ListCommentsResponse, Comment> response = gDCHardwareManagementClient.ListComments(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Comment 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 (ListCommentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Comment 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<Comment> 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 (Comment 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;

ListComments(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListCommentsResponse, Comment> ListComments(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the comments on an order.

Parameters
Name Description
parent string

Required. The order to list comments on. Format: projects/{project}/locations/{location}/orders/{order}

pageToken string

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

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListCommentsResponseComment

A pageable sequence of Comment resources.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]";
// Make the request
PagedEnumerable<ListCommentsResponse, Comment> response = gDCHardwareManagementClient.ListComments(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Comment 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 (ListCommentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Comment 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<Comment> 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 (Comment 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;

ListCommentsAsync(ListCommentsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListCommentsResponse, Comment> ListCommentsAsync(ListCommentsRequest request, CallSettings callSettings = null)

Lists the comments on an order.

Parameters
Name Description
request ListCommentsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListCommentsResponseComment

A pageable asynchronous sequence of Comment resources.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
ListCommentsRequest request = new ListCommentsRequest
{
    ParentAsOrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListCommentsResponse, Comment> response = gDCHardwareManagementClient.ListCommentsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Comment 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((ListCommentsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Comment 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<Comment> 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 (Comment 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;

ListCommentsAsync(OrderName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListCommentsResponse, Comment> ListCommentsAsync(OrderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the comments on an order.

Parameters
Name Description
parent OrderName

Required. The order to list comments on. Format: projects/{project}/locations/{location}/orders/{order}

pageToken string

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

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListCommentsResponseComment

A pageable asynchronous sequence of Comment resources.

Example
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
OrderName parent = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
// Make the request
PagedAsyncEnumerable<ListCommentsResponse, Comment> response = gDCHardwareManagementClient.ListCommentsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Comment 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((ListCommentsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Comment 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<Comment> 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 (Comment 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;

ListCommentsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListCommentsResponse, Comment> ListCommentsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the comments on an order.

Parameters
Name Description
parent string

Required. The order to list comments on. Format: projects/{project}/locations/{location}/orders/{order}

pageToken string

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

pageSize