
    
                         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 clusters describe' command.    )absolute_import)division)unicode_literals)ClustersClient)NodeTypesClient)base)flags)resource_projectorzx
          Display data associated with a VMware Engine cluster, such as its node count, node type, and status.
        a  
          To describe a cluster called `my-cluster` in private cloud `my-private-cloud` and zone `us-west2-a`, run:

            $ {command} my-cluster --location=us-west2-a --project=my-project --private-cloud=my-private-cloud

            Or:

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

           In the second example, the project and location are taken from gcloud properties core/project and compute/zone.
    )DESCRIPTIONEXAMPLESc                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)Describe/   z.Describe a Google Cloud VMware Engine cluster.c                 .    [         R                  " U SS9  g)z Register flags for this command.T)
positionalN)r	   AddClusterArgToParser)parsers    6lib/surface/vmware/private_clouds/clusters/describe.pyArgsDescribe.Args5   s     
48    c                 8   UR                   R                  R                  5       nUR                  5       R                  5       n[	        5       n[        5       n[        R                  " UR                  U5      5      nUR                  U5      nU Vs0 s H  oR                  U_M     n	nSu  ppUS   R                  5        H  u  pX;  a  M  X   nUS   nUR                  S5      =(       d    SnU=(       d    UR                  =(       d    SnUR                  (       a  UR                  UR                  -  OSnXR                  =(       d    SU-  -  n
XR                   =(       d    SU-  -  nUUU-  U-  -  nUUU-  -  nM     XS'   XS'   XS'   XS	'   U$ s  snf )
N)r   r   r   r   nodeTypeConfigs	nodeCountcustomCoreCountr   clusterMemoryGbclusterStorageGbclusterVirtualCpuCountclusterCoreCount)CONCEPTSclusterParseParentr   r   r
   MakeSerializableGetList
nodeTypeIditemsgettotalCoreCountvirtualCpuCountmemoryGb
diskSizeGb)selfargsr!   locationclusters_clientnode_types_clientexisting_cluster
node_types	node_typeid_to_node_typecluster_memorycluster_storagecluster_vcpucluster_coresnode_type_idnode_type_config
node_countcustom_core_countcores_count
vcpu_ratios                       r   RunDescribe.Run:   s   mm##))+G~~&&(H$&O'))::G$ #''1J9C9CIi'   DN@N\*:+eg+& 
	,!/i#K0j*../@AFQ%F)A)AFQk %% 
#
#y'?'?
?  ++0qJ>>n..3!zAAokJ.;;l{Z//m%+& +9&'+:'(1=-.+8'(9s   F N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   rA   __static_attributes__rC   r   r   r   r   /   s!    6-9 9&r   r   N)rH   
__future__r   r   r   &googlecloudsdk.api_lib.vmware.clustersr   'googlecloudsdk.api_lib.vmware.nodetypesr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.vmwarer	   googlecloudsdk.core.resourcer
   rI   ReleaseTracksReleaseTrackGADescribeCommandr   rC   r   r   <module>rW      sk    * &  ' A C ( 3 ;	
	( D%%(()0t## 0 *0r   