release_tracks: [ALPHA]
command_type: CONFIG_EXPORT
help_text:
  brief: Export the configuration for a Compute Engine target vpn gateway.
  description: |
    *{command}* exports the configuration for a Compute Engine target vpn gateway.

    Target vpn gateway configurations can be exported in
    Kubernetes Resource Model (krm) or Terraform HCL formats. The
    default format is `krm`.

    Specifying `--all` allows you to export the configurations for all
    target vpn gateways within the project.

    Specifying `--path` allows you to export the configuration(s) to
    a local directory.
  examples: |
    To export the configuration for a target vpn gateway, run:

      $ {command} my-target-vpn-gateway

    To export the configuration for a target vpn gateway to a file, run:

      $ {command} my-target-vpn-gateway --path=/path/to/dir/

    To export the configuration for a target vpn gateway in Terraform
    HCL format, run:

      $ {command} my-target-vpn-gateway --resource-format=terraform

    To export the configurations for all target vpn gateways within a
    project, run:

      $ {command} --all
arguments:
  resource:
    help_text: Target vpn gateway to export the configuration for.
    spec: !REF googlecloudsdk.command_lib.compute.resources:target_vpn_gateway
