
                         t    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 rS r	S	 r
S
 rS rS rS rS rg)z8Common flags for some of the Service Directory commands.    )absolute_import)division)unicode_literals)arg_parsers)basec                 J    [         R                  " SSS9R                  U 5      $ )z4Adds an address flag for service-directory commands.z	--addresszR        IPv4 or IPv6 address of the endpoint. The default is
        empty string.helpr   ArgumentAddToParserparsers    9lib/googlecloudsdk/command_lib/service_directory/flags.pyAddAddressFlagr      s'    	
 &+f-	.    c                 T    [         R                  " SS[        S9R                  U 5      $ )z0Adds a port flag for service-directory commands.z--portzk        Port that the endpoint is running on, must be in the range of
        [0, 65535]. The default is 0.)r
   typer   r   intr   r   s    r   AddPortFlagr   "   s,    	) 

 F#$r   c                 J    [         R                  " SSS9R                  U 5      $ )z3Adds a network flag for service-directory commands.z	--networkz        Specifies the Google Compute Engine Network (VPC) of the Endpoint.
        Network and Project existence is not checked.
        Example: `projects/<PROJECT_NUM>/locations/global/networks/<NETWORK_NAME>`
        The default is empty string.r	   r   r   s    r   AddNetworkFlagr   ,   s'    	(
) *5V)<=r   c           	          [         R                  " SS[        R                  " 5       SR	                  X5      S9R                  U 5      $ )z6Adds annotations flags for service-directory commands.z--annotations	KEY=VALUEa"             Annotations for the {}.

           Annotations take the form of key/value string pairs. Keys are
           composed of an optional prefix and a name segment, separated by a
           slash(/). Prefixes and names must be composed of alphanumeric
           characters, dashes, and dots. Names may also use underscores. There
           are no character restrictions on what may go into the value of an
           annotation. The entire dictionary is limited to {} characters, spread
           across all key-value pairs.
           metavarr   r
   r   r   r   ArgDictformatr   r   resource_typedictionary_size_limits      r   AddAnnotationsFlagr$   7   sD    	 
 vm;
= >I[=PQr   c           	          [         R                  " SS[        R                  " 5       SR	                  X5      S9R                  U 5      $ )z3Adds metadata flags for service-directory commands.z
--metadatar   a             Metadata for the {}.

           Metadata takes the form of key/value string pairs. Keys are
           composed of an optional prefix and a name segment, separated by a
           slash(/). Prefixes and names must be composed of alphanumeric
           characters, dashes, and dots. Names may also use underscores. There
           are no character restrictions on what may go into the value of a
           metadata. The entire dictionary is limited to {} characters, spread
           across all key-value pairs.
           r   r   r!   s      r   AddMetadataFlagr&   J   sD    	 
 vm;
= >I[=PQr   c                     [         R                  " SS[        R                  " 5       SR	                  U5      S9R                  U 5      $ )z1Adds labels flags for service-directory commands.z--labelsr   z>           Resource labels associated with the {}.
           r   r   )r   r"   s     r   AddLabelsFlagr(   ]   s@    	 vm$
& '2k&&9:r   c                 T    [         R                  " S[        SS9R                  U 5      $ )z8Adds max_endpoints flags for service-directory commands.z--max-endpointsz=           Maximum number of endpoints to return.
           )r   r
   r   r   s    r   AddMaxEndpointsFlagr*   h   s*    	

 F#$r   c                 J    [         R                  " SSS9R                  U 5      $ )z:Adds endpoint filter flags for service-directory commands.z--endpoint-filterz        Apply a Boolean filter EXPRESSION to each endpoint in the service.
        If the expression evaluates True, then that endpoint is listed.
        r	   r   r   s    r   AddEndpointFilterFlagr,   r   s'    	
 Kr   N)__doc__
__future__r   r   r   googlecloudsdk.callioper   r   r   r   r   r$   r&   r(   r*   r,    r   r   <module>r1      sC    ? &  ' / (.$=Q&Q&:$r   