| Modifier and Type | Class and Description |
|---|---|
class |
Iam.Policies.CreatePolicy |
class |
Iam.Policies.Delete |
class |
Iam.Policies.Get |
class |
Iam.Policies.ListPolicies |
class |
Iam.Policies.Operations
The "operations" collection of methods.
|
class |
Iam.Policies.Update |
| Constructor and Description |
|---|
Policies() |
| Modifier and Type | Method and Description |
|---|---|
Iam.Policies.CreatePolicy |
createPolicy(String parent,
GoogleIamV2betaPolicy content)
Creates a policy.
|
Iam.Policies.Delete |
delete(String name)
Deletes a policy.
|
Iam.Policies.Get |
get(String name)
Gets a policy.
|
Iam.Policies.ListPolicies |
listPolicies(String parent)
Retrieves the policies of the specified kind that are attached to a resource.
|
Iam.Policies.Operations |
operations()
An accessor for creating requests from the Operations collection.
|
Iam.Policies.Update |
update(String name,
GoogleIamV2betaPolicy content)
Updates the specified policy.
|
public Iam.Policies.CreatePolicy createPolicy(String parent, GoogleIamV2betaPolicy content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The resource that the policy is attached to, along with the kind of policy to create.
Format: `policies/{attachment_point}/denypolicies` The attachment point is identified by
its URL-encoded full resource name, which means that the forward-slash character, `/`,
must be written as `%2F`. For example,
`policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. For
organizations and folders, use the numeric ID in the full resource name. For projects, you
can use the alphanumeric or the numeric ID.content - the GoogleIamV2betaPolicyIOExceptionpublic Iam.Policies.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the policy to delete. Format:
`policies/{attachment_point}/denypolicies/{policy_id}` Use the URL-encoded full resource
name, which means that the forward-slash character, `/`, must be written as `%2F`. For
example, `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-
project/denypolicies/my-policy`. For organizations and folders, use the numeric ID in the
full resource name. For projects, you can use the alphanumeric or the numeric ID.IOExceptionpublic Iam.Policies.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the policy to retrieve. Format:
`policies/{attachment_point}/denypolicies/{policy_id}` Use the URL-encoded full resource
name, which means that the forward-slash character, `/`, must be written as `%2F`. For
example, `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-
project/denypolicies/my-policy`. For organizations and folders, use the numeric ID in the
full resource name. For projects, you can use the alphanumeric or the numeric ID.IOExceptionpublic Iam.Policies.ListPolicies listPolicies(String parent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The resource that the policy is attached to, along with the kind of policy to list.
Format: `policies/{attachment_point}/denypolicies` The attachment point is identified by
its URL-encoded full resource name, which means that the forward-slash character, `/`,
must be written as `%2F`. For example,
`policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. For
organizations and folders, use the numeric ID in the full resource name. For projects, you
can use the alphanumeric or the numeric ID.IOExceptionpublic Iam.Policies.Update update(String name, GoogleIamV2betaPolicy content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Immutable. The resource name of the `Policy`, which must be unique. Format:
`policies/{attachment_point}/denypolicies/{policy_id}` The attachment point is identified
by its URL-encoded full resource name, which means that the forward-slash character, `/`,
must be written as `%2F`. For example,
`policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-
deny-policy`. For organizations and folders, use the numeric ID in the full resource name.
For projects, requests can use the alphanumeric or the numeric ID. Responses always
contain the numeric ID.content - the GoogleIamV2betaPolicyIOExceptionpublic Iam.Policies.Operations operations()
The typical use is:
Iam iam = new Iam(...);Iam.Operations.List request = iam.operations().list(parameters ...)
Copyright © 2011–2022 Google. All rights reserved.