
    	                         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
SS.r\R                   " \R"                  R$                  5       " S S\R&                  5      5       r\\l        g)z6List-custom-constraint command for the Org Policy CLI.    )absolute_import)division)unicode_literals)
list_pager)service)base)	arguments)utilszA      Lists the custom constraints set on an organization.
      zw      To list the custom constraints set on the Organization '1234', run:

      $ {command} --organization=1234
      )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)ListCustomConstraints)   z4Lists the custom constraints set on an organization.c                 f    [         R                  " U 5        U R                  R                  S5        g )Na
  
        table(
        name.split('/').slice(-1).join():label=CUSTOM_CONSTRAINT,
        actionType:label=ACTION_TYPE,
        method_types.list():label=METHOD_TYPES,
        resource_types.list():label=RESOURCE_TYPES,
        display_name:label=DISPLAY_NAME)
     )r	   $AddOrganizationResourceFlagsToParserdisplay_info	AddFormat)parsers    3lib/surface/org_policies/list_custom_constraints.pyArgsListCustomConstraints.Args-   s)    226:
!! #	 
    c           	      J   [         R                  " U R                  5       5      n[         R                  " U R                  5       5      n[        R
                  " U5      nUR                  US9n[        R                  " UR                  USUR                  SUR                  S9$ )N)parentcustomConstraintspageSize)fieldlimitbatch_size_attribute
batch_size)org_policy_serviceOrgPolicyClientReleaseTrackOrgPolicyMessagesr
   GetResourceFromArgs2OrgpolicyOrganizationsCustomConstraintsListRequestr   YieldFromListorganizations_customConstraintsr   	page_size)selfargsorg_policy_clientmessagesr   requests         r   RunListCustomConstraints.Run:   s    *::4;L;L;NO!33D4E4E4GHH&&t,FII J G ##99!jj'>># #r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r/   __static_attributes__r1   r   r   r   r   )   s    <

 

#r   r   N)r6   
__future__r   r   r   apitools.base.pyr    googlecloudsdk.api_lib.orgpolicyr   r!   googlecloudsdk.callioper   'googlecloudsdk.command_lib.org_policiesr	   r
   DETAILED_HELPReleaseTracksr#   GAListCommandr   detailed_helpr1   r   r   <module>rC      sw    = &  ' ' J ( = 9	
	
 D%%(()#D,, # *#@ '4  #r   