target.apidocs.com.google.api.services.bigqueryreservation.v1.BigQueryReservation.Projects.Locations.Reservations.html Maven / Gradle / Ivy
BigQueryReservation.Projects.Locations.Reservations (BigQuery Reservation API v1-rev20230326-2.0.0)
com.google.api.services.bigqueryreservation.v1
Class BigQueryReservation.Projects.Locations.Reservations
- java.lang.Object
-
- com.google.api.services.bigqueryreservation.v1.BigQueryReservation.Projects.Locations.Reservations
-
- Enclosing class:
- BigQueryReservation.Projects.Locations
public class BigQueryReservation.Projects.Locations.Reservations
extends Object
The "reservations" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
BigQueryReservation.Projects.Locations.Reservations.Assignments
The "assignments" collection of methods.
class
BigQueryReservation.Projects.Locations.Reservations.Create
class
BigQueryReservation.Projects.Locations.Reservations.Delete
class
BigQueryReservation.Projects.Locations.Reservations.Get
class
BigQueryReservation.Projects.Locations.Reservations.List
class
BigQueryReservation.Projects.Locations.Reservations.Patch
-
Constructor Summary
Constructors
Constructor and Description
Reservations()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
BigQueryReservation.Projects.Locations.Reservations.Assignments
assignments()
An accessor for creating requests from the Assignments collection.
BigQueryReservation.Projects.Locations.Reservations.Create
create(String parent,
Reservation content)
Creates a new reservation resource.
BigQueryReservation.Projects.Locations.Reservations.Delete
delete(String name)
Deletes a reservation.
BigQueryReservation.Projects.Locations.Reservations.Get
get(String name)
Returns information about the reservation.
BigQueryReservation.Projects.Locations.Reservations.List
list(String parent)
Lists all the reservations for the project in the specified location.
BigQueryReservation.Projects.Locations.Reservations.Patch
patch(String name,
Reservation content)
Updates an existing reservation resource.
-
-
Method Detail
-
create
public BigQueryReservation.Projects.Locations.Reservations.Create create(String parent,
Reservation content)
throws IOException
Creates a new reservation resource.
Create a request for the method "reservations.create".
This request holds the parameters needed by the bigqueryreservation server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. Project, location. E.g., `projects/myproject/locations/US`
content
- the Reservation
- Returns:
- the request
- Throws:
IOException
-
delete
public BigQueryReservation.Projects.Locations.Reservations.Delete delete(String name)
throws IOException
Deletes a reservation. Returns `google.rpc.Code.FAILED_PRECONDITION` when reservation has
assignments.
Create a request for the method "reservations.delete".
This request holds the parameters needed by the bigqueryreservation server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. Resource name of the reservation to retrieve. E.g.,
`projects/myproject/locations/US/reservations/team1-prod`
- Returns:
- the request
- Throws:
IOException
-
get
public BigQueryReservation.Projects.Locations.Reservations.Get get(String name)
throws IOException
Returns information about the reservation.
Create a request for the method "reservations.get".
This request holds the parameters needed by the bigqueryreservation server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. Resource name of the reservation to retrieve. E.g.,
`projects/myproject/locations/US/reservations/team1-prod`
- Returns:
- the request
- Throws:
IOException
-
list
public BigQueryReservation.Projects.Locations.Reservations.List list(String parent)
throws IOException
Lists all the reservations for the project in the specified location.
Create a request for the method "reservations.list".
This request holds the parameters needed by the bigqueryreservation server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The parent resource name containing project and location, e.g.:
`projects/myproject/locations/US`
- Returns:
- the request
- Throws:
IOException
-
patch
public BigQueryReservation.Projects.Locations.Reservations.Patch patch(String name,
Reservation content)
throws IOException
Updates an existing reservation resource.
Create a request for the method "reservations.patch".
This request holds the parameters needed by the bigqueryreservation server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- The resource name of the reservation, e.g., `projects/locations/reservations/team1-prod`. The
reservation_id must only contain lower case alphanumeric characters or dashes. It must
start with a letter and must not end with a dash. Its maximum length is 64 characters.
content
- the Reservation
- Returns:
- the request
- Throws:
IOException
-
assignments
public BigQueryReservation.Projects.Locations.Reservations.Assignments assignments()
An accessor for creating requests from the Assignments collection.
The typical use is:
BigQueryReservation bigqueryreservation = new BigQueryReservation(...);
BigQueryReservation.Assignments.List request = bigqueryreservation.assignments().list(parameters ...)
- Returns:
- the resource collection
Copyright © 2011–2023 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy