/**
 * Scanning API
 * Use the Vulnerability Scanning Service (VSS) APIs to manage scan recipes, targets, and reports.
 * OpenAPI spec version: 20210215
 *
 *
 * 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 { VulnerabilityScanningClient } from "./client" ; import { genericWaiter , genericTerminalConditionWaiter , WaiterConfiguration } from "oci-common" ; export class VulnerabilityScanningWaiter { public constructor ( private client , private readonly config ? ) { } param request param targetStates return public async forContainerScanRecipe ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getContainerScanRecipe ( request ) , response => targetStates . includes ( response . containerScanRecipe . lifecycleState ! ) , targetStates . includes ( models . LifecycleState . Deleted ) ) ; } param request param targetStates return public async forContainerScanTarget ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getContainerScanTarget ( request ) , response => targetStates . includes ( response . containerScanTarget . lifecycleState ! ) , targetStates . includes ( models . LifecycleState . Deleted ) ) ; } param request param targetStates return public async forHostAgentScanResult ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getHostAgentScanResult ( request ) , response => targetStates . includes ( response . hostAgentScanResult . lifecycleState ! ) , targetStates . includes ( models . LifecycleState . Deleted ) ) ; } param request param targetStates return public async forHostCisBenchmarkScanResult ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getHostCisBenchmarkScanResult ( request ) , response => targetStates . includes ( response . hostCisBenchmarkScanResult . lifecycleState ! ) , targetStates . includes ( models . LifecycleState . Deleted ) ) ; } param request param targetStates return public async forHostEndpointProtectionScanResult ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getHostEndpointProtectionScanResult ( request ) , response => targetStates . includes ( response . hostEndpointProtectionScanResult . lifecycleState ! ) , targetStates . includes ( models . LifecycleState . Deleted ) ) ; } param request param targetStates return public async forHostPortScanResult ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getHostPortScanResult ( request ) , response => targetStates . includes ( response . hostPortScanResult . lifecycleState ! ) , targetStates . includes ( models . LifecycleState . Deleted ) ) ; } param request param targetStates return public async forHostScanRecipe ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getHostScanRecipe ( request ) , response => targetStates . includes ( response . hostScanRecipe . lifecycleState ! ) , targetStates . includes ( models . LifecycleState . Deleted ) ) ; } param request param targetStates return public async forHostScanTarget ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getHostScanTarget ( request ) , response => targetStates . includes ( response . hostScanTarget . lifecycleState ! ) , targetStates . includes ( models . LifecycleState . Deleted ) ) ; } param request param targetStates return public async forHostVulnerability ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getHostVulnerability ( request ) , response => targetStates . includes ( response . hostVulnerability . lifecycleState ! ) , targetStates . includes ( models . LifecycleState . Deleted ) ) ; } param request return public async forWorkRequest ( request ) { return genericWaiter ( this . config , ( ) => this . client . getWorkRequest ( request ) , response => ( response . workRequest . timeFinished ? true : false ) ) ; } }