/** * * * OpenAPI spec version: 20190101 * * * 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 common = require("oci-common"); /** * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ListWorkRequests.ts.html |here} to see how to use ListWorkRequestsRequest. */ export interface ListWorkRequestsRequest extends common.BaseRequest { /** * Filter results by the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ "compartmentId": string; /** * Filter results by [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for the resource type. * */ "id"?: string; /** * Filter results by the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource associated with the work request. */ "resourceId"?: string; /** * Filter results by the type of the operation associated with the work request. */ "operationType"?: ListWorkRequestsRequest.OperationType; /** * Filter results by work request status. */ "status"?: ListWorkRequestsRequest.Status; /** * For list pagination. The maximum number of results per page, * or items to return in a paginated \"List\" call. * 1 is the minimum, 100 is the maximum. * See [List Pagination](https://docs.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). *

Example: {@code 50} * */ "limit"?: number; /** * For list pagination. The value of the {@code opc-next-page} response * header from the previous \"List\" call. *

See [List Pagination](https://docs.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). * */ "page"?: string; /** * Specifies sort order to use, either {@code ASC} (ascending) or {@code DESC} (descending). * */ "sortOrder"?: ListWorkRequestsRequest.SortOrder; /** * Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, the results are shown in descending order. All other fields default to ascending order. * */ "sortBy"?: ListWorkRequestsRequest.SortBy; /** * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. * */ "opcRequestId"?: string; } export declare namespace ListWorkRequestsRequest { enum OperationType { NotebookSessionCreate = "NOTEBOOK_SESSION_CREATE", NotebookSessionDelete = "NOTEBOOK_SESSION_DELETE", NotebookSessionActivate = "NOTEBOOK_SESSION_ACTIVATE", NotebookSessionDeactivate = "NOTEBOOK_SESSION_DEACTIVATE", ModelversionsetDelete = "MODELVERSIONSET_DELETE", ExportModelArtifact = "EXPORT_MODEL_ARTIFACT", ImportModelArtifact = "IMPORT_MODEL_ARTIFACT", ModelDeploymentCreate = "MODEL_DEPLOYMENT_CREATE", ModelDeploymentDelete = "MODEL_DEPLOYMENT_DELETE", ModelDeploymentActivate = "MODEL_DEPLOYMENT_ACTIVATE", ModelDeploymentDeactivate = "MODEL_DEPLOYMENT_DEACTIVATE", ModelDeploymentUpdate = "MODEL_DEPLOYMENT_UPDATE", ProjectDelete = "PROJECT_DELETE", WorkrequestCancel = "WORKREQUEST_CANCEL", JobDelete = "JOB_DELETE", PipelineCreate = "PIPELINE_CREATE", PipelineDelete = "PIPELINE_DELETE", PipelineRunCreate = "PIPELINE_RUN_CREATE", PipelineRunCancel = "PIPELINE_RUN_CANCEL", PipelineRunDelete = "PIPELINE_RUN_DELETE", MlApplicationPackageUpload = "ML_APPLICATION_PACKAGE_UPLOAD", MlApplicationTriggerStart = "ML_APPLICATION_TRIGGER_START", MlApplicationImplementationDelete = "ML_APPLICATION_IMPLEMENTATION_DELETE", MlApplicationImplementationUpdate = "ML_APPLICATION_IMPLEMENTATION_UPDATE", MlApplicationImplementationMove = "ML_APPLICATION_IMPLEMENTATION_MOVE", MlApplicationInstanceCreate = "ML_APPLICATION_INSTANCE_CREATE", MlApplicationInstanceUpdate = "ML_APPLICATION_INSTANCE_UPDATE", MlApplicationInstanceDelete = "ML_APPLICATION_INSTANCE_DELETE", MlApplicationInstanceMove = "ML_APPLICATION_INSTANCE_MOVE", MlApplicationInstanceViewCreate = "ML_APPLICATION_INSTANCE_VIEW_CREATE", MlApplicationInstanceViewUpdate = "ML_APPLICATION_INSTANCE_VIEW_UPDATE", MlApplicationInstanceViewDelete = "ML_APPLICATION_INSTANCE_VIEW_DELETE", MlApplicationInstanceViewUpgrade = "ML_APPLICATION_INSTANCE_VIEW_UPGRADE", MlApplicationInstanceViewMove = "ML_APPLICATION_INSTANCE_VIEW_MOVE", PrivateEndpointCreate = "PRIVATE_ENDPOINT_CREATE", PrivateEndpointDelete = "PRIVATE_ENDPOINT_DELETE", PrivateEndpointMove = "PRIVATE_ENDPOINT_MOVE", PrivateEndpointUpdate = "PRIVATE_ENDPOINT_UPDATE", ScheduleCreate = "SCHEDULE_CREATE", ScheduleUpdate = "SCHEDULE_UPDATE", ScheduleDelete = "SCHEDULE_DELETE", ScheduleMove = "SCHEDULE_MOVE", ScheduleActivate = "SCHEDULE_ACTIVATE", ScheduleDeactivate = "SCHEDULE_DEACTIVATE", RegisterModelArtifact = "REGISTER_MODEL_ARTIFACT", RestoreArchivedModel = "RESTORE_ARCHIVED_MODEL", ComputeTargetCreate = "COMPUTE_TARGET_CREATE", ComputeTargetUpdate = "COMPUTE_TARGET_UPDATE", ComputeTargetDelete = "COMPUTE_TARGET_DELETE", ModelGroupCreate = "MODEL_GROUP_CREATE", ModelGroupUpdate = "MODEL_GROUP_UPDATE", ModelGroupDelete = "MODEL_GROUP_DELETE", ModelGroupVersionHistoryDelete = "MODEL_GROUP_VERSION_HISTORY_DELETE", CreateModelArtifactSignature = "CREATE_MODEL_ARTIFACT_SIGNATURE", VerifyModelArtifactSignature = "VERIFY_MODEL_ARTIFACT_SIGNATURE" } enum Status { Accepted = "ACCEPTED", InProgress = "IN_PROGRESS", Failed = "FAILED", Succeeded = "SUCCEEDED", PartiallySucceeded = "PARTIALLY_SUCCEEDED", Canceling = "CANCELING", Canceled = "CANCELED" } enum SortOrder { Asc = "ASC", Desc = "DESC" } enum SortBy { OperationType = "operationType", Status = "status", TimeAccepted = "timeAccepted" } }