
    7                         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
S.r\R                  " \R                  R                   5       " S S\R"                  5      5       rg)z+'vmware hcx activationkeys create' command.    )absolute_import)division)unicode_literals)HcxActivationKeysClient)base)flags)logz
          Create a HCX activation key in a VMware Engine private cloud. Successful creation of a HCX activation key results in a HCX activation key in AVAILABLE state. Check the progress of a HCX activation key using `{parent_command} list`.
        a  
          To create a HCX activation key called `key1` in private cloud `my-private-cloud` in zone `us-west2-a`, run:

            $ {command} key1 --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)Create.   z0Create a Google Cloud VMware HCX activation key.c                     [         R                  " U 5        [        R                  R	                  U 5        [        R                  R                  U S5        U R                  R                  S5        g)z Register flags for this command.TyamlN)r   AddHcxActivationKeyArgToParserr   
ASYNC_FLAGAddToParser
SetDefaultdisplay_info	AddFormat)parsers    >lib/surface/vmware/private_clouds/hcx/activationkeys/create.pyArgsCreate.Args4   sL     
((0OO'OOvt,
!!&)    c                    UR                   R                  R                  5       n[        5       nUR                  nUR                  U5      nU(       a!  [        R                  " UR                  SSS9  g UR                  UR                  U5      SR                  UR                  5       5      S9n[        R                  " UR                  5       SS9  U$ )Nzhcx activation keyT)kindis_asyncz1waiting for hcx activation key [{}] to be created)operation_refmessage)r   )CONCEPTShcx_activation_keyParser   async_r   r	   CreatedResourcenameWaitForOperationGetOperationRefformatRelativeName)selfargsr"   clientr   	operationresources          r   Run
Create.Run<   s    99??A$&F{{H01I	
..3dD&&,,Y7CJJ++-/ ' 0H '')0D Or    N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r0   __static_attributes__r2   r   r   r   r   .   s!    8-* *r   r   N)r7   
__future__r   r   r   /googlecloudsdk.api_lib.vmware.hcxactivationkeysr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.vmwarer   googlecloudsdk.corer	   r8   ReleaseTracksReleaseTrackGACreateCommandr   r2   r   r   <module>rE      sh    2 &  ' S ( 3 #	
	( D%%(()T  *r   