
                             S r SSKJr  SSKJr  SSKJr  SSKJr  \R                  \R                   " S S\R                  5      5       5       r
g)	z'Complete control plane upgrade command.    )absolute_import)division)unicode_literals)basec                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
CompleteControlPlaneUpgrade   z;Complete the control plane upgrade for an existing cluster.z{description}z          To complete the control plane upgrade for an existing cluster, run:

            $ {command} sample-cluster
          )DESCRIPTIONEXAMPLESc                 $    U R                  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.
namez"The name of your existing cluster.)helpN)add_argument)parsers    @lib/surface/container/clusters/complete_control_plane_upgrade.pyArgs CompleteControlPlaneUpgrade.Args&   s     %IJ    c                     U R                   S   nU R                   S   nU" U5      nUR                  UR                  UR                  U5      5      $ )zThis 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:
  The result of the complete control plane upgrade operation.
api_adapterlocation_get)contextr   ParseClusterr   )selfargsadapterr   locations        r   RunCompleteControlPlaneUpgrade.Run0   sQ     ll=)G<</LD!H..TYY1 r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r   __static_attributes__r    r   r   r   r      s4     D %- K Kr   r   N)r%   
__future__r   r   r   googlecloudsdk.callioper   UniverseCompatibleHiddenCommandr   r    r   r   <module>r.      sG    . &  ' ( &$,, &  &r   