
    
                        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)zTCommand to list all Violations that belong to a given Assured Workloads environment.    )absolute_import)division)unicode_literals)endpoint_util)message_util)
violations)base)ReleaseTrack)flagszKList all Violations that belong to the given Assured Workloads environment.a           The following example command lists all violations with these properties:

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

          $ {command} --organization=123 --location=us-central1 --workload=w123 --limit=30 --page-size=10
        )DESCRIPTIONEXAMPLESc                   *    e Zd ZdZeZed        Zd Zy)ListzUList all Assured Workloads violations that belong to a assured workloads environment.c                 .    t        j                  |        y )N)r   AddListViolationsFlags)parsers    0lib/surface/assured/workloads/violations/list.pyArgsz	List.Args5   s    	  (    c                    t        j                  | j                         |j                        5  t	        j
                  | j                               }|j                  t        j                  |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ViolationsClientr   r   CreateAssuredWorkloadsParentorganizationworkloadr   r   )selfargsclients      r   RunzList.Run9   s    		B	B'')$--
A$$43D3D3FGf[[::?

NN	  $
A 
A 
As   A?B99CN)	__name__
__module____qualname____doc___DETAILED_HELPdetailed_helpstaticmethodr   r&    r   r   r   r   /   s!    ] -) )	$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    [ &  ' 8 7 = ( 5 4	
	& LOO\%6%68J8JK$4 $ L$r   