
    
                         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 network-policies list' command.    )absolute_import)division)unicode_literals)NetworkPoliciesClient)base)flagsz8
          List VMware Engine network policies.
        a  
          To list network policies in your project in the region `us-west2` sorted from oldest to newest, run:

            $ {command} --location=us-west2 --project=my-project --sort-by=~create_time

          Or:

            $ {command}  --sort-by=~create_time

          In the second example, the project and the location are taken from gcloud properties core/project and compute/region respectively.

          To list network policies in your project from all regions, run:

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

          Or:

            $ {command} --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 VMware Engine network policies.c                 d    t        j                  |        | j                  j                  d       y)z Register flags for this command.ztable(name.segment(-1):label=NAME,name.segment(-5):label=PROJECT,name.segment(-3):label=LOCATION,createTime,internetAccess,externalIp,edgeServicesCidr,vmwareEngineNetwork)N)r   AddLocationArgToParserdisplay_info	AddFormat)parsers    +lib/surface/vmware/network_policies/list.pyArgsz	List.Args<   s-     
  (
!! #J K    c                     |j                   j                  j                         }t               }|j	                  |      S )N)CONCEPTSlocationParser   r   )selfargsr   clients       r   RunzList.RunF   s1    }}%%++-H"$F;;x  r   N)	__name__
__module____qualname____doc__DETAILED_HELPdetailed_helpstaticmethodr   r    r   r   r   r   7   s#    ,-K K!r   r   N)r    
__future__r   r   r   -googlecloudsdk.api_lib.vmware.networkpoliciesr   googlecloudsdk.callioper   2googlecloudsdk.command_lib.vmware.network_policiesr   r!   ReleaseTracksReleaseTrackGAListCommandr   r$   r   r   <module>r-      sg    . &  ' O ( D		< D%%(()!4 ! *!r   