
    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  \R                  \R                  " \R                  R                   5       " S S\R"                  5      5       5       r\R                  \R                  " \R                  R&                  5       " S	 S
\5      5       5       r\R                  \R                  " \R                  R*                  5       " S S\5      5       5       rg)!Create a Cloud NetApp Host Group.    )client)base)flags)labels_util)logc                   d    \ rS rSrSr\R                  R                  rSSS.r	\
S 5       rS rSrg	)
Create   r   z6          Create a Cloud NetApp Host Group.
          z          The following command creates a Host Group named NAME using the required arguments:

              $ {command} NAME --location=us-central1 --type=ISCSI_INITIATOR --hosts=host1,host2 --os-type=LINUX
          )DESCRIPTIONEXAMPLESc                 0    [         R                  " U 5        g )N)host_groups_flagsAddHostGroupCreateArgs)parsers    (lib/surface/netapp/host_groups/create.pyArgsCreate.Args+   s    ,,V4    c           	         UR                   R                  R                  5       n[        R                  " U R
                  5      n[        R                  " UR                  UR                  5      n[        R                  " UR                  UR                  5      n[        R                  " XR                  R                  R                  5      nUR!                  UR#                  5       UUR$                  UUR&                  US9nUR)                  X!R*                  U5      nUR*                  (       aW  SR-                  U R/                  5       R0                  5      n	[2        R4                  R7                  SR-                  U	5      5        U$ )z8Create a Cloud NetApp Host Group in the current project.)namehost_group_typehostsos_typedescriptionlabelsz!gcloud {} netapp host-groups listzHCheck the status of the new host group by listing all host groups:
$ {} )CONCEPTS
host_groupParsehost_groups_clientHostGroupsClient_RELEASE_TRACKr   GetHostGroupTypeEnumFromArgtypemessagesGetHostGroupOsTypeEnumFromArgr   r   ParseCreateArgs	HostGroupLabelsValueParseHostGroupConfigRelativeNamer   r   CreateHostGroupasync_formatReleaseTrackprefixr   statusPrint)
selfargshost_group_refr   r   r   r   r   resultcommands
             r   Run
Create.Run/   s7   ]]--335N001D1DEF'CC		6??O  ==fooG ((oo''33F ,,((*'jj$$ - J ##NKKLF{{3::




$
$g 
jj&/ Mr    N)__name__
__module____qualname____firstlineno____doc__r   r/   GAr"   detailed_helpstaticmethodr   r8   __static_attributes__r:   r   r   r
   r
      sB     *$$''.		- 5 5"r   r
   c                   D    \ rS rSrSr\R                  R                  rSr	g)
CreateBetaT   r   r:   N)
r;   r<   r=   r>   r?   r   r/   BETAr"   rC   r:   r   r   rE   rE   T   s     *$$)).r   rE   c                   D    \ rS rSrSr\R                  R                  rSr	g)CreateAlpha\   r   r:   N)
r;   r<   r=   r>   r?   r   r/   ALPHAr"   rC   r:   r   r   rI   rI   \   s     *$$**.r   rI   N)r?   )googlecloudsdk.api_lib.netapp.host_groupsr   r    googlecloudsdk.callioper   -googlecloudsdk.command_lib.netapp.host_groupsr   r   $googlecloudsdk.command_lib.util.argsr   googlecloudsdk.corer   DefaultUniverseOnlyReleaseTracksr/   r@   CreateCommandr
   rG   rE   rK   rI   r:   r   r   <module>rT      s     ( R ( T < # D%%(()6T 6 * 6r D%%**+* * , * D%%++,+* + - +r   