
    1                     r    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 rS rS	 rSS
 jrS rS rS rg)zBFlags and helpers for the Cloud NetApp Files Host Groups commands.    )arg_parsers)flags)	arg_utils)labels_util)concept_parsersc                 T    [         R                  " U UR                  R                  S9$ )zReturns the Choice Enum for Host Group Type.

Args:
  choice: The choice for host group type as string
  messages: The messages module.

Returns:
  the host group type enum.
choice	enum_type)r   ChoiceToEnum	HostGroupTypeValueValuesEnumr
   messagess     :lib/googlecloudsdk/command_lib/netapp/host_groups/flags.pyGetHostGroupTypeEnumFromArgr      s)     
		""66
     c                 T    [         R                  " U UR                  R                  S9$ )zReturns the Choice Enum for Host Group OS Type.

Args:
  choice: The choice for host group os type as string
  messages: The messages module.

Returns:
  the host group os type enum.
r	   )r   r   r   OsTypeValueValuesEnumr   s     r   GetHostGroupOsTypeEnumFromArgr   +   s)     
		""88
 r   c                 8    SnU R                  S[        USS/S9  g )Nz\  String indicating the type of host group.
  The supported values are: 'ISCSI_INITIATOR'
  z--typeTISCSI_INITIATORtypehelprequiredchoicesadd_argumentstrparser	help_texts     r   AddHostGroupTypeArgr$   ;   s0    )
 	 !  r   c                 \    SnU R                  S[        R                  " S[        S9UUSS9  g )Nz%  List of hosts in the host group.
  z--hosts   )
min_lengthelement_typeHOST)r   r   r   metavar)r   r   ArgListr    )r"   r   r#   s      r   AddHostGroupHostsArgr,   J   s:    ) 	!#>  r   c                 :    SnU R                  S[        US/ SQS9  g )Nzy  String indicating the OS type of the hosts in the host group.
  The supported values are: 'LINUX', 'WINDOWS', 'ESXI'
  z	--os-typeT)LINUXWINDOWSESXIr   r   r!   s     r   AddHostGroupOsTypeArgr1   X   s-    )
 	*  r   c                 >   [         R                  " [        R                  " S5      /5      R	                  U 5        [        U 5        [        U SS9  [        U 5        [        R                  " U S5        [        R                  " U 5        [        R                  " U 5        g)z#Add args for creating a Host Group.zThe Host Group to create.Tr   
Host GroupN)r   ConceptParserr   GetHostGroupPresentationSpecAddToParserr$   r,   r1   AddResourceDescriptionArgAddResourceAsyncFlagr   AddCreateLabelsFlagsr"   s    r   AddHostGroupCreateArgsr<   i   st    (()DE! [fv-!!&,7V$""6*r   c                    [         R                  " [        R                  " S5      /5      R	                  U 5        [        U SS9  [        R                  " U S5        [        R                  " U 5        [        R                  " U 5        g)z#Add args for updating a Host Group.zThe Host Group to update.Fr3   r4   N)
r   r5   r   r6   r7   r,   r8   r9   r   AddUpdateLabelsFlagsr;   s    r   AddHostGroupUpdateArgsr?   v   sd    (()DE! [v.!!&,7V$""6*r   N)F)__doc__googlecloudsdk.callioper   !googlecloudsdk.command_lib.netappr   $googlecloudsdk.command_lib.util.apisr   $googlecloudsdk.command_lib.util.argsr   (googlecloudsdk.command_lib.util.conceptsr   r   r   r$   r,   r1   r<   r?    r   r   <module>rG      s=     I / 3 : < D
  "
++r   