/** * Data Integration API * Use the Data Integration API to organize your data integration projects, create data flows, pipelines and tasks, and then publish, schedule, and run tasks that extract, transform, and load data. For more information, see [Data Integration](https://docs.oracle.com/iaas/data-integration/home.htm). * OpenAPI spec version: 20200430 * Contact: di_dis_ww_grp@oracle.com * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, 2026, 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"; /** * The information about the Generic REST task. The endpoint and cancelEndpoint properties are deprecated, use the properties executeRestCallConfig, cancelRestCallConfig and pollRestCallConfig for execute, cancel and polling of the calls. */ export interface CreateTaskFromRestTask extends model.CreateTaskDetails { "authDetails"?: model.AuthDetails; "authConfig"?: model.ResourcePrincipalAuthConfig; "endpoint"?: model.Expression; /** * The REST method to use. This property is deprecated, use ExecuteRestCallConfig's methodType property instead. */ "methodType"?: CreateTaskFromRestTask.MethodType; /** * Headers data for the request. */ "headers"?: any; /** * JSON data for payload body. This property is deprecated, use ExecuteRestCallConfig's payload config param instead. */ "jsonData"?: string; /** * The REST invocation pattern to use. ASYNC_OCI_WORKREQUEST is being deprecated as well as cancelEndpoint/MethodType. */ "apiCallMode"?: CreateTaskFromRestTask.ApiCallMode; "cancelEndpoint"?: model.Expression; /** * The REST method to use for canceling the original request. */ "cancelMethodType"?: CreateTaskFromRestTask.CancelMethodType; "executeRestCallConfig"?: model.ExecuteRestCallConfig; "cancelRestCallConfig"?: model.CancelRestCallConfig; "pollRestCallConfig"?: model.PollRestCallConfig; /** * List of typed expressions. */ "typedExpressions"?: Array; "modelType": string; } export declare namespace CreateTaskFromRestTask { enum MethodType { Get = "GET", Post = "POST", Patch = "PATCH", Delete = "DELETE", Put = "PUT" } enum ApiCallMode { Synchronous = "SYNCHRONOUS", AsyncOciWorkrequest = "ASYNC_OCI_WORKREQUEST", AsyncGeneric = "ASYNC_GENERIC" } enum CancelMethodType { Get = "GET", Post = "POST", Patch = "PATCH", Delete = "DELETE", Put = "PUT" } function getJsonObj(obj: CreateTaskFromRestTask, isParentJsonObj?: boolean): object; const modelType = "REST_TASK"; function getDeserializedJsonObj(obj: CreateTaskFromRestTask, isParentJsonObj?: boolean): object; }