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.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(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.Disable |
disable(java.lang.String name,
DisableServiceAccountRequest content)
DisableServiceAccount is currently in the alpha launch stage.
|
Iam.Projects.ServiceAccounts.Enable |
enable(java.lang.String name,
EnableServiceAccountRequest content)
EnableServiceAccount is currently in the alpha launch stage.
|
Iam.Projects.ServiceAccounts.Get |
get(java.lang.String name)
Gets a ServiceAccount.
|
Iam.Projects.ServiceAccounts.GetIamPolicy |
getIamPolicy(java.lang.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(java.lang.String name)
Lists ServiceAccounts for a project.
|
Iam.Projects.ServiceAccounts.Patch |
patch(java.lang.String name,
PatchServiceAccountRequest content)
Patches a ServiceAccount.
|
Iam.Projects.ServiceAccounts.SetIamPolicy |
setIamPolicy(java.lang.String resource,
SetIamPolicyRequest content)
Sets the Cloud IAM access control policy for a ServiceAccount.
|
Iam.Projects.ServiceAccounts.SignBlob |
signBlob(java.lang.String name,
SignBlobRequest content)
**Note**: This method is in the process of being deprecated.
|
Iam.Projects.ServiceAccounts.SignJwt |
signJwt(java.lang.String name,
SignJwtRequest content)
**Note**: This method is in the process of being deprecated.
|
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.Undelete |
undelete(java.lang.String name,
UndeleteServiceAccountRequest content)
Restores a deleted ServiceAccount.
|
Iam.Projects.ServiceAccounts.Update |
update(java.lang.String name,
ServiceAccount content)
Note: This method is in the process of being deprecated.
|
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 CreateServiceAccountRequest
java.io.IOException
public Iam.Projects.ServiceAccounts.Delete delete(java.lang.String name) throws java.io.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.java.io.IOException
public Iam.Projects.ServiceAccounts.Disable disable(java.lang.String name, DisableServiceAccountRequest 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_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 DisableServiceAccountRequest
java.io.IOException
public Iam.Projects.ServiceAccounts.Enable enable(java.lang.String name, EnableServiceAccountRequest 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_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 EnableServiceAccountRequest
java.io.IOException
public Iam.Projects.ServiceAccounts.Get get(java.lang.String name) throws java.io.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.java.io.IOException
public 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.
See the operation documentation for
the appropriate value for this field.java.io.IOException
public 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.IOException
public Iam.Projects.ServiceAccounts.Patch patch(java.lang.String name, PatchServiceAccountRequest 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_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 PatchServiceAccountRequest
java.io.IOException
public 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.
See the operation documentation for
the appropriate value for this field.content
- the SetIamPolicyRequest
java.io.IOException
public Iam.Projects.ServiceAccounts.SignBlob signBlob(java.lang.String name, SignBlobRequest content) throws java.io.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.content
- the SignBlobRequest
java.io.IOException
public Iam.Projects.ServiceAccounts.SignJwt signJwt(java.lang.String name, SignJwtRequest content) throws java.io.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.content
- the SignJwtRequest
java.io.IOException
public 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.
See the operation
documentation for the appropriate value for this field.content
- the TestIamPermissionsRequest
java.io.IOException
public Iam.Projects.ServiceAccounts.Undelete undelete(java.lang.String name, UndeleteServiceAccountRequest 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_ID}/serviceAccounts/{ACCOUNT_UNIQUE_ID}`.
Using `-` as a wildcard for
the `PROJECT_ID` will infer the project from
the account.content
- the UndeleteServiceAccountRequest
java.io.IOException
public 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_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 ServiceAccount
java.io.IOException
public Iam.Projects.ServiceAccounts.Keys keys()
The typical use is:
Iam iam = new Iam(...);
Iam.Keys.List request = iam.keys().list(parameters ...)