public abstract class GDCHardwareManagementClient
Reference documentation and code samples for the GDC Hardware Management v1alpha API class GDCHardwareManagementClient.
GDCHardwareManagement client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.GdcHardwareManagement.V1AlphaAssembly
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 |
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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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. |
// 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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. |
// 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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. |
// 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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. |
// 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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. |
// 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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. |
// 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. |
// 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: |
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 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. |
// 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: |
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 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. |
// 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. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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. |
// 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. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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. |
// 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:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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. |
// 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. |
// 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:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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. |
// 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. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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. |
// 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. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ChangeLogEntry |
The RPC response. |
// 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. |
// 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:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ChangeLogEntry |
The RPC response. |
// 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:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskChangeLogEntry |
A Task containing the RPC response. |
// 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:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskChangeLogEntry |
A Task containing the RPC response. |
// 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. |
// 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. |
// 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:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskChangeLogEntry |
A Task containing the RPC response. |
// 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:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskChangeLogEntry |
A Task containing the RPC response. |
// 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:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Comment |
The RPC response. |
// 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. |
// 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:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Comment |
The RPC response. |
// 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:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskComment |
A Task containing the RPC response. |
// 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:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskComment |
A Task containing the RPC response. |
// 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. |
// 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. |
// 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:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskComment |
A Task containing the RPC response. |
// 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:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskComment |
A Task containing the RPC response. |
// 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. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Hardware |
The RPC response. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Hardware |
The RPC response. |
// 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. |
// 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. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskHardware |
A Task containing the RPC response. |
// 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: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskHardware |
A Task containing the RPC response. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskHardware |
A Task containing the RPC response. |
// 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: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskHardware |
A Task containing the RPC response. |
// 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. |
// 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:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
HardwareGroup |
The RPC response. |
// 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:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
HardwareGroup |
The RPC response. |
// 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. |
// 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. |
// 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:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskHardwareGroup |
A Task containing the RPC response. |
// 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:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskHardwareGroup |
A Task containing the RPC response. |
// 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:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskHardwareGroup |
A Task containing the RPC response. |
// 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:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskHardwareGroup |
A Task containing the RPC response. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Site |
The RPC response. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Site |
The RPC response. |
// 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. |
// 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. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSite |
A Task containing the RPC response. |
// 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: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSite |
A Task containing the RPC response. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSite |
A Task containing the RPC response. |
// 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: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSite |
A Task containing the RPC response. |
// 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. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Sku |
The RPC response. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Sku |
The RPC response. |
// 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. |
// 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. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSku |
A Task containing the RPC response. |
// 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: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSku |
A Task containing the RPC response. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSku |
A Task containing the RPC response. |
// 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: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSku |
A Task containing the RPC response. |
// 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. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Zone |
The RPC response. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Zone |
The RPC response. |
// 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. |
// 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. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskZone |
A Task containing the RPC response. |
// 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: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskZone |
A Task containing the RPC response. |
// 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: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskZone |
A Task containing the RPC response. |
// 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: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskZone |
A Task containing the RPC response. |
// 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. |
// 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: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListChangeLogEntriesResponseChangeLogEntry |
A pageable sequence of ChangeLogEntry resources. |
// 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: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListChangeLogEntriesResponseChangeLogEntry |
A pageable sequence of ChangeLogEntry resources. |
// 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. |
// 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: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListChangeLogEntriesResponseChangeLogEntry |
A pageable asynchronous sequence of ChangeLogEntry resources. |
// 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: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListChangeLogEntriesResponseChangeLogEntry |
A pageable asynchronous sequence of ChangeLogEntry resources. |
// 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. |
// 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: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListCommentsResponseComment |
A pageable sequence of Comment resources. |
// 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: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListCommentsResponseComment |
A pageable sequence of Comment resources. |
// 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. |
// 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: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListCommentsResponseComment |
A pageable asynchronous sequence of Comment resources. |
// 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: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListCommentsResponseComment |
A pageable asynchronous sequence of Comment resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/orders/[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;
ListHardware(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListHardwareResponse, Hardware> ListHardware(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists hardware in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The project and location to list hardware in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListHardwareResponseHardware |
A pageable sequence of Hardware resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListHardwareResponse, Hardware> response = gDCHardwareManagementClient.ListHardware(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Hardware 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 (ListHardwareResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Hardware 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<Hardware> 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 (Hardware 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;
ListHardware(ListHardwareRequest, CallSettings)
public virtual PagedEnumerable<ListHardwareResponse, Hardware> ListHardware(ListHardwareRequest request, CallSettings callSettings = null)
Lists hardware in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListHardwareRequest 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 |
PagedEnumerableListHardwareResponseHardware |
A pageable sequence of Hardware resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
ListHardwareRequest request = new ListHardwareRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListHardwareResponse, Hardware> response = gDCHardwareManagementClient.ListHardware(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Hardware 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 (ListHardwareResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Hardware 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<Hardware> 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 (Hardware 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;
ListHardware(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListHardwareResponse, Hardware> ListHardware(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists hardware in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The project and location to list hardware in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListHardwareResponseHardware |
A pageable sequence of Hardware resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListHardwareResponse, Hardware> response = gDCHardwareManagementClient.ListHardware(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Hardware 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 (ListHardwareResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Hardware 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<Hardware> 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 (Hardware 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;
ListHardwareAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListHardwareResponse, Hardware> ListHardwareAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists hardware in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The project and location to list hardware in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListHardwareResponseHardware |
A pageable asynchronous sequence of Hardware resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListHardwareResponse, Hardware> response = gDCHardwareManagementClient.ListHardwareAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Hardware 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((ListHardwareResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Hardware 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<Hardware> 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 (Hardware 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;
ListHardwareAsync(ListHardwareRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListHardwareResponse, Hardware> ListHardwareAsync(ListHardwareRequest request, CallSettings callSettings = null)
Lists hardware in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListHardwareRequest 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 |
PagedAsyncEnumerableListHardwareResponseHardware |
A pageable asynchronous sequence of Hardware resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
ListHardwareRequest request = new ListHardwareRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListHardwareResponse, Hardware> response = gDCHardwareManagementClient.ListHardwareAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Hardware 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((ListHardwareResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Hardware 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<Hardware> 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 (Hardware 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;
ListHardwareAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListHardwareResponse, Hardware> ListHardwareAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists hardware in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The project and location to list hardware in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListHardwareResponseHardware |
A pageable asynchronous sequence of Hardware resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListHardwareResponse, Hardware> response = gDCHardwareManagementClient.ListHardwareAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Hardware 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((ListHardwareResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Hardware 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<Hardware> 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 (Hardware 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;
ListHardwareGroups(ListHardwareGroupsRequest, CallSettings)
public virtual PagedEnumerable<ListHardwareGroupsResponse, HardwareGroup> ListHardwareGroups(ListHardwareGroupsRequest request, CallSettings callSettings = null)
Lists hardware groups in a given order.
Parameters | |
---|---|
Name | Description |
request |
ListHardwareGroupsRequest 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 |
PagedEnumerableListHardwareGroupsResponseHardwareGroup |
A pageable sequence of HardwareGroup resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
ListHardwareGroupsRequest request = new ListHardwareGroupsRequest
{
ParentAsOrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListHardwareGroupsResponse, HardwareGroup> response = gDCHardwareManagementClient.ListHardwareGroups(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (HardwareGroup 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 (ListHardwareGroupsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (HardwareGroup 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<HardwareGroup> 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 (HardwareGroup 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;
ListHardwareGroups(OrderName, string, int?, CallSettings)
public virtual PagedEnumerable<ListHardwareGroupsResponse, HardwareGroup> ListHardwareGroups(OrderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists hardware groups in a given order.
Parameters | |
---|---|
Name | Description |
parent |
OrderName Required. The order to list hardware groups in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListHardwareGroupsResponseHardwareGroup |
A pageable sequence of HardwareGroup resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
OrderName parent = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
// Make the request
PagedEnumerable<ListHardwareGroupsResponse, HardwareGroup> response = gDCHardwareManagementClient.ListHardwareGroups(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (HardwareGroup 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 (ListHardwareGroupsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (HardwareGroup 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<HardwareGroup> 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 (HardwareGroup 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;
ListHardwareGroups(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListHardwareGroupsResponse, HardwareGroup> ListHardwareGroups(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists hardware groups in a given order.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The order to list hardware groups in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListHardwareGroupsResponseHardwareGroup |
A pageable sequence of HardwareGroup resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]";
// Make the request
PagedEnumerable<ListHardwareGroupsResponse, HardwareGroup> response = gDCHardwareManagementClient.ListHardwareGroups(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (HardwareGroup 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 (ListHardwareGroupsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (HardwareGroup 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<HardwareGroup> 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 (HardwareGroup 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;
ListHardwareGroupsAsync(ListHardwareGroupsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListHardwareGroupsResponse, HardwareGroup> ListHardwareGroupsAsync(ListHardwareGroupsRequest request, CallSettings callSettings = null)
Lists hardware groups in a given order.
Parameters | |
---|---|
Name | Description |
request |
ListHardwareGroupsRequest 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 |
PagedAsyncEnumerableListHardwareGroupsResponseHardwareGroup |
A pageable asynchronous sequence of HardwareGroup resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
ListHardwareGroupsRequest request = new ListHardwareGroupsRequest
{
ParentAsOrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListHardwareGroupsResponse, HardwareGroup> response = gDCHardwareManagementClient.ListHardwareGroupsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((HardwareGroup 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((ListHardwareGroupsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (HardwareGroup 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<HardwareGroup> 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 (HardwareGroup 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;
ListHardwareGroupsAsync(OrderName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListHardwareGroupsResponse, HardwareGroup> ListHardwareGroupsAsync(OrderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists hardware groups in a given order.
Parameters | |
---|---|
Name | Description |
parent |
OrderName Required. The order to list hardware groups in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListHardwareGroupsResponseHardwareGroup |
A pageable asynchronous sequence of HardwareGroup resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
OrderName parent = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
// Make the request
PagedAsyncEnumerable<ListHardwareGroupsResponse, HardwareGroup> response = gDCHardwareManagementClient.ListHardwareGroupsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((HardwareGroup 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((ListHardwareGroupsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (HardwareGroup 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<HardwareGroup> 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 (HardwareGroup 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;
ListHardwareGroupsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListHardwareGroupsResponse, HardwareGroup> ListHardwareGroupsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists hardware groups in a given order.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The order to list hardware groups in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListHardwareGroupsResponseHardwareGroup |
A pageable asynchronous sequence of HardwareGroup resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]";
// Make the request
PagedAsyncEnumerable<ListHardwareGroupsResponse, HardwareGroup> response = gDCHardwareManagementClient.ListHardwareGroupsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((HardwareGroup 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((ListHardwareGroupsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (HardwareGroup 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<HardwareGroup> 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 (HardwareGroup 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;
ListOrders(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListOrdersResponse, Order> ListOrders(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists orders in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The project and location to list orders in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListOrdersResponseOrder |
A pageable sequence of Order resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListOrdersResponse, Order> response = gDCHardwareManagementClient.ListOrders(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Order 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 (ListOrdersResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Order 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<Order> 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 (Order 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;
ListOrders(ListOrdersRequest, CallSettings)
public virtual PagedEnumerable<ListOrdersResponse, Order> ListOrders(ListOrdersRequest request, CallSettings callSettings = null)
Lists orders in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListOrdersRequest 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 |
PagedEnumerableListOrdersResponseOrder |
A pageable sequence of Order resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
ListOrdersRequest request = new ListOrdersRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListOrdersResponse, Order> response = gDCHardwareManagementClient.ListOrders(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Order 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 (ListOrdersResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Order 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<Order> 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 (Order 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;
ListOrders(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListOrdersResponse, Order> ListOrders(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists orders in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The project and location to list orders in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListOrdersResponseOrder |
A pageable sequence of Order resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListOrdersResponse, Order> response = gDCHardwareManagementClient.ListOrders(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Order 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 (ListOrdersResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Order 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<Order> 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 (Order 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;
ListOrdersAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListOrdersResponse, Order> ListOrdersAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists orders in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The project and location to list orders in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListOrdersResponseOrder |
A pageable asynchronous sequence of Order resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListOrdersResponse, Order> response = gDCHardwareManagementClient.ListOrdersAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Order 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((ListOrdersResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Order 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<Order> 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 (Order 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;
ListOrdersAsync(ListOrdersRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListOrdersResponse, Order> ListOrdersAsync(ListOrdersRequest request, CallSettings callSettings = null)
Lists orders in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListOrdersRequest 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 |
PagedAsyncEnumerableListOrdersResponseOrder |
A pageable asynchronous sequence of Order resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
ListOrdersRequest request = new ListOrdersRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListOrdersResponse, Order> response = gDCHardwareManagementClient.ListOrdersAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Order 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((ListOrdersResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Order 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<Order> 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 (Order 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;
ListOrdersAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListOrdersResponse, Order> ListOrdersAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists orders in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The project and location to list orders in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListOrdersResponseOrder |
A pageable asynchronous sequence of Order resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListOrdersResponse, Order> response = gDCHardwareManagementClient.ListOrdersAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Order 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((ListOrdersResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Order 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<Order> 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 (Order 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;
ListSites(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListSitesResponse, Site> ListSites(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists sites in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The project and location to list sites in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListSitesResponseSite |
A pageable sequence of Site resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListSitesResponse, Site> response = gDCHardwareManagementClient.ListSites(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Site 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 (ListSitesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Site 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<Site> 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 (Site 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;
ListSites(ListSitesRequest, CallSettings)
public virtual PagedEnumerable<ListSitesResponse, Site> ListSites(ListSitesRequest request, CallSettings callSettings = null)
Lists sites in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListSitesRequest 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 |
PagedEnumerableListSitesResponseSite |
A pageable sequence of Site resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
ListSitesRequest request = new ListSitesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListSitesResponse, Site> response = gDCHardwareManagementClient.ListSites(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Site 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 (ListSitesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Site 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<Site> 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 (Site 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;
ListSites(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListSitesResponse, Site> ListSites(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists sites in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The project and location to list sites in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListSitesResponseSite |
A pageable sequence of Site resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListSitesResponse, Site> response = gDCHardwareManagementClient.ListSites(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Site 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 (ListSitesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Site 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<Site> 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 (Site 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;
ListSitesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListSitesResponse, Site> ListSitesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists sites in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The project and location to list sites in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListSitesResponseSite |
A pageable asynchronous sequence of Site resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListSitesResponse, Site> response = gDCHardwareManagementClient.ListSitesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Site 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((ListSitesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Site 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<Site> 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 (Site 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;
ListSitesAsync(ListSitesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListSitesResponse, Site> ListSitesAsync(ListSitesRequest request, CallSettings callSettings = null)
Lists sites in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListSitesRequest 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 |
PagedAsyncEnumerableListSitesResponseSite |
A pageable asynchronous sequence of Site resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
ListSitesRequest request = new ListSitesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListSitesResponse, Site> response = gDCHardwareManagementClient.ListSitesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Site 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((ListSitesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Site 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<Site> 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 (Site 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;
ListSitesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListSitesResponse, Site> ListSitesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists sites in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The project and location to list sites in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListSitesResponseSite |
A pageable asynchronous sequence of Site resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListSitesResponse, Site> response = gDCHardwareManagementClient.ListSitesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Site 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((ListSitesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Site 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<Site> 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 (Site 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;
ListSkus(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListSkusResponse, Sku> ListSkus(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists SKUs for a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The project and location to list SKUs in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListSkusResponseSku |
A pageable sequence of Sku resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListSkusResponse, Sku> response = gDCHardwareManagementClient.ListSkus(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Sku 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 (ListSkusResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Sku 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<Sku> 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 (Sku 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;
ListSkus(ListSkusRequest, CallSettings)
public virtual PagedEnumerable<ListSkusResponse, Sku> ListSkus(ListSkusRequest request, CallSettings callSettings = null)
Lists SKUs for a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListSkusRequest 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 |
PagedEnumerableListSkusResponseSku |
A pageable sequence of Sku resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
ListSkusRequest request = new ListSkusRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListSkusResponse, Sku> response = gDCHardwareManagementClient.ListSkus(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Sku 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 (ListSkusResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Sku 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<Sku> 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 (Sku 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;
ListSkus(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListSkusResponse, Sku> ListSkus(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists SKUs for a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The project and location to list SKUs in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListSkusResponseSku |
A pageable sequence of Sku resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListSkusResponse, Sku> response = gDCHardwareManagementClient.ListSkus(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Sku 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 (ListSkusResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Sku 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<Sku> 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 (Sku 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;
ListSkusAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListSkusResponse, Sku> ListSkusAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists SKUs for a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The project and location to list SKUs in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListSkusResponseSku |
A pageable asynchronous sequence of Sku resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListSkusResponse, Sku> response = gDCHardwareManagementClient.ListSkusAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Sku 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((ListSkusResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Sku 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<Sku> 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 (Sku 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;
ListSkusAsync(ListSkusRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListSkusResponse, Sku> ListSkusAsync(ListSkusRequest request, CallSettings callSettings = null)
Lists SKUs for a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListSkusRequest 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 |
PagedAsyncEnumerableListSkusResponseSku |
A pageable asynchronous sequence of Sku resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
ListSkusRequest request = new ListSkusRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListSkusResponse, Sku> response = gDCHardwareManagementClient.ListSkusAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Sku 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((ListSkusResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Sku 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<Sku> 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 (Sku 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;
ListSkusAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListSkusResponse, Sku> ListSkusAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists SKUs for a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The project and location to list SKUs in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListSkusResponseSku |
A pageable asynchronous sequence of Sku resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListSkusResponse, Sku> response = gDCHardwareManagementClient.ListSkusAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Sku 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((ListSkusResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Sku 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<Sku> 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 (Sku 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;
ListZones(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListZonesResponse, Zone> ListZones(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists zones in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The project and location to list zones in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListZonesResponseZone |
A pageable sequence of Zone resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListZonesResponse, Zone> response = gDCHardwareManagementClient.ListZones(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Zone 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 (ListZonesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Zone 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<Zone> 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 (Zone 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;
ListZones(ListZonesRequest, CallSettings)
public virtual PagedEnumerable<ListZonesResponse, Zone> ListZones(ListZonesRequest request, CallSettings callSettings = null)
Lists zones in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListZonesRequest 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 |
PagedEnumerableListZonesResponseZone |
A pageable sequence of Zone resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
ListZonesRequest request = new ListZonesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListZonesResponse, Zone> response = gDCHardwareManagementClient.ListZones(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Zone 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 (ListZonesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Zone 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<Zone> 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 (Zone 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;
ListZones(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListZonesResponse, Zone> ListZones(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists zones in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The project and location to list zones in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListZonesResponseZone |
A pageable sequence of Zone resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListZonesResponse, Zone> response = gDCHardwareManagementClient.ListZones(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Zone 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 (ListZonesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Zone 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<Zone> 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 (Zone 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;
ListZonesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListZonesResponse, Zone> ListZonesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists zones in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The project and location to list zones in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListZonesResponseZone |
A pageable asynchronous sequence of Zone resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListZonesResponse, Zone> response = gDCHardwareManagementClient.ListZonesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Zone 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((ListZonesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Zone 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<Zone> 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 (Zone 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;
ListZonesAsync(ListZonesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListZonesResponse, Zone> ListZonesAsync(ListZonesRequest request, CallSettings callSettings = null)
Lists zones in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListZonesRequest 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 |
PagedAsyncEnumerableListZonesResponseZone |
A pageable asynchronous sequence of Zone resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
ListZonesRequest request = new ListZonesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListZonesResponse, Zone> response = gDCHardwareManagementClient.ListZonesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Zone 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((ListZonesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Zone 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<Zone> 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 (Zone 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;
ListZonesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListZonesResponse, Zone> ListZonesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists zones in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The project and location to list zones in.
Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListZonesResponseZone |
A pageable asynchronous sequence of Zone resources. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListZonesResponse, Zone> response = gDCHardwareManagementClient.ListZonesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Zone 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((ListZonesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Zone 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<Zone> 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 (Zone 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;
PollOnceCreateComment(string, CallSettings)
public virtual Operation<Comment, OperationMetadata> PollOnceCreateComment(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateComment
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCommentOperationMetadata |
The result of polling the operation. |
PollOnceCreateCommentAsync(string, CallSettings)
public virtual Task<Operation<Comment, OperationMetadata>> PollOnceCreateCommentAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateComment
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCommentOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateHardware(string, CallSettings)
public virtual Operation<Hardware, OperationMetadata> PollOnceCreateHardware(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateHardware
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationHardwareOperationMetadata |
The result of polling the operation. |
PollOnceCreateHardwareAsync(string, CallSettings)
public virtual Task<Operation<Hardware, OperationMetadata>> PollOnceCreateHardwareAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateHardware
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationHardwareOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateHardwareGroup(string, CallSettings)
public virtual Operation<HardwareGroup, OperationMetadata> PollOnceCreateHardwareGroup(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateHardwareGroup
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationHardwareGroupOperationMetadata |
The result of polling the operation. |
PollOnceCreateHardwareGroupAsync(string, CallSettings)
public virtual Task<Operation<HardwareGroup, OperationMetadata>> PollOnceCreateHardwareGroupAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateHardwareGroup
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationHardwareGroupOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateOrder(string, CallSettings)
public virtual Operation<Order, OperationMetadata> PollOnceCreateOrder(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateOrder
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOrderOperationMetadata |
The result of polling the operation. |
PollOnceCreateOrderAsync(string, CallSettings)
public virtual Task<Operation<Order, OperationMetadata>> PollOnceCreateOrderAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateOrder
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOrderOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateSite(string, CallSettings)
public virtual Operation<Site, OperationMetadata> PollOnceCreateSite(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateSite
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationSiteOperationMetadata |
The result of polling the operation. |
PollOnceCreateSiteAsync(string, CallSettings)
public virtual Task<Operation<Site, OperationMetadata>> PollOnceCreateSiteAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateSite
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationSiteOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateZone(string, CallSettings)
public virtual Operation<Zone, OperationMetadata> PollOnceCreateZone(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateZone
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationZoneOperationMetadata |
The result of polling the operation. |
PollOnceCreateZoneAsync(string, CallSettings)
public virtual Task<Operation<Zone, OperationMetadata>> PollOnceCreateZoneAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateZone
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationZoneOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteHardware(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteHardware(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteHardware
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteHardwareAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteHardwareAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteHardware
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteHardwareGroup(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteHardwareGroup(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteHardwareGroup
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteHardwareGroupAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteHardwareGroupAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteHardwareGroup
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteOrder(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteOrder(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteOrder
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteOrderAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteOrderAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteOrder
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteZone(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteZone(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteZone
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteZoneAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteZoneAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteZone
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceSignalZoneState(string, CallSettings)
public virtual Operation<Zone, OperationMetadata> PollOnceSignalZoneState(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of SignalZoneState
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationZoneOperationMetadata |
The result of polling the operation. |
PollOnceSignalZoneStateAsync(string, CallSettings)
public virtual Task<Operation<Zone, OperationMetadata>> PollOnceSignalZoneStateAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
SignalZoneState
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationZoneOperationMetadata |
A task representing the result of polling the operation. |
PollOnceSubmitOrder(string, CallSettings)
public virtual Operation<Order, OperationMetadata> PollOnceSubmitOrder(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of SubmitOrder
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOrderOperationMetadata |
The result of polling the operation. |
PollOnceSubmitOrderAsync(string, CallSettings)
public virtual Task<Operation<Order, OperationMetadata>> PollOnceSubmitOrderAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
SubmitOrder
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOrderOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateHardware(string, CallSettings)
public virtual Operation<Hardware, OperationMetadata> PollOnceUpdateHardware(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateHardware
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationHardwareOperationMetadata |
The result of polling the operation. |
PollOnceUpdateHardwareAsync(string, CallSettings)
public virtual Task<Operation<Hardware, OperationMetadata>> PollOnceUpdateHardwareAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateHardware
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationHardwareOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateHardwareGroup(string, CallSettings)
public virtual Operation<HardwareGroup, OperationMetadata> PollOnceUpdateHardwareGroup(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateHardwareGroup
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationHardwareGroupOperationMetadata |
The result of polling the operation. |
PollOnceUpdateHardwareGroupAsync(string, CallSettings)
public virtual Task<Operation<HardwareGroup, OperationMetadata>> PollOnceUpdateHardwareGroupAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateHardwareGroup
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationHardwareGroupOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateOrder(string, CallSettings)
public virtual Operation<Order, OperationMetadata> PollOnceUpdateOrder(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateOrder
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOrderOperationMetadata |
The result of polling the operation. |
PollOnceUpdateOrderAsync(string, CallSettings)
public virtual Task<Operation<Order, OperationMetadata>> PollOnceUpdateOrderAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateOrder
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOrderOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateSite(string, CallSettings)
public virtual Operation<Site, OperationMetadata> PollOnceUpdateSite(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateSite
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationSiteOperationMetadata |
The result of polling the operation. |
PollOnceUpdateSiteAsync(string, CallSettings)
public virtual Task<Operation<Site, OperationMetadata>> PollOnceUpdateSiteAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateSite
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationSiteOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateZone(string, CallSettings)
public virtual Operation<Zone, OperationMetadata> PollOnceUpdateZone(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateZone
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationZoneOperationMetadata |
The result of polling the operation. |
PollOnceUpdateZoneAsync(string, CallSettings)
public virtual Task<Operation<Zone, OperationMetadata>> PollOnceUpdateZoneAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateZone
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationZoneOperationMetadata |
A task representing the result of polling the operation. |
RecordActionOnComment(CommentName, ActionType, CallSettings)
public virtual Comment RecordActionOnComment(CommentName name, RecordActionOnCommentRequest.Types.ActionType actionType, CallSettings callSettings = null)
Record Action on a Comment. If the Action specified in the request is READ, the viewed time in the comment is set to the time the request was received. If the comment is already marked as read, subsequent calls will be ignored. If the Action is UNREAD, the viewed time is cleared from the comment.
Parameters | |
---|---|
Name | Description |
name |
CommentName Required. The name of the comment.
Format:
|
actionType |
RecordActionOnCommentRequestTypesActionType Required. The action type of the recorded action. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Comment |
The RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
CommentName name = CommentName.FromProjectLocationOrderComment("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]");
RecordActionOnCommentRequest.Types.ActionType actionType = RecordActionOnCommentRequest.Types.ActionType.Unspecified;
// Make the request
Comment response = gDCHardwareManagementClient.RecordActionOnComment(name, actionType);
RecordActionOnComment(RecordActionOnCommentRequest, CallSettings)
public virtual Comment RecordActionOnComment(RecordActionOnCommentRequest request, CallSettings callSettings = null)
Record Action on a Comment. If the Action specified in the request is READ, the viewed time in the comment is set to the time the request was received. If the comment is already marked as read, subsequent calls will be ignored. If the Action is UNREAD, the viewed time is cleared from the comment.
Parameters | |
---|---|
Name | Description |
request |
RecordActionOnCommentRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
RecordActionOnCommentRequest request = new RecordActionOnCommentRequest
{
CommentName = CommentName.FromProjectLocationOrderComment("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]"),
ActionType = RecordActionOnCommentRequest.Types.ActionType.Unspecified,
};
// Make the request
Comment response = gDCHardwareManagementClient.RecordActionOnComment(request);
RecordActionOnComment(string, ActionType, CallSettings)
public virtual Comment RecordActionOnComment(string name, RecordActionOnCommentRequest.Types.ActionType actionType, CallSettings callSettings = null)
Record Action on a Comment. If the Action specified in the request is READ, the viewed time in the comment is set to the time the request was received. If the comment is already marked as read, subsequent calls will be ignored. If the Action is UNREAD, the viewed time is cleared from the comment.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the comment.
Format:
|
actionType |
RecordActionOnCommentRequestTypesActionType Required. The action type of the recorded action. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Comment |
The RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]/comments/[COMMENT]";
RecordActionOnCommentRequest.Types.ActionType actionType = RecordActionOnCommentRequest.Types.ActionType.Unspecified;
// Make the request
Comment response = gDCHardwareManagementClient.RecordActionOnComment(name, actionType);
RecordActionOnCommentAsync(CommentName, ActionType, CallSettings)
public virtual Task<Comment> RecordActionOnCommentAsync(CommentName name, RecordActionOnCommentRequest.Types.ActionType actionType, CallSettings callSettings = null)
Record Action on a Comment. If the Action specified in the request is READ, the viewed time in the comment is set to the time the request was received. If the comment is already marked as read, subsequent calls will be ignored. If the Action is UNREAD, the viewed time is cleared from the comment.
Parameters | |
---|---|
Name | Description |
name |
CommentName Required. The name of the comment.
Format:
|
actionType |
RecordActionOnCommentRequestTypesActionType Required. The action type of the recorded action. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskComment |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
CommentName name = CommentName.FromProjectLocationOrderComment("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]");
RecordActionOnCommentRequest.Types.ActionType actionType = RecordActionOnCommentRequest.Types.ActionType.Unspecified;
// Make the request
Comment response = await gDCHardwareManagementClient.RecordActionOnCommentAsync(name, actionType);
RecordActionOnCommentAsync(CommentName, ActionType, CancellationToken)
public virtual Task<Comment> RecordActionOnCommentAsync(CommentName name, RecordActionOnCommentRequest.Types.ActionType actionType, CancellationToken cancellationToken)
Record Action on a Comment. If the Action specified in the request is READ, the viewed time in the comment is set to the time the request was received. If the comment is already marked as read, subsequent calls will be ignored. If the Action is UNREAD, the viewed time is cleared from the comment.
Parameters | |
---|---|
Name | Description |
name |
CommentName Required. The name of the comment.
Format:
|
actionType |
RecordActionOnCommentRequestTypesActionType Required. The action type of the recorded action. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskComment |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
CommentName name = CommentName.FromProjectLocationOrderComment("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]");
RecordActionOnCommentRequest.Types.ActionType actionType = RecordActionOnCommentRequest.Types.ActionType.Unspecified;
// Make the request
Comment response = await gDCHardwareManagementClient.RecordActionOnCommentAsync(name, actionType);
RecordActionOnCommentAsync(RecordActionOnCommentRequest, CallSettings)
public virtual Task<Comment> RecordActionOnCommentAsync(RecordActionOnCommentRequest request, CallSettings callSettings = null)
Record Action on a Comment. If the Action specified in the request is READ, the viewed time in the comment is set to the time the request was received. If the comment is already marked as read, subsequent calls will be ignored. If the Action is UNREAD, the viewed time is cleared from the comment.
Parameters | |
---|---|
Name | Description |
request |
RecordActionOnCommentRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
RecordActionOnCommentRequest request = new RecordActionOnCommentRequest
{
CommentName = CommentName.FromProjectLocationOrderComment("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]"),
ActionType = RecordActionOnCommentRequest.Types.ActionType.Unspecified,
};
// Make the request
Comment response = await gDCHardwareManagementClient.RecordActionOnCommentAsync(request);
RecordActionOnCommentAsync(RecordActionOnCommentRequest, CancellationToken)
public virtual Task<Comment> RecordActionOnCommentAsync(RecordActionOnCommentRequest request, CancellationToken cancellationToken)
Record Action on a Comment. If the Action specified in the request is READ, the viewed time in the comment is set to the time the request was received. If the comment is already marked as read, subsequent calls will be ignored. If the Action is UNREAD, the viewed time is cleared from the comment.
Parameters | |
---|---|
Name | Description |
request |
RecordActionOnCommentRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
RecordActionOnCommentRequest request = new RecordActionOnCommentRequest
{
CommentName = CommentName.FromProjectLocationOrderComment("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]"),
ActionType = RecordActionOnCommentRequest.Types.ActionType.Unspecified,
};
// Make the request
Comment response = await gDCHardwareManagementClient.RecordActionOnCommentAsync(request);
RecordActionOnCommentAsync(string, ActionType, CallSettings)
public virtual Task<Comment> RecordActionOnCommentAsync(string name, RecordActionOnCommentRequest.Types.ActionType actionType, CallSettings callSettings = null)
Record Action on a Comment. If the Action specified in the request is READ, the viewed time in the comment is set to the time the request was received. If the comment is already marked as read, subsequent calls will be ignored. If the Action is UNREAD, the viewed time is cleared from the comment.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the comment.
Format:
|
actionType |
RecordActionOnCommentRequestTypesActionType Required. The action type of the recorded action. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskComment |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]/comments/[COMMENT]";
RecordActionOnCommentRequest.Types.ActionType actionType = RecordActionOnCommentRequest.Types.ActionType.Unspecified;
// Make the request
Comment response = await gDCHardwareManagementClient.RecordActionOnCommentAsync(name, actionType);
RecordActionOnCommentAsync(string, ActionType, CancellationToken)
public virtual Task<Comment> RecordActionOnCommentAsync(string name, RecordActionOnCommentRequest.Types.ActionType actionType, CancellationToken cancellationToken)
Record Action on a Comment. If the Action specified in the request is READ, the viewed time in the comment is set to the time the request was received. If the comment is already marked as read, subsequent calls will be ignored. If the Action is UNREAD, the viewed time is cleared from the comment.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the comment.
Format:
|
actionType |
RecordActionOnCommentRequestTypesActionType Required. The action type of the recorded action. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskComment |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]/comments/[COMMENT]";
RecordActionOnCommentRequest.Types.ActionType actionType = RecordActionOnCommentRequest.Types.ActionType.Unspecified;
// Make the request
Comment response = await gDCHardwareManagementClient.RecordActionOnCommentAsync(name, actionType);
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Returns | |
---|---|
Type | Description |
Task |
A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
SignalZoneState(SignalZoneStateRequest, CallSettings)
public virtual Operation<Zone, OperationMetadata> SignalZoneState(SignalZoneStateRequest request, CallSettings callSettings = null)
Signals the state of a zone.
Parameters | |
---|---|
Name | Description |
request |
SignalZoneStateRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
SignalZoneStateRequest request = new SignalZoneStateRequest
{
ZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
RequestId = "",
StateSignal = SignalZoneStateRequest.Types.StateSignal.Unspecified,
};
// Make the request
Operation<Zone, OperationMetadata> response = gDCHardwareManagementClient.SignalZoneState(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.PollOnceSignalZoneState(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;
}
SignalZoneState(ZoneName, StateSignal, CallSettings)
public virtual Operation<Zone, OperationMetadata> SignalZoneState(ZoneName name, SignalZoneStateRequest.Types.StateSignal stateSignal, CallSettings callSettings = null)
Signals the state of a zone.
Parameters | |
---|---|
Name | Description |
name |
ZoneName Required. The name of the zone.
Format: |
stateSignal |
SignalZoneStateRequestTypesStateSignal Required. The state signal to send for this zone. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationZoneOperationMetadata |
The RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
ZoneName name = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
SignalZoneStateRequest.Types.StateSignal stateSignal = SignalZoneStateRequest.Types.StateSignal.Unspecified;
// Make the request
Operation<Zone, OperationMetadata> response = gDCHardwareManagementClient.SignalZoneState(name, stateSignal);
// 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.PollOnceSignalZoneState(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;
}
SignalZoneState(string, StateSignal, CallSettings)
public virtual Operation<Zone, OperationMetadata> SignalZoneState(string name, SignalZoneStateRequest.Types.StateSignal stateSignal, CallSettings callSettings = null)
Signals the state of a zone.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the zone.
Format: |
stateSignal |
SignalZoneStateRequestTypesStateSignal Required. The state signal to send for this zone. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationZoneOperationMetadata |
The RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
SignalZoneStateRequest.Types.StateSignal stateSignal = SignalZoneStateRequest.Types.StateSignal.Unspecified;
// Make the request
Operation<Zone, OperationMetadata> response = gDCHardwareManagementClient.SignalZoneState(name, stateSignal);
// 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.PollOnceSignalZoneState(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;
}
SignalZoneStateAsync(SignalZoneStateRequest, CallSettings)
public virtual Task<Operation<Zone, OperationMetadata>> SignalZoneStateAsync(SignalZoneStateRequest request, CallSettings callSettings = null)
Signals the state of a zone.
Parameters | |
---|---|
Name | Description |
request |
SignalZoneStateRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
SignalZoneStateRequest request = new SignalZoneStateRequest
{
ZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
RequestId = "",
StateSignal = SignalZoneStateRequest.Types.StateSignal.Unspecified,
};
// Make the request
Operation<Zone, OperationMetadata> response = await gDCHardwareManagementClient.SignalZoneStateAsync(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.PollOnceSignalZoneStateAsync(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;
}
SignalZoneStateAsync(SignalZoneStateRequest, CancellationToken)
public virtual Task<Operation<Zone, OperationMetadata>> SignalZoneStateAsync(SignalZoneStateRequest request, CancellationToken cancellationToken)
Signals the state of a zone.
Parameters | |
---|---|
Name | Description |
request |
SignalZoneStateRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
SignalZoneStateRequest request = new SignalZoneStateRequest
{
ZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
RequestId = "",
StateSignal = SignalZoneStateRequest.Types.StateSignal.Unspecified,
};
// Make the request
Operation<Zone, OperationMetadata> response = await gDCHardwareManagementClient.SignalZoneStateAsync(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.PollOnceSignalZoneStateAsync(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;
}
SignalZoneStateAsync(ZoneName, StateSignal, CallSettings)
public virtual Task<Operation<Zone, OperationMetadata>> SignalZoneStateAsync(ZoneName name, SignalZoneStateRequest.Types.StateSignal stateSignal, CallSettings callSettings = null)
Signals the state of a zone.
Parameters | |
---|---|
Name | Description |
name |
ZoneName Required. The name of the zone.
Format: |
stateSignal |
SignalZoneStateRequestTypesStateSignal Required. The state signal to send for this zone. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationZoneOperationMetadata |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
ZoneName name = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
SignalZoneStateRequest.Types.StateSignal stateSignal = SignalZoneStateRequest.Types.StateSignal.Unspecified;
// Make the request
Operation<Zone, OperationMetadata> response = await gDCHardwareManagementClient.SignalZoneStateAsync(name, stateSignal);
// 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.PollOnceSignalZoneStateAsync(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;
}
SignalZoneStateAsync(ZoneName, StateSignal, CancellationToken)
public virtual Task<Operation<Zone, OperationMetadata>> SignalZoneStateAsync(ZoneName name, SignalZoneStateRequest.Types.StateSignal stateSignal, CancellationToken cancellationToken)
Signals the state of a zone.
Parameters | |
---|---|
Name | Description |
name |
ZoneName Required. The name of the zone.
Format: |
stateSignal |
SignalZoneStateRequestTypesStateSignal Required. The state signal to send for this zone. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationZoneOperationMetadata |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
ZoneName name = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
SignalZoneStateRequest.Types.StateSignal stateSignal = SignalZoneStateRequest.Types.StateSignal.Unspecified;
// Make the request
Operation<Zone, OperationMetadata> response = await gDCHardwareManagementClient.SignalZoneStateAsync(name, stateSignal);
// 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.PollOnceSignalZoneStateAsync(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;
}
SignalZoneStateAsync(string, StateSignal, CallSettings)
public virtual Task<Operation<Zone, OperationMetadata>> SignalZoneStateAsync(string name, SignalZoneStateRequest.Types.StateSignal stateSignal, CallSettings callSettings = null)
Signals the state of a zone.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the zone.
Format: |
stateSignal |
SignalZoneStateRequestTypesStateSignal Required. The state signal to send for this zone. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationZoneOperationMetadata |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
SignalZoneStateRequest.Types.StateSignal stateSignal = SignalZoneStateRequest.Types.StateSignal.Unspecified;
// Make the request
Operation<Zone, OperationMetadata> response = await gDCHardwareManagementClient.SignalZoneStateAsync(name, stateSignal);
// 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.PollOnceSignalZoneStateAsync(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;
}
SignalZoneStateAsync(string, StateSignal, CancellationToken)
public virtual Task<Operation<Zone, OperationMetadata>> SignalZoneStateAsync(string name, SignalZoneStateRequest.Types.StateSignal stateSignal, CancellationToken cancellationToken)
Signals the state of a zone.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the zone.
Format: |
stateSignal |
SignalZoneStateRequestTypesStateSignal Required. The state signal to send for this zone. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationZoneOperationMetadata |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
SignalZoneStateRequest.Types.StateSignal stateSignal = SignalZoneStateRequest.Types.StateSignal.Unspecified;
// Make the request
Operation<Zone, OperationMetadata> response = await gDCHardwareManagementClient.SignalZoneStateAsync(name, stateSignal);
// 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.PollOnceSignalZoneStateAsync(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;
}
SubmitOrder(OrderName, CallSettings)
public virtual Operation<Order, OperationMetadata> SubmitOrder(OrderName name, CallSettings callSettings = null)
Submits an order.
Parameters | |
---|---|
Name | Description |
name |
OrderName Required. The name of the order.
Format: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOrderOperationMetadata |
The RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
OrderName name = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
// Make the request
Operation<Order, OperationMetadata> response = gDCHardwareManagementClient.SubmitOrder(name);
// 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.PollOnceSubmitOrder(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;
}
SubmitOrder(SubmitOrderRequest, CallSettings)
public virtual Operation<Order, OperationMetadata> SubmitOrder(SubmitOrderRequest request, CallSettings callSettings = null)
Submits an order.
Parameters | |
---|---|
Name | Description |
request |
SubmitOrderRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
SubmitOrderRequest request = new SubmitOrderRequest
{
OrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
RequestId = "",
Type = SubmitOrderRequest.Types.Type.Unspecified,
};
// Make the request
Operation<Order, OperationMetadata> response = gDCHardwareManagementClient.SubmitOrder(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.PollOnceSubmitOrder(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;
}
SubmitOrder(string, CallSettings)
public virtual Operation<Order, OperationMetadata> SubmitOrder(string name, CallSettings callSettings = null)
Submits an order.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the order.
Format: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOrderOperationMetadata |
The RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]";
// Make the request
Operation<Order, OperationMetadata> response = gDCHardwareManagementClient.SubmitOrder(name);
// 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.PollOnceSubmitOrder(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;
}
SubmitOrderAsync(OrderName, CallSettings)
public virtual Task<Operation<Order, OperationMetadata>> SubmitOrderAsync(OrderName name, CallSettings callSettings = null)
Submits an order.
Parameters | |
---|---|
Name | Description |
name |
OrderName Required. The name of the order.
Format: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOrderOperationMetadata |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
OrderName name = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
// Make the request
Operation<Order, OperationMetadata> response = await gDCHardwareManagementClient.SubmitOrderAsync(name);
// 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.PollOnceSubmitOrderAsync(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;
}
SubmitOrderAsync(OrderName, CancellationToken)
public virtual Task<Operation<Order, OperationMetadata>> SubmitOrderAsync(OrderName name, CancellationToken cancellationToken)
Submits an order.
Parameters | |
---|---|
Name | Description |
name |
OrderName Required. The name of the order.
Format: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOrderOperationMetadata |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
OrderName name = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]");
// Make the request
Operation<Order, OperationMetadata> response = await gDCHardwareManagementClient.SubmitOrderAsync(name);
// 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.PollOnceSubmitOrderAsync(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;
}
SubmitOrderAsync(SubmitOrderRequest, CallSettings)
public virtual Task<Operation<Order, OperationMetadata>> SubmitOrderAsync(SubmitOrderRequest request, CallSettings callSettings = null)
Submits an order.
Parameters | |
---|---|
Name | Description |
request |
SubmitOrderRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
SubmitOrderRequest request = new SubmitOrderRequest
{
OrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
RequestId = "",
Type = SubmitOrderRequest.Types.Type.Unspecified,
};
// Make the request
Operation<Order, OperationMetadata> response = await gDCHardwareManagementClient.SubmitOrderAsync(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.PollOnceSubmitOrderAsync(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;
}
SubmitOrderAsync(SubmitOrderRequest, CancellationToken)
public virtual Task<Operation<Order, OperationMetadata>> SubmitOrderAsync(SubmitOrderRequest request, CancellationToken cancellationToken)
Submits an order.
Parameters | |
---|---|
Name | Description |
request |
SubmitOrderRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
SubmitOrderRequest request = new SubmitOrderRequest
{
OrderName = OrderName.FromProjectLocationOrder("[PROJECT]", "[LOCATION]", "[ORDER]"),
RequestId = "",
Type = SubmitOrderRequest.Types.Type.Unspecified,
};
// Make the request
Operation<Order, OperationMetadata> response = await gDCHardwareManagementClient.SubmitOrderAsync(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.PollOnceSubmitOrderAsync(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;
}
SubmitOrderAsync(string, CallSettings)
public virtual Task<Operation<Order, OperationMetadata>> SubmitOrderAsync(string name, CallSettings callSettings = null)
Submits an order.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the order.
Format: |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOrderOperationMetadata |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]";
// Make the request
Operation<Order, OperationMetadata> response = await gDCHardwareManagementClient.SubmitOrderAsync(name);
// 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.PollOnceSubmitOrderAsync(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;
}
SubmitOrderAsync(string, CancellationToken)
public virtual Task<Operation<Order, OperationMetadata>> SubmitOrderAsync(string name, CancellationToken cancellationToken)
Submits an order.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the order.
Format: |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOrderOperationMetadata |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/orders/[ORDER]";
// Make the request
Operation<Order, OperationMetadata> response = await gDCHardwareManagementClient.SubmitOrderAsync(name);
// 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.PollOnceSubmitOrderAsync(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;
}
UpdateHardware(Hardware, FieldMask, CallSettings)
public virtual Operation<Hardware, OperationMetadata> UpdateHardware(Hardware hardware, FieldMask updateMask, CallSettings callSettings = null)
Updates hardware parameters.
Parameters | |
---|---|
Name | Description |
hardware |
Hardware Required. The hardware to update. |
updateMask |
FieldMask Required. A mask to specify the fields in the Hardware to overwrite with this update. The fields specified in the update_mask are relative to the hardware, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationHardwareOperationMetadata |
The RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
Hardware hardware = new Hardware();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Hardware, OperationMetadata> response = gDCHardwareManagementClient.UpdateHardware(hardware, updateMask);
// 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.PollOnceUpdateHardware(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;
}
UpdateHardware(UpdateHardwareRequest, CallSettings)
public virtual Operation<Hardware, OperationMetadata> UpdateHardware(UpdateHardwareRequest request, CallSettings callSettings = null)
Updates hardware parameters.
Parameters | |
---|---|
Name | Description |
request |
UpdateHardwareRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
UpdateHardwareRequest request = new UpdateHardwareRequest
{
UpdateMask = new FieldMask(),
Hardware = new Hardware(),
RequestId = "",
};
// Make the request
Operation<Hardware, OperationMetadata> response = gDCHardwareManagementClient.UpdateHardware(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.PollOnceUpdateHardware(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;
}
UpdateHardwareAsync(Hardware, FieldMask, CallSettings)
public virtual Task<Operation<Hardware, OperationMetadata>> UpdateHardwareAsync(Hardware hardware, FieldMask updateMask, CallSettings callSettings = null)
Updates hardware parameters.
Parameters | |
---|---|
Name | Description |
hardware |
Hardware Required. The hardware to update. |
updateMask |
FieldMask Required. A mask to specify the fields in the Hardware to overwrite with this update. The fields specified in the update_mask are relative to the hardware, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationHardwareOperationMetadata |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
Hardware hardware = new Hardware();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Hardware, OperationMetadata> response = await gDCHardwareManagementClient.UpdateHardwareAsync(hardware, updateMask);
// 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.PollOnceUpdateHardwareAsync(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;
}
UpdateHardwareAsync(Hardware, FieldMask, CancellationToken)
public virtual Task<Operation<Hardware, OperationMetadata>> UpdateHardwareAsync(Hardware hardware, FieldMask updateMask, CancellationToken cancellationToken)
Updates hardware parameters.
Parameters | |
---|---|
Name | Description |
hardware |
Hardware Required. The hardware to update. |
updateMask |
FieldMask Required. A mask to specify the fields in the Hardware to overwrite with this update. The fields specified in the update_mask are relative to the hardware, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationHardwareOperationMetadata |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
Hardware hardware = new Hardware();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Hardware, OperationMetadata> response = await gDCHardwareManagementClient.UpdateHardwareAsync(hardware, updateMask);
// 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.PollOnceUpdateHardwareAsync(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;
}
UpdateHardwareAsync(UpdateHardwareRequest, CallSettings)
public virtual Task<Operation<Hardware, OperationMetadata>> UpdateHardwareAsync(UpdateHardwareRequest request, CallSettings callSettings = null)
Updates hardware parameters.
Parameters | |
---|---|
Name | Description |
request |
UpdateHardwareRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
UpdateHardwareRequest request = new UpdateHardwareRequest
{
UpdateMask = new FieldMask(),
Hardware = new Hardware(),
RequestId = "",
};
// Make the request
Operation<Hardware, OperationMetadata> response = await gDCHardwareManagementClient.UpdateHardwareAsync(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.PollOnceUpdateHardwareAsync(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;
}
UpdateHardwareAsync(UpdateHardwareRequest, CancellationToken)
public virtual Task<Operation<Hardware, OperationMetadata>> UpdateHardwareAsync(UpdateHardwareRequest request, CancellationToken cancellationToken)
Updates hardware parameters.
Parameters | |
---|---|
Name | Description |
request |
UpdateHardwareRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
UpdateHardwareRequest request = new UpdateHardwareRequest
{
UpdateMask = new FieldMask(),
Hardware = new Hardware(),
RequestId = "",
};
// Make the request
Operation<Hardware, OperationMetadata> response = await gDCHardwareManagementClient.UpdateHardwareAsync(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.PollOnceUpdateHardwareAsync(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;
}
UpdateHardwareGroup(HardwareGroup, FieldMask, CallSettings)
public virtual Operation<HardwareGroup, OperationMetadata> UpdateHardwareGroup(HardwareGroup hardwareGroup, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a hardware group.
Parameters | |
---|---|
Name | Description |
hardwareGroup |
HardwareGroup Required. The hardware group to update. |
updateMask |
FieldMask Required. A mask to specify the fields in the HardwareGroup to overwrite with this update. The fields specified in the update_mask are relative to the hardware group, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationHardwareGroupOperationMetadata |
The RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
HardwareGroup hardwareGroup = new HardwareGroup();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<HardwareGroup, OperationMetadata> response = gDCHardwareManagementClient.UpdateHardwareGroup(hardwareGroup, updateMask);
// 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.PollOnceUpdateHardwareGroup(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;
}
UpdateHardwareGroup(UpdateHardwareGroupRequest, CallSettings)
public virtual Operation<HardwareGroup, OperationMetadata> UpdateHardwareGroup(UpdateHardwareGroupRequest request, CallSettings callSettings = null)
Updates the parameters of a hardware group.
Parameters | |
---|---|
Name | Description |
request |
UpdateHardwareGroupRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
UpdateHardwareGroupRequest request = new UpdateHardwareGroupRequest
{
UpdateMask = new FieldMask(),
HardwareGroup = new HardwareGroup(),
RequestId = "",
};
// Make the request
Operation<HardwareGroup, OperationMetadata> response = gDCHardwareManagementClient.UpdateHardwareGroup(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.PollOnceUpdateHardwareGroup(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;
}
UpdateHardwareGroupAsync(HardwareGroup, FieldMask, CallSettings)
public virtual Task<Operation<HardwareGroup, OperationMetadata>> UpdateHardwareGroupAsync(HardwareGroup hardwareGroup, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a hardware group.
Parameters | |
---|---|
Name | Description |
hardwareGroup |
HardwareGroup Required. The hardware group to update. |
updateMask |
FieldMask Required. A mask to specify the fields in the HardwareGroup to overwrite with this update. The fields specified in the update_mask are relative to the hardware group, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationHardwareGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
HardwareGroup hardwareGroup = new HardwareGroup();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<HardwareGroup, OperationMetadata> response = await gDCHardwareManagementClient.UpdateHardwareGroupAsync(hardwareGroup, updateMask);
// 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.PollOnceUpdateHardwareGroupAsync(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;
}
UpdateHardwareGroupAsync(HardwareGroup, FieldMask, CancellationToken)
public virtual Task<Operation<HardwareGroup, OperationMetadata>> UpdateHardwareGroupAsync(HardwareGroup hardwareGroup, FieldMask updateMask, CancellationToken cancellationToken)
Updates the parameters of a hardware group.
Parameters | |
---|---|
Name | Description |
hardwareGroup |
HardwareGroup Required. The hardware group to update. |
updateMask |
FieldMask Required. A mask to specify the fields in the HardwareGroup to overwrite with this update. The fields specified in the update_mask are relative to the hardware group, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationHardwareGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
HardwareGroup hardwareGroup = new HardwareGroup();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<HardwareGroup, OperationMetadata> response = await gDCHardwareManagementClient.UpdateHardwareGroupAsync(hardwareGroup, updateMask);
// 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.PollOnceUpdateHardwareGroupAsync(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;
}
UpdateHardwareGroupAsync(UpdateHardwareGroupRequest, CallSettings)
public virtual Task<Operation<HardwareGroup, OperationMetadata>> UpdateHardwareGroupAsync(UpdateHardwareGroupRequest request, CallSettings callSettings = null)
Updates the parameters of a hardware group.
Parameters | |
---|---|
Name | Description |
request |
UpdateHardwareGroupRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
UpdateHardwareGroupRequest request = new UpdateHardwareGroupRequest
{
UpdateMask = new FieldMask(),
HardwareGroup = new HardwareGroup(),
RequestId = "",
};
// Make the request
Operation<HardwareGroup, OperationMetadata> response = await gDCHardwareManagementClient.UpdateHardwareGroupAsync(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.PollOnceUpdateHardwareGroupAsync(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;
}
UpdateHardwareGroupAsync(UpdateHardwareGroupRequest, CancellationToken)
public virtual Task<Operation<HardwareGroup, OperationMetadata>> UpdateHardwareGroupAsync(UpdateHardwareGroupRequest request, CancellationToken cancellationToken)
Updates the parameters of a hardware group.
Parameters | |
---|---|
Name | Description |
request |
UpdateHardwareGroupRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
UpdateHardwareGroupRequest request = new UpdateHardwareGroupRequest
{
UpdateMask = new FieldMask(),
HardwareGroup = new HardwareGroup(),
RequestId = "",
};
// Make the request
Operation<HardwareGroup, OperationMetadata> response = await gDCHardwareManagementClient.UpdateHardwareGroupAsync(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.PollOnceUpdateHardwareGroupAsync(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;
}
UpdateOrder(Order, FieldMask, CallSettings)
public virtual Operation<Order, OperationMetadata> UpdateOrder(Order order, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of an order.
Parameters | |
---|---|
Name | Description |
order |
Order Required. The order to update. |
updateMask |
FieldMask Required. A mask to specify the fields in the Order to overwrite with this update. The fields specified in the update_mask are relative to the order, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOrderOperationMetadata |
The RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
Order order = new Order();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Order, OperationMetadata> response = gDCHardwareManagementClient.UpdateOrder(order, updateMask);
// 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.PollOnceUpdateOrder(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;
}
UpdateOrder(UpdateOrderRequest, CallSettings)
public virtual Operation<Order, OperationMetadata> UpdateOrder(UpdateOrderRequest request, CallSettings callSettings = null)
Updates the parameters of an order.
Parameters | |
---|---|
Name | Description |
request |
UpdateOrderRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
UpdateOrderRequest request = new UpdateOrderRequest
{
UpdateMask = new FieldMask(),
Order = new Order(),
RequestId = "",
};
// Make the request
Operation<Order, OperationMetadata> response = gDCHardwareManagementClient.UpdateOrder(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.PollOnceUpdateOrder(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;
}
UpdateOrderAsync(Order, FieldMask, CallSettings)
public virtual Task<Operation<Order, OperationMetadata>> UpdateOrderAsync(Order order, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of an order.
Parameters | |
---|---|
Name | Description |
order |
Order Required. The order to update. |
updateMask |
FieldMask Required. A mask to specify the fields in the Order to overwrite with this update. The fields specified in the update_mask are relative to the order, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOrderOperationMetadata |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
Order order = new Order();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Order, OperationMetadata> response = await gDCHardwareManagementClient.UpdateOrderAsync(order, updateMask);
// 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.PollOnceUpdateOrderAsync(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;
}
UpdateOrderAsync(Order, FieldMask, CancellationToken)
public virtual Task<Operation<Order, OperationMetadata>> UpdateOrderAsync(Order order, FieldMask updateMask, CancellationToken cancellationToken)
Updates the parameters of an order.
Parameters | |
---|---|
Name | Description |
order |
Order Required. The order to update. |
updateMask |
FieldMask Required. A mask to specify the fields in the Order to overwrite with this update. The fields specified in the update_mask are relative to the order, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOrderOperationMetadata |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
Order order = new Order();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Order, OperationMetadata> response = await gDCHardwareManagementClient.UpdateOrderAsync(order, updateMask);
// 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.PollOnceUpdateOrderAsync(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;
}
UpdateOrderAsync(UpdateOrderRequest, CallSettings)
public virtual Task<Operation<Order, OperationMetadata>> UpdateOrderAsync(UpdateOrderRequest request, CallSettings callSettings = null)
Updates the parameters of an order.
Parameters | |
---|---|
Name | Description |
request |
UpdateOrderRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
UpdateOrderRequest request = new UpdateOrderRequest
{
UpdateMask = new FieldMask(),
Order = new Order(),
RequestId = "",
};
// Make the request
Operation<Order, OperationMetadata> response = await gDCHardwareManagementClient.UpdateOrderAsync(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.PollOnceUpdateOrderAsync(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;
}
UpdateOrderAsync(UpdateOrderRequest, CancellationToken)
public virtual Task<Operation<Order, OperationMetadata>> UpdateOrderAsync(UpdateOrderRequest request, CancellationToken cancellationToken)
Updates the parameters of an order.
Parameters | |
---|---|
Name | Description |
request |
UpdateOrderRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
UpdateOrderRequest request = new UpdateOrderRequest
{
UpdateMask = new FieldMask(),
Order = new Order(),
RequestId = "",
};
// Make the request
Operation<Order, OperationMetadata> response = await gDCHardwareManagementClient.UpdateOrderAsync(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.PollOnceUpdateOrderAsync(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;
}
UpdateSite(Site, FieldMask, CallSettings)
public virtual Operation<Site, OperationMetadata> UpdateSite(Site site, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a site.
Parameters | |
---|---|
Name | Description |
site |
Site Required. The site to update. |
updateMask |
FieldMask Required. A mask to specify the fields in the Site to overwrite with this update. The fields specified in the update_mask are relative to the site, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationSiteOperationMetadata |
The RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
Site site = new Site();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Site, OperationMetadata> response = gDCHardwareManagementClient.UpdateSite(site, updateMask);
// 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.PollOnceUpdateSite(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;
}
UpdateSite(UpdateSiteRequest, CallSettings)
public virtual Operation<Site, OperationMetadata> UpdateSite(UpdateSiteRequest request, CallSettings callSettings = null)
Updates the parameters of a site.
Parameters | |
---|---|
Name | Description |
request |
UpdateSiteRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
UpdateSiteRequest request = new UpdateSiteRequest
{
UpdateMask = new FieldMask(),
Site = new Site(),
RequestId = "",
};
// Make the request
Operation<Site, OperationMetadata> response = gDCHardwareManagementClient.UpdateSite(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.PollOnceUpdateSite(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;
}
UpdateSiteAsync(Site, FieldMask, CallSettings)
public virtual Task<Operation<Site, OperationMetadata>> UpdateSiteAsync(Site site, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a site.
Parameters | |
---|---|
Name | Description |
site |
Site Required. The site to update. |
updateMask |
FieldMask Required. A mask to specify the fields in the Site to overwrite with this update. The fields specified in the update_mask are relative to the site, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationSiteOperationMetadata |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
Site site = new Site();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Site, OperationMetadata> response = await gDCHardwareManagementClient.UpdateSiteAsync(site, updateMask);
// 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.PollOnceUpdateSiteAsync(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;
}
UpdateSiteAsync(Site, FieldMask, CancellationToken)
public virtual Task<Operation<Site, OperationMetadata>> UpdateSiteAsync(Site site, FieldMask updateMask, CancellationToken cancellationToken)
Updates the parameters of a site.
Parameters | |
---|---|
Name | Description |
site |
Site Required. The site to update. |
updateMask |
FieldMask Required. A mask to specify the fields in the Site to overwrite with this update. The fields specified in the update_mask are relative to the site, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationSiteOperationMetadata |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
Site site = new Site();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Site, OperationMetadata> response = await gDCHardwareManagementClient.UpdateSiteAsync(site, updateMask);
// 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.PollOnceUpdateSiteAsync(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;
}
UpdateSiteAsync(UpdateSiteRequest, CallSettings)
public virtual Task<Operation<Site, OperationMetadata>> UpdateSiteAsync(UpdateSiteRequest request, CallSettings callSettings = null)
Updates the parameters of a site.
Parameters | |
---|---|
Name | Description |
request |
UpdateSiteRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
UpdateSiteRequest request = new UpdateSiteRequest
{
UpdateMask = new FieldMask(),
Site = new Site(),
RequestId = "",
};
// Make the request
Operation<Site, OperationMetadata> response = await gDCHardwareManagementClient.UpdateSiteAsync(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.PollOnceUpdateSiteAsync(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;
}
UpdateSiteAsync(UpdateSiteRequest, CancellationToken)
public virtual Task<Operation<Site, OperationMetadata>> UpdateSiteAsync(UpdateSiteRequest request, CancellationToken cancellationToken)
Updates the parameters of a site.
Parameters | |
---|---|
Name | Description |
request |
UpdateSiteRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
UpdateSiteRequest request = new UpdateSiteRequest
{
UpdateMask = new FieldMask(),
Site = new Site(),
RequestId = "",
};
// Make the request
Operation<Site, OperationMetadata> response = await gDCHardwareManagementClient.UpdateSiteAsync(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.PollOnceUpdateSiteAsync(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;
}
UpdateZone(UpdateZoneRequest, CallSettings)
public virtual Operation<Zone, OperationMetadata> UpdateZone(UpdateZoneRequest request, CallSettings callSettings = null)
Updates the parameters of a zone.
Parameters | |
---|---|
Name | Description |
request |
UpdateZoneRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
UpdateZoneRequest request = new UpdateZoneRequest
{
UpdateMask = new FieldMask(),
Zone = new Zone(),
RequestId = "",
};
// Make the request
Operation<Zone, OperationMetadata> response = gDCHardwareManagementClient.UpdateZone(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.PollOnceUpdateZone(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;
}
UpdateZone(Zone, FieldMask, CallSettings)
public virtual Operation<Zone, OperationMetadata> UpdateZone(Zone zone, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a zone.
Parameters | |
---|---|
Name | Description |
zone |
Zone Required. The zone to update. |
updateMask |
FieldMask Required. A mask to specify the fields in the Zone to overwrite with this update. The fields specified in the update_mask are relative to the zone, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationZoneOperationMetadata |
The RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = GDCHardwareManagementClient.Create();
// Initialize request argument(s)
Zone zone = new Zone();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Zone, OperationMetadata> response = gDCHardwareManagementClient.UpdateZone(zone, updateMask);
// 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.PollOnceUpdateZone(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;
}
UpdateZoneAsync(UpdateZoneRequest, CallSettings)
public virtual Task<Operation<Zone, OperationMetadata>> UpdateZoneAsync(UpdateZoneRequest request, CallSettings callSettings = null)
Updates the parameters of a zone.
Parameters | |
---|---|
Name | Description |
request |
UpdateZoneRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
UpdateZoneRequest request = new UpdateZoneRequest
{
UpdateMask = new FieldMask(),
Zone = new Zone(),
RequestId = "",
};
// Make the request
Operation<Zone, OperationMetadata> response = await gDCHardwareManagementClient.UpdateZoneAsync(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.PollOnceUpdateZoneAsync(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;
}
UpdateZoneAsync(UpdateZoneRequest, CancellationToken)
public virtual Task<Operation<Zone, OperationMetadata>> UpdateZoneAsync(UpdateZoneRequest request, CancellationToken cancellationToken)
Updates the parameters of a zone.
Parameters | |
---|---|
Name | Description |
request |
UpdateZoneRequest 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. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
UpdateZoneRequest request = new UpdateZoneRequest
{
UpdateMask = new FieldMask(),
Zone = new Zone(),
RequestId = "",
};
// Make the request
Operation<Zone, OperationMetadata> response = await gDCHardwareManagementClient.UpdateZoneAsync(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.PollOnceUpdateZoneAsync(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;
}
UpdateZoneAsync(Zone, FieldMask, CallSettings)
public virtual Task<Operation<Zone, OperationMetadata>> UpdateZoneAsync(Zone zone, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a zone.
Parameters | |
---|---|
Name | Description |
zone |
Zone Required. The zone to update. |
updateMask |
FieldMask Required. A mask to specify the fields in the Zone to overwrite with this update. The fields specified in the update_mask are relative to the zone, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationZoneOperationMetadata |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
Zone zone = new Zone();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Zone, OperationMetadata> response = await gDCHardwareManagementClient.UpdateZoneAsync(zone, updateMask);
// 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.PollOnceUpdateZoneAsync(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;
}
UpdateZoneAsync(Zone, FieldMask, CancellationToken)
public virtual Task<Operation<Zone, OperationMetadata>> UpdateZoneAsync(Zone zone, FieldMask updateMask, CancellationToken cancellationToken)
Updates the parameters of a zone.
Parameters | |
---|---|
Name | Description |
zone |
Zone Required. The zone to update. |
updateMask |
FieldMask Required. A mask to specify the fields in the Zone to overwrite with this update. The fields specified in the update_mask are relative to the zone, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationZoneOperationMetadata |
A Task containing the RPC response. |
// Create client
GDCHardwareManagementClient gDCHardwareManagementClient = await GDCHardwareManagementClient.CreateAsync();
// Initialize request argument(s)
Zone zone = new Zone();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Zone, OperationMetadata> response = await gDCHardwareManagementClient.UpdateZoneAsync(zone, updateMask);
// 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.PollOnceUpdateZoneAsync(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;
}