
    3	                     ,   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                  ej                  j                  ej                  j                   ej                  j"                         G d	 d
ej$                               Zy)Describes an AlloyDB operation.    )absolute_import)division)unicode_literals)api_util)base)flags)
propertiesc                   0    e Zd ZdZdddZed        Zd Zy)Describer   z{description}zo        To describe an operation, run:

          $ {command} operation-123456789 --region=us-central1
        )DESCRIPTIONEXAMPLESc                 X    t        j                  |        t        j                  |        y)zySpecifies additional command flags.

    Args:
      parser: argparse.Parser: Parser object for command line inputs.
    N)r	   	AddRegionAddOperation)parsers    *lib/surface/alloydb/operations/describe.pyArgszDescribe.Args,   s     
OOF	v    c                    t        j                  | j                               }|j                  j	                  dt
        j                  j                  j                  j                  |j                  |j                        }|j                  j                  |j                               }|j                  j                   j#                  |      S )zConstructs and sends request.

    Args:
      args: argparse.Namespace, An object that contains the values for the
          arguments specified in the .Args() method.

    Returns:
      ProcessHttpResponse of the request made.
    z%alloydb.projects.locations.operations)
projectsIdlocationsIdoperationsId)name)r   AlloyDBClientReleaseTrackresource_parserCreater
   VALUEScoreproject	GetOrFailregion	operationalloydb_messages,AlloydbProjectsLocationsOperationsGetRequestRelativeNamealloydb_clientprojects_locations_operationsGet)selfargsclientoperation_refreqs        r   RunzDescribe.Run6   s     ##D$5$5$78F**11/$$))11;;KK^^	 2 %M
 
!
!
N
N'') O +C  >>BB3GGr   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r0    r   r   r   r      s2     ( 		-  Hr   r   N)r4   
__future__r   r   r   googlecloudsdk.api_lib.alloydbr   googlecloudsdk.callioper   "googlecloudsdk.command_lib.alloydbr	   googlecloudsdk.corer
   ReleaseTracksr   ALPHABETAGADescribeCommandr   r7   r   r   <module>rB      s}    & '  ' 3 ( 4 * D%%++T->->-C-C%%((**Ht## *H**Hr   