
    V                     *   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  SSKJr  SSKJr  Sr\	R*                  \	R,                  " \	R.                  R0                  5       " S S\	R2                  5      5       5       rg)z%Command to delete a rollout sequence.    )absolute_import)division)unicode_literals)client)util)base)parser_arguments)parser_extensions)flags)log)gkehub_v1alpha_messageszA
To delete a rollout sequence, run:

$ {command} ROLLOUTSEQUENCE
c                       \ rS rSrSrS\0r\S\R                  4S j5       r
S\R                  S\R                  4S jrS	rg
)Delete&   z#Delete a rollout sequence resource.EXAMPLESparserc                 p    [         R                  " U 5      nUR                  5         UR                  5         g)z'Registers flags for the delete command.N)rolloutsequence_flagsRolloutSequenceFlagsAddRolloutSequenceResourceArgAddAsync)r   r   s     6lib/surface/container/fleet/rolloutsequences/delete.pyArgsDelete.Args-   s*     "66v>E	'')	NN    argsreturnc                    [         R                  " U[        R                  R                  S9n[
        R                  " 5       n[        R                  " U5      Ul	        [        R                  " U R                  5       S9nUR                  U5      n[        R                  " U5      nUR                  5       (       a5  [        R                   " SR#                  UR%                  5       5      5        U$ [        R&                  " [        R                  R                  S9nUR)                  [        R*                  " U5      5      n[        R                   " SR#                  UR%                  5       5      5        U$ )zRuns the delete command.)release_trackz,Delete in progress for Rollout sequence [{}]zDeleted Rollout sequence [{}].)r   RolloutSequenceFlagParserr   ReleaseTrackALPHAalpha_messages4GkehubProjectsLocationsRolloutSequencesDeleteRequestr   RolloutSequenceNamenamer   FleetClientDeleteRolloutSequenceRolloutSequenceRefAsyncr   PrintformatSelfLinkOperationClientWaitOperationRef)	selfr   flag_parserreqfleet_client	operationrolloutsequence_refoperation_clientcompleted_operations	            r   Run
Delete.Run4   s(   'AAD--33K 
M
M
OC''-CH%%D4E4E4GHL2237I11$7	ii
8
?
?!**,
 --''-- +//0A0A)0LMII(//((*	
 r    N)__name__
__module____qualname____firstlineno____doc__	_EXAMPLESdetailed_helpstaticmethodr	   ArgumentInterceptorr   r
   	Namespacer#   	Operationr9   __static_attributes__r;   r   r   r   r   &   sQ     ,y)-#77  '11 n6N6N r   r   N)r@   
__future__r   r   r   &googlecloudsdk.api_lib.container.fleetr   r   googlecloudsdk.callioper   r	   r
   ;googlecloudsdk.command_lib.container.fleet.rolloutsequencesr   r   googlecloudsdk.corer   4googlecloudsdk.generated_clients.apis.gkehub.v1alphar   r#   rA   DefaultUniverseOnlyReleaseTracksr!   r"   DeleteCommandr   r;   r   r   <module>rQ      sz    , '  ' 9 7 ( 4 5 f # j	 D%%++,*T * - *r   