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

The newest version!






Compute.Reservations (Compute Engine API v1-rev20250320-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. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. 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
      • resize

        public Compute.Reservations.Resize resize(String project,
                                                  String zone,
                                                  String reservation,
                                                  ReservationsResizeRequest content)
                                           throws IOException
        Resizes the reservation (applicable to standalone reservations only). For more information, read Modifying reservations. Create a request for the method "reservations.resize". 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 ReservationsResizeRequest
        Returns:
        the request
        Throws:
        IOException
      • setIamPolicy

        public Compute.Reservations.SetIamPolicy setIamPolicy(String project,
                                                              String zone,
                                                              String resource,
                                                              ZoneSetPolicyRequest content)
                                                       throws IOException
        Sets the access control policy on the specified resource. Replaces any existing policy. Create a request for the method "reservations.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.
        zone - The name of the zone for this request.
        resource - Name or id of the resource for this request.
        content - the ZoneSetPolicyRequest
        Returns:
        the request
        Throws:
        IOException
      • testIamPermissions

        public Compute.Reservations.TestIamPermissions testIamPermissions(String project,
                                                                          String zone,
                                                                          String resource,
                                                                          TestPermissionsRequest content)
                                                                   throws IOException
        Returns permissions that a caller has on the specified resource. Create a request for the method "reservations.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.
        zone - The name of the zone for this request.
        resource - Name or id of the resource for this request.
        content - the TestPermissionsRequest
        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–2025 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy