/** * * * OpenAPI spec version: 20180917 * * * 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/resourcemanager/ListTemplates.ts.html |here} to see how to use ListTemplatesRequest. */ export interface ListTemplatesRequest extends common.BaseRequest { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a * particular request, please provide the request ID. * */ "opcRequestId"?: string; /** * A filter to return only resources that exist in the compartment, identified by [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). * */ "compartmentId"?: string; /** * Unique identifier for the template category. * Possible values are {@code 0} (Quickstarts), {@code 1} (Service), {@code 2} (Architecture), and {@code 3} (Private). * Template category labels are displayed in the Console page listing templates. * Quickstarts, Service, and Architecture templates (categories 0, 1, and 2) are available in all compartments. * Each private template (category 3) is available in the compartment where it was created. * */ "templateCategoryId"?: string; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the template. */ "templateId"?: string; /** * A filter to return only resources that match the given display name exactly. * Use this filter to list a resource by name. * Requires {@code sortBy} set to {@code DISPLAYNAME}. * Alternatively, when you know the resource OCID, use the related Get operation. * */ "displayName"?: string; /** * The field to use when sorting returned resources. * By default, {@code TIMECREATED} is ordered descending. * By default, {@code DISPLAYNAME} is ordered ascending. Note that you can sort only on one field. * */ "sortBy"?: ListTemplatesRequest.SortBy; /** * The sort order to use when sorting returned resources. Ascending ({@code ASC}) or descending ({@code DESC}). * */ "sortOrder"?: ListTemplatesRequest.SortOrder; /** * The number of items returned in a paginated {@code List} call. For information about pagination, see * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ "limit"?: number; /** * The value of the {@code opc-next-page} response header from the preceding {@code List} call. * For information about pagination, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ "page"?: string; } export declare namespace ListTemplatesRequest { enum SortBy { Timecreated = "TIMECREATED", Displayname = "DISPLAYNAME" } enum SortOrder { Asc = "ASC", Desc = "DESC" } }