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

target.apidocs.com.google.api.services.compute.Compute.ResourcePolicies.html Maven / Gradle / Ivy

The newest version!






Compute.ResourcePolicies (Compute Engine API v1-rev20250320-2.0.0)












com.google.api.services.compute

Class Compute.ResourcePolicies

  • Enclosing class:
    Compute


    public class Compute.ResourcePolicies
    extends Object
    The "resourcePolicies" collection of methods.
    • Constructor Detail

      • ResourcePolicies

        public ResourcePolicies()
    • Method Detail

      • aggregatedList

        public Compute.ResourcePolicies.AggregatedList aggregatedList(String project)
                                                               throws IOException
        Retrieves an aggregated list of resource policies. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. Create a request for the method "resourcePolicies.aggregatedList". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        Returns:
        the request
        Throws:
        IOException
      • delete

        public Compute.ResourcePolicies.Delete delete(String project,
                                                      String region,
                                                      String resourcePolicy)
                                               throws IOException
        Deletes the specified resource policy. Create a request for the method "resourcePolicies.delete". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - Name of the region for this request.
        resourcePolicy - Name of the resource policy to delete.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Compute.ResourcePolicies.Get get(String project,
                                                String region,
                                                String resourcePolicy)
                                         throws IOException
        Retrieves all information of the specified resource policy. Create a request for the method "resourcePolicies.get". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - Name of the region for this request.
        resourcePolicy - Name of the resource policy to retrieve.
        Returns:
        the request
        Throws:
        IOException
      • getIamPolicy

        public Compute.ResourcePolicies.GetIamPolicy getIamPolicy(String project,
                                                                  String region,
                                                                  String resource)
                                                           throws IOException
        Gets the access control policy for a resource. May be empty if no such policy or resource exists. Create a request for the method "resourcePolicies.getIamPolicy". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - The name of the region for this request.
        resource - Name or id of the resource for this request.
        Returns:
        the request
        Throws:
        IOException
      • insert

        public Compute.ResourcePolicies.Insert insert(String project,
                                                      String region,
                                                      ResourcePolicy content)
                                               throws IOException
        Creates a new resource policy. Create a request for the method "resourcePolicies.insert". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - Name of the region for this request.
        content - the ResourcePolicy
        Returns:
        the request
        Throws:
        IOException
      • list

        public Compute.ResourcePolicies.List list(String project,
                                                  String region)
                                           throws IOException
        A list all the resource policies that have been configured for the specified project in specified region. Create a request for the method "resourcePolicies.list". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - Name of the region for this request.
        Returns:
        the request
        Throws:
        IOException
      • patch

        public Compute.ResourcePolicies.Patch patch(String project,
                                                    String region,
                                                    String resourcePolicy,
                                                    ResourcePolicy content)
                                             throws IOException
        Modify the specified resource policy. Create a request for the method "resourcePolicies.patch". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - Name of the region for this request.
        resourcePolicy - Id of the resource policy to patch.
        content - the ResourcePolicy
        Returns:
        the request
        Throws:
        IOException
      • setIamPolicy

        public Compute.ResourcePolicies.SetIamPolicy setIamPolicy(String project,
                                                                  String region,
                                                                  String resource,
                                                                  RegionSetPolicyRequest content)
                                                           throws IOException
        Sets the access control policy on the specified resource. Replaces any existing policy. Create a request for the method "resourcePolicies.setIamPolicy". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - The name of the region for this request.
        resource - Name or id of the resource for this request.
        content - the RegionSetPolicyRequest
        Returns:
        the request
        Throws:
        IOException
      • testIamPermissions

        public Compute.ResourcePolicies.TestIamPermissions testIamPermissions(String project,
                                                                              String region,
                                                                              String resource,
                                                                              TestPermissionsRequest content)
                                                                       throws IOException
        Returns permissions that a caller has on the specified resource. Create a request for the method "resourcePolicies.testIamPermissions". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - The name of the region for this request.
        resource - Name or id of the resource for this request.
        content - the TestPermissionsRequest
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2025 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy