/** * * * OpenAPI spec version: 20200531 * * * 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"; import common = require("oci-common"); /** * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/logging/ListWorkRequests.ts.html |here} to see how to use ListWorkRequestsRequest. */ export interface ListWorkRequestsRequest extends common.BaseRequest { /** * Compartment OCID to list resources in. See compartmentIdInSubtree * for nested compartments traversal. * */ "compartmentId": string; /** * Filter results by work request status. */ "status"?: model.OperationStatus; /** * Filter results by [OCID](https://docs.oracle.com/iaas/Content/API/Concepts/identifiers.htm). Must be an OCID of the correct type for the resource type. * */ "id"?: string; /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about * a particular request, please provide the request ID. * */ "opcRequestId"?: string; /** * For list pagination. The value of the {@code opc-next-page} or {@code opc-previous-page} response header from the previous \"List\" call. * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ "page"?: string; /** * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ "limit"?: number; /** * The sort order to use, whether 'asc' or 'desc'. * */ "sortOrder"?: ListWorkRequestsRequest.SortOrder; /** * Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. * */ "sortBy"?: ListWorkRequestsRequest.SortBy; } export declare namespace ListWorkRequestsRequest { enum SortOrder { Asc = "ASC", Desc = "DESC" } enum SortBy { OperationType = "operationType", Status = "status", TimeAccepted = "timeAccepted" } }