public class Iam.Projects.ServiceAccounts
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
Iam.Projects.ServiceAccounts.Create |
class |
Iam.Projects.ServiceAccounts.Delete |
class |
Iam.Projects.ServiceAccounts.Get |
class |
Iam.Projects.ServiceAccounts.GetIamPolicy |
class |
Iam.Projects.ServiceAccounts.Keys
The "keys" collection of methods.
|
class |
Iam.Projects.ServiceAccounts.List |
class |
Iam.Projects.ServiceAccounts.SetIamPolicy |
class |
Iam.Projects.ServiceAccounts.SignBlob |
class |
Iam.Projects.ServiceAccounts.TestIamPermissions |
class |
Iam.Projects.ServiceAccounts.Update |
| Constructor and Description |
|---|
Iam.Projects.ServiceAccounts() |
| Modifier and Type | Method and Description |
|---|---|
Iam.Projects.ServiceAccounts.Create |
create(java.lang.String name,
CreateServiceAccountRequest content)
Creates a ServiceAccount and returns it.
|
Iam.Projects.ServiceAccounts.Delete |
delete(java.lang.String name)
Deletes a ServiceAccount.
|
Iam.Projects.ServiceAccounts.Get |
get(java.lang.String name)
Gets a ServiceAccount.
|
Iam.Projects.ServiceAccounts.GetIamPolicy |
getIamPolicy(java.lang.String resource)
Returns the IAM access control policy for a ServiceAccount.
|
Iam.Projects.ServiceAccounts.Keys |
keys()
An accessor for creating requests from the Keys collection.
|
Iam.Projects.ServiceAccounts.List |
list(java.lang.String name)
Lists ServiceAccounts for a project.
|
Iam.Projects.ServiceAccounts.SetIamPolicy |
setIamPolicy(java.lang.String resource,
SetIamPolicyRequest content)
Sets the IAM access control policy for a ServiceAccount.
|
Iam.Projects.ServiceAccounts.SignBlob |
signBlob(java.lang.String name,
SignBlobRequest content)
Signs a blob using a service account's system-managed private key.
|
Iam.Projects.ServiceAccounts.TestIamPermissions |
testIamPermissions(java.lang.String resource,
TestIamPermissionsRequest content)
Tests the specified permissions against the IAM access control policy for a ServiceAccount.
|
Iam.Projects.ServiceAccounts.Update |
update(java.lang.String name,
ServiceAccount content)
Updates a ServiceAccount.
|
public Iam.Projects.ServiceAccounts.Create create(java.lang.String name, CreateServiceAccountRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the project associated with the service accounts, such as `projects
/my-project-123`.content - the CreateServiceAccountRequestjava.io.IOExceptionpublic Iam.Projects.ServiceAccounts.Delete delete(java.lang.String name) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The resource name of the service account in the following format:
`projects/{project}/serviceAccounts/{account}`. Using `-` as a wildcard for the project
will infer the project from the account. The `account` value can be the `email` address or
the `unique_id` of the service account.java.io.IOExceptionpublic Iam.Projects.ServiceAccounts.Get get(java.lang.String name) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The resource name of the service account in the following format:
`projects/{project}/serviceAccounts/{account}`. Using `-` as a wildcard for the project
will infer the project from the account. The `account` value can be the `email` address or
the `unique_id` of the service account.java.io.IOExceptionpublic Iam.Projects.ServiceAccounts.GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which the policy is being requested. `resource` is usually specified as a
path. For example, a Project resource is specified as `projects/{project}`.java.io.IOExceptionpublic Iam.Projects.ServiceAccounts.List list(java.lang.String name) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the project associated with the service accounts, such as `projects
/my-project-123`.java.io.IOExceptionpublic Iam.Projects.ServiceAccounts.SetIamPolicy setIamPolicy(java.lang.String resource, SetIamPolicyRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which the policy is being specified. `resource` is usually specified as a
path. For example, a Project resource is specified as `projects/{project}`.content - the SetIamPolicyRequestjava.io.IOExceptionpublic Iam.Projects.ServiceAccounts.SignBlob signBlob(java.lang.String name, SignBlobRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The resource name of the service account in the following format:
`projects/{project}/serviceAccounts/{account}`. Using `-` as a wildcard for the project
will infer the project from the account. The `account` value can be the `email` address or
the `unique_id` of the service account.content - the SignBlobRequestjava.io.IOExceptionpublic Iam.Projects.ServiceAccounts.TestIamPermissions testIamPermissions(java.lang.String resource, TestIamPermissionsRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which the policy detail is being requested. `resource` is usually
specified as a path. For example, a Project resource is specified as `projects/{project}`.content - the TestIamPermissionsRequestjava.io.IOExceptionpublic Iam.Projects.ServiceAccounts.Update update(java.lang.String name, ServiceAccount content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The resource name of the service account in the following format:
`projects/{project}/serviceAccounts/{account}`. Requests using `-` as a wildcard for the
project will infer the project from the `account` and the `account` value can be the
`email` address or the `unique_id` of the service account. In responses the resource name
will always be in the format `projects/{project}/serviceAccounts/{email}`.content - the ServiceAccountjava.io.IOExceptionpublic Iam.Projects.ServiceAccounts.Keys keys()
The typical use is:
Iam iam = new Iam(...);Iam.Keys.List request = iam.keys().list(parameters ...)