
                         *   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 create a rollout sequence.    )absolute_import)division)unicode_literals)client)util)base)parser_arguments)parser_extensions)flags)log)gkehub_v1alpha_messageszd
To create a rollout sequence, run:

$ {command} ROLLOUTSEQUENCE --stage-config=path/to/config.yaml
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
)Create%   z#Create a rollout sequence resource.EXAMPLESparserc                     [         R                  " U 5      nUR                  5         UR                  5         UR	                  5         UR                  5         UR                  5         g)z!Registers flags for this command.N)rolloutsequence_flagsRolloutSequenceFlagsAddRolloutSequenceResourceArgAddDisplayName	AddLabelsAddStageConfigAddAsync)r   r   s     6lib/surface/container/fleet/rolloutsequences/create.pyArgsCreate.Args,   sL     "66v>E	'')		OO		NN    argsreturnc                    [         R                  " XR                  5       S9n[        R                  " [
        R                  " U5      UR                  5       [
        R                  " U5      S9n[        R                  " U R                  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.)release_track)parentrolloutSequencerolloutSequenceIdzRollout sequence)kindis_async)r&   )r   RolloutSequenceFlagParserReleaseTrackalpha_messages4GkehubProjectsLocationsRolloutSequencesCreateRequestr   RolloutSequenceParentNameRolloutSequenceRolloutSequenceIdr   FleetClientCreateRolloutSequenceRolloutSequenceRefAsyncr   CreatedResourceOperationClientWaitOperationRef)	selfr   flag_parserreqfleet_client	operationrolloutsequence_refoperation_clientcompleted_operations	            r   Run
Create.Run6   s   'AA--/K 
M
M--d3#335006C
 %%D4E4E4GHL2237I11$7	
!$$&
 --'') +//0A0A)0LM+2DEr    N)__name__
__module____qualname____firstlineno____doc__	_EXAMPLESdetailed_helpstaticmethodr	   ArgumentInterceptorr   r
   	Namespacer*   	Operationr?   __static_attributes__rA   r   r   r   r   %   sQ     ,y)-#77  '11 n6N6N r   r   N)rF   
__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*   rG   DefaultUniverseOnlyReleaseTracksr)   ALPHACreateCommandr   rA   r   r   <module>rX      sx    , &  ' 9 7 ( 4 5 f # j	 D%%++,+T + - +r   