
                         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The configs describe command.    )absolute_import)division)unicode_literals)util)basec                   .    e Zd ZdZddiZed        Zd Zy)DescribezDescribe runtime-config resources.

  This command displays information about the runtime-config resource with the
  specified name.
  EXAMPLESzu          To describe a runtime-config resource named "my-config", run:

            $ {command} my-config
          c                 *    | j                  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.
    namez!The runtime-config resource name.)helpN)add_argument)parsers    .lib/surface/runtime_config/configs/describe.pyArgszDescribe.Args)   s     %HI    c                    t        j                         }t        j                         }t        j                  |j                        }|j                  |j                  |j                                     }t        j                  |      S )a3  Run 'runtime-configs describe'.

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

    Returns:
      The requested runtime-config resource.

    Raises:
      HttpException: An http error response was received while executing api
          request.
    )r   )	r   ConfigClientMessagesParseConfigNamer   Get&RuntimeconfigProjectsConfigsGetRequestRelativeNameFormatConfig)selfargsconfig_clientmessagesconfig_resourceresults         r   RunzDescribe.Run4   ss     %%'M}}H**4995O77 --/ 	8 	
F
 V$$r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r!    r   r   r	   r	      s3      - J J%r   r	   N)r%   
__future__r   r   r   %googlecloudsdk.api_lib.runtime_configr   googlecloudsdk.callioper   DescribeCommandr	   r(   r   r   <module>r-      s+     $ &  ' 6 (2%t## 2%r   