
                         0   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
\	R                  5      r " S S\	R                  5      r " S S\	R                  5      r " S S\R$                  5      r    SS jr SS jrSS jrg)z<Flags and helpers for the compute ssl-certificates commands.    )absolute_import)division)unicode_literals)base)
completers)flagsz    table(
      name,
      type,
      creationTimestamp,
      expireTime,
      region.basename(),
      managed.status:label=MANAGED_STATUS,
      managed.domainStatus:format="yaml"
    )c                   (   ^  \ rS rSrU 4S jrSrU =r$ )SslCertificatesCompleter&   c                 4   > [         [        U ]
  " SSSS.UD6  g )Ncompute.sslCertificatesz#compute ssl-certificates list --uri
collectionlist_command )superr
   __init__selfkwargs	__class__s     @lib/googlecloudsdk/command_lib/compute/ssl_certificates/flags.pyr   !SslCertificatesCompleter.__init__(   s(    	
"D2 ,:     r   __name__
__module____qualname____firstlineno__r   __static_attributes____classcell__r   s   @r   r
   r
   &        r   r
   c                   (   ^  \ rS rSrU 4S jrSrU =r$ )GlobalSslCertificatesCompleter/   c                 4   > [         [        U ]
  " SSSS.UD6  g )Nr   z,compute ssl-certificates list --global --urir   r   )r   r%   r   r   s     r   r   'GlobalSslCertificatesCompleter.__init__1   s(    	
($8 ,C r   r   r   r"   s   @r   r%   r%   /   r#   r   r%   c                   (   ^  \ rS rSrU 4S jrSrU =r$ )RegionSslCertificatesCompleter8   c                 4   > [         [        U ]
  " SSSS.UD6  g )Ncompute.regionSslCertificatesz5compute ssl-certificates list --filter=region:* --urir   r   )r   r*   r   r   s     r   r   'RegionSslCertificatesCompleter.__init__:   s(    	
($8 2L r   r   r   r"   s   @r   r*   r*   8   r#   r   r*   c                   (   ^  \ rS rSrU 4S jrSrU =r$ )SslCertificatesCompleterBetaA   c                 F   > [         [        U ]
  " SS[        [        /0UD6  g )Nr   r   )r   r0   r   r%   r*   r   s     r   r   %SslCertificatesCompleterBeta.__init__C   s-    	
&6 *,J
 	r   r   r   r"   s   @r   r0   r0   A   s     r   r0   Nc                     [         R                  " SU(       a  [        O[        UU SUU(       a  SOS U(       a  [         R                  S9$ S S9$ )NzSSL certificater   r-   )resource_name	completerpluralrequiredglobal_collectionglobal_help_textregional_collectionregion_explanation)compute_flagsResourceArgumentr0   r
   REGION_PROPERTY_EXPLANATION)r8   r7   !include_regional_ssl_certificatesr:   s       r   SslCertificateArgumentrA   K   sY     
	'	'%	* -0H1'	* :04	* 'BB
6 6 15
6 6r   c                     [         R                  " SSU(       a  [        O[        SUSU(       a  SOS U(       a  [         R                  OS SSR                  U 5      S9
$ )	Nz--ssl-certificateszssl certificateTr   r-   zVA reference to SSL certificate resources that are used for server-side authentication.aV          References to at most 15 SSL certificate resources that are used for
        server-side authentication. The first SSL certificate in this list is
        considered the primary SSL certificate associated with the load
        balancer. The SSL certificates must exist and cannot be deleted while
        referenced by a {0}.
        )
namer5   r6   r7   r8   r9   r;   r<   
short_helpdetailed_help)r=   r>   r0   r
   r?   format)resourcer8   r@   s      r   'SslCertificatesArgumentForOtherResourcerH   ]   sa    		'	'%	* -0H1	* :04	* 'BB040 F8)
 r   c           	      P    [         R                  " SSSUSR                  U 5      S9$ )z3Returns the flag for clearing the SSL Certificates.z--clear-ssl-certificates
store_trueFzD      Remove any attached SSL certificates from the {} proxy.
      )actiondefaultr8   help)r   ArgumentrF   )
proxy_typer8   s     r   /GetClearSslCertificatesArgumentForOtherResourcerP   v   s.    	 

&

 r   )TFTN)TT)F)__doc__
__future__r   r   r   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer   compute_completersr   r=   googlecloudsdk.command_lib.utilDEFAULT_LIST_FORMATListCommandCompleterr
   r%   r*   MultiResourceCompleterr0   rA   rH   rP   r   r   r   <module>rZ      s    C &  ' ( O E 6		 1FF %7%L%L %7%L%L :#D#D  %)"'=A,06& @D2	r   