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







Compute.ResourcePolicies (Compute Engine API beta-rev20220312-1.32.1)












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

      • 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
      • 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

Copyright © 2011–2022 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy