
    :
                         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e	fdZ
 ej                  ej                  j                         G d d	ej                               Zy
)z2The command to update Namespace Actuation Feature.    )absolute_import)division)unicode_literals)basereturnc                 (    | dk(  ry| dk(  ry| dk(  ryy )NunspecifiedACTUATION_MODE_UNSPECIFIEDcreate-and-delete-if-created+ACTUATION_MODE_CREATE_AND_DELETE_IF_CREATEDadd-and-remove-fleet-labels*ACTUATION_MODE_ADD_AND_REMOVE_FLEET_LABELS )modes    8lib/surface/container/fleet/namespaceactuation/update.pyModeEnumTranslationr      s*    	]'	++8	**7 +    c                   *    e Zd ZdZdZed        Zd Zy)UpdatezUpdate Namespace Actuation Feature.

  This command updates Namespace Actuation Feature in a fleet.

  ## EXAMPLES

  To update the Namespace Actuation Feature, run:

    $ {command}
  namespaceactuationc                 <    |j                  dt        dg dd       y )Nz--actuation-moder	   )r	   r   r   z1The actuation mode that can the feature will use.)typedefaultchoiceshelp)add_argumentstr)clsparsers     r   ArgszUpdate.Args1   s)    


 E  
r   c                 V   |j                   dk(  ry | j                  j                  | j                  j                  | j                  j	                  | j                  j                  j                  t        |j                                                 }| j                  dg|       y )Nr	   )actuationMode)r   )specz&spec.namespaceactuation.actuation_mode)actuation_modemessagesFeatureCommonFeatureSpecNamespaceActuationFeatureSpecActuationModeValueValuesEnumr   r   )selfargsfeatures      r   Runz
Update.Run?   s     m+mm##]],,#}}JJ"mmIIff'(;(;<  K   - 
 $ G 	KK9:GDr   N)__name__
__module____qualname____doc__feature_nameclassmethodr    r-   r   r   r   r   r   "   s&    	 &, Er   r   N)r1   
__future__r   r   r   googlecloudsdk.callioper   calliope_base3googlecloudsdk.command_lib.container.fleet.featuresr   r   ReleaseTracksReleaseTrackALPHAUpdateCommandr   r   r   r   <module>r<      sb    9 &  ' 9 D8 8 ]77==>,ET ,E ?,Er   