
    U	                     z    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
  G d d	ej                        Zy
)z%The configs waiters describe command.    )absolute_import)division)unicode_literals)util)base)flagsc                   .    e Zd ZdZddiZed        Zd Zy)DescribezwDescribe waiter resources.

  This command displays information about the waiter resource with the
  specified name.
  EXAMPLESz
          To describe a waiter named "my-waiter" within a configuration named
          "my-config", run:

            $ {command} my-waiter --config-name=my-config
          c                 T    t        j                  |        | 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 waiter name.)helpN)r   AddRequiredConfigFlagadd_argument)parsers    6lib/surface/runtime_config/configs/waiters/describe.pyArgszDescribe.Args+   s&     
'
%78    c                    t        j                         }t        j                         }t        j                  |j                  |      }|j                  |j                  |j                                     }t        j                  |      S )a*  Run 'runtime-configs waiters describe'.

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

    Returns:
      The requested waiter.

    Raises:
      HttpException: An http error response was received while executing api
          request.
    )r   )	r   WaiterClientMessagesParseWaiterNamer   Get-RuntimeconfigProjectsConfigsWaitersGetRequestRelativeNameFormatWaiter)selfargswaiter_clientmessageswaiter_resourceresults         r   RunzDescribe.Run7   su     %%'M}}H**499d;O>> --/ 	? 	
F V$$r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r#    r   r   r
   r
      s1      - 	9 	9%r   r
   N)r'   
__future__r   r   r   %googlecloudsdk.api_lib.runtime_configr   googlecloudsdk.callioper   )googlecloudsdk.command_lib.runtime_configr   DescribeCommandr
   r*   r   r   <module>r0      s.     , &  ' 6 ( ;5%t## 5%r   