- 3.68.0 (latest)
- 3.67.0
- 3.65.0
- 3.63.0
- 3.62.0
- 3.59.0
- 3.58.0
- 3.57.0
- 3.55.0
- 3.54.0
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 2.0.0
- 1.2.5
- 1.1.8
- 0.2.0
public
final
class
IAMGrpc
Creates and manages Identity and Access Management (IAM) resources. You can use this service to work with all of the following resources:
- Service accounts, which identify an application or a virtual machine (VM) instance rather than a person
- Service account keys, which service accounts use to authenticate with Google APIs
- IAM policies for service accounts, which specify the roles that a principal has for the service account
- IAM custom roles, which help you limit the number of permissions that you grant to principals In addition, you can use this service to complete the following tasks, among others:
- Test whether a service account can use specific permissions
- Check which roles you can grant for a specific resource
- Lint, or validate, condition expressions in an IAM policy 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.
Static Fields
SERVICE_NAME
public
static
final
String
SERVICE_NAME
Static Methods
bindService(IAMGrpc.AsyncService service)
public
static
final
ServerServiceDefinition
bindService
(
IAMGrpc
.
AsyncService
service
)
Returns
Type
Description
io.grpc.ServerServiceDefinition
getCreateRoleMethod()
public
static
MethodDescriptor<CreateRoleRequest
,
Role
>
getCreateRoleMethod
()
getCreateServiceAccountKeyMethod()
public
static
MethodDescriptor<CreateServiceAccountKeyRequest
,
ServiceAccountKey
>
getCreateServiceAccountKeyMethod
()
Returns
Type
Description
io.grpc.MethodDescriptor
< CreateServiceAccountKeyRequest
, ServiceAccountKey
>
getCreateServiceAccountMethod()
public
static
MethodDescriptor<CreateServiceAccountRequest
,
ServiceAccount
>
getCreateServiceAccountMethod
()
getDeleteRoleMethod()
public
static
MethodDescriptor<DeleteRoleRequest
,
Role
>
getDeleteRoleMethod
()
getDeleteServiceAccountKeyMethod()
public
static
MethodDescriptor<DeleteServiceAccountKeyRequest
,
Empty
>
getDeleteServiceAccountKeyMethod
()
getDeleteServiceAccountMethod()
public
static
MethodDescriptor<DeleteServiceAccountRequest
,
Empty
>
getDeleteServiceAccountMethod
()
getDisableServiceAccountKeyMethod()
public
static
MethodDescriptor<DisableServiceAccountKeyRequest
,
Empty
>
getDisableServiceAccountKeyMethod
()
getDisableServiceAccountMethod()
public
static
MethodDescriptor<DisableServiceAccountRequest
,
Empty
>
getDisableServiceAccountMethod
()
getEnableServiceAccountKeyMethod()
public
static
MethodDescriptor<EnableServiceAccountKeyRequest
,
Empty
>
getEnableServiceAccountKeyMethod
()
getEnableServiceAccountMethod()
public
static
MethodDescriptor<EnableServiceAccountRequest
,
Empty
>
getEnableServiceAccountMethod
()
getGetIamPolicyMethod()
public
static
MethodDescriptor<GetIamPolicyRequest
,
Policy
>
getGetIamPolicyMethod
()
Returns
Type
Description
io.grpc.MethodDescriptor
< com.google.iam.v1.GetIamPolicyRequest
, com.google.iam.v1.Policy
>
getGetRoleMethod()
public
static
MethodDescriptor<GetRoleRequest
,
Role
>
getGetRoleMethod
()
getGetServiceAccountKeyMethod()
public
static
MethodDescriptor<GetServiceAccountKeyRequest
,
ServiceAccountKey
>
getGetServiceAccountKeyMethod
()
Returns
Type
Description
io.grpc.MethodDescriptor
< GetServiceAccountKeyRequest
, ServiceAccountKey
>
getGetServiceAccountMethod()
public
static
MethodDescriptor<GetServiceAccountRequest
,
ServiceAccount
>
getGetServiceAccountMethod
()
getLintPolicyMethod()
public
static
MethodDescriptor<LintPolicyRequest
,
LintPolicyResponse
>
getLintPolicyMethod
()
getListRolesMethod()
public
static
MethodDescriptor<ListRolesRequest
,
ListRolesResponse
>
getListRolesMethod
()
getListServiceAccountKeysMethod()
public
static
MethodDescriptor<ListServiceAccountKeysRequest
,
ListServiceAccountKeysResponse
>
getListServiceAccountKeysMethod
()
Returns
Type
Description
io.grpc.MethodDescriptor
< ListServiceAccountKeysRequest
, ListServiceAccountKeysResponse
>
getListServiceAccountsMethod()
public
static
MethodDescriptor<ListServiceAccountsRequest
,
ListServiceAccountsResponse
>
getListServiceAccountsMethod
()
Returns
Type
Description
io.grpc.MethodDescriptor
< ListServiceAccountsRequest
, ListServiceAccountsResponse
>
getPatchServiceAccountMethod()
public
static
MethodDescriptor<PatchServiceAccountRequest
,
ServiceAccount
>
getPatchServiceAccountMethod
()
getQueryAuditableServicesMethod()
public
static
MethodDescriptor<QueryAuditableServicesRequest
,
QueryAuditableServicesResponse
>
getQueryAuditableServicesMethod
()
Returns
Type
Description
io.grpc.MethodDescriptor
< QueryAuditableServicesRequest
, QueryAuditableServicesResponse
>
getQueryGrantableRolesMethod()
public
static
MethodDescriptor<QueryGrantableRolesRequest
,
QueryGrantableRolesResponse
>
getQueryGrantableRolesMethod
()
Returns
Type
Description
io.grpc.MethodDescriptor
< QueryGrantableRolesRequest
, QueryGrantableRolesResponse
>
getQueryTestablePermissionsMethod()
public
static
MethodDescriptor<QueryTestablePermissionsRequest
,
QueryTestablePermissionsResponse
>
getQueryTestablePermissionsMethod
()
Returns
Type
Description
io.grpc.MethodDescriptor
< QueryTestablePermissionsRequest
, QueryTestablePermissionsResponse
>
getServiceDescriptor()
public
static
ServiceDescriptor
getServiceDescriptor
()
Returns
Type
Description
io.grpc.ServiceDescriptor
getSetIamPolicyMethod()
public
static
MethodDescriptor<SetIamPolicyRequest
,
Policy
>
getSetIamPolicyMethod
()
Returns
Type
Description
io.grpc.MethodDescriptor
< com.google.iam.v1.SetIamPolicyRequest
, com.google.iam.v1.Policy
>
getSignBlobMethod()
public
static
MethodDescriptor<SignBlobRequest
,
SignBlobResponse
>
getSignBlobMethod
()
getSignJwtMethod()
public
static
MethodDescriptor<SignJwtRequest
,
SignJwtResponse
>
getSignJwtMethod
()
getTestIamPermissionsMethod()
public
static
MethodDescriptor<TestIamPermissionsRequest
,
TestIamPermissionsResponse
>
getTestIamPermissionsMethod
()
Returns
Type
Description
io.grpc.MethodDescriptor
< com.google.iam.v1.TestIamPermissionsRequest
, com.google.iam.v1.TestIamPermissionsResponse
>
getUndeleteRoleMethod()
public
static
MethodDescriptor<UndeleteRoleRequest
,
Role
>
getUndeleteRoleMethod
()
getUndeleteServiceAccountMethod()
public
static
MethodDescriptor<UndeleteServiceAccountRequest
,
UndeleteServiceAccountResponse
>
getUndeleteServiceAccountMethod
()
Returns
Type
Description
io.grpc.MethodDescriptor
< UndeleteServiceAccountRequest
, UndeleteServiceAccountResponse
>
getUpdateRoleMethod()
public
static
MethodDescriptor<UpdateRoleRequest
,
Role
>
getUpdateRoleMethod
()
getUpdateServiceAccountMethod()
public
static
MethodDescriptor<ServiceAccount
,
ServiceAccount
>
getUpdateServiceAccountMethod
()
getUploadServiceAccountKeyMethod()
public
static
MethodDescriptor<UploadServiceAccountKeyRequest
,
ServiceAccountKey
>
getUploadServiceAccountKeyMethod
()
Returns
Type
Description
io.grpc.MethodDescriptor
< UploadServiceAccountKeyRequest
, ServiceAccountKey
>
newBlockingStub(Channel channel)
public
static
IAMGrpc
.
IAMBlockingStub
newBlockingStub
(
Channel
channel
)
Creates a new blocking-style stub that supports unary and streaming output calls on the service
Parameter
Name
Description
channel
io.grpc.Channel
newFutureStub(Channel channel)
public
static
IAMGrpc
.
IAMFutureStub
newFutureStub
(
Channel
channel
)
Creates a new ListenableFuture-style stub that supports unary calls on the service
Parameter
Name
Description
channel
io.grpc.Channel
newStub(Channel channel)
public
static
IAMGrpc
.
IAMStub
newStub
(
Channel
channel
)
Creates a new async stub that supports all call types for the service
Parameter
Name
Description
channel
io.grpc.Channel