
                             d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 dd	lmZ d
Ze
j                   G d de
j                               Zy)z+Export Binary Authorization policy command.    )absolute_import)division)unicode_literals)apis)policies)util)base)Errorzbinauthz-global-policyc                       e Zd ZdZd Zy)Exporta  Export the Binary Authorization policy for the current project.

  This function's default output is a valid policy YAML file. If dumped to a
  file and edited, the new policy can be provided to the `$ {parent_command}
  import` command to cause these edits to be reflected in the project policy.

  ## EXAMPLES

  To export the current project's policy:

      $ {command} > my_policy.yaml
  c                     t        j                  | j                               }t        j                         }|j                         t        k(  rt        d      t        j                  |      j                  |      S )NaR  The Binary Authorization system policy is no longer accessible via the binauthz-global-policy project. Use the following command to display the system policy:
    $ gcloud alpha container binauthz policy export-system-policy
For details, see https://cloud.google.com/binary-authorization/docs/key-concepts#google-maintained_system_images.)r   GetApiVersionReleaseTrackr   GetPolicyRefNameOLD_SYSTEM_POLICY_PROJECT_NAMEr
   r   ClientGet)selfargsapi_versionrefs       /lib/surface/container/binauthz/policy/export.pyRunz
Export.Run-   sf    $$T%6%6%89K



C
xxz33:; ; ??;'++C00    N)__name__
__module____qualname____doc__r    r   r   r   r      s    1r   r   N)r   
__future__r   r   r   )googlecloudsdk.api_lib.container.binauthzr   r   r   googlecloudsdk.callioper	   googlecloudsdk.core.exceptionsr
   r   DefaultUniverseOnlyCommandr   r    r   r   <module>r'      sM    2 &  ' : > : ( 0!9  1T\\ 1 1r   