public class Iam.Projects.ServiceAccounts.Keys extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Iam.Projects.ServiceAccounts.Keys.Create |
class |
Iam.Projects.ServiceAccounts.Keys.Delete |
class |
Iam.Projects.ServiceAccounts.Keys.Disable |
class |
Iam.Projects.ServiceAccounts.Keys.Enable |
class |
Iam.Projects.ServiceAccounts.Keys.Get |
class |
Iam.Projects.ServiceAccounts.Keys.List |
class |
Iam.Projects.ServiceAccounts.Keys.Upload |
| Constructor and Description |
|---|
Keys() |
| Modifier and Type | Method and Description |
|---|---|
Iam.Projects.ServiceAccounts.Keys.Create |
create(String name,
CreateServiceAccountKeyRequest content)
Creates a ServiceAccountKey.
|
Iam.Projects.ServiceAccounts.Keys.Delete |
delete(String name)
Deletes a ServiceAccountKey.
|
Iam.Projects.ServiceAccounts.Keys.Disable |
disable(String name,
DisableServiceAccountKeyRequest content)
Disable a ServiceAccountKey.
|
Iam.Projects.ServiceAccounts.Keys.Enable |
enable(String name,
EnableServiceAccountKeyRequest content)
Enable a ServiceAccountKey.
|
Iam.Projects.ServiceAccounts.Keys.Get |
get(String name)
Gets a ServiceAccountKey.
|
Iam.Projects.ServiceAccounts.Keys.List |
list(String name)
Lists every ServiceAccountKey for a service account.
|
Iam.Projects.ServiceAccounts.Keys.Upload |
upload(String name,
UploadServiceAccountKeyRequest content)
Uploads the public key portion of a key pair that you manage, and associates the public key with
a ServiceAccount.
|
public Iam.Projects.ServiceAccounts.Keys.Create create(String name, CreateServiceAccountKeyRequest content) 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.content - the CreateServiceAccountKeyRequestIOExceptionpublic Iam.Projects.ServiceAccounts.Keys.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the service account key. Use one of the following formats: *
`projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}/keys/{KEY_ID}` *
`projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}/keys/{KEY_ID}` As an alternative, you
can use the `-` wildcard character instead of the project ID: *
`projects/-/serviceAccounts/{EMAIL_ADDRESS}/keys/{KEY_ID}` *
`projects/-/serviceAccounts/{UNIQUE_ID}/keys/{KEY_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 key
`projects/-/serviceAccounts/fake@example.com/keys/fake-key`, which does not exist, the
response contains an HTTP `403 Forbidden` error instead of a `404 Not Found` error.IOExceptionpublic Iam.Projects.ServiceAccounts.Keys.Disable disable(String name, DisableServiceAccountKeyRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the service account key. Use one of the following formats: *
`projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}/keys/{KEY_ID}` *
`projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}/keys/{KEY_ID}` As an alternative, you
can use the `-` wildcard character instead of the project ID: *
`projects/-/serviceAccounts/{EMAIL_ADDRESS}/keys/{KEY_ID}` *
`projects/-/serviceAccounts/{UNIQUE_ID}/keys/{KEY_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 key
`projects/-/serviceAccounts/fake@example.com/keys/fake-key`, which does not exist, the
response contains an HTTP `403 Forbidden` error instead of a `404 Not Found` error.content - the DisableServiceAccountKeyRequestIOExceptionpublic Iam.Projects.ServiceAccounts.Keys.Enable enable(String name, EnableServiceAccountKeyRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the service account key. Use one of the following formats: *
`projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}/keys/{KEY_ID}` *
`projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}/keys/{KEY_ID}` As an alternative, you
can use the `-` wildcard character instead of the project ID: *
`projects/-/serviceAccounts/{EMAIL_ADDRESS}/keys/{KEY_ID}` *
`projects/-/serviceAccounts/{UNIQUE_ID}/keys/{KEY_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 key
`projects/-/serviceAccounts/fake@example.com/keys/fake-key`, which does not exist, the
response contains an HTTP `403 Forbidden` error instead of a `404 Not Found` error.content - the EnableServiceAccountKeyRequestIOExceptionpublic Iam.Projects.ServiceAccounts.Keys.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the service account key. Use one of the following formats: *
`projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}/keys/{KEY_ID}` *
`projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}/keys/{KEY_ID}` As an alternative, you
can use the `-` wildcard character instead of the project ID: *
`projects/-/serviceAccounts/{EMAIL_ADDRESS}/keys/{KEY_ID}` *
`projects/-/serviceAccounts/{UNIQUE_ID}/keys/{KEY_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 key
`projects/-/serviceAccounts/fake@example.com/keys/fake-key`, which does not exist, the
response contains an HTTP `403 Forbidden` error instead of a `404 Not Found` error.IOExceptionpublic Iam.Projects.ServiceAccounts.Keys.List list(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.Keys.Upload upload(String name, UploadServiceAccountKeyRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The resource name of the service account key. 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 UploadServiceAccountKeyRequestIOExceptionCopyright © 2011–2023 Google. All rights reserved.