target.apidocs.com.google.api.services.compute.Compute.FutureReservations.html Maven / Gradle / Ivy
Compute.FutureReservations (Compute Engine API v1-rev20240919-2.0.0)
com.google.api.services.compute
Class Compute.FutureReservations
- java.lang.Object
-
- com.google.api.services.compute.Compute.FutureReservations
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Compute.FutureReservations.AggregatedList
class
Compute.FutureReservations.Cancel
class
Compute.FutureReservations.Delete
class
Compute.FutureReservations.Get
class
Compute.FutureReservations.Insert
class
Compute.FutureReservations.List
class
Compute.FutureReservations.Update
-
Constructor Summary
Constructors
Constructor and Description
FutureReservations()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Compute.FutureReservations.AggregatedList
aggregatedList(String project)
Retrieves an aggregated list of future reservations.
Compute.FutureReservations.Cancel
cancel(String project,
String zone,
String futureReservation)
Cancel the specified future reservation.
Compute.FutureReservations.Delete
delete(String project,
String zone,
String futureReservation)
Deletes the specified future reservation.
Compute.FutureReservations.Get
get(String project,
String zone,
String futureReservation)
Retrieves information about the specified future reservation.
Compute.FutureReservations.Insert
insert(String project,
String zone,
FutureReservation content)
Creates a new Future Reservation.
Compute.FutureReservations.List
list(String project,
String zone)
A list of all the future reservations that have been configured for the specified project in
specified zone.
Compute.FutureReservations.Update
update(String project,
String zone,
String futureReservation,
FutureReservation content)
Updates the specified future reservation.
-
-
Method Detail
-
aggregatedList
public Compute.FutureReservations.AggregatedList aggregatedList(String project)
throws IOException
Retrieves an aggregated list of future reservations. To prevent failure, Google recommends that
you set the `returnPartialSuccess` parameter to `true`.
Create a request for the method "futureReservations.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
-
cancel
public Compute.FutureReservations.Cancel cancel(String project,
String zone,
String futureReservation)
throws IOException
Cancel the specified future reservation.
Create a request for the method "futureReservations.cancel".
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. Name should conform to RFC1035.
futureReservation
- Name of the future reservation to retrieve. Name should conform to RFC1035.
- Returns:
- the request
- Throws:
IOException
-
delete
public Compute.FutureReservations.Delete delete(String project,
String zone,
String futureReservation)
throws IOException
Deletes the specified future reservation.
Create a request for the method "futureReservations.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. Name should conform to RFC1035.
futureReservation
- Name of the future reservation to retrieve. Name should conform to RFC1035.
- Returns:
- the request
- Throws:
IOException
-
get
public Compute.FutureReservations.Get get(String project,
String zone,
String futureReservation)
throws IOException
Retrieves information about the specified future reservation.
Create a request for the method "futureReservations.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. Name should conform to RFC1035.
futureReservation
- Name of the future reservation to retrieve. Name should conform to RFC1035.
- Returns:
- the request
- Throws:
IOException
-
insert
public Compute.FutureReservations.Insert insert(String project,
String zone,
FutureReservation content)
throws IOException
Creates a new Future Reservation.
Create a request for the method "futureReservations.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. Name should conform to RFC1035.
content
- the FutureReservation
- Returns:
- the request
- Throws:
IOException
-
list
public Compute.FutureReservations.List list(String project,
String zone)
throws IOException
A list of all the future reservations that have been configured for the specified project in
specified zone.
Create a request for the method "futureReservations.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. Name should conform to RFC1035.
- Returns:
- the request
- Throws:
IOException
-
update
public Compute.FutureReservations.Update update(String project,
String zone,
String futureReservation,
FutureReservation content)
throws IOException
Updates the specified future reservation.
Create a request for the method "futureReservations.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. Name should conform to RFC1035.
futureReservation
- Name of the reservation to update. Name should conform to RFC1035.
content
- the FutureReservation
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.