
    	                        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  \
R                  \
R                  " \
R                  R                   5       " S
 S\
R"                  5      5       5       rg)z2Export Binary Authorization system policy command.    )absolute_import)division)unicode_literals)apis)system_policy)util)base)arg_parsersc                   .    \ rS rSrSr\S 5       rS rSrg)ExportSystemPolicy   a  Export the Binary Authorization system policy.

For reliability reasons, the system policy is updated one region at a time.
Because of this precaution, the system policy can differ between regions
during an update. Use --location to view the system policy of a specific
region.

If --location is not specified, an arbitrary region is used. (Specifically, a
region in the last group of regions to receive updates. Since most changes are
additions, this will show the minimal set of system images that are allowed
in all regions.)

## EXAMPLES

To view the system policy:

    $ {command}

To view the system policy in the region us-central1:

    $ {command} --location=us-central1
c                 F    UR                  S[        R                  SSSS9  g )Nz
--locationFglobalz<The region for which to get the system policy (or "global").)choicesrequireddefaulthelp)add_argumentr
   BINAUTHZ_ENFORCER_REGIONS)clsparsers     =lib/surface/container/binauthz/policy/export_system_policy.pyArgsExportSystemPolicy.Args6   s-    
 55K  M    c                     [         R                  " U R                  5       5      n[        R                  " U5      R                  [        R                  " UR                  5      5      $ )N)	r   GetApiVersionReleaseTrackr   ClientGetr   GetSystemPolicyReflocation)selfargsapi_versions      r   RunExportSystemPolicy.RunA   sK    $$T%6%6%89K,00.0 0r    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r&   __static_attributes__r(   r   r   r   r      s"    . M M0r   r   N)r-   
__future__r   r   r   )googlecloudsdk.api_lib.container.binauthzr   r   r   googlecloudsdk.callioper	   -googlecloudsdk.command_lib.container.binauthzr
   DefaultUniverseOnlyReleaseTracksr   ALPHACommandr   r(   r   r   <module>r8      sf    9 &  ' : C : ( E D%%++,&0 &0 - &0r   