
    1                         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  ej                  ej                  j                         G d
 dej                                Zy)z0Command to show metadata for a specified folder.    )absolute_import)division)unicode_literals)
operations)base)endpoint_utils)flags)tag_argumentsc                   &    e Zd ZdZed        Zd Zy)Describea  Show metadata for an operation.

  Show metadata for an operation, given a valid operation ID.

  This command can fail for the following reasons:
      * The operation specified does not exist.
      * You do not have permission to view the operation.

  ## EXAMPLES

  The following command prints metadata for an operation with the
  ID `fc.3589215982`:

    $ {command} fc.3589215982
  c                 x    t        j                  d      j                  |        t        j                  | d       y )Nzyou want to describe.zRegion or zone of the Operation to get. This field is not required if the Operation is on a global resource such as a Project or TagKey.)r	   OperationIdArgAddToParserr
   AddLocationArgToParser)parsers    3lib/surface/resource_manager/operations/describe.pyArgszDescribe.Args.   s3    	01==fE((	MO    c                     |j                  d      r|j                  nd }t        j                  |      5  t	        j
                  |j                        cd d d        S # 1 sw Y   y xY w)Nlocation)IsSpecifiedr   r   CrmEndpointOverridesr   GetOperationV3id)selfargsr   s      r   RunzDescribe.Run5   sF     $ 0 0 <t}}$H		,	,X	6&&tww/ 
7	6	6s   AA'N)__name__
__module____qualname____doc__staticmethodr   r    r   r   r   r      s"      O O0r   r   N)r!   
__future__r   r   r   'googlecloudsdk.api_lib.resource_managerr   googlecloudsdk.callioper   +googlecloudsdk.command_lib.resource_managerr   r	   r
   ReleaseTracksReleaseTrackALPHADescribeCommandr   r#   r   r   <module>r,      s\    7 &  ' > ( F = E D%%++,0t## 0 -0r   