From 8c60da5c1da056f3a022e55a68f25cc0525cbbb5 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 28 Mar 2022 23:54:39 +0000 Subject: [PATCH] chore(python): use black==22.3.0 (#243) Source-Link: https://github.com/googleapis/synthtool/commit/6fab84af09f2cf89a031fd8671d1def6b2931b11 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:7cffbc10910c3ab1b852c05114a08d374c195a81cdec1d4a67a1d129331d0bfe --- bigquery-reservation/snippets/reservation_create.py | 4 +++- bigquery-reservation/snippets/reservation_update.py | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) 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(