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

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







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












com.google.api.services.compute

Class Compute.Regions

  • Enclosing class:
    Compute


    public class Compute.Regions
    extends Object
    The "regions" collection of methods.
    • Constructor Detail

      • Regions

        public Regions()
    • Method Detail

      • get

        public Compute.Regions.Get get(String project,
                                       String region)
                                throws IOException
        Returns the specified Region resource. Gets a list of available regions by making a list() request. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. Create a request for the method "regions.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 resource to return.
        Returns:
        the request
        Throws:
        IOException
      • list

        public Compute.Regions.List list(String project)
                                  throws IOException
        Retrieves the list of region resources available to the specified project. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `items.quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. Create a request for the method "regions.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.
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2022 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy