
                         b   S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r	  SSK
Jr  SS	K
Jr  SS
KJr  \	R                  " \	R                   R"                  \	R                   R$                  \	R                   R&                  5      \	R(                   " S S\	R*                  5      5       5       rg)z-`gcloud api-gateway gateways delete` command.    )absolute_import)division)unicode_literals)gateways)
operations)base)operations_util)resource_args)
console_ioc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Delete   zDelete an API Gateway.z{description}z        To delete a gateway 'my-gateway' in 'us-central1', run:

          $ {command} my-gateway --location=us-central1
        )DESCRIPTIONEXAMPLESc                 n    [         R                  R                  U 5        [        R                  " U SSS9  g)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.
deletedT)
positionalN)r   
ASYNC_FLAGAddToParserr
   AddGatewayResourceArg)parsers    *lib/surface/api_gateway/gateways/delete.pyArgsDelete.Args/   s(     	OO'''	dK    c                    UR                   R                  R                  5       n[        R                  " SR                  UR                  5       5      SSSSS9  [        R                  " 5       R                  U5      nSR                  UR                  5       5      n[        R                  " UR                  [        R                  " 5       UUR                   S9$ )zRun 'api-gateway gateways delete'.

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

Raises:
  OperationCancelledError
Returns:
  The response from the Delete API call.
zgAre you sure? This will delete the gateway '{}', along with all of the associated consumer information.zContinue anywayT)messageprompt_stringdefaultthrow_if_unattendedcancel_on_noz*Waiting for API Gateway [{}] to be deleted)wait_stringis_async)CONCEPTSgatewayParser   PromptContinueformatRelativeNamer   GatewayClientr   Namer	   PrintOperationResultnamer   OperationsClientasync_)selfargsgateway_refrespwaits        r   Run
Delete.Run;   s     --''--/K vk6689'  !!#**;7D7>>D //		:..0d r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r5   __static_attributes__r7   r   r   r   r      s3      		- 	L 	L r   r   N)r<   
__future__r   r   r   "googlecloudsdk.api_lib.api_gatewayr   r   googlecloudsdk.callioper   &googlecloudsdk.command_lib.api_gatewayr	   r
   googlecloudsdk.core.consoler   ReleaseTracksReleaseTrackALPHABETAGADefaultUniverseOnlyDeleteCommandr   r7   r   r   <module>rL      s     4 &  ' 7 9 ( B @ 2 D%%++T->->-C-C%%((*:T : *:r   