
                             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 " S S\R                  5      r\\l        g)zList endpoints command.    )absolute_import)division)unicode_literals)activation_api)base)activation_flagszp
          List firewall endpoints.

          For more examples, refer to the EXAMPLES section below.

        z|
            To list firewall endpoints in organization ID 1234, run:

            $ {command} --organization=1234

        )DESCRIPTIONEXAMPLESzxtable(
    name.scope("firewallEndpoints"):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 Plus endpoints.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 organization for a list operation)	help_textTzThe zone for a list operation)requiredr   )	display_info	AddFormat_FORMAT
AddUriFuncr   MakeGetUriFuncReleaseTrackAddOrganizationArg
AddZoneArg)clsparsers     7lib/surface/network_security/firewall_endpoints/list.pyArgs	List.Args4   so    
!!'*
""''(8(8(:; ''A )H    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organizations/{}/locations/{})	r   Clientr   zoneformatorganizationListEndpointslimit	page_size)selfargsclientr"   parents        r   RunList.RunB   s_    ""4#4#4#67F		499sD,33D4E4EtLF

DNNCCr    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r,   __static_attributes__r.   r   r   r   r   1   s    % Dr   r   N)r3   
__future__r   r   r   :googlecloudsdk.api_lib.network_security.firewall_endpointsr   googlecloudsdk.callioper   +googlecloudsdk.command_lib.network_securityr   DETAILED_HELPr   ListCommandr   detailed_helpr.   r   r   <module>r=      sR     &  ' U ( HD4 D4 # r   