
    >                         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	  SS	K
Jr  SS
K
Jr  SSKJr  Sr\R                   \R                   S.r " S S\R$                  5      rg)z%services operations describe command.    )absolute_import)division)unicode_literals)apikeys)scm)services_util)serviceusage)actions)base)common_flagsi  )akmfacfc                   .    \ rS rSrSr\S 5       rS rSrg)Describe&   a  Describes an operation resource for a given operation name.

This command will return information about an operation given the name
of that operation.

## EXAMPLES
To describe an operation resource named
`operations/abc`, run:

  $ {command} operations/abc
c                     [         R                  " SS9R                  U 5        U R                  R	                  S5        [
        R                  " SSS9nU R                  SUSSS	9  g
)zArgs is called by calliope to gather arguments for this command.

Args:
  parser: An argparse parser that you can use to add arguments that go
      on the command line after this command. Positional arguments are
      allowed.
zto describe)suffixzX:(metadata.startTime.date(format="%Y-%m-%d %H:%M:%S %Z", tz=LOCAL)) [transforms] defaultfullzThis flag is deprecated.)warnz--fullF)actiondefaulthelpN)r   operation_flagAddToParserdisplay_info	AddFormatr
   DeprecationActionadd_argument)parserr   s     +lib/surface/services/operations/describe.pyArgsDescribe.Args3   sj     }5AA&I
!!	  &&v4NOF
(	  +    c                     [         R                  " UR                  5      n[        R	                  U[
        R                  5      nU" UR                  5      n[        R                  " U5        g)zRun 'services operations describe'.

Args:
  args: argparse.Namespace, The arguments that this command was invoked
      with.

Returns:
  The response from the operations.Get API call.
N)	r   get_operation_namespace	operation_GET_OP_FUNC_MAPgetr	   GetOperationr   PrintOperationWithResponse)selfargs	namespaceget_op_funcops        r    RunDescribe.RunI   sL     44T^^DI"&&y,2K2KLK	T^^	$B,,R0r#    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr!   r0   __static_attributes__r2   r#   r    r   r   &   s     
 + +*1r#   r   N)r7   
__future__r   r   r   googlecloudsdk.api_lib.servicesr   r   r   r	   googlecloudsdk.callioper
   r   #googlecloudsdk.command_lib.servicesr   MAX_RESPONSE_BYTESr)   r'   DescribeCommandr   r2   r#   r    <module>r@      s\     , &  ' 3 / 9 8 + ( <     11t## 11r#   