
                             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
  \R                  \R                  " \R                  R                  5       " S S	\R                  5      5       5       rg
)zCImplementation of gcloud Procurement consumer order cancel command.    )absolute_import)division)unicode_literals)apis)base)resource_argsc                   .    \ rS rSrSr\S 5       rS rSrg)Cancel   z/Cancels the order resource from the Cancel API.c                 R    [         R                  " U S5        U R                  SSS9  g)zfRegister flags for this command.

Args:
  parser: argparse.ArgumentParser to register arguments with.
zOrder to describe.z--etagz1The weak etag for validation check, if specified.)helpN)r   AddOrderResourceArgadd_argument)parsers    :lib/surface/commerce_procurement/consumer/orders/cancel.pyArgsCancel.Args   s/     %%f.BC
J  L    c                     UR                   R                  R                  5       n[        R                  R                  UR                  5       UR                  5      $ )z~Runs the command.

Args:
  args: The arguments that were provided to this command invocation.

Returns:
  An Order operation.
)CONCEPTSorderParser   Ordersr
   RelativeNameetag)selfargs	order_refs      r   Run
Cancel.Run*   s@     ##))+I;;i446		BBr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r   __static_attributes__r!   r   r   r
   r
      s!     8L L
Cr   r
   N)r&   
__future__r   r   r   +googlecloudsdk.api_lib.commerce_procurementr   googlecloudsdk.callioper   /googlecloudsdk.command_lib.commerce_procurementr   HiddenReleaseTracksReleaseTrackALPHACommandr
   r!   r   r   <module>r2      sb    J &  ' < ( I D%%++,CT\\ C - Cr   