
                         n    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  G d dej                        Z
y	)
zA command that describes a API.    )absolute_import)division)unicode_literals)apis)basec                   &    e Zd ZdZed        Zd Zy)Describez4Describe the details of an API in discovery service.c                 `    | j                  dd       | j                  j                  d       y )Napiz0The api_name/api_version to show the details of.)helpjson)add_argumentdisplay_info	AddFormat)parsers    +lib/surface/meta/apis/discovery/describe.pyArgszDescribe.Args   s2    
?  A !!&)    c                     t        j                  dd      }|j                  }|j                  j	                  d      \  }}|j                  ||      }|j                   j                  |      S )N	discoveryv1/)r   version)r   GetClientInstanceMESSAGES_MODULEr   splitDiscoveryApisGetRestRequestGetRest)selfargsclientmessagesapi_nameapi_versionrequests          r   RunzDescribe.Run$   sg    ##K6F%%H HHNN3/Hk22k 3 +G ;;w''r   N)__name__
__module____qualname____doc__staticmethodr   r&    r   r   r	   r	      s    <* *(r   r	   N)r*   
__future__r   r   r   googlecloudsdk.api_lib.utilr   googlecloudsdk.callioper   DescribeCommandr	   r,   r   r   <module>r1      s+     & &  ' , ((t## (r   