Skip navigation links

@Generated(value="by gapic-generator-java")

Package com.google.iam.v3beta

A client to Identity and Access Management (IAM) API The interfaces provided are listed below, along with usage samples.

See: Description

Package com.google.iam.v3beta Description

A client to Identity and Access Management (IAM) API

The interfaces provided are listed below, along with usage samples.

======================= PolicyBindingsClient =======================

Service Description: An interface for managing Identity and Access Management (IAM) policy bindings.

Sample for PolicyBindingsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (PolicyBindingsClient policyBindingsClient = PolicyBindingsClient.create()) {
   PolicyBindingName name =
       PolicyBindingName.ofProjectLocationPolicyBindingName(
           "[PROJECT]", "[LOCATION]", "[POLICY_BINDING]");
   PolicyBinding response = policyBindingsClient.getPolicyBinding(name);
 }
 

======================= PrincipalAccessBoundaryPoliciesClient =======================

Service Description: Manages Identity and Access Management (IAM) principal access boundary policies.

Sample for PrincipalAccessBoundaryPoliciesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (PrincipalAccessBoundaryPoliciesClient principalAccessBoundaryPoliciesClient =
     PrincipalAccessBoundaryPoliciesClient.create()) {
   PrincipalAccessBoundaryPolicyName name =
       PrincipalAccessBoundaryPolicyName.of(
           "[ORGANIZATION]", "[LOCATION]", "[PRINCIPAL_ACCESS_BOUNDARY_POLICY]");
   PrincipalAccessBoundaryPolicy response =
       principalAccessBoundaryPoliciesClient.getPrincipalAccessBoundaryPolicy(name);
 }
 
Skip navigation links

Copyright © 2025 Google LLC. All rights reserved.