
                             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)z(Command to delete a specified Batch job.    )absolute_import)division)unicode_literals)
exceptions)jobs)util)base)resource_args)logc                   .    \ rS rSrSr\S 5       rS rSrg)Delete   aD  Delete a job.

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

## EXAMPLES

To delete the job with name
`projects/foo/locations/us-central1/jobs/bar`, run:

  $ {command} projects/foo/locations/us-central1/jobs/bar
c                 0    [         R                  " U 5        g )N)r
   AddJobResourceArgs)parsers     lib/surface/batch/jobs/delete.pyArgsDelete.Args.   s    $$V,    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)Nz%Job {jobName} deletion is in progress)jobName)ReleaseTrackr   
JobsClientCONCEPTSjobParser   apitools_exceptions	HttpErrorr   HttpExceptionr   HTTP_ERROR_FORMATr   statusPrintformatRelativeName)selfargsrelease_trackclientjob_ref	operationes          r   Run
Delete.Run2   s    %%'M__]+Fmm%%'G@--(i JJ<CC$$& D ( )	 (( @$$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   