
    S
                         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  \R                   " S	 S
\R                  5      5       rg)z#Get node pool upgrade info command.    )absolute_import)division)unicode_literals)
exceptions)util)base)flagsc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
GetUpgradeInfo   zGet upgrade information for an existing node pool for a cluster.

*{command}* displays all upgrade information associated with the node pool in
the Google Kubernetes Engine cluster.
z{description}z          To get upgrade information for a node pool of an existing cluster,
          run:

            $ {command} node-pool-1 --cluster=sample-cluster
          )DESCRIPTIONEXAMPLESc                 `    [         R                  " U S5        [         R                  " U S5        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The name of the node pool.zThe name of the cluster.N)r	   AddNodePoolNameArgAddNodePoolClusterFlag)parsers    4lib/surface/container/node_pools/get_upgrade_info.pyArgsGetUpgradeInfo.Args1   s&     
V%AB	  )CD    c                 (   U R                   S   nU R                   S   nU" U5      n UR                  UR                  UR                  U5      5      $ ! [        R
                   a*  n[        R                  " U[        R                  5      eSnAff = f)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_getN)
contextGetNodePoolUpgradeInfoParseNodePoolnameapitools_exceptions	HttpErrorr   HttpExceptionr   HTTP_ERROR_FORMAT)selfargsadapterr   locationerrors         r   RunGetUpgradeInfo.Run<   s     ll=)G<</LD!HD++G,A,A$))BJ-L M M(( D$$UD,B,BCCDs   *A B'%BB N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r'   __static_attributes__r)   r   r   r   r      s4     	
- E EDr   r   N)r.   
__future__r   r   r   apitools.base.pyr   r    googlecloudsdk.api_lib.containerr   googlecloudsdk.callioper   $googlecloudsdk.command_lib.containerr	   UniverseCompatibleCommandr   r)   r   r   <module>r9      sJ    * &  ' > 1 ( . 6 0DT\\ 0D 0Dr   