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
Namespace
Google \ Cloud \ BigQuery \ Reservation \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The parent resource name of the assignment E.g. |
↳ assignment |
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 | |
---|---|
Type | Description |
string |
setParent
Required. The parent resource name of the assignment
E.g. projects/myproject/locations/US/reservations/team1-prod
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getAssignment
Assignment resource to create.
Returns | |
---|---|
Type | Description |
Assignment|null |
hasAssignment
clearAssignment
setAssignment
Assignment resource to create.
Parameter | |
---|---|
Name | Description |
var |
Assignment
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
static::build
Parameters | |
---|---|
Name | Description |
parent |
string
Required. The parent resource name of the assignment
E.g. |
assignment |
Assignment
Assignment resource to create. |
Returns | |
---|---|
Type | Description |
CreateAssignmentRequest |