
    	                         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                  ej                  j                  ej                  j                          G d	 d
ej"                                      Zy)z.Command to list the details of an SCC service.    )absolute_import)division)unicode_literals)clients)base)flags)parsingc                   &    e Zd ZdZed        Zd Zy)Lista  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                     t         j                  j                  |        t        j                  dd      j                  |        y )NzSecurity Center serviceT)resource_namerequired)r   URI_FLAGRemoveFromParserr   CreateParentFlagAddToParser)parsers    'lib/surface/scc/manage/services/list.pyArgsz	List.Args:   s1    MM""6*	/$k&    c                     t        j                  |      }|j                  }|j                  }t	        j
                         }|j                  |||      S )N)	page_sizeparentlimit)r	   GetParentResourceNameFromArgsr   r   r   SecurityCenterServicesClientr   )selfargsr   r   r   clients         r   RunzList.RunA   sQ    2248FIJJE113F;;   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.servicesr   googlecloudsdk.callioper   %googlecloudsdk.command_lib.scc.manager   r	   DefaultUniverseOnlyReleaseTracksReleaseTrackGAALPHAListCommandr   r&   r   r   <module>r1      sv    5 &  ' > ( 7 9 D%%(($*;*;*A*AB/4 / C /r   