
    >                         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	 dd	l
mZ dd
l
mZ ddlmZ dZej                   ej                   dZ G d dej$                        Zy)z%services operations describe command.    )absolute_import)division)unicode_literals)apikeys)scm)services_util)serviceusage)actions)base)common_flagsi  )akmfacfc                   &    e Zd ZdZed        Zd Zy)Describea!  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                     t        j                  d      j                  |        | j                  j	                  d       t        j                  dd      }| j                  d|dd	       y
)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ArgszDescribe.Args3   sj     }5AA&I
!!	  &&v4NOF
(	  +    c                     t        j                  |j                        }t        j	                  |t
        j                        } ||j                        }t        j                  |       y)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   RunzDescribe.RunI   sL     44T^^DI"&&y,2K2KLK	T^^	$B,,R0r!   N)__name__
__module____qualname____doc__staticmethodr    r.    r!   r   r   r   &   s     
 + +*1r!   r   N)r2   
__future__r   r   r   googlecloudsdk.api_lib.servicesr   r   r   r	   googlecloudsdk.callioper
   r   #googlecloudsdk.command_lib.servicesr   MAX_RESPONSE_BYTESr'   r%   DescribeCommandr   r4   r!   r   <module>r;      s\     , &  ' 3 / 9 8 + ( <     11t## 11r!   