
    R                     Z    d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ddZ
dd	Zd
 Zy)z Utilities for all CRUD commands.    )absolute_import)division)unicode_literals)util)
console_ioNc                     dj                  |       }|rdj                  |      |z   }|r|r|dj                  ||      z  }|S )Nzcluster [{name}]namez	{action} actionz  in {kind} location [{location}]kindlocation)format)r
   r   r   r   msgs        ?lib/googlecloudsdk/command_lib/container/vmware/command_util.pyClusterMessager      s\    !!t!,#


F

+c
1C	h-44H 5 & &C	*    c                 "   dj                  |       g}|r!|j                  dj                  |             |r!|j                  dj                  |             |r$|r"|j                  dj                  ||             d	j                  |      S )
Nznode pool [{name}]r	   z{action}r   zin cluster [{cluster}])clusterzin {kind} location [{location}]r    )r   appendjoin)r
   r   r   r   r   messagess         r   NodePoolMessager   #   s    "))t)45(OOJ%%V%45OO,33G3DE	hOO5<<H = & '	(	r   c                     dj                  | |      }t        j                  t        j                  ||      dd       y )NzThe following {} will be {}.T)messagethrow_if_unattendedcancel_on_no)r   r   PromptContinuegke_utilConstructList)r   itemsverbtitles       r   ConfirmationPromptr&   /   s8    
(
/
/d
;%$$UE2r   )NNN)NNNN)__doc__
__future__r   r   r    googlecloudsdk.api_lib.containerr   r!   googlecloudsdk.core.consoler   r   r   r&    r   r   <module>r,      s(    ' &  ' = 2	r   