
                             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S	KJr  SS
KJr  SSKJr  SrSrS r SS jrS rSS jrSS jr SS jr  SS jrS S jrS\4S jrS\4S jrg)!z*Flags for Firewall Plus Endpoint commands.    )absolute_import)division)unicode_literals)activation_api)actions)arg_parsers)concepts)concept_parsers)presentation_specs)
propertiesFIREWALL_ENDPOINTz`The Google Cloud project ID to use for API enablement check, quota, and endpoint uptime billing.c                 Z   [         R                  " U 5      n[        R                  " SSU[        R                  " SSSS9[        R                  " SSS	S9[        R                  " S
SSS9S9n[
        R                  " [        USSS9n[        R                  " U/5      R                  U5      $ )z%Adds Firewall Plus endpoint resource.z9networksecurity.organizations.locations.firewallEndpointszfirewall endpointorganizationz"Organization ID of the {resource}.organizationsId)parameter_namezonezZone of the {resource}.locationsIdzendpoint-namezName of the {resource}firewallEndpointsId)api_versionr   r   r   TzFirewall Plus.)nameconcept_specrequired
group_help)r   GetApiVersionr	   ResourceSpec ResourceParameterAttributeConfigr   ResourcePresentationSpecENDPOINT_RESOURCE_NAMEr
   ConceptParserAddToParser)release_trackparserr   resource_specpresentation_specs        Clib/googlecloudsdk/command_lib/network_security/activation_flags.pyAddEndpointResourcer&   %   s    ,,];+''A??

.*
 ;;

#&
 #CC

".-( )AA! !	 
	&	&(9':	;	G	G	OO    c           	      R    U R                  SSSUU[        R                  " 5       S9  g)zAdds --max-wait flag.z
--max-waitmax_waitF)destr   defaulthelptypeN)add_argumentr   Duration)r"   default_max_wait	help_texts      r%   
AddMaxWaitr2   E   s2     	!  r'   c                    ^  U 4S j$ )Nc                 J   > [         R                  " T5      U R                  -   $ )N)r   GetEffectiveApiEndpointr   )xr!   s    r%   <lambda> MakeGetUriFunc.<locals>.<lambda>W   s    66}ENr'    )r!   s   `r%   MakeGetUriFuncr:   U   s    Nr'   c                 &    U R                  SSUS9  g )Nz--organizationTr   r,   r.   r"   r1   s     r%   AddOrganizationArgr?   [   s    &IFr'   c                 &    U R                  SSUS9  g )Nz--descriptionFr<   r=   r>   s     r%   AddDescriptionArgrA   _   s    oIFr'   c                 &    U R                  SSUS9  g )Nz--target-firewall-attachmentFr<   r=   r>   s     r%   AddTargetFirewallAttachmentArgrC   c   s     	$u9  r'   Fc                 (    U R                  SUUSS9  g )Nz--enable-jumbo-frames
store_truer   r,   actionr=   r"   r   r1   s      r%   AddEnableJumboFramesArgrI   l   s#    
 		  r'   Tc                 $    U R                  SXS9  g )Nz--zoner<   r=   rH   s      r%   
AddZoneArgrK   y   s    hBr'   c                     U R                  SUU[        R                  " [        R                  R
                  R                  5      S9  g)zAdd billing project argument to parser.

Args:
  parser: ArgumentInterceptor, An argparse parser.
  required: bool, whether to make this argument required.
  help_text: str, help text to overwrite the generic --billing-project help
    text.
z--billing-projectrF   Nr.   r   StorePropertyr   VALUESbillingquota_projectrH   s      r%   AddBillingProjectArgrR   }   s@     	"":#4#4#<#<#J#JK	  r'   c           	          U R                  SUUS[        R                  " [        R                  R
                  R                  5      S9  g)zAdd update billing project argument to parser.

Args:
  parser: ArgumentInterceptor, An argparse parser.
  required: bool, whether to make this argument required.
  help_text: str, help text to display on the --update-billing-project help
    text.
z--update-billing-projectBILLING_PROJECT)r   r,   metavarrG   NrM   rH   s      r%   AddUpdateBillingProjectArgrV      sC     	 "":#4#4#<#<#J#JK  r'   N)zTime to synchronously wait for the operation to complete, after which the operation continues asynchronously. Ignored if --no-async isn't specified. See $ gcloud topic datetimes for information on time formats.)zOrganization of the endpoint)zDescription of the endpoint)zGTarget firewall attachment where third party endpoint forwards traffic.)FzeEnable jumbo frames for the firewall endpoint. To disable jumbo frames, use --no-enable-jumbo-frames.)TzZone of the endpoint)__doc__
__future__r   r   r   :googlecloudsdk.api_lib.network_security.firewall_endpointsr   googlecloudsdk.callioper   r    googlecloudsdk.calliope.conceptsr	   (googlecloudsdk.command_lib.util.conceptsr
   r   googlecloudsdk.corer   r   BILLING_HELP_TESTr&   r2   r:   r?   rA   rC   rI   rK   rR   rV   r9   r'   r%   <module>r_      s    1 &  ' U + / 5 D G * -   PF c GG X u
C > r'   