
    R                         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K	Jr  S	r " S
 S\R                  5      rg)zICommand to list all long running operations in the relevant organization.    )absolute_import)division)unicode_literals)apigee)base)defaults)resource_args
operationsc                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	List   z$List Apigee long running operations.EXAMPLESa,    To list all operations for the active Cloud Platform project, run:

      $ {command}

  To list all in-progress operations in an Apigee organization called
  ``my-org'', formatted as a JSON array, run:

      $ {command} --organization=my-org --filter="metadata.state=IN_PROGRESS" --format=json
  c           	          [         R                  " U SSSS[        R                  " 5       /S9  U R                  R                  S5        g )NorganizationzOrganization whose operations should be listed. If unspecified, the Cloud Platform project's associated organization will be used.FT)
positionalrequiredfallthroughsz)table(uuid, organization, metadata.state))r	   AddSingleResourceArgumentr   !GCPProductOrganizationFallthroughdisplay_info	AddFormat)parsers    %lib/surface/apigee/operations/list.pyArgs	List.Args-   sG    ++	I4@@BCE !!"MN    c                     UR                   R                  R                  5       R                  5       n[        R
                  R                  U5      $ )zRun the list command.)CONCEPTSr   ParseAsDictr   OperationsClientr   )selfargsidentifierss      r   RunList.Run7   s:    --,,224;;=K""''44r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r%   __static_attributes__r'   r   r   r   r      s1    , 	- O O5r   r   N)r,   
__future__r   r   r   googlecloudsdk.api_libr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.apigeer   r	   RESPONSE_CONTENT_FIELDListCommandr   r'   r   r   <module>r6      s:    P &  ' ) ( 6 ; & 54 5r   