target.apidocs.com.google.api.services.accesscontextmanager.v1.AccessContextManager.AccessPolicies.AccessLevels.html Maven / Gradle / Ivy
AccessContextManager.AccessPolicies.AccessLevels (Access Context Manager API v1-rev20240923-2.0.0)
com.google.api.services.accesscontextmanager.v1
Class AccessContextManager.AccessPolicies.AccessLevels
- java.lang.Object
-
- com.google.api.services.accesscontextmanager.v1.AccessContextManager.AccessPolicies.AccessLevels
-
- Enclosing class:
- AccessContextManager.AccessPolicies
public class AccessContextManager.AccessPolicies.AccessLevels
extends Object
The "accessLevels" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
AccessContextManager.AccessPolicies.AccessLevels.Create
class
AccessContextManager.AccessPolicies.AccessLevels.Delete
class
AccessContextManager.AccessPolicies.AccessLevels.Get
class
AccessContextManager.AccessPolicies.AccessLevels.List
class
AccessContextManager.AccessPolicies.AccessLevels.Patch
class
AccessContextManager.AccessPolicies.AccessLevels.ReplaceAll
class
AccessContextManager.AccessPolicies.AccessLevels.TestIamPermissions
-
Constructor Summary
Constructors
Constructor and Description
AccessLevels()
-
Method Summary
-
-
Method Detail
-
create
public AccessContextManager.AccessPolicies.AccessLevels.Create create(String parent,
AccessLevel content)
throws IOException
Creates an access level. The long-running operation from this RPC has a successful status after
the access level propagates to long-lasting storage. If access levels contain errors, an error
response is returned for the first error encountered.
Create a request for the method "accessLevels.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:
parent
- Required. Resource name for the access policy which owns this Access Level. Format:
`accessPolicies/{policy_id}`
content
- the AccessLevel
- Returns:
- the request
- Throws:
IOException
-
delete
public AccessContextManager.AccessPolicies.AccessLevels.Delete delete(String name)
throws IOException
Deletes an access level based on the resource name. The long-running operation from this RPC has
a successful status after the access level has been removed from long-lasting storage.
Create a request for the method "accessLevels.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 Level. Format:
`accessPolicies/{policy_id}/accessLevels/{access_level_id}`
- Returns:
- the request
- Throws:
IOException
-
get
public AccessContextManager.AccessPolicies.AccessLevels.Get get(String name)
throws IOException
Gets an access level based on the resource name.
Create a request for the method "accessLevels.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 Level. Format:
`accessPolicies/{policy_id}/accessLevels/{access_level_id}`
- Returns:
- the request
- Throws:
IOException
-
list
public AccessContextManager.AccessPolicies.AccessLevels.List list(String parent)
throws IOException
Lists all access levels for an access policy.
Create a request for the method "accessLevels.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.
- Parameters:
parent
- Required. Resource name for the access policy to list Access Levels from. Format:
`accessPolicies/{policy_id}`
- Returns:
- the request
- Throws:
IOException
-
patch
public AccessContextManager.AccessPolicies.AccessLevels.Patch patch(String name,
AccessLevel content)
throws IOException
Updates an access level. The long-running operation from this RPC has a successful status after
the changes to the access level propagate to long-lasting storage. If access levels contain
errors, an error response is returned for the first error encountered.
Create a request for the method "accessLevels.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
- Identifier. Resource name for the `AccessLevel`. Format:
`accessPolicies/{access_policy}/accessLevels/{access_level}`. The `access_level` component
must begin with a letter, followed by alphanumeric characters or `_`. Its maximum length
is 50 characters. After you create an `AccessLevel`, you cannot change its `name`.
content
- the AccessLevel
- Returns:
- the request
- Throws:
IOException
-
replaceAll
public AccessContextManager.AccessPolicies.AccessLevels.ReplaceAll replaceAll(String parent,
ReplaceAccessLevelsRequest content)
throws IOException
Replaces all existing access levels in an access policy with the access levels provided. This is
done atomically. The long-running operation from this RPC has a successful status after all
replacements propagate to long-lasting storage. If the replacement contains errors, an error
response is returned for the first error encountered. Upon error, the replacement is cancelled,
and existing access levels are not affected. The Operation.response field contains
ReplaceAccessLevelsResponse. Removing access levels contained in existing service perimeters
result in an error.
Create a request for the method "accessLevels.replaceAll".
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:
parent
- Required. Resource name for the access policy which owns these Access Levels. Format:
`accessPolicies/{policy_id}`
content
- the ReplaceAccessLevelsRequest
- Returns:
- the request
- Throws:
IOException
-
testIamPermissions
public AccessContextManager.AccessPolicies.AccessLevels.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 "accessLevels.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
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy