
                             S 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)7Command to update a experiment in the Project/Location.    )experiments)base)
exceptions)flagsz{description}z         To update a experiment with the id `my-experiment` and file path `my/path/to/yaml`, run:

          $ {command} my-experiment --file=my/path/to/yaml
        )DESCRIPTIONEXAMPLESc                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)Update"   r   c                 0    [         R                  " U 5        g )N)r   AddUpdateExperimentFlags)parsers    1lib/surface/fault_injection/experiments/update.pyArgsUpdate.Args(   s    	""6*    c                 l   [         R                  " 5       nUR                  R                  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                  S9$ )zRun the create command.
experimentz experiment id must be non-empty.zfile path must be non-empty.)r   experiment_config)r   ExperimentsClientCONCEPTSr   ParseNamer   InvalidArgumentExceptionfiler   RelativeName)selfargsclientexp_refs       r   Run
Update.Run,   s    **,Fmm&&,,.G<<>>//
:  99//
6  =='')))   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)   &googlecloudsdk.api_lib.fault_injectionr   googlecloudsdk.callioper   r   *googlecloudsdk.command_lib.fault_injectionr   r*   ReleaseTracksReleaseTrackALPHAUpdateCommandr   r$   r   r   <module>r5      sa    > ? ( . < # D%%++,T  -r   