Package google.registry.tools
Class IamClient
java.lang.Object
google.registry.tools.IamClient
-
Constructor Summary
ModifierConstructorDescriptionprotected
IamClient
(com.google.api.services.cloudresourcemanager.CloudResourceManager resourceManager, String projectId) IamClient
(GoogleCredentialsBundle credentialsBundle, String projectId) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBinding
(String account, String role) Bind the given role to the account.findMember
(com.google.api.services.cloudresourcemanager.model.Binding binding, String member) void
removeBinding
(String account, String role) Remove the given role to the account.
-
Constructor Details
-
IamClient
@Inject public IamClient(@ApplicationDefaultCredential GoogleCredentialsBundle credentialsBundle, @Config("projectId") String projectId) -
IamClient
protected IamClient(com.google.api.services.cloudresourcemanager.CloudResourceManager resourceManager, String projectId)
-
-
Method Details
-
addBinding
Bind the given role to the account.No-op if the role is already bound to the account.
-
removeBinding
Remove the given role to the account.No-op if the role is not bound to the account.
-
findMember
-