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

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







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












com.google.api.services.compute

Class Compute.RegionCommitments

  • Enclosing class:
    Compute


    public class Compute.RegionCommitments
    extends Object
    The "regionCommitments" collection of methods.
    • Constructor Detail

      • RegionCommitments

        public RegionCommitments()
    • Method Detail

      • get

        public Compute.RegionCommitments.Get get(String project,
                                                 String region,
                                                 String commitment)
                                          throws IOException
        Returns the specified commitment resource. Gets a list of available commitments by making a list() request. Create a request for the method "regionCommitments.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.
        commitment - Name of the commitment to return.
        Returns:
        the request
        Throws:
        IOException
      • insert

        public Compute.RegionCommitments.Insert insert(String project,
                                                       String region,
                                                       Commitment content)
                                                throws IOException
        Creates a commitment in the specified project using the data included in the request. Create a request for the method "regionCommitments.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 Commitment
        Returns:
        the request
        Throws:
        IOException
      • list

        public Compute.RegionCommitments.List list(String project,
                                                   String region)
                                            throws IOException
        Retrieves a list of commitments contained within the specified region. Create a request for the method "regionCommitments.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
      • update

        public Compute.RegionCommitments.Update update(String project,
                                                       String region,
                                                       String commitment,
                                                       Commitment content)
                                                throws IOException
        Updates the specified commitment with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: auto_renew. Create a request for the method "regionCommitments.update". 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.
        commitment - Name of the commitment for which auto renew is being updated.
        content - the Commitment
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2022 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy