
                             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  S
SS.r\R                   " \R"                  R$                  5       " S S\R&                  5      5       rg)z%'vmware private-clouds list' command.    )absolute_import)division)unicode_literals)PrivateCloudsClient)base)flags)	resources)resource_projectorz6
          List VMware Engine private clouds.
        a  
          To list VMware Engine operations in the location `us-west2-a`, run:

            $ {command} --location=us-west2-a

          Or:

            $ {command}

          In the second example, the location is taken from gcloud properties compute/zone.
    )DESCRIPTIONEXAMPLESc                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)List-   z/List Google Cloud VMware Engine private clouds.c                 f    [         R                  " U 5        U R                  R                  S5        g)z Register flags for this command.aO  table(name.segment(-1):label=NAME,name.segment(-5):label=PROJECT,name.segment(-3):label=LOCATION,createTime,state,vcenter.fqdn:label=VCENTER_FQDN,type,managementCluster.stretchedClusterConfig.preferredLocation.segment(-1):label=PREFERRED_ZONE,managementCluster.stretchedClusterConfig.secondaryLocation.segment(-1):label=SECONDARY_ZONE)N)r   AddLocationArgToParserdisplay_info	AddFormat)parsers    )lib/surface/vmware/private_clouds/list.pyArgs	List.Args3   s+     
  (
!!	 	    c              #   :  #    UR                   R                  R                  5       n[        5       nUR	                  U5      nU H  n[
        R                  " U5      nUR                  S5      (       d-  UR                  R                  R                  R                  US'   UR                  S5      S:X  a]  UR                  S5      R                  S5      n[        R                  R                  SUS   US   US   S	9nUR!                  U5      US
'   Uv   M     g 7f)Ntype	STRETCHEDname/z-vmwareengine.projects.locations.privateClouds)
projectsIdlocationsIdprivateCloudsIdmanagementCluster)CONCEPTSlocationParser   r   r
   MakeSerializablegetmessagesPrivateCloudTypeValueValuesEnumSTANDARDsplitr	   REGISTRYCreateGetManagementCluster)	selfargsr&   clientitemsitemprivate_cloudprivate_cloud_nameprivate_cloud_resources	            r   RunList.RunB   s    }}%%++-H "FKK!E(99$?mv&&OO((<<EE 	f 
		6	"k	1 +..v6<<SA!*!3!3!:!:;)"-*2..r2	 "; "
 .4-H-H".
)* ' s   DD N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r:   __static_attributes__r<   r   r   r   r   -   s!    7- r   r   N)rA   
__future__r   r   r   +googlecloudsdk.api_lib.vmware.privatecloudsr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.vmwarer   googlecloudsdk.corer	   googlecloudsdk.core.resourcer
   rB   ReleaseTracksReleaseTrackGAListCommandr   r<   r   r   <module>rP      sk    , &  ' K ( 3 ) ;
	$ D%%((),4 , *,r   