Package com.google.cloud.iap.v1
@Generated("by gapic-generator-java")
package com.google.cloud.iap.v1
A client to Cloud Identity-Aware Proxy API
The interfaces provided are listed below, along with usage samples.
======================= IdentityAwareProxyAdminServiceClient =======================
Service Description: APIs for Identity-Aware Proxy Admin configurations.
Sample for IdentityAwareProxyAdminServiceClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying 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("resource-341064690")
.setPolicy(Policy.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Policy response = identityAwareProxyAdminServiceClient.setIamPolicy(request);
}
======================= IdentityAwareProxyOAuthServiceClient =======================
Service Description: API to programmatically create, list and retrieve Identity Aware Proxy (IAP) OAuth brands; and create, retrieve, delete and reset-secret of IAP OAuth clients.
Sample for IdentityAwareProxyOAuthServiceClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (IdentityAwareProxyOAuthServiceClient identityAwareProxyOAuthServiceClient =
IdentityAwareProxyOAuthServiceClient.create()) {
ListBrandsRequest request =
ListBrandsRequest.newBuilder().setParent("parent-995424086").build();
ListBrandsResponse response = identityAwareProxyOAuthServiceClient.listBrands(request);
}
-
ClassesClassDescriptionService Description: APIs for Identity-Aware Proxy Admin configurations.Settings class to configure an instance of
IdentityAwareProxyAdminServiceClient.Builder for IdentityAwareProxyAdminServiceSettings.Service Description: API to programmatically create, list and retrieve Identity Aware Proxy (IAP) OAuth brands; and create, retrieve, delete and reset-secret of IAP OAuth clients.Settings class to configure an instance ofIdentityAwareProxyOAuthServiceClient.Builder for IdentityAwareProxyOAuthServiceSettings.