
    	                     h   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"                  \R                   R$                  \R                   R&                  5       " S
 S\R(                  5      5       5       rSS0\l        g)z3Command for listing organization security policies.    )absolute_import)division)unicode_literals)
list_pager)base_classes)lister)base)flagsc                   .    \ rS rSrSr\S 5       rS rSrg)List   zList Compute Engine organization security policies.

*{command}* is used to list organization security policies. An organization
security policy is a set of rules that controls access to various resources.
c                     [         R                  " U5        UR                  R                  [         R                  5        [
        R                  " U5        UR                  R                  [         R                  5        g )N)	r
   AddArgsListSpdisplay_info	AddFormatDEFAULT_LIST_FORMATr   AddBaseListerArgsAddCacheUpdaterOrgSecurityPoliciesCompleter)clsparsers     1lib/surface/compute/org_security_policies/list.pyArgs	List.Args'   sR    	
!!%";";<
V$
''(J(JK    c                    [         R                  " U R                  5       5      nUR                  R                  nUR
                  nUR                  (       a  SUR                  -   nO UR                  (       a  SUR                  -   nUR                  WS9n[        R                  " UR                  USUR                  S S9$ )Nzorganizations/zfolders/)parentIditems)fieldlimit
batch_size)r   ComputeApiHolderReleaseTrackclientapitools_clientMESSAGES_MODULEorganizationfolder.ComputeOrganizationSecurityPoliciesListRequestr   YieldFromListorganizationSecurityPoliciesr    )selfargsholderr$   messages	parent_idrequests          r   RunList.Run.   s    **4+<+<+>?F]]**F%%H"T%6%66i	t{{*iEE F G##++jj r    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r2   __static_attributes__r4   r   r   r   r      s"    
 L Lr   r   EXAMPLESz    To list organization security policies under folder with ID
    ``123456789'', run:

      $ {command} --folder=123456789
    N)r9   
__future__r   r   r   apitools.base.pyr   googlecloudsdk.api_lib.computer   r   googlecloudsdk.callioper	   8googlecloudsdk.command_lib.compute.org_security_policiesr
   UniverseCompatibleReleaseTracksr#   ALPHABETAGAListCommandr   detailed_helpr4   r   r   <module>rI      s    : &  ' ' 7 1 ( J T..33T5F5F5I5I4  D 	 r   