
    /	                         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  G d	 d
ej                        Zy)z#The configs waiters delete command.    )absolute_import)division)unicode_literals)util)base)flags)logc                   .    e Zd ZdZddiZed        Zd Zy)Deletez`Delete waiter resources.

  This command deletes the waiter resource with the specified name.
  EXAMPLESz
          To delete 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    4lib/surface/runtime_config/configs/waiters/delete.pyArgszDelete.Args+   s&     
'
%78    c                    t        j                         }t        j                         }t        j                  |j                  |      }|j                  |j                  |j                                      t        j                  |       y)zRun 'runtime-configs waiters delete'.

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

    Raises:
      HttpException: An http error response was received while executing api
          request.
    )r   N)
r   WaiterClientMessagesParseWaiterNamer   r   0RuntimeconfigProjectsConfigsWaitersDeleteRequestRelativeNamer	   DeletedResource)selfargswaiter_clientmessageswaiter_resources        r   Runz
Delete.Run7   sq     %%'M}}H**499d;OAA --/ 	B 	
 (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   googlecloudsdk.corer	   DeleteCommandr   r)   r   r   <module>r0      s1     * &  ' 6 ( ; #1)T 1)r   