
                             S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r	  SSK
Jr  SSKJr   " S	 S
\	R                  5      rg)z"Delete autoscaling policy command.    )absolute_import)division)unicode_literals)dataproc)base)flags)
console_ioc                   .    \ rS rSrSr\S 5       rS rSrg)Delete   zDelete an autoscaling policy.

## EXAMPLES

The following command deletes the autoscaling policy
`example-autoscaling-policy`:

  $ {command} example-autoscaling-policy
c                     [         R                  " U R                  5       5      n[        R                  " USUR
                  5        g )Ndelete)dpDataprocReleaseTrackr   AddAutoscalingPolicyResourceArgapi_version)clsparserr   s      3lib/surface/dataproc/autoscaling_policies/delete.pyArgsDelete.Args&   s5    {{3++-.H	))&(*2*>*>@    c                    [         R                  " U R                  5       5      nUR                  nUR                  R
                  R                  5       nUR                  UR                  5       S9n[        R                  " SR                  UR                  5       5      SS9  UR                  R                  R                  U5        g )N)namez/The autoscaling policy '[{0}]' will be deleted.T)messagecancel_on_no)r   r   r   messagesCONCEPTSautoscaling_policyParse7DataprocProjectsRegionsAutoscalingPoliciesDeleteRequestRelativeNamer	   PromptContinueformatNameclient$projects_regions_autoscalingPoliciesr   )selfargsr   r   
policy_refrequests         r   Run
Delete.Run,   s    {{4,,./H  H11779JNN$$& O (G AHHOO
 OO88??Hr    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r-   __static_attributes__r/   r   r   r   r      s#     @ @
Ir   r   N)r4   
__future__r   r   r   googlecloudsdk.api_lib.dataprocr   r   googlecloudsdk.callioper   #googlecloudsdk.command_lib.dataprocr   googlecloudsdk.core.consoler	   DeleteCommandr   r/   r   r   <module>r=      s3    ) &  ' : ( 5 2IT Ir   