
    <
                     `   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	rSS
 jrS\0r\R                  \R                   " \R"                  R$                  \R"                  R&                  \R"                  R(                  5       " S S\R*                  5      5       5       rg)z7`gcloud certificate-manager certificates list` command.    )absolute_import)division)unicode_literals)certificates)base)resource_args)utilan  table(
    name.scope(certificates):sort=1,
    name.segment(3):label=LOCATION,
    san_dnsnames.sansToString(undefined=''):label=SUBJECT_ALTERNATIVE_NAMES,
    description,
    scope,
    expireTime.date('%Y-%m-%d %H:%M:%S %Oz', undefined=''),
    createTime.date('%Y-%m-%d %H:%M:%S %Oz', undefined=''),
    updateTime.date('%Y-%m-%d %H:%M:%S %Oz', undefined='')
)
c                 6    U (       a  SR                  U 5      $ U$ )zJoins list of SANs with \n as separator..

Args:
  sans: list of SANs.
  undefined: str, value to be returned if no SANs are found.

Returns:
  String representation to be shown in table view.

)join)sans	undefineds     4lib/surface/certificate_manager/certificates/list.py_TransformSANsr   (   s     !4/i/    sansToStringc                   .    \ rS rSrSr\S 5       rS rSrg)List:   zList certificates.

List Certificate Manager certificates in the project.

## EXAMPLES

To list all certificates in the project, run:

  $ {command}
c                     [         R                  " U SSS9  U R                  R                  [        R
                  5        U R                  R                  [        5        U R                  R                  [        5        g )Nzto list certificates forT)verball_default_location)
r   AddLocationResourceArgdisplay_info
AddUriFuncr	   CertificateUriFunc	AddFormat_FORMATAddTransforms_TRANSFORMS)parsers    r   Args	List.ArgsI   s[    ((/dL
""4#:#:;
!!'*
%%k2r   c                     [         R                  " 5       nUR                  R                  R	                  5       nUR                  X1R                  UR                  5      $ )N)r   CertificateClientCONCEPTSlocationParser   limit	page_size)selfargsclientlocation_refs       r   RunList.RunQ   sA    ++-F==))//1L;;|ZZ@@r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr"   r/   __static_attributes__r1   r   r   r   r   :   s!    	 3 3Ar   r   N) )r6   
__future__r   r   r   *googlecloudsdk.api_lib.certificate_managerr   googlecloudsdk.callioper   .googlecloudsdk.command_lib.certificate_managerr   r	   r   r   r    DefaultUniverseOnlyReleaseTracksReleaseTrackALPHABETAGAListCommandr   r1   r   r   <module>rE      s    > &  ' C ( H ?
0 N
 D%%++T->->-C-C%%((*A4 A* Ar   