
                             d Z ddlmZ ddlmZ ddlmZ ddlmZ ej                  ej                   G d dej                                      Z
y)	z'Complete control plane upgrade command.    )absolute_import)division)unicode_literals)basec                   0    e Zd ZdZdddZed        Zd Zy)CompleteControlPlaneUpgradez;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                 *    | j                  dd       y)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Argsz CompleteControlPlaneUpgrade.Args&   s     %IJ    c                     | j                   d   }| j                   d   } ||      }|j                  |j                  |j                  |            S )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:
      The result of the complete control plane upgrade operation.
    api_adapterlocation_get)contextr   ParseClusterr   )selfargsadapterr   locations        r   RunzCompleteControlPlaneUpgrade.Run0   sQ     ll=)G<</LD!H..TYY1 r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   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   