
    
                        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 dd	lmZ dd
lmZ  ej                  ej                   j"                         G d dej$                               Z ej                  ej                   j(                  ej                   j*                         G d de             Zy)z2Command to get a Persistent Resource in Vertex AI.    )absolute_import)division)unicode_literals)client)base)	constants)endpoint_util)flags)
validationc                   >    e Zd ZdZej
                  Zed        Zd Z	y)
DescribeGA  Get detailed information about a PersistentResource with a given id.

  ## EXAMPLES

  To get the persistent resource with the PersistentResource id ``123'' under
  project ``example'' in region ``us-central1'', run:

    $ {command} 123 --project=example --region=us-central1
  c                 0    t        j                  | d       y )Nzto describe)r
    AddPersistentResourceResourceArg)parsers    /lib/surface/ai/persistent_resources/describe.pyArgszDescribeGA.Args+   s    	**6=A    c                    |j                   j                  j                         }|j                         d   }t	        j
                  |       t        j                  | j                  |      5  t        j                  | j                        j                  |j                               }|cd d d        S # 1 sw Y   y xY w)NlocationsId)versionregion)r   )CONCEPTSpersistent_resourceParseAsDictr   ValidateRegionr	   AiplatformEndpointOverrides_api_versionr   PersistentResourcesClientGetRelativeName)selfargspersistent_resource_refr   responses        r   RunzDescribeGA.Run/   s    "mm??EEG$++-m<Ff%		2	2!!&
 11###0023  
 
 
s   .?B77C N)
__name__
__module____qualname____doc__r   
GA_VERSIONr   staticmethodr   r'    r   r   r   r      s-     %%,B Br   r   c                   (    e Zd ZdZej
                  Zy)DescribePreGAr   N)r(   r)   r*   r+   r   BETA_VERSIONr   r.   r   r   r0   r0   =   s     '',r   r0   N)r+   
__future__r   r   r   .googlecloudsdk.api_lib.ai.persistent_resourcesr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   r	   2googlecloudsdk.command_lib.ai.persistent_resourcesr
   r   ReleaseTracksReleaseTrackGADescribeCommandr   ALPHABETAr0   r.   r   r   <module>r=      s    9 &  ' A ( 3 7 D I D%%(()%%  *> D%%++T->->-C-CD(J ( E(r   