release_tracks: [GA, BETA, ALPHA]
help_text:
  brief: |
    Export endpoint policy.
  description: |
    Export an endpoit policy.
  examples: |
      To export an endpoint policy named 'my-endpoint-policy', run:

        $ {command} my-endpoint-policy --destination=my-endpoint-policy.yaml --location=global

request:
  collection: networkservices.projects.locations.endpointPolicies
  ALPHA:
    api_version: v1alpha1
  BETA:
    api_version: v1beta1
  GA:
    api_version: v1

arguments:
  resource:
    spec: !REF googlecloudsdk.command_lib.network_services.resources:endpointPolicy
    help_text: |
      Name of the endpoint policy to export.
