diff --git a/bigquery-reservation/snippets/reservation_create.py b/bigquery-reservation/snippets/reservation_create.py index 67955606f2ab..bae295e880c6 100644 --- a/bigquery-reservation/snippets/reservation_create.py +++ b/bigquery-reservation/snippets/reservation_create.py @@ -58,7 +58,9 @@ def create_reservation( reservation = reservation_types.Reservation(slot_capacity=slot_capacity) reservation = reservation_client.create_reservation( - parent=parent, reservation=reservation, reservation_id=reservation_id, + parent=parent, + reservation=reservation, + reservation_id=reservation_id, ) print(f"Created reservation: {reservation.name}") diff --git a/bigquery-reservation/snippets/reservation_update.py b/bigquery-reservation/snippets/reservation_update.py index 93a9cf53139c..d43a96dc7b32 100644 --- a/bigquery-reservation/snippets/reservation_update.py +++ b/bigquery-reservation/snippets/reservation_update.py @@ -59,7 +59,8 @@ def update_reservation( project_id, location, reservation_id ) reservation = reservation_types.Reservation( - name=reservation_name, slot_capacity=slot_capacity, + name=reservation_name, + slot_capacity=slot_capacity, ) field_mask = field_mask_pb2.FieldMask(paths=["slot_capacity"]) reservation = reservation_client.update_reservation(