Class ProjectsResource.LocationsResource.ReservationsResource
The "reservations" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.BigQueryReservation.v1beta1
Assembly: Google.Apis.BigQueryReservation.v1beta1.dll
Syntax
public class ReservationsResource
Constructors
ReservationsResource(IClientService)
Constructs a new resource.
Declaration
public ReservationsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
Google.Apis.Services.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. |
System.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 |
---|---|---|
System.String | name | Required. Resource name of the reservation to retrieve. E.g.,
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ReservationsResource.DeleteRequest |
Get(String)
Returns information about the reservation.
Declaration
public virtual ProjectsResource.LocationsResource.ReservationsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
System.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 |
---|---|---|
System.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. |
System.String | name | The resource name of the reservation, e.g., |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ReservationsResource.PatchRequest |