
                             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
 ej                   G d d	ej                               Zy
)z'Command to delete transfer agent pools.    )absolute_import)division)unicode_literals)apis)base)	name_utilc                   0    e Zd ZdZdddZed        Zd Zy)Deletez%Delete a Transfer Service agent pool.z      Delete an agent pool. Note that before you can delete a pool, all
      the pool's agents must be stopped, its associated jobs must be disabled,
      and there must be no associated in-progress transfer operations.
      a%        To delete agent pool 'foo', run:

        $ {command} foo

      To check if there are active operations associated with a pool before
      deleting it, scroll through the results of:

        $ {grandparent_command} operations list --format=yaml --operation-statuses=in_progress
      )DESCRIPTIONEXAMPLESc                 *    | j                  dd       y )Nnamez'The name of the job you want to delete.)help)add_argument)parsers    *lib/surface/transfer/agent_pools/delete.pyArgszDelete.Args4   s    
%NO    c                     t        j                  dd      }t        j                  dd      }t        j                  |j
                        }|j                  j                  |j                  |             y )Ntransferv1)r   )	r   GetClientInstanceGetMessagesModuler   add_agent_pool_prefixr   projects_agentPoolsr
   .StoragetransferProjectsAgentPoolsDeleteRequest)selfargsclientmessagesformatted_agent_pool_names        r   Runz
Delete.Run8   sf    ##J5F%%j$7H ) ? ?		 J
%%??* 	@ 	,-r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r"    r   r   r
   r
      s1    -

	
-* P P-r   r
   N)r&   
__future__r   r   r   googlecloudsdk.api_lib.utilr   googlecloudsdk.callioper   #googlecloudsdk.command_lib.transferr   UniverseCompatibleCommandr
   r)   r   r   <module>r0      sA    . &  ' , ( 9 %-T\\ %- %-r   