
                             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  S	S
S.r\R                  " \R                  R                  5       " S S\R                   5      5       rg)zCreate Command for fault.    )absolute_import)division)unicode_literals)faults)base)
exceptions)flagsz{description}z         To create a fault with the id `my-fault` and file path `my/path/to/yaml`, run:

          $ {command} my-fault --file=my/path/to/yaml
        )DESCRIPTIONEXAMPLESc                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)Create%   z2Command to create a fault in the Project/Location.c                 0    [         R                  " U 5        g )N)r	   AddCreateFaultFlags)parsers    ,lib/surface/fault_injection/faults/create.pyArgsCreate.Args+   s    	f%    c                    [         R                  " 5       nUR                  R                  R	                  5       nUR                  5       nUR                  5       (       d  [        R                  " SS5      eUR                  (       d  [        R                  " SS5      eUR                  UR                  5       UR                  UR                  5       S9$ )zRun the create command.faultzfault id must be non-empty.zfile must be non-empty.)r   faultconfigparent)r   FaultsClientCONCEPTSr   ParseParentNamer   InvalidArgumentExceptionfiler   RelativeName)selfargsclient	fault_ref
parent_refs        r   Run
Create.Run/   s      "F##))+I!!#J>>//
0  99//
,  ==nnII&&(   r    N)__name__
__module____qualname____firstlineno____doc___DETAILED_HELPdetailed_helpstaticmethodr   r'   __static_attributes__r)   r   r   r   r   %   s!    : -& &r   r   N)r.   
__future__r   r   r   &googlecloudsdk.api_lib.fault_injectionr   googlecloudsdk.callioper   r   *googlecloudsdk.command_lib.fault_injectionr	   r/   ReleaseTracksReleaseTrackALPHACreateCommandr   r)   r   r   <module>r;      sh      &  ' 9 ( . < # D%%++,T  -r   