- release_tracks: [GA, ALPHA]
  help_text:
    brief: Stop a Cloud TPU VM node.
    description: Stop a Cloud TPU VM node.
    examples: |
      To stop a Cloud TPU VM node with ID `my-tpu` in zone `us-central1-b`, run:

        $ {command} my-tpu --zone=us-central1-b

  request:
    collection: tpu.projects.locations.nodes
    method: stop
    ALPHA:
      api_version: v2alpha1
      modify_request_hooks:
      - googlecloudsdk.command_lib.compute.tpus.tpu_vm.util:StopRequestHook:api_version=v2alpha1
    GA:
      api_version: v2
      modify_request_hooks:
      - googlecloudsdk.command_lib.compute.tpus.tpu_vm.util:StopRequestHook:api_version=v2

  async:
    collection: tpu.projects.locations.operations
    ALPHA:
      api_version: v2alpha1
    GA:
      api_version: v2
    extract_resource_result: false

  arguments:
    resource:
      help_text: Name of the Cloud TPU VM node to stop.
      spec: !REF googlecloudsdk.command_lib.compute.tpus.tpu_vm.resources:tpu
