/**
 * MySQL Database Service API
 * The API for the MySQL Database Service
 * OpenAPI spec version: 20190415
 * Contact: mysql-cloud-dev_ww_grp@oracle.com
 *
 * NOTE: This class is auto generated by OracleSDKGenerator.
 * Do not edit the class manually.
 *
 * Copyright (c) 2020, 2022, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */ import * as serviceRequests from "./request" ; import * as serviceResponses from "./response" ; import * as models from "./model" ; import { DbSystemClient } from "./client" ; import { genericWaiter , genericTerminalConditionWaiter , WaiterConfiguration } from "oci-common" ; export class DbSystemWaiter { public constructor ( private client , private readonly config ? ) { } param request param targetStates return public async forAnalyticsCluster ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getAnalyticsCluster ( request ) , response => targetStates . includes ( response . analyticsCluster . lifecycleState ! ) , targetStates . includes ( models . AnalyticsCluster . LifecycleState . Deleted ) ) ; } param request param targetStates return public async forDbSystem ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getDbSystem ( request ) , response => targetStates . includes ( response . dbSystem . lifecycleState ! ) , targetStates . includes ( models . DbSystem . LifecycleState . Deleted ) ) ; } param request param targetStates return public async forHeatWaveCluster ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getHeatWaveCluster ( request ) , response => targetStates . includes ( response . heatWaveCluster . lifecycleState ! ) , targetStates . includes ( models . HeatWaveCluster . LifecycleState . Deleted ) ) ; } }