
                             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	d
ZdZ ej                  ej                  j                         G d dej                                Zee_        y)zList attachment command.    )absolute_import)division)unicode_literals)attachment_api)base)attachment_flagszr
          List firewall attachments.

          For more examples, refer to the EXAMPLES section below.

        zw
            To list firewall attachments in project my-proj, run:

            $ {command} --project=my-proj

        )DESCRIPTIONEXAMPLESzztable(
    name.scope("firewallAttachments"):label=ID,
    name.scope("locations").segment(0):label=LOCATION,
    state
)
c                   &    e Zd ZdZed        Zd Zy)ListzList Firewall attachments.c                    |j                   j                  t               |j                   j                  t	        j
                  | j                                      t	        j                  |d       t	        j                  |dd       y )Nz The project for a list operation)	help_textFzThe zone for a list operation)requiredr   )	display_info	AddFormat_FORMAT
AddUriFuncr   MakeGetUriFuncReleaseTrackAddProjectArg
AddZoneArg)clsparsers     9lib/surface/network_security/firewall_attachments/list.pyArgsz	List.Args5   so    
!!'*
""''(8(8(:; ""< *I    c                    t        j                  | j                               }|j                  r|j                  nd}dj	                  |j
                  |      }|j                  ||j                  |j                        S )N-zprojects/{}/locations/{})	r   Clientr   zoneformatprojectListAttachmentslimit	page_size)selfargsclientr    parents        r   RunzList.RunB   s_    ""4#4#4#67F		499sD'..t||TBF!!&$**dnnEEr   N)__name__
__module____qualname____doc__classmethodr   r*    r   r   r   r   1   s    "
 
Fr   r   N)r.   
__future__r   r   r   <googlecloudsdk.api_lib.network_security.firewall_attachmentsr   googlecloudsdk.callioper   +googlecloudsdk.command_lib.network_securityr   DETAILED_HELPr   ReleaseTracksr   ALPHAListCommandr   detailed_helpr0   r   r   <module>r:      s{     &  ' W ( H D%%++,F4 F -F2 # r   