
                         @    d Z ddlmZ ddlmZ ddlmZ g dZd Zd Zy)	z?Wait messages for the compute instance groups managed commands.    )absolute_import)division)unicode_literals)
abandoningcreatingcreatingWithoutRetriesdeleting
recreating
refreshing
restarting	verifyingc                 F    d}t        d| j                  t              }||z   S )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      s1     
.$+
 
$	$$    c                     g }|D ]:  }t        ||d      xs d}|dkD  s|j                  dj                  ||             < |r| dj                  |      z   S dS )aB  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   -   sd     'f9fd38qLannZ&&v|<=  '.		'"	"525r   N)__doc__
__future__r   r   r   r   r   r    r   r   <module>r&      s(    F '  '& 
%"6r   