
                            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SKJ
r  SSKJr  SS	KJr  \R&                  " \R(                  R*                  5       " S
 S\R,                  5      5       r\R&                  " \R(                  R0                  5       " S S\5      5       r\R&                  " \R(                  R4                  5       " S S\5      5       rSSS.\l        g)z)Command for listing Filestore operations.    )absolute_import)division)unicode_literals)filestore_client)base)flags)concept_parsers)
propertiesc                   F    \ rS rSrSr\R                  r\S 5       r	S r
Srg)List   List all Filestore operations.c                 2   [         R                  " [        R                  " S5      /5      R	                  U 5        [
        R                  " U 5        U R                  R                  [        R                  5        S nU R                  R                  U5        g )N)The location in which to list operations.c                     [         R                  " 5       nUR                  U R                  [         R                  S9nUR                  5       $ N)
collection)r   GetFilestoreRegistryParsenameOPERATIONS_COLLECTIONSelfLinkresourceregistryrefs      (lib/surface/filestore/operations/list.pyUriFuncList.Args.<locals>.UriFunc-   sA    !668hNN
--%;;  =c \\^    r	   ConceptParserr   "GetListingLocationPresentationSpecAddToParserinstances_flagsAddLocationArgdisplay_info	AddFormatoperations_flagsOPERATIONS_LIST_FORMAT
AddUriFuncparserr   s     r   Args	List.Args$   sv    !!		1	17
9 	: k&""6*
!!"2"I"IJ ""7+r    c                    [         R                  R                  R                  R	                  5         UR
                  R                  R                  5       R                  5       nUR                  c>  UR                  b1  UR                  S5      nUR                  US'   SR                  U5      n[        R                  " U R                  S9n[        UR!                  X!R"                  S95      $ )N/)version)limit)r
   VALUEScoreproject	GetOrFailCONCEPTSzoner   RelativeNamelocationsplitjoinr   FilestoreClient_API_VERSIONlistListOperationsr4   )selfargslocation_reflocation_listclients        r   RunList.Run6   s    "",,.==%%++-::<LyyT]]6"((-m--mBXXm,l--d6G6GHF%%l**%EFFr     N)__name__
__module____qualname____firstlineno____doc__r   V1_API_VERSIONr@   staticmethodr.   rH   __static_attributes__rJ   r    r   r   r      s(    &!00,, ,"
Gr    r   c                   @    \ rS rSrSr\R                  r\S 5       r	Sr
g)ListBetaC   r   c                 2   [         R                  " [        R                  " S5      /5      R	                  U 5        [
        R                  " U 5        U R                  R                  [        R                  5        S nU R                  R                  U5        g )Nr   c                     [         R                  " [         R                  5      nUR                  U R                  [         R
                  S9nUR                  5       $ r   )r   r   BETA_API_VERSIONr   r   r   r   r   s      r   r   ListBeta.Args.<locals>.UriFuncR   sL    !66

+
+-hNN
--%;;  =c \\^r    r!   r,   s     r   r.   ListBeta.ArgsI   v    !!		1	17
9 	: k&""6*
!!"2"I"IJ ""7+r    rJ   N)rK   rL   rM   rN   rO   r   rX   r@   rQ   r.   rR   rJ   r    r   rT   rT   C   s"    &!22,, ,r    rT   c                   @    \ rS rSrSr\R                  r\S 5       r	Sr
g)	ListAlpha]   r   c                 2   [         R                  " [        R                  " S5      /5      R	                  U 5        [
        R                  " U 5        U R                  R                  [        R                  5        S nU R                  R                  U5        g )Nr   c                     [         R                  " [         R                  5      nUR                  U R                  [         R
                  S9nUR                  5       $ r   )r   r   ALPHA_API_VERSIONr   r   r   r   r   s      r   r   ListAlpha.Args.<locals>.UriFuncl   sL    !66

,
,.hNN
--%;;  =c \\^r    r!   r,   s     r   r.   ListAlpha.Argsc   r[   r    rJ   N)rK   rL   rM   rN   rO   r   ra   r@   rQ   r.   rR   rJ   r    r   r]   r]   ]   s"    &!33,, ,r    r]   r   zThe following command lists a maximum of five Filestore operations sorted
alphabetically by name in descending order:

  $ {command} --limit=5 --sort-by=~name
)DESCRIPTIONEXAMPLESN)rO   
__future__r   r   r    googlecloudsdk.api_lib.filestorer   googlecloudsdk.callioper   $googlecloudsdk.command_lib.filestorer   .googlecloudsdk.command_lib.filestore.instancesr%   /googlecloudsdk.command_lib.filestore.operationsr)   (googlecloudsdk.command_lib.util.conceptsr	   googlecloudsdk.corer
   ReleaseTracksReleaseTrackGAListCommandr   BETArT   ALPHAr]   detailed_helprJ   r    r   <module>ru      s    0 &  ' = ( 6 S U D * D%%(()!G4 !G *!GH D%%**+,t , ,,2 D%%++,, , -,4 4 r    