
    _
                         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 ej                   G d	 d
ej                               Zy)z*Command to show a specified investigation.    )absolute_import)division)unicode_literals)args)util)base)cloud_assistc                   &    e Zd ZdZed        Zd Zy)Describea  Show metadata for an investigation.

  Shows metadata for an investigation given a valid investigation ID.

  This command can fail for the following reasons:
  * The investigation specified does not exist.
  * The active account does not have permission to access the given
  investigation.

  ## EXAMPLES

  The following command prints metadata for an investigation with the ID
  `example-foo-bar-1`:

    $ {command} example-foo-bar-1
  c                     t        j                  | d       | j                  dddd       | j                  dddd	       y )
Nzto describe)verbz--detailF
store_truez0Include extra information in the default output.)requiredactionhelpz--rawz_Return the full, unaltered API response instead of the version formatted for human consumption.)gca_argsAddInvestigationResourceArgadd_argument)parsers    :lib/surface/gemini/cloud_assist/investigations/describe.pyArgszDescribe.Args/   sT    ((mD
?	   0      c                    |j                  d      s'|j                  s|j                  rd|_        nd|_        |j                  j
                  j                         }|j                  r#t        j                  |j                               S t        j                  t        j                  |j                                     S )Nformatz(value(investigation_markdown_detailed())z%value(investigation_markdown_short()))IsSpecifiedrawdetailr   CONCEPTSinvestigationParsegca_utilGetInvestigationRelativeNamer	   ReformatInvestigation)selfr   investigation_refs      r   RunzDescribe.RunB   s    H%dhh	@=3399;xx&&'8'E'E'GHH--!!"3"@"@"BC r   N)__name__
__module____qualname____doc__staticmethodr   r'    r   r   r   r      s     "  $r   r   N)r+   
__future__r   r   r   *googlecloudsdk.api_lib.gemini_cloud_assistr   r   r   r!   googlecloudsdk.callioper   !googlecloudsdk.command_lib.geminir	   DefaultUniverseOnlyDescribeCommandr   r-   r   r   <module>r4      sF     1 &  ' G G ( : 3t## 3 3r   