
     
                        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  \R                  " \R                  R                  \R                  R                  5       " S	 S
\R                   5      5       rg)zXCommand to list details of resident and inherited Event Threat Detection Custom Modules.    )absolute_import)division)unicode_literals)clients)base)flags)parsingc                   .    \ rS rSrSr\S 5       rS rSrg)List   a  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                     [         R                  R                  U 5        [        R                  " SS9R                  U 5        g )NT)required)r   URI_FLAGRemoveFromParserr   CreateParentFlagAddToParser)parsers    1lib/surface/scc/manage/custom_modules/etd/list.pyArgs	List.Args9   s-    MM""6*	D)55f=    c                     [         R                  " U5      nUR                  n[        R                  " 5       nUR                  UUUR                  S9$ )N)	page_sizeparentlimit)r	   GetParentResourceNameFromArgsr   r   ETDCustomModuleClientr   r   )selfargsr   r   clients        r   RunList.Run>   sL    2248FI**,F;;jj   r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r!   __static_attributes__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>r4      sg    _ &  ' 9 ( 7 9 D%%(($*;*;*A*AB,4 , C,r   