/** * * * 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 * as model from "../model"; import common = require("oci-common"); /** * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ListJobRuns.ts.html |here} to see how to use ListJobRunsRequest. */ export interface ListJobRunsRequest 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; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the job. */ "jobId"?: string; /** * Filter results by the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the resource. */ "createdBy"?: string; /** * Filter results by its user-friendly name. */ "displayName"?: string; /** * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. * */ "opcRequestId"?: string; /** * 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"?: ListJobRunsRequest.SortOrder; /** * Specifies the field to sort by. Accepts only one field. * By default, when you sort by {@code timeCreated}, the results are shown * in descending order. When you sort by {@code displayName}, the results are * shown in ascending order. Sort order for the {@code displayName} field is case sensitive. * */ "sortBy"?: ListJobRunsRequest.SortBy; /** * Filter results by the specified lifecycle state. Must be a valid * state for the resource type. * */ "lifecycleState"?: model.JobRunLifecycleState; } export declare namespace ListJobRunsRequest { enum SortOrder { Asc = "ASC", Desc = "DESC" } enum SortBy { TimeCreated = "timeCreated", DisplayName = "displayName" } }