
    ^	                        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 suspend an in-progress Rollout.    )rollouts)base)flags)concept_parsersz{description}z         To suspend 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)SuspendSuspend in-progress Rollout.v1c                     t         j                  j                  dt        j                         ddd      j                  |        | j                  ddd       y )	NrolloutzThe rollout to suspend.TF)requiredprefixesz--reasonzReason for suspending rollout.)r   help)r   ConceptParserForResourcer   GetRolloutResourceSpecAddToParseradd_argument)parsers    8lib/surface/container/fleet/packages/rollouts/suspend.pyArgszSuspend.Args(   sZ    !!--$$&! .  k&
U)I      c                     t        j                  | j                        }|j                  t	        j
                  |      t	        j                  |      |j                  |j                  |j                        S )zRun the suspend command.)projectlocationfleet_packager   reason)
apisRolloutsClient_api_versionr
   r   
GetProjectGetLocationr   r   r   )selfargsclients      r   RunzSuspend.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)SuspendBetar   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)SuspendAlphar   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    1 L ( E D # D%%(()dll  * > D%%**+'  ,  D%%++,7  - r   