Ë
    €Ï¼  ã                   ó†   — 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  G d	„ d
e	j                  «      Zy)z>Surface for uploading an SSL certificate to an App Engine app.é    )Úabsolute_import)Údivision)Úunicode_literals)Úappengine_ssl_api_client)Úbase)Úflags)Úlogc                   ó0   — e Zd ZdZdddœZed„ «       Zd„ Zy)ÚCreatezºUploads a new SSL certificate.

  The user must be the verified owner of the certificate domain(s). Use the
  gcloud domains command group to manage domain ownership and verification.
  z{description}zõ          To add a new SSL certificate to App Engine, run:

              $ {command} --display-name='example cert'                   --certificate='/home/user/me/my_cert.cer'                   --private-key='/home/user/me/my_key.pfx'
          )ÚDESCRIPTIONÚEXAMPLESc                 ó2   — t        j                  | d¬«       y )NT)Úrequired)r   ÚAddSslCertificateFlags)Úparsers    ú*lib/surface/app/ssl_certificates/create.pyÚArgszCreate.Args/   s   € ä	× Ñ  °$Ö7ó    c                 óî   — t        j                  | j                  «       «      }|j                  |j                  |j
                  |j                  ¬«      }t        j                  |j                  «       |S )N)Ú	cert_pathÚprivate_key_path)
Ú
api_clientÚGetApiClientForTrackÚReleaseTrackÚCreateSslCertificateÚdisplay_nameÚcertificateÚprivate_keyr	   ÚCreatedResourceÚid)ÚselfÚargsÚclientÚcerts       r   ÚRunz
Create.Run3   sd   € Ü×,Ñ,¨T×->Ñ->Ó-@ÓA€FØ×&Ñ&Ø×ÑØ×"Ñ"Ø×)Ñ)ð 'ó +€Dô ×Ñ˜Ÿ™Ô Ø€Kr   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Údetailed_helpÚstaticmethodr   r%   © r   r   r   r      s1   „ ñð ðñ	€-ð ñ8ó ð8ór   r   N)r)   Ú
__future__r   r   r   Úgooglecloudsdk.api_lib.app.apir   r   Úgooglecloudsdk.callioper   Úgooglecloudsdk.command_lib.appr   Úgooglecloudsdk.corer	   ÚCreateCommandr   r,   r   r   Ú<module>r3      s2   ðñ Eå &Ý Ý 'å QÝ (Ý 0Ý #ôˆT×Ñõ r   