Google BigQuery Reservation V1 Client - Class CreateAssignmentRequest (1.0.3)

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

The request for ReservationService.CreateAssignment.

Note: "bigquery.reservationAssignments.create" permission is required on the related assignee.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent resource name of the assignment E.g. projects/myproject/locations/US/reservations/team1-prod

↳ assignment Google\Cloud\BigQuery\Reservation\V1\Assignment

Assignment resource to create.

↳ assignment_id string

The optional assignment ID. Assignment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. Max length is 64 characters.

getParent

Required. The parent resource name of the assignment E.g. projects/myproject/locations/US/reservations/team1-prod

Returns
TypeDescription
string

setParent

Required. The parent resource name of the assignment E.g. projects/myproject/locations/US/reservations/team1-prod

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAssignment

Assignment resource to create.

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

hasAssignment

clearAssignment

setAssignment

Assignment resource to create.

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

getAssignmentId

The optional assignment ID. Assignment name will be generated automatically if this field is empty.

This field must only contain lower case alphanumeric characters or dashes. Max length is 64 characters.

Returns
TypeDescription
string

setAssignmentId

The optional assignment ID. Assignment name will be generated automatically if this field is empty.

This field must only contain lower case alphanumeric characters or dashes. Max length is 64 characters.

Parameter
NameDescription
var string
Returns
TypeDescription
$this