Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.ReservationsResource

The "reservations" collection of methods.

Inheritance
System.Object
ProjectsResource.LocationsResource.ReservationsResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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., projects/myproject/locations/US

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., projects/myproject/locations/US/reservations/team1-prod

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., projects/myproject/locations/US/reservations/team1-prod

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.: projects/myproject/locations/US

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., 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.

Returns
Type Description
ProjectsResource.LocationsResource.ReservationsResource.PatchRequest
In This Article
Back to top