Google BigQuery Reservation V1 Client - Class CreateReservationRequest (1.3.0)

Reference documentation and code samples for the Google BigQuery Reservation V1 Client class CreateReservationRequest.

The request for ReservationService.CreateReservation.

Generated from protobuf message google.cloud.bigquery.reservation.v1.CreateReservationRequest

Namespace

Google \ Cloud \ BigQuery \ Reservation \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. Project, location. E.g., projects/myproject/locations/US

↳ reservation_id string

The reservation ID. It 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.

↳ reservation Google\Cloud\BigQuery\Reservation\V1\Reservation

Definition of the new reservation to create.

getParent

Required. Project, location. E.g., projects/myproject/locations/US

Returns
TypeDescription
string

setParent

Required. Project, location. E.g., projects/myproject/locations/US

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getReservationId

The reservation ID. It 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
TypeDescription
string

setReservationId

The reservation ID. It 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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getReservation

Definition of the new reservation to create.

Returns
TypeDescription
Google\Cloud\BigQuery\Reservation\V1\Reservation|null

hasReservation

clearReservation

setReservation

Definition of the new reservation to create.

Parameter
NameDescription
var Google\Cloud\BigQuery\Reservation\V1\Reservation
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. Project, location. E.g., projects/myproject/locations/US Please see Google\Cloud\BigQuery\Reservation\V1\ReservationServiceClient::locationName() for help formatting this field.

reservation Google\Cloud\BigQuery\Reservation\V1\Reservation

Definition of the new reservation to create.

reservationId string

The reservation ID. It 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
TypeDescription
Google\Cloud\BigQuery\Reservation\V1\CreateReservationRequest