google-iam-policy overview (1.16.0)

com.google.iam.v2

A client to Identity and Access Management (IAM) API

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

PoliciesClient

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

Sample for PoliciesClient:


 // 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 (PoliciesClient policiesClient = PoliciesClient.create()) {
   String name = "name3373707";
   Policy response = policiesClient.getPolicy(name);
 }
 

com.google.iam.v2.stub

com.google.iam.v2beta

A client to Identity and Access Management (IAM) API

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

PoliciesClient

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

Sample for PoliciesClient:


 // 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 (PoliciesClient policiesClient = PoliciesClient.create()) {
   String name = "name3373707";
   Policy response = policiesClient.getPolicy(name);
 }
 

com.google.iam.v2beta.stub