
                             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
 ej                   ej                  ej                  j                         G d d	ej                                      Zy
)zJImplementation of gcloud Procurement consumer operations describe command.    )absolute_import)division)unicode_literals)apis)base)resource_argsc                   &    e Zd ZdZed        Zd Zy)Describez8Returns the Operation object resulting from the Get API.c                 T    | j                  d      }t        j                  |d       y)zrRegister flags for this command.

    Args:
      parser: argparse.ArgumentParser to register arguments with.
    T)requiredzOrder operation to describe.N)add_mutually_exclusive_groupr   AddOrderOperationResourceArg)parseroperation_name_groups     @lib/surface/commerce_procurement/consumer/operations/describe.pyArgszDescribe.Args   s-     ">>>M../C/MO    c                     |j                   j                  j                         }|r-t        j                  j                  |j                               S t        d      )zRuns the command.

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

    Returns:
      An Operation message.
    z No matching operation spoecified)CONCEPTSorder_operationParser   
OperationsGetOrderOperationRelativeName
ValueError)selfargsorder_operation_refs      r   RunzDescribe.Run*   sQ     --77==?__..

*
*
,. . 9::r   N)__name__
__module____qualname____doc__staticmethodr   r    r   r   r
   r
      s!     AO O;r   r
   N)r#   
__future__r   r   r   +googlecloudsdk.api_lib.commerce_procurementr   googlecloudsdk.callioper   /googlecloudsdk.command_lib.commerce_procurementr   HiddenReleaseTracksReleaseTrackALPHADescribeCommandr
   r%   r   r   <module>r/      sc    Q &  ' < ( I D%%++,;t## ; - ;r   