| GitHub Repository | Product Reference |
Service Description: EdgeNetwork API provides managed, highly available cloud dynamic network configuration service to the GEC customer to enable edge application and network function solutions. This allows the customers to easily define and configure the network setup and property to meet the workload requirement.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
InitializeZoneResponse response = edgeNetworkClient.initializeZone(name);
}
Note: close() needs to be called on the EdgeNetworkClient 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 |
|---|---|---|
InitializeZone |
InitializeZone will initialize resources for a zone in a project. |
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 |
Deprecated: not implemented. 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 |
Deprecated: not implemented. Gets details of a single 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.
|
ListNetworks |
Lists Networks 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.
|
GetNetwork |
Gets details of a single Network. |
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.
|
DiagnoseNetwork |
Get the diagnostics of a single network resource. |
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.
|
CreateNetwork |
Creates a new Network 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.
|
DeleteNetwork |
Deletes a single Network. |
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.
|
ListSubnets |
Lists Subnets 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.
|
GetSubnet |
Gets details of a single Subnet. |
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.
|
CreateSubnet |
Creates a new Subnet 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.
|
UpdateSubnet |
Updates the parameters of a single Subnet. |
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.
|
DeleteSubnet |
Deletes a single Subnet. |
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.
|
ListInterconnects |
Lists Interconnects 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.
|
GetInterconnect |
Gets details of a single Interconnect. |
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.
|
DiagnoseInterconnect |
Get the diagnostics of a single interconnect resource. |
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.
|
ListInterconnectAttachments |
Lists InterconnectAttachments 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.
|
GetInterconnectAttachment |
Gets details of a single InterconnectAttachment. |
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.
|
CreateInterconnectAttachment |
Creates a new InterconnectAttachment 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.
|
DeleteInterconnectAttachment |
Deletes a single InterconnectAttachment. |
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.
|
ListRouters |
Lists Routers 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.
|
GetRouter |
Gets details of a single Router. |
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.
|
DiagnoseRouter |
Get the diagnostics of a single router resource. |
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.
|
CreateRouter |
Creates a new Router 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.
|
UpdateRouter |
Updates the parameters of a single Router. |
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.
|
DeleteRouter |
Deletes a single Router. |
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 EdgeNetworkSettings 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
EdgeNetworkSettings edgeNetworkSettings =
EdgeNetworkSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create(edgeNetworkSettings);
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
EdgeNetworkSettings edgeNetworkSettings =
EdgeNetworkSettings.newBuilder().setEndpoint(myEndpoint).build();
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create(edgeNetworkSettings);
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
EdgeNetworkSettings edgeNetworkSettings = EdgeNetworkSettings.newHttpJsonBuilder().build();
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create(edgeNetworkSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
Static Methods
create()
public static final EdgeNetworkClient create()Constructs an instance of EdgeNetworkClient with default settings.
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(EdgeNetworkSettings settings)
public static final EdgeNetworkClient create(EdgeNetworkSettings settings)Constructs an instance of EdgeNetworkClient, 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 |
EdgeNetworkSettings |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(EdgeNetworkStub stub)
public static final EdgeNetworkClient create(EdgeNetworkStub stub)Constructs an instance of EdgeNetworkClient, using the given stub for making calls. This is for advanced usage - prefer using create(EdgeNetworkSettings).
| Parameter | |
|---|---|
| Name | Description |
stub |
EdgeNetworkStub |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient |
|
Constructors
EdgeNetworkClient(EdgeNetworkSettings settings)
protected EdgeNetworkClient(EdgeNetworkSettings settings)Constructs an instance of EdgeNetworkClient, 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 |
EdgeNetworkSettings |
EdgeNetworkClient(EdgeNetworkStub stub)
protected EdgeNetworkClient(EdgeNetworkStub stub)| Parameter | |
|---|---|
| Name | Description |
stub |
EdgeNetworkStub |
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()createInterconnectAttachmentAsync(@Nullable ZoneName parent, InterconnectAttachment interconnectAttachment, String interconnectAttachmentId)
public final OperationFuture<InterconnectAttachment,OperationMetadata> createInterconnectAttachmentAsync(@Nullable ZoneName parent, InterconnectAttachment interconnectAttachment, String interconnectAttachmentId)Creates a new InterconnectAttachment 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
InterconnectAttachment interconnectAttachment = InterconnectAttachment.newBuilder().build();
String interconnectAttachmentId = "interconnectAttachmentId1053538636";
InterconnectAttachment response =
edgeNetworkClient
.createInterconnectAttachmentAsync(
parent, interconnectAttachment, interconnectAttachmentId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.ZoneNameRequired. Value for parent. |
interconnectAttachment |
InterconnectAttachmentRequired. The resource being created |
interconnectAttachmentId |
StringRequired. Id of the requesting object If auto-generating Id server-side, remove this field and interconnect_attachment_id from the method_signature of Create RPC |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterconnectAttachment,OperationMetadata> |
|
createInterconnectAttachmentAsync(CreateInterconnectAttachmentRequest request)
public final OperationFuture<InterconnectAttachment,OperationMetadata> createInterconnectAttachmentAsync(CreateInterconnectAttachmentRequest request)Creates a new InterconnectAttachment 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateInterconnectAttachmentRequest request =
CreateInterconnectAttachmentRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setInterconnectAttachmentId("interconnectAttachmentId1053538636")
.setInterconnectAttachment(InterconnectAttachment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
InterconnectAttachment response =
edgeNetworkClient.createInterconnectAttachmentAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateInterconnectAttachmentRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterconnectAttachment,OperationMetadata> |
|
createInterconnectAttachmentAsync(String parent, InterconnectAttachment interconnectAttachment, String interconnectAttachmentId)
public final OperationFuture<InterconnectAttachment,OperationMetadata> createInterconnectAttachmentAsync(String parent, InterconnectAttachment interconnectAttachment, String interconnectAttachmentId)Creates a new InterconnectAttachment 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
InterconnectAttachment interconnectAttachment = InterconnectAttachment.newBuilder().build();
String interconnectAttachmentId = "interconnectAttachmentId1053538636";
InterconnectAttachment response =
edgeNetworkClient
.createInterconnectAttachmentAsync(
parent, interconnectAttachment, interconnectAttachmentId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. Value for parent. |
interconnectAttachment |
InterconnectAttachmentRequired. The resource being created |
interconnectAttachmentId |
StringRequired. Id of the requesting object If auto-generating Id server-side, remove this field and interconnect_attachment_id from the method_signature of Create RPC |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterconnectAttachment,OperationMetadata> |
|
createInterconnectAttachmentCallable()
public final UnaryCallable<CreateInterconnectAttachmentRequest,Operation> createInterconnectAttachmentCallable()Creates a new InterconnectAttachment 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateInterconnectAttachmentRequest request =
CreateInterconnectAttachmentRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setInterconnectAttachmentId("interconnectAttachmentId1053538636")
.setInterconnectAttachment(InterconnectAttachment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
edgeNetworkClient.createInterconnectAttachmentCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateInterconnectAttachmentRequest,Operation> |
|
createInterconnectAttachmentOperationCallable()
public final OperationCallable<CreateInterconnectAttachmentRequest,InterconnectAttachment,OperationMetadata> createInterconnectAttachmentOperationCallable()Creates a new InterconnectAttachment 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateInterconnectAttachmentRequest request =
CreateInterconnectAttachmentRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setInterconnectAttachmentId("interconnectAttachmentId1053538636")
.setInterconnectAttachment(InterconnectAttachment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<InterconnectAttachment, OperationMetadata> future =
edgeNetworkClient.createInterconnectAttachmentOperationCallable().futureCall(request);
// Do something.
InterconnectAttachment response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<CreateInterconnectAttachmentRequest,InterconnectAttachment,OperationMetadata> |
|
createNetworkAsync(@Nullable ZoneName parent, Network network, String networkId)
public final OperationFuture<Network,OperationMetadata> createNetworkAsync(@Nullable ZoneName parent, Network network, String networkId)Creates a new Network 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
Network network = Network.newBuilder().build();
String networkId = "networkId2062782441";
Network response = edgeNetworkClient.createNetworkAsync(parent, network, networkId).get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.ZoneNameRequired. Value for parent. |
network |
NetworkRequired. The resource being created |
networkId |
StringRequired. Id of the requesting object If auto-generating Id server-side, remove this field and network_id from the method_signature of Create RPC |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Network,OperationMetadata> |
|
createNetworkAsync(CreateNetworkRequest request)
public final OperationFuture<Network,OperationMetadata> createNetworkAsync(CreateNetworkRequest request)Creates a new Network 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateNetworkRequest request =
CreateNetworkRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setNetworkId("networkId2062782441")
.setNetwork(Network.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Network response = edgeNetworkClient.createNetworkAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateNetworkRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Network,OperationMetadata> |
|
createNetworkAsync(String parent, Network network, String networkId)
public final OperationFuture<Network,OperationMetadata> createNetworkAsync(String parent, Network network, String networkId)Creates a new Network 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
Network network = Network.newBuilder().build();
String networkId = "networkId2062782441";
Network response = edgeNetworkClient.createNetworkAsync(parent, network, networkId).get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. Value for parent. |
network |
NetworkRequired. The resource being created |
networkId |
StringRequired. Id of the requesting object If auto-generating Id server-side, remove this field and network_id from the method_signature of Create RPC |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Network,OperationMetadata> |
|
createNetworkCallable()
public final UnaryCallable<CreateNetworkRequest,Operation> createNetworkCallable()Creates a new Network 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateNetworkRequest request =
CreateNetworkRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setNetworkId("networkId2062782441")
.setNetwork(Network.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = edgeNetworkClient.createNetworkCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateNetworkRequest,Operation> |
|
createNetworkOperationCallable()
public final OperationCallable<CreateNetworkRequest,Network,OperationMetadata> createNetworkOperationCallable()Creates a new Network 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateNetworkRequest request =
CreateNetworkRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setNetworkId("networkId2062782441")
.setNetwork(Network.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Network, OperationMetadata> future =
edgeNetworkClient.createNetworkOperationCallable().futureCall(request);
// Do something.
Network response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<CreateNetworkRequest,Network,OperationMetadata> |
|
createRouterAsync(@Nullable ZoneName parent, Router router, String routerId)
public final OperationFuture<Router,OperationMetadata> createRouterAsync(@Nullable ZoneName parent, Router router, String routerId)Creates a new Router 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
Router router = Router.newBuilder().build();
String routerId = "routerId5435972";
Router response = edgeNetworkClient.createRouterAsync(parent, router, routerId).get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.ZoneNameRequired. Value for parent. |
router |
RouterRequired. The resource being created |
routerId |
StringRequired. Id of the requesting object If auto-generating Id server-side, remove this field and router_id from the method_signature of Create RPC |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Router,OperationMetadata> |
|
createRouterAsync(CreateRouterRequest request)
public final OperationFuture<Router,OperationMetadata> createRouterAsync(CreateRouterRequest request)Creates a new Router 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateRouterRequest request =
CreateRouterRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setRouterId("routerId5435972")
.setRouter(Router.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Router response = edgeNetworkClient.createRouterAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateRouterRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Router,OperationMetadata> |
|
createRouterAsync(String parent, Router router, String routerId)
public final OperationFuture<Router,OperationMetadata> createRouterAsync(String parent, Router router, String routerId)Creates a new Router 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
Router router = Router.newBuilder().build();
String routerId = "routerId5435972";
Router response = edgeNetworkClient.createRouterAsync(parent, router, routerId).get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. Value for parent. |
router |
RouterRequired. The resource being created |
routerId |
StringRequired. Id of the requesting object If auto-generating Id server-side, remove this field and router_id from the method_signature of Create RPC |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Router,OperationMetadata> |
|
createRouterCallable()
public final UnaryCallable<CreateRouterRequest,Operation> createRouterCallable()Creates a new Router 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateRouterRequest request =
CreateRouterRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setRouterId("routerId5435972")
.setRouter(Router.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = edgeNetworkClient.createRouterCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateRouterRequest,Operation> |
|
createRouterOperationCallable()
public final OperationCallable<CreateRouterRequest,Router,OperationMetadata> createRouterOperationCallable()Creates a new Router 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateRouterRequest request =
CreateRouterRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setRouterId("routerId5435972")
.setRouter(Router.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Router, OperationMetadata> future =
edgeNetworkClient.createRouterOperationCallable().futureCall(request);
// Do something.
Router response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<CreateRouterRequest,Router,OperationMetadata> |
|
createSubnetAsync(@Nullable ZoneName parent, Subnet subnet, String subnetId)
public final OperationFuture<Subnet,OperationMetadata> createSubnetAsync(@Nullable ZoneName parent, Subnet subnet, String subnetId)Creates a new Subnet 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
Subnet subnet = Subnet.newBuilder().build();
String subnetId = "subnetId-2066159272";
Subnet response = edgeNetworkClient.createSubnetAsync(parent, subnet, subnetId).get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.ZoneNameRequired. Value for parent. |
subnet |
SubnetRequired. The resource being created |
subnetId |
StringRequired. Id of the requesting object If auto-generating Id server-side, remove this field and subnet_id from the method_signature of Create RPC |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Subnet,OperationMetadata> |
|
createSubnetAsync(CreateSubnetRequest request)
public final OperationFuture<Subnet,OperationMetadata> createSubnetAsync(CreateSubnetRequest request)Creates a new Subnet 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateSubnetRequest request =
CreateSubnetRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setSubnetId("subnetId-2066159272")
.setSubnet(Subnet.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Subnet response = edgeNetworkClient.createSubnetAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateSubnetRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Subnet,OperationMetadata> |
|
createSubnetAsync(String parent, Subnet subnet, String subnetId)
public final OperationFuture<Subnet,OperationMetadata> createSubnetAsync(String parent, Subnet subnet, String subnetId)Creates a new Subnet 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
Subnet subnet = Subnet.newBuilder().build();
String subnetId = "subnetId-2066159272";
Subnet response = edgeNetworkClient.createSubnetAsync(parent, subnet, subnetId).get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. Value for parent. |
subnet |
SubnetRequired. The resource being created |
subnetId |
StringRequired. Id of the requesting object If auto-generating Id server-side, remove this field and subnet_id from the method_signature of Create RPC |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Subnet,OperationMetadata> |
|
createSubnetCallable()
public final UnaryCallable<CreateSubnetRequest,Operation> createSubnetCallable()Creates a new Subnet 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateSubnetRequest request =
CreateSubnetRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setSubnetId("subnetId-2066159272")
.setSubnet(Subnet.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = edgeNetworkClient.createSubnetCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateSubnetRequest,Operation> |
|
createSubnetOperationCallable()
public final OperationCallable<CreateSubnetRequest,Subnet,OperationMetadata> createSubnetOperationCallable()Creates a new Subnet 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateSubnetRequest request =
CreateSubnetRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setSubnetId("subnetId-2066159272")
.setSubnet(Subnet.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Subnet, OperationMetadata> future =
edgeNetworkClient.createSubnetOperationCallable().futureCall(request);
// Do something.
Subnet response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<CreateSubnetRequest,Subnet,OperationMetadata> |
|
deleteInterconnectAttachmentAsync(@Nullable InterconnectAttachmentName name)
public final OperationFuture<Empty,OperationMetadata> deleteInterconnectAttachmentAsync(@Nullable InterconnectAttachmentName name)Deletes a single InterconnectAttachment.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
InterconnectAttachmentName name =
InterconnectAttachmentName.of(
"[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]");
edgeNetworkClient.deleteInterconnectAttachmentAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.InterconnectAttachmentNameRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteInterconnectAttachmentAsync(DeleteInterconnectAttachmentRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteInterconnectAttachmentAsync(DeleteInterconnectAttachmentRequest request)Deletes a single InterconnectAttachment.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteInterconnectAttachmentRequest request =
DeleteInterconnectAttachmentRequest.newBuilder()
.setName(
InterconnectAttachmentName.of(
"[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]")
.toString())
.setRequestId("requestId693933066")
.build();
edgeNetworkClient.deleteInterconnectAttachmentAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteInterconnectAttachmentRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteInterconnectAttachmentAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteInterconnectAttachmentAsync(String name)Deletes a single InterconnectAttachment.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name =
InterconnectAttachmentName.of(
"[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]")
.toString();
edgeNetworkClient.deleteInterconnectAttachmentAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteInterconnectAttachmentCallable()
public final UnaryCallable<DeleteInterconnectAttachmentRequest,Operation> deleteInterconnectAttachmentCallable()Deletes a single InterconnectAttachment.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteInterconnectAttachmentRequest request =
DeleteInterconnectAttachmentRequest.newBuilder()
.setName(
InterconnectAttachmentName.of(
"[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]")
.toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
edgeNetworkClient.deleteInterconnectAttachmentCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteInterconnectAttachmentRequest,Operation> |
|
deleteInterconnectAttachmentOperationCallable()
public final OperationCallable<DeleteInterconnectAttachmentRequest,Empty,OperationMetadata> deleteInterconnectAttachmentOperationCallable()Deletes a single InterconnectAttachment.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteInterconnectAttachmentRequest request =
DeleteInterconnectAttachmentRequest.newBuilder()
.setName(
InterconnectAttachmentName.of(
"[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]")
.toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
edgeNetworkClient.deleteInterconnectAttachmentOperationCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<DeleteInterconnectAttachmentRequest,Empty,OperationMetadata> |
|
deleteNetworkAsync(@Nullable NetworkName name)
public final OperationFuture<Empty,OperationMetadata> deleteNetworkAsync(@Nullable NetworkName name)Deletes a single Network.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
NetworkName name = NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]");
edgeNetworkClient.deleteNetworkAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.NetworkNameRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteNetworkAsync(DeleteNetworkRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteNetworkAsync(DeleteNetworkRequest request)Deletes a single Network.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteNetworkRequest request =
DeleteNetworkRequest.newBuilder()
.setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]").toString())
.setRequestId("requestId693933066")
.build();
edgeNetworkClient.deleteNetworkAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteNetworkRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteNetworkAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteNetworkAsync(String name)Deletes a single Network.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name = NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]").toString();
edgeNetworkClient.deleteNetworkAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteNetworkCallable()
public final UnaryCallable<DeleteNetworkRequest,Operation> deleteNetworkCallable()Deletes a single Network.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteNetworkRequest request =
DeleteNetworkRequest.newBuilder()
.setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = edgeNetworkClient.deleteNetworkCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteNetworkRequest,Operation> |
|
deleteNetworkOperationCallable()
public final OperationCallable<DeleteNetworkRequest,Empty,OperationMetadata> deleteNetworkOperationCallable()Deletes a single Network.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteNetworkRequest request =
DeleteNetworkRequest.newBuilder()
.setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
edgeNetworkClient.deleteNetworkOperationCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<DeleteNetworkRequest,Empty,OperationMetadata> |
|
deleteRouterAsync(@Nullable RouterName name)
public final OperationFuture<Empty,OperationMetadata> deleteRouterAsync(@Nullable RouterName name)Deletes a single Router.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
RouterName name = RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]");
edgeNetworkClient.deleteRouterAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.RouterNameRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteRouterAsync(DeleteRouterRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteRouterAsync(DeleteRouterRequest request)Deletes a single Router.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteRouterRequest request =
DeleteRouterRequest.newBuilder()
.setName(RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]").toString())
.setRequestId("requestId693933066")
.build();
edgeNetworkClient.deleteRouterAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteRouterRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteRouterAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteRouterAsync(String name)Deletes a single Router.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name = RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]").toString();
edgeNetworkClient.deleteRouterAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteRouterCallable()
public final UnaryCallable<DeleteRouterRequest,Operation> deleteRouterCallable()Deletes a single Router.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteRouterRequest request =
DeleteRouterRequest.newBuilder()
.setName(RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = edgeNetworkClient.deleteRouterCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteRouterRequest,Operation> |
|
deleteRouterOperationCallable()
public final OperationCallable<DeleteRouterRequest,Empty,OperationMetadata> deleteRouterOperationCallable()Deletes a single Router.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteRouterRequest request =
DeleteRouterRequest.newBuilder()
.setName(RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
edgeNetworkClient.deleteRouterOperationCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<DeleteRouterRequest,Empty,OperationMetadata> |
|
deleteSubnetAsync(@Nullable SubnetName name)
public final OperationFuture<Empty,OperationMetadata> deleteSubnetAsync(@Nullable SubnetName name)Deletes a single Subnet.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
SubnetName name = SubnetName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]");
edgeNetworkClient.deleteSubnetAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.SubnetNameRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteSubnetAsync(DeleteSubnetRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteSubnetAsync(DeleteSubnetRequest request)Deletes a single Subnet.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteSubnetRequest request =
DeleteSubnetRequest.newBuilder()
.setName(SubnetName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]").toString())
.setRequestId("requestId693933066")
.build();
edgeNetworkClient.deleteSubnetAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteSubnetRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteSubnetAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteSubnetAsync(String name)Deletes a single Subnet.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name = SubnetName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]").toString();
edgeNetworkClient.deleteSubnetAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteSubnetCallable()
public final UnaryCallable<DeleteSubnetRequest,Operation> deleteSubnetCallable()Deletes a single Subnet.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteSubnetRequest request =
DeleteSubnetRequest.newBuilder()
.setName(SubnetName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = edgeNetworkClient.deleteSubnetCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteSubnetRequest,Operation> |
|
deleteSubnetOperationCallable()
public final OperationCallable<DeleteSubnetRequest,Empty,OperationMetadata> deleteSubnetOperationCallable()Deletes a single Subnet.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteSubnetRequest request =
DeleteSubnetRequest.newBuilder()
.setName(SubnetName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
edgeNetworkClient.deleteSubnetOperationCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<DeleteSubnetRequest,Empty,OperationMetadata> |
|
diagnoseInterconnect(@Nullable InterconnectName name)
public final DiagnoseInterconnectResponse diagnoseInterconnect(@Nullable InterconnectName name)Get the diagnostics of a single interconnect resource.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
InterconnectName name =
InterconnectName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]");
DiagnoseInterconnectResponse response = edgeNetworkClient.diagnoseInterconnect(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.InterconnectNameRequired. The name of the interconnect resource. |
| Returns | |
|---|---|
| Type | Description |
DiagnoseInterconnectResponse |
|
diagnoseInterconnect(DiagnoseInterconnectRequest request)
public final DiagnoseInterconnectResponse diagnoseInterconnect(DiagnoseInterconnectRequest request)Get the diagnostics of a single interconnect resource.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DiagnoseInterconnectRequest request =
DiagnoseInterconnectRequest.newBuilder()
.setName(
InterconnectName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]")
.toString())
.build();
DiagnoseInterconnectResponse response = edgeNetworkClient.diagnoseInterconnect(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
DiagnoseInterconnectRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
DiagnoseInterconnectResponse |
|
diagnoseInterconnect(String name)
public final DiagnoseInterconnectResponse diagnoseInterconnect(String name)Get the diagnostics of a single interconnect resource.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name =
InterconnectName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]").toString();
DiagnoseInterconnectResponse response = edgeNetworkClient.diagnoseInterconnect(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the interconnect resource. |
| Returns | |
|---|---|
| Type | Description |
DiagnoseInterconnectResponse |
|
diagnoseInterconnectCallable()
public final UnaryCallable<DiagnoseInterconnectRequest,DiagnoseInterconnectResponse> diagnoseInterconnectCallable()Get the diagnostics of a single interconnect resource.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DiagnoseInterconnectRequest request =
DiagnoseInterconnectRequest.newBuilder()
.setName(
InterconnectName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]")
.toString())
.build();
ApiFuture<DiagnoseInterconnectResponse> future =
edgeNetworkClient.diagnoseInterconnectCallable().futureCall(request);
// Do something.
DiagnoseInterconnectResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DiagnoseInterconnectRequest,DiagnoseInterconnectResponse> |
|
diagnoseNetwork(@Nullable NetworkName name)
public final DiagnoseNetworkResponse diagnoseNetwork(@Nullable NetworkName name)Get the diagnostics of a single network resource.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
NetworkName name = NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]");
DiagnoseNetworkResponse response = edgeNetworkClient.diagnoseNetwork(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.NetworkNameRequired. The name of the network resource. |
| Returns | |
|---|---|
| Type | Description |
DiagnoseNetworkResponse |
|
diagnoseNetwork(DiagnoseNetworkRequest request)
public final DiagnoseNetworkResponse diagnoseNetwork(DiagnoseNetworkRequest request)Get the diagnostics of a single network resource.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DiagnoseNetworkRequest request =
DiagnoseNetworkRequest.newBuilder()
.setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]").toString())
.build();
DiagnoseNetworkResponse response = edgeNetworkClient.diagnoseNetwork(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
DiagnoseNetworkRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
DiagnoseNetworkResponse |
|
diagnoseNetwork(String name)
public final DiagnoseNetworkResponse diagnoseNetwork(String name)Get the diagnostics of a single network resource.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name = NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]").toString();
DiagnoseNetworkResponse response = edgeNetworkClient.diagnoseNetwork(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the network resource. |
| Returns | |
|---|---|
| Type | Description |
DiagnoseNetworkResponse |
|
diagnoseNetworkCallable()
public final UnaryCallable<DiagnoseNetworkRequest,DiagnoseNetworkResponse> diagnoseNetworkCallable()Get the diagnostics of a single network resource.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DiagnoseNetworkRequest request =
DiagnoseNetworkRequest.newBuilder()
.setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]").toString())
.build();
ApiFuture<DiagnoseNetworkResponse> future =
edgeNetworkClient.diagnoseNetworkCallable().futureCall(request);
// Do something.
DiagnoseNetworkResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DiagnoseNetworkRequest,DiagnoseNetworkResponse> |
|
diagnoseRouter(@Nullable RouterName name)
public final DiagnoseRouterResponse diagnoseRouter(@Nullable RouterName name)Get the diagnostics of a single router resource.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
RouterName name = RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]");
DiagnoseRouterResponse response = edgeNetworkClient.diagnoseRouter(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.RouterNameRequired. The name of the router resource. |
| Returns | |
|---|---|
| Type | Description |
DiagnoseRouterResponse |
|
diagnoseRouter(DiagnoseRouterRequest request)
public final DiagnoseRouterResponse diagnoseRouter(DiagnoseRouterRequest request)Get the diagnostics of a single router resource.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DiagnoseRouterRequest request =
DiagnoseRouterRequest.newBuilder()
.setName(RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]").toString())
.build();
DiagnoseRouterResponse response = edgeNetworkClient.diagnoseRouter(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
DiagnoseRouterRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
DiagnoseRouterResponse |
|
diagnoseRouter(String name)
public final DiagnoseRouterResponse diagnoseRouter(String name)Get the diagnostics of a single router resource.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name = RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]").toString();
DiagnoseRouterResponse response = edgeNetworkClient.diagnoseRouter(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the router resource. |
| Returns | |
|---|---|
| Type | Description |
DiagnoseRouterResponse |
|
diagnoseRouterCallable()
public final UnaryCallable<DiagnoseRouterRequest,DiagnoseRouterResponse> diagnoseRouterCallable()Get the diagnostics of a single router resource.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DiagnoseRouterRequest request =
DiagnoseRouterRequest.newBuilder()
.setName(RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]").toString())
.build();
ApiFuture<DiagnoseRouterResponse> future =
edgeNetworkClient.diagnoseRouterCallable().futureCall(request);
// Do something.
DiagnoseRouterResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DiagnoseRouterRequest,DiagnoseRouterResponse> |
|
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 |
|
getInterconnect(@Nullable InterconnectName name)
public final Interconnect getInterconnect(@Nullable InterconnectName name)Gets details of a single Interconnect.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
InterconnectName name =
InterconnectName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]");
Interconnect response = edgeNetworkClient.getInterconnect(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.InterconnectNameRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
Interconnect |
|
getInterconnect(GetInterconnectRequest request)
public final Interconnect getInterconnect(GetInterconnectRequest request)Gets details of a single Interconnect.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetInterconnectRequest request =
GetInterconnectRequest.newBuilder()
.setName(
InterconnectName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]")
.toString())
.build();
Interconnect response = edgeNetworkClient.getInterconnect(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetInterconnectRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
Interconnect |
|
getInterconnect(String name)
public final Interconnect getInterconnect(String name)Gets details of a single Interconnect.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name =
InterconnectName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]").toString();
Interconnect response = edgeNetworkClient.getInterconnect(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
Interconnect |
|
getInterconnectAttachment(@Nullable InterconnectAttachmentName name)
public final InterconnectAttachment getInterconnectAttachment(@Nullable InterconnectAttachmentName name)Gets details of a single InterconnectAttachment.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
InterconnectAttachmentName name =
InterconnectAttachmentName.of(
"[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]");
InterconnectAttachment response = edgeNetworkClient.getInterconnectAttachment(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.InterconnectAttachmentNameRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
InterconnectAttachment |
|
getInterconnectAttachment(GetInterconnectAttachmentRequest request)
public final InterconnectAttachment getInterconnectAttachment(GetInterconnectAttachmentRequest request)Gets details of a single InterconnectAttachment.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetInterconnectAttachmentRequest request =
GetInterconnectAttachmentRequest.newBuilder()
.setName(
InterconnectAttachmentName.of(
"[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]")
.toString())
.build();
InterconnectAttachment response = edgeNetworkClient.getInterconnectAttachment(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetInterconnectAttachmentRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
InterconnectAttachment |
|
getInterconnectAttachment(String name)
public final InterconnectAttachment getInterconnectAttachment(String name)Gets details of a single InterconnectAttachment.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name =
InterconnectAttachmentName.of(
"[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]")
.toString();
InterconnectAttachment response = edgeNetworkClient.getInterconnectAttachment(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
InterconnectAttachment |
|
getInterconnectAttachmentCallable()
public final UnaryCallable<GetInterconnectAttachmentRequest,InterconnectAttachment> getInterconnectAttachmentCallable()Gets details of a single InterconnectAttachment.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetInterconnectAttachmentRequest request =
GetInterconnectAttachmentRequest.newBuilder()
.setName(
InterconnectAttachmentName.of(
"[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]")
.toString())
.build();
ApiFuture<InterconnectAttachment> future =
edgeNetworkClient.getInterconnectAttachmentCallable().futureCall(request);
// Do something.
InterconnectAttachment response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetInterconnectAttachmentRequest,InterconnectAttachment> |
|
getInterconnectCallable()
public final UnaryCallable<GetInterconnectRequest,Interconnect> getInterconnectCallable()Gets details of a single Interconnect.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetInterconnectRequest request =
GetInterconnectRequest.newBuilder()
.setName(
InterconnectName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]")
.toString())
.build();
ApiFuture<Interconnect> future =
edgeNetworkClient.getInterconnectCallable().futureCall(request);
// Do something.
Interconnect response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetInterconnectRequest,Interconnect> |
|
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
Location response = edgeNetworkClient.getLocation(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.cloud.location.GetLocationRequestThe 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
ApiFuture<Location> future = edgeNetworkClient.getLocationCallable().futureCall(request);
// Do something.
Location response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
|
getNetwork(@Nullable NetworkName name)
public final Network getNetwork(@Nullable NetworkName name)Gets details of a single Network.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
NetworkName name = NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]");
Network response = edgeNetworkClient.getNetwork(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.NetworkNameRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
Network |
|
getNetwork(GetNetworkRequest request)
public final Network getNetwork(GetNetworkRequest request)Gets details of a single Network.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetNetworkRequest request =
GetNetworkRequest.newBuilder()
.setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]").toString())
.build();
Network response = edgeNetworkClient.getNetwork(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetNetworkRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
Network |
|
getNetwork(String name)
public final Network getNetwork(String name)Gets details of a single Network.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name = NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]").toString();
Network response = edgeNetworkClient.getNetwork(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
Network |
|
getNetworkCallable()
public final UnaryCallable<GetNetworkRequest,Network> getNetworkCallable()Gets details of a single Network.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetNetworkRequest request =
GetNetworkRequest.newBuilder()
.setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]").toString())
.build();
ApiFuture<Network> future = edgeNetworkClient.getNetworkCallable().futureCall(request);
// Do something.
Network response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetNetworkRequest,Network> |
|
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 |
|
getRouter(@Nullable RouterName name)
public final Router getRouter(@Nullable RouterName name)Gets details of a single Router.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
RouterName name = RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]");
Router response = edgeNetworkClient.getRouter(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.RouterNameRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
Router |
|
getRouter(GetRouterRequest request)
public final Router getRouter(GetRouterRequest request)Gets details of a single Router.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetRouterRequest request =
GetRouterRequest.newBuilder()
.setName(RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]").toString())
.build();
Router response = edgeNetworkClient.getRouter(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetRouterRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
Router |
|
getRouter(String name)
public final Router getRouter(String name)Gets details of a single Router.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name = RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]").toString();
Router response = edgeNetworkClient.getRouter(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
Router |
|
getRouterCallable()
public final UnaryCallable<GetRouterRequest,Router> getRouterCallable()Gets details of a single Router.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetRouterRequest request =
GetRouterRequest.newBuilder()
.setName(RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]").toString())
.build();
ApiFuture<Router> future = edgeNetworkClient.getRouterCallable().futureCall(request);
// Do something.
Router response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetRouterRequest,Router> |
|
getSettings()
public final @Nullable EdgeNetworkSettings getSettings()| Returns | |
|---|---|
| Type | Description |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.EdgeNetworkSettings |
|
getStub()
public EdgeNetworkStub getStub()| Returns | |
|---|---|
| Type | Description |
EdgeNetworkStub |
|
getSubnet(@Nullable SubnetName name)
public final Subnet getSubnet(@Nullable SubnetName name)Gets details of a single Subnet.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
SubnetName name = SubnetName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]");
Subnet response = edgeNetworkClient.getSubnet(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.SubnetNameRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
Subnet |
|
getSubnet(GetSubnetRequest request)
public final Subnet getSubnet(GetSubnetRequest request)Gets details of a single Subnet.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetSubnetRequest request =
GetSubnetRequest.newBuilder()
.setName(SubnetName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]").toString())
.build();
Subnet response = edgeNetworkClient.getSubnet(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetSubnetRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
Subnet |
|
getSubnet(String name)
public final Subnet getSubnet(String name)Gets details of a single Subnet.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name = SubnetName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]").toString();
Subnet response = edgeNetworkClient.getSubnet(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
Subnet |
|
getSubnetCallable()
public final UnaryCallable<GetSubnetRequest,Subnet> getSubnetCallable()Gets details of a single Subnet.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetSubnetRequest request =
GetSubnetRequest.newBuilder()
.setName(SubnetName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]").toString())
.build();
ApiFuture<Subnet> future = edgeNetworkClient.getSubnetCallable().futureCall(request);
// Do something.
Subnet response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetSubnetRequest,Subnet> |
|
getZone(@Nullable ZoneName name) (deprecated)
public final Zone getZone(@Nullable ZoneName name)Deprecated. This method is deprecated and will be removed in the next major version update.
Deprecated: not implemented. Gets details of a single 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
Zone response = edgeNetworkClient.getZone(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.ZoneNameRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
Zone |
|
getZone(GetZoneRequest request) (deprecated)
public final Zone getZone(GetZoneRequest request)Deprecated. This method is deprecated and will be removed in the next major version update.
Deprecated: not implemented. Gets details of a single 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetZoneRequest request =
GetZoneRequest.newBuilder()
.setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.build();
Zone response = edgeNetworkClient.getZone(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetZoneRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
Zone |
|
getZone(String name) (deprecated)
public final Zone getZone(String name)Deprecated. This method is deprecated and will be removed in the next major version update.
Deprecated: not implemented. Gets details of a single 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
Zone response = edgeNetworkClient.getZone(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
Zone |
|
getZoneCallable() (deprecated)
public final UnaryCallable<GetZoneRequest,Zone> getZoneCallable()Deprecated. This method is deprecated and will be removed in the next major version update.
Deprecated: not implemented. Gets details of a single 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetZoneRequest request =
GetZoneRequest.newBuilder()
.setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.build();
ApiFuture<Zone> future = edgeNetworkClient.getZoneCallable().futureCall(request);
// Do something.
Zone response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetZoneRequest,Zone> |
|
initializeZone(@Nullable ZoneName name)
public final InitializeZoneResponse initializeZone(@Nullable ZoneName name)InitializeZone will initialize resources for a zone in a project.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
InitializeZoneResponse response = edgeNetworkClient.initializeZone(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.ZoneNameRequired. The name of the zone resource. |
| Returns | |
|---|---|
| Type | Description |
InitializeZoneResponse |
|
initializeZone(InitializeZoneRequest request)
public final InitializeZoneResponse initializeZone(InitializeZoneRequest request)InitializeZone will initialize resources for a zone in a project.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
InitializeZoneRequest request =
InitializeZoneRequest.newBuilder()
.setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.build();
InitializeZoneResponse response = edgeNetworkClient.initializeZone(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
InitializeZoneRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
InitializeZoneResponse |
|
initializeZone(String name)
public final InitializeZoneResponse initializeZone(String name)InitializeZone will initialize resources for a zone in a project.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
InitializeZoneResponse response = edgeNetworkClient.initializeZone(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the zone resource. |
| Returns | |
|---|---|
| Type | Description |
InitializeZoneResponse |
|
initializeZoneCallable()
public final UnaryCallable<InitializeZoneRequest,InitializeZoneResponse> initializeZoneCallable()InitializeZone will initialize resources for a zone in a project.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
InitializeZoneRequest request =
InitializeZoneRequest.newBuilder()
.setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.build();
ApiFuture<InitializeZoneResponse> future =
edgeNetworkClient.initializeZoneCallable().futureCall(request);
// Do something.
InitializeZoneResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<InitializeZoneRequest,InitializeZoneResponse> |
|
isShutdown()
public boolean isShutdown()| Returns | |
|---|---|
| Type | Description |
boolean |
|
isTerminated()
public boolean isTerminated()| Returns | |
|---|---|
| Type | Description |
boolean |
|
listInterconnectAttachments(@Nullable ZoneName parent)
public final EdgeNetworkClient.ListInterconnectAttachmentsPagedResponse listInterconnectAttachments(@Nullable ZoneName parent)Lists InterconnectAttachments 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
for (InterconnectAttachment element :
edgeNetworkClient.listInterconnectAttachments(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.ZoneNameRequired. Parent value for ListInterconnectAttachmentsRequest |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient.ListInterconnectAttachmentsPagedResponse |
|
listInterconnectAttachments(ListInterconnectAttachmentsRequest request)
public final EdgeNetworkClient.ListInterconnectAttachmentsPagedResponse listInterconnectAttachments(ListInterconnectAttachmentsRequest request)Lists InterconnectAttachments 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListInterconnectAttachmentsRequest request =
ListInterconnectAttachmentsRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (InterconnectAttachment element :
edgeNetworkClient.listInterconnectAttachments(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListInterconnectAttachmentsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient.ListInterconnectAttachmentsPagedResponse |
|
listInterconnectAttachments(String parent)
public final EdgeNetworkClient.ListInterconnectAttachmentsPagedResponse listInterconnectAttachments(String parent)Lists InterconnectAttachments 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
for (InterconnectAttachment element :
edgeNetworkClient.listInterconnectAttachments(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. Parent value for ListInterconnectAttachmentsRequest |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient.ListInterconnectAttachmentsPagedResponse |
|
listInterconnectAttachmentsCallable()
public final UnaryCallable<ListInterconnectAttachmentsRequest,ListInterconnectAttachmentsResponse> listInterconnectAttachmentsCallable()Lists InterconnectAttachments 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListInterconnectAttachmentsRequest request =
ListInterconnectAttachmentsRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListInterconnectAttachmentsResponse response =
edgeNetworkClient.listInterconnectAttachmentsCallable().call(request);
for (InterconnectAttachment element : response.getInterconnectAttachmentsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListInterconnectAttachmentsRequest,ListInterconnectAttachmentsResponse> |
|
listInterconnectAttachmentsPagedCallable()
public final UnaryCallable<ListInterconnectAttachmentsRequest,EdgeNetworkClient.ListInterconnectAttachmentsPagedResponse> listInterconnectAttachmentsPagedCallable()Lists InterconnectAttachments 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListInterconnectAttachmentsRequest request =
ListInterconnectAttachmentsRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<InterconnectAttachment> future =
edgeNetworkClient.listInterconnectAttachmentsPagedCallable().futureCall(request);
// Do something.
for (InterconnectAttachment element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListInterconnectAttachmentsRequest,ListInterconnectAttachmentsPagedResponse> |
|
listInterconnects(@Nullable ZoneName parent)
public final EdgeNetworkClient.ListInterconnectsPagedResponse listInterconnects(@Nullable ZoneName parent)Lists Interconnects 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
for (Interconnect element : edgeNetworkClient.listInterconnects(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.ZoneNameRequired. Parent value for ListInterconnectsRequest |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient.ListInterconnectsPagedResponse |
|
listInterconnects(ListInterconnectsRequest request)
public final EdgeNetworkClient.ListInterconnectsPagedResponse listInterconnects(ListInterconnectsRequest request)Lists Interconnects 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListInterconnectsRequest request =
ListInterconnectsRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Interconnect element : edgeNetworkClient.listInterconnects(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListInterconnectsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient.ListInterconnectsPagedResponse |
|
listInterconnects(String parent)
public final EdgeNetworkClient.ListInterconnectsPagedResponse listInterconnects(String parent)Lists Interconnects 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
for (Interconnect element : edgeNetworkClient.listInterconnects(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. Parent value for ListInterconnectsRequest |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient.ListInterconnectsPagedResponse |
|
listInterconnectsCallable()
public final UnaryCallable<ListInterconnectsRequest,ListInterconnectsResponse> listInterconnectsCallable()Lists Interconnects 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListInterconnectsRequest request =
ListInterconnectsRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListInterconnectsResponse response =
edgeNetworkClient.listInterconnectsCallable().call(request);
for (Interconnect element : response.getInterconnectsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListInterconnectsRequest,ListInterconnectsResponse> |
|
listInterconnectsPagedCallable()
public final UnaryCallable<ListInterconnectsRequest,EdgeNetworkClient.ListInterconnectsPagedResponse> listInterconnectsPagedCallable()Lists Interconnects 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListInterconnectsRequest request =
ListInterconnectsRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Interconnect> future =
edgeNetworkClient.listInterconnectsPagedCallable().futureCall(request);
// Do something.
for (Interconnect element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListInterconnectsRequest,ListInterconnectsPagedResponse> |
|
listLocations(ListLocationsRequest request)
public final EdgeNetworkClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request)Lists information about the supported locations for this service.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (Location element : edgeNetworkClient.listLocations(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.cloud.location.ListLocationsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient.ListLocationsPagedResponse |
|
listLocationsCallable()
public final UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()Lists information about the supported locations for this service.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListLocationsResponse response = edgeNetworkClient.listLocationsCallable().call(request);
for (Location element : response.getLocationsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> |
|
listLocationsPagedCallable()
public final UnaryCallable<ListLocationsRequest,EdgeNetworkClient.ListLocationsPagedResponse> listLocationsPagedCallable()Lists information about the supported locations for this service.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<Location> future =
edgeNetworkClient.listLocationsPagedCallable().futureCall(request);
// Do something.
for (Location element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse> |
|
listNetworks(@Nullable ZoneName parent)
public final EdgeNetworkClient.ListNetworksPagedResponse listNetworks(@Nullable ZoneName parent)Lists Networks 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
for (Network element : edgeNetworkClient.listNetworks(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.ZoneNameRequired. Parent value for ListNetworksRequest |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient.ListNetworksPagedResponse |
|
listNetworks(ListNetworksRequest request)
public final EdgeNetworkClient.ListNetworksPagedResponse listNetworks(ListNetworksRequest request)Lists Networks 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListNetworksRequest request =
ListNetworksRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Network element : edgeNetworkClient.listNetworks(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListNetworksRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient.ListNetworksPagedResponse |
|
listNetworks(String parent)
public final EdgeNetworkClient.ListNetworksPagedResponse listNetworks(String parent)Lists Networks 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
for (Network element : edgeNetworkClient.listNetworks(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. Parent value for ListNetworksRequest |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient.ListNetworksPagedResponse |
|
listNetworksCallable()
public final UnaryCallable<ListNetworksRequest,ListNetworksResponse> listNetworksCallable()Lists Networks 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListNetworksRequest request =
ListNetworksRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListNetworksResponse response = edgeNetworkClient.listNetworksCallable().call(request);
for (Network element : response.getNetworksList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListNetworksRequest,ListNetworksResponse> |
|
listNetworksPagedCallable()
public final UnaryCallable<ListNetworksRequest,EdgeNetworkClient.ListNetworksPagedResponse> listNetworksPagedCallable()Lists Networks 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListNetworksRequest request =
ListNetworksRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Network> future = edgeNetworkClient.listNetworksPagedCallable().futureCall(request);
// Do something.
for (Network element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListNetworksRequest,ListNetworksPagedResponse> |
|
listRouters(@Nullable ZoneName parent)
public final EdgeNetworkClient.ListRoutersPagedResponse listRouters(@Nullable ZoneName parent)Lists Routers 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
for (Router element : edgeNetworkClient.listRouters(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.ZoneNameRequired. Parent value for ListRoutersRequest |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient.ListRoutersPagedResponse |
|
listRouters(ListRoutersRequest request)
public final EdgeNetworkClient.ListRoutersPagedResponse listRouters(ListRoutersRequest request)Lists Routers 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListRoutersRequest request =
ListRoutersRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Router element : edgeNetworkClient.listRouters(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListRoutersRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient.ListRoutersPagedResponse |
|
listRouters(String parent)
public final EdgeNetworkClient.ListRoutersPagedResponse listRouters(String parent)Lists Routers 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
for (Router element : edgeNetworkClient.listRouters(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. Parent value for ListRoutersRequest |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient.ListRoutersPagedResponse |
|
listRoutersCallable()
public final UnaryCallable<ListRoutersRequest,ListRoutersResponse> listRoutersCallable()Lists Routers 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListRoutersRequest request =
ListRoutersRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListRoutersResponse response = edgeNetworkClient.listRoutersCallable().call(request);
for (Router element : response.getRoutersList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListRoutersRequest,ListRoutersResponse> |
|
listRoutersPagedCallable()
public final UnaryCallable<ListRoutersRequest,EdgeNetworkClient.ListRoutersPagedResponse> listRoutersPagedCallable()Lists Routers 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListRoutersRequest request =
ListRoutersRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Router> future = edgeNetworkClient.listRoutersPagedCallable().futureCall(request);
// Do something.
for (Router element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListRoutersRequest,ListRoutersPagedResponse> |
|
listSubnets(@Nullable ZoneName parent)
public final EdgeNetworkClient.ListSubnetsPagedResponse listSubnets(@Nullable ZoneName parent)Lists Subnets 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
for (Subnet element : edgeNetworkClient.listSubnets(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.ZoneNameRequired. Parent value for ListSubnetsRequest |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient.ListSubnetsPagedResponse |
|
listSubnets(ListSubnetsRequest request)
public final EdgeNetworkClient.ListSubnetsPagedResponse listSubnets(ListSubnetsRequest request)Lists Subnets 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListSubnetsRequest request =
ListSubnetsRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Subnet element : edgeNetworkClient.listSubnets(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListSubnetsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient.ListSubnetsPagedResponse |
|
listSubnets(String parent)
public final EdgeNetworkClient.ListSubnetsPagedResponse listSubnets(String parent)Lists Subnets 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
for (Subnet element : edgeNetworkClient.listSubnets(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. Parent value for ListSubnetsRequest |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient.ListSubnetsPagedResponse |
|
listSubnetsCallable()
public final UnaryCallable<ListSubnetsRequest,ListSubnetsResponse> listSubnetsCallable()Lists Subnets 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListSubnetsRequest request =
ListSubnetsRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListSubnetsResponse response = edgeNetworkClient.listSubnetsCallable().call(request);
for (Subnet element : response.getSubnetsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListSubnetsRequest,ListSubnetsResponse> |
|
listSubnetsPagedCallable()
public final UnaryCallable<ListSubnetsRequest,EdgeNetworkClient.ListSubnetsPagedResponse> listSubnetsPagedCallable()Lists Subnets 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListSubnetsRequest request =
ListSubnetsRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Subnet> future = edgeNetworkClient.listSubnetsPagedCallable().futureCall(request);
// Do something.
for (Subnet element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListSubnetsRequest,ListSubnetsPagedResponse> |
|
listZones(@Nullable LocationName parent) (deprecated)
public final EdgeNetworkClient.ListZonesPagedResponse listZones(@Nullable LocationName parent)Deprecated. This method is deprecated and will be removed in the next major version update.
Deprecated: not implemented. Lists Zones 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Zone element : edgeNetworkClient.listZones(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.cloud.edgenetwork.v1.LocationNameRequired. Parent value for ListZonesRequest |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient.ListZonesPagedResponse |
|
listZones(ListZonesRequest request) (deprecated)
public final EdgeNetworkClient.ListZonesPagedResponse listZones(ListZonesRequest request)Deprecated. This method is deprecated and will be removed in the next major version update.
Deprecated: not implemented. Lists Zones 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListZonesRequest request =
ListZonesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Zone element : edgeNetworkClient.listZones(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListZonesRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient.ListZonesPagedResponse |
|
listZones(String parent) (deprecated)
public final EdgeNetworkClient.ListZonesPagedResponse listZones(String parent)Deprecated. This method is deprecated and will be removed in the next major version update.
Deprecated: not implemented. Lists Zones 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Zone element : edgeNetworkClient.listZones(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. Parent value for ListZonesRequest |
| Returns | |
|---|---|
| Type | Description |
EdgeNetworkClient.ListZonesPagedResponse |
|
listZonesCallable() (deprecated)
public final UnaryCallable<ListZonesRequest,ListZonesResponse> listZonesCallable()Deprecated. This method is deprecated and will be removed in the next major version update.
Deprecated: not implemented. Lists Zones 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListZonesRequest request =
ListZonesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListZonesResponse response = edgeNetworkClient.listZonesCallable().call(request);
for (Zone element : response.getZonesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListZonesRequest,ListZonesResponse> |
|
listZonesPagedCallable() (deprecated)
public final UnaryCallable<ListZonesRequest,EdgeNetworkClient.ListZonesPagedResponse> listZonesPagedCallable()Deprecated. This method is deprecated and will be removed in the next major version update.
Deprecated: not implemented. Lists Zones 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListZonesRequest request =
ListZonesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Zone> future = edgeNetworkClient.listZonesPagedCallable().futureCall(request);
// Do something.
for (Zone element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListZonesRequest,ListZonesPagedResponse> |
|
shutdown()
public void shutdown()shutdownNow()
public void shutdownNow()updateRouterAsync(Router router, FieldMask updateMask)
public final OperationFuture<Router,OperationMetadata> updateRouterAsync(Router router, FieldMask updateMask)Updates the parameters of a single Router.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
Router router = Router.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Router response = edgeNetworkClient.updateRouterAsync(router, updateMask).get();
}
| Parameters | |
|---|---|
| Name | Description |
router |
RouterRequired. The resource being updated |
updateMask |
FieldMaskRequired. Field mask is used to specify the fields to be overwritten in the Router resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Router,OperationMetadata> |
|
updateRouterAsync(UpdateRouterRequest request)
public final OperationFuture<Router,OperationMetadata> updateRouterAsync(UpdateRouterRequest request)Updates the parameters of a single Router.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
UpdateRouterRequest request =
UpdateRouterRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setRouter(Router.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Router response = edgeNetworkClient.updateRouterAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
UpdateRouterRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Router,OperationMetadata> |
|
updateRouterCallable()
public final UnaryCallable<UpdateRouterRequest,Operation> updateRouterCallable()Updates the parameters of a single Router.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
UpdateRouterRequest request =
UpdateRouterRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setRouter(Router.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = edgeNetworkClient.updateRouterCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<UpdateRouterRequest,Operation> |
|
updateRouterOperationCallable()
public final OperationCallable<UpdateRouterRequest,Router,OperationMetadata> updateRouterOperationCallable()Updates the parameters of a single Router.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
UpdateRouterRequest request =
UpdateRouterRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setRouter(Router.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Router, OperationMetadata> future =
edgeNetworkClient.updateRouterOperationCallable().futureCall(request);
// Do something.
Router response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<UpdateRouterRequest,Router,OperationMetadata> |
|
updateSubnetAsync(Subnet subnet, FieldMask updateMask)
public final OperationFuture<Subnet,OperationMetadata> updateSubnetAsync(Subnet subnet, FieldMask updateMask)Updates the parameters of a single Subnet.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
Subnet subnet = Subnet.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Subnet response = edgeNetworkClient.updateSubnetAsync(subnet, updateMask).get();
}
| Parameters | |
|---|---|
| Name | Description |
subnet |
SubnetRequired. The resource being updated |
updateMask |
FieldMaskRequired. Field mask is used to specify the fields to be overwritten in the Subnet resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Subnet,OperationMetadata> |
|
updateSubnetAsync(UpdateSubnetRequest request)
public final OperationFuture<Subnet,OperationMetadata> updateSubnetAsync(UpdateSubnetRequest request)Updates the parameters of a single Subnet.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
UpdateSubnetRequest request =
UpdateSubnetRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setSubnet(Subnet.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Subnet response = edgeNetworkClient.updateSubnetAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
UpdateSubnetRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Subnet,OperationMetadata> |
|
updateSubnetCallable()
public final UnaryCallable<UpdateSubnetRequest,Operation> updateSubnetCallable()Updates the parameters of a single Subnet.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
UpdateSubnetRequest request =
UpdateSubnetRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setSubnet(Subnet.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = edgeNetworkClient.updateSubnetCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<UpdateSubnetRequest,Operation> |
|
updateSubnetOperationCallable()
public final OperationCallable<UpdateSubnetRequest,Subnet,OperationMetadata> updateSubnetOperationCallable()Updates the parameters of a single Subnet.
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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
UpdateSubnetRequest request =
UpdateSubnetRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setSubnet(Subnet.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Subnet, OperationMetadata> future =
edgeNetworkClient.updateSubnetOperationCallable().futureCall(request);
// Do something.
Subnet response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<UpdateSubnetRequest,Subnet,OperationMetadata> |
|