target.apidocs.com.google.api.services.accesscontextmanager.v1.AccessContextManager.AccessPolicies.html Maven / Gradle / Ivy
AccessContextManager.AccessPolicies (Access Context Manager API v1-rev20240923-2.0.0)
com.google.api.services.accesscontextmanager.v1
Class AccessContextManager.AccessPolicies
- java.lang.Object
-
- com.google.api.services.accesscontextmanager.v1.AccessContextManager.AccessPolicies
-
- Enclosing class:
- AccessContextManager
public class AccessContextManager.AccessPolicies
extends Object
The "accessPolicies" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
AccessContextManager.AccessPolicies.AccessLevels
The "accessLevels" collection of methods.
class
AccessContextManager.AccessPolicies.AuthorizedOrgsDescs
The "authorizedOrgsDescs" collection of methods.
class
AccessContextManager.AccessPolicies.Create
class
AccessContextManager.AccessPolicies.Delete
class
AccessContextManager.AccessPolicies.Get
class
AccessContextManager.AccessPolicies.GetIamPolicy
class
AccessContextManager.AccessPolicies.List
class
AccessContextManager.AccessPolicies.Patch
class
AccessContextManager.AccessPolicies.ServicePerimeters
The "servicePerimeters" collection of methods.
class
AccessContextManager.AccessPolicies.SetIamPolicy
class
AccessContextManager.AccessPolicies.TestIamPermissions
-
Constructor Summary
Constructors
Constructor and Description
AccessPolicies()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
AccessContextManager.AccessPolicies.AccessLevels
accessLevels()
An accessor for creating requests from the AccessLevels collection.
AccessContextManager.AccessPolicies.AuthorizedOrgsDescs
authorizedOrgsDescs()
An accessor for creating requests from the AuthorizedOrgsDescs collection.
AccessContextManager.AccessPolicies.Create
create(AccessPolicy content)
Creates an access policy.
AccessContextManager.AccessPolicies.Delete
delete(String name)
Deletes an access policy based on the resource name.
AccessContextManager.AccessPolicies.Get
get(String name)
Returns an access policy based on the name.
AccessContextManager.AccessPolicies.GetIamPolicy
getIamPolicy(String resource,
GetIamPolicyRequest content)
Gets the IAM policy for the specified Access Context Manager access policy.
AccessContextManager.AccessPolicies.List
list()
Lists all access policies in an organization.
AccessContextManager.AccessPolicies.Patch
patch(String name,
AccessPolicy content)
Updates an access policy.
AccessContextManager.AccessPolicies.ServicePerimeters
servicePerimeters()
An accessor for creating requests from the ServicePerimeters collection.
AccessContextManager.AccessPolicies.SetIamPolicy
setIamPolicy(String resource,
SetIamPolicyRequest content)
Sets the IAM policy for the specified Access Context Manager access policy.
AccessContextManager.AccessPolicies.TestIamPermissions
testIamPermissions(String resource,
TestIamPermissionsRequest content)
Returns the IAM permissions that the caller has on the specified Access Context Manager resource.
-
-
Method Detail
-
create
public AccessContextManager.AccessPolicies.Create create(AccessPolicy content)
throws IOException
Creates an access policy. This method fails if the organization already has an access policy. The
long-running operation has a successful status after the access policy propagates to long-lasting
storage. Syntactic and basic semantic errors are returned in `metadata` as a BadRequest proto.
Create a request for the method "accessPolicies.create".
This request holds the parameters needed by the accesscontextmanager server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
content
- the AccessPolicy
- Returns:
- the request
- Throws:
IOException
-
delete
public AccessContextManager.AccessPolicies.Delete delete(String name)
throws IOException
Deletes an access policy based on the resource name. The long-running operation has a successful
status after the access policy is removed from long-lasting storage.
Create a request for the method "accessPolicies.delete".
This request holds the parameters needed by the accesscontextmanager server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. Resource name for the access policy to delete. Format `accessPolicies/{policy_id}`
- Returns:
- the request
- Throws:
IOException
-
get
public AccessContextManager.AccessPolicies.Get get(String name)
throws IOException
Returns an access policy based on the name.
Create a request for the method "accessPolicies.get".
This request holds the parameters needed by the accesscontextmanager server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. Resource name for the access policy to get. Format `accessPolicies/{policy_id}`
- Returns:
- the request
- Throws:
IOException
-
getIamPolicy
public AccessContextManager.AccessPolicies.GetIamPolicy getIamPolicy(String resource,
GetIamPolicyRequest content)
throws IOException
Gets the IAM policy for the specified Access Context Manager access policy.
Create a request for the method "accessPolicies.getIamPolicy".
This request holds the parameters needed by the accesscontextmanager server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.
- Parameters:
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.
content
- the GetIamPolicyRequest
- Returns:
- the request
- Throws:
IOException
-
list
public AccessContextManager.AccessPolicies.List list()
throws IOException
Lists all access policies in an organization.
Create a request for the method "accessPolicies.list".
This request holds the parameters needed by the accesscontextmanager server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Returns:
- the request
- Throws:
IOException
-
patch
public AccessContextManager.AccessPolicies.Patch patch(String name,
AccessPolicy content)
throws IOException
Updates an access policy. The long-running operation from this RPC has a successful status after
the changes to the access policy propagate to long-lasting storage.
Create a request for the method "accessPolicies.patch".
This request holds the parameters needed by the accesscontextmanager server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Output only. Identifier. Resource name of the `AccessPolicy`. Format:
`accessPolicies/{access_policy}`
content
- the AccessPolicy
- Returns:
- the request
- Throws:
IOException
-
setIamPolicy
public AccessContextManager.AccessPolicies.SetIamPolicy setIamPolicy(String resource,
SetIamPolicyRequest content)
throws IOException
Sets the IAM policy for the specified Access Context Manager access policy. This method replaces
the existing IAM policy on the access policy. The IAM policy controls the set of users who can
perform specific operations on the Access Context Manager access policy.
Create a request for the method "accessPolicies.setIamPolicy".
This request holds the parameters needed by the accesscontextmanager server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.
- Parameters:
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 SetIamPolicyRequest
- Returns:
- the request
- Throws:
IOException
-
testIamPermissions
public AccessContextManager.AccessPolicies.TestIamPermissions testIamPermissions(String resource,
TestIamPermissionsRequest content)
throws IOException
Returns the IAM permissions that the caller has on the specified Access Context Manager resource.
The resource can be an AccessPolicy, AccessLevel, or ServicePerimeter. This method does not
support other resources.
Create a request for the method "accessPolicies.testIamPermissions".
This request holds the parameters needed by the accesscontextmanager server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.
- Parameters:
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 TestIamPermissionsRequest
- Returns:
- the request
- Throws:
IOException
-
accessLevels
public AccessContextManager.AccessPolicies.AccessLevels accessLevels()
An accessor for creating requests from the AccessLevels collection.
The typical use is:
AccessContextManager accesscontextmanager = new AccessContextManager(...);
AccessContextManager.AccessLevels.List request = accesscontextmanager.accessLevels().list(parameters ...)
- Returns:
- the resource collection
-
authorizedOrgsDescs
public AccessContextManager.AccessPolicies.AuthorizedOrgsDescs authorizedOrgsDescs()
An accessor for creating requests from the AuthorizedOrgsDescs collection.
The typical use is:
AccessContextManager accesscontextmanager = new AccessContextManager(...);
AccessContextManager.AuthorizedOrgsDescs.List request = accesscontextmanager.authorizedOrgsDescs().list(parameters ...)
- Returns:
- the resource collection
-
servicePerimeters
public AccessContextManager.AccessPolicies.ServicePerimeters servicePerimeters()
An accessor for creating requests from the ServicePerimeters collection.
The typical use is:
AccessContextManager accesscontextmanager = new AccessContextManager(...);
AccessContextManager.ServicePerimeters.List request = accesscontextmanager.servicePerimeters().list(parameters ...)
- Returns:
- the resource collection
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy