
    B
                        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 dd	l	mZ  ej                  ej                  j                  ej                  j                          G d
 dej"                               Zy)z-Command to get a SHA effective custom module.    )absolute_import)division)unicode_literals)clients)base)	constants)flags)parsingc                   &    e Zd ZdZed        Zd Zy)DescribeEffectivea  Get effective the details of a Security Health Analytics effective custom module.

  Get the effective details of a Security Health Analytics effective custom
  module. It retrieves a custom module with its effective enablement state.

  ## EXAMPLES

  To get the effective details of a Security Health Analytics custom module with
  ID `123456` for organization `123`, run:

    $ {command} 123456 --organization=123

  To get the effective details of a Security Health Analytics custom module with
  ID `123456` for folder `456`, run:

    $ {command} 123456 --folder=456

  To get the effective details of a Security Health Analytics custom module with
  ID `123456` for project `789`, run:

    $ {command} 123456 --project=789

  You can also specify the parent more generally:

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

  Or just specify the fully qualified module name:

    $ {command}
    organizations/123/locations/global/effectiveSecurityHealthAnalyticsCustomModules/123456
  c                     t        j                  t        j                  j                        j                  |        t        j                  d      j                  |        y )Nmodule_typeF)required)r	   CreateModuleIdOrNameArgr   CustomModuleTypeEFFECTIVE_SHAAddToParserCreateParentFlag)parsers    ?lib/surface/scc/manage/custom_modules/sha/describe_effective.pyArgszDescribeEffective.Args>   sB    	!!..<<k&	E*66v>    c                     t        j                  |t        j                  j                        }t        j                         }|j                  |      S )Nr   )r
   GetModuleNameFromArgsr   r   r   r   EffectiveSHACustomModuleClientGet)selfargsnameclients       r   RunzDescribeEffective.RunE   sB    (()44BBD 335F::dr   N)__name__
__module____qualname____doc__staticmethodr   r"    r   r   r   r      s!    @ ? ?r   r   N)r&   
__future__r   r   r   %googlecloudsdk.api_lib.scc.manage.shar   googlecloudsdk.callioper   %googlecloudsdk.command_lib.scc.manager   r	   r
   ReleaseTracksReleaseTrackGAALPHADescribeCommandr   r(   r   r   <module>r2      sk    4 &  ' 9 ( ; 7 9 D%%(($*;*;*A*AB/,, / C/r   