# Class IdentityAwareProxyAdminServiceClient (0.49.0)

0.49.0 (latest) 0.47.0 0.44.0 0.43.0 0.41.0 0.39.0 0.38.0 0.37.0 0.36.0 0.34.0 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.26.0 0.24.0 0.23.0 0.20.0 0.19.0 0.18.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

|---|---|
| [GitHub Repository](https://github.com/googleapis/google-cloud-java/tree/main/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyAdminServiceClient.java) | [Product Reference](https://cloud.google.com/iap) |

Service Description: APIs for Identity-Aware Proxy Admin configurations.

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 (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       SetIamPolicyRequest request =
           SetIamPolicyRequest.newBuilder()
               .setResource(
                   TunnelDestGroupName.of("[PROJECT]", "[LOCATION]", "[DEST_GROUP]").toString())
               .setPolicy(Policy.newBuilder().build())
               .setUpdateMask(FieldMask.newBuilder().build())
               .build();
       Policy response = identityAwareProxyAdminServiceClient.setIamPolicy(request);
     }
     
Note: close() needs to be called on the IdentityAwareProxyAdminServiceClient 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 |
|---|---|---|
| SetIamPolicy | Sets the access control policy for an Identity-Aware Proxy protected resource. Replaces any existing policy. More information about managing access via IAP can be found at: <https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api> | Request object method variants only take one parameter, a request object, which must be constructed before the call. - setIamPolicy(SetIamPolicyRequest request) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - setIamPolicyCallable() |
| GetIamPolicy | Gets the access control policy for an Identity-Aware Proxy protected resource. More information about managing access via IAP can be found at: <https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api> | Request object method variants only take one parameter, a request object, which must be constructed before the call. - getIamPolicy(GetIamPolicyRequest request) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - getIamPolicyCallable() |
| TestIamPermissions | Returns permissions that a caller has on the Identity-Aware Proxy protected resource. More information about managing access via IAP can be found at: <https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api> | Request object method variants only take one parameter, a request object, which must be constructed before the call. - testIamPermissions(TestIamPermissionsRequest request) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - testIamPermissionsCallable() |
| GetIapSettings | Gets the IAP settings on a particular IAP protected resource. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - getIapSettings(GetIapSettingsRequest request) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - getIapSettingsCallable() |
| UpdateIapSettings | Updates the IAP settings on a particular IAP protected resource. It replaces all fields unless the `update_mask` is set. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - updateIapSettings(UpdateIapSettingsRequest request) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - updateIapSettingsCallable() |
| ValidateIapAttributeExpression | Validates that a given CEL expression conforms to IAP restrictions. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - validateIapAttributeExpression(ValidateIapAttributeExpressionRequest request) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - validateIapAttributeExpressionCallable() |
| ListTunnelDestGroups | Lists the existing TunnelDestGroups. To group across all locations, use a `-` as the location ID. For example: `/v1/projects/123/iap_tunnel/locations/-/destGroups` | Request object method variants only take one parameter, a request object, which must be constructed before the call. - listTunnelDestGroups(ListTunnelDestGroupsRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - listTunnelDestGroups(TunnelLocationName parent) - listTunnelDestGroups(String parent) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - listTunnelDestGroupsPagedCallable() - listTunnelDestGroupsCallable() |
| CreateTunnelDestGroup | Creates a new TunnelDestGroup. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - createTunnelDestGroup(CreateTunnelDestGroupRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - createTunnelDestGroup(TunnelLocationName parent, TunnelDestGroup tunnelDestGroup, String tunnelDestGroupId) - createTunnelDestGroup(String parent, TunnelDestGroup tunnelDestGroup, String tunnelDestGroupId) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - createTunnelDestGroupCallable() |
| GetTunnelDestGroup | Retrieves an existing TunnelDestGroup. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - getTunnelDestGroup(GetTunnelDestGroupRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - getTunnelDestGroup(TunnelDestGroupName name) - getTunnelDestGroup(String name) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - getTunnelDestGroupCallable() |
| DeleteTunnelDestGroup | Deletes a TunnelDestGroup. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - deleteTunnelDestGroup(DeleteTunnelDestGroupRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - deleteTunnelDestGroup(TunnelDestGroupName name) - deleteTunnelDestGroup(String name) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - deleteTunnelDestGroupCallable() |
| UpdateTunnelDestGroup | Updates a TunnelDestGroup. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - updateTunnelDestGroup(UpdateTunnelDestGroupRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - updateTunnelDestGroup(TunnelDestGroup tunnelDestGroup, FieldMask updateMask) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - updateTunnelDestGroupCallable() |
[Methods]

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
IdentityAwareProxyAdminServiceSettings 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
     IdentityAwareProxyAdminServiceSettings identityAwareProxyAdminServiceSettings =
         IdentityAwareProxyAdminServiceSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
             .build();
     IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create(identityAwareProxyAdminServiceSettings);
     
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
     IdentityAwareProxyAdminServiceSettings identityAwareProxyAdminServiceSettings =
         IdentityAwareProxyAdminServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
     IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create(identityAwareProxyAdminServiceSettings);
     
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
the wire:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     IdentityAwareProxyAdminServiceSettings identityAwareProxyAdminServiceSettings =
         IdentityAwareProxyAdminServiceSettings.newHttpJsonBuilder().build();
     IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create(identityAwareProxyAdminServiceSettings);
     
Please refer to the GitHub repository's samples for more quickstart code snippets.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> IdentityAwareProxyAdminServiceClient

## Static Methods

### create()

    public static final IdentityAwareProxyAdminServiceClient create()

Constructs an instance of IdentityAwareProxyAdminServiceClient with default settings.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.IdentityAwareProxyAdminServiceClient` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### create(IdentityAwareProxyAdminServiceSettings settings)

    public static final IdentityAwareProxyAdminServiceClient create(IdentityAwareProxyAdminServiceSettings settings)

Constructs an instance of IdentityAwareProxyAdminServiceClient, 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` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.IdentityAwareProxyAdminServiceSettings` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.IdentityAwareProxyAdminServiceClient` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### create(IdentityAwareProxyAdminServiceStub stub)

    public static final IdentityAwareProxyAdminServiceClient create(IdentityAwareProxyAdminServiceStub stub)

Constructs an instance of IdentityAwareProxyAdminServiceClient, using the given stub for making
calls. This is for advanced usage - prefer using
create(IdentityAwareProxyAdminServiceSettings).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `stub` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.stub.IdentityAwareProxyAdminServiceStub` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.IdentityAwareProxyAdminServiceClient` |   |

## Constructors

### IdentityAwareProxyAdminServiceClient(IdentityAwareProxyAdminServiceSettings settings)

    protected IdentityAwareProxyAdminServiceClient(IdentityAwareProxyAdminServiceSettings settings)

Constructs an instance of IdentityAwareProxyAdminServiceClient, 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` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.IdentityAwareProxyAdminServiceSettings` |

### IdentityAwareProxyAdminServiceClient(IdentityAwareProxyAdminServiceStub stub)

    protected IdentityAwareProxyAdminServiceClient(IdentityAwareProxyAdminServiceStub stub)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `stub` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.stub.IdentityAwareProxyAdminServiceStub` |

## Methods

### awaitTermination(long duration, TimeUnit unit)

    public boolean awaitTermination(long duration, TimeUnit unit)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `duration` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `unit` | `https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/TimeUnit.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html` |   |

### close()

    public final void close()

### createTunnelDestGroup(CreateTunnelDestGroupRequest request)

    public final TunnelDestGroup createTunnelDestGroup(CreateTunnelDestGroupRequest request)

Creates a new TunnelDestGroup.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       CreateTunnelDestGroupRequest request =
           CreateTunnelDestGroupRequest.newBuilder()
               .setParent(TunnelLocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setTunnelDestGroup(TunnelDestGroup.newBuilder().build())
               .setTunnelDestGroupId("tunnelDestGroupId-1240473232")
               .build();
       TunnelDestGroup response =
           identityAwareProxyAdminServiceClient.createTunnelDestGroup(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.CreateTunnelDestGroupRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.TunnelDestGroup` |   |

### createTunnelDestGroup(TunnelLocationName parent, TunnelDestGroup tunnelDestGroup, String tunnelDestGroupId)

    public final TunnelDestGroup createTunnelDestGroup(TunnelLocationName parent, TunnelDestGroup tunnelDestGroup, String tunnelDestGroupId)

Creates a new TunnelDestGroup.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       TunnelLocationName parent = TunnelLocationName.of("[PROJECT]", "[LOCATION]");
       TunnelDestGroup tunnelDestGroup = TunnelDestGroup.newBuilder().build();
       String tunnelDestGroupId = "tunnelDestGroupId-1240473232";
       TunnelDestGroup response =
           identityAwareProxyAdminServiceClient.createTunnelDestGroup(
               parent, tunnelDestGroup, tunnelDestGroupId);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.TunnelLocationName` Required. Google Cloud Project ID and location. In the following format: `projects/{project_number/id}/iap_tunnel/locations/{location}`. |
| `tunnelDestGroup` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.TunnelDestGroup` Required. The TunnelDestGroup to create. |
| `tunnelDestGroupId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The ID to use for the TunnelDestGroup, which becomes the final component of the resource name. This value must be 4-63 characters, and valid characters are `[a-z]-`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.TunnelDestGroup` |   |

### createTunnelDestGroup(String parent, TunnelDestGroup tunnelDestGroup, String tunnelDestGroupId)

    public final TunnelDestGroup createTunnelDestGroup(String parent, TunnelDestGroup tunnelDestGroup, String tunnelDestGroupId)

Creates a new TunnelDestGroup.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       String parent = TunnelLocationName.of("[PROJECT]", "[LOCATION]").toString();
       TunnelDestGroup tunnelDestGroup = TunnelDestGroup.newBuilder().build();
       String tunnelDestGroupId = "tunnelDestGroupId-1240473232";
       TunnelDestGroup response =
           identityAwareProxyAdminServiceClient.createTunnelDestGroup(
               parent, tunnelDestGroup, tunnelDestGroupId);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Google Cloud Project ID and location. In the following format: `projects/{project_number/id}/iap_tunnel/locations/{location}`. |
| `tunnelDestGroup` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.TunnelDestGroup` Required. The TunnelDestGroup to create. |
| `tunnelDestGroupId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The ID to use for the TunnelDestGroup, which becomes the final component of the resource name. This value must be 4-63 characters, and valid characters are `[a-z]-`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.TunnelDestGroup` |   |

### createTunnelDestGroupCallable()

    public final UnaryCallable<CreateTunnelDestGroupRequest,TunnelDestGroup> createTunnelDestGroupCallable()

Creates a new TunnelDestGroup.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       CreateTunnelDestGroupRequest request =
           CreateTunnelDestGroupRequest.newBuilder()
               .setParent(TunnelLocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setTunnelDestGroup(TunnelDestGroup.newBuilder().build())
               .setTunnelDestGroupId("tunnelDestGroupId-1240473232")
               .build();
       ApiFuture<TunnelDestGroup> future =
           identityAwareProxyAdminServiceClient.createTunnelDestGroupCallable().futureCall(request);
       // Do something.
       TunnelDestGroup response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.CreateTunnelDestGroupRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.TunnelDestGroup>` |   |

### deleteTunnelDestGroup(DeleteTunnelDestGroupRequest request)

    public final void deleteTunnelDestGroup(DeleteTunnelDestGroupRequest request)

Deletes a TunnelDestGroup.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       DeleteTunnelDestGroupRequest request =
           DeleteTunnelDestGroupRequest.newBuilder()
               .setName(TunnelDestGroupName.of("[PROJECT]", "[LOCATION]", "[DEST_GROUP]").toString())
               .build();
       identityAwareProxyAdminServiceClient.deleteTunnelDestGroup(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.DeleteTunnelDestGroupRequest` The request object containing all of the parameters for the API call. |

### deleteTunnelDestGroup(TunnelDestGroupName name)

    public final void deleteTunnelDestGroup(TunnelDestGroupName name)

Deletes a TunnelDestGroup.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       TunnelDestGroupName name = TunnelDestGroupName.of("[PROJECT]", "[LOCATION]", "[DEST_GROUP]");
       identityAwareProxyAdminServiceClient.deleteTunnelDestGroup(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.TunnelDestGroupName` Required. Name of the TunnelDestGroup to delete. In the following format: `projects/{project_number/id}/iap_tunnel/locations/{location}/destGroups/{dest_group}`. |

### deleteTunnelDestGroup(String name)

    public final void deleteTunnelDestGroup(String name)

Deletes a TunnelDestGroup.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       String name = TunnelDestGroupName.of("[PROJECT]", "[LOCATION]", "[DEST_GROUP]").toString();
       identityAwareProxyAdminServiceClient.deleteTunnelDestGroup(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Name of the TunnelDestGroup to delete. In the following format: `projects/{project_number/id}/iap_tunnel/locations/{location}/destGroups/{dest_group}`. |

### deleteTunnelDestGroupCallable()

    public final UnaryCallable<DeleteTunnelDestGroupRequest,Empty> deleteTunnelDestGroupCallable()

Deletes a TunnelDestGroup.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       DeleteTunnelDestGroupRequest request =
           DeleteTunnelDestGroupRequest.newBuilder()
               .setName(TunnelDestGroupName.of("[PROJECT]", "[LOCATION]", "[DEST_GROUP]").toString())
               .build();
       ApiFuture<Empty> future =
           identityAwareProxyAdminServiceClient.deleteTunnelDestGroupCallable().futureCall(request);
       // Do something.
       future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.DeleteTunnelDestGroupRequest,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html>` |   |

### getIamPolicy(GetIamPolicyRequest request)

    public final Policy getIamPolicy(GetIamPolicyRequest request)

Gets the access control policy for an Identity-Aware Proxy protected resource. More information
about managing access via IAP can be found at:
<https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api>

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       GetIamPolicyRequest request =
           GetIamPolicyRequest.newBuilder()
               .setResource(
                   TunnelDestGroupName.of("[PROJECT]", "[LOCATION]", "[DEST_GROUP]").toString())
               .setOptions(GetPolicyOptions.newBuilder().build())
               .build();
       Policy response = identityAwareProxyAdminServiceClient.getIamPolicy(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `com.google.iam.v1.GetIamPolicyRequest` The 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 an Identity-Aware Proxy protected resource. More information
about managing access via IAP can be found at:
<https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api>

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       GetIamPolicyRequest request =
           GetIamPolicyRequest.newBuilder()
               .setResource(
                   TunnelDestGroupName.of("[PROJECT]", "[LOCATION]", "[DEST_GROUP]").toString())
               .setOptions(GetPolicyOptions.newBuilder().build())
               .build();
       ApiFuture<Policy> future =
           identityAwareProxyAdminServiceClient.getIamPolicyCallable().futureCall(request);
       // Do something.
       Policy response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>` |   |

### getIapSettings(GetIapSettingsRequest request)

    public final IapSettings getIapSettings(GetIapSettingsRequest request)

Gets the IAP settings on a particular IAP protected resource.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       GetIapSettingsRequest request =
           GetIapSettingsRequest.newBuilder().setName("name3373707").build();
       IapSettings response = identityAwareProxyAdminServiceClient.getIapSettings(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.GetIapSettingsRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.IapSettings` |   |

### getIapSettingsCallable()

    public final UnaryCallable<GetIapSettingsRequest,IapSettings> getIapSettingsCallable()

Gets the IAP settings on a particular IAP protected resource.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       GetIapSettingsRequest request =
           GetIapSettingsRequest.newBuilder().setName("name3373707").build();
       ApiFuture<IapSettings> future =
           identityAwareProxyAdminServiceClient.getIapSettingsCallable().futureCall(request);
       // Do something.
       IapSettings response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.GetIapSettingsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.IapSettings>` |   |

### getSettings()

    public final IdentityAwareProxyAdminServiceSettings getSettings()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.IdentityAwareProxyAdminServiceSettings` |   |

### getStub()

    public IdentityAwareProxyAdminServiceStub getStub()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.stub.IdentityAwareProxyAdminServiceStub` |   |

### getTunnelDestGroup(GetTunnelDestGroupRequest request)

    public final TunnelDestGroup getTunnelDestGroup(GetTunnelDestGroupRequest request)

Retrieves an existing TunnelDestGroup.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       GetTunnelDestGroupRequest request =
           GetTunnelDestGroupRequest.newBuilder()
               .setName(TunnelDestGroupName.of("[PROJECT]", "[LOCATION]", "[DEST_GROUP]").toString())
               .build();
       TunnelDestGroup response = identityAwareProxyAdminServiceClient.getTunnelDestGroup(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.GetTunnelDestGroupRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.TunnelDestGroup` |   |

### getTunnelDestGroup(TunnelDestGroupName name)

    public final TunnelDestGroup getTunnelDestGroup(TunnelDestGroupName name)

Retrieves an existing TunnelDestGroup.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       TunnelDestGroupName name = TunnelDestGroupName.of("[PROJECT]", "[LOCATION]", "[DEST_GROUP]");
       TunnelDestGroup response = identityAwareProxyAdminServiceClient.getTunnelDestGroup(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.TunnelDestGroupName` Required. Name of the TunnelDestGroup to be fetched. In the following format: `projects/{project_number/id}/iap_tunnel/locations/{location}/destGroups/{dest_group}`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.TunnelDestGroup` |   |

### getTunnelDestGroup(String name)

    public final TunnelDestGroup getTunnelDestGroup(String name)

Retrieves an existing TunnelDestGroup.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       String name = TunnelDestGroupName.of("[PROJECT]", "[LOCATION]", "[DEST_GROUP]").toString();
       TunnelDestGroup response = identityAwareProxyAdminServiceClient.getTunnelDestGroup(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Name of the TunnelDestGroup to be fetched. In the following format: `projects/{project_number/id}/iap_tunnel/locations/{location}/destGroups/{dest_group}`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.TunnelDestGroup` |   |

### getTunnelDestGroupCallable()

    public final UnaryCallable<GetTunnelDestGroupRequest,TunnelDestGroup> getTunnelDestGroupCallable()

Retrieves an existing TunnelDestGroup.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       GetTunnelDestGroupRequest request =
           GetTunnelDestGroupRequest.newBuilder()
               .setName(TunnelDestGroupName.of("[PROJECT]", "[LOCATION]", "[DEST_GROUP]").toString())
               .build();
       ApiFuture<TunnelDestGroup> future =
           identityAwareProxyAdminServiceClient.getTunnelDestGroupCallable().futureCall(request);
       // Do something.
       TunnelDestGroup response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.GetTunnelDestGroupRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.TunnelDestGroup>` |   |

### isShutdown()

    public boolean isShutdown()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### isTerminated()

    public boolean isTerminated()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### listTunnelDestGroups(ListTunnelDestGroupsRequest request)

    public final IdentityAwareProxyAdminServiceClient.ListTunnelDestGroupsPagedResponse listTunnelDestGroups(ListTunnelDestGroupsRequest request)

Lists the existing TunnelDestGroups. To group across all locations, use a `-` as the location
ID. For example: `/v1/projects/123/iap_tunnel/locations/-/destGroups`

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       ListTunnelDestGroupsRequest request =
           ListTunnelDestGroupsRequest.newBuilder()
               .setParent(TunnelLocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       for (TunnelDestGroup element :
           identityAwareProxyAdminServiceClient.listTunnelDestGroups(request).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.ListTunnelDestGroupsRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.IdentityAwareProxyAdminServiceClient.ListTunnelDestGroupsPagedResponse` |   |

### listTunnelDestGroups(TunnelLocationName parent)

    public final IdentityAwareProxyAdminServiceClient.ListTunnelDestGroupsPagedResponse listTunnelDestGroups(TunnelLocationName parent)

Lists the existing TunnelDestGroups. To group across all locations, use a `-` as the location
ID. For example: `/v1/projects/123/iap_tunnel/locations/-/destGroups`

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       TunnelLocationName parent = TunnelLocationName.of("[PROJECT]", "[LOCATION]");
       for (TunnelDestGroup element :
           identityAwareProxyAdminServiceClient.listTunnelDestGroups(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.TunnelLocationName` Required. Google Cloud Project ID and location. In the following format: `projects/{project_number/id}/iap_tunnel/locations/{location}`. A `-` can be used for the location to group across all locations. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.IdentityAwareProxyAdminServiceClient.ListTunnelDestGroupsPagedResponse` |   |

### listTunnelDestGroups(String parent)

    public final IdentityAwareProxyAdminServiceClient.ListTunnelDestGroupsPagedResponse listTunnelDestGroups(String parent)

Lists the existing TunnelDestGroups. To group across all locations, use a `-` as the location
ID. For example: `/v1/projects/123/iap_tunnel/locations/-/destGroups`

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       String parent = TunnelLocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (TunnelDestGroup element :
           identityAwareProxyAdminServiceClient.listTunnelDestGroups(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Google Cloud Project ID and location. In the following format: `projects/{project_number/id}/iap_tunnel/locations/{location}`. A `-` can be used for the location to group across all locations. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.IdentityAwareProxyAdminServiceClient.ListTunnelDestGroupsPagedResponse` |   |

### listTunnelDestGroupsCallable()

    public final UnaryCallable<ListTunnelDestGroupsRequest,ListTunnelDestGroupsResponse> listTunnelDestGroupsCallable()

Lists the existing TunnelDestGroups. To group across all locations, use a `-` as the location
ID. For example: `/v1/projects/123/iap_tunnel/locations/-/destGroups`

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       ListTunnelDestGroupsRequest request =
           ListTunnelDestGroupsRequest.newBuilder()
               .setParent(TunnelLocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       while (true) {
         ListTunnelDestGroupsResponse response =
             identityAwareProxyAdminServiceClient.listTunnelDestGroupsCallable().call(request);
         for (TunnelDestGroup element : response.getTunnelDestGroupsList()) {
           // doThingsWith(element);
         }
         String nextPageToken = response.getNextPageToken();
         if (!Strings.isNullOrEmpty(nextPageToken)) {
           request = request.toBuilder().setPageToken(nextPageToken).build();
         } else {
           break;
         }
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.ListTunnelDestGroupsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.ListTunnelDestGroupsResponse>` |   |

### listTunnelDestGroupsPagedCallable()

    public final UnaryCallable<ListTunnelDestGroupsRequest,IdentityAwareProxyAdminServiceClient.ListTunnelDestGroupsPagedResponse> listTunnelDestGroupsPagedCallable()

Lists the existing TunnelDestGroups. To group across all locations, use a `-` as the location
ID. For example: `/v1/projects/123/iap_tunnel/locations/-/destGroups`

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       ListTunnelDestGroupsRequest request =
           ListTunnelDestGroupsRequest.newBuilder()
               .setParent(TunnelLocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       ApiFuture<TunnelDestGroup> future =
           identityAwareProxyAdminServiceClient
               .listTunnelDestGroupsPagedCallable()
               .futureCall(request);
       // Do something.
       for (TunnelDestGroup element : future.get().iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.ListTunnelDestGroupsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.IdentityAwareProxyAdminServiceClient.ListTunnelDestGroupsPagedResponse>` |   |

### setIamPolicy(SetIamPolicyRequest request)

    public final Policy setIamPolicy(SetIamPolicyRequest request)

Sets the access control policy for an Identity-Aware Proxy protected resource. Replaces any
existing policy. More information about managing access via IAP can be found at:
<https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api>

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       SetIamPolicyRequest request =
           SetIamPolicyRequest.newBuilder()
               .setResource(
                   TunnelDestGroupName.of("[PROJECT]", "[LOCATION]", "[DEST_GROUP]").toString())
               .setPolicy(Policy.newBuilder().build())
               .setUpdateMask(FieldMask.newBuilder().build())
               .build();
       Policy response = identityAwareProxyAdminServiceClient.setIamPolicy(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `com.google.iam.v1.SetIamPolicyRequest` The 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 for an Identity-Aware Proxy protected resource. Replaces any
existing policy. More information about managing access via IAP can be found at:
<https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api>

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       SetIamPolicyRequest request =
           SetIamPolicyRequest.newBuilder()
               .setResource(
                   TunnelDestGroupName.of("[PROJECT]", "[LOCATION]", "[DEST_GROUP]").toString())
               .setPolicy(Policy.newBuilder().build())
               .setUpdateMask(FieldMask.newBuilder().build())
               .build();
       ApiFuture<Policy> future =
           identityAwareProxyAdminServiceClient.setIamPolicyCallable().futureCall(request);
       // Do something.
       Policy response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<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 Identity-Aware Proxy protected resource. More
information about managing access via IAP can be found at:
<https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api>

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       TestIamPermissionsRequest request =
           TestIamPermissionsRequest.newBuilder()
               .setResource(
                   TunnelDestGroupName.of("[PROJECT]", "[LOCATION]", "[DEST_GROUP]").toString())
               .addAllPermissions(new ArrayList<String>())
               .build();
       TestIamPermissionsResponse response =
           identityAwareProxyAdminServiceClient.testIamPermissions(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `com.google.iam.v1.TestIamPermissionsRequest` The 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 Identity-Aware Proxy protected resource. More
information about managing access via IAP can be found at:
<https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api>

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       TestIamPermissionsRequest request =
           TestIamPermissionsRequest.newBuilder()
               .setResource(
                   TunnelDestGroupName.of("[PROJECT]", "[LOCATION]", "[DEST_GROUP]").toString())
               .addAllPermissions(new ArrayList<String>())
               .build();
       ApiFuture<TestIamPermissionsResponse> future =
           identityAwareProxyAdminServiceClient.testIamPermissionsCallable().futureCall(request);
       // Do something.
       TestIamPermissionsResponse response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>` |   |

### updateIapSettings(UpdateIapSettingsRequest request)

    public final IapSettings updateIapSettings(UpdateIapSettingsRequest request)

Updates the IAP settings on a particular IAP protected resource. It replaces all fields unless
the `update_mask` is 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 (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       UpdateIapSettingsRequest request =
           UpdateIapSettingsRequest.newBuilder()
               .setIapSettings(IapSettings.newBuilder().build())
               .setUpdateMask(FieldMask.newBuilder().build())
               .build();
       IapSettings response = identityAwareProxyAdminServiceClient.updateIapSettings(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.UpdateIapSettingsRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.IapSettings` |   |

### updateIapSettingsCallable()

    public final UnaryCallable<UpdateIapSettingsRequest,IapSettings> updateIapSettingsCallable()

Updates the IAP settings on a particular IAP protected resource. It replaces all fields unless
the `update_mask` is 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 (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       UpdateIapSettingsRequest request =
           UpdateIapSettingsRequest.newBuilder()
               .setIapSettings(IapSettings.newBuilder().build())
               .setUpdateMask(FieldMask.newBuilder().build())
               .build();
       ApiFuture<IapSettings> future =
           identityAwareProxyAdminServiceClient.updateIapSettingsCallable().futureCall(request);
       // Do something.
       IapSettings response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.UpdateIapSettingsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.IapSettings>` |   |

### updateTunnelDestGroup(TunnelDestGroup tunnelDestGroup, FieldMask updateMask)

    public final TunnelDestGroup updateTunnelDestGroup(TunnelDestGroup tunnelDestGroup, FieldMask updateMask)

Updates a TunnelDestGroup.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       TunnelDestGroup tunnelDestGroup = TunnelDestGroup.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
       TunnelDestGroup response =
           identityAwareProxyAdminServiceClient.updateTunnelDestGroup(tunnelDestGroup, updateMask);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tunnelDestGroup` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.TunnelDestGroup` Required. The new values for the TunnelDestGroup. |
| `updateMask` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.FieldMask.html` A field mask that specifies which IAP settings to update. If omitted, then all of the settings are updated. See <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask> |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.TunnelDestGroup` |   |

### updateTunnelDestGroup(UpdateTunnelDestGroupRequest request)

    public final TunnelDestGroup updateTunnelDestGroup(UpdateTunnelDestGroupRequest request)

Updates a TunnelDestGroup.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       UpdateTunnelDestGroupRequest request =
           UpdateTunnelDestGroupRequest.newBuilder()
               .setTunnelDestGroup(TunnelDestGroup.newBuilder().build())
               .setUpdateMask(FieldMask.newBuilder().build())
               .build();
       TunnelDestGroup response =
           identityAwareProxyAdminServiceClient.updateTunnelDestGroup(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.UpdateTunnelDestGroupRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.TunnelDestGroup` |   |

### updateTunnelDestGroupCallable()

    public final UnaryCallable<UpdateTunnelDestGroupRequest,TunnelDestGroup> updateTunnelDestGroupCallable()

Updates a TunnelDestGroup.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       UpdateTunnelDestGroupRequest request =
           UpdateTunnelDestGroupRequest.newBuilder()
               .setTunnelDestGroup(TunnelDestGroup.newBuilder().build())
               .setUpdateMask(FieldMask.newBuilder().build())
               .build();
       ApiFuture<TunnelDestGroup> future =
           identityAwareProxyAdminServiceClient.updateTunnelDestGroupCallable().futureCall(request);
       // Do something.
       TunnelDestGroup response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.UpdateTunnelDestGroupRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.TunnelDestGroup>` |   |

### validateIapAttributeExpression(ValidateIapAttributeExpressionRequest request)

    public final ValidateIapAttributeExpressionResponse validateIapAttributeExpression(ValidateIapAttributeExpressionRequest request)

Validates that a given CEL expression conforms to IAP restrictions.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       ValidateIapAttributeExpressionRequest request =
           ValidateIapAttributeExpressionRequest.newBuilder()
               .setName("name3373707")
               .setExpression("expression-1795452264")
               .build();
       ValidateIapAttributeExpressionResponse response =
           identityAwareProxyAdminServiceClient.validateIapAttributeExpression(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.ValidateIapAttributeExpressionRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.ValidateIapAttributeExpressionResponse` |   |

### validateIapAttributeExpressionCallable()

    public final UnaryCallable<ValidateIapAttributeExpressionRequest,ValidateIapAttributeExpressionResponse> validateIapAttributeExpressionCallable()

Validates that a given CEL expression conforms to IAP restrictions.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient =
         IdentityAwareProxyAdminServiceClient.create()) {
       ValidateIapAttributeExpressionRequest request =
           ValidateIapAttributeExpressionRequest.newBuilder()
               .setName("name3373707")
               .setExpression("expression-1795452264")
               .build();
       ApiFuture<ValidateIapAttributeExpressionResponse> future =
           identityAwareProxyAdminServiceClient
               .validateIapAttributeExpressionCallable()
               .futureCall(request);
       // Do something.
       ValidateIapAttributeExpressionResponse response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.ValidateIapAttributeExpressionRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-iap/latest/com.google.cloud.iap.v1.ValidateIapAttributeExpressionResponse>` |   |