
    	                         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                  R                   5       " S	 S
\R"                  5      5       5       rg)z.Command to list the details of an SCC service.    )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 the details of Security Command Center services.

List the details of Security Command Center services for the specified folder,
project or organization. Services along with their corresponding module
information is returned as the response.

## EXAMPLES

To list the Security Center services for
organization `123`, run:

$ {command} --organization=organizations/123

To list Security Center services for
folder `456`, run:

$ {command} --folder=folders/456

To list Security Center services for
project `789`, run:

$ {command} --project=projects/789

You can also specify the parent more generally:

$ {command} --parent=organizations/123
c                     [         R                  R                  U 5        [        R                  " SSS9R                  U 5        g )NzSecurity Center serviceT)resource_namerequired)r   URI_FLAGRemoveFromParserr   CreateParentFlagAddToParser)parsers    'lib/surface/scc/manage/services/list.pyArgs	List.Args:   s1    MM""6*	/$k&    c                     [         R                  " U5      nUR                  nUR                  n[        R
                  " 5       nUR                  UUUS9$ )N)	page_sizeparentlimit)r	   GetParentResourceNameFromArgsr   r   r   SecurityCenterServicesClientr   )selfargsr   r   r   clients         r   RunList.RunA   sQ    2248FIJJE113F;;   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.servicesr   googlecloudsdk.callioper   %googlecloudsdk.command_lib.scc.manager   r	   DefaultUniverseOnlyReleaseTracksReleaseTrackGAALPHAListCommandr   r$   r   r   <module>r6      st    5 &  ' > ( 7 9 D%%(($*;*;*A*AB/4 / C /r   