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

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







Compute.Reservations (Compute Engine API beta-rev20220726-2.0.0)












com.google.api.services.compute

Class Compute.Reservations

  • Enclosing class:
    Compute


    public class Compute.Reservations
    extends Object
    The "reservations" collection of methods.
    • Constructor Detail

      • Reservations

        public Reservations()
    • Method Detail

      • aggregatedList

        public Compute.Reservations.AggregatedList aggregatedList(String project)
                                                           throws IOException
        Retrieves an aggregated list of reservations. Create a request for the method "reservations.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.Reservations.Delete delete(String project,
                                                  String zone,
                                                  String reservation)
                                           throws IOException
        Deletes the specified reservation. Create a request for the method "reservations.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.
        zone - Name of the zone for this request.
        reservation - Name of the reservation to delete.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Compute.Reservations.Get get(String project,
                                            String zone,
                                            String reservation)
                                     throws IOException
        Retrieves information about the specified reservation. Create a request for the method "reservations.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.
        zone - Name of the zone for this request.
        reservation - Name of the reservation to retrieve.
        Returns:
        the request
        Throws:
        IOException
      • getIamPolicy

        public Compute.Reservations.GetIamPolicy getIamPolicy(String project,
                                                              String zone,
                                                              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 "reservations.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.
        zone - The name of the zone for this request.
        resource - Name or id of the resource for this request.
        Returns:
        the request
        Throws:
        IOException
      • insert

        public Compute.Reservations.Insert insert(String project,
                                                  String zone,
                                                  Reservation content)
                                           throws IOException
        Creates a new reservation. For more information, read Reserving zonal resources. Create a request for the method "reservations.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.
        zone - Name of the zone for this request.
        content - the Reservation
        Returns:
        the request
        Throws:
        IOException
      • list

        public Compute.Reservations.List list(String project,
                                              String zone)
                                       throws IOException
        A list of all the reservations that have been configured for the specified project in specified zone. Create a request for the method "reservations.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.
        zone - Name of the zone for this request.
        Returns:
        the request
        Throws:
        IOException
      • update

        public Compute.Reservations.Update update(String project,
                                                  String zone,
                                                  String reservation,
                                                  Reservation content)
                                           throws IOException
        Update share settings of the reservation. Create a request for the method "reservations.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.
        zone - Name of the zone for this request.
        reservation - Name of the reservation to update.
        content - the Reservation
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2022 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy