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
Optional. 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
Optional. Which type of jobs will use the reservation. |
state |
google.cloud.bigquery_reservation_v1.types.Assignment.State
Output only. State of the assignment. |
enable_gemini_in_bigquery |
bool
Optional. Deprecated: "Gemini in BigQuery" is now available by default for all BigQuery editions and should not be explicitly set. Controls if "Gemini in BigQuery" (https://cloud.google.com/gemini/docs/bigquery/overview) features should be enabled for this reservation assignment. |
scheduling_policy |
google.cloud.bigquery_reservation_v1.types.SchedulingPolicy
Optional. The scheduling policy to use for jobs and queries of this assignee when running under the associated reservation. The scheduling policy controls how the reservation's resources are distributed. This overrides the default scheduling policy specified on the reservation. This feature is not yet generally available. |
Classes
JobType
JobType(value)Types of job, which could be specified when using the reservation.
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.