/**
 * Digital Assistant Service Instance API
 * API to create and maintain Oracle Digital Assistant service instances.
 * OpenAPI spec version: 20190506
 *
 *
 * 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 model from "../model" ; import common = require ( "oci-common" ) ; /**
 * A description of the work request's status.
 */ export interface WorkRequestSummary { /**
     * The identifier of the work request.
     */ "id" : string ; /**
     * The identifier of the compartment that contains the work request.
     */ "compartmentId" : string ; /**
     * The identifier of the Digital Assistant instance to which this work request pertains.
     */ "odaInstanceId" : string ; /**
     * The type of the operation that's associated with the work request.
     */ "requestAction" : WorkRequestSummary . RequestAction ; /**
     * The status of current work request.
     */ "status" : WorkRequestSummary . Status ; /**
     * The resources that this work request affects.
     */ "resources" : Array < model . WorkRequestResource > ; } export namespace WorkRequestSummary { export enum RequestAction { CreateOdaInstance = "CREATE_ODA_INSTANCE" , UpgradeOdaInstance = "UPGRADE_ODA_INSTANCE" , DeleteOdaInstance = "DELETE_ODA_INSTANCE" , PurgeOdaInstance = "PURGE_ODA_INSTANCE" , RecoverOdaInstance = "RECOVER_ODA_INSTANCE" , StopOdaInstance = "STOP_ODA_INSTANCE" , StartOdaInstance = "START_ODA_INSTANCE" , ChangeOdaInstanceCompartment = "CHANGE_ODA_INSTANCE_COMPARTMENT" , CreateAssociation = "CREATE_ASSOCIATION" , DeleteAssociation = "DELETE_ASSOCIATION" , UpdateEntitlementsForCacct = "UPDATE_ENTITLEMENTS_FOR_CACCT" , LookupOdaInstancesForCacct = "LOOKUP_ODA_INSTANCES_FOR_CACCT" , /**
         * This value is used if a service returns a value for this enum that is not recognized by this
         * version of the SDK.
         */ UnknownValue = "UNKNOWN_VALUE" } export enum Status { Accepted = "ACCEPTED" , InProgress = "IN_PROGRESS" , Succeeded = "SUCCEEDED" , Failed = "FAILED" , Canceling = "CANCELING" , Canceled = "CANCELED" , /**
         * This value is used if a service returns a value for this enum that is not recognized by this
         * version of the SDK.
         */ UnknownValue = "UNKNOWN_VALUE" } export function getJsonObj ( obj ) { const jsonObj = { ... obj , ... { "resources" : obj . resources ? obj . resources . map ( item => { return model . WorkRequestResource . getJsonObj ( item ) ; } ) : undefined } } ; return jsonObj ; } export function getDeserializedJsonObj ( obj ) { const jsonObj = { ... obj , ... { "resources" : obj . resources ? obj . resources . map ( item => { return model . WorkRequestResource . getDeserializedJsonObj ( item ) ; } ) : undefined } } ; return jsonObj ; } }