
    ;                     n   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  \R&                  " \R(                  R*                  \R(                  R,                  \R(                  R.                  5      \R0                   " S S\R2                  5      5       5       rg)zGCommand for listing Cloud Security Command Center Notification Configs.    )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   z2List Security Command Center notification configs.a*  List Security Command Center notification configs.

      Notification Configs that are created with Security Command Center API V2
      and later include a `location` attribute. Include the `--location` flag to
      list Notification Configs with `location` attribute other than `global`.
      a        List notification configs from organization `123`

        $ {command} 123
        $ {command} organizations/123

      List notification configs from folder `456`

        $ {command} folders/456

      List notification configs from project `789`

        $ {command} projects/789

      List notification configs from organization `123` and `location=eu`

        $ {command} 123 --location=eu
        $ {command} organizations/123 --location=locations/eu
      z      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                 8   [         R                  R                  U 5        [        R                  " 5       S   R                  U 5        [        R                  " U 5        [        R                  R                  U 5        [        R                  R                  U 5        g )Nr   )
r	   URI_FLAGRemoveFromParser	scc_flagsAppendParentArgAddToParsernotifications_flagsAddParentGroupAPI_VERSION_FLAG&LIST_NOTIFICATION_CONFIG_LOCATION_FLAG)parsers    %lib/surface/scc/notifications/list.pyArgs	List.ArgsE   sm     	MM""6* "..v6&&v.**62>>JJ    c                    [         R                  " USS9n[        R                  " U5      n[        R                  " U5      nUS:X  a8  UR                  5       n[         R                  " U5      Ul        UR                  nOSUR                  5       n[         R                  " US5      n[         R                  " U5       SU 3Ul        UR                  nUR                  Ul        [        R                  " UUSUR                  SS9$ )	NT)"version_specific_existing_resourcev1v2z/locations/pageSizenotificationConfigs)batch_size_attribute
batch_sizefield)scc_utilGetVersionFromArgumentsr   GetMessages	GetClient9SecuritycenterOrganizationsNotificationConfigsListRequest GetParentFromPositionalArgumentsparent!organizations_notificationConfigsBSecuritycenterOrganizationsLocationsNotificationConfigsListRequestValidateAndGetLocation+organizations_locations_notificationConfigs	page_sizer$   r   YieldFromList)selfargsversionmessagesclientrequestendpointlocations           r   RunList.RunR   s    ..G %009H",,W5F$

L
L
N   @@Fgn99h 
U
U
W  00t<h"CCDIJ+V^U_`gnCCh~~G ##'>># r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r>   __static_attributes__r@   r   r   r   r      s7    
 ;

&
5-@ 
 
r   r   N)rE   
__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.notificationsr   ReleaseTracksReleaseTrackGABETAALPHADefaultUniverseOnlyListCommandr   r@   r   r   <module>rV      s    N &  % ' ' < ( = ; U $++00$2C2C2I2I O4 O Or   