Skip to content

Commit 73fa77c

Browse files
dizcologydandhlee
authored andcommitted
set edition to ENTERPRISE in reservation_create
1 parent 163d964 commit 73fa77c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bigquery-reservation/snippets/reservation_create.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ def create_reservation(
6767

6868
parent = reservation_client.common_location_path(project_id, location)
6969

70-
reservation = reservation_types.Reservation(slot_capacity=slot_capacity)
70+
reservation = reservation_types.Reservation(
71+
slot_capacity=slot_capacity, edition=reservation_types.Edition.ENTERPRISE
72+
)
7173
reservation = reservation_client.create_reservation(
7274
parent=parent,
7375
reservation=reservation,

0 commit comments

Comments
 (0)