release_tracks: [ALPHA, GA]
hidden: true

help_text:
  brief: |
    Export a policy.
  description: |
    Export the specified policy.
  examples: |
      To export a policy named `my-policy`, run:

        $ {command} my-policy --destination=my-policy.yaml --location=us-central1

arguments:
  resource:
    spec: !REF googlecloudsdk.command_lib.authz_toolkit.resources:policy
    help_text: |
      Name of the policy to be exported.

request:
  ALPHA:
    api_version: v1alpha
  GA:
    api_version: v1
  collection: authztoolkit.projects.locations.policies
