import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Model resource in Oracle Cloud Infrastructure Data Science service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/data-science/latest/Model * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/datascience * * Creates a new model. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testModel = new oci.datascience.Model("test_model", { * compartmentId: compartmentId, * projectId: testProject.id, * backupSetting: { * backupRegion: modelBackupSettingBackupRegion, * isBackupEnabled: modelBackupSettingIsBackupEnabled === "true", * customerNotificationType: modelBackupSettingCustomerNotificationType, * }, * customMetadataLists: [{ * category: modelCustomMetadataListCategory, * description: modelCustomMetadataListDescription, * hasArtifact: modelCustomMetadataListHasArtifact === "true", * key: modelCustomMetadataListKey, * keywords: modelCustomMetadataListKeywords, * value: modelCustomMetadataListValue, * }], * definedMetadataLists: [{ * category: modelDefinedMetadataListCategory, * description: modelDefinedMetadataListDescription, * hasArtifact: modelDefinedMetadataListHasArtifact === "true", * key: modelDefinedMetadataListKey, * keywords: modelDefinedMetadataListKeywords, * value: modelDefinedMetadataListValue, * }], * definedTags: { * "Operations.CostCenter": "42", * }, * description: modelDescription, * displayName: modelDisplayName, * freeformTags: { * Department: "Finance", * }, * inputSchema: modelInputSchema, * outputSchema: modelOutputSchema, * retentionSetting: { * archiveAfterDays: Number(modelRetentionSettingArchiveAfterDays), * customerNotificationType: modelRetentionSettingCustomerNotificationType, * deleteAfterDays: Number(modelRetentionSettingDeleteAfterDays), * }, * versionLabel: modelVersionLabel, * }); * ``` * * ## Import * * Models can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DataScience/model:Model test_model "id" * ``` */ export declare class Model extends pulumi.CustomResource { /** * Get an existing Model 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?: ModelState, opts?: pulumi.CustomResourceOptions): Model; /** * Returns true if the given object is an instance of Model. 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 Model; /** * This allows to specify a filename during upload. This file name is used to dispose of the file contents while downloading the file. Example: `attachment; filename=model-artifact.zip` */ readonly artifactContentDisposition: pulumi.Output; /** * The content length of the model_artifact. * * ** 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 artifactContentLength: pulumi.Output; readonly artifactContentMd5: pulumi.Output; readonly artifactLastModified: pulumi.Output; /** * Backup operation details of the model. */ readonly backupOperationDetails: pulumi.Output; /** * (Updatable) Back up setting details of the model. */ readonly backupSetting: pulumi.Output; /** * Category of model metadata which should be null for defined metadata.For custom metadata is should be one of the following values "Performance,Training Profile,Training and Validation Datasets,Training Environment,Reports,Readme,other". */ readonly category: pulumi.Output; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the model in. */ readonly compartmentId: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the model. */ readonly createdBy: pulumi.Output; /** * (Updatable) An array of custom metadata details for the model. */ readonly customMetadataLists: pulumi.Output; /** * (Updatable) An array of defined metadata details for the model. */ readonly definedMetadataLists: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. 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) A short description of the model. */ readonly description: pulumi.Output; /** * (Updatable) A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information. Example: `My Model` */ readonly displayName: pulumi.Output; readonly emptyModel: pulumi.Output; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * Input schema file content in String format */ readonly inputSchema: pulumi.Output; /** * Identifier to indicate whether a model artifact resides in the Service Tenancy or Customer Tenancy. */ readonly isModelByReference: pulumi.Output; /** * Details about the lifecycle state of the model. */ readonly lifecycleDetails: pulumi.Output; /** * The model artifact to upload. It is a ZIP archive of the files necessary to run the model. This can be done in a separate step or using cli/sdk. The Model will remain in "Creating" state until its artifact is uploaded. */ readonly modelArtifact: pulumi.Output; /** * The OCID of the model version set that the model is associated to. */ readonly modelVersionSetId: pulumi.Output; /** * The name of the model version set that the model is associated to. */ readonly modelVersionSetName: pulumi.Output; /** * Output schema file content in String format */ readonly outputSchema: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate with the model. */ readonly projectId: pulumi.Output; /** * Retention operation details for the model. */ readonly retentionOperationDetails: pulumi.Output; /** * (Updatable) Retention setting details of the model. */ readonly retentionSetting: pulumi.Output; /** * The state of the model. */ readonly state: pulumi.Output; /** * The date and time the resource was created in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2019-08-25T21:10:29.41Z */ readonly timeCreated: pulumi.Output; /** * (Updatable) The version label can add an additional description of the lifecycle state of the model or the application using/training the model. */ readonly versionLabel: pulumi.Output; /** * Create a Model 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: ModelArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Model resources. */ export interface ModelState { /** * This allows to specify a filename during upload. This file name is used to dispose of the file contents while downloading the file. Example: `attachment; filename=model-artifact.zip` */ artifactContentDisposition?: pulumi.Input; /** * The content length of the model_artifact. * * ** 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 */ artifactContentLength?: pulumi.Input; artifactContentMd5?: pulumi.Input; artifactLastModified?: pulumi.Input; /** * Backup operation details of the model. */ backupOperationDetails?: pulumi.Input[] | undefined>; /** * (Updatable) Back up setting details of the model. */ backupSetting?: pulumi.Input; /** * Category of model metadata which should be null for defined metadata.For custom metadata is should be one of the following values "Performance,Training Profile,Training and Validation Datasets,Training Environment,Reports,Readme,other". */ category?: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the model in. */ compartmentId?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the model. */ createdBy?: pulumi.Input; /** * (Updatable) An array of custom metadata details for the model. */ customMetadataLists?: pulumi.Input[] | undefined>; /** * (Updatable) An array of defined metadata details for the model. */ definedMetadataLists?: pulumi.Input[] | undefined>; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. 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) A short description of the model. */ description?: pulumi.Input; /** * (Updatable) A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information. Example: `My Model` */ displayName?: pulumi.Input; emptyModel?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. 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>; /** * Input schema file content in String format */ inputSchema?: pulumi.Input; /** * Identifier to indicate whether a model artifact resides in the Service Tenancy or Customer Tenancy. */ isModelByReference?: pulumi.Input; /** * Details about the lifecycle state of the model. */ lifecycleDetails?: pulumi.Input; /** * The model artifact to upload. It is a ZIP archive of the files necessary to run the model. This can be done in a separate step or using cli/sdk. The Model will remain in "Creating" state until its artifact is uploaded. */ modelArtifact?: pulumi.Input; /** * The OCID of the model version set that the model is associated to. */ modelVersionSetId?: pulumi.Input; /** * The name of the model version set that the model is associated to. */ modelVersionSetName?: pulumi.Input; /** * Output schema file content in String format */ outputSchema?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate with the model. */ projectId?: pulumi.Input; /** * Retention operation details for the model. */ retentionOperationDetails?: pulumi.Input[] | undefined>; /** * (Updatable) Retention setting details of the model. */ retentionSetting?: pulumi.Input; /** * The state of the model. */ state?: pulumi.Input; /** * The date and time the resource was created in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2019-08-25T21:10:29.41Z */ timeCreated?: pulumi.Input; /** * (Updatable) The version label can add an additional description of the lifecycle state of the model or the application using/training the model. */ versionLabel?: pulumi.Input; } /** * The set of arguments for constructing a Model resource. */ export interface ModelArgs { /** * This allows to specify a filename during upload. This file name is used to dispose of the file contents while downloading the file. Example: `attachment; filename=model-artifact.zip` */ artifactContentDisposition?: pulumi.Input; /** * The content length of the model_artifact. * * ** 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 */ artifactContentLength: pulumi.Input; /** * (Updatable) Back up setting details of the model. */ backupSetting?: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the model in. */ compartmentId: pulumi.Input; /** * (Updatable) An array of custom metadata details for the model. */ customMetadataLists?: pulumi.Input[] | undefined>; /** * (Updatable) An array of defined metadata details for the model. */ definedMetadataLists?: pulumi.Input[] | undefined>; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. 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) A short description of the model. */ description?: pulumi.Input; /** * (Updatable) A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information. Example: `My 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. 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>; /** * Input schema file content in String format */ inputSchema?: pulumi.Input; /** * The model artifact to upload. It is a ZIP archive of the files necessary to run the model. This can be done in a separate step or using cli/sdk. The Model will remain in "Creating" state until its artifact is uploaded. */ modelArtifact: pulumi.Input; /** * The OCID of the model version set that the model is associated to. */ modelVersionSetId?: pulumi.Input; /** * The name of the model version set that the model is associated to. */ modelVersionSetName?: pulumi.Input; /** * Output schema file content in String format */ outputSchema?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate with the model. */ projectId: pulumi.Input; /** * (Updatable) Retention setting details of the model. */ retentionSetting?: pulumi.Input; /** * The state of the model. */ state?: pulumi.Input; /** * (Updatable) The version label can add an additional description of the lifecycle state of the model or the application using/training the model. */ versionLabel?: pulumi.Input; } //# sourceMappingURL=model.d.ts.map