GitHub Repository | Product Reference | RPC Documentation |
Service Description: The GDC Hardware Management service.
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
Order response = gDCHardwareManagementClient.getOrder(name);
}
Note: close() needs to be called on the GDCHardwareManagementClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
Method | Description | Method Variants |
---|---|---|
ListOrders |
Lists orders in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetOrder |
Gets details of an order. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateOrder |
Creates a new order in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateOrder |
Updates the parameters of an order. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteOrder |
Deletes an order. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
SubmitOrder |
Submits an order. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListSites |
Lists sites in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetSite |
Gets details of a site. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateSite |
Creates a new site in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateSite |
Updates the parameters of a site. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteSite |
Deletes a site. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListHardwareGroups |
Lists hardware groups in a given order. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetHardwareGroup |
Gets details of a hardware group. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateHardwareGroup |
Creates a new hardware group in a given order. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateHardwareGroup |
Updates the parameters of a hardware group. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteHardwareGroup |
Deletes a hardware group. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListHardware |
Lists hardware in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetHardware |
Gets hardware details. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateHardware |
Creates new hardware in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateHardware |
Updates hardware parameters. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteHardware |
Deletes hardware. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListComments |
Lists the comments on an order. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetComment |
Gets the content of a comment. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateComment |
Creates a new comment on an order. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
RecordActionOnComment |
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. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListChangeLogEntries |
Lists the changes made to an order. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetChangeLogEntry |
Gets details of a change to an order. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListSkus |
Lists SKUs for a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetSku |
Gets details of an SKU. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListZones |
Lists zones in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetZone |
Gets details of a zone. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateZone |
Creates a new zone in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateZone |
Updates the parameters of a zone. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteZone |
Deletes a zone. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
SignalZoneState |
Signals the state of a zone. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListLocations |
Lists information about the supported locations for this service. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetLocation |
Gets information about a location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of GDCHardwareManagementSettings to create(). For example:
To customize credentials:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
GDCHardwareManagementSettings gDCHardwareManagementSettings =
GDCHardwareManagementSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create(gDCHardwareManagementSettings);
To customize the endpoint:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
GDCHardwareManagementSettings gDCHardwareManagementSettings =
GDCHardwareManagementSettings.newBuilder().setEndpoint(myEndpoint).build();
GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create(gDCHardwareManagementSettings);
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
GDCHardwareManagementSettings gDCHardwareManagementSettings =
GDCHardwareManagementSettings.newHttpJsonBuilder().build();
GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create(gDCHardwareManagementSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
Static Methods
create()
public static final GDCHardwareManagementClient create()
Constructs an instance of GDCHardwareManagementClient with default settings.
Returns | |
---|---|
Type | Description |
GDCHardwareManagementClient |
Exceptions | |
---|---|
Type | Description |
IOException |
create(GDCHardwareManagementSettings settings)
public static final GDCHardwareManagementClient create(GDCHardwareManagementSettings settings)
Constructs an instance of GDCHardwareManagementClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.
Parameter | |
---|---|
Name | Description |
settings |
GDCHardwareManagementSettings |
Returns | |
---|---|
Type | Description |
GDCHardwareManagementClient |
Exceptions | |
---|---|
Type | Description |
IOException |
create(GDCHardwareManagementStub stub)
public static final GDCHardwareManagementClient create(GDCHardwareManagementStub stub)
Constructs an instance of GDCHardwareManagementClient, using the given stub for making calls. This is for advanced usage - prefer using create(GDCHardwareManagementSettings).
Parameter | |
---|---|
Name | Description |
stub |
GDCHardwareManagementStub |
Returns | |
---|---|
Type | Description |
GDCHardwareManagementClient |
Constructors
GDCHardwareManagementClient(GDCHardwareManagementSettings settings)
protected GDCHardwareManagementClient(GDCHardwareManagementSettings settings)
Constructs an instance of GDCHardwareManagementClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
Parameter | |
---|---|
Name | Description |
settings |
GDCHardwareManagementSettings |
GDCHardwareManagementClient(GDCHardwareManagementStub stub)
protected GDCHardwareManagementClient(GDCHardwareManagementStub stub)
Parameter | |
---|---|
Name | Description |
stub |
GDCHardwareManagementStub |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters | |
---|---|
Name | Description |
duration |
long |
unit |
TimeUnit |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
InterruptedException |
close()
public final void close()
createCommentAsync(CreateCommentRequest request)
public final OperationFuture<Comment,OperationMetadata> createCommentAsync(CreateCommentRequest request)
Creates a new comment on an order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
CreateCommentRequest request =
CreateCommentRequest.newBuilder()
.setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
.setCommentId("commentId-1495016486")
.setComment(Comment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Comment response = gDCHardwareManagementClient.createCommentAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
CreateCommentRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Comment,OperationMetadata> |
createCommentAsync(OrderName parent, Comment comment, String commentId)
public final OperationFuture<Comment,OperationMetadata> createCommentAsync(OrderName parent, Comment comment, String commentId)
Creates a new comment on an order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
Comment comment = Comment.newBuilder().build();
String commentId = "commentId-1495016486";
Comment response =
gDCHardwareManagementClient.createCommentAsync(parent, comment, commentId).get();
}
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. |
Returns | |
---|---|
Type | Description |
OperationFuture<Comment,OperationMetadata> |
createCommentAsync(String parent, Comment comment, String commentId)
public final OperationFuture<Comment,OperationMetadata> createCommentAsync(String parent, Comment comment, String commentId)
Creates a new comment on an order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
String parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
Comment comment = Comment.newBuilder().build();
String commentId = "commentId-1495016486";
Comment response =
gDCHardwareManagementClient.createCommentAsync(parent, comment, commentId).get();
}
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. |
Returns | |
---|---|
Type | Description |
OperationFuture<Comment,OperationMetadata> |
createCommentCallable()
public final UnaryCallable<CreateCommentRequest,Operation> createCommentCallable()
Creates a new comment on an order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
CreateCommentRequest request =
CreateCommentRequest.newBuilder()
.setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
.setCommentId("commentId-1495016486")
.setComment(Comment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
gDCHardwareManagementClient.createCommentCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateCommentRequest,Operation> |
createCommentOperationCallable()
public final OperationCallable<CreateCommentRequest,Comment,OperationMetadata> createCommentOperationCallable()
Creates a new comment on an order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
CreateCommentRequest request =
CreateCommentRequest.newBuilder()
.setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
.setCommentId("commentId-1495016486")
.setComment(Comment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Comment, OperationMetadata> future =
gDCHardwareManagementClient.createCommentOperationCallable().futureCall(request);
// Do something.
Comment response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<CreateCommentRequest,Comment,OperationMetadata> |
createHardwareAsync(CreateHardwareRequest request)
public final OperationFuture<Hardware,OperationMetadata> createHardwareAsync(CreateHardwareRequest request)
Creates new hardware in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
CreateHardwareRequest request =
CreateHardwareRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setHardwareId("hardwareId680924451")
.setHardware(Hardware.newBuilder().build())
.build();
Hardware response = gDCHardwareManagementClient.createHardwareAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
CreateHardwareRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Hardware,OperationMetadata> |
createHardwareAsync(LocationName parent, Hardware hardware, String hardwareId)
public final OperationFuture<Hardware,OperationMetadata> createHardwareAsync(LocationName parent, Hardware hardware, String hardwareId)
Creates new hardware in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Hardware hardware = Hardware.newBuilder().build();
String hardwareId = "hardwareId680924451";
Hardware response =
gDCHardwareManagementClient.createHardwareAsync(parent, hardware, hardwareId).get();
}
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. |
Returns | |
---|---|
Type | Description |
OperationFuture<Hardware,OperationMetadata> |
createHardwareAsync(String parent, Hardware hardware, String hardwareId)
public final OperationFuture<Hardware,OperationMetadata> createHardwareAsync(String parent, Hardware hardware, String hardwareId)
Creates new hardware in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Hardware hardware = Hardware.newBuilder().build();
String hardwareId = "hardwareId680924451";
Hardware response =
gDCHardwareManagementClient.createHardwareAsync(parent, hardware, hardwareId).get();
}
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. |
Returns | |
---|---|
Type | Description |
OperationFuture<Hardware,OperationMetadata> |
createHardwareCallable()
public final UnaryCallable<CreateHardwareRequest,Operation> createHardwareCallable()
Creates new hardware in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
CreateHardwareRequest request =
CreateHardwareRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setHardwareId("hardwareId680924451")
.setHardware(Hardware.newBuilder().build())
.build();
ApiFuture<Operation> future =
gDCHardwareManagementClient.createHardwareCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateHardwareRequest,Operation> |
createHardwareGroupAsync(CreateHardwareGroupRequest request)
public final OperationFuture<HardwareGroup,OperationMetadata> createHardwareGroupAsync(CreateHardwareGroupRequest request)
Creates a new hardware group in a given order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
CreateHardwareGroupRequest request =
CreateHardwareGroupRequest.newBuilder()
.setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
.setHardwareGroupId("hardwareGroupId-1961682702")
.setHardwareGroup(HardwareGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
HardwareGroup response = gDCHardwareManagementClient.createHardwareGroupAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
CreateHardwareGroupRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<HardwareGroup,OperationMetadata> |
createHardwareGroupAsync(OrderName parent, HardwareGroup hardwareGroup, String hardwareGroupId)
public final OperationFuture<HardwareGroup,OperationMetadata> createHardwareGroupAsync(OrderName parent, HardwareGroup hardwareGroup, String hardwareGroupId)
Creates a new hardware group in a given order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build();
String hardwareGroupId = "hardwareGroupId-1961682702";
HardwareGroup response =
gDCHardwareManagementClient
.createHardwareGroupAsync(parent, hardwareGroup, hardwareGroupId)
.get();
}
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. |
Returns | |
---|---|
Type | Description |
OperationFuture<HardwareGroup,OperationMetadata> |
createHardwareGroupAsync(String parent, HardwareGroup hardwareGroup, String hardwareGroupId)
public final OperationFuture<HardwareGroup,OperationMetadata> createHardwareGroupAsync(String parent, HardwareGroup hardwareGroup, String hardwareGroupId)
Creates a new hardware group in a given order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
String parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build();
String hardwareGroupId = "hardwareGroupId-1961682702";
HardwareGroup response =
gDCHardwareManagementClient
.createHardwareGroupAsync(parent, hardwareGroup, hardwareGroupId)
.get();
}
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. |
Returns | |
---|---|
Type | Description |
OperationFuture<HardwareGroup,OperationMetadata> |
createHardwareGroupCallable()
public final UnaryCallable<CreateHardwareGroupRequest,Operation> createHardwareGroupCallable()
Creates a new hardware group in a given order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
CreateHardwareGroupRequest request =
CreateHardwareGroupRequest.newBuilder()
.setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
.setHardwareGroupId("hardwareGroupId-1961682702")
.setHardwareGroup(HardwareGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
gDCHardwareManagementClient.createHardwareGroupCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateHardwareGroupRequest,Operation> |
createHardwareGroupOperationCallable()
public final OperationCallable<CreateHardwareGroupRequest,HardwareGroup,OperationMetadata> createHardwareGroupOperationCallable()
Creates a new hardware group in a given order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
CreateHardwareGroupRequest request =
CreateHardwareGroupRequest.newBuilder()
.setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
.setHardwareGroupId("hardwareGroupId-1961682702")
.setHardwareGroup(HardwareGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<HardwareGroup, OperationMetadata> future =
gDCHardwareManagementClient.createHardwareGroupOperationCallable().futureCall(request);
// Do something.
HardwareGroup response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<CreateHardwareGroupRequest,HardwareGroup,OperationMetadata> |
createHardwareOperationCallable()
public final OperationCallable<CreateHardwareRequest,Hardware,OperationMetadata> createHardwareOperationCallable()
Creates new hardware in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
CreateHardwareRequest request =
CreateHardwareRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setHardwareId("hardwareId680924451")
.setHardware(Hardware.newBuilder().build())
.build();
OperationFuture<Hardware, OperationMetadata> future =
gDCHardwareManagementClient.createHardwareOperationCallable().futureCall(request);
// Do something.
Hardware response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<CreateHardwareRequest,Hardware,OperationMetadata> |
createOrderAsync(CreateOrderRequest request)
public final OperationFuture<Order,OperationMetadata> createOrderAsync(CreateOrderRequest request)
Creates a new order in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
CreateOrderRequest request =
CreateOrderRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setOrderId("orderId-1207110391")
.setOrder(Order.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Order response = gDCHardwareManagementClient.createOrderAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
CreateOrderRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Order,OperationMetadata> |
createOrderAsync(LocationName parent, Order order, String orderId)
public final OperationFuture<Order,OperationMetadata> createOrderAsync(LocationName parent, Order order, String orderId)
Creates a new order in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Order order = Order.newBuilder().build();
String orderId = "orderId-1207110391";
Order response = gDCHardwareManagementClient.createOrderAsync(parent, order, orderId).get();
}
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. |
Returns | |
---|---|
Type | Description |
OperationFuture<Order,OperationMetadata> |
createOrderAsync(String parent, Order order, String orderId)
public final OperationFuture<Order,OperationMetadata> createOrderAsync(String parent, Order order, String orderId)
Creates a new order in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Order order = Order.newBuilder().build();
String orderId = "orderId-1207110391";
Order response = gDCHardwareManagementClient.createOrderAsync(parent, order, orderId).get();
}
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. |
Returns | |
---|---|
Type | Description |
OperationFuture<Order,OperationMetadata> |
createOrderCallable()
public final UnaryCallable<CreateOrderRequest,Operation> createOrderCallable()
Creates a new order in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
CreateOrderRequest request =
CreateOrderRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setOrderId("orderId-1207110391")
.setOrder(Order.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
gDCHardwareManagementClient.createOrderCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateOrderRequest,Operation> |
createOrderOperationCallable()
public final OperationCallable<CreateOrderRequest,Order,OperationMetadata> createOrderOperationCallable()
Creates a new order in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
CreateOrderRequest request =
CreateOrderRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setOrderId("orderId-1207110391")
.setOrder(Order.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Order, OperationMetadata> future =
gDCHardwareManagementClient.createOrderOperationCallable().futureCall(request);
// Do something.
Order response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<CreateOrderRequest,Order,OperationMetadata> |
createSiteAsync(CreateSiteRequest request)
public final OperationFuture<Site,OperationMetadata> createSiteAsync(CreateSiteRequest request)
Creates a new site in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
CreateSiteRequest request =
CreateSiteRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setSiteId("siteId-902090046")
.setSite(Site.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Site response = gDCHardwareManagementClient.createSiteAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
CreateSiteRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Site,OperationMetadata> |
createSiteAsync(LocationName parent, Site site, String siteId)
public final OperationFuture<Site,OperationMetadata> createSiteAsync(LocationName parent, Site site, String siteId)
Creates a new site in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Site site = Site.newBuilder().build();
String siteId = "siteId-902090046";
Site response = gDCHardwareManagementClient.createSiteAsync(parent, site, siteId).get();
}
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. |
Returns | |
---|---|
Type | Description |
OperationFuture<Site,OperationMetadata> |
createSiteAsync(String parent, Site site, String siteId)
public final OperationFuture<Site,OperationMetadata> createSiteAsync(String parent, Site site, String siteId)
Creates a new site in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Site site = Site.newBuilder().build();
String siteId = "siteId-902090046";
Site response = gDCHardwareManagementClient.createSiteAsync(parent, site, siteId).get();
}
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. |
Returns | |
---|---|
Type | Description |
OperationFuture<Site,OperationMetadata> |
createSiteCallable()
public final UnaryCallable<CreateSiteRequest,Operation> createSiteCallable()
Creates a new site in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
CreateSiteRequest request =
CreateSiteRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setSiteId("siteId-902090046")
.setSite(Site.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
gDCHardwareManagementClient.createSiteCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateSiteRequest,Operation> |
createSiteOperationCallable()
public final OperationCallable<CreateSiteRequest,Site,OperationMetadata> createSiteOperationCallable()
Creates a new site in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
CreateSiteRequest request =
CreateSiteRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setSiteId("siteId-902090046")
.setSite(Site.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Site, OperationMetadata> future =
gDCHardwareManagementClient.createSiteOperationCallable().futureCall(request);
// Do something.
Site response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<CreateSiteRequest,Site,OperationMetadata> |
createZoneAsync(CreateZoneRequest request)
public final OperationFuture<Zone,OperationMetadata> createZoneAsync(CreateZoneRequest request)
Creates a new zone in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
CreateZoneRequest request =
CreateZoneRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setZoneId("zoneId-696323609")
.setZone(Zone.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Zone response = gDCHardwareManagementClient.createZoneAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
CreateZoneRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Zone,OperationMetadata> |
createZoneAsync(LocationName parent, Zone zone, String zoneId)
public final OperationFuture<Zone,OperationMetadata> createZoneAsync(LocationName parent, Zone zone, String zoneId)
Creates a new zone in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Zone zone = Zone.newBuilder().build();
String zoneId = "zoneId-696323609";
Zone response = gDCHardwareManagementClient.createZoneAsync(parent, zone, zoneId).get();
}
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. |
Returns | |
---|---|
Type | Description |
OperationFuture<Zone,OperationMetadata> |
createZoneAsync(String parent, Zone zone, String zoneId)
public final OperationFuture<Zone,OperationMetadata> createZoneAsync(String parent, Zone zone, String zoneId)
Creates a new zone in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Zone zone = Zone.newBuilder().build();
String zoneId = "zoneId-696323609";
Zone response = gDCHardwareManagementClient.createZoneAsync(parent, zone, zoneId).get();
}
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. |
Returns | |
---|---|
Type | Description |
OperationFuture<Zone,OperationMetadata> |
createZoneCallable()
public final UnaryCallable<CreateZoneRequest,Operation> createZoneCallable()
Creates a new zone in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
CreateZoneRequest request =
CreateZoneRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setZoneId("zoneId-696323609")
.setZone(Zone.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
gDCHardwareManagementClient.createZoneCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateZoneRequest,Operation> |
createZoneOperationCallable()
public final OperationCallable<CreateZoneRequest,Zone,OperationMetadata> createZoneOperationCallable()
Creates a new zone in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
CreateZoneRequest request =
CreateZoneRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setZoneId("zoneId-696323609")
.setZone(Zone.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Zone, OperationMetadata> future =
gDCHardwareManagementClient.createZoneOperationCallable().futureCall(request);
// Do something.
Zone response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<CreateZoneRequest,Zone,OperationMetadata> |
deleteHardwareAsync(DeleteHardwareRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteHardwareAsync(DeleteHardwareRequest request)
Deletes hardware.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
DeleteHardwareRequest request =
DeleteHardwareRequest.newBuilder()
.setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString())
.setRequestId("requestId693933066")
.build();
gDCHardwareManagementClient.deleteHardwareAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
DeleteHardwareRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteHardwareAsync(HardwareName name)
public final OperationFuture<Empty,OperationMetadata> deleteHardwareAsync(HardwareName name)
Deletes hardware.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
HardwareName name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]");
gDCHardwareManagementClient.deleteHardwareAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
HardwareName Required. The name of the hardware. Format:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteHardwareAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteHardwareAsync(String name)
Deletes hardware.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
String name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString();
gDCHardwareManagementClient.deleteHardwareAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the hardware. Format:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteHardwareCallable()
public final UnaryCallable<DeleteHardwareRequest,Operation> deleteHardwareCallable()
Deletes hardware.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
DeleteHardwareRequest request =
DeleteHardwareRequest.newBuilder()
.setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
gDCHardwareManagementClient.deleteHardwareCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteHardwareRequest,Operation> |
deleteHardwareGroupAsync(DeleteHardwareGroupRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteHardwareGroupAsync(DeleteHardwareGroupRequest request)
Deletes a hardware group.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
DeleteHardwareGroupRequest request =
DeleteHardwareGroupRequest.newBuilder()
.setName(
HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]")
.toString())
.setRequestId("requestId693933066")
.build();
gDCHardwareManagementClient.deleteHardwareGroupAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
DeleteHardwareGroupRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteHardwareGroupAsync(HardwareGroupName name)
public final OperationFuture<Empty,OperationMetadata> deleteHardwareGroupAsync(HardwareGroupName name)
Deletes a hardware group.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
HardwareGroupName name =
HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]");
gDCHardwareManagementClient.deleteHardwareGroupAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
HardwareGroupName Required. The name of the hardware group. Format:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteHardwareGroupAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteHardwareGroupAsync(String name)
Deletes a hardware group.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
String name =
HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]").toString();
gDCHardwareManagementClient.deleteHardwareGroupAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the hardware group. Format:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteHardwareGroupCallable()
public final UnaryCallable<DeleteHardwareGroupRequest,Operation> deleteHardwareGroupCallable()
Deletes a hardware group.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
DeleteHardwareGroupRequest request =
DeleteHardwareGroupRequest.newBuilder()
.setName(
HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]")
.toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
gDCHardwareManagementClient.deleteHardwareGroupCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteHardwareGroupRequest,Operation> |
deleteHardwareGroupOperationCallable()
public final OperationCallable<DeleteHardwareGroupRequest,Empty,OperationMetadata> deleteHardwareGroupOperationCallable()
Deletes a hardware group.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
DeleteHardwareGroupRequest request =
DeleteHardwareGroupRequest.newBuilder()
.setName(
HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]")
.toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
gDCHardwareManagementClient.deleteHardwareGroupOperationCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteHardwareGroupRequest,Empty,OperationMetadata> |
deleteHardwareOperationCallable()
public final OperationCallable<DeleteHardwareRequest,Empty,OperationMetadata> deleteHardwareOperationCallable()
Deletes hardware.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
DeleteHardwareRequest request =
DeleteHardwareRequest.newBuilder()
.setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
gDCHardwareManagementClient.deleteHardwareOperationCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteHardwareRequest,Empty,OperationMetadata> |
deleteOrderAsync(DeleteOrderRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteOrderAsync(DeleteOrderRequest request)
Deletes an order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
DeleteOrderRequest request =
DeleteOrderRequest.newBuilder()
.setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
.setRequestId("requestId693933066")
.setForce(true)
.build();
gDCHardwareManagementClient.deleteOrderAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
DeleteOrderRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteOrderAsync(OrderName name)
public final OperationFuture<Empty,OperationMetadata> deleteOrderAsync(OrderName name)
Deletes an order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
gDCHardwareManagementClient.deleteOrderAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
OrderName Required. The name of the order. Format:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteOrderAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteOrderAsync(String name)
Deletes an order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
String name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
gDCHardwareManagementClient.deleteOrderAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the order. Format:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteOrderCallable()
public final UnaryCallable<DeleteOrderRequest,Operation> deleteOrderCallable()
Deletes an order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
DeleteOrderRequest request =
DeleteOrderRequest.newBuilder()
.setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
.setRequestId("requestId693933066")
.setForce(true)
.build();
ApiFuture<Operation> future =
gDCHardwareManagementClient.deleteOrderCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteOrderRequest,Operation> |
deleteOrderOperationCallable()
public final OperationCallable<DeleteOrderRequest,Empty,OperationMetadata> deleteOrderOperationCallable()
Deletes an order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
DeleteOrderRequest request =
DeleteOrderRequest.newBuilder()
.setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
.setRequestId("requestId693933066")
.setForce(true)
.build();
OperationFuture<Empty, OperationMetadata> future =
gDCHardwareManagementClient.deleteOrderOperationCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteOrderRequest,Empty,OperationMetadata> |
deleteSiteAsync(DeleteSiteRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteSiteAsync(DeleteSiteRequest request)
Deletes a site.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
DeleteSiteRequest request =
DeleteSiteRequest.newBuilder()
.setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString())
.setRequestId("requestId693933066")
.build();
gDCHardwareManagementClient.deleteSiteAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
DeleteSiteRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteSiteAsync(SiteName name)
public final OperationFuture<Empty,OperationMetadata> deleteSiteAsync(SiteName name)
Deletes a site.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
SiteName name = SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]");
gDCHardwareManagementClient.deleteSiteAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
SiteName Required. The name of the site. Format:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteSiteAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteSiteAsync(String name)
Deletes a site.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
String name = SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString();
gDCHardwareManagementClient.deleteSiteAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the site. Format:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteSiteCallable()
public final UnaryCallable<DeleteSiteRequest,Operation> deleteSiteCallable()
Deletes a site.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
DeleteSiteRequest request =
DeleteSiteRequest.newBuilder()
.setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
gDCHardwareManagementClient.deleteSiteCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteSiteRequest,Operation> |
deleteSiteOperationCallable()
public final OperationCallable<DeleteSiteRequest,Empty,OperationMetadata> deleteSiteOperationCallable()
Deletes a site.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
DeleteSiteRequest request =
DeleteSiteRequest.newBuilder()
.setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
gDCHardwareManagementClient.deleteSiteOperationCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteSiteRequest,Empty,OperationMetadata> |
deleteZoneAsync(DeleteZoneRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteZoneAsync(DeleteZoneRequest request)
Deletes a zone.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
DeleteZoneRequest request =
DeleteZoneRequest.newBuilder()
.setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setRequestId("requestId693933066")
.build();
gDCHardwareManagementClient.deleteZoneAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
DeleteZoneRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteZoneAsync(ZoneName name)
public final OperationFuture<Empty,OperationMetadata> deleteZoneAsync(ZoneName name)
Deletes a zone.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
gDCHardwareManagementClient.deleteZoneAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
ZoneName Required. The name of the zone. Format:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteZoneAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteZoneAsync(String name)
Deletes a zone.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
String name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
gDCHardwareManagementClient.deleteZoneAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the zone. Format:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteZoneCallable()
public final UnaryCallable<DeleteZoneRequest,Operation> deleteZoneCallable()
Deletes a zone.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
DeleteZoneRequest request =
DeleteZoneRequest.newBuilder()
.setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
gDCHardwareManagementClient.deleteZoneCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteZoneRequest,Operation> |
deleteZoneOperationCallable()
public final OperationCallable<DeleteZoneRequest,Empty,OperationMetadata> deleteZoneOperationCallable()
Deletes a zone.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
DeleteZoneRequest request =
DeleteZoneRequest.newBuilder()
.setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
gDCHardwareManagementClient.deleteZoneOperationCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteZoneRequest,Empty,OperationMetadata> |
getChangeLogEntry(ChangeLogEntryName name)
public final ChangeLogEntry getChangeLogEntry(ChangeLogEntryName name)
Gets details of a change to an order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
ChangeLogEntryName name =
ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]");
ChangeLogEntry response = gDCHardwareManagementClient.getChangeLogEntry(name);
}
Parameter | |
---|---|
Name | Description |
name |
ChangeLogEntryName Required. The name of the change log entry. Format:
|
Returns | |
---|---|
Type | Description |
ChangeLogEntry |
getChangeLogEntry(GetChangeLogEntryRequest request)
public final ChangeLogEntry getChangeLogEntry(GetChangeLogEntryRequest request)
Gets details of a change to an order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
GetChangeLogEntryRequest request =
GetChangeLogEntryRequest.newBuilder()
.setName(
ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]")
.toString())
.build();
ChangeLogEntry response = gDCHardwareManagementClient.getChangeLogEntry(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetChangeLogEntryRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
ChangeLogEntry |
getChangeLogEntry(String name)
public final ChangeLogEntry getChangeLogEntry(String name)
Gets details of a change to an order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
String name =
ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]")
.toString();
ChangeLogEntry response = gDCHardwareManagementClient.getChangeLogEntry(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the change log entry. Format:
|
Returns | |
---|---|
Type | Description |
ChangeLogEntry |
getChangeLogEntryCallable()
public final UnaryCallable<GetChangeLogEntryRequest,ChangeLogEntry> getChangeLogEntryCallable()
Gets details of a change to an order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
GetChangeLogEntryRequest request =
GetChangeLogEntryRequest.newBuilder()
.setName(
ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]")
.toString())
.build();
ApiFuture<ChangeLogEntry> future =
gDCHardwareManagementClient.getChangeLogEntryCallable().futureCall(request);
// Do something.
ChangeLogEntry response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetChangeLogEntryRequest,ChangeLogEntry> |
getComment(CommentName name)
public final Comment getComment(CommentName name)
Gets the content of a comment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
CommentName name = CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]");
Comment response = gDCHardwareManagementClient.getComment(name);
}
Parameter | |
---|---|
Name | Description |
name |
CommentName Required. The name of the comment. Format:
|
Returns | |
---|---|
Type | Description |
Comment |
getComment(GetCommentRequest request)
public final Comment getComment(GetCommentRequest request)
Gets the content of a comment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
GetCommentRequest request =
GetCommentRequest.newBuilder()
.setName(CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]").toString())
.build();
Comment response = gDCHardwareManagementClient.getComment(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetCommentRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Comment |
getComment(String name)
public final Comment getComment(String name)
Gets the content of a comment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
String name = CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]").toString();
Comment response = gDCHardwareManagementClient.getComment(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the comment. Format:
|
Returns | |
---|---|
Type | Description |
Comment |
getCommentCallable()
public final UnaryCallable<GetCommentRequest,Comment> getCommentCallable()
Gets the content of a comment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
GetCommentRequest request =
GetCommentRequest.newBuilder()
.setName(CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]").toString())
.build();
ApiFuture<Comment> future =
gDCHardwareManagementClient.getCommentCallable().futureCall(request);
// Do something.
Comment response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetCommentRequest,Comment> |
getHardware(GetHardwareRequest request)
public final Hardware getHardware(GetHardwareRequest request)
Gets hardware details.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
GetHardwareRequest request =
GetHardwareRequest.newBuilder()
.setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString())
.build();
Hardware response = gDCHardwareManagementClient.getHardware(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetHardwareRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Hardware |
getHardware(HardwareName name)
public final Hardware getHardware(HardwareName name)
Gets hardware details.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
HardwareName name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]");
Hardware response = gDCHardwareManagementClient.getHardware(name);
}
Parameter | |
---|---|
Name | Description |
name |
HardwareName Required. The name of the hardware. Format:
|
Returns | |
---|---|
Type | Description |
Hardware |
getHardware(String name)
public final Hardware getHardware(String name)
Gets hardware details.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
String name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString();
Hardware response = gDCHardwareManagementClient.getHardware(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the hardware. Format:
|
Returns | |
---|---|
Type | Description |
Hardware |
getHardwareCallable()
public final UnaryCallable<GetHardwareRequest,Hardware> getHardwareCallable()
Gets hardware details.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
GetHardwareRequest request =
GetHardwareRequest.newBuilder()
.setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString())
.build();
ApiFuture<Hardware> future =
gDCHardwareManagementClient.getHardwareCallable().futureCall(request);
// Do something.
Hardware response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetHardwareRequest,Hardware> |
getHardwareGroup(GetHardwareGroupRequest request)
public final HardwareGroup getHardwareGroup(GetHardwareGroupRequest request)
Gets details of a hardware group.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
GetHardwareGroupRequest request =
GetHardwareGroupRequest.newBuilder()
.setName(
HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]")
.toString())
.build();
HardwareGroup response = gDCHardwareManagementClient.getHardwareGroup(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetHardwareGroupRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
HardwareGroup |
getHardwareGroup(HardwareGroupName name)
public final HardwareGroup getHardwareGroup(HardwareGroupName name)
Gets details of a hardware group.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
HardwareGroupName name =
HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]");
HardwareGroup response = gDCHardwareManagementClient.getHardwareGroup(name);
}
Parameter | |
---|---|
Name | Description |
name |
HardwareGroupName Required. The name of the hardware group. Format:
|
Returns | |
---|---|
Type | Description |
HardwareGroup |
getHardwareGroup(String name)
public final HardwareGroup getHardwareGroup(String name)
Gets details of a hardware group.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
String name =
HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]").toString();
HardwareGroup response = gDCHardwareManagementClient.getHardwareGroup(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the hardware group. Format:
|
Returns | |
---|---|
Type | Description |
HardwareGroup |
getHardwareGroupCallable()
public final UnaryCallable<GetHardwareGroupRequest,HardwareGroup> getHardwareGroupCallable()
Gets details of a hardware group.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
GetHardwareGroupRequest request =
GetHardwareGroupRequest.newBuilder()
.setName(
HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]")
.toString())
.build();
ApiFuture<HardwareGroup> future =
gDCHardwareManagementClient.getHardwareGroupCallable().futureCall(request);
// Do something.
HardwareGroup response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetHardwareGroupRequest,HardwareGroup> |
getHttpJsonOperationsClient()
public final OperationsClient getHttpJsonOperationsClient()
Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.
Returns | |
---|---|
Type | Description |
OperationsClient |
getLocation(GetLocationRequest request)
public final Location getLocation(GetLocationRequest request)
Gets information about a location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
Location response = gDCHardwareManagementClient.getLocation(request);
}
Parameter | |
---|---|
Name | Description |
request |
com.google.cloud.location.GetLocationRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
com.google.cloud.location.Location |
getLocationCallable()
public final UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Gets information about a location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
ApiFuture<Location> future =
gDCHardwareManagementClient.getLocationCallable().futureCall(request);
// Do something.
Location response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getOperationsClient()
public final OperationsClient getOperationsClient()
Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.
Returns | |
---|---|
Type | Description |
OperationsClient |
getOrder(GetOrderRequest request)
public final Order getOrder(GetOrderRequest request)
Gets details of an order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
GetOrderRequest request =
GetOrderRequest.newBuilder()
.setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
.build();
Order response = gDCHardwareManagementClient.getOrder(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetOrderRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Order |
getOrder(OrderName name)
public final Order getOrder(OrderName name)
Gets details of an order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
Order response = gDCHardwareManagementClient.getOrder(name);
}
Parameter | |
---|---|
Name | Description |
name |
OrderName Required. Name of the resource |
Returns | |
---|---|
Type | Description |
Order |
getOrder(String name)
public final Order getOrder(String name)
Gets details of an order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GDCHardwareManagementClient gDCHardwareManagementClient =
GDCHardwareManagementClient.create()) {
String name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
Order response = gDCHardwareManagementClient.getOrder(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. Name of the resource |
Returns | |
---|---|
Type | Description |
Order |
getOrderCallable()
public final UnaryCallable<GetOrderRequest,Order> getOrderCallable()
Gets details of an order.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in