
    \                         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                   G d	 d
ej                               Zy)z;Implementation of delete command for batch operations jobs.    )absolute_import)division)unicode_literals)storage_batch_operations_api)base)resource_args)logc                   0    e Zd ZdZdddZed        Zd Zy)Deletez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                 0    t        j                  | d       y )Nz	to delete)r   add_batch_job_resource_arg)parsers    3lib/surface/storage/batch_operations/jobs/delete.pyArgszDelete.Args.   s    ,,V[A    c                 
   |j                   j                  j                         j                         }t	        j
                         j                  |       t        j                  j                  dj                  |             y )NzDeleted batch job: {})CONCEPTS	batch_jobParseRelativeNamer   StorageBatchOperationsApidelete_batch_jobr	   statusPrintformat)selfargsjob_names      r   Runz
Delete.Run2   s]    }}&&,,.;;=H ::<MM JJ,33H=>r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   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>r0      sE    B &  ' G ( R # ?T\\ ? ?r   