
                             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	S
.rSr\R                  " \R                  R                  5       " S S\R                   5      5       r\\l        g)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                   .    \ rS rSrSr\S 5       rS rSrg)List1   zList Firewall attachments.c                    UR                   R                  [        5        UR                   R                  [        R
                  " U R                  5       5      5        [        R                  " USS9  [        R                  " USSS9  g )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Args	List.Args5   so    
!!'*
""''(8(8(:; ""< *I    c                    [         R                  " U R                  5       5      nUR                  (       a  UR                  OSnSR	                  UR
                  U5      nUR                  XAR                  UR                  5      $ )N-zprojects/{}/locations/{})	r   Clientr   zoneformatprojectListAttachmentslimit	page_size)selfargsclientr"   parents        r   RunList.RunB   s]    ""4#4#4#67F		499sD'..t||TBF!!&**dnnEEr    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r,   __static_attributes__r.   r   r   r   r   1   s    "
 
Fr   r   N)r3   
__future__r   r   r   <googlecloudsdk.api_lib.network_security.firewall_attachmentsr   googlecloudsdk.callioper   +googlecloudsdk.command_lib.network_securityr   DETAILED_HELPr   ReleaseTracksr   ALPHAListCommandr   detailed_helpr.   r   r   <module>r?      sy     &  ' W ( H D%%++,F4 F -F2 # r   