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

  This command deletes the runtime-config resource with the specified name and
  all of its variable and waiter children.
  EXAMPLESzs          To delete 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/delete.pyArgszDelete.Args*   s     %HI    c                    t        j                         }t        j                         }t        j                  |j                        }|j                  |j                  |j                                      t        j                  |       y)zRun 'runtime-configs 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   ConfigClientMessagesParseConfigNamer   r
   )RuntimeconfigProjectsConfigsDeleteRequestRelativeNamer   DeletedResource)selfargsconfig_clientmessagesconfig_resources        r   Runz
Delete.Run5   sn     %%'M}}H**4995O:: --/ 	; 	
 (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   googlecloudsdk.corer   DeleteCommandr
   r'   r   r   <module>r-      s.     " &  ' 6 ( #0)T 0)r   