
    i                         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  G d
 dej                        Zy)z1The gcloud datastore operations describe command.    )absolute_import)division)unicode_literals)
operations)base)flags)
properties)	resourcesc                   .    e Zd ZdZddiZed        Zd Zy)Describez>Retrieves information about a Cloud Datastore admin operation.EXAMPLESz          To see information on the operation with id `exampleId`, run:

            $ {command} exampleId

          or

            $ {command} projects/your-project-id/operations/exampleId
      c                 0    t        j                  | d       y)ztRegister flags for this command.

    Args:
      parser: argparse.ArgumentParser, the parser for this command.
    retrieveN)r   AddOperationNameFlag)parsers    ,lib/surface/datastore/operations/describe.pyArgszDescribe.Args,   s     
vz2    c                     t         j                  j                  |j                  dt        j
                  j                  j                  j                  id      j                         }t        j                  |      S )N
projectsIdzdatastore.projects.operations)params
collection)r
   REGISTRYParsenamer	   VALUEScoreproject	GetOrFailRelativeNamer   GetOperation)selfargsr   s      r   RunzDescribe.Run5   sk    ##		*++0088BB
 3 $ 4
 5ALN 	 ""4((r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r$    r   r   r   r      s/    F 
- 3 3)r   r   N)r(   
__future__r   r   r    googlecloudsdk.api_lib.datastorer   googlecloudsdk.callioper   $googlecloudsdk.command_lib.datastorer   googlecloudsdk.corer	   r
   DescribeCommandr   r+   r   r   <module>r2      s4    8 &  ' 7 ( 6 * ) )t##  )r   