Class IAMGrpc (3.7.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.

Inheritance

java.lang.Object > IAMGrpc

Static Fields

SERVICE_NAME

public static final String SERVICE_NAME
Field Value
TypeDescription
String

Static Methods

getCreateRoleMethod()

public static MethodDescriptor<CreateRoleRequest,Role> getCreateRoleMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<CreateRoleRequest,Role>

getCreateServiceAccountKeyMethod()

public static MethodDescriptor<CreateServiceAccountKeyRequest,ServiceAccountKey> getCreateServiceAccountKeyMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<CreateServiceAccountKeyRequest,ServiceAccountKey>

getCreateServiceAccountMethod()

public static MethodDescriptor<CreateServiceAccountRequest,ServiceAccount> getCreateServiceAccountMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<CreateServiceAccountRequest,ServiceAccount>

getDeleteRoleMethod()

public static MethodDescriptor<DeleteRoleRequest,Role> getDeleteRoleMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<DeleteRoleRequest,Role>

getDeleteServiceAccountKeyMethod()

public static MethodDescriptor<DeleteServiceAccountKeyRequest,Empty> getDeleteServiceAccountKeyMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<DeleteServiceAccountKeyRequest,Empty>

getDeleteServiceAccountMethod()

public static MethodDescriptor<DeleteServiceAccountRequest,Empty> getDeleteServiceAccountMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<DeleteServiceAccountRequest,Empty>

getDisableServiceAccountKeyMethod()

public static MethodDescriptor<DisableServiceAccountKeyRequest,Empty> getDisableServiceAccountKeyMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<DisableServiceAccountKeyRequest,Empty>

getDisableServiceAccountMethod()

public static MethodDescriptor<DisableServiceAccountRequest,Empty> getDisableServiceAccountMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<DisableServiceAccountRequest,Empty>

getEnableServiceAccountKeyMethod()

public static MethodDescriptor<EnableServiceAccountKeyRequest,Empty> getEnableServiceAccountKeyMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<EnableServiceAccountKeyRequest,Empty>

getEnableServiceAccountMethod()

public static MethodDescriptor<EnableServiceAccountRequest,Empty> getEnableServiceAccountMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<EnableServiceAccountRequest,Empty>

getGetIamPolicyMethod()

public static MethodDescriptor<GetIamPolicyRequest,Policy> getGetIamPolicyMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>

getGetRoleMethod()

public static MethodDescriptor<GetRoleRequest,Role> getGetRoleMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<GetRoleRequest,Role>

getGetServiceAccountKeyMethod()

public static MethodDescriptor<GetServiceAccountKeyRequest,ServiceAccountKey> getGetServiceAccountKeyMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<GetServiceAccountKeyRequest,ServiceAccountKey>

getGetServiceAccountMethod()

public static MethodDescriptor<GetServiceAccountRequest,ServiceAccount> getGetServiceAccountMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<GetServiceAccountRequest,ServiceAccount>

getLintPolicyMethod()

public static MethodDescriptor<LintPolicyRequest,LintPolicyResponse> getLintPolicyMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<LintPolicyRequest,LintPolicyResponse>

getListRolesMethod()

public static MethodDescriptor<ListRolesRequest,ListRolesResponse> getListRolesMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<ListRolesRequest,ListRolesResponse>

getListServiceAccountKeysMethod()

public static MethodDescriptor<ListServiceAccountKeysRequest,ListServiceAccountKeysResponse> getListServiceAccountKeysMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<ListServiceAccountKeysRequest,ListServiceAccountKeysResponse>

getListServiceAccountsMethod()

public static MethodDescriptor<ListServiceAccountsRequest,ListServiceAccountsResponse> getListServiceAccountsMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<ListServiceAccountsRequest,ListServiceAccountsResponse>

getPatchServiceAccountMethod()

public static MethodDescriptor<PatchServiceAccountRequest,ServiceAccount> getPatchServiceAccountMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<PatchServiceAccountRequest,ServiceAccount>

getQueryAuditableServicesMethod()

public static MethodDescriptor<QueryAuditableServicesRequest,QueryAuditableServicesResponse> getQueryAuditableServicesMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<QueryAuditableServicesRequest,QueryAuditableServicesResponse>

getQueryGrantableRolesMethod()

public static MethodDescriptor<QueryGrantableRolesRequest,QueryGrantableRolesResponse> getQueryGrantableRolesMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<QueryGrantableRolesRequest,QueryGrantableRolesResponse>

getQueryTestablePermissionsMethod()

public static MethodDescriptor<QueryTestablePermissionsRequest,QueryTestablePermissionsResponse> getQueryTestablePermissionsMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<QueryTestablePermissionsRequest,QueryTestablePermissionsResponse>

getServiceDescriptor()

public static ServiceDescriptor getServiceDescriptor()
Returns
TypeDescription
io.grpc.ServiceDescriptor

getSetIamPolicyMethod()

public static MethodDescriptor<SetIamPolicyRequest,Policy> getSetIamPolicyMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>

getSignBlobMethod()

public static MethodDescriptor<SignBlobRequest,SignBlobResponse> getSignBlobMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<SignBlobRequest,SignBlobResponse>

getSignJwtMethod()

public static MethodDescriptor<SignJwtRequest,SignJwtResponse> getSignJwtMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<SignJwtRequest,SignJwtResponse>

getTestIamPermissionsMethod()

public static MethodDescriptor<TestIamPermissionsRequest,TestIamPermissionsResponse> getTestIamPermissionsMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>

getUndeleteRoleMethod()

public static MethodDescriptor<UndeleteRoleRequest,Role> getUndeleteRoleMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<UndeleteRoleRequest,Role>

getUndeleteServiceAccountMethod()

public static MethodDescriptor<UndeleteServiceAccountRequest,UndeleteServiceAccountResponse> getUndeleteServiceAccountMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<UndeleteServiceAccountRequest,UndeleteServiceAccountResponse>

getUpdateRoleMethod()

public static MethodDescriptor<UpdateRoleRequest,Role> getUpdateRoleMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<UpdateRoleRequest,Role>

getUpdateServiceAccountMethod()

public static MethodDescriptor<ServiceAccount,ServiceAccount> getUpdateServiceAccountMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<ServiceAccount,ServiceAccount>

getUploadServiceAccountKeyMethod()

public static MethodDescriptor<UploadServiceAccountKeyRequest,ServiceAccountKey> getUploadServiceAccountKeyMethod()
Returns
TypeDescription
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
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
IAMGrpc.IAMBlockingStub

newFutureStub(Channel channel)

public static IAMGrpc.IAMFutureStub newFutureStub(Channel channel)

Creates a new ListenableFuture-style stub that supports unary calls on the service

Parameter
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
IAMGrpc.IAMFutureStub

newStub(Channel channel)

public static IAMGrpc.IAMStub newStub(Channel channel)

Creates a new async stub that supports all call types for the service

Parameter
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
IAMGrpc.IAMStub