
                             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	d
Z ej                  ej                  j                         G d dej                               Zy)z-'vmware private-clouds subnets list' command.    )absolute_import)division)unicode_literals)SubnetsClient)base)flagszB
          List subnets in a VMware Engine private cloud.
        a  
          To list subnets that belong to the private cloud `my-privatecloud` in project `my-project` and zone `us-east2-b`, run:

            $ {command} --private-cloud=my-privatecloud --location=us-east2-b --project=my-project

          Or:

            $ {command} --private-cloud=my-privatecloud

          In the above example, the project and the location are taken from gcloud properties `core/project` and `compute/zone`, respectively.

          To list subnets that belong to all the private clouds in project `my-project` and zone `us-east2-b`, run:

            $ {command} --private-cloud=- --location=us-east2-b --project=my-project

          Or:

            $ {command} --private-cloud=-

          In the above example, the project and the location are taken from gcloud properties `core/project` and `compute/zone`, respectively.

          To list subnets for all private clouds in all locations in project `my-project`, run:

            $ {command} --private-cloud=- --location=- --project=my-project

          Or:

            $ {command} --private-cloud=- --location=-

          In the last example, the project is taken from gcloud properties `core/project`.
    )DESCRIPTIONEXAMPLESc                   *    e Zd ZdZeZed        Zd Zy)Listz.List subnets in a VMware Engine private cloud.c                 d    t        j                  |        | j                  j                  d       y)z Register flags for this command.ztable(name.segment(-1):label=NAME,name.segment(-5):label=LOCATION,name.segment(-3):label=PRIVATE_CLOUD,type,gatewayIp,ipCidrRange,state,vlanId)N)r   AddPrivatecloudArgToParserdisplay_info	AddFormat)parsers    1lib/surface/vmware/private_clouds/subnets/list.pyArgsz	List.ArgsG   s-     
$$V,
!! #M N    c                     |j                   j                  j                         }t               }|j	                  |      S )N)CONCEPTSprivate_cloudParser   r   )selfargsprivatecloudclients       r   RunzList.RunP   s0    ==..446L_F;;|$$r   N)	__name__
__module____qualname____doc__DETAILED_HELPdetailed_helpstaticmethodr   r    r   r   r   r   A   s#    6-N N%r   r   N)r!   
__future__r   r   r   4googlecloudsdk.api_lib.vmware.private_clouds.subnetsr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.vmwarer   r"   ReleaseTracksReleaseTrackGAListCommandr   r%   r   r   <module>r.      sh    4 &  ' N ( 3		%P D%%(()%4 % *%r   