oci logo
Oracle Cloud Infrastructure v0.6.0, Jan 23 23

oci.DataScience.Model

This resource provides the Model resource in Oracle Cloud Infrastructure Data Science service.

Creates a new model.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testModel = new Oci.DataScience.Model("testModel", new()
    {
        CompartmentId = @var.Compartment_id,
        ProjectId = oci_datascience_project.Test_project.Id,
        CustomMetadataLists = new[]
        {
            new Oci.DataScience.Inputs.ModelCustomMetadataListArgs
            {
                Category = @var.Model_custom_metadata_list_category,
                Description = @var.Model_custom_metadata_list_description,
                Key = @var.Model_custom_metadata_list_key,
                Value = @var.Model_custom_metadata_list_value,
            },
        },
        DefinedMetadataLists = new[]
        {
            new Oci.DataScience.Inputs.ModelDefinedMetadataListArgs
            {
                Category = @var.Model_defined_metadata_list_category,
                Description = @var.Model_defined_metadata_list_description,
                Key = @var.Model_defined_metadata_list_key,
                Value = @var.Model_defined_metadata_list_value,
            },
        },
        DefinedTags = 
        {
            { "Operations.CostCenter", "42" },
        },
        Description = @var.Model_description,
        DisplayName = @var.Model_display_name,
        FreeformTags = 
        {
            { "Department", "Finance" },
        },
        InputSchema = @var.Model_input_schema,
        OutputSchema = @var.Model_output_schema,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/DataScience"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := DataScience.NewModel(ctx, "testModel", &DataScience.ModelArgs{
			CompartmentId: pulumi.Any(_var.Compartment_id),
			ProjectId:     pulumi.Any(oci_datascience_project.Test_project.Id),
			CustomMetadataLists: datascience.ModelCustomMetadataListArray{
				&datascience.ModelCustomMetadataListArgs{
					Category:    pulumi.Any(_var.Model_custom_metadata_list_category),
					Description: pulumi.Any(_var.Model_custom_metadata_list_description),
					Key:         pulumi.Any(_var.Model_custom_metadata_list_key),
					Value:       pulumi.Any(_var.Model_custom_metadata_list_value),
				},
			},
			DefinedMetadataLists: datascience.ModelDefinedMetadataListArray{
				&datascience.ModelDefinedMetadataListArgs{
					Category:    pulumi.Any(_var.Model_defined_metadata_list_category),
					Description: pulumi.Any(_var.Model_defined_metadata_list_description),
					Key:         pulumi.Any(_var.Model_defined_metadata_list_key),
					Value:       pulumi.Any(_var.Model_defined_metadata_list_value),
				},
			},
			DefinedTags: pulumi.AnyMap{
				"Operations.CostCenter": pulumi.Any("42"),
			},
			Description: pulumi.Any(_var.Model_description),
			DisplayName: pulumi.Any(_var.Model_display_name),
			FreeformTags: pulumi.AnyMap{
				"Department": pulumi.Any("Finance"),
			},
			InputSchema:  pulumi.Any(_var.Model_input_schema),
			OutputSchema: pulumi.Any(_var.Model_output_schema),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataScience.Model;
import com.pulumi.oci.DataScience.ModelArgs;
import com.pulumi.oci.DataScience.inputs.ModelCustomMetadataListArgs;
import com.pulumi.oci.DataScience.inputs.ModelDefinedMetadataListArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var testModel = new Model("testModel", ModelArgs.builder()        
            .compartmentId(var_.compartment_id())
            .projectId(oci_datascience_project.test_project().id())
            .customMetadataLists(ModelCustomMetadataListArgs.builder()
                .category(var_.model_custom_metadata_list_category())
                .description(var_.model_custom_metadata_list_description())
                .key(var_.model_custom_metadata_list_key())
                .value(var_.model_custom_metadata_list_value())
                .build())
            .definedMetadataLists(ModelDefinedMetadataListArgs.builder()
                .category(var_.model_defined_metadata_list_category())
                .description(var_.model_defined_metadata_list_description())
                .key(var_.model_defined_metadata_list_key())
                .value(var_.model_defined_metadata_list_value())
                .build())
            .definedTags(Map.of("Operations.CostCenter", "42"))
            .description(var_.model_description())
            .displayName(var_.model_display_name())
            .freeformTags(Map.of("Department", "Finance"))
            .inputSchema(var_.model_input_schema())
            .outputSchema(var_.model_output_schema())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_model = oci.data_science.Model("testModel",
    compartment_id=var["compartment_id"],
    project_id=oci_datascience_project["test_project"]["id"],
    custom_metadata_lists=[oci.data_science.ModelCustomMetadataListArgs(
        category=var["model_custom_metadata_list_category"],
        description=var["model_custom_metadata_list_description"],
        key=var["model_custom_metadata_list_key"],
        value=var["model_custom_metadata_list_value"],
    )],
    defined_metadata_lists=[oci.data_science.ModelDefinedMetadataListArgs(
        category=var["model_defined_metadata_list_category"],
        description=var["model_defined_metadata_list_description"],
        key=var["model_defined_metadata_list_key"],
        value=var["model_defined_metadata_list_value"],
    )],
    defined_tags={
        "Operations.CostCenter": "42",
    },
    description=var["model_description"],
    display_name=var["model_display_name"],
    freeform_tags={
        "Department": "Finance",
    },
    input_schema=var["model_input_schema"],
    output_schema=var["model_output_schema"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testModel = new oci.datascience.Model("testModel", {
    compartmentId: _var.compartment_id,
    projectId: oci_datascience_project.test_project.id,
    customMetadataLists: [{
        category: _var.model_custom_metadata_list_category,
        description: _var.model_custom_metadata_list_description,
        key: _var.model_custom_metadata_list_key,
        value: _var.model_custom_metadata_list_value,
    }],
    definedMetadataLists: [{
        category: _var.model_defined_metadata_list_category,
        description: _var.model_defined_metadata_list_description,
        key: _var.model_defined_metadata_list_key,
        value: _var.model_defined_metadata_list_value,
    }],
    definedTags: {
        "Operations.CostCenter": "42",
    },
    description: _var.model_description,
    displayName: _var.model_display_name,
    freeformTags: {
        Department: "Finance",
    },
    inputSchema: _var.model_input_schema,
    outputSchema: _var.model_output_schema,
});
resources:
  testModel:
    type: oci:DataScience:Model
    properties:
      #Required
      compartmentId: ${var.compartment_id}
      projectId: ${oci_datascience_project.test_project.id}
      #Optional
      customMetadataLists:
        - category: ${var.model_custom_metadata_list_category}
          description: ${var.model_custom_metadata_list_description}
          key: ${var.model_custom_metadata_list_key}
          value: ${var.model_custom_metadata_list_value}
      definedMetadataLists:
        - category: ${var.model_defined_metadata_list_category}
          description: ${var.model_defined_metadata_list_description}
          key: ${var.model_defined_metadata_list_key}
          value: ${var.model_defined_metadata_list_value}
      definedTags:
        Operations.CostCenter: '42'
      description: ${var.model_description}
      displayName: ${var.model_display_name}
      freeformTags:
        Department: Finance
      inputSchema: ${var.model_input_schema}
      outputSchema: ${var.model_output_schema}

Create Model Resource

new Model(name: string, args: ModelArgs, opts?: CustomResourceOptions);
@overload
def Model(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          artifact_content_disposition: Optional[str] = None,
          artifact_content_length: Optional[str] = None,
          compartment_id: Optional[str] = None,
          custom_metadata_lists: Optional[Sequence[_datascience.ModelCustomMetadataListArgs]] = None,
          defined_metadata_lists: Optional[Sequence[_datascience.ModelDefinedMetadataListArgs]] = None,
          defined_tags: Optional[Mapping[str, Any]] = None,
          description: Optional[str] = None,
          display_name: Optional[str] = None,
          freeform_tags: Optional[Mapping[str, Any]] = None,
          input_schema: Optional[str] = None,
          model_artifact: Optional[str] = None,
          output_schema: Optional[str] = None,
          project_id: Optional[str] = None,
          state: Optional[str] = None)
@overload
def Model(resource_name: str,
          args: ModelArgs,
          opts: Optional[ResourceOptions] = None)
func NewModel(ctx *Context, name string, args ModelArgs, opts ...ResourceOption) (*Model, error)
public Model(string name, ModelArgs args, CustomResourceOptions? opts = null)
public Model(String name, ModelArgs args)
public Model(String name, ModelArgs args, CustomResourceOptions options)
type: oci:DataScience:Model
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ModelArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ModelArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ModelArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ModelArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ModelArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Model Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Model resource accepts the following input properties:

ArtifactContentLength string

The content length of the model_artifact.

CompartmentId string

(Updatable) The OCID of the compartment to create the model in.

ModelArtifact string

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.

ProjectId string

The OCID of the project to associate with the model.

ArtifactContentDisposition string

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

CustomMetadataLists List<ModelCustomMetadataListArgs>

(Updatable) An array of custom metadata details for the model.

DefinedMetadataLists List<ModelDefinedMetadataListArgs>

(Updatable) An array of defined metadata details for the model.

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

Description string

(Updatable) A short description of the model.

DisplayName string

(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

FreeformTags Dictionary<string, object>

(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. Example: {"Department": "Finance"}

InputSchema string

Input schema file content in String format

OutputSchema string

Output schema file content in String format

State string

The state of the model.

ArtifactContentLength string

The content length of the model_artifact.

CompartmentId string

(Updatable) The OCID of the compartment to create the model in.

ModelArtifact string

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.

ProjectId string

The OCID of the project to associate with the model.

ArtifactContentDisposition string

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

CustomMetadataLists []ModelCustomMetadataListArgs

(Updatable) An array of custom metadata details for the model.

DefinedMetadataLists []ModelDefinedMetadataListArgs

(Updatable) An array of defined metadata details for the model.

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

Description string

(Updatable) A short description of the model.

DisplayName string

(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

FreeformTags map[string]interface{}

(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. Example: {"Department": "Finance"}

InputSchema string

Input schema file content in String format

OutputSchema string

Output schema file content in String format

State string

The state of the model.

artifactContentLength String

The content length of the model_artifact.

compartmentId String

(Updatable) The OCID of the compartment to create the model in.

modelArtifact String

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.

projectId String

The OCID of the project to associate with the model.

artifactContentDisposition String

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

customMetadataLists List<ModelCustomMetadataListArgs>

(Updatable) An array of custom metadata details for the model.

definedMetadataLists List<ModelDefinedMetadataListArgs>

(Updatable) An array of defined metadata details for the model.

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

description String

(Updatable) A short description of the model.

displayName String

(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

freeformTags Map<String,Object>

(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. Example: {"Department": "Finance"}

inputSchema String

Input schema file content in String format

outputSchema String

Output schema file content in String format

state String

The state of the model.

artifactContentLength string

The content length of the model_artifact.

compartmentId string

(Updatable) The OCID of the compartment to create the model in.

modelArtifact string

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.

projectId string

The OCID of the project to associate with the model.

artifactContentDisposition string

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

customMetadataLists ModelCustomMetadataListArgs[]

(Updatable) An array of custom metadata details for the model.

definedMetadataLists ModelDefinedMetadataListArgs[]

(Updatable) An array of defined metadata details for the model.

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

description string

(Updatable) A short description of the model.

displayName string

(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

freeformTags {[key: string]: any}

(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. Example: {"Department": "Finance"}

inputSchema string

Input schema file content in String format

outputSchema string

Output schema file content in String format

state string

The state of the model.

artifact_content_length str

The content length of the model_artifact.

compartment_id str

(Updatable) The OCID of the compartment to create the model in.

model_artifact str

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.

project_id str

The OCID of the project to associate with the model.

artifact_content_disposition str

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

custom_metadata_lists ModelCustomMetadataListArgs]

(Updatable) An array of custom metadata details for the model.

defined_metadata_lists ModelDefinedMetadataListArgs]

(Updatable) An array of defined metadata details for the model.

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

description str

(Updatable) A short description of the model.

display_name str

(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

freeform_tags Mapping[str, Any]

(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. Example: {"Department": "Finance"}

input_schema str

Input schema file content in String format

output_schema str

Output schema file content in String format

state str

The state of the model.

artifactContentLength String

The content length of the model_artifact.

compartmentId String

(Updatable) The OCID of the compartment to create the model in.

modelArtifact String

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.

projectId String

The OCID of the project to associate with the model.

artifactContentDisposition String

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

customMetadataLists List<Property Map>

(Updatable) An array of custom metadata details for the model.

definedMetadataLists List<Property Map>

(Updatable) An array of defined metadata details for the model.

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

description String

(Updatable) A short description of the model.

displayName String

(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

freeformTags Map<Any>

(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. Example: {"Department": "Finance"}

inputSchema String

Input schema file content in String format

outputSchema String

Output schema file content in String format

state String

The state of the model.

Outputs

All input properties are implicitly available as output properties. Additionally, the Model resource produces the following output properties:

ArtifactContentMd5 string
ArtifactLastModified string
CreatedBy string

The OCID of the user who created the model.

EmptyModel bool
Id string

The provider-assigned unique ID for this managed resource.

TimeCreated string

The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

ArtifactContentMd5 string
ArtifactLastModified string
CreatedBy string

The OCID of the user who created the model.

EmptyModel bool
Id string

The provider-assigned unique ID for this managed resource.

TimeCreated string

The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

artifactContentMd5 String
artifactLastModified String
createdBy String

The OCID of the user who created the model.

emptyModel Boolean
id String

The provider-assigned unique ID for this managed resource.

timeCreated String

The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

artifactContentMd5 string
artifactLastModified string
createdBy string

The OCID of the user who created the model.

emptyModel boolean
id string

The provider-assigned unique ID for this managed resource.

timeCreated string

The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

artifact_content_md5 str
artifact_last_modified str
created_by str

The OCID of the user who created the model.

empty_model bool
id str

The provider-assigned unique ID for this managed resource.

time_created str

The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

artifactContentMd5 String
artifactLastModified String
createdBy String

The OCID of the user who created the model.

emptyModel Boolean
id String

The provider-assigned unique ID for this managed resource.

timeCreated String

The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

Look up Existing Model Resource

Get an existing Model resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ModelState, opts?: CustomResourceOptions): Model
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        artifact_content_disposition: Optional[str] = None,
        artifact_content_length: Optional[str] = None,
        artifact_content_md5: Optional[str] = None,
        artifact_last_modified: Optional[str] = None,
        compartment_id: Optional[str] = None,
        created_by: Optional[str] = None,
        custom_metadata_lists: Optional[Sequence[_datascience.ModelCustomMetadataListArgs]] = None,
        defined_metadata_lists: Optional[Sequence[_datascience.ModelDefinedMetadataListArgs]] = None,
        defined_tags: Optional[Mapping[str, Any]] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        empty_model: Optional[bool] = None,
        freeform_tags: Optional[Mapping[str, Any]] = None,
        input_schema: Optional[str] = None,
        model_artifact: Optional[str] = None,
        output_schema: Optional[str] = None,
        project_id: Optional[str] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None) -> Model
func GetModel(ctx *Context, name string, id IDInput, state *ModelState, opts ...ResourceOption) (*Model, error)
public static Model Get(string name, Input<string> id, ModelState? state, CustomResourceOptions? opts = null)
public static Model get(String name, Output<String> id, ModelState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ArtifactContentDisposition string

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

ArtifactContentLength string

The content length of the model_artifact.

ArtifactContentMd5 string
ArtifactLastModified string
CompartmentId string

(Updatable) The OCID of the compartment to create the model in.

CreatedBy string

The OCID of the user who created the model.

CustomMetadataLists List<ModelCustomMetadataListArgs>

(Updatable) An array of custom metadata details for the model.

DefinedMetadataLists List<ModelDefinedMetadataListArgs>

(Updatable) An array of defined metadata details for the model.

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

Description string

(Updatable) A short description of the model.

DisplayName string

(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

EmptyModel bool
FreeformTags Dictionary<string, object>

(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. Example: {"Department": "Finance"}

InputSchema string

Input schema file content in String format

ModelArtifact string

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.

OutputSchema string

Output schema file content in String format

ProjectId string

The OCID of the project to associate with the model.

State string

The state of the model.

TimeCreated string

The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

ArtifactContentDisposition string

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

ArtifactContentLength string

The content length of the model_artifact.

ArtifactContentMd5 string
ArtifactLastModified string
CompartmentId string

(Updatable) The OCID of the compartment to create the model in.

CreatedBy string

The OCID of the user who created the model.

CustomMetadataLists []ModelCustomMetadataListArgs

(Updatable) An array of custom metadata details for the model.

DefinedMetadataLists []ModelDefinedMetadataListArgs

(Updatable) An array of defined metadata details for the model.

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

Description string

(Updatable) A short description of the model.

DisplayName string

(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

EmptyModel bool
FreeformTags map[string]interface{}

(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. Example: {"Department": "Finance"}

InputSchema string

Input schema file content in String format

ModelArtifact string

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.

OutputSchema string

Output schema file content in String format

ProjectId string

The OCID of the project to associate with the model.

State string

The state of the model.

TimeCreated string

The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

artifactContentDisposition String

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

artifactContentLength String

The content length of the model_artifact.

artifactContentMd5 String
artifactLastModified String
compartmentId String

(Updatable) The OCID of the compartment to create the model in.

createdBy String

The OCID of the user who created the model.

customMetadataLists List<ModelCustomMetadataListArgs>

(Updatable) An array of custom metadata details for the model.

definedMetadataLists List<ModelDefinedMetadataListArgs>

(Updatable) An array of defined metadata details for the model.

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

description String

(Updatable) A short description of the model.

displayName String

(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

emptyModel Boolean
freeformTags Map<String,Object>

(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. Example: {"Department": "Finance"}

inputSchema String

Input schema file content in String format

modelArtifact String

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.

outputSchema String

Output schema file content in String format

projectId String

The OCID of the project to associate with the model.

state String

The state of the model.

timeCreated String

The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

artifactContentDisposition string

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

artifactContentLength string

The content length of the model_artifact.

artifactContentMd5 string
artifactLastModified string
compartmentId string

(Updatable) The OCID of the compartment to create the model in.

createdBy string

The OCID of the user who created the model.

customMetadataLists ModelCustomMetadataListArgs[]

(Updatable) An array of custom metadata details for the model.

definedMetadataLists ModelDefinedMetadataListArgs[]

(Updatable) An array of defined metadata details for the model.

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

description string

(Updatable) A short description of the model.

displayName string

(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

emptyModel boolean
freeformTags {[key: string]: any}

(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. Example: {"Department": "Finance"}

inputSchema string

Input schema file content in String format

modelArtifact string

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.

outputSchema string

Output schema file content in String format

projectId string

The OCID of the project to associate with the model.

state string

The state of the model.

timeCreated string

The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

artifact_content_disposition str

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

artifact_content_length str

The content length of the model_artifact.

artifact_content_md5 str
artifact_last_modified str
compartment_id str

(Updatable) The OCID of the compartment to create the model in.

created_by str

The OCID of the user who created the model.

custom_metadata_lists ModelCustomMetadataListArgs]

(Updatable) An array of custom metadata details for the model.

defined_metadata_lists ModelDefinedMetadataListArgs]

(Updatable) An array of defined metadata details for the model.

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

description str

(Updatable) A short description of the model.

display_name str

(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

empty_model bool
freeform_tags Mapping[str, Any]

(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. Example: {"Department": "Finance"}

input_schema str

Input schema file content in String format

model_artifact str

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.

output_schema str

Output schema file content in String format

project_id str

The OCID of the project to associate with the model.

state str

The state of the model.

time_created str

The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

artifactContentDisposition String

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

artifactContentLength String

The content length of the model_artifact.

artifactContentMd5 String
artifactLastModified String
compartmentId String

(Updatable) The OCID of the compartment to create the model in.

createdBy String

The OCID of the user who created the model.

customMetadataLists List<Property Map>

(Updatable) An array of custom metadata details for the model.

definedMetadataLists List<Property Map>

(Updatable) An array of defined metadata details for the model.

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

description String

(Updatable) A short description of the model.

displayName String

(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

emptyModel Boolean
freeformTags Map<Any>

(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. Example: {"Department": "Finance"}

inputSchema String

Input schema file content in String format

modelArtifact String

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.

outputSchema String

Output schema file content in String format

projectId String

The OCID of the project to associate with the model.

state String

The state of the model.

timeCreated String

The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

Supporting Types

ModelCustomMetadataList

Category string

(Updatable) 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,other".

Description string

(Updatable) A short description of the model.

Key string

(Updatable) Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:

  • useCaseType
  • libraryName
  • libraryVersion
  • estimatorClass
  • hyperParameters
  • testartifactresults
Value string

(Updatable) Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other

Category string

(Updatable) 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,other".

Description string

(Updatable) A short description of the model.

Key string

(Updatable) Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:

  • useCaseType
  • libraryName
  • libraryVersion
  • estimatorClass
  • hyperParameters
  • testartifactresults
Value string

(Updatable) Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other

category String

(Updatable) 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,other".

description String

(Updatable) A short description of the model.

key String

(Updatable) Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:

  • useCaseType
  • libraryName
  • libraryVersion
  • estimatorClass
  • hyperParameters
  • testartifactresults
value String

(Updatable) Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other

category string

(Updatable) 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,other".

description string

(Updatable) A short description of the model.

key string

(Updatable) Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:

  • useCaseType
  • libraryName
  • libraryVersion
  • estimatorClass
  • hyperParameters
  • testartifactresults
value string

(Updatable) Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other

category str

(Updatable) 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,other".

description str

(Updatable) A short description of the model.

key str

(Updatable) Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:

  • useCaseType
  • libraryName
  • libraryVersion
  • estimatorClass
  • hyperParameters
  • testartifactresults
value str

(Updatable) Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other

category String

(Updatable) 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,other".

description String

(Updatable) A short description of the model.

key String

(Updatable) Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:

  • useCaseType
  • libraryName
  • libraryVersion
  • estimatorClass
  • hyperParameters
  • testartifactresults
value String

(Updatable) Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other

ModelDefinedMetadataList

Category string

(Updatable) 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,other".

Description string

(Updatable) A short description of the model.

Key string

(Updatable) Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:

  • useCaseType
  • libraryName
  • libraryVersion
  • estimatorClass
  • hyperParameters
  • testartifactresults
Value string

(Updatable) Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other

Category string

(Updatable) 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,other".

Description string

(Updatable) A short description of the model.

Key string

(Updatable) Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:

  • useCaseType
  • libraryName
  • libraryVersion
  • estimatorClass
  • hyperParameters
  • testartifactresults
Value string

(Updatable) Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other

category String

(Updatable) 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,other".

description String

(Updatable) A short description of the model.

key String

(Updatable) Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:

  • useCaseType
  • libraryName
  • libraryVersion
  • estimatorClass
  • hyperParameters
  • testartifactresults
value String

(Updatable) Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other

category string

(Updatable) 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,other".

description string

(Updatable) A short description of the model.

key string

(Updatable) Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:

  • useCaseType
  • libraryName
  • libraryVersion
  • estimatorClass
  • hyperParameters
  • testartifactresults
value string

(Updatable) Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other

category str

(Updatable) 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,other".

description str

(Updatable) A short description of the model.

key str

(Updatable) Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:

  • useCaseType
  • libraryName
  • libraryVersion
  • estimatorClass
  • hyperParameters
  • testartifactresults
value str

(Updatable) Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other

category String

(Updatable) 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,other".

description String

(Updatable) A short description of the model.

key String

(Updatable) Key of the model Metadata. The key can either be user defined or Oracle Cloud Infrastructure defined. List of Oracle Cloud Infrastructure defined keys:

  • useCaseType
  • libraryName
  • libraryVersion
  • estimatorClass
  • hyperParameters
  • testartifactresults
value String

(Updatable) Allowed values for useCaseType: binary_classification, regression, multinomial_classification, clustering, recommender, dimensionality_reduction/representation, time_series_forecasting, anomaly_detection, topic_modeling, ner, sentiment_analysis, image_classification, object_localization, other

Import

Models can be imported using the id, e.g.

 $ pulumi import oci:DataScience/model:Model test_model "id"

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.