public class Iam.Projects.ServiceAccounts extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Iam.Projects.ServiceAccounts.Create |
class |
Iam.Projects.ServiceAccounts.Delete |
class |
Iam.Projects.ServiceAccounts.Disable |
class |
Iam.Projects.ServiceAccounts.Enable |
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.Patch |
class |
Iam.Projects.ServiceAccounts.SetIamPolicy |
class |
Iam.Projects.ServiceAccounts.SignBlob |
class |
Iam.Projects.ServiceAccounts.SignJwt |
class |
Iam.Projects.ServiceAccounts.TestIamPermissions |
class |
Iam.Projects.ServiceAccounts.Undelete |
class |
Iam.Projects.ServiceAccounts.Update |
| Constructor and Description |
|---|
ServiceAccounts() |
| Modifier and Type | Method and Description |
|---|---|
Iam.Projects.ServiceAccounts.Create |
create(String name,
CreateServiceAccountRequest content)
Creates a ServiceAccount and returns it.
|
Iam.Projects.ServiceAccounts.Delete |
delete(String name)
Deletes a ServiceAccount.
|
Iam.Projects.ServiceAccounts.Disable |
disable(String name,
DisableServiceAccountRequest content)
DisableServiceAccount is currently in the alpha launch stage.
|
Iam.Projects.ServiceAccounts.Enable |
enable(String name,
EnableServiceAccountRequest content)
EnableServiceAccount is currently in the alpha launch stage.
|
Iam.Projects.ServiceAccounts.Get |
get(String name)
Gets a ServiceAccount.
|
Iam.Projects.ServiceAccounts.GetIamPolicy |
getIamPolicy(String resource)
Returns the Cloud 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(String name)
Lists ServiceAccounts for a project.
|
Iam.Projects.ServiceAccounts.Patch |
patch(String name,
PatchServiceAccountRequest content)
Patches a ServiceAccount.
|
Iam.Projects.ServiceAccounts.SetIamPolicy |
setIamPolicy(String resource,
SetIamPolicyRequest content)
Sets the Cloud IAM access control policy for a ServiceAccount.
|
Iam.Projects.ServiceAccounts.SignBlob |
signBlob(String name,
SignBlobRequest content)
**Note**: This method is in the process of being deprecated.
|
Iam.Projects.ServiceAccounts.SignJwt |
signJwt(String name,
SignJwtRequest content)
**Note**: This method is in the process of being deprecated.
|
Iam.Projects.ServiceAccounts.TestIamPermissions |
testIamPermissions(String resource,
TestIamPermissionsRequest content)
Tests the specified permissions against the IAM access control policy for a ServiceAccount.
|
Iam.Projects.ServiceAccounts.Undelete |
undelete(String name,
UndeleteServiceAccountRequest content)
Restores a deleted ServiceAccount.
|
Iam.Projects.ServiceAccounts.Update |
update(String name,
ServiceAccount content)
Note: This method is in the process of being deprecated.
|
public Iam.Projects.ServiceAccounts.Create create(String name, CreateServiceAccountRequest content) throws 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 CreateServiceAccountRequestIOExceptionpublic Iam.Projects.ServiceAccounts.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The resource name of the service account in the following format:
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
Using `-` as a wildcard for the
`PROJECT_ID` will infer the project from
the account. The `ACCOUNT` value can be the
`email` address or the
`unique_id` of the service account.IOExceptionpublic Iam.Projects.ServiceAccounts.Disable disable(String name, DisableServiceAccountRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The resource name of the service account in the following format:
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
Using `-` as a wildcard for the
`PROJECT_ID` 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 DisableServiceAccountRequestIOExceptionpublic Iam.Projects.ServiceAccounts.Enable enable(String name, EnableServiceAccountRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The resource name of the service account in the following format:
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
Using `-` as a wildcard for the
`PROJECT_ID` 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 EnableServiceAccountRequestIOExceptionpublic Iam.Projects.ServiceAccounts.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The resource name of the service account in the following format:
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
Using `-` as a wildcard for the
`PROJECT_ID` will infer the project from
the account. The `ACCOUNT` value can be the
`email` address or the
`unique_id` of the service account.IOExceptionpublic Iam.Projects.ServiceAccounts.GetIamPolicy getIamPolicy(String resource) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which the policy is being requested.
See the operation documentation for
the appropriate value for this field.IOExceptionpublic Iam.Projects.ServiceAccounts.List list(String name) throws 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`.IOExceptionpublic Iam.Projects.ServiceAccounts.Patch patch(String name, PatchServiceAccountRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The resource name of the service account in the following format:
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
Requests using `-` as a wildcard for
the `PROJECT_ID` 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_ID}/serviceAccounts/{ACCOUNT}`.content - the PatchServiceAccountRequestIOExceptionpublic Iam.Projects.ServiceAccounts.SetIamPolicy setIamPolicy(String resource, SetIamPolicyRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which the policy is being specified.
See the operation documentation for
the appropriate value for this field.content - the SetIamPolicyRequestIOExceptionpublic Iam.Projects.ServiceAccounts.SignBlob signBlob(String name, SignBlobRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The resource name of the service account in the following format:
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
Using `-` as a wildcard for the
`PROJECT_ID` 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 SignBlobRequestIOExceptionpublic Iam.Projects.ServiceAccounts.SignJwt signJwt(String name, SignJwtRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The resource name of the service account in the following format:
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
Using `-` as a wildcard for the
`PROJECT_ID` 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 SignJwtRequestIOExceptionpublic Iam.Projects.ServiceAccounts.TestIamPermissions testIamPermissions(String resource, TestIamPermissionsRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which the policy detail is being requested.
See the operation
documentation for the appropriate value for this field.content - the TestIamPermissionsRequestIOExceptionpublic Iam.Projects.ServiceAccounts.Undelete undelete(String name, UndeleteServiceAccountRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The resource name of the service account in the following format:
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_UNIQUE_ID}`.
Using `-` as a wildcard for
the `PROJECT_ID` will infer the project from
the account.content - the UndeleteServiceAccountRequestIOExceptionpublic Iam.Projects.ServiceAccounts.Update update(String name, ServiceAccount content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The resource name of the service account in the following format:
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
Requests using `-` as a wildcard for
the `PROJECT_ID` 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_ID}/serviceAccounts/{ACCOUNT}`.content - the ServiceAccountIOExceptionpublic Iam.Projects.ServiceAccounts.Keys keys()
The typical use is:
Iam iam = new Iam(...);Iam.Keys.List request = iam.keys().list(parameters ...)
Copyright © 2011–2019 Google. All rights reserved.