
                         0   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S	.rS
r\R                  " \R                  R                  \R                  R                   \R                  R"                  5       " S S\R$                  5      5       r\\l        g)z'ids endpoints list' command.    )base)
properties)ids_api)flags)common_argsz:
          List Cloud IDS endpoints in a project.
        z
          $ {command} --project=my-project

          The project is automatically read from the core/project property if it is defined.
    )DESCRIPTIONEXAMPLESztable(
    name.scope("endpoints"):label=ID,
    name.scope("locations").segment(0):label=LOCATION,
    severity,
    state,
    network,
    trafficLogs
)
c                   .    \ rS rSrSr\S 5       rS rSrg)List1   zList Cloud IDS endpoints.c                    UR                   R                  [        5        UR                   R                  [        R
                  " U R                  5       5      5        [        R                  " 5       R                  U5        g )N)
display_info	AddFormat_FORMAT
AddUriFuncr   MakeGetUriFuncReleaseTrackr   ProjectArgumentAddToParser)clsparsers     !lib/surface/ids/endpoints/list.pyArgs	List.Args6   sU    
!!'*
""5#7#78H8H8J#KL!--f5    c                 B   UR                   =(       d2    [        R                  R                  R                   R	                  5       nSR                  U5      n[        R                  " U R                  5       5      nUR                  X1R                  UR                  5      $ )Nzprojects/{}/locations/-)projectr   VALUEScore	GetOrFailformatr   Clientr   ListEndpointslimit	page_size)selfargsr   parentclients        r   RunList.Run<   sm    llHj//44<<FFHG&--g6F^^D--/0F

DNNCCr    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r*   __static_attributes__r,   r   r   r   r   1   s     "6 6
Dr   r   N)r1   googlecloudsdk.callioper   googlecloudsdk.corer   googlecloudsdk.api_lib.idsr   googlecloudsdk.command_lib.idsr   $googlecloudsdk.command_lib.util.argsr   DETAILED_HELPr   ReleaseTracksr   ALPHABETAGAListCommandr   detailed_helpr,   r   r   <module>r@      s    $ ) * . 0 <			 D%%++T->->-C-C%%((*D4 D*D" # r   