/**
 * Oracle Cloud AI Services API
 * OCI AI Service solutions can help Enterprise customers integrate AI into their products immediately by using our proven,
pre-trained/custom models or containers, and without a need to set up in house team of AI and ML experts.
This allows enterprises to focus on business drivers and development work rather than AI/ML operations, shortening the time to market.

 * OpenAPI spec version: 20210101
 *
 *
 * 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 { AnomalyDetectionClient } from "./client" ; import { genericWaiter , genericTerminalConditionWaiter , WaiterConfiguration } from "oci-common" ; export class AnomalyDetectionWaiter { public constructor ( private client , private readonly config ? ) { } param request param targetStates return public async forAiPrivateEndpoint ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getAiPrivateEndpoint ( request ) , response => targetStates . includes ( response . aiPrivateEndpoint . lifecycleState ! ) , targetStates . includes ( models . AiPrivateEndpoint . LifecycleState . Deleted ) ) ; } param request param targetStates return public async forDataAsset ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getDataAsset ( request ) , response => targetStates . includes ( response . dataAsset . lifecycleState ! ) , targetStates . includes ( models . DataAsset . LifecycleState . Deleted ) ) ; } param request param targetStates return public async forModel ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getModel ( request ) , response => targetStates . includes ( response . model . lifecycleState ! ) , targetStates . includes ( models . Model . LifecycleState . Deleted ) ) ; } param request param targetStates return public async forProject ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getProject ( request ) , response => targetStates . includes ( response . project . lifecycleState ! ) , targetStates . includes ( models . Project . LifecycleState . Deleted ) ) ; } param request return public async forWorkRequest ( request ) { return genericWaiter ( this . config , ( ) => this . client . getWorkRequest ( request ) , response => ( response . workRequest . timeFinished ? true : false ) ) ; } }