Skip to content

Commit

Permalink
chore(python): use black==22.3.0 (#243)
Browse files Browse the repository at this point in the history
Source-Link: googleapis/synthtool@6fab84a
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:7cffbc10910c3ab1b852c05114a08d374c195a81cdec1d4a67a1d129331d0bfe
  • Loading branch information
gcf-owl-bot[bot] authored and dizcology committed Jul 20, 2023
1 parent 3620b84 commit 8c60da5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bigquery-reservation/snippets/reservation_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
3 changes: 2 additions & 1 deletion bigquery-reservation/snippets/reservation_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8c60da5

Please sign in to comment.