
                         2   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  SS
KJr  \R$                  " \R&                  R(                  \R&                  R*                  5       " S S\R,                  5      5       rg)z<Command to List a Cloud Security Command Center mute config.    )absolute_import)division)print_function)unicode_literals)
list_pager)securitycenter_client)base)flags)utilc                   :    \ rS rSrSrSSSS.r\S 5       rS rS	r	g
)List   z)ListSecurity Command Center mute configs.z*List Security Command Center mute configs.a  
        List mute configs under organization ``123'':

        $ {command} --organization=123

      List mute configs under folder ``456'':

        $ {command} --folder=456

      List mute configs under project ``789'':

        $ {command} --project=789

        List mute configs under organization ``123'' and `location=eu`:

        $ {command} --organization=123 --location=euz
      This command uses the Security Command Center API. For more information,
      see [Security Command Center API.](https://cloud.google.com/security-command-center/docs/reference/rest))DESCRIPTIONEXAMPLESzAPI REFERENCEc                     [         R                  R                  U 5        [        R                  " U S5        [
        R                  R                  U 5        [
        R                  R                  U 5        g )NT)	r	   URI_FLAGRemoveFromParserr
   AddParentGroup	scc_flagsAPI_VERSION_FLAGAddToParserLOCATION_FLAG)parsers    #lib/surface/scc/muteconfigs/list.pyArgs	List.Args:   sN     	MM""6*	&**62''/    c                    [         R                  " U5      n[        R                  " U5      nUR	                  5       n[
        R                  " U5      Ul        US:X  a%  [
        R                  " XR                  5      Ul        [        R                  " U5      n[        R                  " UR                  USUR                  SS9$ )Nv2pageSizemuteConfigs)batch_size_attribute
batch_sizefield)scc_utilGetVersionFromArgumentsr   GetMessages1SecuritycenterOrganizationsMuteConfigsListRequestr   ValidateAndGetParentparent ValidateAndGetRegionalizedParent	GetClientr   YieldFromListorganizations_muteConfigs	page_size)selfargsversionmessagesrequestclients         r   RunList.RunD   s    ..t4G$009HHHJG..t4GN$<<
gn #,,W5F ##(('>> r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r6   __static_attributes__r8   r   r   r   r      s6    1 B8 r%-. 0 0r   r   N)r=   
__future__r   r   r   r   apitools.base.pyr   googlecloudsdk.api_lib.sccr   googlecloudsdk.callioper	   googlecloudsdk.command_lib.sccr
   r   r   r%   *googlecloudsdk.command_lib.scc.muteconfigsReleaseTracksReleaseTrackGAALPHAListCommandr   r8   r   r   <module>rL      ss    C &  % ' ' < ( = ; < ; D%%(($*;*;*A*AB94 9 C9r   