
    
                        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S.r\R"                  " \R$                  \R&                  \R(                  5       " S S\R*                  5      5       rg)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                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)List/   zUList all Assured Workloads violations that belong to a assured workloads environment.c                 0    [         R                  " U 5        g )N)r   AddListViolationsFlags)parsers    0lib/surface/assured/workloads/violations/list.pyArgs	List.Args5   s    	  (    c                    [         R                  " U R                  5       UR                  S9   [        R
                  " U R                  5       S9nUR                  [        R                  " UR                  UR                  UR                  5      UR                  UR                  S9sSSS5        $ ! , (       d  f       g= f)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   RunList.Run9   s    		B	B'')$--
A$$43D3D3FGf[[::?

NN	  $
A 
A 
As   A;B33
C N)__name__
__module____qualname____firstlineno____doc___DETAILED_HELPdetailed_helpstaticmethodr   r(   __static_attributes__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   r0   ReleaseTracksGABETAALPHAListCommandr   r*   r   r   <module>r>      sx    [ &  ' 8 7 = ( 5 4	
	& LOO\%6%68J8JK$4 $ L$r   