
    
                     \   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\5      r\
R"                  " \
R$                  R&                  \
R$                  R(                  \
R$                  R*                  5       " S S\\
R,                  5      5       rg)ARetrieves information about an SSL cert for a Cloud SQL instance.    )absolute_import)division)unicode_literals)api_util)cert)validate)base)flags)
propertiesc                   .    \ rS rSrSr\S 5       rS rSrg)_BaseGet   z"Base class for sql ssl_certs list.c                 P    U R                  SSS9  [        R                  " U 5        g)zArgs is called by calliope to gather arguments for this command.

Args:
  parser: An argparse parser that you can use it to add arguments that go
      on the command line after this command. Positional arguments are
      allowed.
common_namez7User supplied name. Constrained to ```[a-zA-Z.-_ ]+```.)helpN)add_argumentr   AddInstance)parsers    %lib/surface/sql/ssl_certs/describe.pyArgs_BaseGet.Args    s.     F  H 
f    c                    [         R                  " [         R                  5      nUR                  nUR                  n[
        R                  " UR                  5        UR                  R                  UR                  S[        R                  R                  R                  R                  0SS9n[        R                   " X4UUR"                  5      $ )zRetrieves information about an SSL cert for a Cloud SQL instance.

Args:
  args: argparse.Namespace, The arguments that this command was invoked
      with.

Returns:
  A dict object representing the sslCerts resource if the api request was
  successful.
projectzsql.instances)params
collection)r   	SqlClientAPI_VERSION_DEFAULT
sql_clientsql_messagesr	   ValidateInstanceNameinstanceresource_parserParser   VALUEScorer   	GetOrFailr   GetCertFromNamer   )selfargsclientr    r!   instance_refs         r   Run_BaseGet.Run.   s      < <=F""J&&L!!$--0))//:,,1199CCD" 0 $L 
, $ 0 02 2r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r.   __static_attributes__r0   r   r   r   r      s    * 2r   r   c                       \ rS rSrSrSrg)GetH   r   r0   N)r1   r2   r3   r4   r5   r7   r0   r   r   r9   r9   H   s     Jr   r9   N)r5   
__future__r   r   r   googlecloudsdk.api_lib.sqlr   r   r	   googlecloudsdk.callioper
   googlecloudsdk.command_lib.sqlr   googlecloudsdk.corer   objectr   ReleaseTracksReleaseTrackGABETAALPHADescribeCommandr9   r0   r   r   <module>rG      s    H &  ' / + / ( 0 *(2v (2V D%%(($*;*;*@*@%%++-(D(( -r   