
    ]                         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 cancel 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	)
Cancel   zCancel a batch-operations job.z-
      Cancel the batch operation job.
      a  
      To cancel a batch job with the name `my-job` in location `us-central1`:

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

      To cancel 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 cancel)r   add_batch_job_resource_arg)parsers    3lib/surface/storage/batch_operations/jobs/cancel.pyArgsCancel.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Canceled batch job: {})CONCEPTS	batch_jobParseRelativeNamer   StorageBatchOperationsApicancel_batch_jobr	   statusPrintformat)selfargsjob_names      r   Run
Cancel.Run2   s]    }}&&,,.;;=H ::<MM JJ-44X>?r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r#   __static_attributes__r%   r   r   r   r      s2    &

	- 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      sH    B &  ' G ( R # @T\\ @ @r   