
    	                     (   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	iZ ej                  ej                  j                  ej                  j                  ej                  j                          G d
 dej"                               Zy);Retrieves information about a Cloud SQL instance operation.    )absolute_import)division)unicode_literals)api_util)base)
propertiesEXAMPLESzz        To describe an operation with the name "prod-operation-id", run:

          $ {command} prod-operation-id
        c                   *    e Zd ZdZeZed        Zd Zy)Getr   c                 *    | j                  dd       y)zArgs is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use it to add arguments that go
          on the command line after this command. Positional arguments are
          allowed.
    	operationz,Name that uniquely identifies the operation.)helpN)add_argument)parsers    &lib/surface/sql/operations/describe.pyArgszGet.Args*   s     H  J    c                    t        j                  t         j                        }|j                  }|j                  }|j
                  j                  |j                  ddt        j                  j                  j                  j                  i      }|j                  j                  |j                  |j                  |j                              S )a  Retrieves information about a Cloud SQL instance operation.

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

    Returns:
      A dict object representing the operations resource if the api request was
      successful.
    zsql.operationsproject)
collectionparams)r   r   )r   	SqlClientAPI_VERSION_DEFAULT
sql_clientsql_messagesresource_parserParser   r	   VALUEScorer   	GetOrFail
operationsr   SqlOperationsGetRequest)selfargsclientr   r   operation_refs         r   RunzGet.Run6   s      < <=F""J&&L**00#:,,1199CCD 1 FM
   $$,,!))]5L5L 	- 	NO Or   N)	__name__
__module____qualname____doc__DETAILED_HELPdetailed_helpstaticmethodr   r(    r   r   r   r   #   s'     D-	J 	JOr   r   N)r,   
__future__r   r   r   googlecloudsdk.api_lib.sqlr   googlecloudsdk.callioper   googlecloudsdk.corer	   r-   ReleaseTracksReleaseTrackGABETAALPHADescribeCommandr   r0   r   r   <module>r;      s    B &  ' / ( * 	 D%%(($*;*;*@*@%%++-'O$

 'O-'Or   