
    	                        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 custom module.    )absolute_import)division)unicode_literals)clients)base)	constants)flags)parsingc                   &    e Zd ZdZed        Zd Zy)Describea  Get the details of a Security Health Analytics custom module.

  Get the details of a Security Health Analytics custom module. It does not
  resolve INHERITED enablement states
  to ENABLED or DISABLED for modules created at ancestor levels. For example, if
  the module is enabled
  at the ancestor level, modules for all child resources will have the
  enablement state set to
  INHERITED. Use `gcloud scc manage custom-modules sha describe-effective` to
  retrieve a custom module with its effective enablement state.

  ## EXAMPLES

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

    $ {command} 123456 --organization=123

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

    $ {command} 123456 --folder=456

  To get the 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/securityHealthAnalyticsCustomModules/123456
  c                     t        j                  t        j                  j                        j                  |        t        j                  d      j                  |        y )Nmodule_typeF)required)r	   CreateModuleIdOrNameArgr   CustomModuleTypeSHAAddToParserCreateParentFlag)parsers    5lib/surface/scc/manage/custom_modules/sha/describe.pyArgszDescribe.ArgsD   sB    	!!..22k&	E*66v>    c                     t        j                  |t        j                  j                        }t        j                         }|j                  |      S )Nr   )r
   GetModuleNameFromArgsr   r   r   r   SHACustomModuleClientGet)selfargsnameclients       r   RunzDescribe.RunK   sB    (()4488D **,F::dr   N)__name__
__module____qualname____doc__staticmethodr   r"    r   r   r   r      s!    $L ? ?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    * &  ' 9 ( ; 7 9 D%%(($*;*;*A*AB5t## 5 C5r   