Assignment(mapping=None, *, ignore_unknown_fields=False, **kwargs)
An assignment allows a project to submit jobs of a certain type using slots from the specified reservation.
Attributes
Name | Description |
name |
str
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 |
str
The resource which will use the reservation. E.g. projects/myproject , folders/123 , or
organizations/456 .
|
job_type |
google.cloud.bigquery_reservation_v1.types.Assignment.JobType
Which type of jobs will use the reservation. |
state |
google.cloud.bigquery_reservation_v1.types.Assignment.State
Output only. State of the assignment. |
Classes
JobType
JobType(value)
Types of job, which could be specified when using the reservation.
Values:
JOB_TYPE_UNSPECIFIED (0):
Invalid type. Requests with this value will be rejected with
error code google.rpc.Code.INVALID_ARGUMENT
.
PIPELINE (1):
Pipeline (load/export) jobs from the project
will use the reservation.
QUERY (2):
Query jobs from the project will use the
reservation.
ML_EXTERNAL (3):
BigQuery ML jobs that use services external
to BigQuery for model training. These jobs will
not utilize idle slots from other reservations.
State
State(value)
Assignment will remain in PENDING state if no active capacity commitment is present. It will become ACTIVE when some capacity commitment becomes active.
Values: STATE_UNSPECIFIED (0): Invalid state value. PENDING (1): Queries from assignee will be executed as on-demand, if related assignment is pending. ACTIVE (2): Assignment is ready.