/**
 * Container Images API
 * API covering the [Registry](/iaas/Content/Registry/Concepts/registryoverview.htm) services.
Use this API to manage resources such as container images and repositories.

 * OpenAPI spec version: 20160918
 *
 *
 * 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 { ArtifactsClient } from "./client" ; import { genericWaiter , genericTerminalConditionWaiter , WaiterConfiguration } from "oci-common" ; export class ArtifactsWaiter { public constructor ( private client , private readonly config ? ) { } param request param targetStates return public async forContainerImage ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getContainerImage ( request ) , response => targetStates . includes ( response . containerImage . lifecycleState ! ) , targetStates . includes ( models . ContainerImage . LifecycleState . Deleted ) ) ; } param request param targetStates return public async forContainerRepository ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getContainerRepository ( request ) , response => targetStates . includes ( response . containerRepository . lifecycleState ! ) , targetStates . includes ( models . ContainerRepository . LifecycleState . Deleted ) ) ; } param request param targetStates return public async forGenericArtifact ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getGenericArtifact ( request ) , response => targetStates . includes ( response . genericArtifact . lifecycleState ! ) , targetStates . includes ( models . GenericArtifact . LifecycleState . Deleted ) ) ; } param request param targetStates return public async forRepository ( request , ... targetStates ) { return genericTerminalConditionWaiter ( this . config , ( ) => this . client . getRepository ( request ) , response => targetStates . includes ( response . repository . lifecycleState ! ) , targetStates . includes ( models . Repository . LifecycleState . Deleted ) ) ; } }