
    	                         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KJr  SS	KJr  SS
KJr   " S S\R$                  5      rg)z7Command to delete a specified Batch resource allowance.    )absolute_import)division)unicode_literals)
exceptions)resource_allowances)util)base)resource_args)logc                   .    \ rS rSrSr\S 5       rS rSrg)Delete   a  Delete a Batch resource allowance.

This command can fail for the following reasons:
* The resource allowance specified does not exist.
* The active account does not have permission to delete the given resource
allowance.

## EXAMPLES

To delete the resource allowance with name
`projects/foo/locations/us-central1/resourceAllowances/bar`, run:

  $ {command} projects/foo/locations/us-central1/resourceAllowances/bar
c                 0    [         R                  " U 5        g )N)r
    AddResourceAllowanceResourceArgs)parsers    /lib/surface/batch/resource_allowances/delete.pyArgsDelete.Args/   s    226:    c                    U R                  5       n[        R                  " U5      nUR                  R                  R                  5       n UR                  U5      n[        R                  R                  SR!                  UR#                  5       S95        U$ ! [        R                   a*  n[        R                  " U[        R                  5      eS nAff = f)NzAResourceAllowance {resourceAllowanceName} deletion is in progress)resourceAllowanceName)ReleaseTrackr   ResourceAllowancesClientCONCEPTSresource_allowanceParser   apitools_exceptions	HttpErrorr   HttpExceptionr   HTTP_ERROR_FORMATr   statusPrintformatRelativeName)selfargsrelease_trackclientresource_allowance_ref	operationes          r   Run
Delete.Run3   s    %%'M 99-HF!]]==CCE@-- 67i JJK	&<&I&I&K	L  (( @$$Q(>(>??@s   B C-%CC N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r,   __static_attributes__r.   r   r   r   r      s      ; ;r   r   N)r3   
__future__r   r   r   apitools.base.pyr   r   googlecloudsdk.api_lib.batchr   r   googlecloudsdk.api_lib.utilgooglecloudsdk.callioper	    googlecloudsdk.command_lib.batchr
   googlecloudsdk.corer   DeleteCommandr   r.   r   r   <module>r>      s:     > &  ' > < - 2 ( : #!T !r   