
                         2   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	lmZ dd
lmZ  ej$                  ej&                  j(                  ej&                  j*                         G d dej,                               Zy)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                   2    e Zd ZdZddddZed        Zd Zy)	Listz)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                     t         j                  j                  |        t        j                  | d       t
        j                  j                  |        t
        j                  j                  |        y )NT)	r	   URI_FLAGRemoveFromParserr
   AddParentGroup	scc_flagsAPI_VERSION_FLAGAddToParserLOCATION_FLAG)parsers    #lib/surface/scc/muteconfigs/list.pyArgsz	List.Args:   sN     	MM""6*	&**62''/    c                    t        j                  |      }t        j                  |      }|j	                         }t        j                  |      |_        |dk(  r%t        j                  ||j                        |_        t        j                  |      }t        j                  |j                  |d|j                  d      S )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   RunzList.RunD   s    ..t4G$009HHHJG..t4GN$<<
gn #,,W5F ##(('>> r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r4    r   r   r   r      s6    1 B8 r%-. 0 0r   r   N)r8   
__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   r;   r   r   <module>rG      su    C &  % ' ' < ( = ; < ; D%%(($*;*;*A*AB94 9 C9r   