
                             S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SS	KJr  S
r\
R                   " S S\
R                  5      5       rg)z+Export Binary Authorization policy command.    )absolute_import)division)unicode_literals)apis)policies)util)base)Errorzbinauthz-global-policyc                       \ rS rSrSrS rSrg)Export   a{  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                    [         R                  " U R                  5       5      n[        R                  " 5       nUR                  5       [        :X  a  [        S5      e[        R                  " U5      R                  U5      $ )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Run
Export.Run-   sf    $$T%6%6%89K



C
xxz33:; ; ??;'++C00     N)__name__
__module____qualname____firstlineno____doc__r   __static_attributes__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   