- release_tracks: [ALPHA, BETA]
  help_text:
    brief: |
      Show metadata for a workflow
    description: |
      Display all metadata associated with a workflow of given name.
    examples: |
      To describe the workflow 'my-workflow', run:

          $ {command} my-workflow

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.workflows.resources:workflow
      help_text: |
        The name of the workflow to describe.

  request:
    ALPHA:
      api_version: v1alpha1
    BETA:
      api_version: v1beta
    collection: workflows.projects.locations.workflows
    modify_request_hooks:
    - googlecloudsdk.command_lib.workflows.hooks:print_default_location_warning

- release_tracks: [GA]
  help_text:
    brief: |
      Show metadata for a workflow
    description: |
      Display all metadata associated with a workflow of given name and revisionID.
      If revisionID is not provided, the metadata for the latest revision is retrieved.
    examples: |
      To describe the workflow 'my-workflow' at revision '000001-dc1', run:

          $ {command} my-workflow `--revision-id=000001-dc1`

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.workflows.resources:workflow
      help_text: |
        The name of the workflow to describe.
    params:
    - arg_name: revision-id
      api_field: revisionId
      help_text: |
        The revision ID of the workflow to describe.

  request:
    api_version: v1
    collection: workflows.projects.locations.workflows
    modify_request_hooks:
    - googlecloudsdk.command_lib.workflows.hooks:print_default_location_warning
