
    i                         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                         G d	 d
ej                               Zy)z>`gcloud alpha scc settings services modules describe` command.    )absolute_import)division)unicode_literals)base)flags)utils)logc                   0    e Zd ZdZdddZed        Zd Zy)DescribezBDisplay effective module settings of Security Command Center(SCC).zP      Describe effective module settings of Security Command Center(SCC).
      z        To describe the 'OPEN_FIREWALL' module setting in service 'SECURITY_HEALTH_ANALYTICS' of project "12345", run:

          $ {command} --project=12345 --service=SECURITY_HEALTH_ANALYTICS --module=OPEN_FIREWALL
      )DESCRIPTIONEXAMPLESc                     t        j                  |        t        j                  |        t        j                  |        y )N)r   ExtractRequiredFlagsAddServiceArgumentAddModuleArgument)parsers    5lib/surface/scc/settings/services/modules/describe.pyArgszDescribe.Args,   s,    	v&	V$	F#    c                    t        j                         j                  |      }|j                  r|j                  j                  ng }|D cg c](  }|j
                  |j                  k(  s|j                  * }}|r|d   S t        j                  j                  dj                  |j                               yc c}w )z*Call corresponding APIs based on the flag.r   z(No effective setting found for module {}N)r   SettingsClientDescribeServicemodulesadditionalPropertieskeymodulevaluer	   errPrintformat)selfargsresponseconfigspconfigs         r   RunzDescribe.Run2   s    ##%55d;H7?7G7Gh33RG&?w!!%%4;;*>aggwF?AY	ggmm>EE
++  @s   B;+B;N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r'    r   r   r   r      s/    J

- $ $

r   r   N)r+   
__future__r   r   r   googlecloudsdk.callioper   'googlecloudsdk.command_lib.scc.settingsr   r   googlecloudsdk.corer	   ReleaseTracksReleaseTrackALPHADescribeCommandr   r.   r   r   <module>r7      sZ    E &  ' ( 9 9 # D%%++, t##   - r   