
                             d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ  G d	 d
ej                        Zy)z1The command group for cloud container operations.    )absolute_import)division)unicode_literals)base)container_command_util)flags)logc                   >    e Zd ZdZej
                  Zed        Zd Z	y)	NodePoolszECreate and delete operations for Google Kubernetes Engine node pools.c                 .    t        j                  |        y)zAdd arguments to the parser.

    Args:
      parser: argparse.ArgumentParser, This is a standard argparser parser with
        which you can register arguments.  See the public argparse documentation
        for its capabilities.
    N)r   AddLocationFlags)parsers    ,lib/surface/container/node_pools/__init__.pyArgszNodePools.Args    s     
6"    c                 V    t        j                  |       t        j                  |d<   |S )ak  Modify the context that will be given to this group's commands when run.

    Args:
      context: {str:object}, A set of key-value pairs that can be used for
        common initialization among commands.
      args: argparse.Namespace: The same namespace given to the corresponding
        .Run() invocation.

    Returns:
      The refined command context.
    location_get)r   RequireProjectIDr   GetZoneOrRegion)selfcontextargss      r   FilterzNodePools.Filter+   s'     	$4DDGNNr   N)
__name__
__module____qualname____doc__r   COMPUTE_CATEGORYcategorystaticmethodr   r    r   r   r   r      s'    M""(# #r   r   N)r   
__future__r   r   r   googlecloudsdk.callioper   $googlecloudsdk.command_lib.containerr   r   googlecloudsdk.corer	   Groupr   r!   r   r   <module>r'      s/    8 &  ' ( G 6 #

 r   