- release_tracks: [ALPHA]
  request:
    collection: tpu.projects.locations.nodes
    api_version: v2alpha1
    method: simulateMaintenanceEvent
  help_text:
    brief: Simulates a maintenance event on a Cloud TPU VM.
    description: For testing the resilience of applications build on top of Cloud TPUs.
    examples: |
      The following command simulates a maintenance event on workers 0 and 1 in the Cloud TPU
      named "my-tpu" in zone "us-central1-b" of the default project.

        $ {command} my-tpu --zone=us-central1-b --workers=0,1
  arguments:
    resource:
      help_text: The Cloud TPU on which to simulate maintenance.
      spec: !REF googlecloudsdk.command_lib.compute.tpus.resources:tpu
    params:
    - api_field: simulateMaintenanceEventRequest.workerIds
      arg_name: workers
      help_text: |
        The zero-based ID(s) of workers on which to simulate maintenance. By default, only
        the first (ID 0) worker VM is flagged for maintenance.
  async:
    collection: tpu.projects.locations.operations
    ALPHA:
      api_version: v2alpha1
    GA:
      api_version: v2
    extract_resource_result: false
