
                         n    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  G d dej                        Z
y	)
z2The 'gcloud firebase test ip-blocks list' command.    )absolute_import)division)unicode_literals)util)basec                   0    e Zd ZdZdddZed        Zd Zy)Listz=List all IP address blocks used by Firebase Test Lab devices.z=List all IP address blocks used by Firebase Test Lab
devices.zTo list all IP address blocks, run:

  $ {command}

To list only the CIDR blocks one per line, run:

  $ {command} --format="value(BLOCK)"
)DESCRIPTIONEXAMPLESc                 x    | j                   j                  d       t        j                  j	                  |        y)zMethod called by Calliope to register flags for this command.

    Args:
      parser: An argparse parser used to add arguments that follow this
          command in the CLI. Positional arguments are allowed.
    z
        table[box](
          block,
          form.color(blue=VIRTUAL,yellow=PHYSICAL),
          addedDate.date('%Y-%m-%d')
        )
    N)display_info	AddFormatr   URI_FLAGRemoveFromParser)parsers    +lib/surface/firebase/test/ip_blocks/list.pyArgsz	List.Args+   s1     !! # 	 	MM""6*    c                 X    t        j                  | j                        }|j                  S )a'  Run the 'gcloud firebase test ip-blocks list' command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation (i.e. group and command arguments combined).

    Returns:
      The list of IP blocks we want to have printed later.
    )r   GetDeviceIpBlockscontextipBlocks)selfargsdevice_ip_block_catalogs      r   RunzList.Run<   s%     #44T\\B"+++r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r    r   r   r	   r	      s/    E- + + ,r   r	   N)r    
__future__r   r   r   $googlecloudsdk.api_lib.firebase.testr   googlecloudsdk.callioper   ListCommandr	   r#   r   r   <module>r(      s+    9 &  ' 5 (.,4 .,r   