@Generated(value="by gapic-generator-java") public class InterconnectGroupsClient extends Object implements com.google.api.gax.core.BackgroundResource
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
String project = "project-309310695";
String interconnectGroup = "interconnectGroup2103544465";
InterconnectGroup response = interconnectGroupsClient.get(project, interconnectGroup);
}
Note: close() needs to be called on the InterconnectGroupsClient 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 |
|---|---|---|
CreateMembers |
Create Interconnects with redundancy by creating them in a specified interconnect group. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
Delete |
Deletes the specified InterconnectGroup in the given scope |
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 `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
Get |
Returns the specified InterconnectGroup resource in the given scope. |
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.
|
GetIamPolicy |
Gets the access control policy for a resource. May be empty if no such policy or resource exists. |
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.
|
GetOperationalStatus |
Returns the interconnectStatuses for the specified InterconnectGroup. |
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.
|
Insert |
Creates a InterconnectGroup in the specified project in the given scope using the parameters that are included in the request. |
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 `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
List |
Lists the InterconnectGroups for a project in the given scope. |
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.
|
Patch |
Patches the specified InterconnectGroup resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. |
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 `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
SetIamPolicy |
Sets the access control policy on the specified resource. Replaces any existing policy. |
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.
|
TestIamPermissions |
Returns permissions that a caller has on the specified 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.
|
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 InterconnectGroupsSettings 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
InterconnectGroupsSettings interconnectGroupsSettings =
InterconnectGroupsSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
InterconnectGroupsClient interconnectGroupsClient =
InterconnectGroupsClient.create(interconnectGroupsSettings);
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
InterconnectGroupsSettings interconnectGroupsSettings =
InterconnectGroupsSettings.newBuilder().setEndpoint(myEndpoint).build();
InterconnectGroupsClient interconnectGroupsClient =
InterconnectGroupsClient.create(interconnectGroupsSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
| Modifier and Type | Class and Description |
|---|---|
static class |
InterconnectGroupsClient.ListFixedSizeCollection |
static class |
InterconnectGroupsClient.ListPage |
static class |
InterconnectGroupsClient.ListPagedResponse |
| Modifier | Constructor and Description |
|---|---|
protected |
InterconnectGroupsClient(InterconnectGroupsSettings settings)
Constructs an instance of InterconnectGroupsClient, using the given settings.
|
protected |
InterconnectGroupsClient(InterconnectGroupsStub stub) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static InterconnectGroupsClient |
create()
Constructs an instance of InterconnectGroupsClient with default settings.
|
static InterconnectGroupsClient |
create(InterconnectGroupsSettings settings)
Constructs an instance of InterconnectGroupsClient, using the given settings.
|
static InterconnectGroupsClient |
create(InterconnectGroupsStub stub)
Constructs an instance of InterconnectGroupsClient, using the given stub for making calls.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
createMembersAsync(CreateMembersInterconnectGroupRequest request)
Create Interconnects with redundancy by creating them in a specified interconnect group.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
createMembersAsync(String project,
String interconnectGroup,
InterconnectGroupsCreateMembersRequest interconnectGroupsCreateMembersRequestResource)
Create Interconnects with redundancy by creating them in a specified interconnect group.
|
com.google.api.gax.rpc.UnaryCallable<CreateMembersInterconnectGroupRequest,Operation> |
createMembersCallable()
Create Interconnects with redundancy by creating them in a specified interconnect group.
|
com.google.api.gax.rpc.OperationCallable<CreateMembersInterconnectGroupRequest,Operation,Operation> |
createMembersOperationCallable()
Create Interconnects with redundancy by creating them in a specified interconnect group.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
deleteAsync(DeleteInterconnectGroupRequest request)
Deletes the specified InterconnectGroup in the given scope
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
DeleteInterconnectGroupRequest request =
DeleteInterconnectGroupRequest.newBuilder()
.setInterconnectGroup("interconnectGroup2103544465")
.setProject("project-309310695")
.setRequestId("requestId693933066")
.build();
Operation response = interconnectGroupsClient.deleteAsync(request).get();
}
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
deleteAsync(String project,
String interconnectGroup)
Deletes the specified InterconnectGroup in the given scope
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
String project = "project-309310695";
String interconnectGroup = "interconnectGroup2103544465";
Operation response = interconnectGroupsClient.deleteAsync(project, interconnectGroup).get();
}
|
com.google.api.gax.rpc.UnaryCallable<DeleteInterconnectGroupRequest,Operation> |
deleteCallable()
Deletes the specified InterconnectGroup in the given scope
Sample code:
{@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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
DeleteInterconnectGroupRequest request =
DeleteInterconnectGroupRequest.newBuilder()
.setInterconnectGroup("interconnectGroup2103544465")
.setProject("project-309310695")
.setRequestId("requestId693933066")
.build();
ApiFuture
|
com.google.api.gax.rpc.OperationCallable<DeleteInterconnectGroupRequest,Operation,Operation> |
deleteOperationCallable()
Deletes the specified InterconnectGroup in the given scope
Sample code:
{@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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
DeleteInterconnectGroupRequest request =
DeleteInterconnectGroupRequest.newBuilder()
.setInterconnectGroup("interconnectGroup2103544465")
.setProject("project-309310695")
.setRequestId("requestId693933066")
.build();
OperationFuture
|
InterconnectGroup |
get(GetInterconnectGroupRequest request)
Returns the specified InterconnectGroup resource in the given scope.
|
InterconnectGroup |
get(String project,
String interconnectGroup)
Returns the specified InterconnectGroup resource in the given scope.
|
com.google.api.gax.rpc.UnaryCallable<GetInterconnectGroupRequest,InterconnectGroup> |
getCallable()
Returns the specified InterconnectGroup resource in the given scope.
|
Policy |
getIamPolicy(GetIamPolicyInterconnectGroupRequest request)
Gets the access control policy for a resource.
|
Policy |
getIamPolicy(String project,
String resource)
Gets the access control policy for a resource.
|
com.google.api.gax.rpc.UnaryCallable<GetIamPolicyInterconnectGroupRequest,Policy> |
getIamPolicyCallable()
Gets the access control policy for a resource.
|
InterconnectGroupsGetOperationalStatusResponse |
getOperationalStatus(GetOperationalStatusInterconnectGroupRequest request)
Returns the interconnectStatuses for the specified InterconnectGroup.
|
InterconnectGroupsGetOperationalStatusResponse |
getOperationalStatus(String project,
String interconnectGroup)
Returns the interconnectStatuses for the specified InterconnectGroup.
|
com.google.api.gax.rpc.UnaryCallable<GetOperationalStatusInterconnectGroupRequest,InterconnectGroupsGetOperationalStatusResponse> |
getOperationalStatusCallable()
Returns the interconnectStatuses for the specified InterconnectGroup.
|
InterconnectGroupsSettings |
getSettings() |
InterconnectGroupsStub |
getStub() |
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
insertAsync(InsertInterconnectGroupRequest request)
Creates a InterconnectGroup in the specified project in the given scope using the parameters
that are included in the request.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
insertAsync(String project,
InterconnectGroup interconnectGroupResource)
Creates a InterconnectGroup in the specified project in the given scope using the parameters
that are included in the request.
|
com.google.api.gax.rpc.UnaryCallable<InsertInterconnectGroupRequest,Operation> |
insertCallable()
Creates a InterconnectGroup in the specified project in the given scope using the parameters
that are included in the request.
|
com.google.api.gax.rpc.OperationCallable<InsertInterconnectGroupRequest,Operation,Operation> |
insertOperationCallable()
Creates a InterconnectGroup in the specified project in the given scope using the parameters
that are included in the request.
|
boolean |
isShutdown() |
boolean |
isTerminated() |
InterconnectGroupsClient.ListPagedResponse |
list(ListInterconnectGroupsRequest request)
Lists the InterconnectGroups for a project in the given scope.
|
InterconnectGroupsClient.ListPagedResponse |
list(String project)
Lists the InterconnectGroups for a project in the given scope.
|
com.google.api.gax.rpc.UnaryCallable<ListInterconnectGroupsRequest,InterconnectGroupsListResponse> |
listCallable()
Lists the InterconnectGroups for a project in the given scope.
|
com.google.api.gax.rpc.UnaryCallable<ListInterconnectGroupsRequest,InterconnectGroupsClient.ListPagedResponse> |
listPagedCallable()
Lists the InterconnectGroups for a project in the given scope.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
patchAsync(PatchInterconnectGroupRequest request)
Patches the specified InterconnectGroup resource with the data included in the request.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
patchAsync(String project,
String interconnectGroup,
InterconnectGroup interconnectGroupResource)
Patches the specified InterconnectGroup resource with the data included in the request.
|
com.google.api.gax.rpc.UnaryCallable<PatchInterconnectGroupRequest,Operation> |
patchCallable()
Patches the specified InterconnectGroup resource with the data included in the request.
|
com.google.api.gax.rpc.OperationCallable<PatchInterconnectGroupRequest,Operation,Operation> |
patchOperationCallable()
Patches the specified InterconnectGroup resource with the data included in the request.
|
Policy |
setIamPolicy(SetIamPolicyInterconnectGroupRequest request)
Sets the access control policy on the specified resource.
|
Policy |
setIamPolicy(String project,
String resource,
GlobalSetPolicyRequest globalSetPolicyRequestResource)
Sets the access control policy on the specified resource.
|
com.google.api.gax.rpc.UnaryCallable<SetIamPolicyInterconnectGroupRequest,Policy> |
setIamPolicyCallable()
Sets the access control policy on the specified resource.
|
void |
shutdown() |
void |
shutdownNow() |
TestPermissionsResponse |
testIamPermissions(String project,
String resource,
TestPermissionsRequest testPermissionsRequestResource)
Returns permissions that a caller has on the specified resource.
|
TestPermissionsResponse |
testIamPermissions(TestIamPermissionsInterconnectGroupRequest request)
Returns permissions that a caller has on the specified resource.
|
com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsInterconnectGroupRequest,TestPermissionsResponse> |
testIamPermissionsCallable()
Returns permissions that a caller has on the specified resource.
|
protected InterconnectGroupsClient(InterconnectGroupsSettings settings) throws IOException
IOExceptionprotected InterconnectGroupsClient(InterconnectGroupsStub stub)
public static final InterconnectGroupsClient create() throws IOException
IOExceptionpublic static final InterconnectGroupsClient create(InterconnectGroupsSettings settings) throws IOException
IOExceptionpublic static final InterconnectGroupsClient create(InterconnectGroupsStub stub)
public final InterconnectGroupsSettings getSettings()
public InterconnectGroupsStub getStub()
public final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> createMembersAsync(String project, String interconnectGroup, InterconnectGroupsCreateMembersRequest interconnectGroupsCreateMembersRequestResource)
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
String project = "project-309310695";
String interconnectGroup = "interconnectGroup2103544465";
InterconnectGroupsCreateMembersRequest interconnectGroupsCreateMembersRequestResource =
InterconnectGroupsCreateMembersRequest.newBuilder().build();
Operation response =
interconnectGroupsClient
.createMembersAsync(
project, interconnectGroup, interconnectGroupsCreateMembersRequestResource)
.get();
}
project - Project ID for this request.interconnectGroup - Name of the group resource to create members for.interconnectGroupsCreateMembersRequestResource - The body resource for this requestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> createMembersAsync(CreateMembersInterconnectGroupRequest request)
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
CreateMembersInterconnectGroupRequest request =
CreateMembersInterconnectGroupRequest.newBuilder()
.setInterconnectGroup("interconnectGroup2103544465")
.setInterconnectGroupsCreateMembersRequestResource(
InterconnectGroupsCreateMembersRequest.newBuilder().build())
.setProject("project-309310695")
.build();
Operation response = interconnectGroupsClient.createMembersAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<CreateMembersInterconnectGroupRequest,Operation,Operation> createMembersOperationCallable()
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
CreateMembersInterconnectGroupRequest request =
CreateMembersInterconnectGroupRequest.newBuilder()
.setInterconnectGroup("interconnectGroup2103544465")
.setInterconnectGroupsCreateMembersRequestResource(
InterconnectGroupsCreateMembersRequest.newBuilder().build())
.setProject("project-309310695")
.build();
OperationFuture<Operation, Operation> future =
interconnectGroupsClient.createMembersOperationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateMembersInterconnectGroupRequest,Operation> createMembersCallable()
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
CreateMembersInterconnectGroupRequest request =
CreateMembersInterconnectGroupRequest.newBuilder()
.setInterconnectGroup("interconnectGroup2103544465")
.setInterconnectGroupsCreateMembersRequestResource(
InterconnectGroupsCreateMembersRequest.newBuilder().build())
.setProject("project-309310695")
.build();
ApiFuture<Operation> future =
interconnectGroupsClient.createMembersCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> deleteAsync(String project, String interconnectGroup)
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
String project = "project-309310695";
String interconnectGroup = "interconnectGroup2103544465";
Operation response = interconnectGroupsClient.deleteAsync(project, interconnectGroup).get();
}
project - Project ID for this request.interconnectGroup - Name of the InterconnectGroup resource to delete.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> deleteAsync(DeleteInterconnectGroupRequest request)
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
DeleteInterconnectGroupRequest request =
DeleteInterconnectGroupRequest.newBuilder()
.setInterconnectGroup("interconnectGroup2103544465")
.setProject("project-309310695")
.setRequestId("requestId693933066")
.build();
Operation response = interconnectGroupsClient.deleteAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeleteInterconnectGroupRequest,Operation,Operation> deleteOperationCallable()
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
DeleteInterconnectGroupRequest request =
DeleteInterconnectGroupRequest.newBuilder()
.setInterconnectGroup("interconnectGroup2103544465")
.setProject("project-309310695")
.setRequestId("requestId693933066")
.build();
OperationFuture<Operation, Operation> future =
interconnectGroupsClient.deleteOperationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteInterconnectGroupRequest,Operation> deleteCallable()
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
DeleteInterconnectGroupRequest request =
DeleteInterconnectGroupRequest.newBuilder()
.setInterconnectGroup("interconnectGroup2103544465")
.setProject("project-309310695")
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = interconnectGroupsClient.deleteCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final InterconnectGroup get(String project, String interconnectGroup)
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
String project = "project-309310695";
String interconnectGroup = "interconnectGroup2103544465";
InterconnectGroup response = interconnectGroupsClient.get(project, interconnectGroup);
}
project - Project ID for this request.interconnectGroup - Name of the InterconnectGroup resource to return.com.google.api.gax.rpc.ApiException - if the remote call failspublic final InterconnectGroup get(GetInterconnectGroupRequest request)
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
GetInterconnectGroupRequest request =
GetInterconnectGroupRequest.newBuilder()
.setInterconnectGroup("interconnectGroup2103544465")
.setProject("project-309310695")
.build();
InterconnectGroup response = interconnectGroupsClient.get(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetInterconnectGroupRequest,InterconnectGroup> getCallable()
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
GetInterconnectGroupRequest request =
GetInterconnectGroupRequest.newBuilder()
.setInterconnectGroup("interconnectGroup2103544465")
.setProject("project-309310695")
.build();
ApiFuture<InterconnectGroup> future =
interconnectGroupsClient.getCallable().futureCall(request);
// Do something.
InterconnectGroup response = future.get();
}
public final Policy getIamPolicy(String project, String 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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
String project = "project-309310695";
String resource = "resource-341064690";
Policy response = interconnectGroupsClient.getIamPolicy(project, resource);
}
project - Project ID for this request.resource - Name or id of the resource for this request.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Policy getIamPolicy(GetIamPolicyInterconnectGroupRequest request)
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
GetIamPolicyInterconnectGroupRequest request =
GetIamPolicyInterconnectGroupRequest.newBuilder()
.setOptionsRequestedPolicyVersion(-574521795)
.setProject("project-309310695")
.setResource("resource-341064690")
.build();
Policy response = interconnectGroupsClient.getIamPolicy(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetIamPolicyInterconnectGroupRequest,Policy> getIamPolicyCallable()
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
GetIamPolicyInterconnectGroupRequest request =
GetIamPolicyInterconnectGroupRequest.newBuilder()
.setOptionsRequestedPolicyVersion(-574521795)
.setProject("project-309310695")
.setResource("resource-341064690")
.build();
ApiFuture<Policy> future =
interconnectGroupsClient.getIamPolicyCallable().futureCall(request);
// Do something.
Policy response = future.get();
}
public final InterconnectGroupsGetOperationalStatusResponse getOperationalStatus(String project, String interconnectGroup)
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
String project = "project-309310695";
String interconnectGroup = "interconnectGroup2103544465";
InterconnectGroupsGetOperationalStatusResponse response =
interconnectGroupsClient.getOperationalStatus(project, interconnectGroup);
}
project - Project ID for this request.interconnectGroup - Name of the interconnectGroup resource to query.com.google.api.gax.rpc.ApiException - if the remote call failspublic final InterconnectGroupsGetOperationalStatusResponse getOperationalStatus(GetOperationalStatusInterconnectGroupRequest request)
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
GetOperationalStatusInterconnectGroupRequest request =
GetOperationalStatusInterconnectGroupRequest.newBuilder()
.setInterconnectGroup("interconnectGroup2103544465")
.setProject("project-309310695")
.build();
InterconnectGroupsGetOperationalStatusResponse response =
interconnectGroupsClient.getOperationalStatus(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetOperationalStatusInterconnectGroupRequest,InterconnectGroupsGetOperationalStatusResponse> getOperationalStatusCallable()
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
GetOperationalStatusInterconnectGroupRequest request =
GetOperationalStatusInterconnectGroupRequest.newBuilder()
.setInterconnectGroup("interconnectGroup2103544465")
.setProject("project-309310695")
.build();
ApiFuture<InterconnectGroupsGetOperationalStatusResponse> future =
interconnectGroupsClient.getOperationalStatusCallable().futureCall(request);
// Do something.
InterconnectGroupsGetOperationalStatusResponse response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> insertAsync(String project, InterconnectGroup interconnectGroupResource)
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
String project = "project-309310695";
InterconnectGroup interconnectGroupResource = InterconnectGroup.newBuilder().build();
Operation response =
interconnectGroupsClient.insertAsync(project, interconnectGroupResource).get();
}
project - Project ID for this request.interconnectGroupResource - The body resource for this requestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> insertAsync(InsertInterconnectGroupRequest request)
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
InsertInterconnectGroupRequest request =
InsertInterconnectGroupRequest.newBuilder()
.setInterconnectGroupResource(InterconnectGroup.newBuilder().build())
.setProject("project-309310695")
.setRequestId("requestId693933066")
.build();
Operation response = interconnectGroupsClient.insertAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<InsertInterconnectGroupRequest,Operation,Operation> insertOperationCallable()
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
InsertInterconnectGroupRequest request =
InsertInterconnectGroupRequest.newBuilder()
.setInterconnectGroupResource(InterconnectGroup.newBuilder().build())
.setProject("project-309310695")
.setRequestId("requestId693933066")
.build();
OperationFuture<Operation, Operation> future =
interconnectGroupsClient.insertOperationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<InsertInterconnectGroupRequest,Operation> insertCallable()
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
InsertInterconnectGroupRequest request =
InsertInterconnectGroupRequest.newBuilder()
.setInterconnectGroupResource(InterconnectGroup.newBuilder().build())
.setProject("project-309310695")
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = interconnectGroupsClient.insertCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final InterconnectGroupsClient.ListPagedResponse list(String 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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
String project = "project-309310695";
for (InterconnectGroup element : interconnectGroupsClient.list(project).iterateAll()) {
// doThingsWith(element);
}
}
project - Project ID for this request.com.google.api.gax.rpc.ApiException - if the remote call failspublic final InterconnectGroupsClient.ListPagedResponse list(ListInterconnectGroupsRequest request)
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
ListInterconnectGroupsRequest request =
ListInterconnectGroupsRequest.newBuilder()
.setFilter("filter-1274492040")
.setMaxResults(1128457243)
.setOrderBy("orderBy-1207110587")
.setPageToken("pageToken873572522")
.setProject("project-309310695")
.setReturnPartialSuccess(true)
.build();
for (InterconnectGroup element : interconnectGroupsClient.list(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListInterconnectGroupsRequest,InterconnectGroupsClient.ListPagedResponse> listPagedCallable()
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
ListInterconnectGroupsRequest request =
ListInterconnectGroupsRequest.newBuilder()
.setFilter("filter-1274492040")
.setMaxResults(1128457243)
.setOrderBy("orderBy-1207110587")
.setPageToken("pageToken873572522")
.setProject("project-309310695")
.setReturnPartialSuccess(true)
.build();
ApiFuture<InterconnectGroup> future =
interconnectGroupsClient.listPagedCallable().futureCall(request);
// Do something.
for (InterconnectGroup element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListInterconnectGroupsRequest,InterconnectGroupsListResponse> listCallable()
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
ListInterconnectGroupsRequest request =
ListInterconnectGroupsRequest.newBuilder()
.setFilter("filter-1274492040")
.setMaxResults(1128457243)
.setOrderBy("orderBy-1207110587")
.setPageToken("pageToken873572522")
.setProject("project-309310695")
.setReturnPartialSuccess(true)
.build();
while (true) {
InterconnectGroupsListResponse response =
interconnectGroupsClient.listCallable().call(request);
for (InterconnectGroup element : response.getItemsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> patchAsync(String project, String interconnectGroup, InterconnectGroup interconnectGroupResource)
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
String project = "project-309310695";
String interconnectGroup = "interconnectGroup2103544465";
InterconnectGroup interconnectGroupResource = InterconnectGroup.newBuilder().build();
Operation response =
interconnectGroupsClient
.patchAsync(project, interconnectGroup, interconnectGroupResource)
.get();
}
project - Project ID for this request.interconnectGroup - Name of the InterconnectGroup resource to patch.interconnectGroupResource - The body resource for this requestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> patchAsync(PatchInterconnectGroupRequest request)
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
PatchInterconnectGroupRequest request =
PatchInterconnectGroupRequest.newBuilder()
.setInterconnectGroup("interconnectGroup2103544465")
.setInterconnectGroupResource(InterconnectGroup.newBuilder().build())
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setUpdateMask("updateMask-296147115")
.build();
Operation response = interconnectGroupsClient.patchAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<PatchInterconnectGroupRequest,Operation,Operation> patchOperationCallable()
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
PatchInterconnectGroupRequest request =
PatchInterconnectGroupRequest.newBuilder()
.setInterconnectGroup("interconnectGroup2103544465")
.setInterconnectGroupResource(InterconnectGroup.newBuilder().build())
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setUpdateMask("updateMask-296147115")
.build();
OperationFuture<Operation, Operation> future =
interconnectGroupsClient.patchOperationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<PatchInterconnectGroupRequest,Operation> patchCallable()
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
PatchInterconnectGroupRequest request =
PatchInterconnectGroupRequest.newBuilder()
.setInterconnectGroup("interconnectGroup2103544465")
.setInterconnectGroupResource(InterconnectGroup.newBuilder().build())
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setUpdateMask("updateMask-296147115")
.build();
ApiFuture<Operation> future = interconnectGroupsClient.patchCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final Policy setIamPolicy(String project, String resource, GlobalSetPolicyRequest globalSetPolicyRequestResource)
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
String project = "project-309310695";
String resource = "resource-341064690";
GlobalSetPolicyRequest globalSetPolicyRequestResource =
GlobalSetPolicyRequest.newBuilder().build();
Policy response =
interconnectGroupsClient.setIamPolicy(project, resource, globalSetPolicyRequestResource);
}
project - Project ID for this request.resource - Name or id of the resource for this request.globalSetPolicyRequestResource - The body resource for this requestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final Policy setIamPolicy(SetIamPolicyInterconnectGroupRequest request)
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
SetIamPolicyInterconnectGroupRequest request =
SetIamPolicyInterconnectGroupRequest.newBuilder()
.setGlobalSetPolicyRequestResource(GlobalSetPolicyRequest.newBuilder().build())
.setProject("project-309310695")
.setResource("resource-341064690")
.build();
Policy response = interconnectGroupsClient.setIamPolicy(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<SetIamPolicyInterconnectGroupRequest,Policy> setIamPolicyCallable()
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
SetIamPolicyInterconnectGroupRequest request =
SetIamPolicyInterconnectGroupRequest.newBuilder()
.setGlobalSetPolicyRequestResource(GlobalSetPolicyRequest.newBuilder().build())
.setProject("project-309310695")
.setResource("resource-341064690")
.build();
ApiFuture<Policy> future =
interconnectGroupsClient.setIamPolicyCallable().futureCall(request);
// Do something.
Policy response = future.get();
}
public final TestPermissionsResponse testIamPermissions(String project, String resource, TestPermissionsRequest testPermissionsRequestResource)
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
String project = "project-309310695";
String resource = "resource-341064690";
TestPermissionsRequest testPermissionsRequestResource =
TestPermissionsRequest.newBuilder().build();
TestPermissionsResponse response =
interconnectGroupsClient.testIamPermissions(
project, resource, testPermissionsRequestResource);
}
project - Project ID for this request.resource - Name or id of the resource for this request.testPermissionsRequestResource - The body resource for this requestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final TestPermissionsResponse testIamPermissions(TestIamPermissionsInterconnectGroupRequest request)
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
TestIamPermissionsInterconnectGroupRequest request =
TestIamPermissionsInterconnectGroupRequest.newBuilder()
.setProject("project-309310695")
.setResource("resource-341064690")
.setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
.build();
TestPermissionsResponse response = interconnectGroupsClient.testIamPermissions(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsInterconnectGroupRequest,TestPermissionsResponse> testIamPermissionsCallable()
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 (InterconnectGroupsClient interconnectGroupsClient = InterconnectGroupsClient.create()) {
TestIamPermissionsInterconnectGroupRequest request =
TestIamPermissionsInterconnectGroupRequest.newBuilder()
.setProject("project-309310695")
.setResource("resource-341064690")
.setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
.build();
ApiFuture<TestPermissionsResponse> future =
interconnectGroupsClient.testIamPermissionsCallable().futureCall(request);
// Do something.
TestPermissionsResponse response = future.get();
}
public final void close()
close in interface AutoCloseablepublic void shutdown()
shutdown in interface com.google.api.gax.core.BackgroundResourcepublic boolean isShutdown()
isShutdown in interface com.google.api.gax.core.BackgroundResourcepublic boolean isTerminated()
isTerminated in interface com.google.api.gax.core.BackgroundResourcepublic void shutdownNow()
shutdownNow in interface com.google.api.gax.core.BackgroundResourcepublic boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
awaitTermination in interface com.google.api.gax.core.BackgroundResourceInterruptedExceptionCopyright © 2025 Google LLC. All rights reserved.