
    9	                        d Z ddlmZ ddlmZ ddlmZ ddlm	Z	 dddZ
ej                   ej                  ej                  j                         G d	 d
ej                                      Zej                   ej                  ej                  j"                         G d de                    Zej                   ej                  ej                  j&                         G d de                    Zy)z(Command to abort an in-progress Rollout.    )rollouts)base)flags)concept_parsersz{description}z         To abort Rollout `20240318` for `cert-manager-app` in `us-central1`, run:

          $ {command} 20240318 --fleet-package=cert-manager-app --location=us-central1
        )DESCRIPTIONEXAMPLESc                   .    e Zd ZdZeZdZed        Zd Z	y)AbortAbort Rollout resource.v1c                     t         j                  j                  dt        j                         ddd      j                  |        | j                  ddd       y )	NrolloutzThe rollout to abort.TF)requiredprefixesz--reasonzReason for aborting rollout.)r   help)r   ConceptParserForResourcer   GetRolloutResourceSpecAddToParseradd_argument)parsers    6lib/surface/container/fleet/packages/rollouts/abort.pyArgsz
Abort.Args(   sZ    !!--$$& .  k&
U)G      c                     t        j                  | j                        }|j                  t	        j
                  |      t	        j                  |      |j                  |j                  |j                        S )zRun the abort command.)projectlocationfleet_packager   reason)
apisRolloutsClient_api_versionr
   r   
GetProjectGetLocationr   r   r   )selfargsclients      r   Runz	Abort.Run5   sa      !2!23F<<  &""4((({{   r   N)
__name__
__module____qualname____doc___DETAILED_HELPdetailed_helpr"   staticmethodr   r(    r   r   r
   r
       s(       -,
 
	r   r
   c                       e Zd ZdZdZy)	AbortBetar   v1betaNr)   r*   r+   r,   r"   r0   r   r   r2   r2   A   s      ,r   r2   c                       e Zd ZdZdZy)
AbortAlphar   v1alphaNr4   r0   r   r   r6   r6   I   s      ,r   r6   N)r,   /googlecloudsdk.api_lib.container.fleet.packagesr   r    googlecloudsdk.callioper   3googlecloudsdk.command_lib.container.fleet.packagesr   (googlecloudsdk.command_lib.util.conceptsr   r-   DefaultUniverseOnlyReleaseTracksReleaseTrackGACommandr
   BETAr2   ALPHAr6   r0   r   r   <module>rC      s    / L ( E D # D%%(()DLL  * > D%%**+  ,  D%%++,  - r   