
    7                     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 cluster 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5      $ )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.
)	r   AlloyDBClientalloydb_clientr   CloudOperationPollerprojects_locations_clustersprojects_locations_operationsCloudOperationPollerNoResourcesWaitFor)op_refmessagerelease_trackcreates_resourceclientr
   pollers          8lib/googlecloudsdk/api_lib/alloydb/cluster_operations.pyAwaitr      sp     !!-0&((.((22446F 33446F		00    N)T)
__doc__
__future__r   r   r   googlecloudsdk.api_lib.alloydbr   googlecloudsdk.api_lib.utilr   r    r   r   <module>r      s    - &  ' 3 .1r   