
    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                   " S
 S\R                   5      5       rg)zCommand to delete a fleet.    )client)types)util)base)parser_arguments)parser_extensions)flags)logc                   ~    \ rS rSrSr\S\R                  4S j5       rS\	R                  S\R                  4S jrSrg	)
Delete   aR  Delete a fleet.

This command can fail for the following reasons:
* The project specified does not exist.
* The project specified already has a fleet.
* The active account does not have permission to access the given project.

## EXAMPLES

To delete a fleet in project `example-foo-bar-1`, run:

  $ {command} --project=example-foo-bar-1
parserc                 P    [         R                  " U 5      nUR                  5         g )N)fleet_flags
FleetFlagsAddAsync)r   r	   s     %lib/surface/container/fleet/delete.pyArgsDelete.Args.   s    ""6*E	NN    argsreturnc                 B   [         R                  " XR                  5       5      nSUR                  5       ;  a*  UR	                  5       (       a  [
        R                  Ul        UR                  R                  [        R                  " UR                  5       5      S9n[        R                  " U R                  5       5      nUR                  U5      n[        R                   " UR                  5       5      nUR	                  5       (       a&  ["        R$                  " USUR	                  5       S9  U$ [        R&                  " U R                  5       S9n[        R(                  " U5      nUR+                  U5      n	["        R$                  " USUR	                  5       S9  U	$ )aU  Runs the fleet delete command.

A completed fleet delete operation response body is empty, gcloud client
won't apply the default output format in non-async mode.

Args:
  args: Arguments received from command line.

Returns:
  A completed create operation; if `--async` is specified, return a
  long-running operation to be polled manually.
z--format)namezAnthos fleet)kindis_async)release_track)r   FleetFlagParserReleaseTrackGetSpecifiedArgNamesAsync
fleet_utilOPERATION_FORMATformatmessages*GkehubProjectsLocationsFleetsDeleteRequestr   FleetResourceNameProjectr   FleetClientDeleteFleetFleetRefr
   DeletedResourceOperationClientOperationRefWait)
selfr   flag_parserreqfleetclient	operation	fleet_refoperation_clientoperation_refcompleted_operations
             r   Run
Delete.Run3   sU    --d4E4E4GHK2244					 11



I
I##K$7$7$9: J C $$T%6%6%89K'',Ik1134I	
.;3D3D3F --D<M<M<OP%%i0M*//>1B1B1D r    N)__name__
__module____qualname____firstlineno____doc__staticmethodr   ArgumentInterceptorr   r   	Namespacer   	Operationr9   __static_attributes__r;   r   r   r   r      sG     #77  &'11 &eoo &r   r   N)r@   &googlecloudsdk.api_lib.container.fleetr   r   r   googlecloudsdk.callioper   r   r   *googlecloudsdk.command_lib.container.fleetr	   r   r"   googlecloudsdk.corer
   DefaultUniverseOnlyDeleteCommandr   r;   r   r   <module>rL      sN     ! : 8 7 ( 4 5 K I # :T : :r   