Google BigQuery Reservation V1 Client - Class Assignment (1.2.3)

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

An assignment allows a project to submit jobs of a certain type using slots from the specified reservation.

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

Namespace

Google \ Cloud \ BigQuery \ Reservation \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ name
string

Output only. Name of the resource. E.g.: projects/myproject/locations/US/reservations/team1-prod/assignments/123 . The assignment_id must only contain lower case alphanumeric characters or dashes and the max length is 64 characters.

↳ assignee
string

The resource which will use the reservation. E.g. projects/myproject , folders/123 , or organizations/456 .

↳ job_type
int

Which type of jobs will use the reservation.

↳ state
int

Output only. State of the assignment.

getName

Output only. Name of the resource. E.g.: projects/myproject/locations/US/reservations/team1-prod/assignments/123 .

The assignment_id must only contain lower case alphanumeric characters or dashes and the max length is 64 characters.

Returns
Type
Description
string

setName

Output only. Name of the resource. E.g.: projects/myproject/locations/US/reservations/team1-prod/assignments/123 .

The assignment_id must only contain lower case alphanumeric characters or dashes and the max length is 64 characters.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getAssignee

The resource which will use the reservation. E.g.

projects/myproject , folders/123 , or organizations/456 .

Returns
Type
Description
string

setAssignee

The resource which will use the reservation. E.g.

projects/myproject , folders/123 , or organizations/456 .

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getJobType

Which type of jobs will use the reservation.

Returns
Type
Description
int

setJobType

Which type of jobs will use the reservation.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getState

Output only. State of the assignment.

Returns
Type
Description
int

setState

Output only. State of the assignment.

Parameter
Name
Description
var
int
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: