
    a                         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  \R                   " S S\R                  5      5       rg	)
z#Command to list storage operations.    )api_factory)base)errors_util)operations_util)storage_urlc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
List   zList storage operations.z%      List storage operations.
      aN        To list all storage operations that belong to the bucket "my-bucket", run:

        $ {command} projects/_/buckets/my-bucket

      To list operations in JSON format, run:

        $ {command} projects/_/buckets/my-bucket --format=json

      An alternative bucket format is available:

        $ {command} gs://my-bucket
      )DESCRIPTIONEXAMPLESc                     U R                  SSS9  U R                  SSS9  [        R                  R                  U 5        [        R                  R                  U 5        g )Nparent_resource_namezNThe operation parent resource in the format "projects/```_```/buckets/BUCKET".)helpz--server-filtera   Server-side filter string used to determine what operations to return. Example: '(done = true AND complete_time >= "2023-01-01T00:00:00Z") OR requested_cancellation = true' Note that the entire filter string must be in quotes and date strings within the filter must be in embedded quotes.)add_argumentr   PAGE_SIZE_FLAGRemoveFromParserURI_FLAG)parsers    &lib/surface/storage/operations/list.pyArgs	List.Args0   sc    
2   J  	 	((0MM""6*    c                    [         R                  " UR                  5      n[        U[         R                  5      (       a.  [
        R                  " UR                  U5        UR                  nO [        R                  " UR                  5      n[         R                  R                  n[        R                  " U5      R                  UUR                   S9$ )N)bucket_nameserver_side_filter)r   storage_url_from_stringr   
isinstanceCloudUrlr   raise_error_if_not_gcs_bucketcommand_pathr   r   get_operation_bucket_from_nameProviderPrefixGCSr   get_apilist_operationsserver_filter)selfargs
url_objectbucketschemes        r   RunList.RunH   s    44T5N5NOJ*k2233//0A0A:N%%f==

#
#f ''++Fv&66-- 7  r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r,   __static_attributes__r.   r   r   r	   r	      s/     

	-& + +.r   r	   N)r3   googlecloudsdk.api_lib.storager   googlecloudsdk.callioper   "googlecloudsdk.command_lib.storager   r   r   UniverseCompatibleListCommandr	   r.   r   r   <module>r<      sB    * 7 ( : > : ;4 ; ;r   