
                             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	KJr  \R                   " S
 S\R                   5      5       rg)z&Command to create a new investigation.    )absolute_import)division)unicode_literals)args)util)arg_parsers)base)timesc                   .    \ rS rSrSr\S 5       rS rSrg)Create   a  Create a new investigation.

Shows metadata for the newly created investigation after creation.

This command can fail for the following reasons:
* The chosen investigation ID, if specified, already exists.
* The active account does not have permission to create investigations in the
project.

## EXAMPLES

The following command creates a new investigation with the ID and some basic
information
`example-foo-bar-1`:

  $ {command} example-foo-bar-1 --title="Example Investigation" --issue="I
  have a problem" --start-time=2025-07-10
c                 x   [         R                  " U SSSS9  U R                  R                  S5        U R	                  SSSS9  U R	                  S	S[
        R                  S
S9  U R	                  SS[
        R                  SS9  U R	                  SSSS9  U R	                  SSS[        R                  " 5       SS9  g )Nz	to createFT)verbrequiredallow_no_idz(value(investigation_markdown_detailed())z--issuezBA description of the issue you are investigating, or an error log.)r   helpz--start-timez<The estimated start time of the issue you are investigating.)r   typer   z
--end-timez:The estimated end time of the issue you are investigating.z--titlez1The desired title of the resulting investigation.z--resourcesRESOURCEz1A list of resources relevant to the investigation)r   metavarr   r   )	gca_argsAddInvestigationResourceArgdisplay_info	AddFormatadd_argumentr
   ParseDateTimer   ArgList)parsers    8lib/surface/gemini/cloud_assist/investigations/create.pyArgsCreate.Args2   s    (([5d !!"LM
P	     K	     I	   @  
   "@      c                 $   UR                   R                  R                  5       n[        R                  " UUR
                  UR                  UR                  UR                  UR                  5      n[        R                  " UR                  5      $ )N)CONCEPTSinvestigationParsegca_utilCreateInvestigationtitleissue
start_timeend_time	resources RunInvestigationRevisionBlockingrevision)selfr   investigation_refcreated_investigations       r   Run
Create.RunX   sp    3399;$88



 44&& r!    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r2   __static_attributes__r4   r!   r   r   r      s!    & # #Jr!   r   N)r9   
__future__r   r   r   *googlecloudsdk.api_lib.gemini_cloud_assistr   r   r   r&   googlecloudsdk.callioper   r	   googlecloudsdk.core.utilr
   DefaultUniverseOnlyCommandr   r4   r!   r   <module>rB      sJ     - &  ' G G / ( * FT\\ F Fr!   