Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 73fa77c

Browse filesBrowse files
dizcologydandhlee
authored andcommitted
set edition to ENTERPRISE in reservation_create
1 parent 163d964 commit 73fa77c
Copy full SHA for 73fa77c

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎bigquery-reservation/snippets/reservation_create.py

Copy file name to clipboardExpand all lines: bigquery-reservation/snippets/reservation_create.py
+3-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.