
    	                        d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ	 ddl
mZ dd	lmZ dd
lmZ dddZ ej"                  ej$                  ej&                  ej(                         G d dej*                               Zy)zPCommand to list all Assured Operations belonging to a given parent Organization.    )absolute_import)division)unicode_literals)endpoint_util)message_util)
operations)base)ReleaseTrack)flagsQList all Assured Workloads operations that belong to a given parent organization.a           The following example command lists all Assured Workloads operations
        with these properties:

        * belonging to an organization with ID 123
        * located in the `us-central1` region
        * return no more than 30 results
        * requesting 10 results at a time from the backend

          $ {command} organizations/123/locations/us-central1 --limit=30 --page-size=10
        )DESCRIPTIONEXAMPLESc                   *    e Zd ZdZeZed        Zd Zy)Listr   c                 .    t        j                  |        y )N)r   AddListOperationsFlags)parsers    &lib/surface/assured/operations/list.pyArgsz	List.Args5   s    	  (    c                 t   t        j                  | j                         |j                        5  t	        j
                  | j                               }|j                  t        j                  |j                  |j                        |j                  |j                        cddd       S # 1 sw Y   yxY w)zRun the list command.)release_trackregion)r   )parentlimit	page_sizeN)r   +AssuredWorkloadsEndpointOverridesFromRegionr
   locationapisOperationsClientr   r   CreateAssuredParentorganizationr   r   )selfargsclients      r   RunzList.Run9   s    		B	B'')$--
A$$43D3D3FGf[[11$2C2C26--A

NN	  $
A 
A 
As   A4B..B7N)	__name__
__module____qualname____doc___DETAILED_HELPdetailed_helpstaticmethodr   r&    r   r   r   r   /   s!    Y -) )	$r   r   N)r*   
__future__r   r   r   googlecloudsdk.api_lib.assuredr   r   r   r   googlecloudsdk.callioper	   googlecloudsdk.calliope.baser
   "googlecloudsdk.command_lib.assuredr   r+   ReleaseTracksGABETAALPHAListCommandr   r.   r   r   <module>r9      sz    W &  ' 8 7 = ( 5 4	
	& LOO\%6%68J8JK$4 $ L$r   