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.
bool
Optional. This field controls if "Gemini in BigQuery"
(https://cloud.google.com/gemini/docs/bigquery/overview)
features should be enabled for this reservation assignment,
which is not on by default. "Gemini in BigQuery" has a
distinct compliance posture from BigQuery. If this field is
set to true, the assignment job type is QUERY, and the
parent reservation edition is ENTERPRISE_PLUS, then the
assignment will give the grantee project/organization access
to "Gemini in BigQuery" features.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Class Assignment (1.17.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.17.2 (latest)](/python/docs/reference/bigqueryreservation/latest/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [1.17.1](/python/docs/reference/bigqueryreservation/1.17.1/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [1.16.0](/python/docs/reference/bigqueryreservation/1.16.0/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [1.15.0](/python/docs/reference/bigqueryreservation/1.15.0/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [1.14.1](/python/docs/reference/bigqueryreservation/1.14.1/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [1.13.5](/python/docs/reference/bigqueryreservation/1.13.5/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [1.12.0](/python/docs/reference/bigqueryreservation/1.12.0/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [1.11.3](/python/docs/reference/bigqueryreservation/1.11.3/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [1.10.0](/python/docs/reference/bigqueryreservation/1.10.0/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [1.9.1](/python/docs/reference/bigqueryreservation/1.9.1/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [1.8.0](/python/docs/reference/bigqueryreservation/1.8.0/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [1.7.3](/python/docs/reference/bigqueryreservation/1.7.3/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [1.6.3](/python/docs/reference/bigqueryreservation/1.6.3/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [1.5.0](/python/docs/reference/bigqueryreservation/1.5.0/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [1.4.1](/python/docs/reference/bigqueryreservation/1.4.1/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [1.3.1](/python/docs/reference/bigqueryreservation/1.3.1/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [1.2.2](/python/docs/reference/bigqueryreservation/1.2.2/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [1.1.0](/python/docs/reference/bigqueryreservation/1.1.0/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [1.0.1](/python/docs/reference/bigqueryreservation/1.0.1/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [0.4.2](/python/docs/reference/bigqueryreservation/0.4.2/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [0.3.0](/python/docs/reference/bigqueryreservation/0.3.0/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [0.2.0](/python/docs/reference/bigqueryreservation/0.2.0/google.cloud.bigquery_reservation_v1.types.Assignment)\n- [0.1.0](/python/docs/reference/bigqueryreservation/0.1.0/google.cloud.bigquery_reservation_v1.types.Assignment) \n\n Assignment(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nAn assignment allows a project to submit jobs\nof a certain type using slots from the specified reservation.\n\nClasses\n-------\n\n### JobType\n\n JobType(value)\n\nTypes of job, which could be specified when using the\nreservation.\n\n### State\n\n State(value)\n\nAssignment will remain in PENDING state if no active capacity\ncommitment is present. It will become ACTIVE when some capacity\ncommitment becomes active."]]