
    >	                     ,   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)Deletes 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)Cancelr   z{description}zm        To delete 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/delete.pyArgszCancel.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:
      A resource object dispatched by display.Displayer().
    z%alloydb.projects.locations.operations)
projectsIdlocationsIdoperationsId)name)r   AlloyDBClientReleaseTrackresource_parserCreater
   VALUEScoreproject	GetOrFailregion	operationalloydb_messages/AlloydbProjectsLocationsOperationsDeleteRequestRelativeNamealloydb_clientprojects_locations_operationsDelete)selfargsclientoperation_refreqs        r   Runz
Cancel.Run6   s     ##D$5$5$78F**11/$$))11;;KK^^	 2 %M
 
!
!
Q
Q'') R +C  >>EEcJJr   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r0    r   r   r   r      s2     & 		-  Kr   r   N)r4   
__future__r   r   r   googlecloudsdk.api_lib.alloydbr   googlecloudsdk.callioper   "googlecloudsdk.command_lib.alloydbr	   googlecloudsdk.corer
   ReleaseTracksr   ALPHABETAGADeleteCommandr   r7   r   r   <module>rB      s}    $ '  ' 3 ( 4 * D%%++T->->-C-C%%((**KT *K**Kr   