| GitHub Repository | Product Reference |
Service Description: PM2 is the "out-of-band" flavor of the Network Security Integrations product.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
MirroringEndpointGroupName name =
MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]");
MirroringEndpointGroup response = mirroringClient.getMirroringEndpointGroup(name);
}
Note: close() needs to be called on the MirroringClient 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 |
|---|---|---|
ListMirroringEndpointGroups |
Lists endpoint groups in a given project and location. See https://google.aip.dev/132. |
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.
|
GetMirroringEndpointGroup |
Gets a specific endpoint group. See https://google.aip.dev/131. |
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.
|
CreateMirroringEndpointGroup |
Creates an endpoint group in a given project and location. See https://google.aip.dev/133. |
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.
|
UpdateMirroringEndpointGroup |
Updates an endpoint group. See https://google.aip.dev/134. |
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.
|
DeleteMirroringEndpointGroup |
Deletes an endpoint group. See https://google.aip.dev/135. |
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.
|
ListMirroringEndpointGroupAssociations |
Lists associations in a given project and location. See https://google.aip.dev/132. |
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.
|
GetMirroringEndpointGroupAssociation |
Gets a specific association. See https://google.aip.dev/131. |
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.
|
CreateMirroringEndpointGroupAssociation |
Creates an association in a given project and location. See https://google.aip.dev/133. |
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.
|
UpdateMirroringEndpointGroupAssociation |
Updates an association. See https://google.aip.dev/134. |
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.
|
DeleteMirroringEndpointGroupAssociation |
Deletes an association. See https://google.aip.dev/135. |
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.
|
ListMirroringDeploymentGroups |
Lists deployment groups in a given project and location. See https://google.aip.dev/132. |
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.
|
GetMirroringDeploymentGroup |
Gets a specific deployment group. See https://google.aip.dev/131. |
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.
|
CreateMirroringDeploymentGroup |
Creates a deployment group in a given project and location. See https://google.aip.dev/133. |
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.
|
UpdateMirroringDeploymentGroup |
Updates a deployment group. See https://google.aip.dev/134. |
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.
|
DeleteMirroringDeploymentGroup |
Deletes a deployment group. See https://google.aip.dev/135. |
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.
|
ListMirroringDeployments |
Lists deployments in a given project and location. See https://google.aip.dev/132. |
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.
|
GetMirroringDeployment |
Gets a specific deployment. See https://google.aip.dev/131. |
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.
|
CreateMirroringDeployment |
Creates a deployment in a given project and location. See https://google.aip.dev/133. |
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.
|
UpdateMirroringDeployment |
Updates a deployment. See https://google.aip.dev/134. |
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.
|
DeleteMirroringDeployment |
Deletes a deployment. See https://google.aip.dev/135. |
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. This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: * **Global locations**: If For gRPC and client library implementations, the resource name ispassed as the |
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.
|
SetIamPolicy |
Sets the access control policy on the specified resource. Replacesany existing policy. Can return |
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.
|
GetIamPolicy |
Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set. |
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.
|
TestIamPermissions |
Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning. |
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 MirroringSettings 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
MirroringSettings mirroringSettings =
MirroringSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
MirroringClient mirroringClient = MirroringClient.create(mirroringSettings);
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
MirroringSettings mirroringSettings =
MirroringSettings.newBuilder().setEndpoint(myEndpoint).build();
MirroringClient mirroringClient = MirroringClient.create(mirroringSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
Static Methods
create()
public static final MirroringClient create()Constructs an instance of MirroringClient with default settings.
| Returns | |
|---|---|
| Type | Description |
MirroringClient |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(MirroringSettings settings)
public static final MirroringClient create(MirroringSettings settings)Constructs an instance of MirroringClient, 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 |
MirroringSettings |
| Returns | |
|---|---|
| Type | Description |
MirroringClient |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(MirroringStub stub)
public static final MirroringClient create(MirroringStub stub)Constructs an instance of MirroringClient, using the given stub for making calls. This is for advanced usage - prefer using create(MirroringSettings).
| Parameter | |
|---|---|
| Name | Description |
stub |
MirroringStub |
| Returns | |
|---|---|
| Type | Description |
MirroringClient |
|
Constructors
MirroringClient(MirroringSettings settings)
protected MirroringClient(MirroringSettings settings)Constructs an instance of MirroringClient, 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 |
MirroringSettings |
MirroringClient(MirroringStub stub)
protected MirroringClient(MirroringStub stub)| Parameter | |
|---|---|
| Name | Description |
stub |
MirroringStub |
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()createMirroringDeploymentAsync(CreateMirroringDeploymentRequest request)
public final OperationFuture<MirroringDeployment,OperationMetadata> createMirroringDeploymentAsync(CreateMirroringDeploymentRequest request)Creates a deployment in a given project and location. See https://google.aip.dev/133.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
CreateMirroringDeploymentRequest request =
CreateMirroringDeploymentRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setMirroringDeploymentId("mirroringDeploymentId-895939037")
.setMirroringDeployment(MirroringDeployment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
MirroringDeployment response = mirroringClient.createMirroringDeploymentAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateMirroringDeploymentRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<MirroringDeployment,OperationMetadata> |
|
createMirroringDeploymentAsync(LocationName parent, MirroringDeployment mirroringDeployment, String mirroringDeploymentId)
public final OperationFuture<MirroringDeployment,OperationMetadata> createMirroringDeploymentAsync(LocationName parent, MirroringDeployment mirroringDeployment, String mirroringDeploymentId)Creates a deployment in a given project and location. See https://google.aip.dev/133.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
MirroringDeployment mirroringDeployment = MirroringDeployment.newBuilder().build();
String mirroringDeploymentId = "mirroringDeploymentId-895939037";
MirroringDeployment response =
mirroringClient
.createMirroringDeploymentAsync(parent, mirroringDeployment, mirroringDeploymentId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource where this deployment will be created. Format: projects/{project}/locations/{location} |
mirroringDeployment |
MirroringDeploymentRequired. The deployment to create. |
mirroringDeploymentId |
StringRequired. The ID to use for the new deployment, which will become the final component of the deployment's resource name. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<MirroringDeployment,OperationMetadata> |
|
createMirroringDeploymentAsync(String parent, MirroringDeployment mirroringDeployment, String mirroringDeploymentId)
public final OperationFuture<MirroringDeployment,OperationMetadata> createMirroringDeploymentAsync(String parent, MirroringDeployment mirroringDeployment, String mirroringDeploymentId)Creates a deployment in a given project and location. See https://google.aip.dev/133.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
MirroringDeployment mirroringDeployment = MirroringDeployment.newBuilder().build();
String mirroringDeploymentId = "mirroringDeploymentId-895939037";
MirroringDeployment response =
mirroringClient
.createMirroringDeploymentAsync(parent, mirroringDeployment, mirroringDeploymentId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where this deployment will be created. Format: projects/{project}/locations/{location} |
mirroringDeployment |
MirroringDeploymentRequired. The deployment to create. |
mirroringDeploymentId |
StringRequired. The ID to use for the new deployment, which will become the final component of the deployment's resource name. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<MirroringDeployment,OperationMetadata> |
|
createMirroringDeploymentCallable()
public final UnaryCallable<CreateMirroringDeploymentRequest,Operation> createMirroringDeploymentCallable()Creates a deployment in a given project and location. See https://google.aip.dev/133.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
CreateMirroringDeploymentRequest request =
CreateMirroringDeploymentRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setMirroringDeploymentId("mirroringDeploymentId-895939037")
.setMirroringDeployment(MirroringDeployment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
mirroringClient.createMirroringDeploymentCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateMirroringDeploymentRequest,Operation> |
|
createMirroringDeploymentGroupAsync(CreateMirroringDeploymentGroupRequest request)
public final OperationFuture<MirroringDeploymentGroup,OperationMetadata> createMirroringDeploymentGroupAsync(CreateMirroringDeploymentGroupRequest request)Creates a deployment group in a given project and location. See https://google.aip.dev/133.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
CreateMirroringDeploymentGroupRequest request =
CreateMirroringDeploymentGroupRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setMirroringDeploymentGroupId("mirroringDeploymentGroupId-1056718862")
.setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
MirroringDeploymentGroup response =
mirroringClient.createMirroringDeploymentGroupAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateMirroringDeploymentGroupRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<MirroringDeploymentGroup,OperationMetadata> |
|
createMirroringDeploymentGroupAsync(LocationName parent, MirroringDeploymentGroup mirroringDeploymentGroup, String mirroringDeploymentGroupId)
public final OperationFuture<MirroringDeploymentGroup,OperationMetadata> createMirroringDeploymentGroupAsync(LocationName parent, MirroringDeploymentGroup mirroringDeploymentGroup, String mirroringDeploymentGroupId)Creates a deployment group in a given project and location. See https://google.aip.dev/133.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
MirroringDeploymentGroup mirroringDeploymentGroup =
MirroringDeploymentGroup.newBuilder().build();
String mirroringDeploymentGroupId = "mirroringDeploymentGroupId-1056718862";
MirroringDeploymentGroup response =
mirroringClient
.createMirroringDeploymentGroupAsync(
parent, mirroringDeploymentGroup, mirroringDeploymentGroupId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource where this deployment group will be created. Format: projects/{project}/locations/{location} |
mirroringDeploymentGroup |
MirroringDeploymentGroupRequired. The deployment group to create. |
mirroringDeploymentGroupId |
StringRequired. The ID to use for the new deployment group, which will become the final component of the deployment group's resource name. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<MirroringDeploymentGroup,OperationMetadata> |
|
createMirroringDeploymentGroupAsync(String parent, MirroringDeploymentGroup mirroringDeploymentGroup, String mirroringDeploymentGroupId)
public final OperationFuture<MirroringDeploymentGroup,OperationMetadata> createMirroringDeploymentGroupAsync(String parent, MirroringDeploymentGroup mirroringDeploymentGroup, String mirroringDeploymentGroupId)Creates a deployment group in a given project and location. See https://google.aip.dev/133.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
MirroringDeploymentGroup mirroringDeploymentGroup =
MirroringDeploymentGroup.newBuilder().build();
String mirroringDeploymentGroupId = "mirroringDeploymentGroupId-1056718862";
MirroringDeploymentGroup response =
mirroringClient
.createMirroringDeploymentGroupAsync(
parent, mirroringDeploymentGroup, mirroringDeploymentGroupId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where this deployment group will be created. Format: projects/{project}/locations/{location} |
mirroringDeploymentGroup |
MirroringDeploymentGroupRequired. The deployment group to create. |
mirroringDeploymentGroupId |
StringRequired. The ID to use for the new deployment group, which will become the final component of the deployment group's resource name. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<MirroringDeploymentGroup,OperationMetadata> |
|
createMirroringDeploymentGroupCallable()
public final UnaryCallable<CreateMirroringDeploymentGroupRequest,Operation> createMirroringDeploymentGroupCallable()Creates a deployment group in a given project and location. See https://google.aip.dev/133.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
CreateMirroringDeploymentGroupRequest request =
CreateMirroringDeploymentGroupRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setMirroringDeploymentGroupId("mirroringDeploymentGroupId-1056718862")
.setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
mirroringClient.createMirroringDeploymentGroupCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateMirroringDeploymentGroupRequest,Operation> |
|
createMirroringDeploymentGroupOperationCallable()
public final OperationCallable<CreateMirroringDeploymentGroupRequest,MirroringDeploymentGroup,OperationMetadata> createMirroringDeploymentGroupOperationCallable()Creates a deployment group in a given project and location. See https://google.aip.dev/133.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
CreateMirroringDeploymentGroupRequest request =
CreateMirroringDeploymentGroupRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setMirroringDeploymentGroupId("mirroringDeploymentGroupId-1056718862")
.setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<MirroringDeploymentGroup, OperationMetadata> future =
mirroringClient.createMirroringDeploymentGroupOperationCallable().futureCall(request);
// Do something.
MirroringDeploymentGroup response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<CreateMirroringDeploymentGroupRequest,MirroringDeploymentGroup,OperationMetadata> |
|
createMirroringDeploymentOperationCallable()
public final OperationCallable<CreateMirroringDeploymentRequest,MirroringDeployment,OperationMetadata> createMirroringDeploymentOperationCallable()Creates a deployment in a given project and location. See https://google.aip.dev/133.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
CreateMirroringDeploymentRequest request =
CreateMirroringDeploymentRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setMirroringDeploymentId("mirroringDeploymentId-895939037")
.setMirroringDeployment(MirroringDeployment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<MirroringDeployment, OperationMetadata> future =
mirroringClient.createMirroringDeploymentOperationCallable().futureCall(request);
// Do something.
MirroringDeployment response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<CreateMirroringDeploymentRequest,MirroringDeployment,OperationMetadata> |
|
createMirroringEndpointGroupAssociationAsync(CreateMirroringEndpointGroupAssociationRequest request)
public final OperationFuture<MirroringEndpointGroupAssociation,OperationMetadata> createMirroringEndpointGroupAssociationAsync(CreateMirroringEndpointGroupAssociationRequest request)Creates an association in a given project and location. See https://google.aip.dev/133.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
CreateMirroringEndpointGroupAssociationRequest request =
CreateMirroringEndpointGroupAssociationRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setMirroringEndpointGroupAssociationId(
"mirroringEndpointGroupAssociationId-1957886507")
.setMirroringEndpointGroupAssociation(
MirroringEndpointGroupAssociation.newBuilder().build())
.setRequestId("requestId693933066")
.build();
MirroringEndpointGroupAssociation response =
mirroringClient.createMirroringEndpointGroupAssociationAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateMirroringEndpointGroupAssociationRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<MirroringEndpointGroupAssociation,OperationMetadata> |
|
createMirroringEndpointGroupAssociationAsync(LocationName parent, MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, String mirroringEndpointGroupAssociationId)
public final OperationFuture<MirroringEndpointGroupAssociation,OperationMetadata> createMirroringEndpointGroupAssociationAsync(LocationName parent, MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, String mirroringEndpointGroupAssociationId)Creates an association in a given project and location. See https://google.aip.dev/133.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation =
MirroringEndpointGroupAssociation.newBuilder().build();
String mirroringEndpointGroupAssociationId = "mirroringEndpointGroupAssociationId-1957886507";
MirroringEndpointGroupAssociation response =
mirroringClient
.createMirroringEndpointGroupAssociationAsync(
parent, mirroringEndpointGroupAssociation, mirroringEndpointGroupAssociationId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource where this association will be created. Format: projects/{project}/locations/{location} |
mirroringEndpointGroupAssociation |
MirroringEndpointGroupAssociationRequired. The association to create. |
mirroringEndpointGroupAssociationId |
StringOptional. The ID to use for the new association, which will become the final component of the endpoint group's resource name. If not provided, the server will generate a unique ID. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<MirroringEndpointGroupAssociation,OperationMetadata> |
|
createMirroringEndpointGroupAssociationAsync(String parent, MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, String mirroringEndpointGroupAssociationId)
public final OperationFuture<MirroringEndpointGroupAssociation,OperationMetadata> createMirroringEndpointGroupAssociationAsync(String parent, MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, String mirroringEndpointGroupAssociationId)Creates an association in a given project and location. See https://google.aip.dev/133.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation =
MirroringEndpointGroupAssociation.newBuilder().build();
String mirroringEndpointGroupAssociationId = "mirroringEndpointGroupAssociationId-1957886507";
MirroringEndpointGroupAssociation response =
mirroringClient
.createMirroringEndpointGroupAssociationAsync(
parent, mirroringEndpointGroupAssociation, mirroringEndpointGroupAssociationId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where this association will be created. Format: projects/{project}/locations/{location} |
mirroringEndpointGroupAssociation |
MirroringEndpointGroupAssociationRequired. The association to create. |
mirroringEndpointGroupAssociationId |
StringOptional. The ID to use for the new association, which will become the final component of the endpoint group's resource name. If not provided, the server will generate a unique ID. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<MirroringEndpointGroupAssociation,OperationMetadata> |
|
createMirroringEndpointGroupAssociationCallable()
public final UnaryCallable<CreateMirroringEndpointGroupAssociationRequest,Operation> createMirroringEndpointGroupAssociationCallable()Creates an association in a given project and location. See https://google.aip.dev/133.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
CreateMirroringEndpointGroupAssociationRequest request =
CreateMirroringEndpointGroupAssociationRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setMirroringEndpointGroupAssociationId(
"mirroringEndpointGroupAssociationId-1957886507")
.setMirroringEndpointGroupAssociation(
MirroringEndpointGroupAssociation.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
mirroringClient.createMirroringEndpointGroupAssociationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateMirroringEndpointGroupAssociationRequest,Operation> |
|
createMirroringEndpointGroupAssociationOperationCallable()
public final OperationCallable<CreateMirroringEndpointGroupAssociationRequest,MirroringEndpointGroupAssociation,OperationMetadata> createMirroringEndpointGroupAssociationOperationCallable()Creates an association in a given project and location. See https://google.aip.dev/133.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
CreateMirroringEndpointGroupAssociationRequest request =
CreateMirroringEndpointGroupAssociationRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setMirroringEndpointGroupAssociationId(
"mirroringEndpointGroupAssociationId-1957886507")
.setMirroringEndpointGroupAssociation(
MirroringEndpointGroupAssociation.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<MirroringEndpointGroupAssociation, OperationMetadata> future =
mirroringClient
.createMirroringEndpointGroupAssociationOperationCallable()
.futureCall(request);
// Do something.
MirroringEndpointGroupAssociation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<CreateMirroringEndpointGroupAssociationRequest,MirroringEndpointGroupAssociation,OperationMetadata> |
|
createMirroringEndpointGroupAsync(CreateMirroringEndpointGroupRequest request)
public final OperationFuture<MirroringEndpointGroup,OperationMetadata> createMirroringEndpointGroupAsync(CreateMirroringEndpointGroupRequest request)Creates an endpoint group in a given project and location. See https://google.aip.dev/133.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
CreateMirroringEndpointGroupRequest request =
CreateMirroringEndpointGroupRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setMirroringEndpointGroupId("mirroringEndpointGroupId436276834")
.setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
MirroringEndpointGroup response =
mirroringClient.createMirroringEndpointGroupAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateMirroringEndpointGroupRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<MirroringEndpointGroup,OperationMetadata> |
|
createMirroringEndpointGroupAsync(LocationName parent, MirroringEndpointGroup mirroringEndpointGroup, String mirroringEndpointGroupId)
public final OperationFuture<MirroringEndpointGroup,OperationMetadata> createMirroringEndpointGroupAsync(LocationName parent, MirroringEndpointGroup mirroringEndpointGroup, String mirroringEndpointGroupId)Creates an endpoint group in a given project and location. See https://google.aip.dev/133.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
MirroringEndpointGroup mirroringEndpointGroup = MirroringEndpointGroup.newBuilder().build();
String mirroringEndpointGroupId = "mirroringEndpointGroupId436276834";
MirroringEndpointGroup response =
mirroringClient
.createMirroringEndpointGroupAsync(
parent, mirroringEndpointGroup, mirroringEndpointGroupId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource where this endpoint group will be created. Format: projects/{project}/locations/{location} |
mirroringEndpointGroup |
MirroringEndpointGroupRequired. The endpoint group to create. |
mirroringEndpointGroupId |
StringRequired. The ID to use for the endpoint group, which will become the final component of the endpoint group's resource name. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<MirroringEndpointGroup,OperationMetadata> |
|
createMirroringEndpointGroupAsync(String parent, MirroringEndpointGroup mirroringEndpointGroup, String mirroringEndpointGroupId)
public final OperationFuture<MirroringEndpointGroup,OperationMetadata> createMirroringEndpointGroupAsync(String parent, MirroringEndpointGroup mirroringEndpointGroup, String mirroringEndpointGroupId)Creates an endpoint group in a given project and location. See https://google.aip.dev/133.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
MirroringEndpointGroup mirroringEndpointGroup = MirroringEndpointGroup.newBuilder().build();
String mirroringEndpointGroupId = "mirroringEndpointGroupId436276834";
MirroringEndpointGroup response =
mirroringClient
.createMirroringEndpointGroupAsync(
parent, mirroringEndpointGroup, mirroringEndpointGroupId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where this endpoint group will be created. Format: projects/{project}/locations/{location} |
mirroringEndpointGroup |
MirroringEndpointGroupRequired. The endpoint group to create. |
mirroringEndpointGroupId |
StringRequired. The ID to use for the endpoint group, which will become the final component of the endpoint group's resource name. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<MirroringEndpointGroup,OperationMetadata> |
|
createMirroringEndpointGroupCallable()
public final UnaryCallable<CreateMirroringEndpointGroupRequest,Operation> createMirroringEndpointGroupCallable()Creates an endpoint group in a given project and location. See https://google.aip.dev/133.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
CreateMirroringEndpointGroupRequest request =
CreateMirroringEndpointGroupRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setMirroringEndpointGroupId("mirroringEndpointGroupId436276834")
.setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
mirroringClient.createMirroringEndpointGroupCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateMirroringEndpointGroupRequest,Operation> |
|
createMirroringEndpointGroupOperationCallable()
public final OperationCallable<CreateMirroringEndpointGroupRequest,MirroringEndpointGroup,OperationMetadata> createMirroringEndpointGroupOperationCallable()Creates an endpoint group in a given project and location. See https://google.aip.dev/133.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
CreateMirroringEndpointGroupRequest request =
CreateMirroringEndpointGroupRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setMirroringEndpointGroupId("mirroringEndpointGroupId436276834")
.setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<MirroringEndpointGroup, OperationMetadata> future =
mirroringClient.createMirroringEndpointGroupOperationCallable().futureCall(request);
// Do something.
MirroringEndpointGroup response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<CreateMirroringEndpointGroupRequest,MirroringEndpointGroup,OperationMetadata> |
|
deleteMirroringDeploymentAsync(DeleteMirroringDeploymentRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteMirroringDeploymentAsync(DeleteMirroringDeploymentRequest request)Deletes a deployment. See https://google.aip.dev/135.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
DeleteMirroringDeploymentRequest request =
DeleteMirroringDeploymentRequest.newBuilder()
.setName(
MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
.toString())
.setRequestId("requestId693933066")
.build();
mirroringClient.deleteMirroringDeploymentAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteMirroringDeploymentRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteMirroringDeploymentAsync(MirroringDeploymentName name)
public final OperationFuture<Empty,OperationMetadata> deleteMirroringDeploymentAsync(MirroringDeploymentName name)Deletes a deployment. See https://google.aip.dev/135.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
MirroringDeploymentName name =
MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]");
mirroringClient.deleteMirroringDeploymentAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
MirroringDeploymentNameRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteMirroringDeploymentAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteMirroringDeploymentAsync(String name)Deletes a deployment. See https://google.aip.dev/135.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
String name =
MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
.toString();
mirroringClient.deleteMirroringDeploymentAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteMirroringDeploymentCallable()
public final UnaryCallable<DeleteMirroringDeploymentRequest,Operation> deleteMirroringDeploymentCallable()Deletes a deployment. See https://google.aip.dev/135.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
DeleteMirroringDeploymentRequest request =
DeleteMirroringDeploymentRequest.newBuilder()
.setName(
MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
.toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
mirroringClient.deleteMirroringDeploymentCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteMirroringDeploymentRequest,Operation> |
|
deleteMirroringDeploymentGroupAsync(DeleteMirroringDeploymentGroupRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteMirroringDeploymentGroupAsync(DeleteMirroringDeploymentGroupRequest request)Deletes a deployment group. See https://google.aip.dev/135.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
DeleteMirroringDeploymentGroupRequest request =
DeleteMirroringDeploymentGroupRequest.newBuilder()
.setName(
MirroringDeploymentGroupName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
.toString())
.setRequestId("requestId693933066")
.build();
mirroringClient.deleteMirroringDeploymentGroupAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteMirroringDeploymentGroupRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteMirroringDeploymentGroupAsync(MirroringDeploymentGroupName name)
public final OperationFuture<Empty,OperationMetadata> deleteMirroringDeploymentGroupAsync(MirroringDeploymentGroupName name)Deletes a deployment group. See https://google.aip.dev/135.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
MirroringDeploymentGroupName name =
MirroringDeploymentGroupName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]");
mirroringClient.deleteMirroringDeploymentGroupAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
MirroringDeploymentGroupNameRequired. The deployment group to delete. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteMirroringDeploymentGroupAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteMirroringDeploymentGroupAsync(String name)Deletes a deployment group. See https://google.aip.dev/135.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
String name =
MirroringDeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
.toString();
mirroringClient.deleteMirroringDeploymentGroupAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The deployment group to delete. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteMirroringDeploymentGroupCallable()
public final UnaryCallable<DeleteMirroringDeploymentGroupRequest,Operation> deleteMirroringDeploymentGroupCallable()Deletes a deployment group. See https://google.aip.dev/135.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
DeleteMirroringDeploymentGroupRequest request =
DeleteMirroringDeploymentGroupRequest.newBuilder()
.setName(
MirroringDeploymentGroupName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
.toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
mirroringClient.deleteMirroringDeploymentGroupCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteMirroringDeploymentGroupRequest,Operation> |
|
deleteMirroringDeploymentGroupOperationCallable()
public final OperationCallable<DeleteMirroringDeploymentGroupRequest,Empty,OperationMetadata> deleteMirroringDeploymentGroupOperationCallable()Deletes a deployment group. See https://google.aip.dev/135.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
DeleteMirroringDeploymentGroupRequest request =
DeleteMirroringDeploymentGroupRequest.newBuilder()
.setName(
MirroringDeploymentGroupName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
.toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
mirroringClient.deleteMirroringDeploymentGroupOperationCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<DeleteMirroringDeploymentGroupRequest,Empty,OperationMetadata> |
|
deleteMirroringDeploymentOperationCallable()
public final OperationCallable<DeleteMirroringDeploymentRequest,Empty,OperationMetadata> deleteMirroringDeploymentOperationCallable()Deletes a deployment. See https://google.aip.dev/135.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
DeleteMirroringDeploymentRequest request =
DeleteMirroringDeploymentRequest.newBuilder()
.setName(
MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
.toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
mirroringClient.deleteMirroringDeploymentOperationCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<DeleteMirroringDeploymentRequest,Empty,OperationMetadata> |
|
deleteMirroringEndpointGroupAssociationAsync(DeleteMirroringEndpointGroupAssociationRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteMirroringEndpointGroupAssociationAsync(DeleteMirroringEndpointGroupAssociationRequest request)Deletes an association. See https://google.aip.dev/135.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
DeleteMirroringEndpointGroupAssociationRequest request =
DeleteMirroringEndpointGroupAssociationRequest.newBuilder()
.setName(
MirroringEndpointGroupAssociationName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
.toString())
.setRequestId("requestId693933066")
.build();
mirroringClient.deleteMirroringEndpointGroupAssociationAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteMirroringEndpointGroupAssociationRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteMirroringEndpointGroupAssociationAsync(MirroringEndpointGroupAssociationName name)
public final OperationFuture<Empty,OperationMetadata> deleteMirroringEndpointGroupAssociationAsync(MirroringEndpointGroupAssociationName name)Deletes an association. See https://google.aip.dev/135.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
MirroringEndpointGroupAssociationName name =
MirroringEndpointGroupAssociationName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]");
mirroringClient.deleteMirroringEndpointGroupAssociationAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
MirroringEndpointGroupAssociationNameRequired. The association to delete. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteMirroringEndpointGroupAssociationAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteMirroringEndpointGroupAssociationAsync(String name)Deletes an association. See https://google.aip.dev/135.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
String name =
MirroringEndpointGroupAssociationName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
.toString();
mirroringClient.deleteMirroringEndpointGroupAssociationAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The association to delete. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteMirroringEndpointGroupAssociationCallable()
public final UnaryCallable<DeleteMirroringEndpointGroupAssociationRequest,Operation> deleteMirroringEndpointGroupAssociationCallable()Deletes an association. See https://google.aip.dev/135.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
DeleteMirroringEndpointGroupAssociationRequest request =
DeleteMirroringEndpointGroupAssociationRequest.newBuilder()
.setName(
MirroringEndpointGroupAssociationName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
.toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
mirroringClient.deleteMirroringEndpointGroupAssociationCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteMirroringEndpointGroupAssociationRequest,Operation> |
|
deleteMirroringEndpointGroupAssociationOperationCallable()
public final OperationCallable<DeleteMirroringEndpointGroupAssociationRequest,Empty,OperationMetadata> deleteMirroringEndpointGroupAssociationOperationCallable()Deletes an association. See https://google.aip.dev/135.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
DeleteMirroringEndpointGroupAssociationRequest request =
DeleteMirroringEndpointGroupAssociationRequest.newBuilder()
.setName(
MirroringEndpointGroupAssociationName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
.toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
mirroringClient
.deleteMirroringEndpointGroupAssociationOperationCallable()
.futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<DeleteMirroringEndpointGroupAssociationRequest,Empty,OperationMetadata> |
|
deleteMirroringEndpointGroupAsync(DeleteMirroringEndpointGroupRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteMirroringEndpointGroupAsync(DeleteMirroringEndpointGroupRequest request)Deletes an endpoint group. See https://google.aip.dev/135.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
DeleteMirroringEndpointGroupRequest request =
DeleteMirroringEndpointGroupRequest.newBuilder()
.setName(
MirroringEndpointGroupName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
.toString())
.setRequestId("requestId693933066")
.build();
mirroringClient.deleteMirroringEndpointGroupAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteMirroringEndpointGroupRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteMirroringEndpointGroupAsync(MirroringEndpointGroupName name)
public final OperationFuture<Empty,OperationMetadata> deleteMirroringEndpointGroupAsync(MirroringEndpointGroupName name)Deletes an endpoint group. See https://google.aip.dev/135.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
MirroringEndpointGroupName name =
MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]");
mirroringClient.deleteMirroringEndpointGroupAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
MirroringEndpointGroupNameRequired. The endpoint group to delete. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteMirroringEndpointGroupAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteMirroringEndpointGroupAsync(String name)Deletes an endpoint group. See https://google.aip.dev/135.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
String name =
MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
.toString();
mirroringClient.deleteMirroringEndpointGroupAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The endpoint group to delete. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteMirroringEndpointGroupCallable()
public final UnaryCallable<DeleteMirroringEndpointGroupRequest,Operation> deleteMirroringEndpointGroupCallable()Deletes an endpoint group. See https://google.aip.dev/135.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
DeleteMirroringEndpointGroupRequest request =
DeleteMirroringEndpointGroupRequest.newBuilder()
.setName(
MirroringEndpointGroupName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
.toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
mirroringClient.deleteMirroringEndpointGroupCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteMirroringEndpointGroupRequest,Operation> |
|
deleteMirroringEndpointGroupOperationCallable()
public final OperationCallable<DeleteMirroringEndpointGroupRequest,Empty,OperationMetadata> deleteMirroringEndpointGroupOperationCallable()Deletes an endpoint group. See https://google.aip.dev/135.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
DeleteMirroringEndpointGroupRequest request =
DeleteMirroringEndpointGroupRequest.newBuilder()
.setName(
MirroringEndpointGroupName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
.toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
mirroringClient.deleteMirroringEndpointGroupOperationCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<DeleteMirroringEndpointGroupRequest,Empty,OperationMetadata> |
|
getIamPolicy(GetIamPolicyRequest request)
public final Policy getIamPolicy(GetIamPolicyRequest request)Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
.setResource(
AddressGroupName.ofProjectLocationAddressGroupName(
"[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
.toString())
.setOptions(GetPolicyOptions.newBuilder().build())
.build();
Policy response = mirroringClient.getIamPolicy(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.iam.v1.GetIamPolicyRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.iam.v1.Policy |
|
getIamPolicyCallable()
public final UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
.setResource(
AddressGroupName.ofProjectLocationAddressGroupName(
"[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
.toString())
.setOptions(GetPolicyOptions.newBuilder().build())
.build();
ApiFuture<Policy> future = mirroringClient.getIamPolicyCallable().futureCall(request);
// Do something.
Policy response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
|
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 (MirroringClient mirroringClient = MirroringClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
Location response = mirroringClient.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 (MirroringClient mirroringClient = MirroringClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
ApiFuture<Location> future = mirroringClient.getLocationCallable().futureCall(request);
// Do something.
Location response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
|
getMirroringDeployment(GetMirroringDeploymentRequest request)
public final MirroringDeployment getMirroringDeployment(GetMirroringDeploymentRequest request)Gets a specific deployment. See https://google.aip.dev/131.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
GetMirroringDeploymentRequest request =
GetMirroringDeploymentRequest.newBuilder()
.setName(
MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
.toString())
.build();
MirroringDeployment response = mirroringClient.getMirroringDeployment(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetMirroringDeploymentRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
MirroringDeployment |
|
getMirroringDeployment(MirroringDeploymentName name)
public final MirroringDeployment getMirroringDeployment(MirroringDeploymentName name)Gets a specific deployment. See https://google.aip.dev/131.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
MirroringDeploymentName name =
MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]");
MirroringDeployment response = mirroringClient.getMirroringDeployment(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
MirroringDeploymentNameRequired. The name of the deployment to retrieve. Format: projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment} |
| Returns | |
|---|---|
| Type | Description |
MirroringDeployment |
|
getMirroringDeployment(String name)
public final MirroringDeployment getMirroringDeployment(String name)Gets a specific deployment. See https://google.aip.dev/131.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
String name =
MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
.toString();
MirroringDeployment response = mirroringClient.getMirroringDeployment(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the deployment to retrieve. Format: projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment} |
| Returns | |
|---|---|
| Type | Description |
MirroringDeployment |
|
getMirroringDeploymentCallable()
public final UnaryCallable<GetMirroringDeploymentRequest,MirroringDeployment> getMirroringDeploymentCallable()Gets a specific deployment. See https://google.aip.dev/131.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
GetMirroringDeploymentRequest request =
GetMirroringDeploymentRequest.newBuilder()
.setName(
MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
.toString())
.build();
ApiFuture<MirroringDeployment> future =
mirroringClient.getMirroringDeploymentCallable().futureCall(request);
// Do something.
MirroringDeployment response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetMirroringDeploymentRequest,MirroringDeployment> |
|
getMirroringDeploymentGroup(GetMirroringDeploymentGroupRequest request)
public final MirroringDeploymentGroup getMirroringDeploymentGroup(GetMirroringDeploymentGroupRequest request)Gets a specific deployment group. See https://google.aip.dev/131.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
GetMirroringDeploymentGroupRequest request =
GetMirroringDeploymentGroupRequest.newBuilder()
.setName(
MirroringDeploymentGroupName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
.toString())
.build();
MirroringDeploymentGroup response = mirroringClient.getMirroringDeploymentGroup(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetMirroringDeploymentGroupRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
MirroringDeploymentGroup |
|
getMirroringDeploymentGroup(MirroringDeploymentGroupName name)
public final MirroringDeploymentGroup getMirroringDeploymentGroup(MirroringDeploymentGroupName name)Gets a specific deployment group. See https://google.aip.dev/131.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
MirroringDeploymentGroupName name =
MirroringDeploymentGroupName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]");
MirroringDeploymentGroup response = mirroringClient.getMirroringDeploymentGroup(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
MirroringDeploymentGroupNameRequired. The name of the deployment group to retrieve. Format: projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group} |
| Returns | |
|---|---|
| Type | Description |
MirroringDeploymentGroup |
|
getMirroringDeploymentGroup(String name)
public final MirroringDeploymentGroup getMirroringDeploymentGroup(String name)Gets a specific deployment group. See https://google.aip.dev/131.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
String name =
MirroringDeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
.toString();
MirroringDeploymentGroup response = mirroringClient.getMirroringDeploymentGroup(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the deployment group to retrieve. Format: projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group} |
| Returns | |
|---|---|
| Type | Description |
MirroringDeploymentGroup |
|
getMirroringDeploymentGroupCallable()
public final UnaryCallable<GetMirroringDeploymentGroupRequest,MirroringDeploymentGroup> getMirroringDeploymentGroupCallable()Gets a specific deployment group. See https://google.aip.dev/131.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
GetMirroringDeploymentGroupRequest request =
GetMirroringDeploymentGroupRequest.newBuilder()
.setName(
MirroringDeploymentGroupName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
.toString())
.build();
ApiFuture<MirroringDeploymentGroup> future =
mirroringClient.getMirroringDeploymentGroupCallable().futureCall(request);
// Do something.
MirroringDeploymentGroup response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetMirroringDeploymentGroupRequest,MirroringDeploymentGroup> |
|
getMirroringEndpointGroup(GetMirroringEndpointGroupRequest request)
public final MirroringEndpointGroup getMirroringEndpointGroup(GetMirroringEndpointGroupRequest request)Gets a specific endpoint group. See https://google.aip.dev/131.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
GetMirroringEndpointGroupRequest request =
GetMirroringEndpointGroupRequest.newBuilder()
.setName(
MirroringEndpointGroupName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
.toString())
.build();
MirroringEndpointGroup response = mirroringClient.getMirroringEndpointGroup(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetMirroringEndpointGroupRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
MirroringEndpointGroup |
|
getMirroringEndpointGroup(MirroringEndpointGroupName name)
public final MirroringEndpointGroup getMirroringEndpointGroup(MirroringEndpointGroupName name)Gets a specific endpoint group. See https://google.aip.dev/131.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
MirroringEndpointGroupName name =
MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]");
MirroringEndpointGroup response = mirroringClient.getMirroringEndpointGroup(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
MirroringEndpointGroupNameRequired. The name of the endpoint group to retrieve. Format: projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group} |
| Returns | |
|---|---|
| Type | Description |
MirroringEndpointGroup |
|
getMirroringEndpointGroup(String name)
public final MirroringEndpointGroup getMirroringEndpointGroup(String name)Gets a specific endpoint group. See https://google.aip.dev/131.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
String name =
MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
.toString();
MirroringEndpointGroup response = mirroringClient.getMirroringEndpointGroup(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the endpoint group to retrieve. Format: projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group} |
| Returns | |
|---|---|
| Type | Description |
MirroringEndpointGroup |
|
getMirroringEndpointGroupAssociation(GetMirroringEndpointGroupAssociationRequest request)
public final MirroringEndpointGroupAssociation getMirroringEndpointGroupAssociation(GetMirroringEndpointGroupAssociationRequest request)Gets a specific association. See https://google.aip.dev/131.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
GetMirroringEndpointGroupAssociationRequest request =
GetMirroringEndpointGroupAssociationRequest.newBuilder()
.setName(
MirroringEndpointGroupAssociationName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
.toString())
.build();
MirroringEndpointGroupAssociation response =
mirroringClient.getMirroringEndpointGroupAssociation(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetMirroringEndpointGroupAssociationRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
MirroringEndpointGroupAssociation |
|
getMirroringEndpointGroupAssociation(MirroringEndpointGroupAssociationName name)
public final MirroringEndpointGroupAssociation getMirroringEndpointGroupAssociation(MirroringEndpointGroupAssociationName name)Gets a specific association. See https://google.aip.dev/131.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
MirroringEndpointGroupAssociationName name =
MirroringEndpointGroupAssociationName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]");
MirroringEndpointGroupAssociation response =
mirroringClient.getMirroringEndpointGroupAssociation(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
MirroringEndpointGroupAssociationNameRequired. The name of the association to retrieve. Format: projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association} |
| Returns | |
|---|---|
| Type | Description |
MirroringEndpointGroupAssociation |
|
getMirroringEndpointGroupAssociation(String name)
public final MirroringEndpointGroupAssociation getMirroringEndpointGroupAssociation(String name)Gets a specific association. See https://google.aip.dev/131.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
String name =
MirroringEndpointGroupAssociationName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
.toString();
MirroringEndpointGroupAssociation response =
mirroringClient.getMirroringEndpointGroupAssociation(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the association to retrieve. Format: projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association} |
| Returns | |
|---|---|
| Type | Description |
MirroringEndpointGroupAssociation |
|
getMirroringEndpointGroupAssociationCallable()
public final UnaryCallable<GetMirroringEndpointGroupAssociationRequest,MirroringEndpointGroupAssociation> getMirroringEndpointGroupAssociationCallable()Gets a specific association. See https://google.aip.dev/131.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
GetMirroringEndpointGroupAssociationRequest request =
GetMirroringEndpointGroupAssociationRequest.newBuilder()
.setName(
MirroringEndpointGroupAssociationName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
.toString())
.build();
ApiFuture<MirroringEndpointGroupAssociation> future =
mirroringClient.getMirroringEndpointGroupAssociationCallable().futureCall(request);
// Do something.
MirroringEndpointGroupAssociation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetMirroringEndpointGroupAssociationRequest,MirroringEndpointGroupAssociation> |
|
getMirroringEndpointGroupCallable()
public final UnaryCallable<GetMirroringEndpointGroupRequest,MirroringEndpointGroup> getMirroringEndpointGroupCallable()Gets a specific endpoint group. See https://google.aip.dev/131.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
GetMirroringEndpointGroupRequest request =
GetMirroringEndpointGroupRequest.newBuilder()
.setName(
MirroringEndpointGroupName.of(
"[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
.toString())
.build();
ApiFuture<MirroringEndpointGroup> future =
mirroringClient.getMirroringEndpointGroupCallable().futureCall(request);
// Do something.
MirroringEndpointGroup response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetMirroringEndpointGroupRequest,MirroringEndpointGroup> |
|
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 |
|
getSettings()
public final MirroringSettings getSettings()| Returns | |
|---|---|
| Type | Description |
MirroringSettings |
|
getStub()
public MirroringStub getStub()| Returns | |
|---|---|
| Type | Description |
MirroringStub |
|
isShutdown()
public boolean isShutdown()| Returns | |
|---|---|
| Type | Description |
boolean |
|
isTerminated()
public boolean isTerminated()| Returns | |
|---|---|
| Type | Description |
boolean |
|
listLocations(ListLocationsRequest request)
public final MirroringClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request)Lists information about the supported locations for this service.
This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field:
* **Global locations**: If name is empty, the method lists thepublic
locations available to all projects. * **Project-specificlocations**: If
name follows the formatprojects/{project}, the method lists locations visible to
thatspecific project. This includes public, private, or otherproject-specific locations enabled
for the project.
For gRPC and client library implementations, the resource name ispassed as the name field.
For direct service calls, the resourcename isincorporated into the request path based on the
specific serviceimplementation and version.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (Location element : mirroringClient.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 |
MirroringClient.ListLocationsPagedResponse |
|
listLocationsCallable()
public final UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()Lists information about the supported locations for this service.
This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field:
* **Global locations**: If name is empty, the method lists thepublic
locations available to all projects. * **Project-specificlocations**: If
name follows the formatprojects/{project}, the method lists locations visible to
thatspecific project. This includes public, private, or otherproject-specific locations enabled
for the project.
For gRPC and client library implementations, the resource name ispassed as the name field.
For direct service calls, the resourcename isincorporated into the request path based on the
specific serviceimplementation and version.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListLocationsResponse response = mirroringClient.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,MirroringClient.ListLocationsPagedResponse> listLocationsPagedCallable()Lists information about the supported locations for this service.
This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field:
* **Global locations**: If name is empty, the method lists thepublic
locations available to all projects. * **Project-specificlocations**: If
name follows the formatprojects/{project}, the method lists locations visible to
thatspecific project. This includes public, private, or otherproject-specific locations enabled
for the project.
For gRPC and client library implementations, the resource name ispassed as the name field.
For direct service calls, the resourcename isincorporated into the request path based on the
specific serviceimplementation and version.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<Location> future = mirroringClient.listLocationsPagedCallable().futureCall(request);
// Do something.
for (Location element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse> |
|
listMirroringDeploymentGroups(ListMirroringDeploymentGroupsRequest request)
public final MirroringClient.ListMirroringDeploymentGroupsPagedResponse listMirroringDeploymentGroups(ListMirroringDeploymentGroupsRequest request)Lists deployment groups in a given project and location. See https://google.aip.dev/132.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
ListMirroringDeploymentGroupsRequest request =
ListMirroringDeploymentGroupsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (MirroringDeploymentGroup element :
mirroringClient.listMirroringDeploymentGroups(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListMirroringDeploymentGroupsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
MirroringClient.ListMirroringDeploymentGroupsPagedResponse |
|
listMirroringDeploymentGroups(LocationName parent)
public final MirroringClient.ListMirroringDeploymentGroupsPagedResponse listMirroringDeploymentGroups(LocationName parent)Lists deployment groups in a given project and location. See https://google.aip.dev/132.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (MirroringDeploymentGroup element :
mirroringClient.listMirroringDeploymentGroups(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent, which owns this collection of deployment groups. Example:
|
| Returns | |
|---|---|
| Type | Description |
MirroringClient.ListMirroringDeploymentGroupsPagedResponse |
|
listMirroringDeploymentGroups(String parent)
public final MirroringClient.ListMirroringDeploymentGroupsPagedResponse listMirroringDeploymentGroups(String parent)Lists deployment groups in a given project and location. See https://google.aip.dev/132.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (MirroringDeploymentGroup element :
mirroringClient.listMirroringDeploymentGroups(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent, which owns this collection of deployment groups. Example:
|
| Returns | |
|---|---|
| Type | Description |
MirroringClient.ListMirroringDeploymentGroupsPagedResponse |
|
listMirroringDeploymentGroupsCallable()
public final UnaryCallable<ListMirroringDeploymentGroupsRequest,ListMirroringDeploymentGroupsResponse> listMirroringDeploymentGroupsCallable()Lists deployment groups in a given project and location. See https://google.aip.dev/132.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
ListMirroringDeploymentGroupsRequest request =
ListMirroringDeploymentGroupsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListMirroringDeploymentGroupsResponse response =
mirroringClient.listMirroringDeploymentGroupsCallable().call(request);
for (MirroringDeploymentGroup element : response.getMirroringDeploymentGroupsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListMirroringDeploymentGroupsRequest,ListMirroringDeploymentGroupsResponse> |
|
listMirroringDeploymentGroupsPagedCallable()
public final UnaryCallable<ListMirroringDeploymentGroupsRequest,MirroringClient.ListMirroringDeploymentGroupsPagedResponse> listMirroringDeploymentGroupsPagedCallable()Lists deployment groups in a given project and location. See https://google.aip.dev/132.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
ListMirroringDeploymentGroupsRequest request =
ListMirroringDeploymentGroupsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<MirroringDeploymentGroup> future =
mirroringClient.listMirroringDeploymentGroupsPagedCallable().futureCall(request);
// Do something.
for (MirroringDeploymentGroup element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListMirroringDeploymentGroupsRequest,ListMirroringDeploymentGroupsPagedResponse> |
|
listMirroringDeployments(ListMirroringDeploymentsRequest request)
public final MirroringClient.ListMirroringDeploymentsPagedResponse listMirroringDeployments(ListMirroringDeploymentsRequest request)Lists deployments in a given project and location. See https://google.aip.dev/132.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
ListMirroringDeploymentsRequest request =
ListMirroringDeploymentsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (MirroringDeployment element :
mirroringClient.listMirroringDeployments(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListMirroringDeploymentsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
MirroringClient.ListMirroringDeploymentsPagedResponse |
|
listMirroringDeployments(LocationName parent)
public final MirroringClient.ListMirroringDeploymentsPagedResponse listMirroringDeployments(LocationName parent)Lists deployments in a given project and location. See https://google.aip.dev/132.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (MirroringDeployment element :
mirroringClient.listMirroringDeployments(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent, which owns this collection of deployments. Example:
|
| Returns | |
|---|---|
| Type | Description |
MirroringClient.ListMirroringDeploymentsPagedResponse |
|
listMirroringDeployments(String parent)
public final MirroringClient.ListMirroringDeploymentsPagedResponse listMirroringDeployments(String parent)Lists deployments in a given project and location. See https://google.aip.dev/132.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (MirroringDeployment element :
mirroringClient.listMirroringDeployments(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent, which owns this collection of deployments. Example:
|
| Returns | |
|---|---|
| Type | Description |
MirroringClient.ListMirroringDeploymentsPagedResponse |
|
listMirroringDeploymentsCallable()
public final UnaryCallable<ListMirroringDeploymentsRequest,ListMirroringDeploymentsResponse> listMirroringDeploymentsCallable()Lists deployments in a given project and location. See https://google.aip.dev/132.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
ListMirroringDeploymentsRequest request =
ListMirroringDeploymentsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListMirroringDeploymentsResponse response =
mirroringClient.listMirroringDeploymentsCallable().call(request);
for (MirroringDeployment element : response.getMirroringDeploymentsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListMirroringDeploymentsRequest,ListMirroringDeploymentsResponse> |
|
listMirroringDeploymentsPagedCallable()
public final UnaryCallable<ListMirroringDeploymentsRequest,MirroringClient.ListMirroringDeploymentsPagedResponse> listMirroringDeploymentsPagedCallable()Lists deployments in a given project and location. See https://google.aip.dev/132.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
ListMirroringDeploymentsRequest request =
ListMirroringDeploymentsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<MirroringDeployment> future =
mirroringClient.listMirroringDeploymentsPagedCallable().futureCall(request);
// Do something.
for (MirroringDeployment element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListMirroringDeploymentsRequest,ListMirroringDeploymentsPagedResponse> |
|
listMirroringEndpointGroupAssociations(ListMirroringEndpointGroupAssociationsRequest request)
public final MirroringClient.ListMirroringEndpointGroupAssociationsPagedResponse listMirroringEndpointGroupAssociations(ListMirroringEndpointGroupAssociationsRequest request)Lists associations in a given project and location. See https://google.aip.dev/132.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
ListMirroringEndpointGroupAssociationsRequest request =
ListMirroringEndpointGroupAssociationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (MirroringEndpointGroupAssociation element :
mirroringClient.listMirroringEndpointGroupAssociations(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListMirroringEndpointGroupAssociationsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
MirroringClient.ListMirroringEndpointGroupAssociationsPagedResponse |
|
listMirroringEndpointGroupAssociations(LocationName parent)
public final MirroringClient.ListMirroringEndpointGroupAssociationsPagedResponse listMirroringEndpointGroupAssociations(LocationName parent)Lists associations in a given project and location. See https://google.aip.dev/132.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (MirroringEndpointGroupAssociation element :
mirroringClient.listMirroringEndpointGroupAssociations(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent, which owns this collection of associations. Example:
|
| Returns | |
|---|---|
| Type | Description |
MirroringClient.ListMirroringEndpointGroupAssociationsPagedResponse |
|
listMirroringEndpointGroupAssociations(String parent)
public final MirroringClient.ListMirroringEndpointGroupAssociationsPagedResponse listMirroringEndpointGroupAssociations(String parent)Lists associations in a given project and location. See https://google.aip.dev/132.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (MirroringEndpointGroupAssociation element :
mirroringClient.listMirroringEndpointGroupAssociations(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent, which owns this collection of associations. Example:
|
| Returns | |
|---|---|
| Type | Description |
MirroringClient.ListMirroringEndpointGroupAssociationsPagedResponse |
|
listMirroringEndpointGroupAssociationsCallable()
public final UnaryCallable<ListMirroringEndpointGroupAssociationsRequest,ListMirroringEndpointGroupAssociationsResponse> listMirroringEndpointGroupAssociationsCallable()Lists associations in a given project and location. See https://google.aip.dev/132.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
ListMirroringEndpointGroupAssociationsRequest request =
ListMirroringEndpointGroupAssociationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListMirroringEndpointGroupAssociationsResponse response =
mirroringClient.listMirroringEndpointGroupAssociationsCallable().call(request);
for (MirroringEndpointGroupAssociation element :
response.getMirroringEndpointGroupAssociationsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListMirroringEndpointGroupAssociationsRequest,ListMirroringEndpointGroupAssociationsResponse> |
|
listMirroringEndpointGroupAssociationsPagedCallable()
public final UnaryCallable<ListMirroringEndpointGroupAssociationsRequest,MirroringClient.ListMirroringEndpointGroupAssociationsPagedResponse> listMirroringEndpointGroupAssociationsPagedCallable()Lists associations in a given project and location. See https://google.aip.dev/132.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
ListMirroringEndpointGroupAssociationsRequest request =
ListMirroringEndpointGroupAssociationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<MirroringEndpointGroupAssociation> future =
mirroringClient.listMirroringEndpointGroupAssociationsPagedCallable().futureCall(request);
// Do something.
for (MirroringEndpointGroupAssociation element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListMirroringEndpointGroupAssociationsRequest,ListMirroringEndpointGroupAssociationsPagedResponse> |
|
listMirroringEndpointGroups(ListMirroringEndpointGroupsRequest request)
public final MirroringClient.ListMirroringEndpointGroupsPagedResponse listMirroringEndpointGroups(ListMirroringEndpointGroupsRequest request)Lists endpoint groups in a given project and location. See https://google.aip.dev/132.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
ListMirroringEndpointGroupsRequest request =
ListMirroringEndpointGroupsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (MirroringEndpointGroup element :
mirroringClient.listMirroringEndpointGroups(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListMirroringEndpointGroupsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
MirroringClient.ListMirroringEndpointGroupsPagedResponse |
|
listMirroringEndpointGroups(LocationName parent)
public final MirroringClient.ListMirroringEndpointGroupsPagedResponse listMirroringEndpointGroups(LocationName parent)Lists endpoint groups in a given project and location. See https://google.aip.dev/132.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (MirroringEndpointGroup element :
mirroringClient.listMirroringEndpointGroups(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent, which owns this collection of endpoint groups. Example:
|
| Returns | |
|---|---|
| Type | Description |
MirroringClient.ListMirroringEndpointGroupsPagedResponse |
|
listMirroringEndpointGroups(String parent)
public final MirroringClient.ListMirroringEndpointGroupsPagedResponse listMirroringEndpointGroups(String parent)Lists endpoint groups in a given project and location. See https://google.aip.dev/132.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (MirroringEndpointGroup element :
mirroringClient.listMirroringEndpointGroups(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent, which owns this collection of endpoint groups. Example:
|
| Returns | |
|---|---|
| Type | Description |
MirroringClient.ListMirroringEndpointGroupsPagedResponse |
|
listMirroringEndpointGroupsCallable()
public final UnaryCallable<ListMirroringEndpointGroupsRequest,ListMirroringEndpointGroupsResponse> listMirroringEndpointGroupsCallable()Lists endpoint groups in a given project and location. See https://google.aip.dev/132.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
ListMirroringEndpointGroupsRequest request =
ListMirroringEndpointGroupsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListMirroringEndpointGroupsResponse response =
mirroringClient.listMirroringEndpointGroupsCallable().call(request);
for (MirroringEndpointGroup element : response.getMirroringEndpointGroupsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListMirroringEndpointGroupsRequest,ListMirroringEndpointGroupsResponse> |
|
listMirroringEndpointGroupsPagedCallable()
public final UnaryCallable<ListMirroringEndpointGroupsRequest,MirroringClient.ListMirroringEndpointGroupsPagedResponse> listMirroringEndpointGroupsPagedCallable()Lists endpoint groups in a given project and location. See https://google.aip.dev/132.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
ListMirroringEndpointGroupsRequest request =
ListMirroringEndpointGroupsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<MirroringEndpointGroup> future =
mirroringClient.listMirroringEndpointGroupsPagedCallable().futureCall(request);
// Do something.
for (MirroringEndpointGroup element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListMirroringEndpointGroupsRequest,ListMirroringEndpointGroupsPagedResponse> |
|
setIamPolicy(SetIamPolicyRequest request)
public final Policy setIamPolicy(SetIamPolicyRequest request)Sets the access control policy on the specified resource. Replacesany existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIEDerrors.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder()
.setResource(
AddressGroupName.ofProjectLocationAddressGroupName(
"[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
.toString())
.setPolicy(Policy.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Policy response = mirroringClient.setIamPolicy(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.iam.v1.SetIamPolicyRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.iam.v1.Policy |
|
setIamPolicyCallable()
public final UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()Sets the access control policy on the specified resource. Replacesany existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIEDerrors.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder()
.setResource(
AddressGroupName.ofProjectLocationAddressGroupName(
"[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
.toString())
.setPolicy(Policy.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Policy> future = mirroringClient.setIamPolicyCallable().futureCall(request);
// Do something.
Policy response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
|
shutdown()
public void shutdown()shutdownNow()
public void shutdownNow()testIamPermissions(TestIamPermissionsRequest request)
public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request)Returns permissions that a caller has on the specified resource. If theresource does not exist,
this will return an empty set ofpermissions, not a NOT_FOUND error.
Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
TestIamPermissionsRequest request =
TestIamPermissionsRequest.newBuilder()
.setResource(
AddressGroupName.ofProjectLocationAddressGroupName(
"[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
.toString())
.addAllPermissions(new ArrayList<String>())
.build();
TestIamPermissionsResponse response = mirroringClient.testIamPermissions(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.iam.v1.TestIamPermissionsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.iam.v1.TestIamPermissionsResponse |
|
testIamPermissionsCallable()
public final UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()Returns permissions that a caller has on the specified resource. If theresource does not exist,
this will return an empty set ofpermissions, not a NOT_FOUND error.
Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
TestIamPermissionsRequest request =
TestIamPermissionsRequest.newBuilder()
.setResource(
AddressGroupName.ofProjectLocationAddressGroupName(
"[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
.toString())
.addAllPermissions(new ArrayList<String>())
.build();
ApiFuture<TestIamPermissionsResponse> future =
mirroringClient.testIamPermissionsCallable().futureCall(request);
// Do something.
TestIamPermissionsResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
|
updateMirroringDeploymentAsync(MirroringDeployment mirroringDeployment, FieldMask updateMask)
public final OperationFuture<MirroringDeployment,OperationMetadata> updateMirroringDeploymentAsync(MirroringDeployment mirroringDeployment, FieldMask updateMask)Updates a deployment. See https://google.aip.dev/134.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
MirroringDeployment mirroringDeployment = MirroringDeployment.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
MirroringDeployment response =
mirroringClient.updateMirroringDeploymentAsync(mirroringDeployment, updateMask).get();
}
| Parameters | |
|---|---|
| Name | Description |
mirroringDeployment |
MirroringDeploymentRequired. The deployment to update. |
updateMask |
FieldMaskOptional. The list of fields to update. Fields are specified relative to the
deployment (e.g. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<MirroringDeployment,OperationMetadata> |
|
updateMirroringDeploymentAsync(UpdateMirroringDeploymentRequest request)
public final OperationFuture<MirroringDeployment,OperationMetadata> updateMirroringDeploymentAsync(UpdateMirroringDeploymentRequest request)Updates a deployment. See https://google.aip.dev/134.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
UpdateMirroringDeploymentRequest request =
UpdateMirroringDeploymentRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setMirroringDeployment(MirroringDeployment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
MirroringDeployment response = mirroringClient.updateMirroringDeploymentAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
UpdateMirroringDeploymentRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<MirroringDeployment,OperationMetadata> |
|
updateMirroringDeploymentCallable()
public final UnaryCallable<UpdateMirroringDeploymentRequest,Operation> updateMirroringDeploymentCallable()Updates a deployment. See https://google.aip.dev/134.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
UpdateMirroringDeploymentRequest request =
UpdateMirroringDeploymentRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setMirroringDeployment(MirroringDeployment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
mirroringClient.updateMirroringDeploymentCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<UpdateMirroringDeploymentRequest,Operation> |
|
updateMirroringDeploymentGroupAsync(MirroringDeploymentGroup mirroringDeploymentGroup, FieldMask updateMask)
public final OperationFuture<MirroringDeploymentGroup,OperationMetadata> updateMirroringDeploymentGroupAsync(MirroringDeploymentGroup mirroringDeploymentGroup, FieldMask updateMask)Updates a deployment group. See https://google.aip.dev/134.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
MirroringDeploymentGroup mirroringDeploymentGroup =
MirroringDeploymentGroup.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
MirroringDeploymentGroup response =
mirroringClient
.updateMirroringDeploymentGroupAsync(mirroringDeploymentGroup, updateMask)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
mirroringDeploymentGroup |
MirroringDeploymentGroupRequired. The deployment group to update. |
updateMask |
FieldMaskOptional. The list of fields to update. Fields are specified relative to the
deployment group (e.g. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<MirroringDeploymentGroup,OperationMetadata> |
|
updateMirroringDeploymentGroupAsync(UpdateMirroringDeploymentGroupRequest request)
public final OperationFuture<MirroringDeploymentGroup,OperationMetadata> updateMirroringDeploymentGroupAsync(UpdateMirroringDeploymentGroupRequest request)Updates a deployment group. See https://google.aip.dev/134.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
UpdateMirroringDeploymentGroupRequest request =
UpdateMirroringDeploymentGroupRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
MirroringDeploymentGroup response =
mirroringClient.updateMirroringDeploymentGroupAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
UpdateMirroringDeploymentGroupRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<MirroringDeploymentGroup,OperationMetadata> |
|
updateMirroringDeploymentGroupCallable()
public final UnaryCallable<UpdateMirroringDeploymentGroupRequest,Operation> updateMirroringDeploymentGroupCallable()Updates a deployment group. See https://google.aip.dev/134.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
UpdateMirroringDeploymentGroupRequest request =
UpdateMirroringDeploymentGroupRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
mirroringClient.updateMirroringDeploymentGroupCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<UpdateMirroringDeploymentGroupRequest,Operation> |
|
updateMirroringDeploymentGroupOperationCallable()
public final OperationCallable<UpdateMirroringDeploymentGroupRequest,MirroringDeploymentGroup,OperationMetadata> updateMirroringDeploymentGroupOperationCallable()Updates a deployment group. See https://google.aip.dev/134.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
UpdateMirroringDeploymentGroupRequest request =
UpdateMirroringDeploymentGroupRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<MirroringDeploymentGroup, OperationMetadata> future =
mirroringClient.updateMirroringDeploymentGroupOperationCallable().futureCall(request);
// Do something.
MirroringDeploymentGroup response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<UpdateMirroringDeploymentGroupRequest,MirroringDeploymentGroup,OperationMetadata> |
|
updateMirroringDeploymentOperationCallable()
public final OperationCallable<UpdateMirroringDeploymentRequest,MirroringDeployment,OperationMetadata> updateMirroringDeploymentOperationCallable()Updates a deployment. See https://google.aip.dev/134.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
UpdateMirroringDeploymentRequest request =
UpdateMirroringDeploymentRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setMirroringDeployment(MirroringDeployment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<MirroringDeployment, OperationMetadata> future =
mirroringClient.updateMirroringDeploymentOperationCallable().futureCall(request);
// Do something.
MirroringDeployment response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<UpdateMirroringDeploymentRequest,MirroringDeployment,OperationMetadata> |
|
updateMirroringEndpointGroupAssociationAsync(MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, FieldMask updateMask)
public final OperationFuture<MirroringEndpointGroupAssociation,OperationMetadata> updateMirroringEndpointGroupAssociationAsync(MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, FieldMask updateMask)Updates an association. See https://google.aip.dev/134.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation =
MirroringEndpointGroupAssociation.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
MirroringEndpointGroupAssociation response =
mirroringClient
.updateMirroringEndpointGroupAssociationAsync(
mirroringEndpointGroupAssociation, updateMask)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
mirroringEndpointGroupAssociation |
MirroringEndpointGroupAssociationRequired. The association to update. |
updateMask |
FieldMaskOptional. The list of fields to update. Fields are specified relative to the
association (e.g. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<MirroringEndpointGroupAssociation,OperationMetadata> |
|
updateMirroringEndpointGroupAssociationAsync(UpdateMirroringEndpointGroupAssociationRequest request)
public final OperationFuture<MirroringEndpointGroupAssociation,OperationMetadata> updateMirroringEndpointGroupAssociationAsync(UpdateMirroringEndpointGroupAssociationRequest request)Updates an association. See https://google.aip.dev/134.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
UpdateMirroringEndpointGroupAssociationRequest request =
UpdateMirroringEndpointGroupAssociationRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setMirroringEndpointGroupAssociation(
MirroringEndpointGroupAssociation.newBuilder().build())
.setRequestId("requestId693933066")
.build();
MirroringEndpointGroupAssociation response =
mirroringClient.updateMirroringEndpointGroupAssociationAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
UpdateMirroringEndpointGroupAssociationRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<MirroringEndpointGroupAssociation,OperationMetadata> |
|
updateMirroringEndpointGroupAssociationCallable()
public final UnaryCallable<UpdateMirroringEndpointGroupAssociationRequest,Operation> updateMirroringEndpointGroupAssociationCallable()Updates an association. See https://google.aip.dev/134.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
UpdateMirroringEndpointGroupAssociationRequest request =
UpdateMirroringEndpointGroupAssociationRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setMirroringEndpointGroupAssociation(
MirroringEndpointGroupAssociation.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
mirroringClient.updateMirroringEndpointGroupAssociationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<UpdateMirroringEndpointGroupAssociationRequest,Operation> |
|
updateMirroringEndpointGroupAssociationOperationCallable()
public final OperationCallable<UpdateMirroringEndpointGroupAssociationRequest,MirroringEndpointGroupAssociation,OperationMetadata> updateMirroringEndpointGroupAssociationOperationCallable()Updates an association. See https://google.aip.dev/134.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
UpdateMirroringEndpointGroupAssociationRequest request =
UpdateMirroringEndpointGroupAssociationRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setMirroringEndpointGroupAssociation(
MirroringEndpointGroupAssociation.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<MirroringEndpointGroupAssociation, OperationMetadata> future =
mirroringClient
.updateMirroringEndpointGroupAssociationOperationCallable()
.futureCall(request);
// Do something.
MirroringEndpointGroupAssociation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<UpdateMirroringEndpointGroupAssociationRequest,MirroringEndpointGroupAssociation,OperationMetadata> |
|
updateMirroringEndpointGroupAsync(MirroringEndpointGroup mirroringEndpointGroup, FieldMask updateMask)
public final OperationFuture<MirroringEndpointGroup,OperationMetadata> updateMirroringEndpointGroupAsync(MirroringEndpointGroup mirroringEndpointGroup, FieldMask updateMask)Updates an endpoint group. See https://google.aip.dev/134.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
MirroringEndpointGroup mirroringEndpointGroup = MirroringEndpointGroup.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
MirroringEndpointGroup response =
mirroringClient
.updateMirroringEndpointGroupAsync(mirroringEndpointGroup, updateMask)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
mirroringEndpointGroup |
MirroringEndpointGroupRequired. The endpoint group to update. |
updateMask |
FieldMaskOptional. The list of fields to update. Fields are specified relative to the
endpoint group (e.g. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<MirroringEndpointGroup,OperationMetadata> |
|
updateMirroringEndpointGroupAsync(UpdateMirroringEndpointGroupRequest request)
public final OperationFuture<MirroringEndpointGroup,OperationMetadata> updateMirroringEndpointGroupAsync(UpdateMirroringEndpointGroupRequest request)Updates an endpoint group. See https://google.aip.dev/134.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
UpdateMirroringEndpointGroupRequest request =
UpdateMirroringEndpointGroupRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
MirroringEndpointGroup response =
mirroringClient.updateMirroringEndpointGroupAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
UpdateMirroringEndpointGroupRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<MirroringEndpointGroup,OperationMetadata> |
|
updateMirroringEndpointGroupCallable()
public final UnaryCallable<UpdateMirroringEndpointGroupRequest,Operation> updateMirroringEndpointGroupCallable()Updates an endpoint group. See https://google.aip.dev/134.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
UpdateMirroringEndpointGroupRequest request =
UpdateMirroringEndpointGroupRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
mirroringClient.updateMirroringEndpointGroupCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<UpdateMirroringEndpointGroupRequest,Operation> |
|
updateMirroringEndpointGroupOperationCallable()
public final OperationCallable<UpdateMirroringEndpointGroupRequest,MirroringEndpointGroup,OperationMetadata> updateMirroringEndpointGroupOperationCallable()Updates an endpoint group. See https://google.aip.dev/134.
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 (MirroringClient mirroringClient = MirroringClient.create()) {
UpdateMirroringEndpointGroupRequest request =
UpdateMirroringEndpointGroupRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<MirroringEndpointGroup, OperationMetadata> future =
mirroringClient.updateMirroringEndpointGroupOperationCallable().futureCall(request);
// Do something.
MirroringEndpointGroup response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<UpdateMirroringEndpointGroupRequest,MirroringEndpointGroup,OperationMetadata> |
|