
    n                     N    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	S jr	g)
z%AlloyDB backup operations API helper.    )absolute_import)division)unicode_literals)api_util)waiterc                    [         R                  " U5      nUR                  nU(       a,  [        R                  " UR
                  UR                  5      nO [        R                  " UR                  5      n[        R                  " X`USSS9$ )a  Waits for the given google.longrunning.Operation to complete.

Args:
  op_ref: The operation to poll.
  message: String to display for default progress_tracker.
  release_track: The API release track (e.g. ALPHA, BETA, etc.)
  creates_resource: Whether or not the operation creates a resource.

Raises:
  apitools.base.py.HttpError: If the request returns an HTTP error.

Returns:
  The Operation or the Resource the Operation is associated with.
g      ?i'  )exponential_sleep_multipliersleep_ms)	r   AlloyDBClientalloydb_clientr   CloudOperationPollerprojects_locations_backupsprojects_locations_operationsCloudOperationPollerNoResourcesWaitFor)op_refmessagerelease_trackcreates_resourceclientr   pollers          7lib/googlecloudsdk/api_lib/alloydb/backup_operations.pyAwaitr      s{     !!-0&((.((11446F 33446F	gC%
Q Q    N)T)
__doc__
__future__r   r   r   googlecloudsdk.api_lib.alloydbr   googlecloudsdk.api_lib.utilr   r    r   r   <module>r       s    , &  ' 3 .Qr   