modelarts

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.2

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type Dataset

type Dataset struct {
	pulumi.CustomResourceState

	// The dataset creation time.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// dataset format. Valid values include: `Default`, `CarbonData`: Carbon format(Supported only for
	// table type datasets).
	DataFormat pulumi.StringOutput `pulumi:"dataFormat"`
	// Specifies the data sources which be used to imported the source data (such
	// as pictures/files/audio, etc.) in this directory and subdirectories to the dataset. Structure is documented below.
	// Changing this parameter will create a new resource.
	DataSource DatasetDataSourceOutput `pulumi:"dataSource"`
	// Specifies the description of dataset. It contains a maximum of 256 characters and
	// cannot contain special characters `!<>=&"'`.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Specifies whether to import labeled files.
	// Default value is `true`. Changing this parameter will create a new resource.
	ImportLabeledEnabled pulumi.BoolPtrOutput `pulumi:"importLabeledEnabled"`
	// Specifies the custom format information of labeled files when import
	// labeled files for Text classification. Structure is documented below.
	// Changing this parameter will create a new resource.
	LabelFormat DatasetLabelFormatPtrOutput `pulumi:"labelFormat"`
	// Specifies labels information. Structure is documented below.
	Labels DatasetLabelArrayOutput `pulumi:"labels"`
	// Specifies the name of label.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the OBS path for storing output files such as labeled files.
	// The path cannot be the same as the import path or subdirectory of the import path.
	// Changing this parameter will create a new resource.
	OutputPath pulumi.StringOutput `pulumi:"outputPath"`
	// The region in which to create the resource. If omitted, the
	// provider-level region will be used. Changing this parameter will create a new resource.
	Region pulumi.StringOutput `pulumi:"region"`
	// Specifies the schema information of source data when `type` is `400`.
	// Structure is documented below. Changing this parameter will create a new resource.
	Schemas DatasetSchemaArrayOutput `pulumi:"schemas"`
	// Dataset status. Valid values are as follows:
	// + **0**: Creating.
	// + **1**: Completed.
	// + **2**: Deleting.
	// + **3**: Deleted.
	// + **4**: Exception.
	// + **5**: Syncing.
	// + **6**: Releasing.
	// + **7**: Version switching.
	// + **8**: Importing.
	Status pulumi.IntOutput `pulumi:"status"`
	// Specifies Label type for text classification.
	// The optional values are as follows:
	Type pulumi.IntOutput `pulumi:"type"`
}

Manages ModelArts dataset resource within HuaweiCloud.

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/ModelArts"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/ModelArts"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := cfg.RequireObject("name")
		outputObsPath := cfg.RequireObject("outputObsPath")
		inputObsPath := cfg.RequireObject("inputObsPath")
		_, err := ModelArts.NewDataset(ctx, "test", &ModelArts.DatasetArgs{
			Type:        pulumi.Int(1),
			OutputPath:  pulumi.Any(outputObsPath),
			Description: pulumi.String("Terraform Demo"),
			DataSource: &modelarts.DatasetDataSourceArgs{
				Path: pulumi.Any(inputObsPath),
			},
			Labels: modelarts.DatasetLabelArray{
				&modelarts.DatasetLabelArgs{
					Name: pulumi.String("foo"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

The datasets can be imported by `id`.

```sh

$ pulumi import huaweicloud:ModelArts/dataset:Dataset test yiROKoTTjtwjvP71yLG

```

Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response, security or some other reason. The missing attributes include`data_source.0.path`, `data_source.0.queue_name`, `data_source.0.database_name`, `data_source.0.table_name`, `data_source.0.cluster_id`, `data_source.0.user_name` and `data_source.0.password`. It is generally recommended running `terraform plan` after importing a dataset. You can then decide if changes should be applied to the dataset, or the resource definition should be updated to align with the dataset. Also you can ignore changes as below. resource "huaweicloud_modelarts_dataset" "test" {

...

lifecycle {

ignore_changes = [

data_source.0.path, data_source.0.queue_name, data_source.0.database_name, data_source.0.table_name,

data_source.0.cluster_id, data_source.0.user_name, data_source.0.password,

]

} }

func GetDataset

func GetDataset(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DatasetState, opts ...pulumi.ResourceOption) (*Dataset, error)

GetDataset gets an existing Dataset resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDataset

func NewDataset(ctx *pulumi.Context,
	name string, args *DatasetArgs, opts ...pulumi.ResourceOption) (*Dataset, error)

NewDataset registers a new resource with the given unique name, arguments, and options.

func (*Dataset) ElementType

func (*Dataset) ElementType() reflect.Type

func (*Dataset) ToDatasetOutput

func (i *Dataset) ToDatasetOutput() DatasetOutput

func (*Dataset) ToDatasetOutputWithContext

func (i *Dataset) ToDatasetOutputWithContext(ctx context.Context) DatasetOutput

type DatasetArgs

type DatasetArgs struct {
	// Specifies the data sources which be used to imported the source data (such
	// as pictures/files/audio, etc.) in this directory and subdirectories to the dataset. Structure is documented below.
	// Changing this parameter will create a new resource.
	DataSource DatasetDataSourceInput
	// Specifies the description of dataset. It contains a maximum of 256 characters and
	// cannot contain special characters `!<>=&"'`.
	Description pulumi.StringPtrInput
	// Specifies whether to import labeled files.
	// Default value is `true`. Changing this parameter will create a new resource.
	ImportLabeledEnabled pulumi.BoolPtrInput
	// Specifies the custom format information of labeled files when import
	// labeled files for Text classification. Structure is documented below.
	// Changing this parameter will create a new resource.
	LabelFormat DatasetLabelFormatPtrInput
	// Specifies labels information. Structure is documented below.
	Labels DatasetLabelArrayInput
	// Specifies the name of label.
	Name pulumi.StringPtrInput
	// Specifies the OBS path for storing output files such as labeled files.
	// The path cannot be the same as the import path or subdirectory of the import path.
	// Changing this parameter will create a new resource.
	OutputPath pulumi.StringInput
	// The region in which to create the resource. If omitted, the
	// provider-level region will be used. Changing this parameter will create a new resource.
	Region pulumi.StringPtrInput
	// Specifies the schema information of source data when `type` is `400`.
	// Structure is documented below. Changing this parameter will create a new resource.
	Schemas DatasetSchemaArrayInput
	// Specifies Label type for text classification.
	// The optional values are as follows:
	Type pulumi.IntInput
}

The set of arguments for constructing a Dataset resource.

func (DatasetArgs) ElementType

func (DatasetArgs) ElementType() reflect.Type

type DatasetArray

type DatasetArray []DatasetInput

func (DatasetArray) ElementType

func (DatasetArray) ElementType() reflect.Type

func (DatasetArray) ToDatasetArrayOutput

func (i DatasetArray) ToDatasetArrayOutput() DatasetArrayOutput

func (DatasetArray) ToDatasetArrayOutputWithContext

func (i DatasetArray) ToDatasetArrayOutputWithContext(ctx context.Context) DatasetArrayOutput

type DatasetArrayInput

type DatasetArrayInput interface {
	pulumi.Input

	ToDatasetArrayOutput() DatasetArrayOutput
	ToDatasetArrayOutputWithContext(context.Context) DatasetArrayOutput
}

DatasetArrayInput is an input type that accepts DatasetArray and DatasetArrayOutput values. You can construct a concrete instance of `DatasetArrayInput` via:

DatasetArray{ DatasetArgs{...} }

type DatasetArrayOutput

type DatasetArrayOutput struct{ *pulumi.OutputState }

func (DatasetArrayOutput) ElementType

func (DatasetArrayOutput) ElementType() reflect.Type

func (DatasetArrayOutput) Index

func (DatasetArrayOutput) ToDatasetArrayOutput

func (o DatasetArrayOutput) ToDatasetArrayOutput() DatasetArrayOutput

func (DatasetArrayOutput) ToDatasetArrayOutputWithContext

func (o DatasetArrayOutput) ToDatasetArrayOutputWithContext(ctx context.Context) DatasetArrayOutput

type DatasetDataSource

type DatasetDataSource struct {
	// Specifies the cluster ID of DWS/MRS when `dataType` is `1` or `4`.
	// Changing this parameter will create a new resource.
	ClusterId *string `pulumi:"clusterId"`
	// Specifies the type of data source. The options are as follows:
	// + **0**: OBS.
	// + **1**: GaussDB(DWS).
	// + **2**: DLI.
	// + **4**: MRS.
	DataType *int `pulumi:"dataType"`
	// Specifies the database name of DWS/DLI when `dataType` is `1` or `2`.
	// Changing this parameter will create a new resource.
	DatabaseName *string `pulumi:"databaseName"`
	// Specifies the password of database when `dataType` is `1`.
	// Changing this parameter will create a new resource.
	Password *string `pulumi:"password"`
	// Specifies the OBS path when `dataType` is `0`
	// or the hdsf path when `dataType` is `4`. All the file in this directory and subdirectories will be which be imported
	// to the dataset. Changing this parameter will create a new resource.
	Path *string `pulumi:"path"`
	// Specifies the queue name of DLI when `dataType` is `2`.
	// Changing this parameter will create a new resource.
	QueueName *string `pulumi:"queueName"`
	// Specifies the table name of DWS/DLI when `dataType` is `1` or `2`.
	// Changing this parameter will create a new resource.
	TableName *string `pulumi:"tableName"`
	// Specifies the user name of databse when `dataType` is `1`.
	// Changing this parameter will create a new resource.
	UserName *string `pulumi:"userName"`
	// Specifies whether the data contains table header when the type
	// of dataset is `400`(Table type). Default value is `true`. Changing this parameter will create a new resource.
	WithColumnHeader *bool `pulumi:"withColumnHeader"`
}

type DatasetDataSourceArgs

type DatasetDataSourceArgs struct {
	// Specifies the cluster ID of DWS/MRS when `dataType` is `1` or `4`.
	// Changing this parameter will create a new resource.
	ClusterId pulumi.StringPtrInput `pulumi:"clusterId"`
	// Specifies the type of data source. The options are as follows:
	// + **0**: OBS.
	// + **1**: GaussDB(DWS).
	// + **2**: DLI.
	// + **4**: MRS.
	DataType pulumi.IntPtrInput `pulumi:"dataType"`
	// Specifies the database name of DWS/DLI when `dataType` is `1` or `2`.
	// Changing this parameter will create a new resource.
	DatabaseName pulumi.StringPtrInput `pulumi:"databaseName"`
	// Specifies the password of database when `dataType` is `1`.
	// Changing this parameter will create a new resource.
	Password pulumi.StringPtrInput `pulumi:"password"`
	// Specifies the OBS path when `dataType` is `0`
	// or the hdsf path when `dataType` is `4`. All the file in this directory and subdirectories will be which be imported
	// to the dataset. Changing this parameter will create a new resource.
	Path pulumi.StringPtrInput `pulumi:"path"`
	// Specifies the queue name of DLI when `dataType` is `2`.
	// Changing this parameter will create a new resource.
	QueueName pulumi.StringPtrInput `pulumi:"queueName"`
	// Specifies the table name of DWS/DLI when `dataType` is `1` or `2`.
	// Changing this parameter will create a new resource.
	TableName pulumi.StringPtrInput `pulumi:"tableName"`
	// Specifies the user name of databse when `dataType` is `1`.
	// Changing this parameter will create a new resource.
	UserName pulumi.StringPtrInput `pulumi:"userName"`
	// Specifies whether the data contains table header when the type
	// of dataset is `400`(Table type). Default value is `true`. Changing this parameter will create a new resource.
	WithColumnHeader pulumi.BoolPtrInput `pulumi:"withColumnHeader"`
}

func (DatasetDataSourceArgs) ElementType

func (DatasetDataSourceArgs) ElementType() reflect.Type

func (DatasetDataSourceArgs) ToDatasetDataSourceOutput

func (i DatasetDataSourceArgs) ToDatasetDataSourceOutput() DatasetDataSourceOutput

func (DatasetDataSourceArgs) ToDatasetDataSourceOutputWithContext

func (i DatasetDataSourceArgs) ToDatasetDataSourceOutputWithContext(ctx context.Context) DatasetDataSourceOutput

func (DatasetDataSourceArgs) ToDatasetDataSourcePtrOutput

func (i DatasetDataSourceArgs) ToDatasetDataSourcePtrOutput() DatasetDataSourcePtrOutput

func (DatasetDataSourceArgs) ToDatasetDataSourcePtrOutputWithContext

func (i DatasetDataSourceArgs) ToDatasetDataSourcePtrOutputWithContext(ctx context.Context) DatasetDataSourcePtrOutput

type DatasetDataSourceInput

type DatasetDataSourceInput interface {
	pulumi.Input

	ToDatasetDataSourceOutput() DatasetDataSourceOutput
	ToDatasetDataSourceOutputWithContext(context.Context) DatasetDataSourceOutput
}

DatasetDataSourceInput is an input type that accepts DatasetDataSourceArgs and DatasetDataSourceOutput values. You can construct a concrete instance of `DatasetDataSourceInput` via:

DatasetDataSourceArgs{...}

type DatasetDataSourceOutput

type DatasetDataSourceOutput struct{ *pulumi.OutputState }

func (DatasetDataSourceOutput) ClusterId

Specifies the cluster ID of DWS/MRS when `dataType` is `1` or `4`. Changing this parameter will create a new resource.

func (DatasetDataSourceOutput) DataType

Specifies the type of data source. The options are as follows: + **0**: OBS. + **1**: GaussDB(DWS). + **2**: DLI. + **4**: MRS.

func (DatasetDataSourceOutput) DatabaseName

Specifies the database name of DWS/DLI when `dataType` is `1` or `2`. Changing this parameter will create a new resource.

func (DatasetDataSourceOutput) ElementType

func (DatasetDataSourceOutput) ElementType() reflect.Type

func (DatasetDataSourceOutput) Password

Specifies the password of database when `dataType` is `1`. Changing this parameter will create a new resource.

func (DatasetDataSourceOutput) Path

Specifies the OBS path when `dataType` is `0` or the hdsf path when `dataType` is `4`. All the file in this directory and subdirectories will be which be imported to the dataset. Changing this parameter will create a new resource.

func (DatasetDataSourceOutput) QueueName

Specifies the queue name of DLI when `dataType` is `2`. Changing this parameter will create a new resource.

func (DatasetDataSourceOutput) TableName

Specifies the table name of DWS/DLI when `dataType` is `1` or `2`. Changing this parameter will create a new resource.

func (DatasetDataSourceOutput) ToDatasetDataSourceOutput

func (o DatasetDataSourceOutput) ToDatasetDataSourceOutput() DatasetDataSourceOutput

func (DatasetDataSourceOutput) ToDatasetDataSourceOutputWithContext

func (o DatasetDataSourceOutput) ToDatasetDataSourceOutputWithContext(ctx context.Context) DatasetDataSourceOutput

func (DatasetDataSourceOutput) ToDatasetDataSourcePtrOutput

func (o DatasetDataSourceOutput) ToDatasetDataSourcePtrOutput() DatasetDataSourcePtrOutput

func (DatasetDataSourceOutput) ToDatasetDataSourcePtrOutputWithContext

func (o DatasetDataSourceOutput) ToDatasetDataSourcePtrOutputWithContext(ctx context.Context) DatasetDataSourcePtrOutput

func (DatasetDataSourceOutput) UserName

Specifies the user name of databse when `dataType` is `1`. Changing this parameter will create a new resource.

func (DatasetDataSourceOutput) WithColumnHeader

func (o DatasetDataSourceOutput) WithColumnHeader() pulumi.BoolPtrOutput

Specifies whether the data contains table header when the type of dataset is `400`(Table type). Default value is `true`. Changing this parameter will create a new resource.

type DatasetDataSourcePtrInput

type DatasetDataSourcePtrInput interface {
	pulumi.Input

	ToDatasetDataSourcePtrOutput() DatasetDataSourcePtrOutput
	ToDatasetDataSourcePtrOutputWithContext(context.Context) DatasetDataSourcePtrOutput
}

DatasetDataSourcePtrInput is an input type that accepts DatasetDataSourceArgs, DatasetDataSourcePtr and DatasetDataSourcePtrOutput values. You can construct a concrete instance of `DatasetDataSourcePtrInput` via:

        DatasetDataSourceArgs{...}

or:

        nil

type DatasetDataSourcePtrOutput

type DatasetDataSourcePtrOutput struct{ *pulumi.OutputState }

func (DatasetDataSourcePtrOutput) ClusterId

Specifies the cluster ID of DWS/MRS when `dataType` is `1` or `4`. Changing this parameter will create a new resource.

func (DatasetDataSourcePtrOutput) DataType

Specifies the type of data source. The options are as follows: + **0**: OBS. + **1**: GaussDB(DWS). + **2**: DLI. + **4**: MRS.

func (DatasetDataSourcePtrOutput) DatabaseName

Specifies the database name of DWS/DLI when `dataType` is `1` or `2`. Changing this parameter will create a new resource.

func (DatasetDataSourcePtrOutput) Elem

func (DatasetDataSourcePtrOutput) ElementType

func (DatasetDataSourcePtrOutput) ElementType() reflect.Type

func (DatasetDataSourcePtrOutput) Password

Specifies the password of database when `dataType` is `1`. Changing this parameter will create a new resource.

func (DatasetDataSourcePtrOutput) Path

Specifies the OBS path when `dataType` is `0` or the hdsf path when `dataType` is `4`. All the file in this directory and subdirectories will be which be imported to the dataset. Changing this parameter will create a new resource.

func (DatasetDataSourcePtrOutput) QueueName

Specifies the queue name of DLI when `dataType` is `2`. Changing this parameter will create a new resource.

func (DatasetDataSourcePtrOutput) TableName

Specifies the table name of DWS/DLI when `dataType` is `1` or `2`. Changing this parameter will create a new resource.

func (DatasetDataSourcePtrOutput) ToDatasetDataSourcePtrOutput

func (o DatasetDataSourcePtrOutput) ToDatasetDataSourcePtrOutput() DatasetDataSourcePtrOutput

func (DatasetDataSourcePtrOutput) ToDatasetDataSourcePtrOutputWithContext

func (o DatasetDataSourcePtrOutput) ToDatasetDataSourcePtrOutputWithContext(ctx context.Context) DatasetDataSourcePtrOutput

func (DatasetDataSourcePtrOutput) UserName

Specifies the user name of databse when `dataType` is `1`. Changing this parameter will create a new resource.

func (DatasetDataSourcePtrOutput) WithColumnHeader

func (o DatasetDataSourcePtrOutput) WithColumnHeader() pulumi.BoolPtrOutput

Specifies whether the data contains table header when the type of dataset is `400`(Table type). Default value is `true`. Changing this parameter will create a new resource.

type DatasetInput

type DatasetInput interface {
	pulumi.Input

	ToDatasetOutput() DatasetOutput
	ToDatasetOutputWithContext(ctx context.Context) DatasetOutput
}

type DatasetLabel

type DatasetLabel struct {
	// Specifies the name of label.
	Name string `pulumi:"name"`
	// Specifies color of label.
	PropertyColor *string `pulumi:"propertyColor"`
	// Specifies shape of label. Valid values include: `bndbox`, `polygon`,
	// `circle`, `line`, `dashed`, `point`, `polyline`.
	PropertyShape *string `pulumi:"propertyShape"`
	// Specifies shortcut of label.
	PropertyShortcut *string `pulumi:"propertyShortcut"`
}

type DatasetLabelArgs

type DatasetLabelArgs struct {
	// Specifies the name of label.
	Name pulumi.StringInput `pulumi:"name"`
	// Specifies color of label.
	PropertyColor pulumi.StringPtrInput `pulumi:"propertyColor"`
	// Specifies shape of label. Valid values include: `bndbox`, `polygon`,
	// `circle`, `line`, `dashed`, `point`, `polyline`.
	PropertyShape pulumi.StringPtrInput `pulumi:"propertyShape"`
	// Specifies shortcut of label.
	PropertyShortcut pulumi.StringPtrInput `pulumi:"propertyShortcut"`
}

func (DatasetLabelArgs) ElementType

func (DatasetLabelArgs) ElementType() reflect.Type

func (DatasetLabelArgs) ToDatasetLabelOutput

func (i DatasetLabelArgs) ToDatasetLabelOutput() DatasetLabelOutput

func (DatasetLabelArgs) ToDatasetLabelOutputWithContext

func (i DatasetLabelArgs) ToDatasetLabelOutputWithContext(ctx context.Context) DatasetLabelOutput

type DatasetLabelArray

type DatasetLabelArray []DatasetLabelInput

func (DatasetLabelArray) ElementType

func (DatasetLabelArray) ElementType() reflect.Type

func (DatasetLabelArray) ToDatasetLabelArrayOutput

func (i DatasetLabelArray) ToDatasetLabelArrayOutput() DatasetLabelArrayOutput

func (DatasetLabelArray) ToDatasetLabelArrayOutputWithContext

func (i DatasetLabelArray) ToDatasetLabelArrayOutputWithContext(ctx context.Context) DatasetLabelArrayOutput

type DatasetLabelArrayInput

type DatasetLabelArrayInput interface {
	pulumi.Input

	ToDatasetLabelArrayOutput() DatasetLabelArrayOutput
	ToDatasetLabelArrayOutputWithContext(context.Context) DatasetLabelArrayOutput
}

DatasetLabelArrayInput is an input type that accepts DatasetLabelArray and DatasetLabelArrayOutput values. You can construct a concrete instance of `DatasetLabelArrayInput` via:

DatasetLabelArray{ DatasetLabelArgs{...} }

type DatasetLabelArrayOutput

type DatasetLabelArrayOutput struct{ *pulumi.OutputState }

func (DatasetLabelArrayOutput) ElementType

func (DatasetLabelArrayOutput) ElementType() reflect.Type

func (DatasetLabelArrayOutput) Index

func (DatasetLabelArrayOutput) ToDatasetLabelArrayOutput

func (o DatasetLabelArrayOutput) ToDatasetLabelArrayOutput() DatasetLabelArrayOutput

func (DatasetLabelArrayOutput) ToDatasetLabelArrayOutputWithContext

func (o DatasetLabelArrayOutput) ToDatasetLabelArrayOutputWithContext(ctx context.Context) DatasetLabelArrayOutput

type DatasetLabelFormat

type DatasetLabelFormat struct {
	// Specifies the separator between label and label.
	// Changing this parameter will create a new resource.
	LabelSeparator *string `pulumi:"labelSeparator"`
	// Specifies the separator between text and label.
	// Changing this parameter will create a new resource.
	TextLabelSeparator *string `pulumi:"textLabelSeparator"`
	// Specifies Label type for text classification.
	// The optional values are as follows:
	Type *string `pulumi:"type"`
}

type DatasetLabelFormatArgs

type DatasetLabelFormatArgs struct {
	// Specifies the separator between label and label.
	// Changing this parameter will create a new resource.
	LabelSeparator pulumi.StringPtrInput `pulumi:"labelSeparator"`
	// Specifies the separator between text and label.
	// Changing this parameter will create a new resource.
	TextLabelSeparator pulumi.StringPtrInput `pulumi:"textLabelSeparator"`
	// Specifies Label type for text classification.
	// The optional values are as follows:
	Type pulumi.StringPtrInput `pulumi:"type"`
}

func (DatasetLabelFormatArgs) ElementType

func (DatasetLabelFormatArgs) ElementType() reflect.Type

func (DatasetLabelFormatArgs) ToDatasetLabelFormatOutput

func (i DatasetLabelFormatArgs) ToDatasetLabelFormatOutput() DatasetLabelFormatOutput

func (DatasetLabelFormatArgs) ToDatasetLabelFormatOutputWithContext

func (i DatasetLabelFormatArgs) ToDatasetLabelFormatOutputWithContext(ctx context.Context) DatasetLabelFormatOutput

func (DatasetLabelFormatArgs) ToDatasetLabelFormatPtrOutput

func (i DatasetLabelFormatArgs) ToDatasetLabelFormatPtrOutput() DatasetLabelFormatPtrOutput

func (DatasetLabelFormatArgs) ToDatasetLabelFormatPtrOutputWithContext

func (i DatasetLabelFormatArgs) ToDatasetLabelFormatPtrOutputWithContext(ctx context.Context) DatasetLabelFormatPtrOutput

type DatasetLabelFormatInput

type DatasetLabelFormatInput interface {
	pulumi.Input

	ToDatasetLabelFormatOutput() DatasetLabelFormatOutput
	ToDatasetLabelFormatOutputWithContext(context.Context) DatasetLabelFormatOutput
}

DatasetLabelFormatInput is an input type that accepts DatasetLabelFormatArgs and DatasetLabelFormatOutput values. You can construct a concrete instance of `DatasetLabelFormatInput` via:

DatasetLabelFormatArgs{...}

type DatasetLabelFormatOutput

type DatasetLabelFormatOutput struct{ *pulumi.OutputState }

func (DatasetLabelFormatOutput) ElementType

func (DatasetLabelFormatOutput) ElementType() reflect.Type

func (DatasetLabelFormatOutput) LabelSeparator

func (o DatasetLabelFormatOutput) LabelSeparator() pulumi.StringPtrOutput

Specifies the separator between label and label. Changing this parameter will create a new resource.

func (DatasetLabelFormatOutput) TextLabelSeparator

func (o DatasetLabelFormatOutput) TextLabelSeparator() pulumi.StringPtrOutput

Specifies the separator between text and label. Changing this parameter will create a new resource.

func (DatasetLabelFormatOutput) ToDatasetLabelFormatOutput

func (o DatasetLabelFormatOutput) ToDatasetLabelFormatOutput() DatasetLabelFormatOutput

func (DatasetLabelFormatOutput) ToDatasetLabelFormatOutputWithContext

func (o DatasetLabelFormatOutput) ToDatasetLabelFormatOutputWithContext(ctx context.Context) DatasetLabelFormatOutput

func (DatasetLabelFormatOutput) ToDatasetLabelFormatPtrOutput

func (o DatasetLabelFormatOutput) ToDatasetLabelFormatPtrOutput() DatasetLabelFormatPtrOutput

func (DatasetLabelFormatOutput) ToDatasetLabelFormatPtrOutputWithContext

func (o DatasetLabelFormatOutput) ToDatasetLabelFormatPtrOutputWithContext(ctx context.Context) DatasetLabelFormatPtrOutput

func (DatasetLabelFormatOutput) Type

Specifies Label type for text classification. The optional values are as follows:

type DatasetLabelFormatPtrInput

type DatasetLabelFormatPtrInput interface {
	pulumi.Input

	ToDatasetLabelFormatPtrOutput() DatasetLabelFormatPtrOutput
	ToDatasetLabelFormatPtrOutputWithContext(context.Context) DatasetLabelFormatPtrOutput
}

DatasetLabelFormatPtrInput is an input type that accepts DatasetLabelFormatArgs, DatasetLabelFormatPtr and DatasetLabelFormatPtrOutput values. You can construct a concrete instance of `DatasetLabelFormatPtrInput` via:

        DatasetLabelFormatArgs{...}

or:

        nil

type DatasetLabelFormatPtrOutput

type DatasetLabelFormatPtrOutput struct{ *pulumi.OutputState }

func (DatasetLabelFormatPtrOutput) Elem

func (DatasetLabelFormatPtrOutput) ElementType

func (DatasetLabelFormatPtrOutput) LabelSeparator

Specifies the separator between label and label. Changing this parameter will create a new resource.

func (DatasetLabelFormatPtrOutput) TextLabelSeparator

func (o DatasetLabelFormatPtrOutput) TextLabelSeparator() pulumi.StringPtrOutput

Specifies the separator between text and label. Changing this parameter will create a new resource.

func (DatasetLabelFormatPtrOutput) ToDatasetLabelFormatPtrOutput

func (o DatasetLabelFormatPtrOutput) ToDatasetLabelFormatPtrOutput() DatasetLabelFormatPtrOutput

func (DatasetLabelFormatPtrOutput) ToDatasetLabelFormatPtrOutputWithContext

func (o DatasetLabelFormatPtrOutput) ToDatasetLabelFormatPtrOutputWithContext(ctx context.Context) DatasetLabelFormatPtrOutput

func (DatasetLabelFormatPtrOutput) Type

Specifies Label type for text classification. The optional values are as follows:

type DatasetLabelInput

type DatasetLabelInput interface {
	pulumi.Input

	ToDatasetLabelOutput() DatasetLabelOutput
	ToDatasetLabelOutputWithContext(context.Context) DatasetLabelOutput
}

DatasetLabelInput is an input type that accepts DatasetLabelArgs and DatasetLabelOutput values. You can construct a concrete instance of `DatasetLabelInput` via:

DatasetLabelArgs{...}

type DatasetLabelOutput

type DatasetLabelOutput struct{ *pulumi.OutputState }

func (DatasetLabelOutput) ElementType

func (DatasetLabelOutput) ElementType() reflect.Type

func (DatasetLabelOutput) Name

Specifies the name of label.

func (DatasetLabelOutput) PropertyColor

func (o DatasetLabelOutput) PropertyColor() pulumi.StringPtrOutput

Specifies color of label.

func (DatasetLabelOutput) PropertyShape

func (o DatasetLabelOutput) PropertyShape() pulumi.StringPtrOutput

Specifies shape of label. Valid values include: `bndbox`, `polygon`, `circle`, `line`, `dashed`, `point`, `polyline`.

func (DatasetLabelOutput) PropertyShortcut

func (o DatasetLabelOutput) PropertyShortcut() pulumi.StringPtrOutput

Specifies shortcut of label.

func (DatasetLabelOutput) ToDatasetLabelOutput

func (o DatasetLabelOutput) ToDatasetLabelOutput() DatasetLabelOutput

func (DatasetLabelOutput) ToDatasetLabelOutputWithContext

func (o DatasetLabelOutput) ToDatasetLabelOutputWithContext(ctx context.Context) DatasetLabelOutput

type DatasetMap

type DatasetMap map[string]DatasetInput

func (DatasetMap) ElementType

func (DatasetMap) ElementType() reflect.Type

func (DatasetMap) ToDatasetMapOutput

func (i DatasetMap) ToDatasetMapOutput() DatasetMapOutput

func (DatasetMap) ToDatasetMapOutputWithContext

func (i DatasetMap) ToDatasetMapOutputWithContext(ctx context.Context) DatasetMapOutput

type DatasetMapInput

type DatasetMapInput interface {
	pulumi.Input

	ToDatasetMapOutput() DatasetMapOutput
	ToDatasetMapOutputWithContext(context.Context) DatasetMapOutput
}

DatasetMapInput is an input type that accepts DatasetMap and DatasetMapOutput values. You can construct a concrete instance of `DatasetMapInput` via:

DatasetMap{ "key": DatasetArgs{...} }

type DatasetMapOutput

type DatasetMapOutput struct{ *pulumi.OutputState }

func (DatasetMapOutput) ElementType

func (DatasetMapOutput) ElementType() reflect.Type

func (DatasetMapOutput) MapIndex

func (DatasetMapOutput) ToDatasetMapOutput

func (o DatasetMapOutput) ToDatasetMapOutput() DatasetMapOutput

func (DatasetMapOutput) ToDatasetMapOutputWithContext

func (o DatasetMapOutput) ToDatasetMapOutputWithContext(ctx context.Context) DatasetMapOutput

type DatasetOutput

type DatasetOutput struct{ *pulumi.OutputState }

func (DatasetOutput) CreatedAt

func (o DatasetOutput) CreatedAt() pulumi.StringOutput

The dataset creation time.

func (DatasetOutput) DataFormat

func (o DatasetOutput) DataFormat() pulumi.StringOutput

dataset format. Valid values include: `Default`, `CarbonData`: Carbon format(Supported only for table type datasets).

func (DatasetOutput) DataSource

func (o DatasetOutput) DataSource() DatasetDataSourceOutput

Specifies the data sources which be used to imported the source data (such as pictures/files/audio, etc.) in this directory and subdirectories to the dataset. Structure is documented below. Changing this parameter will create a new resource.

func (DatasetOutput) Description

func (o DatasetOutput) Description() pulumi.StringPtrOutput

Specifies the description of dataset. It contains a maximum of 256 characters and cannot contain special characters `!<>=&"'`.

func (DatasetOutput) ElementType

func (DatasetOutput) ElementType() reflect.Type

func (DatasetOutput) ImportLabeledEnabled

func (o DatasetOutput) ImportLabeledEnabled() pulumi.BoolPtrOutput

Specifies whether to import labeled files. Default value is `true`. Changing this parameter will create a new resource.

func (DatasetOutput) LabelFormat

Specifies the custom format information of labeled files when import labeled files for Text classification. Structure is documented below. Changing this parameter will create a new resource.

func (DatasetOutput) Labels

Specifies labels information. Structure is documented below.

func (DatasetOutput) Name

Specifies the name of label.

func (DatasetOutput) OutputPath

func (o DatasetOutput) OutputPath() pulumi.StringOutput

Specifies the OBS path for storing output files such as labeled files. The path cannot be the same as the import path or subdirectory of the import path. Changing this parameter will create a new resource.

func (DatasetOutput) Region

func (o DatasetOutput) Region() pulumi.StringOutput

The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.

func (DatasetOutput) Schemas

Specifies the schema information of source data when `type` is `400`. Structure is documented below. Changing this parameter will create a new resource.

func (DatasetOutput) Status

func (o DatasetOutput) Status() pulumi.IntOutput

Dataset status. Valid values are as follows: + **0**: Creating. + **1**: Completed. + **2**: Deleting. + **3**: Deleted. + **4**: Exception. + **5**: Syncing. + **6**: Releasing. + **7**: Version switching. + **8**: Importing.

func (DatasetOutput) ToDatasetOutput

func (o DatasetOutput) ToDatasetOutput() DatasetOutput

func (DatasetOutput) ToDatasetOutputWithContext

func (o DatasetOutput) ToDatasetOutputWithContext(ctx context.Context) DatasetOutput

func (DatasetOutput) Type

func (o DatasetOutput) Type() pulumi.IntOutput

Specifies Label type for text classification. The optional values are as follows:

type DatasetSchema

type DatasetSchema struct {
	// Specifies the name of label.
	Name string `pulumi:"name"`
	// Specifies Label type for text classification.
	// The optional values are as follows:
	Type string `pulumi:"type"`
}

type DatasetSchemaArgs

type DatasetSchemaArgs struct {
	// Specifies the name of label.
	Name pulumi.StringInput `pulumi:"name"`
	// Specifies Label type for text classification.
	// The optional values are as follows:
	Type pulumi.StringInput `pulumi:"type"`
}

func (DatasetSchemaArgs) ElementType

func (DatasetSchemaArgs) ElementType() reflect.Type

func (DatasetSchemaArgs) ToDatasetSchemaOutput

func (i DatasetSchemaArgs) ToDatasetSchemaOutput() DatasetSchemaOutput

func (DatasetSchemaArgs) ToDatasetSchemaOutputWithContext

func (i DatasetSchemaArgs) ToDatasetSchemaOutputWithContext(ctx context.Context) DatasetSchemaOutput

type DatasetSchemaArray

type DatasetSchemaArray []DatasetSchemaInput

func (DatasetSchemaArray) ElementType

func (DatasetSchemaArray) ElementType() reflect.Type

func (DatasetSchemaArray) ToDatasetSchemaArrayOutput

func (i DatasetSchemaArray) ToDatasetSchemaArrayOutput() DatasetSchemaArrayOutput

func (DatasetSchemaArray) ToDatasetSchemaArrayOutputWithContext

func (i DatasetSchemaArray) ToDatasetSchemaArrayOutputWithContext(ctx context.Context) DatasetSchemaArrayOutput

type DatasetSchemaArrayInput

type DatasetSchemaArrayInput interface {
	pulumi.Input

	ToDatasetSchemaArrayOutput() DatasetSchemaArrayOutput
	ToDatasetSchemaArrayOutputWithContext(context.Context) DatasetSchemaArrayOutput
}

DatasetSchemaArrayInput is an input type that accepts DatasetSchemaArray and DatasetSchemaArrayOutput values. You can construct a concrete instance of `DatasetSchemaArrayInput` via:

DatasetSchemaArray{ DatasetSchemaArgs{...} }

type DatasetSchemaArrayOutput

type DatasetSchemaArrayOutput struct{ *pulumi.OutputState }

func (DatasetSchemaArrayOutput) ElementType

func (DatasetSchemaArrayOutput) ElementType() reflect.Type

func (DatasetSchemaArrayOutput) Index

func (DatasetSchemaArrayOutput) ToDatasetSchemaArrayOutput

func (o DatasetSchemaArrayOutput) ToDatasetSchemaArrayOutput() DatasetSchemaArrayOutput

func (DatasetSchemaArrayOutput) ToDatasetSchemaArrayOutputWithContext

func (o DatasetSchemaArrayOutput) ToDatasetSchemaArrayOutputWithContext(ctx context.Context) DatasetSchemaArrayOutput

type DatasetSchemaInput

type DatasetSchemaInput interface {
	pulumi.Input

	ToDatasetSchemaOutput() DatasetSchemaOutput
	ToDatasetSchemaOutputWithContext(context.Context) DatasetSchemaOutput
}

DatasetSchemaInput is an input type that accepts DatasetSchemaArgs and DatasetSchemaOutput values. You can construct a concrete instance of `DatasetSchemaInput` via:

DatasetSchemaArgs{...}

type DatasetSchemaOutput

type DatasetSchemaOutput struct{ *pulumi.OutputState }

func (DatasetSchemaOutput) ElementType

func (DatasetSchemaOutput) ElementType() reflect.Type

func (DatasetSchemaOutput) Name

Specifies the name of label.

func (DatasetSchemaOutput) ToDatasetSchemaOutput

func (o DatasetSchemaOutput) ToDatasetSchemaOutput() DatasetSchemaOutput

func (DatasetSchemaOutput) ToDatasetSchemaOutputWithContext

func (o DatasetSchemaOutput) ToDatasetSchemaOutputWithContext(ctx context.Context) DatasetSchemaOutput

func (DatasetSchemaOutput) Type

Specifies Label type for text classification. The optional values are as follows:

type DatasetState

type DatasetState struct {
	// The dataset creation time.
	CreatedAt pulumi.StringPtrInput
	// dataset format. Valid values include: `Default`, `CarbonData`: Carbon format(Supported only for
	// table type datasets).
	DataFormat pulumi.StringPtrInput
	// Specifies the data sources which be used to imported the source data (such
	// as pictures/files/audio, etc.) in this directory and subdirectories to the dataset. Structure is documented below.
	// Changing this parameter will create a new resource.
	DataSource DatasetDataSourcePtrInput
	// Specifies the description of dataset. It contains a maximum of 256 characters and
	// cannot contain special characters `!<>=&"'`.
	Description pulumi.StringPtrInput
	// Specifies whether to import labeled files.
	// Default value is `true`. Changing this parameter will create a new resource.
	ImportLabeledEnabled pulumi.BoolPtrInput
	// Specifies the custom format information of labeled files when import
	// labeled files for Text classification. Structure is documented below.
	// Changing this parameter will create a new resource.
	LabelFormat DatasetLabelFormatPtrInput
	// Specifies labels information. Structure is documented below.
	Labels DatasetLabelArrayInput
	// Specifies the name of label.
	Name pulumi.StringPtrInput
	// Specifies the OBS path for storing output files such as labeled files.
	// The path cannot be the same as the import path or subdirectory of the import path.
	// Changing this parameter will create a new resource.
	OutputPath pulumi.StringPtrInput
	// The region in which to create the resource. If omitted, the
	// provider-level region will be used. Changing this parameter will create a new resource.
	Region pulumi.StringPtrInput
	// Specifies the schema information of source data when `type` is `400`.
	// Structure is documented below. Changing this parameter will create a new resource.
	Schemas DatasetSchemaArrayInput
	// Dataset status. Valid values are as follows:
	// + **0**: Creating.
	// + **1**: Completed.
	// + **2**: Deleting.
	// + **3**: Deleted.
	// + **4**: Exception.
	// + **5**: Syncing.
	// + **6**: Releasing.
	// + **7**: Version switching.
	// + **8**: Importing.
	Status pulumi.IntPtrInput
	// Specifies Label type for text classification.
	// The optional values are as follows:
	Type pulumi.IntPtrInput
}

func (DatasetState) ElementType

func (DatasetState) ElementType() reflect.Type

type DatasetVersion

type DatasetVersion struct {
	pulumi.CustomResourceState

	// The creation time, in UTC format.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// Specifies the ID of dataset.
	// Changing this parameter will create a new resource.
	DatasetId pulumi.StringOutput `pulumi:"datasetId"`
	// Specifies the description of dataset version. It contains a maximum of
	// 256 characters and cannot contain special characters `!<>=&"'`. Changing this parameter will create a new resource.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The total number of samples.
	Files pulumi.IntOutput `pulumi:"files"`
	// Specifies whether to enable ModelArts to write the hard example
	// attributes (difficult, hard-coefficient, and hard-reasons) into the XML and manifest labeling files. ModelArts will
	// use these attributes to optimize hard example filtering. Default value is `false`.
	// Changing this parameter will create a new resource.
	HardExample pulumi.BoolPtrOutput `pulumi:"hardExample"`
	// Whether this version is current version.
	IsCurrent pulumi.BoolOutput `pulumi:"isCurrent"`
	// The label type of the dataset version. Valid values are as follows:
	// + **multi**: Indicates that there are multi-label samples.
	// + **single**: Indicates that all samples are single-label.
	// + **unlabeled**: Indicates that all samples are unlabeled.
	LabelingType pulumi.StringOutput `pulumi:"labelingType"`
	// Specifies the name of the dataset version. The name consists of 1 to 32
	// characters. Only letters, Chinese characters, digits underscores (_) and hyphens (-) are allowed.
	// Changing this parameter will create a new resource.
	Name pulumi.StringOutput `pulumi:"name"`
	// The region in which to create the resource. If omitted, the
	// provider-level region will be used. Changing this parameter will create a new resource.
	Region pulumi.StringOutput `pulumi:"region"`
	// Specifies the ratio of splitting which randomly divides a labeled sample
	// into a training set and a validation set. Changing this parameter will create a new resource.
	SplitRatio pulumi.StringPtrOutput `pulumi:"splitRatio"`
	// The status of the dataset version. Valid values are as follows:
	// + **0**: Creating.
	// + **1**: Normal.
	// + **2**: Deleting.
	// + **3**: Deleted.
	// + **4**: Exception.
	Status pulumi.IntOutput `pulumi:"status"`
	// The path to save the manifest file of the version.
	StoragePath pulumi.StringOutput `pulumi:"storagePath"`
	// The last update time, in UTC format.
	UpdatedAt pulumi.StringOutput `pulumi:"updatedAt"`
	// Whether the data has been verified by the verification algorithm before publishing.
	Verification pulumi.BoolOutput `pulumi:"verification"`
	// The version ID.
	VersionId pulumi.StringOutput `pulumi:"versionId"`
}

Manages ModelArts dataset version resource within HuaweiCloud.

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/ModelArts"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		datasetId := cfg.RequireObject("datasetId")
		_, err := ModelArts.NewDatasetVersion(ctx, "v001", &ModelArts.DatasetVersionArgs{
			DatasetId:   pulumi.Any(datasetId),
			Description: pulumi.String("Created by demo"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

The dataset versions can be imported by dataset ID and version ID, separated by a slash, e.g.

```sh

$ pulumi import huaweicloud:ModelArts/datasetVersion:DatasetVersion test yiROKoTTjtwjvP71yLG/wieeeoTrtrtjvn67yLm

```

Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response, security or some other reason. The missing attributes include`hard_example`. It is generally recommended running `terraform plan` after importing a dataset. You can then decide if changes should be applied to the dataset, or the resource definition should be updated to align with the dataset. Also you can ignore changes as below. resource "huaweicloud_modelarts_dataset_version" "test" {

...

lifecycle {

ignore_changes = [

hard_example,

]

} }

func GetDatasetVersion

func GetDatasetVersion(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DatasetVersionState, opts ...pulumi.ResourceOption) (*DatasetVersion, error)

GetDatasetVersion gets an existing DatasetVersion resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDatasetVersion

func NewDatasetVersion(ctx *pulumi.Context,
	name string, args *DatasetVersionArgs, opts ...pulumi.ResourceOption) (*DatasetVersion, error)

NewDatasetVersion registers a new resource with the given unique name, arguments, and options.

func (*DatasetVersion) ElementType

func (*DatasetVersion) ElementType() reflect.Type

func (*DatasetVersion) ToDatasetVersionOutput

func (i *DatasetVersion) ToDatasetVersionOutput() DatasetVersionOutput

func (*DatasetVersion) ToDatasetVersionOutputWithContext

func (i *DatasetVersion) ToDatasetVersionOutputWithContext(ctx context.Context) DatasetVersionOutput

type DatasetVersionArgs

type DatasetVersionArgs struct {
	// Specifies the ID of dataset.
	// Changing this parameter will create a new resource.
	DatasetId pulumi.StringInput
	// Specifies the description of dataset version. It contains a maximum of
	// 256 characters and cannot contain special characters `!<>=&"'`. Changing this parameter will create a new resource.
	Description pulumi.StringPtrInput
	// Specifies whether to enable ModelArts to write the hard example
	// attributes (difficult, hard-coefficient, and hard-reasons) into the XML and manifest labeling files. ModelArts will
	// use these attributes to optimize hard example filtering. Default value is `false`.
	// Changing this parameter will create a new resource.
	HardExample pulumi.BoolPtrInput
	// Specifies the name of the dataset version. The name consists of 1 to 32
	// characters. Only letters, Chinese characters, digits underscores (_) and hyphens (-) are allowed.
	// Changing this parameter will create a new resource.
	Name pulumi.StringPtrInput
	// The region in which to create the resource. If omitted, the
	// provider-level region will be used. Changing this parameter will create a new resource.
	Region pulumi.StringPtrInput
	// Specifies the ratio of splitting which randomly divides a labeled sample
	// into a training set and a validation set. Changing this parameter will create a new resource.
	SplitRatio pulumi.StringPtrInput
}

The set of arguments for constructing a DatasetVersion resource.

func (DatasetVersionArgs) ElementType

func (DatasetVersionArgs) ElementType() reflect.Type

type DatasetVersionArray

type DatasetVersionArray []DatasetVersionInput

func (DatasetVersionArray) ElementType

func (DatasetVersionArray) ElementType() reflect.Type

func (DatasetVersionArray) ToDatasetVersionArrayOutput

func (i DatasetVersionArray) ToDatasetVersionArrayOutput() DatasetVersionArrayOutput

func (DatasetVersionArray) ToDatasetVersionArrayOutputWithContext

func (i DatasetVersionArray) ToDatasetVersionArrayOutputWithContext(ctx context.Context) DatasetVersionArrayOutput

type DatasetVersionArrayInput

type DatasetVersionArrayInput interface {
	pulumi.Input

	ToDatasetVersionArrayOutput() DatasetVersionArrayOutput
	ToDatasetVersionArrayOutputWithContext(context.Context) DatasetVersionArrayOutput
}

DatasetVersionArrayInput is an input type that accepts DatasetVersionArray and DatasetVersionArrayOutput values. You can construct a concrete instance of `DatasetVersionArrayInput` via:

DatasetVersionArray{ DatasetVersionArgs{...} }

type DatasetVersionArrayOutput

type DatasetVersionArrayOutput struct{ *pulumi.OutputState }

func (DatasetVersionArrayOutput) ElementType

func (DatasetVersionArrayOutput) ElementType() reflect.Type

func (DatasetVersionArrayOutput) Index

func (DatasetVersionArrayOutput) ToDatasetVersionArrayOutput

func (o DatasetVersionArrayOutput) ToDatasetVersionArrayOutput() DatasetVersionArrayOutput

func (DatasetVersionArrayOutput) ToDatasetVersionArrayOutputWithContext

func (o DatasetVersionArrayOutput) ToDatasetVersionArrayOutputWithContext(ctx context.Context) DatasetVersionArrayOutput

type DatasetVersionInput

type DatasetVersionInput interface {
	pulumi.Input

	ToDatasetVersionOutput() DatasetVersionOutput
	ToDatasetVersionOutputWithContext(ctx context.Context) DatasetVersionOutput
}

type DatasetVersionMap

type DatasetVersionMap map[string]DatasetVersionInput

func (DatasetVersionMap) ElementType

func (DatasetVersionMap) ElementType() reflect.Type

func (DatasetVersionMap) ToDatasetVersionMapOutput

func (i DatasetVersionMap) ToDatasetVersionMapOutput() DatasetVersionMapOutput

func (DatasetVersionMap) ToDatasetVersionMapOutputWithContext

func (i DatasetVersionMap) ToDatasetVersionMapOutputWithContext(ctx context.Context) DatasetVersionMapOutput

type DatasetVersionMapInput

type DatasetVersionMapInput interface {
	pulumi.Input

	ToDatasetVersionMapOutput() DatasetVersionMapOutput
	ToDatasetVersionMapOutputWithContext(context.Context) DatasetVersionMapOutput
}

DatasetVersionMapInput is an input type that accepts DatasetVersionMap and DatasetVersionMapOutput values. You can construct a concrete instance of `DatasetVersionMapInput` via:

DatasetVersionMap{ "key": DatasetVersionArgs{...} }

type DatasetVersionMapOutput

type DatasetVersionMapOutput struct{ *pulumi.OutputState }

func (DatasetVersionMapOutput) ElementType

func (DatasetVersionMapOutput) ElementType() reflect.Type

func (DatasetVersionMapOutput) MapIndex

func (DatasetVersionMapOutput) ToDatasetVersionMapOutput

func (o DatasetVersionMapOutput) ToDatasetVersionMapOutput() DatasetVersionMapOutput

func (DatasetVersionMapOutput) ToDatasetVersionMapOutputWithContext

func (o DatasetVersionMapOutput) ToDatasetVersionMapOutputWithContext(ctx context.Context) DatasetVersionMapOutput

type DatasetVersionOutput

type DatasetVersionOutput struct{ *pulumi.OutputState }

func (DatasetVersionOutput) CreatedAt

The creation time, in UTC format.

func (DatasetVersionOutput) DatasetId

Specifies the ID of dataset. Changing this parameter will create a new resource.

func (DatasetVersionOutput) Description

Specifies the description of dataset version. It contains a maximum of 256 characters and cannot contain special characters `!<>=&"'`. Changing this parameter will create a new resource.

func (DatasetVersionOutput) ElementType

func (DatasetVersionOutput) ElementType() reflect.Type

func (DatasetVersionOutput) Files

The total number of samples.

func (DatasetVersionOutput) HardExample

func (o DatasetVersionOutput) HardExample() pulumi.BoolPtrOutput

Specifies whether to enable ModelArts to write the hard example attributes (difficult, hard-coefficient, and hard-reasons) into the XML and manifest labeling files. ModelArts will use these attributes to optimize hard example filtering. Default value is `false`. Changing this parameter will create a new resource.

func (DatasetVersionOutput) IsCurrent

func (o DatasetVersionOutput) IsCurrent() pulumi.BoolOutput

Whether this version is current version.

func (DatasetVersionOutput) LabelingType

func (o DatasetVersionOutput) LabelingType() pulumi.StringOutput

The label type of the dataset version. Valid values are as follows: + **multi**: Indicates that there are multi-label samples. + **single**: Indicates that all samples are single-label. + **unlabeled**: Indicates that all samples are unlabeled.

func (DatasetVersionOutput) Name

Specifies the name of the dataset version. The name consists of 1 to 32 characters. Only letters, Chinese characters, digits underscores (_) and hyphens (-) are allowed. Changing this parameter will create a new resource.

func (DatasetVersionOutput) Region

The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.

func (DatasetVersionOutput) SplitRatio

Specifies the ratio of splitting which randomly divides a labeled sample into a training set and a validation set. Changing this parameter will create a new resource.

func (DatasetVersionOutput) Status

The status of the dataset version. Valid values are as follows: + **0**: Creating. + **1**: Normal. + **2**: Deleting. + **3**: Deleted. + **4**: Exception.

func (DatasetVersionOutput) StoragePath

func (o DatasetVersionOutput) StoragePath() pulumi.StringOutput

The path to save the manifest file of the version.

func (DatasetVersionOutput) ToDatasetVersionOutput

func (o DatasetVersionOutput) ToDatasetVersionOutput() DatasetVersionOutput

func (DatasetVersionOutput) ToDatasetVersionOutputWithContext

func (o DatasetVersionOutput) ToDatasetVersionOutputWithContext(ctx context.Context) DatasetVersionOutput

func (DatasetVersionOutput) UpdatedAt

The last update time, in UTC format.

func (DatasetVersionOutput) Verification

func (o DatasetVersionOutput) Verification() pulumi.BoolOutput

Whether the data has been verified by the verification algorithm before publishing.

func (DatasetVersionOutput) VersionId

The version ID.

type DatasetVersionState

type DatasetVersionState struct {
	// The creation time, in UTC format.
	CreatedAt pulumi.StringPtrInput
	// Specifies the ID of dataset.
	// Changing this parameter will create a new resource.
	DatasetId pulumi.StringPtrInput
	// Specifies the description of dataset version. It contains a maximum of
	// 256 characters and cannot contain special characters `!<>=&"'`. Changing this parameter will create a new resource.
	Description pulumi.StringPtrInput
	// The total number of samples.
	Files pulumi.IntPtrInput
	// Specifies whether to enable ModelArts to write the hard example
	// attributes (difficult, hard-coefficient, and hard-reasons) into the XML and manifest labeling files. ModelArts will
	// use these attributes to optimize hard example filtering. Default value is `false`.
	// Changing this parameter will create a new resource.
	HardExample pulumi.BoolPtrInput
	// Whether this version is current version.
	IsCurrent pulumi.BoolPtrInput
	// The label type of the dataset version. Valid values are as follows:
	// + **multi**: Indicates that there are multi-label samples.
	// + **single**: Indicates that all samples are single-label.
	// + **unlabeled**: Indicates that all samples are unlabeled.
	LabelingType pulumi.StringPtrInput
	// Specifies the name of the dataset version. The name consists of 1 to 32
	// characters. Only letters, Chinese characters, digits underscores (_) and hyphens (-) are allowed.
	// Changing this parameter will create a new resource.
	Name pulumi.StringPtrInput
	// The region in which to create the resource. If omitted, the
	// provider-level region will be used. Changing this parameter will create a new resource.
	Region pulumi.StringPtrInput
	// Specifies the ratio of splitting which randomly divides a labeled sample
	// into a training set and a validation set. Changing this parameter will create a new resource.
	SplitRatio pulumi.StringPtrInput
	// The status of the dataset version. Valid values are as follows:
	// + **0**: Creating.
	// + **1**: Normal.
	// + **2**: Deleting.
	// + **3**: Deleted.
	// + **4**: Exception.
	Status pulumi.IntPtrInput
	// The path to save the manifest file of the version.
	StoragePath pulumi.StringPtrInput
	// The last update time, in UTC format.
	UpdatedAt pulumi.StringPtrInput
	// Whether the data has been verified by the verification algorithm before publishing.
	Verification pulumi.BoolPtrInput
	// The version ID.
	VersionId pulumi.StringPtrInput
}

func (DatasetVersionState) ElementType

func (DatasetVersionState) ElementType() reflect.Type

type GetDataset_versionsArgs

type GetDataset_versionsArgs struct {
	// Specifies the ID of dataset.
	DatasetId string `pulumi:"datasetId"`
	// Specifies the name of the dataset version.
	Name *string `pulumi:"name"`
	// Specifies the region in which to obtain dataset versions. If omitted, the
	// provider-level region will be used.
	Region *string `pulumi:"region"`
	// Specifies the range of splitting ratio which randomly divides a labeled sample
	// into a training set and a validation set. Separate the minimum and maximum split ratios with commas,
	// for example: "0.0,1.0".
	SplitRatio *string `pulumi:"splitRatio"`
}

A collection of arguments for invoking getDataset_versions.

type GetDataset_versionsOutputArgs

type GetDataset_versionsOutputArgs struct {
	// Specifies the ID of dataset.
	DatasetId pulumi.StringInput `pulumi:"datasetId"`
	// Specifies the name of the dataset version.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Specifies the region in which to obtain dataset versions. If omitted, the
	// provider-level region will be used.
	Region pulumi.StringPtrInput `pulumi:"region"`
	// Specifies the range of splitting ratio which randomly divides a labeled sample
	// into a training set and a validation set. Separate the minimum and maximum split ratios with commas,
	// for example: "0.0,1.0".
	SplitRatio pulumi.StringPtrInput `pulumi:"splitRatio"`
}

A collection of arguments for invoking getDataset_versions.

func (GetDataset_versionsOutputArgs) ElementType

type GetDataset_versionsResult

type GetDataset_versionsResult struct {
	DatasetId string `pulumi:"datasetId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of the dataset version.
	Name   *string `pulumi:"name"`
	Region string  `pulumi:"region"`
	// The ratio of splitting which randomly divides a labeled sample into a training set and
	// a validation set.
	SplitRatio *string `pulumi:"splitRatio"`
	// Indicates a list of all dataset versions found. Structure is documented below.
	Versions []GetDataset_versionsVersion `pulumi:"versions"`
}

A collection of values returned by getDataset_versions.

func GetDataset_versions

func GetDataset_versions(ctx *pulumi.Context, args *GetDataset_versionsArgs, opts ...pulumi.InvokeOption) (*GetDataset_versionsResult, error)

Use this data source to get a list of ModelArts dataset versions.

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/ModelArts"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/ModelArts"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		datasetId := cfg.RequireObject("datasetId")
		_, err := ModelArts.GetDataset_versions(ctx, &modelarts.GetDataset_versionsArgs{
			DatasetId: datasetId,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetDataset_versionsResultOutput

type GetDataset_versionsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDataset_versions.

func (GetDataset_versionsResultOutput) DatasetId

func (GetDataset_versionsResultOutput) ElementType

func (GetDataset_versionsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetDataset_versionsResultOutput) Name

The name of the dataset version.

func (GetDataset_versionsResultOutput) Region

func (GetDataset_versionsResultOutput) SplitRatio

The ratio of splitting which randomly divides a labeled sample into a training set and a validation set.

func (GetDataset_versionsResultOutput) ToGetDataset_versionsResultOutput

func (o GetDataset_versionsResultOutput) ToGetDataset_versionsResultOutput() GetDataset_versionsResultOutput

func (GetDataset_versionsResultOutput) ToGetDataset_versionsResultOutputWithContext

func (o GetDataset_versionsResultOutput) ToGetDataset_versionsResultOutputWithContext(ctx context.Context) GetDataset_versionsResultOutput

func (GetDataset_versionsResultOutput) Versions

Indicates a list of all dataset versions found. Structure is documented below.

type GetDataset_versionsVersion

type GetDataset_versionsVersion struct {
	// The creation time, in UTC format.
	CreatedAt string `pulumi:"createdAt"`
	// The description of the dataset version.
	Description string `pulumi:"description"`
	// The total number of samples.
	Files int `pulumi:"files"`
	// The ID of the dataset version.
	Id string `pulumi:"id"`
	// Whether this version is current version.
	IsCurrent bool `pulumi:"isCurrent"`
	// Specifies the name of the dataset version.
	Name string `pulumi:"name"`
	// Specifies the range of splitting ratio which randomly divides a labeled sample
	// into a training set and a validation set. Separate the minimum and maximum split ratios with commas,
	// for example: "0.0,1.0".
	SplitRatio string `pulumi:"splitRatio"`
	// Dataset version status. Valid values are as follows:
	// + **0**: Creating.
	// + **1**: Normal.
	// + **2**: Deleting.
	// + **3**: Deleted.
	// + **4**: Exception.
	Status int `pulumi:"status"`
	// The path to save the manifest file of the version.
	StoragePath string `pulumi:"storagePath"`
	// The last update time, in UTC format.
	UpdatedAt string `pulumi:"updatedAt"`
}

type GetDataset_versionsVersionArgs

type GetDataset_versionsVersionArgs struct {
	// The creation time, in UTC format.
	CreatedAt pulumi.StringInput `pulumi:"createdAt"`
	// The description of the dataset version.
	Description pulumi.StringInput `pulumi:"description"`
	// The total number of samples.
	Files pulumi.IntInput `pulumi:"files"`
	// The ID of the dataset version.
	Id pulumi.StringInput `pulumi:"id"`
	// Whether this version is current version.
	IsCurrent pulumi.BoolInput `pulumi:"isCurrent"`
	// Specifies the name of the dataset version.
	Name pulumi.StringInput `pulumi:"name"`
	// Specifies the range of splitting ratio which randomly divides a labeled sample
	// into a training set and a validation set. Separate the minimum and maximum split ratios with commas,
	// for example: "0.0,1.0".
	SplitRatio pulumi.StringInput `pulumi:"splitRatio"`
	// Dataset version status. Valid values are as follows:
	// + **0**: Creating.
	// + **1**: Normal.
	// + **2**: Deleting.
	// + **3**: Deleted.
	// + **4**: Exception.
	Status pulumi.IntInput `pulumi:"status"`
	// The path to save the manifest file of the version.
	StoragePath pulumi.StringInput `pulumi:"storagePath"`
	// The last update time, in UTC format.
	UpdatedAt pulumi.StringInput `pulumi:"updatedAt"`
}

func (GetDataset_versionsVersionArgs) ElementType

func (GetDataset_versionsVersionArgs) ToGetDataset_versionsVersionOutput

func (i GetDataset_versionsVersionArgs) ToGetDataset_versionsVersionOutput() GetDataset_versionsVersionOutput

func (GetDataset_versionsVersionArgs) ToGetDataset_versionsVersionOutputWithContext

func (i GetDataset_versionsVersionArgs) ToGetDataset_versionsVersionOutputWithContext(ctx context.Context) GetDataset_versionsVersionOutput

type GetDataset_versionsVersionArray

type GetDataset_versionsVersionArray []GetDataset_versionsVersionInput

func (GetDataset_versionsVersionArray) ElementType

func (GetDataset_versionsVersionArray) ToGetDataset_versionsVersionArrayOutput

func (i GetDataset_versionsVersionArray) ToGetDataset_versionsVersionArrayOutput() GetDataset_versionsVersionArrayOutput

func (GetDataset_versionsVersionArray) ToGetDataset_versionsVersionArrayOutputWithContext

func (i GetDataset_versionsVersionArray) ToGetDataset_versionsVersionArrayOutputWithContext(ctx context.Context) GetDataset_versionsVersionArrayOutput

type GetDataset_versionsVersionArrayInput

type GetDataset_versionsVersionArrayInput interface {
	pulumi.Input

	ToGetDataset_versionsVersionArrayOutput() GetDataset_versionsVersionArrayOutput
	ToGetDataset_versionsVersionArrayOutputWithContext(context.Context) GetDataset_versionsVersionArrayOutput
}

GetDataset_versionsVersionArrayInput is an input type that accepts GetDataset_versionsVersionArray and GetDataset_versionsVersionArrayOutput values. You can construct a concrete instance of `GetDataset_versionsVersionArrayInput` via:

GetDataset_versionsVersionArray{ GetDataset_versionsVersionArgs{...} }

type GetDataset_versionsVersionArrayOutput

type GetDataset_versionsVersionArrayOutput struct{ *pulumi.OutputState }

func (GetDataset_versionsVersionArrayOutput) ElementType

func (GetDataset_versionsVersionArrayOutput) Index

func (GetDataset_versionsVersionArrayOutput) ToGetDataset_versionsVersionArrayOutput

func (o GetDataset_versionsVersionArrayOutput) ToGetDataset_versionsVersionArrayOutput() GetDataset_versionsVersionArrayOutput

func (GetDataset_versionsVersionArrayOutput) ToGetDataset_versionsVersionArrayOutputWithContext

func (o GetDataset_versionsVersionArrayOutput) ToGetDataset_versionsVersionArrayOutputWithContext(ctx context.Context) GetDataset_versionsVersionArrayOutput

type GetDataset_versionsVersionInput

type GetDataset_versionsVersionInput interface {
	pulumi.Input

	ToGetDataset_versionsVersionOutput() GetDataset_versionsVersionOutput
	ToGetDataset_versionsVersionOutputWithContext(context.Context) GetDataset_versionsVersionOutput
}

GetDataset_versionsVersionInput is an input type that accepts GetDataset_versionsVersionArgs and GetDataset_versionsVersionOutput values. You can construct a concrete instance of `GetDataset_versionsVersionInput` via:

GetDataset_versionsVersionArgs{...}

type GetDataset_versionsVersionOutput

type GetDataset_versionsVersionOutput struct{ *pulumi.OutputState }

func (GetDataset_versionsVersionOutput) CreatedAt

The creation time, in UTC format.

func (GetDataset_versionsVersionOutput) Description

The description of the dataset version.

func (GetDataset_versionsVersionOutput) ElementType

func (GetDataset_versionsVersionOutput) Files

The total number of samples.

func (GetDataset_versionsVersionOutput) Id

The ID of the dataset version.

func (GetDataset_versionsVersionOutput) IsCurrent

Whether this version is current version.

func (GetDataset_versionsVersionOutput) Name

Specifies the name of the dataset version.

func (GetDataset_versionsVersionOutput) SplitRatio

Specifies the range of splitting ratio which randomly divides a labeled sample into a training set and a validation set. Separate the minimum and maximum split ratios with commas, for example: "0.0,1.0".

func (GetDataset_versionsVersionOutput) Status

Dataset version status. Valid values are as follows: + **0**: Creating. + **1**: Normal. + **2**: Deleting. + **3**: Deleted. + **4**: Exception.

func (GetDataset_versionsVersionOutput) StoragePath

The path to save the manifest file of the version.

func (GetDataset_versionsVersionOutput) ToGetDataset_versionsVersionOutput

func (o GetDataset_versionsVersionOutput) ToGetDataset_versionsVersionOutput() GetDataset_versionsVersionOutput

func (GetDataset_versionsVersionOutput) ToGetDataset_versionsVersionOutputWithContext

func (o GetDataset_versionsVersionOutput) ToGetDataset_versionsVersionOutputWithContext(ctx context.Context) GetDataset_versionsVersionOutput

func (GetDataset_versionsVersionOutput) UpdatedAt

The last update time, in UTC format.

type GetDatasetsArgs

type GetDatasetsArgs struct {
	// Specifies the name of datasets.
	Name *string `pulumi:"name"`
	// Specifies the region in which to obtain datasets. If omitted, the provider-level region
	// will be used.
	Region *string `pulumi:"region"`
	// Specifies the type of datasets. The options are:
	// + **0**: Image classification, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`.
	// + **1**: Object detection, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`.
	// + **3**: Image segmentation, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`.
	// + **100**: Text classification, supported formats: `.txt`, `.csv`.
	// + **200**: Sound classification, Supported formats: `.wav`.
	// + **400**: Table type, supported formats: Carbon type.
	// + **600**: Video, supported formats: `.mp4`
	// + **900**: Free format.
	Type *int `pulumi:"type"`
}

A collection of arguments for invoking getDatasets.

type GetDatasetsDataset

type GetDatasetsDataset struct {
	// The dataset creation time.
	CreatedAt string `pulumi:"createdAt"`
	// The dataset format. Valid values include: `Default`, `CarbonData`: Carbon format(Supported only for
	// table type dataset.).
	DataFormat string `pulumi:"dataFormat"`
	// The data sources which is used to imported the source data (such as pictures/files/audio, etc.) in
	// this directory and subdirectories to the dataset. Structure is documented below.
	DataSources []GetDatasetsDatasetDataSource `pulumi:"dataSources"`
	// The description of the dataset.
	Description string `pulumi:"description"`
	// The ID of the dataset.
	Id string `pulumi:"id"`
	// The labels information. Structure is documented below.
	Labels []GetDatasetsDatasetLabel `pulumi:"labels"`
	// Specifies the name of datasets.
	Name string `pulumi:"name"`
	// The OBS path for storing output files such as labeled files.
	OutputPath string `pulumi:"outputPath"`
	// The schema information of source data when `type` is `400`(Table Type). Structure is documented below.
	Schemas []GetDatasetsDatasetSchema `pulumi:"schemas"`
	// Dataset status. Valid values are as follows:
	// + **0**: Creating.
	// + **1**: Completed.
	// + **2**: Deleting.
	// + **3**: Deleted.
	// + **4**: Exception.
	// + **5**: Syncing.
	// + **6**: Releasing.
	// + **7**: Version switching.
	// + **8**: Importing.
	Status int `pulumi:"status"`
	// Specifies the type of datasets. The options are:
	// + **0**: Image classification, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`.
	// + **1**: Object detection, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`.
	// + **3**: Image segmentation, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`.
	// + **100**: Text classification, supported formats: `.txt`, `.csv`.
	// + **200**: Sound classification, Supported formats: `.wav`.
	// + **400**: Table type, supported formats: Carbon type.
	// + **600**: Video, supported formats: `.mp4`
	// + **900**: Free format.
	Type int `pulumi:"type"`
}

type GetDatasetsDatasetArgs

type GetDatasetsDatasetArgs struct {
	// The dataset creation time.
	CreatedAt pulumi.StringInput `pulumi:"createdAt"`
	// The dataset format. Valid values include: `Default`, `CarbonData`: Carbon format(Supported only for
	// table type dataset.).
	DataFormat pulumi.StringInput `pulumi:"dataFormat"`
	// The data sources which is used to imported the source data (such as pictures/files/audio, etc.) in
	// this directory and subdirectories to the dataset. Structure is documented below.
	DataSources GetDatasetsDatasetDataSourceArrayInput `pulumi:"dataSources"`
	// The description of the dataset.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of the dataset.
	Id pulumi.StringInput `pulumi:"id"`
	// The labels information. Structure is documented below.
	Labels GetDatasetsDatasetLabelArrayInput `pulumi:"labels"`
	// Specifies the name of datasets.
	Name pulumi.StringInput `pulumi:"name"`
	// The OBS path for storing output files such as labeled files.
	OutputPath pulumi.StringInput `pulumi:"outputPath"`
	// The schema information of source data when `type` is `400`(Table Type). Structure is documented below.
	Schemas GetDatasetsDatasetSchemaArrayInput `pulumi:"schemas"`
	// Dataset status. Valid values are as follows:
	// + **0**: Creating.
	// + **1**: Completed.
	// + **2**: Deleting.
	// + **3**: Deleted.
	// + **4**: Exception.
	// + **5**: Syncing.
	// + **6**: Releasing.
	// + **7**: Version switching.
	// + **8**: Importing.
	Status pulumi.IntInput `pulumi:"status"`
	// Specifies the type of datasets. The options are:
	// + **0**: Image classification, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`.
	// + **1**: Object detection, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`.
	// + **3**: Image segmentation, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`.
	// + **100**: Text classification, supported formats: `.txt`, `.csv`.
	// + **200**: Sound classification, Supported formats: `.wav`.
	// + **400**: Table type, supported formats: Carbon type.
	// + **600**: Video, supported formats: `.mp4`
	// + **900**: Free format.
	Type pulumi.IntInput `pulumi:"type"`
}

func (GetDatasetsDatasetArgs) ElementType

func (GetDatasetsDatasetArgs) ElementType() reflect.Type

func (GetDatasetsDatasetArgs) ToGetDatasetsDatasetOutput

func (i GetDatasetsDatasetArgs) ToGetDatasetsDatasetOutput() GetDatasetsDatasetOutput

func (GetDatasetsDatasetArgs) ToGetDatasetsDatasetOutputWithContext

func (i GetDatasetsDatasetArgs) ToGetDatasetsDatasetOutputWithContext(ctx context.Context) GetDatasetsDatasetOutput

type GetDatasetsDatasetArray

type GetDatasetsDatasetArray []GetDatasetsDatasetInput

func (GetDatasetsDatasetArray) ElementType

func (GetDatasetsDatasetArray) ElementType() reflect.Type

func (GetDatasetsDatasetArray) ToGetDatasetsDatasetArrayOutput

func (i GetDatasetsDatasetArray) ToGetDatasetsDatasetArrayOutput() GetDatasetsDatasetArrayOutput

func (GetDatasetsDatasetArray) ToGetDatasetsDatasetArrayOutputWithContext

func (i GetDatasetsDatasetArray) ToGetDatasetsDatasetArrayOutputWithContext(ctx context.Context) GetDatasetsDatasetArrayOutput

type GetDatasetsDatasetArrayInput

type GetDatasetsDatasetArrayInput interface {
	pulumi.Input

	ToGetDatasetsDatasetArrayOutput() GetDatasetsDatasetArrayOutput
	ToGetDatasetsDatasetArrayOutputWithContext(context.Context) GetDatasetsDatasetArrayOutput
}

GetDatasetsDatasetArrayInput is an input type that accepts GetDatasetsDatasetArray and GetDatasetsDatasetArrayOutput values. You can construct a concrete instance of `GetDatasetsDatasetArrayInput` via:

GetDatasetsDatasetArray{ GetDatasetsDatasetArgs{...} }

type GetDatasetsDatasetArrayOutput

type GetDatasetsDatasetArrayOutput struct{ *pulumi.OutputState }

func (GetDatasetsDatasetArrayOutput) ElementType

func (GetDatasetsDatasetArrayOutput) Index

func (GetDatasetsDatasetArrayOutput) ToGetDatasetsDatasetArrayOutput

func (o GetDatasetsDatasetArrayOutput) ToGetDatasetsDatasetArrayOutput() GetDatasetsDatasetArrayOutput

func (GetDatasetsDatasetArrayOutput) ToGetDatasetsDatasetArrayOutputWithContext

func (o GetDatasetsDatasetArrayOutput) ToGetDatasetsDatasetArrayOutputWithContext(ctx context.Context) GetDatasetsDatasetArrayOutput

type GetDatasetsDatasetDataSource

type GetDatasetsDatasetDataSource struct {
	// The type of data source. Valid values are as follows:
	// + *0*: OBS.
	// + *1*: GaussDB(DWS).
	// + *2*: DLI.
	// + *4*: MRS.
	DataType int `pulumi:"dataType"`
	// The OBS path when `dataType` is `0`(OBS) or the HDFS path when `dataType` is `4`(MRS). All the file in this
	// directory and subdirectories will be which be imported to the dataset.
	Path string `pulumi:"path"`
	// Whether the data contains table header when the type of dataset is `400`(Table type).
	WithColumnHeader bool `pulumi:"withColumnHeader"`
}

type GetDatasetsDatasetDataSourceArgs

type GetDatasetsDatasetDataSourceArgs struct {
	// The type of data source. Valid values are as follows:
	// + *0*: OBS.
	// + *1*: GaussDB(DWS).
	// + *2*: DLI.
	// + *4*: MRS.
	DataType pulumi.IntInput `pulumi:"dataType"`
	// The OBS path when `dataType` is `0`(OBS) or the HDFS path when `dataType` is `4`(MRS). All the file in this
	// directory and subdirectories will be which be imported to the dataset.
	Path pulumi.StringInput `pulumi:"path"`
	// Whether the data contains table header when the type of dataset is `400`(Table type).
	WithColumnHeader pulumi.BoolInput `pulumi:"withColumnHeader"`
}

func (GetDatasetsDatasetDataSourceArgs) ElementType

func (GetDatasetsDatasetDataSourceArgs) ToGetDatasetsDatasetDataSourceOutput

func (i GetDatasetsDatasetDataSourceArgs) ToGetDatasetsDatasetDataSourceOutput() GetDatasetsDatasetDataSourceOutput

func (GetDatasetsDatasetDataSourceArgs) ToGetDatasetsDatasetDataSourceOutputWithContext

func (i GetDatasetsDatasetDataSourceArgs) ToGetDatasetsDatasetDataSourceOutputWithContext(ctx context.Context) GetDatasetsDatasetDataSourceOutput

type GetDatasetsDatasetDataSourceArray

type GetDatasetsDatasetDataSourceArray []GetDatasetsDatasetDataSourceInput

func (GetDatasetsDatasetDataSourceArray) ElementType

func (GetDatasetsDatasetDataSourceArray) ToGetDatasetsDatasetDataSourceArrayOutput

func (i GetDatasetsDatasetDataSourceArray) ToGetDatasetsDatasetDataSourceArrayOutput() GetDatasetsDatasetDataSourceArrayOutput

func (GetDatasetsDatasetDataSourceArray) ToGetDatasetsDatasetDataSourceArrayOutputWithContext

func (i GetDatasetsDatasetDataSourceArray) ToGetDatasetsDatasetDataSourceArrayOutputWithContext(ctx context.Context) GetDatasetsDatasetDataSourceArrayOutput

type GetDatasetsDatasetDataSourceArrayInput

type GetDatasetsDatasetDataSourceArrayInput interface {
	pulumi.Input

	ToGetDatasetsDatasetDataSourceArrayOutput() GetDatasetsDatasetDataSourceArrayOutput
	ToGetDatasetsDatasetDataSourceArrayOutputWithContext(context.Context) GetDatasetsDatasetDataSourceArrayOutput
}

GetDatasetsDatasetDataSourceArrayInput is an input type that accepts GetDatasetsDatasetDataSourceArray and GetDatasetsDatasetDataSourceArrayOutput values. You can construct a concrete instance of `GetDatasetsDatasetDataSourceArrayInput` via:

GetDatasetsDatasetDataSourceArray{ GetDatasetsDatasetDataSourceArgs{...} }

type GetDatasetsDatasetDataSourceArrayOutput

type GetDatasetsDatasetDataSourceArrayOutput struct{ *pulumi.OutputState }

func (GetDatasetsDatasetDataSourceArrayOutput) ElementType

func (GetDatasetsDatasetDataSourceArrayOutput) Index

func (GetDatasetsDatasetDataSourceArrayOutput) ToGetDatasetsDatasetDataSourceArrayOutput

func (o GetDatasetsDatasetDataSourceArrayOutput) ToGetDatasetsDatasetDataSourceArrayOutput() GetDatasetsDatasetDataSourceArrayOutput

func (GetDatasetsDatasetDataSourceArrayOutput) ToGetDatasetsDatasetDataSourceArrayOutputWithContext

func (o GetDatasetsDatasetDataSourceArrayOutput) ToGetDatasetsDatasetDataSourceArrayOutputWithContext(ctx context.Context) GetDatasetsDatasetDataSourceArrayOutput

type GetDatasetsDatasetDataSourceInput

type GetDatasetsDatasetDataSourceInput interface {
	pulumi.Input

	ToGetDatasetsDatasetDataSourceOutput() GetDatasetsDatasetDataSourceOutput
	ToGetDatasetsDatasetDataSourceOutputWithContext(context.Context) GetDatasetsDatasetDataSourceOutput
}

GetDatasetsDatasetDataSourceInput is an input type that accepts GetDatasetsDatasetDataSourceArgs and GetDatasetsDatasetDataSourceOutput values. You can construct a concrete instance of `GetDatasetsDatasetDataSourceInput` via:

GetDatasetsDatasetDataSourceArgs{...}

type GetDatasetsDatasetDataSourceOutput

type GetDatasetsDatasetDataSourceOutput struct{ *pulumi.OutputState }

func (GetDatasetsDatasetDataSourceOutput) DataType

The type of data source. Valid values are as follows: + *0*: OBS. + *1*: GaussDB(DWS). + *2*: DLI. + *4*: MRS.

func (GetDatasetsDatasetDataSourceOutput) ElementType

func (GetDatasetsDatasetDataSourceOutput) Path

The OBS path when `dataType` is `0`(OBS) or the HDFS path when `dataType` is `4`(MRS). All the file in this directory and subdirectories will be which be imported to the dataset.

func (GetDatasetsDatasetDataSourceOutput) ToGetDatasetsDatasetDataSourceOutput

func (o GetDatasetsDatasetDataSourceOutput) ToGetDatasetsDatasetDataSourceOutput() GetDatasetsDatasetDataSourceOutput

func (GetDatasetsDatasetDataSourceOutput) ToGetDatasetsDatasetDataSourceOutputWithContext

func (o GetDatasetsDatasetDataSourceOutput) ToGetDatasetsDatasetDataSourceOutputWithContext(ctx context.Context) GetDatasetsDatasetDataSourceOutput

func (GetDatasetsDatasetDataSourceOutput) WithColumnHeader

Whether the data contains table header when the type of dataset is `400`(Table type).

type GetDatasetsDatasetInput

type GetDatasetsDatasetInput interface {
	pulumi.Input

	ToGetDatasetsDatasetOutput() GetDatasetsDatasetOutput
	ToGetDatasetsDatasetOutputWithContext(context.Context) GetDatasetsDatasetOutput
}

GetDatasetsDatasetInput is an input type that accepts GetDatasetsDatasetArgs and GetDatasetsDatasetOutput values. You can construct a concrete instance of `GetDatasetsDatasetInput` via:

GetDatasetsDatasetArgs{...}

type GetDatasetsDatasetLabel

type GetDatasetsDatasetLabel struct {
	// Specifies the name of datasets.
	Name string `pulumi:"name"`
	// The color of label.
	PropertyColor string `pulumi:"propertyColor"`
	// The shape of label. Valid values include: `bndbox`, `polygon`, `circle`, `line`, `dashed`,
	// `point`, `polyline`.
	PropertyShape string `pulumi:"propertyShape"`
	// The shortcut of label.
	PropertyShortcut string `pulumi:"propertyShortcut"`
}

type GetDatasetsDatasetLabelArgs

type GetDatasetsDatasetLabelArgs struct {
	// Specifies the name of datasets.
	Name pulumi.StringInput `pulumi:"name"`
	// The color of label.
	PropertyColor pulumi.StringInput `pulumi:"propertyColor"`
	// The shape of label. Valid values include: `bndbox`, `polygon`, `circle`, `line`, `dashed`,
	// `point`, `polyline`.
	PropertyShape pulumi.StringInput `pulumi:"propertyShape"`
	// The shortcut of label.
	PropertyShortcut pulumi.StringInput `pulumi:"propertyShortcut"`
}

func (GetDatasetsDatasetLabelArgs) ElementType

func (GetDatasetsDatasetLabelArgs) ToGetDatasetsDatasetLabelOutput

func (i GetDatasetsDatasetLabelArgs) ToGetDatasetsDatasetLabelOutput() GetDatasetsDatasetLabelOutput

func (GetDatasetsDatasetLabelArgs) ToGetDatasetsDatasetLabelOutputWithContext

func (i GetDatasetsDatasetLabelArgs) ToGetDatasetsDatasetLabelOutputWithContext(ctx context.Context) GetDatasetsDatasetLabelOutput

type GetDatasetsDatasetLabelArray

type GetDatasetsDatasetLabelArray []GetDatasetsDatasetLabelInput

func (GetDatasetsDatasetLabelArray) ElementType

func (GetDatasetsDatasetLabelArray) ToGetDatasetsDatasetLabelArrayOutput

func (i GetDatasetsDatasetLabelArray) ToGetDatasetsDatasetLabelArrayOutput() GetDatasetsDatasetLabelArrayOutput

func (GetDatasetsDatasetLabelArray) ToGetDatasetsDatasetLabelArrayOutputWithContext

func (i GetDatasetsDatasetLabelArray) ToGetDatasetsDatasetLabelArrayOutputWithContext(ctx context.Context) GetDatasetsDatasetLabelArrayOutput

type GetDatasetsDatasetLabelArrayInput

type GetDatasetsDatasetLabelArrayInput interface {
	pulumi.Input

	ToGetDatasetsDatasetLabelArrayOutput() GetDatasetsDatasetLabelArrayOutput
	ToGetDatasetsDatasetLabelArrayOutputWithContext(context.Context) GetDatasetsDatasetLabelArrayOutput
}

GetDatasetsDatasetLabelArrayInput is an input type that accepts GetDatasetsDatasetLabelArray and GetDatasetsDatasetLabelArrayOutput values. You can construct a concrete instance of `GetDatasetsDatasetLabelArrayInput` via:

GetDatasetsDatasetLabelArray{ GetDatasetsDatasetLabelArgs{...} }

type GetDatasetsDatasetLabelArrayOutput

type GetDatasetsDatasetLabelArrayOutput struct{ *pulumi.OutputState }

func (GetDatasetsDatasetLabelArrayOutput) ElementType

func (GetDatasetsDatasetLabelArrayOutput) Index

func (GetDatasetsDatasetLabelArrayOutput) ToGetDatasetsDatasetLabelArrayOutput

func (o GetDatasetsDatasetLabelArrayOutput) ToGetDatasetsDatasetLabelArrayOutput() GetDatasetsDatasetLabelArrayOutput

func (GetDatasetsDatasetLabelArrayOutput) ToGetDatasetsDatasetLabelArrayOutputWithContext

func (o GetDatasetsDatasetLabelArrayOutput) ToGetDatasetsDatasetLabelArrayOutputWithContext(ctx context.Context) GetDatasetsDatasetLabelArrayOutput

type GetDatasetsDatasetLabelInput

type GetDatasetsDatasetLabelInput interface {
	pulumi.Input

	ToGetDatasetsDatasetLabelOutput() GetDatasetsDatasetLabelOutput
	ToGetDatasetsDatasetLabelOutputWithContext(context.Context) GetDatasetsDatasetLabelOutput
}

GetDatasetsDatasetLabelInput is an input type that accepts GetDatasetsDatasetLabelArgs and GetDatasetsDatasetLabelOutput values. You can construct a concrete instance of `GetDatasetsDatasetLabelInput` via:

GetDatasetsDatasetLabelArgs{...}

type GetDatasetsDatasetLabelOutput

type GetDatasetsDatasetLabelOutput struct{ *pulumi.OutputState }

func (GetDatasetsDatasetLabelOutput) ElementType

func (GetDatasetsDatasetLabelOutput) Name

Specifies the name of datasets.

func (GetDatasetsDatasetLabelOutput) PropertyColor

The color of label.

func (GetDatasetsDatasetLabelOutput) PropertyShape

The shape of label. Valid values include: `bndbox`, `polygon`, `circle`, `line`, `dashed`, `point`, `polyline`.

func (GetDatasetsDatasetLabelOutput) PropertyShortcut

func (o GetDatasetsDatasetLabelOutput) PropertyShortcut() pulumi.StringOutput

The shortcut of label.

func (GetDatasetsDatasetLabelOutput) ToGetDatasetsDatasetLabelOutput

func (o GetDatasetsDatasetLabelOutput) ToGetDatasetsDatasetLabelOutput() GetDatasetsDatasetLabelOutput

func (GetDatasetsDatasetLabelOutput) ToGetDatasetsDatasetLabelOutputWithContext

func (o GetDatasetsDatasetLabelOutput) ToGetDatasetsDatasetLabelOutputWithContext(ctx context.Context) GetDatasetsDatasetLabelOutput

type GetDatasetsDatasetOutput

type GetDatasetsDatasetOutput struct{ *pulumi.OutputState }

func (GetDatasetsDatasetOutput) CreatedAt

The dataset creation time.

func (GetDatasetsDatasetOutput) DataFormat

The dataset format. Valid values include: `Default`, `CarbonData`: Carbon format(Supported only for table type dataset.).

func (GetDatasetsDatasetOutput) DataSources

The data sources which is used to imported the source data (such as pictures/files/audio, etc.) in this directory and subdirectories to the dataset. Structure is documented below.

func (GetDatasetsDatasetOutput) Description

The description of the dataset.

func (GetDatasetsDatasetOutput) ElementType

func (GetDatasetsDatasetOutput) ElementType() reflect.Type

func (GetDatasetsDatasetOutput) Id

The ID of the dataset.

func (GetDatasetsDatasetOutput) Labels

The labels information. Structure is documented below.

func (GetDatasetsDatasetOutput) Name

Specifies the name of datasets.

func (GetDatasetsDatasetOutput) OutputPath

The OBS path for storing output files such as labeled files.

func (GetDatasetsDatasetOutput) Schemas

The schema information of source data when `type` is `400`(Table Type). Structure is documented below.

func (GetDatasetsDatasetOutput) Status

Dataset status. Valid values are as follows: + **0**: Creating. + **1**: Completed. + **2**: Deleting. + **3**: Deleted. + **4**: Exception. + **5**: Syncing. + **6**: Releasing. + **7**: Version switching. + **8**: Importing.

func (GetDatasetsDatasetOutput) ToGetDatasetsDatasetOutput

func (o GetDatasetsDatasetOutput) ToGetDatasetsDatasetOutput() GetDatasetsDatasetOutput

func (GetDatasetsDatasetOutput) ToGetDatasetsDatasetOutputWithContext

func (o GetDatasetsDatasetOutput) ToGetDatasetsDatasetOutputWithContext(ctx context.Context) GetDatasetsDatasetOutput

func (GetDatasetsDatasetOutput) Type

Specifies the type of datasets. The options are: + **0**: Image classification, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`. + **1**: Object detection, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`. + **3**: Image segmentation, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`. + **100**: Text classification, supported formats: `.txt`, `.csv`. + **200**: Sound classification, Supported formats: `.wav`. + **400**: Table type, supported formats: Carbon type. + **600**: Video, supported formats: `.mp4` + **900**: Free format.

type GetDatasetsDatasetSchema

type GetDatasetsDatasetSchema struct {
	// Specifies the name of datasets.
	Name string `pulumi:"name"`
	// Specifies the type of datasets. The options are:
	// + **0**: Image classification, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`.
	// + **1**: Object detection, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`.
	// + **3**: Image segmentation, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`.
	// + **100**: Text classification, supported formats: `.txt`, `.csv`.
	// + **200**: Sound classification, Supported formats: `.wav`.
	// + **400**: Table type, supported formats: Carbon type.
	// + **600**: Video, supported formats: `.mp4`
	// + **900**: Free format.
	Type string `pulumi:"type"`
}

type GetDatasetsDatasetSchemaArgs

type GetDatasetsDatasetSchemaArgs struct {
	// Specifies the name of datasets.
	Name pulumi.StringInput `pulumi:"name"`
	// Specifies the type of datasets. The options are:
	// + **0**: Image classification, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`.
	// + **1**: Object detection, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`.
	// + **3**: Image segmentation, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`.
	// + **100**: Text classification, supported formats: `.txt`, `.csv`.
	// + **200**: Sound classification, Supported formats: `.wav`.
	// + **400**: Table type, supported formats: Carbon type.
	// + **600**: Video, supported formats: `.mp4`
	// + **900**: Free format.
	Type pulumi.StringInput `pulumi:"type"`
}

func (GetDatasetsDatasetSchemaArgs) ElementType

func (GetDatasetsDatasetSchemaArgs) ToGetDatasetsDatasetSchemaOutput

func (i GetDatasetsDatasetSchemaArgs) ToGetDatasetsDatasetSchemaOutput() GetDatasetsDatasetSchemaOutput

func (GetDatasetsDatasetSchemaArgs) ToGetDatasetsDatasetSchemaOutputWithContext

func (i GetDatasetsDatasetSchemaArgs) ToGetDatasetsDatasetSchemaOutputWithContext(ctx context.Context) GetDatasetsDatasetSchemaOutput

type GetDatasetsDatasetSchemaArray

type GetDatasetsDatasetSchemaArray []GetDatasetsDatasetSchemaInput

func (GetDatasetsDatasetSchemaArray) ElementType

func (GetDatasetsDatasetSchemaArray) ToGetDatasetsDatasetSchemaArrayOutput

func (i GetDatasetsDatasetSchemaArray) ToGetDatasetsDatasetSchemaArrayOutput() GetDatasetsDatasetSchemaArrayOutput

func (GetDatasetsDatasetSchemaArray) ToGetDatasetsDatasetSchemaArrayOutputWithContext

func (i GetDatasetsDatasetSchemaArray) ToGetDatasetsDatasetSchemaArrayOutputWithContext(ctx context.Context) GetDatasetsDatasetSchemaArrayOutput

type GetDatasetsDatasetSchemaArrayInput

type GetDatasetsDatasetSchemaArrayInput interface {
	pulumi.Input

	ToGetDatasetsDatasetSchemaArrayOutput() GetDatasetsDatasetSchemaArrayOutput
	ToGetDatasetsDatasetSchemaArrayOutputWithContext(context.Context) GetDatasetsDatasetSchemaArrayOutput
}

GetDatasetsDatasetSchemaArrayInput is an input type that accepts GetDatasetsDatasetSchemaArray and GetDatasetsDatasetSchemaArrayOutput values. You can construct a concrete instance of `GetDatasetsDatasetSchemaArrayInput` via:

GetDatasetsDatasetSchemaArray{ GetDatasetsDatasetSchemaArgs{...} }

type GetDatasetsDatasetSchemaArrayOutput

type GetDatasetsDatasetSchemaArrayOutput struct{ *pulumi.OutputState }

func (GetDatasetsDatasetSchemaArrayOutput) ElementType

func (GetDatasetsDatasetSchemaArrayOutput) Index

func (GetDatasetsDatasetSchemaArrayOutput) ToGetDatasetsDatasetSchemaArrayOutput

func (o GetDatasetsDatasetSchemaArrayOutput) ToGetDatasetsDatasetSchemaArrayOutput() GetDatasetsDatasetSchemaArrayOutput

func (GetDatasetsDatasetSchemaArrayOutput) ToGetDatasetsDatasetSchemaArrayOutputWithContext

func (o GetDatasetsDatasetSchemaArrayOutput) ToGetDatasetsDatasetSchemaArrayOutputWithContext(ctx context.Context) GetDatasetsDatasetSchemaArrayOutput

type GetDatasetsDatasetSchemaInput

type GetDatasetsDatasetSchemaInput interface {
	pulumi.Input

	ToGetDatasetsDatasetSchemaOutput() GetDatasetsDatasetSchemaOutput
	ToGetDatasetsDatasetSchemaOutputWithContext(context.Context) GetDatasetsDatasetSchemaOutput
}

GetDatasetsDatasetSchemaInput is an input type that accepts GetDatasetsDatasetSchemaArgs and GetDatasetsDatasetSchemaOutput values. You can construct a concrete instance of `GetDatasetsDatasetSchemaInput` via:

GetDatasetsDatasetSchemaArgs{...}

type GetDatasetsDatasetSchemaOutput

type GetDatasetsDatasetSchemaOutput struct{ *pulumi.OutputState }

func (GetDatasetsDatasetSchemaOutput) ElementType

func (GetDatasetsDatasetSchemaOutput) Name

Specifies the name of datasets.

func (GetDatasetsDatasetSchemaOutput) ToGetDatasetsDatasetSchemaOutput

func (o GetDatasetsDatasetSchemaOutput) ToGetDatasetsDatasetSchemaOutput() GetDatasetsDatasetSchemaOutput

func (GetDatasetsDatasetSchemaOutput) ToGetDatasetsDatasetSchemaOutputWithContext

func (o GetDatasetsDatasetSchemaOutput) ToGetDatasetsDatasetSchemaOutputWithContext(ctx context.Context) GetDatasetsDatasetSchemaOutput

func (GetDatasetsDatasetSchemaOutput) Type

Specifies the type of datasets. The options are: + **0**: Image classification, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`. + **1**: Object detection, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`. + **3**: Image segmentation, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`. + **100**: Text classification, supported formats: `.txt`, `.csv`. + **200**: Sound classification, Supported formats: `.wav`. + **400**: Table type, supported formats: Carbon type. + **600**: Video, supported formats: `.mp4` + **900**: Free format.

type GetDatasetsOutputArgs

type GetDatasetsOutputArgs struct {
	// Specifies the name of datasets.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Specifies the region in which to obtain datasets. If omitted, the provider-level region
	// will be used.
	Region pulumi.StringPtrInput `pulumi:"region"`
	// Specifies the type of datasets. The options are:
	// + **0**: Image classification, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`.
	// + **1**: Object detection, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`.
	// + **3**: Image segmentation, supported formats: `.jpg`, `.png`, `.jpeg`, `.bmp`.
	// + **100**: Text classification, supported formats: `.txt`, `.csv`.
	// + **200**: Sound classification, Supported formats: `.wav`.
	// + **400**: Table type, supported formats: Carbon type.
	// + **600**: Video, supported formats: `.mp4`
	// + **900**: Free format.
	Type pulumi.IntPtrInput `pulumi:"type"`
}

A collection of arguments for invoking getDatasets.

func (GetDatasetsOutputArgs) ElementType

func (GetDatasetsOutputArgs) ElementType() reflect.Type

type GetDatasetsResult

type GetDatasetsResult struct {
	// Indicates a list of all datasets found. Structure is documented below.
	Datasets []GetDatasetsDataset `pulumi:"datasets"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of label.
	Name   *string `pulumi:"name"`
	Region string  `pulumi:"region"`
	// The field type. Valid values include: `String`, `Short`, `Int`, `Long`, `Double`, `Float`, `Byte`,
	// `Date`, `Timestamp`, `Bool`.
	Type *int `pulumi:"type"`
}

A collection of values returned by getDatasets.

func GetDatasets

func GetDatasets(ctx *pulumi.Context, args *GetDatasetsArgs, opts ...pulumi.InvokeOption) (*GetDatasetsResult, error)

Use this data source to get a list of ModelArts datasets.

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/ModelArts"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/ModelArts"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ModelArts.GetDatasets(ctx, &modelarts.GetDatasetsArgs{
			Name: pulumi.StringRef("your_dataset_name"),
			Type: pulumi.IntRef(1),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetDatasetsResultOutput

type GetDatasetsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDatasets.

func (GetDatasetsResultOutput) Datasets

Indicates a list of all datasets found. Structure is documented below.

func (GetDatasetsResultOutput) ElementType

func (GetDatasetsResultOutput) ElementType() reflect.Type

func (GetDatasetsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetDatasetsResultOutput) Name

The name of label.

func (GetDatasetsResultOutput) Region

func (GetDatasetsResultOutput) ToGetDatasetsResultOutput

func (o GetDatasetsResultOutput) ToGetDatasetsResultOutput() GetDatasetsResultOutput

func (GetDatasetsResultOutput) ToGetDatasetsResultOutputWithContext

func (o GetDatasetsResultOutput) ToGetDatasetsResultOutputWithContext(ctx context.Context) GetDatasetsResultOutput

func (GetDatasetsResultOutput) Type

The field type. Valid values include: `String`, `Short`, `Int`, `Long`, `Double`, `Float`, `Byte`, `Date`, `Timestamp`, `Bool`.

type GetNotebookImagesArgs

type GetNotebookImagesArgs struct {
	// Specifies the CPU architecture of image. The value can be **x86_64** and **aarch64**.
	CpuArch *string `pulumi:"cpuArch"`
	// Specifies the name of image.
	Name *string `pulumi:"name"`
	// Specifies the name of the organization (namespace) which image belongs to.
	Organization *string `pulumi:"organization"`
	// Specifies the region in which to obtain images. If omitted, the provider-level region
	// will be used.
	Region *string `pulumi:"region"`
	// Specifies the type of image. The options are:
	// + `BUILD_IN`: The system built-in image.
	// + `DEDICATED`: User-saved images.
	Type *string `pulumi:"type"`
	// Specifies the workspace ID which image belongs to.
	WorkspaceId *string `pulumi:"workspaceId"`
}

A collection of arguments for invoking getNotebookImages.

type GetNotebookImagesImage

type GetNotebookImagesImage struct {
	// Specifies the CPU architecture of image. The value can be **x86_64** and **aarch64**.
	CpuArch string `pulumi:"cpuArch"`
	// The description of the image.
	Description string `pulumi:"description"`
	// The ID of the image.
	Id string `pulumi:"id"`
	// Specifies the name of image.
	Name string `pulumi:"name"`
	// The path the image in HuaweiCloud SWR service (SoftWare Repository for Container).
	SwrPath string `pulumi:"swrPath"`
	// Specifies the type of image. The options are:
	// + `BUILD_IN`: The system built-in image.
	// + `DEDICATED`: User-saved images.
	Type string `pulumi:"type"`
}

type GetNotebookImagesImageArgs

type GetNotebookImagesImageArgs struct {
	// Specifies the CPU architecture of image. The value can be **x86_64** and **aarch64**.
	CpuArch pulumi.StringInput `pulumi:"cpuArch"`
	// The description of the image.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of the image.
	Id pulumi.StringInput `pulumi:"id"`
	// Specifies the name of image.
	Name pulumi.StringInput `pulumi:"name"`
	// The path the image in HuaweiCloud SWR service (SoftWare Repository for Container).
	SwrPath pulumi.StringInput `pulumi:"swrPath"`
	// Specifies the type of image. The options are:
	// + `BUILD_IN`: The system built-in image.
	// + `DEDICATED`: User-saved images.
	Type pulumi.StringInput `pulumi:"type"`
}

func (GetNotebookImagesImageArgs) ElementType

func (GetNotebookImagesImageArgs) ElementType() reflect.Type

func (GetNotebookImagesImageArgs) ToGetNotebookImagesImageOutput

func (i GetNotebookImagesImageArgs) ToGetNotebookImagesImageOutput() GetNotebookImagesImageOutput

func (GetNotebookImagesImageArgs) ToGetNotebookImagesImageOutputWithContext

func (i GetNotebookImagesImageArgs) ToGetNotebookImagesImageOutputWithContext(ctx context.Context) GetNotebookImagesImageOutput

type GetNotebookImagesImageArray

type GetNotebookImagesImageArray []GetNotebookImagesImageInput

func (GetNotebookImagesImageArray) ElementType

func (GetNotebookImagesImageArray) ToGetNotebookImagesImageArrayOutput

func (i GetNotebookImagesImageArray) ToGetNotebookImagesImageArrayOutput() GetNotebookImagesImageArrayOutput

func (GetNotebookImagesImageArray) ToGetNotebookImagesImageArrayOutputWithContext

func (i GetNotebookImagesImageArray) ToGetNotebookImagesImageArrayOutputWithContext(ctx context.Context) GetNotebookImagesImageArrayOutput

type GetNotebookImagesImageArrayInput

type GetNotebookImagesImageArrayInput interface {
	pulumi.Input

	ToGetNotebookImagesImageArrayOutput() GetNotebookImagesImageArrayOutput
	ToGetNotebookImagesImageArrayOutputWithContext(context.Context) GetNotebookImagesImageArrayOutput
}

GetNotebookImagesImageArrayInput is an input type that accepts GetNotebookImagesImageArray and GetNotebookImagesImageArrayOutput values. You can construct a concrete instance of `GetNotebookImagesImageArrayInput` via:

GetNotebookImagesImageArray{ GetNotebookImagesImageArgs{...} }

type GetNotebookImagesImageArrayOutput

type GetNotebookImagesImageArrayOutput struct{ *pulumi.OutputState }

func (GetNotebookImagesImageArrayOutput) ElementType

func (GetNotebookImagesImageArrayOutput) Index

func (GetNotebookImagesImageArrayOutput) ToGetNotebookImagesImageArrayOutput

func (o GetNotebookImagesImageArrayOutput) ToGetNotebookImagesImageArrayOutput() GetNotebookImagesImageArrayOutput

func (GetNotebookImagesImageArrayOutput) ToGetNotebookImagesImageArrayOutputWithContext

func (o GetNotebookImagesImageArrayOutput) ToGetNotebookImagesImageArrayOutputWithContext(ctx context.Context) GetNotebookImagesImageArrayOutput

type GetNotebookImagesImageInput

type GetNotebookImagesImageInput interface {
	pulumi.Input

	ToGetNotebookImagesImageOutput() GetNotebookImagesImageOutput
	ToGetNotebookImagesImageOutputWithContext(context.Context) GetNotebookImagesImageOutput
}

GetNotebookImagesImageInput is an input type that accepts GetNotebookImagesImageArgs and GetNotebookImagesImageOutput values. You can construct a concrete instance of `GetNotebookImagesImageInput` via:

GetNotebookImagesImageArgs{...}

type GetNotebookImagesImageOutput

type GetNotebookImagesImageOutput struct{ *pulumi.OutputState }

func (GetNotebookImagesImageOutput) CpuArch

Specifies the CPU architecture of image. The value can be **x86_64** and **aarch64**.

func (GetNotebookImagesImageOutput) Description

The description of the image.

func (GetNotebookImagesImageOutput) ElementType

func (GetNotebookImagesImageOutput) Id

The ID of the image.

func (GetNotebookImagesImageOutput) Name

Specifies the name of image.

func (GetNotebookImagesImageOutput) SwrPath

The path the image in HuaweiCloud SWR service (SoftWare Repository for Container).

func (GetNotebookImagesImageOutput) ToGetNotebookImagesImageOutput

func (o GetNotebookImagesImageOutput) ToGetNotebookImagesImageOutput() GetNotebookImagesImageOutput

func (GetNotebookImagesImageOutput) ToGetNotebookImagesImageOutputWithContext

func (o GetNotebookImagesImageOutput) ToGetNotebookImagesImageOutputWithContext(ctx context.Context) GetNotebookImagesImageOutput

func (GetNotebookImagesImageOutput) Type

Specifies the type of image. The options are: + `BUILD_IN`: The system built-in image. + `DEDICATED`: User-saved images.

type GetNotebookImagesOutputArgs

type GetNotebookImagesOutputArgs struct {
	// Specifies the CPU architecture of image. The value can be **x86_64** and **aarch64**.
	CpuArch pulumi.StringPtrInput `pulumi:"cpuArch"`
	// Specifies the name of image.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Specifies the name of the organization (namespace) which image belongs to.
	Organization pulumi.StringPtrInput `pulumi:"organization"`
	// Specifies the region in which to obtain images. If omitted, the provider-level region
	// will be used.
	Region pulumi.StringPtrInput `pulumi:"region"`
	// Specifies the type of image. The options are:
	// + `BUILD_IN`: The system built-in image.
	// + `DEDICATED`: User-saved images.
	Type pulumi.StringPtrInput `pulumi:"type"`
	// Specifies the workspace ID which image belongs to.
	WorkspaceId pulumi.StringPtrInput `pulumi:"workspaceId"`
}

A collection of arguments for invoking getNotebookImages.

func (GetNotebookImagesOutputArgs) ElementType

type GetNotebookImagesResult

type GetNotebookImagesResult struct {
	// The CPU architecture of the image. The value can be **x86_64** and **aarch64**.
	CpuArch *string `pulumi:"cpuArch"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Indicates a list of all images found. Structure is documented below.
	Images []GetNotebookImagesImage `pulumi:"images"`
	// The name of the image.
	Name         *string `pulumi:"name"`
	Organization *string `pulumi:"organization"`
	Region       string  `pulumi:"region"`
	// The type of the image.
	Type        *string `pulumi:"type"`
	WorkspaceId *string `pulumi:"workspaceId"`
}

A collection of values returned by getNotebookImages.

func GetNotebookImages

func GetNotebookImages(ctx *pulumi.Context, args *GetNotebookImagesArgs, opts ...pulumi.InvokeOption) (*GetNotebookImagesResult, error)

Use this data source to get a list of ModelArts notebook images.

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/ModelArts"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/ModelArts"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		test, err := ModelArts.GetNotebookImages(ctx, &modelarts.GetNotebookImagesArgs{
			Type: pulumi.StringRef("BUILD_IN"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("imageId", test.Images[0].Id)
		return nil
	})
}

```

type GetNotebookImagesResultOutput

type GetNotebookImagesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getNotebookImages.

func (GetNotebookImagesResultOutput) CpuArch

The CPU architecture of the image. The value can be **x86_64** and **aarch64**.

func (GetNotebookImagesResultOutput) ElementType

func (GetNotebookImagesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetNotebookImagesResultOutput) Images

Indicates a list of all images found. Structure is documented below.

func (GetNotebookImagesResultOutput) Name

The name of the image.

func (GetNotebookImagesResultOutput) Organization

func (GetNotebookImagesResultOutput) Region

func (GetNotebookImagesResultOutput) ToGetNotebookImagesResultOutput

func (o GetNotebookImagesResultOutput) ToGetNotebookImagesResultOutput() GetNotebookImagesResultOutput

func (GetNotebookImagesResultOutput) ToGetNotebookImagesResultOutputWithContext

func (o GetNotebookImagesResultOutput) ToGetNotebookImagesResultOutputWithContext(ctx context.Context) GetNotebookImagesResultOutput

func (GetNotebookImagesResultOutput) Type

The type of the image.

func (GetNotebookImagesResultOutput) WorkspaceId

type Notebook

type Notebook struct {
	pulumi.CustomResourceState

	// Specifies public IP addresses that are allowed for remote SSH access.
	// If the parameter is not specified, all IP addresses will be allowed for remote SSH access.
	AllowedAccessIps pulumi.StringArrayOutput `pulumi:"allowedAccessIps"`
	// Whether enabled the notebook instance to automatically stop.
	AutoStopEnabled pulumi.BoolOutput `pulumi:"autoStopEnabled"`
	// The notebook creation time.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// Specifies the description of notebook. It contains a maximum of 512 characters and
	// cannot contain special characters `&<>"'/`.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Specifies the flavor ID. The options are as follows:
	// - **modelarts.vm.cpu.2u**: General-purpose Intel CPU specifications, suitable for data exploration and algorithm
	//   discovery.
	// - **modelarts.vm.cpu.8u**: General computing-plus Intel CPU specifications, suitable for compute-intensive
	//   applications.
	// - **modelarts.bm.gpu.v100NV32**: One NVIDIA V100 GPU with 32GB of memory, suitable for deep learning algorithm
	//   training and debugging.
	// - **modelarts.bm.d910.xlarge.1**: One Ascend 910 NPU with 32GB of memory, suitable for deep learning code running
	//   and debugging.
	// - **modelarts.bm.d910.xlarge.2**: Two Ascend 910 NPU with 32GB of memory, suitable for deep learning code running
	//   and debugging.
	// - **modelarts.bm.d910.xlarge.8**: Eight Ascend 910 NPU with 32GB of memory, suitable for deep learning code running
	//   and debugging.
	FlavorId pulumi.StringOutput `pulumi:"flavorId"`
	// Specifies the image ID of notebook.
	ImageId pulumi.StringOutput `pulumi:"imageId"`
	// The image name.
	ImageName pulumi.StringOutput `pulumi:"imageName"`
	// The image path in swr.
	ImageSwrPath pulumi.StringOutput `pulumi:"imageSwrPath"`
	// The image type. Valid values include: `BUILD_IN`, `DEDICATED`.
	ImageType pulumi.StringOutput `pulumi:"imageType"`
	// Specifies the key pair name for remote SSH access.
	// Changing this parameter will create a new resource.
	KeyPair pulumi.StringPtrOutput `pulumi:"keyPair"`
	// An array of storages which mount to the notebook. Structure is documented below.
	MountStorages NotebookMountStorageTypeArrayOutput `pulumi:"mountStorages"`
	// Specifies the name of the notebook. The name consists of 1 to 64 characters,
	// starting with a letter. Only letters, digits and underscores (_) are allowed.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the ID of Dedicated resource pool which the notebook used.
	// Changing this parameter will create a new resource.
	PoolId pulumi.StringPtrOutput `pulumi:"poolId"`
	// The name of Dedicated resource pool which the notebook used.
	PoolName pulumi.StringOutput `pulumi:"poolName"`
	// The region in which to create the resource. If omitted, the
	// provider-level region will be used. Changing this parameter will create a new resource.
	Region pulumi.StringOutput `pulumi:"region"`
	// The uri for remote SSH access.
	// * `volume/mount_path` - The local mount path of volume.
	SshUri pulumi.StringOutput `pulumi:"sshUri"`
	// The status of mount.
	Status pulumi.StringOutput `pulumi:"status"`
	// The notebook update time.
	UpdatedAt pulumi.StringOutput `pulumi:"updatedAt"`
	// The web url of the notebook.
	Url pulumi.StringOutput `pulumi:"url"`
	// Specifies the volume information. Structure is documented below.
	Volume NotebookVolumeOutput `pulumi:"volume"`
	// Specifies the workspace ID which the notebook belongs to.
	// The default value is `0`. Changing this parameter will create a new resource.
	WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"`
}

Manages ModelArts notebook resource within HuaweiCloud.

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/ModelArts"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/ModelArts"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		notebookName := cfg.RequireObject("notebookName")
		keyPairName := cfg.RequireObject("keyPairName")
		ip := cfg.RequireObject("ip")
		_, err := ModelArts.NewNotebook(ctx, "notebook", &ModelArts.NotebookArgs{
			FlavorId: pulumi.String("modelarts.vm.cpu.2u"),
			ImageId:  pulumi.String("e1a07296-22a8-4f05-8bc8-e936c8e54090"),
			AllowedAccessIps: pulumi.StringArray{
				pulumi.Any(ip),
			},
			KeyPair: pulumi.Any(keyPairName),
			Volume: &modelarts.NotebookVolumeArgs{
				Type: pulumi.String("EFS"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

The notebook can be imported by `id`.

```sh

$ pulumi import huaweicloud:ModelArts/notebook:Notebook test b11b407c-e604-4e8d-8bc4-92398320b847

```

func GetNotebook

func GetNotebook(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NotebookState, opts ...pulumi.ResourceOption) (*Notebook, error)

GetNotebook gets an existing Notebook resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNotebook

func NewNotebook(ctx *pulumi.Context,
	name string, args *NotebookArgs, opts ...pulumi.ResourceOption) (*Notebook, error)

NewNotebook registers a new resource with the given unique name, arguments, and options.

func (*Notebook) ElementType

func (*Notebook) ElementType() reflect.Type

func (*Notebook) ToNotebookOutput

func (i *Notebook) ToNotebookOutput() NotebookOutput

func (*Notebook) ToNotebookOutputWithContext

func (i *Notebook) ToNotebookOutputWithContext(ctx context.Context) NotebookOutput

type NotebookArgs

type NotebookArgs struct {
	// Specifies public IP addresses that are allowed for remote SSH access.
	// If the parameter is not specified, all IP addresses will be allowed for remote SSH access.
	AllowedAccessIps pulumi.StringArrayInput
	// Specifies the description of notebook. It contains a maximum of 512 characters and
	// cannot contain special characters `&<>"'/`.
	Description pulumi.StringPtrInput
	// Specifies the flavor ID. The options are as follows:
	// - **modelarts.vm.cpu.2u**: General-purpose Intel CPU specifications, suitable for data exploration and algorithm
	//   discovery.
	// - **modelarts.vm.cpu.8u**: General computing-plus Intel CPU specifications, suitable for compute-intensive
	//   applications.
	// - **modelarts.bm.gpu.v100NV32**: One NVIDIA V100 GPU with 32GB of memory, suitable for deep learning algorithm
	//   training and debugging.
	// - **modelarts.bm.d910.xlarge.1**: One Ascend 910 NPU with 32GB of memory, suitable for deep learning code running
	//   and debugging.
	// - **modelarts.bm.d910.xlarge.2**: Two Ascend 910 NPU with 32GB of memory, suitable for deep learning code running
	//   and debugging.
	// - **modelarts.bm.d910.xlarge.8**: Eight Ascend 910 NPU with 32GB of memory, suitable for deep learning code running
	//   and debugging.
	FlavorId pulumi.StringInput
	// Specifies the image ID of notebook.
	ImageId pulumi.StringInput
	// Specifies the key pair name for remote SSH access.
	// Changing this parameter will create a new resource.
	KeyPair pulumi.StringPtrInput
	// Specifies the name of the notebook. The name consists of 1 to 64 characters,
	// starting with a letter. Only letters, digits and underscores (_) are allowed.
	Name pulumi.StringPtrInput
	// Specifies the ID of Dedicated resource pool which the notebook used.
	// Changing this parameter will create a new resource.
	PoolId pulumi.StringPtrInput
	// The region in which to create the resource. If omitted, the
	// provider-level region will be used. Changing this parameter will create a new resource.
	Region pulumi.StringPtrInput
	// Specifies the volume information. Structure is documented below.
	Volume NotebookVolumeInput
	// Specifies the workspace ID which the notebook belongs to.
	// The default value is `0`. Changing this parameter will create a new resource.
	WorkspaceId pulumi.StringPtrInput
}

The set of arguments for constructing a Notebook resource.

func (NotebookArgs) ElementType

func (NotebookArgs) ElementType() reflect.Type

type NotebookArray

type NotebookArray []NotebookInput

func (NotebookArray) ElementType

func (NotebookArray) ElementType() reflect.Type

func (NotebookArray) ToNotebookArrayOutput

func (i NotebookArray) ToNotebookArrayOutput() NotebookArrayOutput

func (NotebookArray) ToNotebookArrayOutputWithContext

func (i NotebookArray) ToNotebookArrayOutputWithContext(ctx context.Context) NotebookArrayOutput

type NotebookArrayInput

type NotebookArrayInput interface {
	pulumi.Input

	ToNotebookArrayOutput() NotebookArrayOutput
	ToNotebookArrayOutputWithContext(context.Context) NotebookArrayOutput
}

NotebookArrayInput is an input type that accepts NotebookArray and NotebookArrayOutput values. You can construct a concrete instance of `NotebookArrayInput` via:

NotebookArray{ NotebookArgs{...} }

type NotebookArrayOutput

type NotebookArrayOutput struct{ *pulumi.OutputState }

func (NotebookArrayOutput) ElementType

func (NotebookArrayOutput) ElementType() reflect.Type

func (NotebookArrayOutput) Index

func (NotebookArrayOutput) ToNotebookArrayOutput

func (o NotebookArrayOutput) ToNotebookArrayOutput() NotebookArrayOutput

func (NotebookArrayOutput) ToNotebookArrayOutputWithContext

func (o NotebookArrayOutput) ToNotebookArrayOutputWithContext(ctx context.Context) NotebookArrayOutput

type NotebookInput

type NotebookInput interface {
	pulumi.Input

	ToNotebookOutput() NotebookOutput
	ToNotebookOutputWithContext(ctx context.Context) NotebookOutput
}

type NotebookMap

type NotebookMap map[string]NotebookInput

func (NotebookMap) ElementType

func (NotebookMap) ElementType() reflect.Type

func (NotebookMap) ToNotebookMapOutput

func (i NotebookMap) ToNotebookMapOutput() NotebookMapOutput

func (NotebookMap) ToNotebookMapOutputWithContext

func (i NotebookMap) ToNotebookMapOutputWithContext(ctx context.Context) NotebookMapOutput

type NotebookMapInput

type NotebookMapInput interface {
	pulumi.Input

	ToNotebookMapOutput() NotebookMapOutput
	ToNotebookMapOutputWithContext(context.Context) NotebookMapOutput
}

NotebookMapInput is an input type that accepts NotebookMap and NotebookMapOutput values. You can construct a concrete instance of `NotebookMapInput` via:

NotebookMap{ "key": NotebookArgs{...} }

type NotebookMapOutput

type NotebookMapOutput struct{ *pulumi.OutputState }

func (NotebookMapOutput) ElementType

func (NotebookMapOutput) ElementType() reflect.Type

func (NotebookMapOutput) MapIndex

func (NotebookMapOutput) ToNotebookMapOutput

func (o NotebookMapOutput) ToNotebookMapOutput() NotebookMapOutput

func (NotebookMapOutput) ToNotebookMapOutputWithContext

func (o NotebookMapOutput) ToNotebookMapOutputWithContext(ctx context.Context) NotebookMapOutput

type NotebookMountStorage

type NotebookMountStorage struct {
	pulumi.CustomResourceState

	// Specifies the local mount directory.
	// Only the subdirectory of `/data/` can be mounted. The format is : `/data/dir1/`.
	// Changing this parameter will create a new resource.
	LocalMountDirectory pulumi.StringOutput `pulumi:"localMountDirectory"`
	// The mount ID.
	MountId pulumi.StringOutput `pulumi:"mountId"`
	// Specifies ID of notebook which the storage be mounted to.
	// Changing this parameter will create a new resource.
	NotebookId pulumi.StringOutput `pulumi:"notebookId"`
	// The region in which to create the resource. If omitted, the
	// provider-level region will be used. Changing this parameter will create a new resource.
	Region pulumi.StringOutput `pulumi:"region"`
	// mount status. Valid values include: `MOUNTING`, `MOUNT_FAILED`, `MOUNTED`, `UNMOUNTING`,
	// `UNMOUNT_FAILED`, `UNMOUNTED`.
	Status pulumi.StringOutput `pulumi:"status"`
	// Specifies the path of Parallel File System (PFS) or its folders in OBS.
	// The format is : `obs://obs-bucket/folder/`. Changing this parameter will create a new resource.
	StoragePath pulumi.StringOutput `pulumi:"storagePath"`
	// The type of storage system.  The value is `OBSFS`.
	Type pulumi.StringOutput `pulumi:"type"`
}

Manage storages mounted to the notebook resource within HuaweiCloud. A maximum of 10 storages can be mounted.

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/ModelArts"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		notebookId := cfg.RequireObject("notebookId")
		uriParallelObs := cfg.RequireObject("uriParallelObs")
		_, err := ModelArts.NewNotebookMountStorage(ctx, "test", &ModelArts.NotebookMountStorageArgs{
			NotebookId:          pulumi.Any(notebookId),
			StoragePath:         pulumi.Any(uriParallelObs),
			LocalMountDirectory: pulumi.String("/data/test/"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

The mount storage can be imported by `id`, It is composed of the ID of notebook and mount ID, separated by a slash.

For example,

```sh

$ pulumi import huaweicloud:ModelArts/notebookMountStorage:NotebookMountStorage test b11b407c-e604-4e8d-8bc4-92398320b847/4e206d3c-6831-4267-b93d-e236105cda38

```

func GetNotebookMountStorage

func GetNotebookMountStorage(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NotebookMountStorageState, opts ...pulumi.ResourceOption) (*NotebookMountStorage, error)

GetNotebookMountStorage gets an existing NotebookMountStorage resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNotebookMountStorage

func NewNotebookMountStorage(ctx *pulumi.Context,
	name string, args *NotebookMountStorageArgs, opts ...pulumi.ResourceOption) (*NotebookMountStorage, error)

NewNotebookMountStorage registers a new resource with the given unique name, arguments, and options.

func (*NotebookMountStorage) ElementType

func (*NotebookMountStorage) ElementType() reflect.Type

func (*NotebookMountStorage) ToNotebookMountStorageOutput

func (i *NotebookMountStorage) ToNotebookMountStorageOutput() NotebookMountStorageOutput

func (*NotebookMountStorage) ToNotebookMountStorageOutputWithContext

func (i *NotebookMountStorage) ToNotebookMountStorageOutputWithContext(ctx context.Context) NotebookMountStorageOutput

type NotebookMountStorageArgs

type NotebookMountStorageArgs struct {
	// Specifies the local mount directory.
	// Only the subdirectory of `/data/` can be mounted. The format is : `/data/dir1/`.
	// Changing this parameter will create a new resource.
	LocalMountDirectory pulumi.StringInput
	// Specifies ID of notebook which the storage be mounted to.
	// Changing this parameter will create a new resource.
	NotebookId pulumi.StringInput
	// The region in which to create the resource. If omitted, the
	// provider-level region will be used. Changing this parameter will create a new resource.
	Region pulumi.StringPtrInput
	// Specifies the path of Parallel File System (PFS) or its folders in OBS.
	// The format is : `obs://obs-bucket/folder/`. Changing this parameter will create a new resource.
	StoragePath pulumi.StringInput
}

The set of arguments for constructing a NotebookMountStorage resource.

func (NotebookMountStorageArgs) ElementType

func (NotebookMountStorageArgs) ElementType() reflect.Type

type NotebookMountStorageArray

type NotebookMountStorageArray []NotebookMountStorageInput

func (NotebookMountStorageArray) ElementType

func (NotebookMountStorageArray) ElementType() reflect.Type

func (NotebookMountStorageArray) ToNotebookMountStorageArrayOutput

func (i NotebookMountStorageArray) ToNotebookMountStorageArrayOutput() NotebookMountStorageArrayOutput

func (NotebookMountStorageArray) ToNotebookMountStorageArrayOutputWithContext

func (i NotebookMountStorageArray) ToNotebookMountStorageArrayOutputWithContext(ctx context.Context) NotebookMountStorageArrayOutput

type NotebookMountStorageArrayInput

type NotebookMountStorageArrayInput interface {
	pulumi.Input

	ToNotebookMountStorageArrayOutput() NotebookMountStorageArrayOutput
	ToNotebookMountStorageArrayOutputWithContext(context.Context) NotebookMountStorageArrayOutput
}

NotebookMountStorageArrayInput is an input type that accepts NotebookMountStorageArray and NotebookMountStorageArrayOutput values. You can construct a concrete instance of `NotebookMountStorageArrayInput` via:

NotebookMountStorageArray{ NotebookMountStorageArgs{...} }

type NotebookMountStorageArrayOutput

type NotebookMountStorageArrayOutput struct{ *pulumi.OutputState }

func (NotebookMountStorageArrayOutput) ElementType

func (NotebookMountStorageArrayOutput) Index

func (NotebookMountStorageArrayOutput) ToNotebookMountStorageArrayOutput

func (o NotebookMountStorageArrayOutput) ToNotebookMountStorageArrayOutput() NotebookMountStorageArrayOutput

func (NotebookMountStorageArrayOutput) ToNotebookMountStorageArrayOutputWithContext

func (o NotebookMountStorageArrayOutput) ToNotebookMountStorageArrayOutputWithContext(ctx context.Context) NotebookMountStorageArrayOutput

type NotebookMountStorageInput

type NotebookMountStorageInput interface {
	pulumi.Input

	ToNotebookMountStorageOutput() NotebookMountStorageOutput
	ToNotebookMountStorageOutputWithContext(ctx context.Context) NotebookMountStorageOutput
}

type NotebookMountStorageMap

type NotebookMountStorageMap map[string]NotebookMountStorageInput

func (NotebookMountStorageMap) ElementType

func (NotebookMountStorageMap) ElementType() reflect.Type

func (NotebookMountStorageMap) ToNotebookMountStorageMapOutput

func (i NotebookMountStorageMap) ToNotebookMountStorageMapOutput() NotebookMountStorageMapOutput

func (NotebookMountStorageMap) ToNotebookMountStorageMapOutputWithContext

func (i NotebookMountStorageMap) ToNotebookMountStorageMapOutputWithContext(ctx context.Context) NotebookMountStorageMapOutput

type NotebookMountStorageMapInput

type NotebookMountStorageMapInput interface {
	pulumi.Input

	ToNotebookMountStorageMapOutput() NotebookMountStorageMapOutput
	ToNotebookMountStorageMapOutputWithContext(context.Context) NotebookMountStorageMapOutput
}

NotebookMountStorageMapInput is an input type that accepts NotebookMountStorageMap and NotebookMountStorageMapOutput values. You can construct a concrete instance of `NotebookMountStorageMapInput` via:

NotebookMountStorageMap{ "key": NotebookMountStorageArgs{...} }

type NotebookMountStorageMapOutput

type NotebookMountStorageMapOutput struct{ *pulumi.OutputState }

func (NotebookMountStorageMapOutput) ElementType

func (NotebookMountStorageMapOutput) MapIndex

func (NotebookMountStorageMapOutput) ToNotebookMountStorageMapOutput

func (o NotebookMountStorageMapOutput) ToNotebookMountStorageMapOutput() NotebookMountStorageMapOutput

func (NotebookMountStorageMapOutput) ToNotebookMountStorageMapOutputWithContext

func (o NotebookMountStorageMapOutput) ToNotebookMountStorageMapOutputWithContext(ctx context.Context) NotebookMountStorageMapOutput

type NotebookMountStorageOutput

type NotebookMountStorageOutput struct{ *pulumi.OutputState }

func (NotebookMountStorageOutput) ElementType

func (NotebookMountStorageOutput) ElementType() reflect.Type

func (NotebookMountStorageOutput) LocalMountDirectory

func (o NotebookMountStorageOutput) LocalMountDirectory() pulumi.StringOutput

Specifies the local mount directory. Only the subdirectory of `/data/` can be mounted. The format is : `/data/dir1/`. Changing this parameter will create a new resource.

func (NotebookMountStorageOutput) MountId

The mount ID.

func (NotebookMountStorageOutput) NotebookId

Specifies ID of notebook which the storage be mounted to. Changing this parameter will create a new resource.

func (NotebookMountStorageOutput) Region

The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.

func (NotebookMountStorageOutput) Status

mount status. Valid values include: `MOUNTING`, `MOUNT_FAILED`, `MOUNTED`, `UNMOUNTING`, `UNMOUNT_FAILED`, `UNMOUNTED`.

func (NotebookMountStorageOutput) StoragePath

Specifies the path of Parallel File System (PFS) or its folders in OBS. The format is : `obs://obs-bucket/folder/`. Changing this parameter will create a new resource.

func (NotebookMountStorageOutput) ToNotebookMountStorageOutput

func (o NotebookMountStorageOutput) ToNotebookMountStorageOutput() NotebookMountStorageOutput

func (NotebookMountStorageOutput) ToNotebookMountStorageOutputWithContext

func (o NotebookMountStorageOutput) ToNotebookMountStorageOutputWithContext(ctx context.Context) NotebookMountStorageOutput

func (NotebookMountStorageOutput) Type

The type of storage system. The value is `OBSFS`.

type NotebookMountStorageState

type NotebookMountStorageState struct {
	// Specifies the local mount directory.
	// Only the subdirectory of `/data/` can be mounted. The format is : `/data/dir1/`.
	// Changing this parameter will create a new resource.
	LocalMountDirectory pulumi.StringPtrInput
	// The mount ID.
	MountId pulumi.StringPtrInput
	// Specifies ID of notebook which the storage be mounted to.
	// Changing this parameter will create a new resource.
	NotebookId pulumi.StringPtrInput
	// The region in which to create the resource. If omitted, the
	// provider-level region will be used. Changing this parameter will create a new resource.
	Region pulumi.StringPtrInput
	// mount status. Valid values include: `MOUNTING`, `MOUNT_FAILED`, `MOUNTED`, `UNMOUNTING`,
	// `UNMOUNT_FAILED`, `UNMOUNTED`.
	Status pulumi.StringPtrInput
	// Specifies the path of Parallel File System (PFS) or its folders in OBS.
	// The format is : `obs://obs-bucket/folder/`. Changing this parameter will create a new resource.
	StoragePath pulumi.StringPtrInput
	// The type of storage system.  The value is `OBSFS`.
	Type pulumi.StringPtrInput
}

func (NotebookMountStorageState) ElementType

func (NotebookMountStorageState) ElementType() reflect.Type

type NotebookMountStorageType

type NotebookMountStorageType struct {
	// The mount ID.
	Id *string `pulumi:"id"`
	// The local mount path.
	MountPath *string `pulumi:"mountPath"`
	// The path of storage which be mounted.
	Path *string `pulumi:"path"`
	// The status of mount.
	Status *string `pulumi:"status"`
	// Specifies the volume type. The options are as follows:
	// - *EFS*: use Scalable File Service, default 50GB is **free**.
	// - *EVS*: use Elastic Volume Service, default size is 5 GB.
	Type *string `pulumi:"type"`
}

type NotebookMountStorageTypeArgs

type NotebookMountStorageTypeArgs struct {
	// The mount ID.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// The local mount path.
	MountPath pulumi.StringPtrInput `pulumi:"mountPath"`
	// The path of storage which be mounted.
	Path pulumi.StringPtrInput `pulumi:"path"`
	// The status of mount.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// Specifies the volume type. The options are as follows:
	// - *EFS*: use Scalable File Service, default 50GB is **free**.
	// - *EVS*: use Elastic Volume Service, default size is 5 GB.
	Type pulumi.StringPtrInput `pulumi:"type"`
}

func (NotebookMountStorageTypeArgs) ElementType

func (NotebookMountStorageTypeArgs) ToNotebookMountStorageTypeOutput

func (i NotebookMountStorageTypeArgs) ToNotebookMountStorageTypeOutput() NotebookMountStorageTypeOutput

func (NotebookMountStorageTypeArgs) ToNotebookMountStorageTypeOutputWithContext

func (i NotebookMountStorageTypeArgs) ToNotebookMountStorageTypeOutputWithContext(ctx context.Context) NotebookMountStorageTypeOutput

type NotebookMountStorageTypeArray

type NotebookMountStorageTypeArray []NotebookMountStorageTypeInput

func (NotebookMountStorageTypeArray) ElementType

func (NotebookMountStorageTypeArray) ToNotebookMountStorageTypeArrayOutput

func (i NotebookMountStorageTypeArray) ToNotebookMountStorageTypeArrayOutput() NotebookMountStorageTypeArrayOutput

func (NotebookMountStorageTypeArray) ToNotebookMountStorageTypeArrayOutputWithContext

func (i NotebookMountStorageTypeArray) ToNotebookMountStorageTypeArrayOutputWithContext(ctx context.Context) NotebookMountStorageTypeArrayOutput

type NotebookMountStorageTypeArrayInput

type NotebookMountStorageTypeArrayInput interface {
	pulumi.Input

	ToNotebookMountStorageTypeArrayOutput() NotebookMountStorageTypeArrayOutput
	ToNotebookMountStorageTypeArrayOutputWithContext(context.Context) NotebookMountStorageTypeArrayOutput
}

NotebookMountStorageTypeArrayInput is an input type that accepts NotebookMountStorageTypeArray and NotebookMountStorageTypeArrayOutput values. You can construct a concrete instance of `NotebookMountStorageTypeArrayInput` via:

NotebookMountStorageTypeArray{ NotebookMountStorageTypeArgs{...} }

type NotebookMountStorageTypeArrayOutput

type NotebookMountStorageTypeArrayOutput struct{ *pulumi.OutputState }

func (NotebookMountStorageTypeArrayOutput) ElementType

func (NotebookMountStorageTypeArrayOutput) Index

func (NotebookMountStorageTypeArrayOutput) ToNotebookMountStorageTypeArrayOutput

func (o NotebookMountStorageTypeArrayOutput) ToNotebookMountStorageTypeArrayOutput() NotebookMountStorageTypeArrayOutput

func (NotebookMountStorageTypeArrayOutput) ToNotebookMountStorageTypeArrayOutputWithContext

func (o NotebookMountStorageTypeArrayOutput) ToNotebookMountStorageTypeArrayOutputWithContext(ctx context.Context) NotebookMountStorageTypeArrayOutput

type NotebookMountStorageTypeInput

type NotebookMountStorageTypeInput interface {
	pulumi.Input

	ToNotebookMountStorageTypeOutput() NotebookMountStorageTypeOutput
	ToNotebookMountStorageTypeOutputWithContext(context.Context) NotebookMountStorageTypeOutput
}

NotebookMountStorageTypeInput is an input type that accepts NotebookMountStorageTypeArgs and NotebookMountStorageTypeOutput values. You can construct a concrete instance of `NotebookMountStorageTypeInput` via:

NotebookMountStorageTypeArgs{...}

type NotebookMountStorageTypeOutput

type NotebookMountStorageTypeOutput struct{ *pulumi.OutputState }

func (NotebookMountStorageTypeOutput) ElementType

func (NotebookMountStorageTypeOutput) Id

The mount ID.

func (NotebookMountStorageTypeOutput) MountPath

The local mount path.

func (NotebookMountStorageTypeOutput) Path

The path of storage which be mounted.

func (NotebookMountStorageTypeOutput) Status

The status of mount.

func (NotebookMountStorageTypeOutput) ToNotebookMountStorageTypeOutput

func (o NotebookMountStorageTypeOutput) ToNotebookMountStorageTypeOutput() NotebookMountStorageTypeOutput

func (NotebookMountStorageTypeOutput) ToNotebookMountStorageTypeOutputWithContext

func (o NotebookMountStorageTypeOutput) ToNotebookMountStorageTypeOutputWithContext(ctx context.Context) NotebookMountStorageTypeOutput

func (NotebookMountStorageTypeOutput) Type

Specifies the volume type. The options are as follows: - *EFS*: use Scalable File Service, default 50GB is **free**. - *EVS*: use Elastic Volume Service, default size is 5 GB.

type NotebookOutput

type NotebookOutput struct{ *pulumi.OutputState }

func (NotebookOutput) AllowedAccessIps

func (o NotebookOutput) AllowedAccessIps() pulumi.StringArrayOutput

Specifies public IP addresses that are allowed for remote SSH access. If the parameter is not specified, all IP addresses will be allowed for remote SSH access.

func (NotebookOutput) AutoStopEnabled

func (o NotebookOutput) AutoStopEnabled() pulumi.BoolOutput

Whether enabled the notebook instance to automatically stop.

func (NotebookOutput) CreatedAt

func (o NotebookOutput) CreatedAt() pulumi.StringOutput

The notebook creation time.

func (NotebookOutput) Description

func (o NotebookOutput) Description() pulumi.StringPtrOutput

Specifies the description of notebook. It contains a maximum of 512 characters and cannot contain special characters `&<>"'/`.

func (NotebookOutput) ElementType

func (NotebookOutput) ElementType() reflect.Type

func (NotebookOutput) FlavorId

func (o NotebookOutput) FlavorId() pulumi.StringOutput

Specifies the flavor ID. The options are as follows:

  • **modelarts.vm.cpu.2u**: General-purpose Intel CPU specifications, suitable for data exploration and algorithm discovery.
  • **modelarts.vm.cpu.8u**: General computing-plus Intel CPU specifications, suitable for compute-intensive applications.
  • **modelarts.bm.gpu.v100NV32**: One NVIDIA V100 GPU with 32GB of memory, suitable for deep learning algorithm training and debugging.
  • **modelarts.bm.d910.xlarge.1**: One Ascend 910 NPU with 32GB of memory, suitable for deep learning code running and debugging.
  • **modelarts.bm.d910.xlarge.2**: Two Ascend 910 NPU with 32GB of memory, suitable for deep learning code running and debugging.
  • **modelarts.bm.d910.xlarge.8**: Eight Ascend 910 NPU with 32GB of memory, suitable for deep learning code running and debugging.

func (NotebookOutput) ImageId

func (o NotebookOutput) ImageId() pulumi.StringOutput

Specifies the image ID of notebook.

func (NotebookOutput) ImageName

func (o NotebookOutput) ImageName() pulumi.StringOutput

The image name.

func (NotebookOutput) ImageSwrPath

func (o NotebookOutput) ImageSwrPath() pulumi.StringOutput

The image path in swr.

func (NotebookOutput) ImageType

func (o NotebookOutput) ImageType() pulumi.StringOutput

The image type. Valid values include: `BUILD_IN`, `DEDICATED`.

func (NotebookOutput) KeyPair

Specifies the key pair name for remote SSH access. Changing this parameter will create a new resource.

func (NotebookOutput) MountStorages

An array of storages which mount to the notebook. Structure is documented below.

func (NotebookOutput) Name

Specifies the name of the notebook. The name consists of 1 to 64 characters, starting with a letter. Only letters, digits and underscores (_) are allowed.

func (NotebookOutput) PoolId

Specifies the ID of Dedicated resource pool which the notebook used. Changing this parameter will create a new resource.

func (NotebookOutput) PoolName

func (o NotebookOutput) PoolName() pulumi.StringOutput

The name of Dedicated resource pool which the notebook used.

func (NotebookOutput) Region

func (o NotebookOutput) Region() pulumi.StringOutput

The region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.

func (NotebookOutput) SshUri

func (o NotebookOutput) SshUri() pulumi.StringOutput

The uri for remote SSH access. * `volume/mount_path` - The local mount path of volume.

func (NotebookOutput) Status

func (o NotebookOutput) Status() pulumi.StringOutput

The status of mount.

func (NotebookOutput) ToNotebookOutput

func (o NotebookOutput) ToNotebookOutput() NotebookOutput

func (NotebookOutput) ToNotebookOutputWithContext

func (o NotebookOutput) ToNotebookOutputWithContext(ctx context.Context) NotebookOutput

func (NotebookOutput) UpdatedAt

func (o NotebookOutput) UpdatedAt() pulumi.StringOutput

The notebook update time.

func (NotebookOutput) Url

The web url of the notebook.

func (NotebookOutput) Volume

Specifies the volume information. Structure is documented below.

func (NotebookOutput) WorkspaceId

func (o NotebookOutput) WorkspaceId() pulumi.StringOutput

Specifies the workspace ID which the notebook belongs to. The default value is `0`. Changing this parameter will create a new resource.

type NotebookState

type NotebookState struct {
	// Specifies public IP addresses that are allowed for remote SSH access.
	// If the parameter is not specified, all IP addresses will be allowed for remote SSH access.
	AllowedAccessIps pulumi.StringArrayInput
	// Whether enabled the notebook instance to automatically stop.
	AutoStopEnabled pulumi.BoolPtrInput
	// The notebook creation time.
	CreatedAt pulumi.StringPtrInput
	// Specifies the description of notebook. It contains a maximum of 512 characters and
	// cannot contain special characters `&<>"'/`.
	Description pulumi.StringPtrInput
	// Specifies the flavor ID. The options are as follows:
	// - **modelarts.vm.cpu.2u**: General-purpose Intel CPU specifications, suitable for data exploration and algorithm
	//   discovery.
	// - **modelarts.vm.cpu.8u**: General computing-plus Intel CPU specifications, suitable for compute-intensive
	//   applications.
	// - **modelarts.bm.gpu.v100NV32**: One NVIDIA V100 GPU with 32GB of memory, suitable for deep learning algorithm
	//   training and debugging.
	// - **modelarts.bm.d910.xlarge.1**: One Ascend 910 NPU with 32GB of memory, suitable for deep learning code running
	//   and debugging.
	// - **modelarts.bm.d910.xlarge.2**: Two Ascend 910 NPU with 32GB of memory, suitable for deep learning code running
	//   and debugging.
	// - **modelarts.bm.d910.xlarge.8**: Eight Ascend 910 NPU with 32GB of memory, suitable for deep learning code running
	//   and debugging.
	FlavorId pulumi.StringPtrInput
	// Specifies the image ID of notebook.
	ImageId pulumi.StringPtrInput
	// The image name.
	ImageName pulumi.StringPtrInput
	// The image path in swr.
	ImageSwrPath pulumi.StringPtrInput
	// The image type. Valid values include: `BUILD_IN`, `DEDICATED`.
	ImageType pulumi.StringPtrInput
	// Specifies the key pair name for remote SSH access.
	// Changing this parameter will create a new resource.
	KeyPair pulumi.StringPtrInput
	// An array of storages which mount to the notebook. Structure is documented below.
	MountStorages NotebookMountStorageTypeArrayInput
	// Specifies the name of the notebook. The name consists of 1 to 64 characters,
	// starting with a letter. Only letters, digits and underscores (_) are allowed.
	Name pulumi.StringPtrInput
	// Specifies the ID of Dedicated resource pool which the notebook used.
	// Changing this parameter will create a new resource.
	PoolId pulumi.StringPtrInput
	// The name of Dedicated resource pool which the notebook used.
	PoolName pulumi.StringPtrInput
	// The region in which to create the resource. If omitted, the
	// provider-level region will be used. Changing this parameter will create a new resource.
	Region pulumi.StringPtrInput
	// The uri for remote SSH access.
	// * `volume/mount_path` - The local mount path of volume.
	SshUri pulumi.StringPtrInput
	// The status of mount.
	Status pulumi.StringPtrInput
	// The notebook update time.
	UpdatedAt pulumi.StringPtrInput
	// The web url of the notebook.
	Url pulumi.StringPtrInput
	// Specifies the volume information. Structure is documented below.
	Volume NotebookVolumePtrInput
	// Specifies the workspace ID which the notebook belongs to.
	// The default value is `0`. Changing this parameter will create a new resource.
	WorkspaceId pulumi.StringPtrInput
}

func (NotebookState) ElementType

func (NotebookState) ElementType() reflect.Type

type NotebookVolume

type NotebookVolume struct {
	// The local mount path.
	MountPath *string `pulumi:"mountPath"`
	// Specifies the volume ownership. The options are as follows:
	// - *MANAGED*: shared storage disk of the ModelArts service.
	// - *DEDICATED*: dedicated storage disk, only supported when the category is `EFS`.
	Ownership *string `pulumi:"ownership"`
	// Specifies the volume size. Its value range is from 5 GB to 4096 GB.
	Size *int `pulumi:"size"`
	// Specifies the volume type. The options are as follows:
	// - *EFS*: use Scalable File Service, default 50GB is **free**.
	// - *EVS*: use Elastic Volume Service, default size is 5 GB.
	Type string `pulumi:"type"`
	// Specifies the uri of dedicated storage disk, which is mandatory when the `type`
	// is `EFS` and the `ownership` is `DEDICATED`. Example: `192.168.0.1:/user-9sfdsdgdfgh5ea4d56871e75d6966aa274/mount/`.
	// Changing this parameter will create a new resource.
	Uri *string `pulumi:"uri"`
}

type NotebookVolumeArgs

type NotebookVolumeArgs struct {
	// The local mount path.
	MountPath pulumi.StringPtrInput `pulumi:"mountPath"`
	// Specifies the volume ownership. The options are as follows:
	// - *MANAGED*: shared storage disk of the ModelArts service.
	// - *DEDICATED*: dedicated storage disk, only supported when the category is `EFS`.
	Ownership pulumi.StringPtrInput `pulumi:"ownership"`
	// Specifies the volume size. Its value range is from 5 GB to 4096 GB.
	Size pulumi.IntPtrInput `pulumi:"size"`
	// Specifies the volume type. The options are as follows:
	// - *EFS*: use Scalable File Service, default 50GB is **free**.
	// - *EVS*: use Elastic Volume Service, default size is 5 GB.
	Type pulumi.StringInput `pulumi:"type"`
	// Specifies the uri of dedicated storage disk, which is mandatory when the `type`
	// is `EFS` and the `ownership` is `DEDICATED`. Example: `192.168.0.1:/user-9sfdsdgdfgh5ea4d56871e75d6966aa274/mount/`.
	// Changing this parameter will create a new resource.
	Uri pulumi.StringPtrInput `pulumi:"uri"`
}

func (NotebookVolumeArgs) ElementType

func (NotebookVolumeArgs) ElementType() reflect.Type

func (NotebookVolumeArgs) ToNotebookVolumeOutput

func (i NotebookVolumeArgs) ToNotebookVolumeOutput() NotebookVolumeOutput

func (NotebookVolumeArgs) ToNotebookVolumeOutputWithContext

func (i NotebookVolumeArgs) ToNotebookVolumeOutputWithContext(ctx context.Context) NotebookVolumeOutput

func (NotebookVolumeArgs) ToNotebookVolumePtrOutput

func (i NotebookVolumeArgs) ToNotebookVolumePtrOutput() NotebookVolumePtrOutput

func (NotebookVolumeArgs) ToNotebookVolumePtrOutputWithContext

func (i NotebookVolumeArgs) ToNotebookVolumePtrOutputWithContext(ctx context.Context) NotebookVolumePtrOutput

type NotebookVolumeInput

type NotebookVolumeInput interface {
	pulumi.Input

	ToNotebookVolumeOutput() NotebookVolumeOutput
	ToNotebookVolumeOutputWithContext(context.Context) NotebookVolumeOutput
}

NotebookVolumeInput is an input type that accepts NotebookVolumeArgs and NotebookVolumeOutput values. You can construct a concrete instance of `NotebookVolumeInput` via:

NotebookVolumeArgs{...}

type NotebookVolumeOutput

type NotebookVolumeOutput struct{ *pulumi.OutputState }

func (NotebookVolumeOutput) ElementType

func (NotebookVolumeOutput) ElementType() reflect.Type

func (NotebookVolumeOutput) MountPath

The local mount path.

func (NotebookVolumeOutput) Ownership

Specifies the volume ownership. The options are as follows: - *MANAGED*: shared storage disk of the ModelArts service. - *DEDICATED*: dedicated storage disk, only supported when the category is `EFS`.

func (NotebookVolumeOutput) Size

Specifies the volume size. Its value range is from 5 GB to 4096 GB.

func (NotebookVolumeOutput) ToNotebookVolumeOutput

func (o NotebookVolumeOutput) ToNotebookVolumeOutput() NotebookVolumeOutput

func (NotebookVolumeOutput) ToNotebookVolumeOutputWithContext

func (o NotebookVolumeOutput) ToNotebookVolumeOutputWithContext(ctx context.Context) NotebookVolumeOutput

func (NotebookVolumeOutput) ToNotebookVolumePtrOutput

func (o NotebookVolumeOutput) ToNotebookVolumePtrOutput() NotebookVolumePtrOutput

func (NotebookVolumeOutput) ToNotebookVolumePtrOutputWithContext

func (o NotebookVolumeOutput) ToNotebookVolumePtrOutputWithContext(ctx context.Context) NotebookVolumePtrOutput

func (NotebookVolumeOutput) Type

Specifies the volume type. The options are as follows: - *EFS*: use Scalable File Service, default 50GB is **free**. - *EVS*: use Elastic Volume Service, default size is 5 GB.

func (NotebookVolumeOutput) Uri

Specifies the uri of dedicated storage disk, which is mandatory when the `type` is `EFS` and the `ownership` is `DEDICATED`. Example: `192.168.0.1:/user-9sfdsdgdfgh5ea4d56871e75d6966aa274/mount/`. Changing this parameter will create a new resource.

type NotebookVolumePtrInput

type NotebookVolumePtrInput interface {
	pulumi.Input

	ToNotebookVolumePtrOutput() NotebookVolumePtrOutput
	ToNotebookVolumePtrOutputWithContext(context.Context) NotebookVolumePtrOutput
}

NotebookVolumePtrInput is an input type that accepts NotebookVolumeArgs, NotebookVolumePtr and NotebookVolumePtrOutput values. You can construct a concrete instance of `NotebookVolumePtrInput` via:

        NotebookVolumeArgs{...}

or:

        nil

type NotebookVolumePtrOutput

type NotebookVolumePtrOutput struct{ *pulumi.OutputState }

func (NotebookVolumePtrOutput) Elem

func (NotebookVolumePtrOutput) ElementType

func (NotebookVolumePtrOutput) ElementType() reflect.Type

func (NotebookVolumePtrOutput) MountPath

The local mount path.

func (NotebookVolumePtrOutput) Ownership

Specifies the volume ownership. The options are as follows: - *MANAGED*: shared storage disk of the ModelArts service. - *DEDICATED*: dedicated storage disk, only supported when the category is `EFS`.

func (NotebookVolumePtrOutput) Size

Specifies the volume size. Its value range is from 5 GB to 4096 GB.

func (NotebookVolumePtrOutput) ToNotebookVolumePtrOutput

func (o NotebookVolumePtrOutput) ToNotebookVolumePtrOutput() NotebookVolumePtrOutput

func (NotebookVolumePtrOutput) ToNotebookVolumePtrOutputWithContext

func (o NotebookVolumePtrOutput) ToNotebookVolumePtrOutputWithContext(ctx context.Context) NotebookVolumePtrOutput

func (NotebookVolumePtrOutput) Type

Specifies the volume type. The options are as follows: - *EFS*: use Scalable File Service, default 50GB is **free**. - *EVS*: use Elastic Volume Service, default size is 5 GB.

func (NotebookVolumePtrOutput) Uri

Specifies the uri of dedicated storage disk, which is mandatory when the `type` is `EFS` and the `ownership` is `DEDICATED`. Example: `192.168.0.1:/user-9sfdsdgdfgh5ea4d56871e75d6966aa274/mount/`. Changing this parameter will create a new resource.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL