Class ProjectsResource.LocationsResource.ReservationsResource
The "reservations" collection of methods.
Inherited Members
Namespace: Google.Apis.BigQueryReservation.v1
Assembly: Google.Apis.BigQueryReservation.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ReservationsResource
Constructors
ReservationsResource(IClientService)
Constructs a new resource.
Declaration
public ReservationsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Assignments
Gets the Assignments resource.
Declaration
public virtual ProjectsResource.LocationsResource.ReservationsResource.AssignmentsResource Assignments { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.ReservationsResource.AssignmentsResource |
Methods
Create(Reservation, string)
Creates a new reservation resource.
Declaration
public virtual ProjectsResource.LocationsResource.ReservationsResource.CreateRequest Create(Reservation body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Reservation | body | The body of the request. |
string | parent | Required. Project, location. E.g., |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ReservationsResource.CreateRequest |
Delete(string)
Deletes a reservation. Returns google.rpc.Code.FAILED_PRECONDITION
when reservation has
assignments.
Declaration
public virtual ProjectsResource.LocationsResource.ReservationsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Resource name of the reservation to retrieve. E.g.,
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ReservationsResource.DeleteRequest |
FailoverReservation(FailoverReservationRequest, string)
Failover a reservation to the secondary location. The operation should be done in the current
secondary location, which will be promoted to the new primary location for the reservation.
Attempting to failover a reservation in the current primary location will fail with the error code
google.rpc.Code.FAILED_PRECONDITION
.
Declaration
public virtual ProjectsResource.LocationsResource.ReservationsResource.FailoverReservationRequest FailoverReservation(FailoverReservationRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
FailoverReservationRequest | body | The body of the request. |
string | name | Required. Resource name of the reservation to failover. E.g.,
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ReservationsResource.FailoverReservationRequest |
Get(string)
Returns information about the reservation.
Declaration
public virtual ProjectsResource.LocationsResource.ReservationsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Resource name of the reservation to retrieve. E.g.,
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ReservationsResource.GetRequest |
List(string)
Lists all the reservations for the project in the specified location.
Declaration
public virtual ProjectsResource.LocationsResource.ReservationsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent resource name containing project and location, e.g.:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ReservationsResource.ListRequest |
Patch(Reservation, string)
Updates an existing reservation resource.
Declaration
public virtual ProjectsResource.LocationsResource.ReservationsResource.PatchRequest Patch(Reservation body, string name)
Parameters
Type | Name | Description |
---|---|---|
Reservation | body | The body of the request. |
string | name | The resource name of the reservation, e.g., |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ReservationsResource.PatchRequest |