
     
                        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  ej                  ej                  j                  ej                  j                         G d	 d
ej                                Zy)zXCommand to list details of resident and inherited Event Threat Detection Custom Modules.    )absolute_import)division)unicode_literals)clients)base)flags)parsingc                   &    e Zd ZdZed        Zd Zy)Lista  List details of resident and inherited Event Threat Detection Custom Modules.

  List the details of the resident and inherited Event Threat Detection
  custom modules for the specified folder or project. For an organization, this
  command lists only the custom modules that are created at the organization
  level. Custom modules created in child folders or projects are not included in
  the list. To list the resident custom modules and the modules that are created
  in child folders or projects, use `gcloud scc manage custom-modules etd
  list-descendant`.

  ## EXAMPLES

  To list resident and inherited Event Threat Detection custom modules for
  organization `123`, run:

  $ {command} --organization=organizations/123

  To list resident and inherited Event Threat Detection custom modules for
  folder `456`, run:

  $ {command} --folder=folders/456

  To list resident and inherited Event Threat Detection custom modules for
  project `789`, run:

  $ {command} --project=projects/789
  c                     t         j                  j                  |        t        j                  d      j                  |        y )NT)required)r   URI_FLAGRemoveFromParserr   CreateParentFlagAddToParser)parsers    1lib/surface/scc/manage/custom_modules/etd/list.pyArgsz	List.Args9   s-    MM""6*	D)55f=    c                     t        j                  |      }|j                  }t        j                         }|j                  |||j                        S )N)	page_sizeparentlimit)r	   GetParentResourceNameFromArgsr   r   ETDCustomModuleClientr   r   )selfargsr   r   clients        r   RunzList.Run>   sL    2248FI**,F;;jj   r   N)__name__
__module____qualname____doc__staticmethodr   r    r   r   r   r      s     8 > >
r   r   N)r#   
__future__r   r   r   %googlecloudsdk.api_lib.scc.manage.etdr   googlecloudsdk.callioper   %googlecloudsdk.command_lib.scc.manager   r	   ReleaseTracksReleaseTrackGAALPHAListCommandr   r%   r   r   <module>r/      si    _ &  ' 9 ( 7 9 D%%(($*;*;*A*AB,4 , C,r   