
                              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
),List certificate templates within a project.    )
list_pager)base)resource_utils)common_args)response_utils)
propertiesc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
List   r   zList certificate templates.z      To list all certificate templates in a project across all locations, run:

        $ {command}

      To list all certificate templates in a project and location 'us-central1',
      run:

        $ {command} --location=us-central1)DESCRIPTIONEXAMPLESc                 b   [         R                  " SSSS9R                  U 5        [         R                  R	                  U S5        [         R
                  R	                  U S5        U R                  R                  S5        U R                  R                  [        R                  " S5      5        g )	Nz
--locationzThe location you want to list the certificate templates for. Set this to "-" to list certificate templates across all locations.-)helpdefaultd   namez
      table(
        name.scope("certificateTemplates"):label=NAME,
        name.scope("locations").segment(0):label=LOCATION,
        description
      )z1privateca.projects.locations.certificateTemplates)r   ArgumentAddToParserPAGE_SIZE_FLAG
SetDefaultSORT_BY_FLAGdisplay_info	AddFormat
AddUriFuncr   MakeGetUriFunc)parsers    'lib/surface/privateca/templates/list.pyArgs	List.Args/   s    MM 
 ![(""63/  0
!! #  ""%%?	AB    c           
         [         R                  " SS9n[         R                  " SS9nSR                  [        R
                  R                  R                  R                  5       UR                  5      nUR                  U[        R                  " UR                  5      UR                  S9n[        R                   " UR"                  USUR$                  SUR&                  [(        R*                  S9$ )zRuns the command.v1)api_versionzprojects/{}/locations/{})parentorderByfiltercertificateTemplatespageSize)fieldlimitbatch_size_attribute
batch_sizeget_field_func)privateca_baseGetClientInstanceGetMessagesModuleformatr	   VALUEScoreproject	GetOrFaillocation9PrivatecaProjectsLocationsCertificateTemplatesListRequestr   ParseSortByArgsort_byr(   r   YieldFromList'projects_locations_certificateTemplatesr,   	page_sizer   GetFieldAndLogUnreachable)selfargsclientmessagesr&   requests         r   RunList.RunD   s    --$?F//DAH'..&&002DMMCFPP**4<<8{{ Q G ##66$jj'>>%??A Ar"    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr    rE   __static_attributes__rG   r"   r   r   r      s2    4 (.	- B B(Ar"   r   N)rL   apitools.base.pyr    googlecloudsdk.api_lib.privatecar   r0   r   googlecloudsdk.api_lib.utilr   googlecloudsdk.calliope$googlecloudsdk.command_lib.privatecar   googlecloudsdk.corer	   ReleaseTracksReleaseTrackGAListCommandr   rG   r"   r   <module>rZ      s\    3 ( C ; 3 ( ? * D%%(()9A4 9A *9Ar"   