
    J                         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 get 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)Describe   a  Get the details of a Security Command Center service.

Get the details of a Security Command Center service. It
resolves INHERITED enablement states
to ENABLED or DISABLED for services at ancestor levels. For example, if
the service is enabled
at the ancestor level, services for all child resources will have the
enablement state set to
ENABLED.

## EXAMPLES

To get the details of a Security Command Center service with name
`sha` for organization `123`, run:

  $ {command} sha --organization=123

To get the details of a Security Command Center service with name
`sha` for folder `456`, run:

  $ {command} sha --folder=456

To get the details of a Security Command Center service with ID
`sha` for project `789`, run:

  $ {command} sha --project=789

You can also specify the parent more generally:

  $ {command} sha --parent=organizations/123

To get the details of modules, `[ABC, DEF]` of a Security Command
Center service with name `sha` for organization `123`, run:

  $ {command} sha --module-list=[ABC, DEF] --organization=123
c                     [         R                  " 5       R                  U 5        [         R                  " SS9R                  U 5        [         R                  " 5       R                  U 5        g )NT)required)r   CreateServiceNameArgAddToParserCreateParentFlagCreateModuleList)parsers    +lib/surface/scc/manage/services/describe.pyArgsDescribe.ArgsC   sI    	 ,,V4	D)55f=	((0    c                 6   [         R                  " U5      n[         R                  " U5      n[        R                  " 5       nUR                  U5      nU(       d  U$ UR                  R                   Vs/ s H  nUR                  U;   d  M  UPM     nnU$ s  snf )N)	r	   GetServiceNameFromArgsGetModuleListFromArgsr   SecurityCenterServicesClientGetmodulesadditionalPropertieskey)selfargsnamemodule_listclientresponsemodule_valuefiltered_responses           r   RunDescribe.RunI   s    ))$/D//5K113Fzz$Ho '..CCCl, C  
 s   4BB N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r(   __static_attributes__r*   r   r   r   r      s!    #J 1 1
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DescribeCommandr   r*   r   r   <module>r<      st    % &  ' > ( 7 9 D%%(($*;*;*A*AB;t## ; C ;r   