
                         @    S r SSKJr  SSKJr  SSKJr  / SQrS rS rg)	z?Wait messages for the compute instance groups managed commands.    )absolute_import)division)unicode_literals)
abandoningcreatingcreatingWithoutRetriesdeleting
recreating
refreshing
restarting	verifyingc                 D    Sn[        SU R                  [        5      nX-   $ )zCreates text presented at each wait operation.

Args:
  igm_ref: reference to the Instance Group Manager.
Returns:
  A message with current operations count for IGM.
z"Waiting for group to become stablez, current operations: )_CreateActionsTextcurrentActions_CURRENT_ACTION_TYPES)igm_reftextcurrent_actions_texts      Klib/googlecloudsdk/command_lib/compute/instance_groups/managed/wait_info.pyCreateWaitTextr      s.     
.$+
 
	$$    c                     / nU H@  n[        XS5      =(       d    SnUS:  d  M   UR                  SR                  XE5      5        MB     U(       a  U SR                  U5      -   $ S$ )a4  Creates text presented at each wait operation for given IGM field.

Args:
  text: the text associated with the field.
  igm_field: reference to a field in the Instance Group Manager.
  action_types: array with field values to be counted.
Returns:
  A message with given field and action types count for IGM.
Nr   z{0}: {1}z,  )getattrappendformatjoin)r   	igm_fieldaction_typesactionsactionaction_counts         r   r   r   -   s`     'f9d38qLannZ&&v<=  '.		'"	"525r   N)__doc__
__future__r   r   r   r   r   r    r   r   <module>r&      s(    F '  '& 
%"6r   