import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Imported Model resource in Oracle Cloud Infrastructure Generative AI service. * * Import a model from ModelDataSource. * * The header contains an opc-work-request-id, which is the id for the WorkRequest that tracks the importedModel creation progress. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testImportedModel = new oci.generativeai.ImportedModel("test_imported_model", { * compartmentId: compartmentId, * dataSource: { * accessToken: importedModelDataSourceAccessToken, * branch: importedModelDataSourceBranch, * bucket: importedModelDataSourceBucket, * commit: importedModelDataSourceCommit, * modelId: testModel.id, * namespace: importedModelDataSourceNamespace, * prefixName: importedModelDataSourcePrefixName, * region: importedModelDataSourceRegion, * sourceType: importedModelDataSourceSourceType, * }, * capabilities: importedModelCapabilities, * definedTags: { * "Operations.CostCenter": "42", * }, * description: importedModelDescription, * displayName: importedModelDisplayName, * freeformTags: { * Department: "Finance", * }, * vendor: importedModelVendor, * version: importedModelVersion, * }); * ``` * * ## Import * * ImportedModels can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:GenerativeAi/importedModel:ImportedModel test_imported_model "id" * ``` */ export declare class ImportedModel extends pulumi.CustomResource { /** * Get an existing ImportedModel resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ImportedModelState, opts?: pulumi.CustomResourceOptions): ImportedModel; /** * Returns true if the given object is an instance of ImportedModel. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ImportedModel; /** * Specifies the intended use or supported capabilities of the imported model. */ readonly capabilities: pulumi.Output; /** * (Updatable) The compartment OCID from which the model is imported. */ readonly compartmentId: pulumi.Output; /** * Defines the source location and method used to import the model. Supports importing from Hugging Face, an Object Storage location, or by referencing an already imported model. */ readonly dataSource: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) An optional description of the imported model. */ readonly description: pulumi.Output; /** * (Updatable) A user-friendly name for the imported model. */ readonly displayName: pulumi.Output; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * Additional information about the current state of the imported model, providing more detailed and actionable context. */ readonly lifecycleDetails: pulumi.Output; /** * Represents a model imported into the system based on an external data source, such as Hugging Face or Object Storage. */ readonly previousState: pulumi.Output; /** * The lifecycle state of the imported model. */ readonly state: pulumi.Output; /** * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The date and time that the imported model was created in the format of an RFC3339 datetime string. */ readonly timeCreated: pulumi.Output; /** * The date and time that the imported model was updated in the format of an RFC3339 datetime string. */ readonly timeUpdated: pulumi.Output; /** * (Updatable) The provider of the imported model. */ readonly vendor: pulumi.Output; /** * (Updatable) The version of the imported model. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly version: pulumi.Output; /** * Create a ImportedModel resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ImportedModelArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ImportedModel resources. */ export interface ImportedModelState { /** * Specifies the intended use or supported capabilities of the imported model. */ capabilities?: pulumi.Input[] | undefined>; /** * (Updatable) The compartment OCID from which the model is imported. */ compartmentId?: pulumi.Input; /** * Defines the source location and method used to import the model. Supports importing from Hugging Face, an Object Storage location, or by referencing an already imported model. */ dataSource?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) An optional description of the imported model. */ description?: pulumi.Input; /** * (Updatable) A user-friendly name for the imported model. */ displayName?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Additional information about the current state of the imported model, providing more detailed and actionable context. */ lifecycleDetails?: pulumi.Input; /** * Represents a model imported into the system based on an external data source, such as Hugging Face or Object Storage. */ previousState?: pulumi.Input; /** * The lifecycle state of the imported model. */ state?: pulumi.Input; /** * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The date and time that the imported model was created in the format of an RFC3339 datetime string. */ timeCreated?: pulumi.Input; /** * The date and time that the imported model was updated in the format of an RFC3339 datetime string. */ timeUpdated?: pulumi.Input; /** * (Updatable) The provider of the imported model. */ vendor?: pulumi.Input; /** * (Updatable) The version of the imported model. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ version?: pulumi.Input; } /** * The set of arguments for constructing a ImportedModel resource. */ export interface ImportedModelArgs { /** * Specifies the intended use or supported capabilities of the imported model. */ capabilities?: pulumi.Input[] | undefined>; /** * (Updatable) The compartment OCID from which the model is imported. */ compartmentId: pulumi.Input; /** * Defines the source location and method used to import the model. Supports importing from Hugging Face, an Object Storage location, or by referencing an already imported model. */ dataSource: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) An optional description of the imported model. */ description?: pulumi.Input; /** * (Updatable) A user-friendly name for the imported model. */ displayName?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The provider of the imported model. */ vendor?: pulumi.Input; /** * (Updatable) The version of the imported model. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ version?: pulumi.Input; } //# sourceMappingURL=importedModel.d.ts.map