
                         j   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  G d dej                        Z	 G d	 d
ej                        Z G d dej                        Z G d dej                        Z G d dej                        Z G d dej                        Z G d dej                        Zy)zCNetworsecurity resource completers for the completion_cache module.    )absolute_import)division)unicode_literals)
completers)
exceptionsc                       e Zd ZdZy)ErrorzExceptions for this module.N)__name__
__module____qualname____doc__     =lib/googlecloudsdk/command_lib/network_security/completers.pyr	   r	      s    #r   r	   c                   "     e Zd ZdZ fdZ xZS )ServerTlsPoliciesCompleterz Completer for ServerTlsPolicies.c                 D    t        t        | 
  ddt        t        gi| y Nr   r   )superr   __init__ GlobalServerTlsPoliciesCompleter RegionServerTlsPoliciesCompleterselfkwargs	__class__s     r   r   z#ServerTlsPoliciesCompleter.__init__    s-    	
$d4 ,,

 r   r
   r   r   r   r   __classcell__r   s   @r   r   r      s    ( r   r   c                   "     e Zd ZdZ fdZ xZS )r   z'Completer for Global ServerTlsPolicies.c                 4    t        t        | 
  ddddd| y )N4networksecurity.projects.locations.serverTlsPoliciesv1alpha1zAnetwork-security server-tls-policies list --location=global --uri
collectionapi_versionlist_commandr   )r   r   r   r   s     r   r   z)GlobalServerTlsPoliciesCompleter.__init__-   +    	
*D: IO	 r   r   r   s   @r   r   r   *   s    / r   r   c                   "     e Zd ZdZ fdZ xZS )r   z)Completer for Regional ServerTlsPolicies.c                 4    t        t        | 
  ddddd| y )Nr"   r#   zAnetwork-security server-tls-policies list --filter=region:* --urir$   r   )r   r   r   r   s     r   r   z)RegionServerTlsPoliciesCompleter.__init__;   r(   r   r   r   s   @r   r   r   8   s    1 r   r   c                   "     e Zd ZdZ fdZ xZS )%BackendAuthenticationConfigsCompleterzCompleter for BackendAuthenticationConfigs.

  This is used to automatically complete the backend authentication
  config name in the tls-settings flag.
  c                 D    t        t        | 
  ddt        t        gi| y r   )r   r,   r   +GlobalBackendAuthenticationConfigsCompleter+RegionBackendAuthenticationConfigsCompleterr   s     r   r   z.BackendAuthenticationConfigsCompleter.__init__M   s-    	
/? 77

 r   r   r   s   @r   r,   r,   F   s     r   r,   c                   "     e Zd ZdZ fdZ xZS )r.   z2Completer for Global BackendAuthenticationConfigs.c                 2    t        t        | 
  dddd| y )N?networksecurity.projects.locations.backendAuthenticationConfigszLnetwork-security backend-authentication-configs list --location=global --urir%   r'   r   )r   r.   r   r   s     r   r   z4GlobalBackendAuthenticationConfigsCompleter.__init__\   *    	
5tE 	M'	 	r   r   r   s   @r   r.   r.   W   s     ;
 
r   r.   c                   "     e Zd ZdZ fdZ xZS )r/   z4Completer for Regional BackendAuthenticationConfigs.c                 2    t        t        | 
  dddd| y )Nr2   zLnetwork-security backend-authentication-configs list --filter=region:* --urir3   r   )r   r/   r   r   s     r   r   z4RegionBackendAuthenticationConfigsCompleter.__init__n   r4   r   r   r   s   @r   r/   r/   i   s     =
 
r   r/   N)r   
__future__r   r   r   googlecloudsdk.command_lib.utilr   googlecloudsdk.corer   r	   MultiResourceCompleterr   ListCommandCompleterr   r   r,   r.   r/   r   r   r   <module>r<      s    J &  ' 6 *$J $
!B!B 
z'F'F z'F'F J,M,M "##$##r   