
    8                       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r\R,                  \R.                  " \R0                  R2                  5       " S S\R4                  5      5       5       r\R.                  " \R0                  R8                  5       " S S\5      5       rg)z%Command to create a rollout sequence.    )annotations)client)util)base)parser_arguments)parser_extensions)flags)log)gkehub_v1alpha_messages)gkehub_v1beta_messageszd
To create a rollout sequence, run:

$ {command} ROLLOUTSEQUENCE --stage-config=path/to/config.yaml
c                  r    \ rS rSrSr\R                  R                  rS\	0r
\SS j5       r    S	S jrSrg)
Create$   #Create a rollout sequence resource.EXAMPLESc                    [         R                  " XR                  S9nUR                  5         UR	                  5         UR                  5         UR                  5         UR                  5         g)z!Registers flags for this command.release_trackN)rolloutsequence_flagsRolloutSequenceFlags_release_trackAddRolloutSequenceResourceArgAddDisplayName	AddLabelsAddStageConfigAddAsync)clsparserr	   s      6lib/surface/container/fleet/rolloutsequences/create.pyArgsCreate.Args,   sW     "6600E 
'')		OO		NN    c                   [         R                  " XR                  5       S9n[        R                  " U R                  5       S9nUR
                  R                  [        R                  " U5      UR                  5       [        R                  " U5      S9nUR                  U5      n[        R                  " U5      nUR                  5       (       a&  [        R                  " USUR                  5       S9  U$ [        R                   " U R                  5       S9nUR#                  [        R$                  " U5      5      n[        R                  " USS9  U$ )zRuns the create command.r   )parentrolloutSequencerolloutSequenceIdzRollout sequence)kindis_async)r'   )r   RolloutSequenceFlagParserReleaseTrackr   FleetClientmessages4GkehubProjectsLocationsRolloutSequencesCreateRequestr   RolloutSequenceParentNameRolloutSequenceRolloutSequenceIdCreateRolloutSequenceRolloutSequenceRefAsyncr
   CreatedResourceOperationClientWaitOperationRef)	selfargsflag_parserfleet_clientreq	operationrolloutsequence_refoperation_clientcompleted_operations	            r   Run
Create.Run8   s,    (AA--/K %%D4E4E4GHL



T
T--d3#335006 U C
 2237I11$7	
!$$&
 --'') +//0A0A)0LM+2DEr"    N)r   z$parser_arguments.ArgumentInterceptor)r9   zparser_extensions.Namespacereturnz2alpha_messages.Operation | beta_messages.Operation)__name__
__module____qualname____firstlineno____doc__r   r*   BETAr   	_EXAMPLESdetailed_helpclassmethodr    rA   __static_attributes__rC   r"   r   r   r   $   sI     ,$$)).y)-	 	-9r"   r   c                  D    \ rS rSrSr\R                  R                  rSr	g)CreateAlphaX   r   rC   N)
rE   rF   rG   rH   rI   r   r*   ALPHAr   rN   rC   r"   r   rP   rP   X   s    +$$**.r"   rP   N)rI   
__future__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   alpha_messages3googlecloudsdk.generated_clients.apis.gkehub.v1betar   beta_messagesrK   DefaultUniverseOnlyReleaseTracksr*   rJ   CreateCommandr   rR   rP   rC   r"   r   <module>r_      s    , " 9 7 ( 4 5 f # j g	 D%%**+/T / , /d D%%++,+& + -+r"   