
    w
                         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Z G d	 d
e
j                        Z G d de
j                        ZddZddZddZddZddZy)z0Common flags for the consumers subcommand group.    )absolute_import)division)unicode_literals)services_util)base)
completersz>endpoints services list --format=disable --flatten=serviceNamec                        e Zd Z fdZ xZS )ConsumerServiceCompleterc                 Z    t        t        | 
  dt        j                  t
        dgd| y )Nenabled
collectionlist_commandflags )superr
   __init__r   SERVICES_COLLECTION_SERVICES_LIST_COMMANDselfkwargs	__class__s     8lib/googlecloudsdk/command_lib/endpoints/common_flags.pyr   z!ConsumerServiceCompleter.__init__!   s3    	
"D2  44+k 	    __name__
__module____qualname__r   __classcell__r   s   @r   r
   r
           r   r
   c                        e Zd Z fdZ xZS )ProducerServiceCompleterc                 Z    t        t        | 
  dt        j                  t
        dgd| y )Nproducedr   r   )r   r$   r   r   r   r   r   s     r   r   z!ProducerServiceCompleter.__init__+   s3    	
"D2  44+l 	r   r   r!   s   @r   r$   r$   )   r"   r   r$   c                 N    t        j                  ddj                  |             S )N	operationzThe name of the operation {0}.helpr   Argumentformatsuffixs    r   operation_flagr0   3   s$    	+226:
< <r   c                 X    t        j                  |t        dj                  |             S NThe name of the service {0}.)	completerr*   )r   r,   r$   r-   r/   	flag_names     r   producer_service_flagr7   9   '    	()008
: :r   c                 X    t        j                  |t        dj                  |             S r2   )r   r,   r
   r-   r5   s     r   consumer_service_flagr:   @   r8   r   c                 N    t        j                  |dj                  |             S )Nr3   r)   r+   r5   s     r   available_service_flagr<   G   s&     
)008
: :r   c                 N    t        j                  ddj                  |             S )Nz--keyzThe identifier of the key {0}.r)   r+   r.   s    r   key_flagr>   O   s$    	+226:
< <r   N)	to act on)r?   service)__doc__
__future__r   r   r    googlecloudsdk.api_lib.endpointsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.utilr   r   ListCommandCompleterr
   r$   r0   r7   r:   r<   r>   r   r   r   <module>rG      sa     7 &  ' : ( 62 z>> z>> <:::<r   