
                          x   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z ddl	mZ ddlm
Z
 dd	lmZ  ej                   ej"                  j$                  ej"                  j&                  ej"                  j(                        ej*                   G d
 dej,                                      Zdddde_        y)z1Command for describing SSL certificate resources.    )absolute_import)division)unicode_literals)base_classes)base)flags)scope)ssl_certificates_utilsc                   *    e Zd ZdZdZed        Zd Zy)DescribezDescribe a Compute Engine SSL certificate.

    *{command}* displays all data (except private keys) associated with
    Compute Engine SSL certificate resources in a project.
  Nc                     t        j                  d      t        _        t        j                  j	                  | d       y )Nz0(Default) If set, the SSL certificate is global.)global_help_textdescribe)operation_type)r   SslCertificateArgumentr   SSL_CERTIFICATE_ARGAddArgument)parsers    0lib/surface/compute/ssl_certificates/describe.pyArgszDescribe.Args)   s2    #(#?#?K$MH   ,,VJ,O    c                 d   t        j                  | j                               }|j                  }| j                  j                  ||j                  t        j                  j                  t        j                  |            }t        j                  |      rA |j                  j                  di |j!                         }|j"                  j$                  }n@ |j                  j&                  di |j!                         }|j"                  j(                  }|j+                  |d|fg      d   S )N)default_scopescope_listerGetr    )r   ComputeApiHolderReleaseTrackclientr   ResolveAsResource	resourcescompute_scope	ScopeEnumGLOBALcompute_flagsGetDefaultScopeListerr
   IsRegionalSslCertificatesRefmessages&ComputeRegionSslCertificatesGetRequestAsDictapitools_clientregionSslCertificates ComputeSslCertificatesGetRequestsslCertificatesMakeRequests)selfargsholderr   ssl_certificate_refrequest
collections          r   RunzDescribe.Run/   s   **4+<+<+>?F]]F22DD#--44"88@	 E B ::;NOFFF *&&(*g))??j@@@ *&&(*g))99jUG <=>qAAr   )__name__
__module____qualname____doc__r   staticmethodr   r6   r   r   r   r   r      s)     P P
Br   r   z)Describe a Compute Engine SSL certificatez        *{command}* displays all data (except private keys) associated with
        Compute Engine SSL certificate resources in a project.
        zi        To display a description of a certificate 'my-cert', run:

          $ {command} my-cert
        )briefDESCRIPTIONEXAMPLESN)r:   
__future__r   r   r   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer   r%   r	   r"   3googlecloudsdk.command_lib.compute.ssl_certificatesr
   ReleaseTracksr   ALPHABETAGAUnicodeIsSupportedDescribeCommandr   detailed_helpr   r   r   <module>rK      s    8 &  ' 7 ( E E E V D%%++T->->-C-C%%((*"Bt## "B *"BN 	4	
	 r   