release_tracks: [ALPHA, BETA, GA]
help_text:
  brief: Update a Pub/Sub Lite reservation.
  description: Update a Pub/Sub Lite reservation.
  examples: |
    To update a Pub/Sub Lite reservation, run:

        $ {command} myreservation \
            --location=us-central1 \
            --throughput-capacity=2

request:
  collection: pubsublite.admin.projects.locations.reservations
  method: patch
  modify_request_hooks:
  - googlecloudsdk.command_lib.pubsub.lite_util:UpdateAdminRequest

arguments:
  resource:
    help_text: Reservation to update.
    spec: !REF googlecloudsdk.command_lib.pubsub.resources:lite_reservation

  params:
  - group:
      required: true
      params:
      - _REF_: googlecloudsdk.command_lib.pubsub.flags:throughput-capacity
