
    |                         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dlmZ dd	lmZ d
ZdZ	 ddZ	 ddZd ZddZ	 ddZddZy)z'Flags for Firewall Attachment commands.    )absolute_import)division)unicode_literals)attachment_api)arg_parsers)concepts)concept_parsers)presentation_specsFIREWALL_ATTACHMENTz6networksecurity.projects.locations.firewallAttachmentsc                 b   t        j                  |       }t        j                  t        d|t        j
                  t        j                  ddd      t        j                  ddd      	      }t        j                  t        |d
|      }t        j                  |g      j                  |      S )z"Adds Firewall attachment resource.zfirewall attachmentzonezZone of the {resource}.locationsId)parameter_namezattachment-namezName of the {resource}firewallAttachmentsId)api_version
projectsIdr   r   T)nameconcept_specrequired
group_help)r   GetApiVersionr   ResourceSpecATTACHMENT_RESOURCE_COLLECTION DEFAULT_PROJECT_ATTRIBUTE_CONFIG ResourceParameterAttributeConfigr
   ResourcePresentationSpecATTACHMENT_RESOURCE_NAMEr	   ConceptParserAddToParser)release_trackparser	help_textr   resource_specpresentation_specs         Clib/googlecloudsdk/command_lib/network_security/attachment_flags.pyAddAttachmentResourcer&   !   s     ,,];+''$::;;

#&
 %EE

"0-  )AA# 	 
	&	&(9':	;	G	G	OO    c           	      V    | j                  ddd||t        j                                y)zAdds --max-wait flag.z
--max-waitmax_waitF)destr   defaulthelptypeN)add_argumentr   Duration)r!   default_max_waitr"   s      r%   
AddMaxWaitr1   A   s2     	!  r'   c                       fdS )Nc                 H    t        j                        | j                  z   S )N)r   GetEffectiveApiEndpointr   )xr    s    r%   <lambda>z MakeGetUriFunc.<locals>.<lambda>S   s    66}ENr'    )r    s   `r%   MakeGetUriFuncr8   Q   s    Nr'   c                 ,    | j                  dd|       y )Nz	--projectTr   r,   r.   r!   r"   s     r%   AddProjectArgr=   W   s    kDyAr'   c                 ,    | j                  dd|       y )Nz--producer-forwarding-ruleTr:   r;   r<   s     r%   AddProducerForwardingRuleArgr?   [   s     	"T	  r'   c                 ,    | j                  d||       y )Nz--zoner:   r;   )r!   r   r"   s      r%   
AddZoneArgrA   d   s    h	Br'   N)z$Path to Firewall Attachment resource)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Project of the attachment)zKPath of a forwarding rule that points to a backend with GENEVE-capable VMs.)TzZone of the attachment)__doc__
__future__r   r   r   <googlecloudsdk.api_lib.network_security.firewall_attachmentsr   googlecloudsdk.callioper    googlecloudsdk.calliope.conceptsr   (googlecloudsdk.command_lib.util.conceptsr	   r
   r   r   r&   r1   r8   r=   r?   rA   r7   r'   r%   <module>rH      sc    . &  ' W / 5 D G0 <  5PF c B \Cr'   