
                            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                  5       " S	 S
\R                   5      5       rg)z)Command to validate an ETD custom module.    )absolute_import)division)unicode_literals)clients)base)flags)parsingc                   .    \ rS rSrSr\S 5       rS rSrg)Validate   a  Command to validate an ETD custom module.

## EXAMPLES

To validate an Event Threat Detection custom module 'config.json' with a
module type 'CONFIGURABLE_BAD_IP', run:

  $ {command}
    --organization=organizations/252600681248
    --custom-config-file=config.json
    --module-type=CONFIGURABLE_BAD_IP

You can also specify the parent more generally:

  $ {command}
    --parent=organizations/252600681248
    --custom-config-file=config.json
    --module-type=CONFIGURABLE_BAD_IP
c                     [         R                  " SS9R                  U 5        [         R                  " SS9R                  U 5        [         R                  " SS9R                  U 5        g )NT)required)r   CreateParentFlagAddToParser!CreateEtdCustomConfigFilePathFlagCreateModuleTypeFlag)parsers    5lib/surface/scc/manage/custom_modules/etd/validate.pyArgsValidate.Args1   sM    	D)55f=	++T:FFvN	-99&A    c                     [         R                  " U5      n[         R                  " UR                  5      nUR                  n[
        R                  " 5       nUR                  X#US9$ )N)parentcustom_config_jsonmodule_type)r	   GetParentResourceNameFromArgsParseJSONFilecustom_config_filer   r   ETDCustomModuleClientr   )selfargsr   custom_configr   clients         r   RunValidate.Run7   s\    2248F))$*A*ABM""K**,F??[   r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r$   __static_attributes__r&   r   r   r   r      s"    ( B B
	r   r   N)r+   
__future__r   r   r   %googlecloudsdk.api_lib.scc.manage.etdr   googlecloudsdk.callioper   %googlecloudsdk.command_lib.scc.manager   r	   ReleaseTracksReleaseTrackGAALPHACommandr   r&   r   r   <module>r7      sd    0 &  ' 9 ( 7 9 D%%(($*;*;*A*AB$t|| $ C$r   