
    \                         d Z ddlmZ ddlmZ ddlmZ ddlmZ ej                   G d dej                               Z	y)	z!Get cluster upgrade info command.    )absolute_import)division)unicode_literals)basec                   0    e Zd ZdZdddZed        Zd Zy)GetUpgradeInfozGet information about upgrades for existing clusters including auto upgrade status, upgrade history, upgrade targets, and end of support timelines.z{description}zu          To get upgrade information 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    2lib/surface/container/clusters/get_upgrade_info.pyArgszGetUpgradeInfo.Args'   s     %IJ    c                     | j                   d   }| j                   d   } ||      }|j                  |j                  |j                  |            S )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:
      Some value that we want to have printed later.
    api_adapterlocation_get)contextGetClusterUpgradeInfoParseClusterr   )selfargsadapterr   locations        r   RunzGetUpgradeInfo.Run1   sV     ll=)G<</LD!H(()=)=dii>F*H I Ir   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r    r   r   r   r      s5     \ 		- K KIr   r   N)
r!   
__future__r   r   r   googlecloudsdk.callioper   UniverseCompatibleCommandr   r$   r   r   <module>r)      s>    ( &  ' ( 'IT\\ 'I 'Ir   