
    	                         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
  ej                  ej                  j                  ej                  j                  ej                  j                         G d d	ej                                Zy
)z*recommender API insights Describe command.    )absolute_import)division)unicode_literals)insight)base)flagsc                   0    e Zd ZdZdddZed        Zd Zy)DescribezDescribe an insight.z      Describe an insight. This currently supports the following parent
      entities: project, billing account, folder, and organization.
      zo      To describe an insight:

        $ {command} INSIGHT_ID --project=${PROJECT} --location=${LOCATION}
     )DESCRIPTIONEXAMPLESc                     t        j                  |        | j                  dt        d       | j                  dddd       | j                  d	d
dd       y)zArgs is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use to add arguments that go on
        the command line after this command.
    INSIGHTzinsight to describe)typehelpz
--locationLOCATIONTLocation)metavarrequiredr   z--insight-typeINSIGHT_TYPEz!Insight type to describe insightsN)r   AddParentFlagsToParseradd_argumentstr)parsers    ,lib/surface/recommender/insights/describe.pyArgszDescribe.Args+   sl     
  (
"  
 j4j  J
0	  2    c                     t        j                  | j                               }t        j                  |      }|j                  |      S )zRun 'gcloud recommender insights describe'.

    Args:
      args: argparse.Namespace, The arguments that this command was invoked
        with.

    Returns:
      The result insights to describe
    )r   CreateClientReleaseTrackr   GetInsightNameGet)selfargsclientnames       r   RunzDescribe.RunA   s<     !!$"3"3"56F%D::dr   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r&    r   r   r
   r
      s1     
	
- 2 2*r   r
   N)r*   
__future__r   r   r   "googlecloudsdk.api_lib.recommenderr   googlecloudsdk.callioper   &googlecloudsdk.command_lib.recommenderr   ReleaseTracksr   ALPHABETAGACommandr
   r-   r   r   <module>r7      ss    1 &  ' 6 ( 8 D%%++T->->-C-C%%((*1t|| 1*1r   