
                             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)zG`gcloud alpha scc settings services modules describe-explicit` 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)DescribeExplicitz8Display module settings of Security Command Center(SCC).zO      Describe explicit module settings of Security Command Center(SCC).
      z        To describe the explict '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    >lib/surface/scc/settings/services/modules/describe_explicit.pyArgszDescribeExplicit.Args,   s,    	v&	V$	F#    c                    t        j                         j                  |      }|j                  r|j                  j                  ng }|D cg c]2  }|j
                  |j                  k(  s|j                  j                  4 }}|r|d   S t        j                  j                  dj                  |j                               yc c}w )z*Call corresponding APIs based on the flag.r   zWNo setting found for module {}. The module may not exist or no explicit setting is set.N)r   SettingsClientDescribeServiceExplicitmodulesadditionalPropertieskeymodulevaluemoduleEnablementStater	   statusPrintformat)selfargsresponseconfigspstates         r   RunzDescribeExplicit.Run2   s    ##%==dCH7?7G7Gh33RG/6/6!!%%4;;:N%%w 
  1Xo	jj
c6$++  s   C+CN)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r(    r   r   r   r      s/    @

- $ $
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>r8      sZ    N &  ' ( 9 9 # D%%++,#t++ # -#r   