
    E                     Z   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  \R                   " \R"                  R$                  \R"                  R&                  \R"                  R(                  5       " S
 S\R*                  5      5       rSSSS.\l        g)z#Complete node-pool upgrade command.    )absolute_import)division)unicode_literals)
exceptions)util)base)flags)logc                   .    \ rS rSrSr\S 5       rS rSrg)CompleteUpgrade   Complete a node pool upgrade.c                     [         R                  " U S5        [         R                  " U S5        U R                  S[        SSSS9  g)	zRegister flags for this command.

Args:
  parser: an argparse.ArgumentParser-like object. It is mocked out in order
    to capture some information, but behaves like an ArgumentParser.
z?Name of the node pool for which the upgrade is to be completed.z'Cluster to which the node pool belongs.z	--timeouti  Tz(Duration to wait before command timeout.)typedefaulthiddenhelpN)r	   AddNodePoolNameArgAddNodePoolClusterFlagadd_argumentint)parsers    4lib/surface/container/node_pools/complete_upgrade.pyArgsCompleteUpgrade.Args"   sQ     
IK 
  !JL
7  9    c                 Z   U R                   S   nU R                   S   nU" U5      n UR                  UR                  U5      nUR                  U5        [        R                  " U5        g! [        R
                   a*  n[        R                  " U[        R                  5      eSnAff = f)a  This is what gets called when the user runs this command.

Args:
  args: an argparse namespace. All the arguments that were provided to this
    command invocation.

Returns:
  Some value that we want to have printed later.

Raises:
  util.Error, if complete failed.
api_adapterlocation_getN)contextParseNodePoolnameCompleteNodePoolUpgradeapitools_exceptions	HttpErrorr   HttpExceptionr   HTTP_ERROR_FORMATr
   UpdatedResource)selfargsadapterr   locationpool_referrors          r   RunCompleteUpgrade.Run6   s     ll=)G<</LD!HD&&tyy(;h%%h/
 ! (( D$$UD,B,BCCDs   -A, ,B* %B%%B* N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r/   __static_attributes__r1   r   r   r   r      s     &9 9&"r   r   r   z
        Complete a node pool upgrade.

Complete upgrade is a method used to skip the remaining node pool soaking
phase during blue-green node pool upgrades.
z        To complete an active upgrade in ``node-pool-1'' in the
        cluster ``sample-cluster'', run:

          $ {command} node-pool-1 --cluster=sample-cluster
        )briefDESCRIPTIONEXAMPLESN)r6   
__future__r   r   r   apitools.base.pyr   r$    googlecloudsdk.api_lib.containerr   googlecloudsdk.callioper   $googlecloudsdk.command_lib.containerr	   googlecloudsdk.corer
   ReleaseTracksReleaseTrackALPHABETAGACommandr   detailed_helpr1   r   r   <module>rI      s    * &  ' > 1 ( . 6 # D%%++T->->-C-C%%((*/"dll /"*/"h 	(		! r   