
                            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	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 the subordinate certificate authorities within a project.    )absolute_import)division)unicode_literals)
list_pager)base)resource_utils)common_args)
exceptions)response_utils)
text_utils)
propertiesc                   .    \ rS rSrSr\S 5       rS rSrg)List!   a  List subordinate certificate authorities.

List the subordinate certificate authorities within a project.

## EXAMPLES

To list all subordinate certificate authorities in a project:

$ {command}

To list all subordinate certificate authorities within a project and location
'us-central1':

$ {command} --location=us-central1

To list all subordinate certificate authorities within a CA Pool in location
'us-central1':

$ {command} --pool=my-pool --location=us-central1
c                    [         R                  " SSS9R                  U 5        [         R                  " SSS9R                  U 5        [         R                  R	                  U S5        [         R
                  R                  U 5        U R                  R                  S5        U R                  R                  [        R                  [        R                  S.5        U R                  R                  [        R                  " S	5      5        g )
N
--locationa  Location of the certificate authorities. If omitted, subordinate CAs across all regions will be listed. Note that, if it is populated, the privateca/location property will be used if this flag is not specified. To ignore this property, specify "-" as the location.)helpz--poolz{ID of the CA Pool where the certificate authorities reside. If omitted, subordinate CAs across all CA pools will be listed.d   a  
        table(
          name.basename(),
          name.scope().segment(-5):label=LOCATION,
          name.scope().segment(-3):label=POOL,
          state,
          state.regex("ENABLED","YES","NO"):label=INCLUDED_IN_POOL_ISSUANCE,
          ca_certificate_descriptions[0].subject_description.not_before_time():label=NOT_BEFORE,
          ca_certificate_descriptions[0].subject_description.not_after_time():label=NOT_AFTER)
        )not_before_timenot_after_timez;privateca.projects.locations.caPools.certificateAuthorities)r   ArgumentAddToParserPAGE_SIZE_FLAG
SetDefaultFILTER_FLAGRemoveFromParserdisplay_info	AddFormatAddTransformsr   TransformNotBeforeTimeTransformNotAfterTime
AddUriFuncr   MakeGetUriFunc)parsers    *lib/surface/privateca/subordinates/list.pyArgs	List.Args8   s    MM *k&1MMM F#""63/%%f-
!! 	# 	 %%%<<$::'  ""%%I	KL    c           
      \   [         R                  " SS9n[         R                  " SS9n[        R                  R
                  R                  R                  5       nUR                  S5      (       a  UR                  nO"U(       a  UR                  S5      (       a  UnOSnUR                  S5      (       a  UR                  OSnUS:X  a-  UR                  S5      (       a  [        R                  " SS5      eSR                  [        R                  R                  R                  R                  5       XV5      nUR!                  US	["        R$                  " UR&                  5      S
9n[(        R*                  " UR,                  USUR.                  SUR0                  [2        R4                  S9$ )Nv1)api_versionlocationpool-r   zKIf a pool id is specified, you must also specify the location of that pool.z#projects/{}/locations/{}/caPools/{}ztype:SUBORDINATE)parentfilterorderBycertificateAuthoritiespageSize)fieldlimitbatch_size_attribute
batch_sizeget_field_func)privateca_baseGetClientInstanceGetMessagesModuler   VALUES	privatecar,   GetIsSpecifiedr-   r
   InvalidArgumentExceptionformatcoreproject	GetOrFailBPrivatecaProjectsLocationsCaPoolsCertificateAuthoritiesListRequestr	   ParseSortByArgsort_byr   YieldFromList1projects_locations_caPools_certificateAuthoritiesr5   	page_sizer   GetFieldAndLogUnreachable)	selfargsclientmessageslocation_property_fallbackr,   
ca_pool_idparent_resourcerequests	            r%   RunList.Run\   sh   --$?F//DAH!+!2!2!<!<!E!E!I!I!K
##h	#(8(8(@(@+hh"..v66CJ34++F33//

W 
 <BB&&002HJO YY!**4<<8 Z :G
 ##@@&jj'>>%??A Ar(    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr&   rT   __static_attributes__rV   r(   r%   r   r   !   s$    * !L !LF#Ar(   r   N)r[   
__future__r   r   r   apitools.base.pyr    googlecloudsdk.api_lib.privatecar   r9   r   googlecloudsdk.api_lib.utilr	   googlecloudsdk.callioper
   $googlecloudsdk.command_lib.privatecar   r   googlecloudsdk.corer   ReleaseTracksReleaseTrackGAListCommandr   rV   r(   r%   <module>ri      sm    E &  ' ' C ; 3 ( . ? ; * D%%(()]A4 ]A *]Ar(   