All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.accesscontextmanager.v1.AccessContextManager.AccessPolicies.html Maven / Gradle / Ivy

There is a newer version: v1-rev20241113-2.0.0
Show newest version






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.
    • Constructor Detail

      • AccessPolicies

        public AccessPolicies()
    • 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