/**
 * File Storage API
 * API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see [Overview of File Storage](/iaas/Content/File/Concepts/filestorageoverview.htm).

 * OpenAPI spec version: 20171215
 *
 *
 * 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 { FileStorageClient } from "./client" ; import { genericWaiter , genericTerminalConditionWaiter , WaiterConfiguration } from "oci-common" ; export class FileStorageWaiter { public constructor ( private client , private readonly config ? ) { } param request param targetStates return public async forExport ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getExport ( request ) , response => targetStates . includes ( response . export . lifecycleState ! ) , targetStates . includes ( models . Export . LifecycleState . Deleted ) ) ; } param request param targetStates return public async forExportSet ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getExportSet ( request ) , response => targetStates . includes ( response . exportSet . lifecycleState ! ) , targetStates . includes ( models . ExportSet . LifecycleState . Deleted ) ) ; } param request param targetStates return public async forFileSystem ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getFileSystem ( request ) , response => targetStates . includes ( response . fileSystem . lifecycleState ! ) , targetStates . includes ( models . FileSystem . LifecycleState . Deleted ) ) ; } param request param targetStates return public async forMountTarget ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getMountTarget ( request ) , response => targetStates . includes ( response . mountTarget . lifecycleState ! ) , targetStates . includes ( models . MountTarget . LifecycleState . Deleted ) ) ; } param request param targetStates return public async forSnapshot ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getSnapshot ( request ) , response => targetStates . includes ( response . snapshot . lifecycleState ! ) , targetStates . includes ( models . Snapshot . LifecycleState . Deleted ) ) ; } }