Skip to content

Commit

Permalink
set edition to ENTERPRISE in reservation_create
Browse files Browse the repository at this point in the history
  • Loading branch information
dizcology authored and dandhlee committed Jul 24, 2023
1 parent 163d964 commit 73fa77c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bigquery-reservation/snippets/reservation_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ def create_reservation(

parent = reservation_client.common_location_path(project_id, location)

reservation = reservation_types.Reservation(slot_capacity=slot_capacity)
reservation = reservation_types.Reservation(
slot_capacity=slot_capacity, edition=reservation_types.Edition.ENTERPRISE
)
reservation = reservation_client.create_reservation(
parent=parent,
reservation=reservation,
Expand Down

0 comments on commit 73fa77c

Please sign in to comment.