
    \                         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  \R                   " S	 S
\R                  5      5       rg)z;Implementation of delete command for batch operations jobs.    )absolute_import)division)unicode_literals)storage_batch_operations_api)base)resource_args)logc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Delete   zDelete a batch-operations job.z-
      Delete the batch operation job.
      a  
      To delete a batch job with the name `my-job` in location `us-central1`:

          $ {command} my-job --location=us-central1

      To delete the same batch job with fully specified name:

          $ {command} projects/my-project/locations/us-central1/jobs/my-job
      )DESCRIPTIONEXAMPLESc                 2    [         R                  " U S5        g )Nz	to delete)r   add_batch_job_resource_arg)parsers    3lib/surface/storage/batch_operations/jobs/delete.pyArgsDelete.Args.   s    ,,V[A    c                    UR                   R                  R                  5       R                  5       n[        R
                  " 5       R                  U5        [        R                  R                  SR                  U5      5        g )NzDeleted batch job: {})CONCEPTS	batch_jobParseRelativeNamer   StorageBatchOperationsApidelete_batch_jobr	   statusPrintformat)selfargsjob_names      r   Run
Delete.Run2   s]    }}&&,,.;;=H ::<MM JJ,33H=>r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r#   __static_attributes__r%   r   r   r   r      s1    &

	- B B?r   r   N)r*   
__future__r   r   r   googlecloudsdk.api_lib.storager   googlecloudsdk.callioper   8googlecloudsdk.command_lib.storage.batch_operations.jobsr   googlecloudsdk.corer	   DefaultUniverseOnlyCommandr   r%   r   r   <module>r5      sE    B &  ' G ( R # ?T\\ ? ?r   