@Generated(value="by gapic-generator-java")
See: Description
| Class | Description |
|---|---|
| IAMClient |
Service Description: Creates and manages Identity and Access Management (IAM) resources.
|
| IAMClient.ListRolesFixedSizeCollection | |
| IAMClient.ListRolesPage | |
| IAMClient.ListRolesPagedResponse | |
| IAMClient.ListServiceAccountsFixedSizeCollection | |
| IAMClient.ListServiceAccountsPage | |
| IAMClient.ListServiceAccountsPagedResponse | |
| IAMClient.QueryGrantableRolesFixedSizeCollection | |
| IAMClient.QueryGrantableRolesPage | |
| IAMClient.QueryGrantableRolesPagedResponse | |
| IAMClient.QueryTestablePermissionsFixedSizeCollection | |
| IAMClient.QueryTestablePermissionsPage | |
| IAMClient.QueryTestablePermissionsPagedResponse | |
| IAMSettings |
Settings class to configure an instance of
IAMClient. |
| IAMSettings.Builder |
Builder for IAMSettings.
|
The interfaces provided are listed below, along with usage samples.
======================= IAMClient =======================
Service Description: Creates and manages Identity and Access Management (IAM) resources.
You can use this service to work with all of the following resources:
In addition, you can use this service to complete the following tasks, among others:
When you read data from the IAM API, each read is eventually consistent. In other words, if you write data with the IAM API, then immediately read that data, the read operation might return an older version of the data. To deal with this behavior, your application can retry the request with truncated exponential backoff.
In contrast, writing data to the IAM API is sequentially consistent. In other words, write operations are always processed in the order in which they were received.
Sample for IAMClient:
// 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 (IAMClient iAMClient = IAMClient.create()) {
ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
ServiceAccount response = iAMClient.getServiceAccount(name);
}
Copyright © 2025 Google LLC. All rights reserved.