
    F                         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                  5       " S S\R                   5      5       r\\l        g)z'ids operations list' command.    )ids_api)base)flags)common_args)
propertiesz:
          List Cloud IDS operation 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("operations"):label=ID,
    name.scope("locations").segment(0):label=LOCATION,
    metadata.target,
    metadata.verb,
    done
)
c                   .    \ rS rSrSr\S 5       rS rSrg)List0   zList Cloud IDS operations.c                 0   UR                   R                  [        5        UR                   R                  [        R
                  " U R                  5       5      5        [        R                  " 5       R                  U5        [        R                  " USSS9  g )NFzThe zone of an operation)required	help_text)display_info	AddFormat_FORMAT
AddUriFuncr   MakeGetUriFuncReleaseTrackr   ProjectArgumentAddToParser
AddZoneArg)clsparsers     "lib/surface/ids/operations/list.pyArgs	List.Args4   sl    
!!'*
""5#7#78H8H8J#KL!--f5	*DF    c                 l   UR                   =(       d2    [        R                  R                  R                   R	                  5       nUR
                  =(       d    SnSR                  X#5      n[        R                  " U R                  5       5      nUR                  XAR                  UR                  5      $ )N-zprojects/{}/locations/{})projectr   VALUEScore	GetOrFailzoneformatr   Clientr   ListOperationslimit	page_size)selfargsr!   r%   nameclients         r   RunList.Run<   s{    llHj//44<<FFHG99D%,,W;D^^D--/0F  zz4>>BBr    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r/   __static_attributes__r1   r   r   r   r   0   s    "F FCr   r   N)r6   googlecloudsdk.api_lib.idsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.idsr   $googlecloudsdk.command_lib.util.argsr   googlecloudsdk.corer   DETAILED_HELPr   ReleaseTracksr   ALPHAListCommandr   detailed_helpr1   r   r   <module>rC      sx    % / ( 0 < *		 D%%++,C4 C -C& # r   