
                             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 G d dej                        Zee_        y)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                   &    e Zd ZdZed        Zd Zy)ListzList Firewall Plus endpoints.c                    |j                   j                  t               |j                   j                  t	        j
                  | j                                      t	        j                  |d       t	        j                  |dd       y )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Argsz	List.Args4   so    
!!'*
""''(8(8(:; ''A )H    c                    t        j                  | j                               }|j                  r|j                  nd}dj	                  |j
                  |      }|j                  ||j                  |j                        S )N-zorganizations/{}/locations/{})	r   Clientr   zoneformatorganizationListEndpointslimit	page_size)selfargsclientr    parents        r   RunzList.RunB   sa    ""4#4#4#67F		499sD,33D4E4EtLF

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