
    i
                         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  \R                  " \R                  R                   5       " S S	\R"                  5      5       rg
)zList CA pools within a project.    )
list_pager)base)resource_utils)common_args)response_utils)
propertiesc                   .    \ rS rSrSr\S 5       rS rSrg)List   zList CA pools within a project.

## EXAMPLES

To list the CA Pools within a project:

$ {command}


To list the CA Pools within a project and region 'us-west1':

$ {command} --location=us-west1
c                     [         R                  " SSS9R                  U 5        [         R                  R	                  U S5        U R
                  R                  S5        U R
                  R                  [        R                  " S5      5        g )Nz
--locationzaLocation of the CA pools. If this is not specified, CA pools across all locations will be listed.)helpd   zv
        table(
          name.basename(),
          name.scope().segment(-3):label=LOCATION,
          tier)
        z$privateca.projects.locations.caPools)
r   ArgumentAddToParserPAGE_SIZE_FLAG
SetDefaultdisplay_info	AddFormat
AddUriFuncr   MakeGetUriFunc)parsers    #lib/surface/privateca/pools/list.pyArgs	List.Args,   sw    MM/0 1<F0C""63/
!! #  ""%%&LMO    c           
      $   [         R                  " S5      n[         R                  " S5      nUR                  S5      (       a  UR                  OSnSR                  [        R                  R                  R                  R                  5       U5      nUR                  UUR                  [        R                  " UR                  5      S9n[         R"                  " UR$                  USUR&                  SUR(                  [*        R,                  S9$ )	Nv1location-zprojects/{}/locations/{})parentfilterorderBycaPoolspageSize)fieldlimitbatch_size_attribute
batch_sizeget_field_func)privateca_baseGetClientInstanceGetMessagesModuleIsSpecifiedr   formatr   VALUEScoreproject	GetOrFail,PrivatecaProjectsLocationsCaPoolsListRequestr!   r   ParseSortByArgsort_byr   YieldFromListprojects_locations_caPoolsr&   	page_sizer   GetFieldAndLogUnreachable)selfargsclientmessagesr   parent_resourcerequests          r   RunList.Run=   s    --d3F//5H $ 0 0 < <t}}#H077&&002H>O CC{{**4<<8 D :G
 ##))jj'>>%??A Ar    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r@   __static_attributes__rB   r   r   r
   r
      s#     O O Ar   r
   N)rG   apitools.base.pyr    googlecloudsdk.api_lib.privatecar   r*   r   googlecloudsdk.api_lib.utilr   googlecloudsdk.calliope$googlecloudsdk.command_lib.privatecar   googlecloudsdk.corer   ReleaseTracksReleaseTrackGAListCommandr
   rB   r   r   <module>rT      s\    & ( C ; 3 ( ? * D%%(()5A4 5A *5Ar   