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.
|
Iam.Projects.ServiceAccounts.Delete |
delete(String name)
Deletes a ServiceAccount.
|
Iam.Projects.ServiceAccounts.Disable |
disable(String name,
DisableServiceAccountRequest content)
Disables a ServiceAccount immediately.
|
Iam.Projects.ServiceAccounts.Enable |
enable(String name,
EnableServiceAccountRequest content)
Enables a ServiceAccount that was disabled by DisableServiceAccount.
|
Iam.Projects.ServiceAccounts.Get |
get(String name)
Gets a ServiceAccount.
|
Iam.Projects.ServiceAccounts.GetIamPolicy |
getIamPolicy(String resource)
Gets the IAM policy that is attached to a ServiceAccount.
|
Iam.Projects.ServiceAccounts.Keys |
keys()
An accessor for creating requests from the Keys collection.
|
Iam.Projects.ServiceAccounts.List |
list(String name)
Lists every ServiceAccount that belongs to a specific project.
|
Iam.Projects.ServiceAccounts.Patch |
patch(String name,
PatchServiceAccountRequest content)
Patches a ServiceAccount.
|
Iam.Projects.ServiceAccounts.SetIamPolicy |
setIamPolicy(String resource,
SetIamPolicyRequest content)
Sets the IAM policy that is attached to a ServiceAccount.
|
Iam.Projects.ServiceAccounts.SignBlob |
signBlob(String name,
SignBlobRequest content)
**Note:** This method is deprecated and will stop working on July 1, 2021.
|
Iam.Projects.ServiceAccounts.SignJwt |
signJwt(String name,
SignJwtRequest content)
**Note:** This method is deprecated and will stop working on July 1, 2021.
|
Iam.Projects.ServiceAccounts.TestIamPermissions |
testIamPermissions(String resource,
TestIamPermissionsRequest content)
Tests whether the caller has the specified permissions on 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:** We are in the process of deprecating this method.
|
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 - Required. 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 - Required. 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. Use one of the following formats: *
`projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}` *
`projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` As an alternative, you can use the `-`
wildcard character instead of the project ID: *
`projects/-/serviceAccounts/{EMAIL_ADDRESS}` * `projects/-/serviceAccounts/{UNIQUE_ID}`
When possible, avoid using the `-` wildcard character, because it can cause response
messages to contain misleading error codes. For example, if you try to get the service
account `projects/-/serviceAccounts/fake@example.com`, which does not exist, the response
contains an HTTP `403 Forbidden` error instead of a `404 Not Found` error.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 - Required. Deprecated. [Migrate to Service Account Credentials
API](https://cloud.google.com/iam/help/credentials/migrate-api). 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 - Required. Deprecated. [Migrate to Service Account Credentials
API](https://cloud.google.com/iam/help/credentials/migrate-api). 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. Use one of the following formats: *
`projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}` *
`projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` As an alternative, you can use the `-`
wildcard character instead of the project ID: *
`projects/-/serviceAccounts/{EMAIL_ADDRESS}` * `projects/-/serviceAccounts/{UNIQUE_ID}`
When possible, avoid using the `-` wildcard character, because it can cause response
messages to contain misleading error codes. For example, if you try to get the service
account `projects/-/serviceAccounts/fake@example.com`, which does not exist, the response
contains an HTTP `403 Forbidden` error instead of a `404 Not Found` error.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–2020 Google. All rights reserved.