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() |
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. 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 access 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.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. 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 access 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 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. 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 access 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 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. 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 access 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.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 [Resource
names](https://cloud.google.com/apis/design/resource_names) 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 access 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 [Resource
names](https://cloud.google.com/apis/design/resource_names) 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. 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 access 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 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. 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 access 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 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 [Resource
names](https://cloud.google.com/apis/design/resource_names) 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. 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 access 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 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 access 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–2023 Google. All rights reserved.