Documentation ¶
Index ¶
- func PkgVersion() (semver.Version, error)
- type Dataset
- type DatasetArgs
- type DatasetArray
- type DatasetArrayInput
- type DatasetArrayOutput
- type DatasetDataSource
- type DatasetDataSourceArgs
- func (DatasetDataSourceArgs) ElementType() reflect.Type
- func (i DatasetDataSourceArgs) ToDatasetDataSourceOutput() DatasetDataSourceOutput
- func (i DatasetDataSourceArgs) ToDatasetDataSourceOutputWithContext(ctx context.Context) DatasetDataSourceOutput
- func (i DatasetDataSourceArgs) ToDatasetDataSourcePtrOutput() DatasetDataSourcePtrOutput
- func (i DatasetDataSourceArgs) ToDatasetDataSourcePtrOutputWithContext(ctx context.Context) DatasetDataSourcePtrOutput
- type DatasetDataSourceInput
- type DatasetDataSourceOutput
- func (o DatasetDataSourceOutput) ClusterId() pulumi.StringPtrOutput
- func (o DatasetDataSourceOutput) DataType() pulumi.IntPtrOutput
- func (o DatasetDataSourceOutput) DatabaseName() pulumi.StringPtrOutput
- func (DatasetDataSourceOutput) ElementType() reflect.Type
- func (o DatasetDataSourceOutput) Password() pulumi.StringPtrOutput
- func (o DatasetDataSourceOutput) Path() pulumi.StringPtrOutput
- func (o DatasetDataSourceOutput) QueueName() pulumi.StringPtrOutput
- func (o DatasetDataSourceOutput) TableName() pulumi.StringPtrOutput
- func (o DatasetDataSourceOutput) ToDatasetDataSourceOutput() DatasetDataSourceOutput
- func (o DatasetDataSourceOutput) ToDatasetDataSourceOutputWithContext(ctx context.Context) DatasetDataSourceOutput
- func (o DatasetDataSourceOutput) ToDatasetDataSourcePtrOutput() DatasetDataSourcePtrOutput
- func (o DatasetDataSourceOutput) ToDatasetDataSourcePtrOutputWithContext(ctx context.Context) DatasetDataSourcePtrOutput
- func (o DatasetDataSourceOutput) UserName() pulumi.StringPtrOutput
- func (o DatasetDataSourceOutput) WithColumnHeader() pulumi.BoolPtrOutput
- type DatasetDataSourcePtrInput
- type DatasetDataSourcePtrOutput
- func (o DatasetDataSourcePtrOutput) ClusterId() pulumi.StringPtrOutput
- func (o DatasetDataSourcePtrOutput) DataType() pulumi.IntPtrOutput
- func (o DatasetDataSourcePtrOutput) DatabaseName() pulumi.StringPtrOutput
- func (o DatasetDataSourcePtrOutput) Elem() DatasetDataSourceOutput
- func (DatasetDataSourcePtrOutput) ElementType() reflect.Type
- func (o DatasetDataSourcePtrOutput) Password() pulumi.StringPtrOutput
- func (o DatasetDataSourcePtrOutput) Path() pulumi.StringPtrOutput
- func (o DatasetDataSourcePtrOutput) QueueName() pulumi.StringPtrOutput
- func (o DatasetDataSourcePtrOutput) TableName() pulumi.StringPtrOutput
- func (o DatasetDataSourcePtrOutput) ToDatasetDataSourcePtrOutput() DatasetDataSourcePtrOutput
- func (o DatasetDataSourcePtrOutput) ToDatasetDataSourcePtrOutputWithContext(ctx context.Context) DatasetDataSourcePtrOutput
- func (o DatasetDataSourcePtrOutput) UserName() pulumi.StringPtrOutput
- func (o DatasetDataSourcePtrOutput) WithColumnHeader() pulumi.BoolPtrOutput
- type DatasetInput
- type DatasetLabel
- type DatasetLabelArgs
- type DatasetLabelArray
- type DatasetLabelArrayInput
- type DatasetLabelArrayOutput
- func (DatasetLabelArrayOutput) ElementType() reflect.Type
- func (o DatasetLabelArrayOutput) Index(i pulumi.IntInput) DatasetLabelOutput
- func (o DatasetLabelArrayOutput) ToDatasetLabelArrayOutput() DatasetLabelArrayOutput
- func (o DatasetLabelArrayOutput) ToDatasetLabelArrayOutputWithContext(ctx context.Context) DatasetLabelArrayOutput
- type DatasetLabelFormat
- type DatasetLabelFormatArgs
- func (DatasetLabelFormatArgs) ElementType() reflect.Type
- func (i DatasetLabelFormatArgs) ToDatasetLabelFormatOutput() DatasetLabelFormatOutput
- func (i DatasetLabelFormatArgs) ToDatasetLabelFormatOutputWithContext(ctx context.Context) DatasetLabelFormatOutput
- func (i DatasetLabelFormatArgs) ToDatasetLabelFormatPtrOutput() DatasetLabelFormatPtrOutput
- func (i DatasetLabelFormatArgs) ToDatasetLabelFormatPtrOutputWithContext(ctx context.Context) DatasetLabelFormatPtrOutput
- type DatasetLabelFormatInput
- type DatasetLabelFormatOutput
- func (DatasetLabelFormatOutput) ElementType() reflect.Type
- func (o DatasetLabelFormatOutput) LabelSeparator() pulumi.StringPtrOutput
- func (o DatasetLabelFormatOutput) TextLabelSeparator() pulumi.StringPtrOutput
- func (o DatasetLabelFormatOutput) ToDatasetLabelFormatOutput() DatasetLabelFormatOutput
- func (o DatasetLabelFormatOutput) ToDatasetLabelFormatOutputWithContext(ctx context.Context) DatasetLabelFormatOutput
- func (o DatasetLabelFormatOutput) ToDatasetLabelFormatPtrOutput() DatasetLabelFormatPtrOutput
- func (o DatasetLabelFormatOutput) ToDatasetLabelFormatPtrOutputWithContext(ctx context.Context) DatasetLabelFormatPtrOutput
- func (o DatasetLabelFormatOutput) Type() pulumi.StringPtrOutput
- type DatasetLabelFormatPtrInput
- type DatasetLabelFormatPtrOutput
- func (o DatasetLabelFormatPtrOutput) Elem() DatasetLabelFormatOutput
- func (DatasetLabelFormatPtrOutput) ElementType() reflect.Type
- func (o DatasetLabelFormatPtrOutput) LabelSeparator() pulumi.StringPtrOutput
- func (o DatasetLabelFormatPtrOutput) TextLabelSeparator() pulumi.StringPtrOutput
- func (o DatasetLabelFormatPtrOutput) ToDatasetLabelFormatPtrOutput() DatasetLabelFormatPtrOutput
- func (o DatasetLabelFormatPtrOutput) ToDatasetLabelFormatPtrOutputWithContext(ctx context.Context) DatasetLabelFormatPtrOutput
- func (o DatasetLabelFormatPtrOutput) Type() pulumi.StringPtrOutput
- type DatasetLabelInput
- type DatasetLabelOutput
- func (DatasetLabelOutput) ElementType() reflect.Type
- func (o DatasetLabelOutput) Name() pulumi.StringOutput
- func (o DatasetLabelOutput) PropertyColor() pulumi.StringPtrOutput
- func (o DatasetLabelOutput) PropertyShape() pulumi.StringPtrOutput
- func (o DatasetLabelOutput) PropertyShortcut() pulumi.StringPtrOutput
- func (o DatasetLabelOutput) ToDatasetLabelOutput() DatasetLabelOutput
- func (o DatasetLabelOutput) ToDatasetLabelOutputWithContext(ctx context.Context) DatasetLabelOutput
- type DatasetMap
- type DatasetMapInput
- type DatasetMapOutput
- type DatasetOutput
- func (o DatasetOutput) CreatedAt() pulumi.StringOutput
- func (o DatasetOutput) DataFormat() pulumi.StringOutput
- func (o DatasetOutput) DataSource() DatasetDataSourceOutput
- func (o DatasetOutput) Description() pulumi.StringPtrOutput
- func (DatasetOutput) ElementType() reflect.Type
- func (o DatasetOutput) ImportLabeledEnabled() pulumi.BoolPtrOutput
- func (o DatasetOutput) LabelFormat() DatasetLabelFormatPtrOutput
- func (o DatasetOutput) Labels() DatasetLabelArrayOutput
- func (o DatasetOutput) Name() pulumi.StringOutput
- func (o DatasetOutput) OutputPath() pulumi.StringOutput
- func (o DatasetOutput) Region() pulumi.StringOutput
- func (o DatasetOutput) Schemas() DatasetSchemaArrayOutput
- func (o DatasetOutput) Status() pulumi.IntOutput
- func (o DatasetOutput) ToDatasetOutput() DatasetOutput
- func (o DatasetOutput) ToDatasetOutputWithContext(ctx context.Context) DatasetOutput
- func (o DatasetOutput) Type() pulumi.IntOutput
- type DatasetSchema
- type DatasetSchemaArgs
- type DatasetSchemaArray
- type DatasetSchemaArrayInput
- type DatasetSchemaArrayOutput
- func (DatasetSchemaArrayOutput) ElementType() reflect.Type
- func (o DatasetSchemaArrayOutput) Index(i pulumi.IntInput) DatasetSchemaOutput
- func (o DatasetSchemaArrayOutput) ToDatasetSchemaArrayOutput() DatasetSchemaArrayOutput
- func (o DatasetSchemaArrayOutput) ToDatasetSchemaArrayOutputWithContext(ctx context.Context) DatasetSchemaArrayOutput
- type DatasetSchemaInput
- type DatasetSchemaOutput
- func (DatasetSchemaOutput) ElementType() reflect.Type
- func (o DatasetSchemaOutput) Name() pulumi.StringOutput
- func (o DatasetSchemaOutput) ToDatasetSchemaOutput() DatasetSchemaOutput
- func (o DatasetSchemaOutput) ToDatasetSchemaOutputWithContext(ctx context.Context) DatasetSchemaOutput
- func (o DatasetSchemaOutput) Type() pulumi.StringOutput
- type DatasetState
- type DatasetVersion
- type DatasetVersionArgs
- type DatasetVersionArray
- type DatasetVersionArrayInput
- type DatasetVersionArrayOutput
- func (DatasetVersionArrayOutput) ElementType() reflect.Type
- func (o DatasetVersionArrayOutput) Index(i pulumi.IntInput) DatasetVersionOutput
- func (o DatasetVersionArrayOutput) ToDatasetVersionArrayOutput() DatasetVersionArrayOutput
- func (o DatasetVersionArrayOutput) ToDatasetVersionArrayOutputWithContext(ctx context.Context) DatasetVersionArrayOutput
- type DatasetVersionInput
- type DatasetVersionMap
- type DatasetVersionMapInput
- type DatasetVersionMapOutput
- func (DatasetVersionMapOutput) ElementType() reflect.Type
- func (o DatasetVersionMapOutput) MapIndex(k pulumi.StringInput) DatasetVersionOutput
- func (o DatasetVersionMapOutput) ToDatasetVersionMapOutput() DatasetVersionMapOutput
- func (o DatasetVersionMapOutput) ToDatasetVersionMapOutputWithContext(ctx context.Context) DatasetVersionMapOutput
- type DatasetVersionOutput
- func (o DatasetVersionOutput) CreatedAt() pulumi.StringOutput
- func (o DatasetVersionOutput) DatasetId() pulumi.StringOutput
- func (o DatasetVersionOutput) Description() pulumi.StringPtrOutput
- func (DatasetVersionOutput) ElementType() reflect.Type
- func (o DatasetVersionOutput) Files() pulumi.IntOutput
- func (o DatasetVersionOutput) HardExample() pulumi.BoolPtrOutput
- func (o DatasetVersionOutput) IsCurrent() pulumi.BoolOutput
- func (o DatasetVersionOutput) LabelingType() pulumi.StringOutput
- func (o DatasetVersionOutput) Name() pulumi.StringOutput
- func (o DatasetVersionOutput) Region() pulumi.StringOutput
- func (o DatasetVersionOutput) SplitRatio() pulumi.StringPtrOutput
- func (o DatasetVersionOutput) Status() pulumi.IntOutput
- func (o DatasetVersionOutput) StoragePath() pulumi.StringOutput
- func (o DatasetVersionOutput) ToDatasetVersionOutput() DatasetVersionOutput
- func (o DatasetVersionOutput) ToDatasetVersionOutputWithContext(ctx context.Context) DatasetVersionOutput
- func (o DatasetVersionOutput) UpdatedAt() pulumi.StringOutput
- func (o DatasetVersionOutput) Verification() pulumi.BoolOutput
- func (o DatasetVersionOutput) VersionId() pulumi.StringOutput
- type DatasetVersionState
- type GetDataset_versionsArgs
- type GetDataset_versionsOutputArgs
- type GetDataset_versionsResult
- type GetDataset_versionsResultOutput
- func (o GetDataset_versionsResultOutput) DatasetId() pulumi.StringOutput
- func (GetDataset_versionsResultOutput) ElementType() reflect.Type
- func (o GetDataset_versionsResultOutput) Id() pulumi.StringOutput
- func (o GetDataset_versionsResultOutput) Name() pulumi.StringPtrOutput
- func (o GetDataset_versionsResultOutput) Region() pulumi.StringOutput
- func (o GetDataset_versionsResultOutput) SplitRatio() pulumi.StringPtrOutput
- func (o GetDataset_versionsResultOutput) ToGetDataset_versionsResultOutput() GetDataset_versionsResultOutput
- func (o GetDataset_versionsResultOutput) ToGetDataset_versionsResultOutputWithContext(ctx context.Context) GetDataset_versionsResultOutput
- func (o GetDataset_versionsResultOutput) Versions() GetDataset_versionsVersionArrayOutput
- type GetDataset_versionsVersion
- type GetDataset_versionsVersionArgs
- func (GetDataset_versionsVersionArgs) ElementType() reflect.Type
- func (i GetDataset_versionsVersionArgs) ToGetDataset_versionsVersionOutput() GetDataset_versionsVersionOutput
- func (i GetDataset_versionsVersionArgs) ToGetDataset_versionsVersionOutputWithContext(ctx context.Context) GetDataset_versionsVersionOutput
- type GetDataset_versionsVersionArray
- func (GetDataset_versionsVersionArray) ElementType() reflect.Type
- func (i GetDataset_versionsVersionArray) ToGetDataset_versionsVersionArrayOutput() GetDataset_versionsVersionArrayOutput
- func (i GetDataset_versionsVersionArray) ToGetDataset_versionsVersionArrayOutputWithContext(ctx context.Context) GetDataset_versionsVersionArrayOutput
- type GetDataset_versionsVersionArrayInput
- type GetDataset_versionsVersionArrayOutput
- func (GetDataset_versionsVersionArrayOutput) ElementType() reflect.Type
- func (o GetDataset_versionsVersionArrayOutput) Index(i pulumi.IntInput) GetDataset_versionsVersionOutput
- func (o GetDataset_versionsVersionArrayOutput) ToGetDataset_versionsVersionArrayOutput() GetDataset_versionsVersionArrayOutput
- func (o GetDataset_versionsVersionArrayOutput) ToGetDataset_versionsVersionArrayOutputWithContext(ctx context.Context) GetDataset_versionsVersionArrayOutput
- type GetDataset_versionsVersionInput
- type GetDataset_versionsVersionOutput
- func (o GetDataset_versionsVersionOutput) CreatedAt() pulumi.StringOutput
- func (o GetDataset_versionsVersionOutput) Description() pulumi.StringOutput
- func (GetDataset_versionsVersionOutput) ElementType() reflect.Type
- func (o GetDataset_versionsVersionOutput) Files() pulumi.IntOutput
- func (o GetDataset_versionsVersionOutput) Id() pulumi.StringOutput
- func (o GetDataset_versionsVersionOutput) IsCurrent() pulumi.BoolOutput
- func (o GetDataset_versionsVersionOutput) Name() pulumi.StringOutput
- func (o GetDataset_versionsVersionOutput) SplitRatio() pulumi.StringOutput
- func (o GetDataset_versionsVersionOutput) Status() pulumi.IntOutput
- func (o GetDataset_versionsVersionOutput) StoragePath() pulumi.StringOutput
- func (o GetDataset_versionsVersionOutput) ToGetDataset_versionsVersionOutput() GetDataset_versionsVersionOutput
- func (o GetDataset_versionsVersionOutput) ToGetDataset_versionsVersionOutputWithContext(ctx context.Context) GetDataset_versionsVersionOutput
- func (o GetDataset_versionsVersionOutput) UpdatedAt() pulumi.StringOutput
- type GetDatasetsArgs
- type GetDatasetsDataset
- type GetDatasetsDatasetArgs
- type GetDatasetsDatasetArray
- type GetDatasetsDatasetArrayInput
- type GetDatasetsDatasetArrayOutput
- func (GetDatasetsDatasetArrayOutput) ElementType() reflect.Type
- func (o GetDatasetsDatasetArrayOutput) Index(i pulumi.IntInput) GetDatasetsDatasetOutput
- func (o GetDatasetsDatasetArrayOutput) ToGetDatasetsDatasetArrayOutput() GetDatasetsDatasetArrayOutput
- func (o GetDatasetsDatasetArrayOutput) ToGetDatasetsDatasetArrayOutputWithContext(ctx context.Context) GetDatasetsDatasetArrayOutput
- type GetDatasetsDatasetDataSource
- type GetDatasetsDatasetDataSourceArgs
- func (GetDatasetsDatasetDataSourceArgs) ElementType() reflect.Type
- func (i GetDatasetsDatasetDataSourceArgs) ToGetDatasetsDatasetDataSourceOutput() GetDatasetsDatasetDataSourceOutput
- func (i GetDatasetsDatasetDataSourceArgs) ToGetDatasetsDatasetDataSourceOutputWithContext(ctx context.Context) GetDatasetsDatasetDataSourceOutput
- type GetDatasetsDatasetDataSourceArray
- func (GetDatasetsDatasetDataSourceArray) ElementType() reflect.Type
- func (i GetDatasetsDatasetDataSourceArray) ToGetDatasetsDatasetDataSourceArrayOutput() GetDatasetsDatasetDataSourceArrayOutput
- func (i GetDatasetsDatasetDataSourceArray) ToGetDatasetsDatasetDataSourceArrayOutputWithContext(ctx context.Context) GetDatasetsDatasetDataSourceArrayOutput
- type GetDatasetsDatasetDataSourceArrayInput
- type GetDatasetsDatasetDataSourceArrayOutput
- func (GetDatasetsDatasetDataSourceArrayOutput) ElementType() reflect.Type
- func (o GetDatasetsDatasetDataSourceArrayOutput) Index(i pulumi.IntInput) GetDatasetsDatasetDataSourceOutput
- func (o GetDatasetsDatasetDataSourceArrayOutput) ToGetDatasetsDatasetDataSourceArrayOutput() GetDatasetsDatasetDataSourceArrayOutput
- func (o GetDatasetsDatasetDataSourceArrayOutput) ToGetDatasetsDatasetDataSourceArrayOutputWithContext(ctx context.Context) GetDatasetsDatasetDataSourceArrayOutput
- type GetDatasetsDatasetDataSourceInput
- type GetDatasetsDatasetDataSourceOutput
- func (o GetDatasetsDatasetDataSourceOutput) DataType() pulumi.IntOutput
- func (GetDatasetsDatasetDataSourceOutput) ElementType() reflect.Type
- func (o GetDatasetsDatasetDataSourceOutput) Path() pulumi.StringOutput
- func (o GetDatasetsDatasetDataSourceOutput) ToGetDatasetsDatasetDataSourceOutput() GetDatasetsDatasetDataSourceOutput
- func (o GetDatasetsDatasetDataSourceOutput) ToGetDatasetsDatasetDataSourceOutputWithContext(ctx context.Context) GetDatasetsDatasetDataSourceOutput
- func (o GetDatasetsDatasetDataSourceOutput) WithColumnHeader() pulumi.BoolOutput
- type GetDatasetsDatasetInput
- type GetDatasetsDatasetLabel
- type GetDatasetsDatasetLabelArgs
- type GetDatasetsDatasetLabelArray
- func (GetDatasetsDatasetLabelArray) ElementType() reflect.Type
- func (i GetDatasetsDatasetLabelArray) ToGetDatasetsDatasetLabelArrayOutput() GetDatasetsDatasetLabelArrayOutput
- func (i GetDatasetsDatasetLabelArray) ToGetDatasetsDatasetLabelArrayOutputWithContext(ctx context.Context) GetDatasetsDatasetLabelArrayOutput
- type GetDatasetsDatasetLabelArrayInput
- type GetDatasetsDatasetLabelArrayOutput
- func (GetDatasetsDatasetLabelArrayOutput) ElementType() reflect.Type
- func (o GetDatasetsDatasetLabelArrayOutput) Index(i pulumi.IntInput) GetDatasetsDatasetLabelOutput
- func (o GetDatasetsDatasetLabelArrayOutput) ToGetDatasetsDatasetLabelArrayOutput() GetDatasetsDatasetLabelArrayOutput
- func (o GetDatasetsDatasetLabelArrayOutput) ToGetDatasetsDatasetLabelArrayOutputWithContext(ctx context.Context) GetDatasetsDatasetLabelArrayOutput
- type GetDatasetsDatasetLabelInput
- type GetDatasetsDatasetLabelOutput
- func (GetDatasetsDatasetLabelOutput) ElementType() reflect.Type
- func (o GetDatasetsDatasetLabelOutput) Name() pulumi.StringOutput
- func (o GetDatasetsDatasetLabelOutput) PropertyColor() pulumi.StringOutput
- func (o GetDatasetsDatasetLabelOutput) PropertyShape() pulumi.StringOutput
- func (o GetDatasetsDatasetLabelOutput) PropertyShortcut() pulumi.StringOutput
- func (o GetDatasetsDatasetLabelOutput) ToGetDatasetsDatasetLabelOutput() GetDatasetsDatasetLabelOutput
- func (o GetDatasetsDatasetLabelOutput) ToGetDatasetsDatasetLabelOutputWithContext(ctx context.Context) GetDatasetsDatasetLabelOutput
- type GetDatasetsDatasetOutput
- func (o GetDatasetsDatasetOutput) CreatedAt() pulumi.StringOutput
- func (o GetDatasetsDatasetOutput) DataFormat() pulumi.StringOutput
- func (o GetDatasetsDatasetOutput) DataSources() GetDatasetsDatasetDataSourceArrayOutput
- func (o GetDatasetsDatasetOutput) Description() pulumi.StringOutput
- func (GetDatasetsDatasetOutput) ElementType() reflect.Type
- func (o GetDatasetsDatasetOutput) Id() pulumi.StringOutput
- func (o GetDatasetsDatasetOutput) Labels() GetDatasetsDatasetLabelArrayOutput
- func (o GetDatasetsDatasetOutput) Name() pulumi.StringOutput
- func (o GetDatasetsDatasetOutput) OutputPath() pulumi.StringOutput
- func (o GetDatasetsDatasetOutput) Schemas() GetDatasetsDatasetSchemaArrayOutput
- func (o GetDatasetsDatasetOutput) Status() pulumi.IntOutput
- func (o GetDatasetsDatasetOutput) ToGetDatasetsDatasetOutput() GetDatasetsDatasetOutput
- func (o GetDatasetsDatasetOutput) ToGetDatasetsDatasetOutputWithContext(ctx context.Context) GetDatasetsDatasetOutput
- func (o GetDatasetsDatasetOutput) Type() pulumi.IntOutput
- type GetDatasetsDatasetSchema
- type GetDatasetsDatasetSchemaArgs
- func (GetDatasetsDatasetSchemaArgs) ElementType() reflect.Type
- func (i GetDatasetsDatasetSchemaArgs) ToGetDatasetsDatasetSchemaOutput() GetDatasetsDatasetSchemaOutput
- func (i GetDatasetsDatasetSchemaArgs) ToGetDatasetsDatasetSchemaOutputWithContext(ctx context.Context) GetDatasetsDatasetSchemaOutput
- type GetDatasetsDatasetSchemaArray
- func (GetDatasetsDatasetSchemaArray) ElementType() reflect.Type
- func (i GetDatasetsDatasetSchemaArray) ToGetDatasetsDatasetSchemaArrayOutput() GetDatasetsDatasetSchemaArrayOutput
- func (i GetDatasetsDatasetSchemaArray) ToGetDatasetsDatasetSchemaArrayOutputWithContext(ctx context.Context) GetDatasetsDatasetSchemaArrayOutput
- type GetDatasetsDatasetSchemaArrayInput
- type GetDatasetsDatasetSchemaArrayOutput
- func (GetDatasetsDatasetSchemaArrayOutput) ElementType() reflect.Type
- func (o GetDatasetsDatasetSchemaArrayOutput) Index(i pulumi.IntInput) GetDatasetsDatasetSchemaOutput
- func (o GetDatasetsDatasetSchemaArrayOutput) ToGetDatasetsDatasetSchemaArrayOutput() GetDatasetsDatasetSchemaArrayOutput
- func (o GetDatasetsDatasetSchemaArrayOutput) ToGetDatasetsDatasetSchemaArrayOutputWithContext(ctx context.Context) GetDatasetsDatasetSchemaArrayOutput
- type GetDatasetsDatasetSchemaInput
- type GetDatasetsDatasetSchemaOutput
- func (GetDatasetsDatasetSchemaOutput) ElementType() reflect.Type
- func (o GetDatasetsDatasetSchemaOutput) Name() pulumi.StringOutput
- func (o GetDatasetsDatasetSchemaOutput) ToGetDatasetsDatasetSchemaOutput() GetDatasetsDatasetSchemaOutput
- func (o GetDatasetsDatasetSchemaOutput) ToGetDatasetsDatasetSchemaOutputWithContext(ctx context.Context) GetDatasetsDatasetSchemaOutput
- func (o GetDatasetsDatasetSchemaOutput) Type() pulumi.StringOutput
- type GetDatasetsOutputArgs
- type GetDatasetsResult
- type GetDatasetsResultOutput
- func (o GetDatasetsResultOutput) Datasets() GetDatasetsDatasetArrayOutput
- func (GetDatasetsResultOutput) ElementType() reflect.Type
- func (o GetDatasetsResultOutput) Id() pulumi.StringOutput
- func (o GetDatasetsResultOutput) Name() pulumi.StringPtrOutput
- func (o GetDatasetsResultOutput) Region() pulumi.StringOutput
- func (o GetDatasetsResultOutput) ToGetDatasetsResultOutput() GetDatasetsResultOutput
- func (o GetDatasetsResultOutput) ToGetDatasetsResultOutputWithContext(ctx context.Context) GetDatasetsResultOutput
- func (o GetDatasetsResultOutput) Type() pulumi.IntPtrOutput
- type GetNotebookImagesArgs
- type GetNotebookImagesImage
- type GetNotebookImagesImageArgs
- type GetNotebookImagesImageArray
- func (GetNotebookImagesImageArray) ElementType() reflect.Type
- func (i GetNotebookImagesImageArray) ToGetNotebookImagesImageArrayOutput() GetNotebookImagesImageArrayOutput
- func (i GetNotebookImagesImageArray) ToGetNotebookImagesImageArrayOutputWithContext(ctx context.Context) GetNotebookImagesImageArrayOutput
- type GetNotebookImagesImageArrayInput
- type GetNotebookImagesImageArrayOutput
- func (GetNotebookImagesImageArrayOutput) ElementType() reflect.Type
- func (o GetNotebookImagesImageArrayOutput) Index(i pulumi.IntInput) GetNotebookImagesImageOutput
- func (o GetNotebookImagesImageArrayOutput) ToGetNotebookImagesImageArrayOutput() GetNotebookImagesImageArrayOutput
- func (o GetNotebookImagesImageArrayOutput) ToGetNotebookImagesImageArrayOutputWithContext(ctx context.Context) GetNotebookImagesImageArrayOutput
- type GetNotebookImagesImageInput
- type GetNotebookImagesImageOutput
- func (o GetNotebookImagesImageOutput) CpuArch() pulumi.StringOutput
- func (o GetNotebookImagesImageOutput) Description() pulumi.StringOutput
- func (GetNotebookImagesImageOutput) ElementType() reflect.Type
- func (o GetNotebookImagesImageOutput) Id() pulumi.StringOutput
- func (o GetNotebookImagesImageOutput) Name() pulumi.StringOutput
- func (o GetNotebookImagesImageOutput) SwrPath() pulumi.StringOutput
- func (o GetNotebookImagesImageOutput) ToGetNotebookImagesImageOutput() GetNotebookImagesImageOutput
- func (o GetNotebookImagesImageOutput) ToGetNotebookImagesImageOutputWithContext(ctx context.Context) GetNotebookImagesImageOutput
- func (o GetNotebookImagesImageOutput) Type() pulumi.StringOutput
- type GetNotebookImagesOutputArgs
- type GetNotebookImagesResult
- type GetNotebookImagesResultOutput
- func (o GetNotebookImagesResultOutput) CpuArch() pulumi.StringPtrOutput
- func (GetNotebookImagesResultOutput) ElementType() reflect.Type
- func (o GetNotebookImagesResultOutput) Id() pulumi.StringOutput
- func (o GetNotebookImagesResultOutput) Images() GetNotebookImagesImageArrayOutput
- func (o GetNotebookImagesResultOutput) Name() pulumi.StringPtrOutput
- func (o GetNotebookImagesResultOutput) Organization() pulumi.StringPtrOutput
- func (o GetNotebookImagesResultOutput) Region() pulumi.StringOutput
- func (o GetNotebookImagesResultOutput) ToGetNotebookImagesResultOutput() GetNotebookImagesResultOutput
- func (o GetNotebookImagesResultOutput) ToGetNotebookImagesResultOutputWithContext(ctx context.Context) GetNotebookImagesResultOutput
- func (o GetNotebookImagesResultOutput) Type() pulumi.StringPtrOutput
- func (o GetNotebookImagesResultOutput) WorkspaceId() pulumi.StringPtrOutput
- type Notebook
- type NotebookArgs
- type NotebookArray
- type NotebookArrayInput
- type NotebookArrayOutput
- type NotebookInput
- type NotebookMap
- type NotebookMapInput
- type NotebookMapOutput
- type NotebookMountStorage
- type NotebookMountStorageArgs
- type NotebookMountStorageArray
- type NotebookMountStorageArrayInput
- type NotebookMountStorageArrayOutput
- func (NotebookMountStorageArrayOutput) ElementType() reflect.Type
- func (o NotebookMountStorageArrayOutput) Index(i pulumi.IntInput) NotebookMountStorageOutput
- func (o NotebookMountStorageArrayOutput) ToNotebookMountStorageArrayOutput() NotebookMountStorageArrayOutput
- func (o NotebookMountStorageArrayOutput) ToNotebookMountStorageArrayOutputWithContext(ctx context.Context) NotebookMountStorageArrayOutput
- type NotebookMountStorageInput
- type NotebookMountStorageMap
- type NotebookMountStorageMapInput
- type NotebookMountStorageMapOutput
- func (NotebookMountStorageMapOutput) ElementType() reflect.Type
- func (o NotebookMountStorageMapOutput) MapIndex(k pulumi.StringInput) NotebookMountStorageOutput
- func (o NotebookMountStorageMapOutput) ToNotebookMountStorageMapOutput() NotebookMountStorageMapOutput
- func (o NotebookMountStorageMapOutput) ToNotebookMountStorageMapOutputWithContext(ctx context.Context) NotebookMountStorageMapOutput
- type NotebookMountStorageOutput
- func (NotebookMountStorageOutput) ElementType() reflect.Type
- func (o NotebookMountStorageOutput) LocalMountDirectory() pulumi.StringOutput
- func (o NotebookMountStorageOutput) MountId() pulumi.StringOutput
- func (o NotebookMountStorageOutput) NotebookId() pulumi.StringOutput
- func (o NotebookMountStorageOutput) Region() pulumi.StringOutput
- func (o NotebookMountStorageOutput) Status() pulumi.StringOutput
- func (o NotebookMountStorageOutput) StoragePath() pulumi.StringOutput
- func (o NotebookMountStorageOutput) ToNotebookMountStorageOutput() NotebookMountStorageOutput
- func (o NotebookMountStorageOutput) ToNotebookMountStorageOutputWithContext(ctx context.Context) NotebookMountStorageOutput
- func (o NotebookMountStorageOutput) Type() pulumi.StringOutput
- type NotebookMountStorageState
- type NotebookMountStorageType
- type NotebookMountStorageTypeArgs
- func (NotebookMountStorageTypeArgs) ElementType() reflect.Type
- func (i NotebookMountStorageTypeArgs) ToNotebookMountStorageTypeOutput() NotebookMountStorageTypeOutput
- func (i NotebookMountStorageTypeArgs) ToNotebookMountStorageTypeOutputWithContext(ctx context.Context) NotebookMountStorageTypeOutput
- type NotebookMountStorageTypeArray
- func (NotebookMountStorageTypeArray) ElementType() reflect.Type
- func (i NotebookMountStorageTypeArray) ToNotebookMountStorageTypeArrayOutput() NotebookMountStorageTypeArrayOutput
- func (i NotebookMountStorageTypeArray) ToNotebookMountStorageTypeArrayOutputWithContext(ctx context.Context) NotebookMountStorageTypeArrayOutput
- type NotebookMountStorageTypeArrayInput
- type NotebookMountStorageTypeArrayOutput
- func (NotebookMountStorageTypeArrayOutput) ElementType() reflect.Type
- func (o NotebookMountStorageTypeArrayOutput) Index(i pulumi.IntInput) NotebookMountStorageTypeOutput
- func (o NotebookMountStorageTypeArrayOutput) ToNotebookMountStorageTypeArrayOutput() NotebookMountStorageTypeArrayOutput
- func (o NotebookMountStorageTypeArrayOutput) ToNotebookMountStorageTypeArrayOutputWithContext(ctx context.Context) NotebookMountStorageTypeArrayOutput
- type NotebookMountStorageTypeInput
- type NotebookMountStorageTypeOutput
- func (NotebookMountStorageTypeOutput) ElementType() reflect.Type
- func (o NotebookMountStorageTypeOutput) Id() pulumi.StringPtrOutput
- func (o NotebookMountStorageTypeOutput) MountPath() pulumi.StringPtrOutput
- func (o NotebookMountStorageTypeOutput) Path() pulumi.StringPtrOutput
- func (o NotebookMountStorageTypeOutput) Status() pulumi.StringPtrOutput
- func (o NotebookMountStorageTypeOutput) ToNotebookMountStorageTypeOutput() NotebookMountStorageTypeOutput
- func (o NotebookMountStorageTypeOutput) ToNotebookMountStorageTypeOutputWithContext(ctx context.Context) NotebookMountStorageTypeOutput
- func (o NotebookMountStorageTypeOutput) Type() pulumi.StringPtrOutput
- type NotebookOutput
- func (o NotebookOutput) AllowedAccessIps() pulumi.StringArrayOutput
- func (o NotebookOutput) AutoStopEnabled() pulumi.BoolOutput
- func (o NotebookOutput) CreatedAt() pulumi.StringOutput
- func (o NotebookOutput) Description() pulumi.StringPtrOutput
- func (NotebookOutput) ElementType() reflect.Type
- func (o NotebookOutput) FlavorId() pulumi.StringOutput
- func (o NotebookOutput) ImageId() pulumi.StringOutput
- func (o NotebookOutput) ImageName() pulumi.StringOutput
- func (o NotebookOutput) ImageSwrPath() pulumi.StringOutput
- func (o NotebookOutput) ImageType() pulumi.StringOutput
- func (o NotebookOutput) KeyPair() pulumi.StringPtrOutput
- func (o NotebookOutput) MountStorages() NotebookMountStorageTypeArrayOutput
- func (o NotebookOutput) Name() pulumi.StringOutput
- func (o NotebookOutput) PoolId() pulumi.StringPtrOutput
- func (o NotebookOutput) PoolName() pulumi.StringOutput
- func (o NotebookOutput) Region() pulumi.StringOutput
- func (o NotebookOutput) SshUri() pulumi.StringOutput
- func (o NotebookOutput) Status() pulumi.StringOutput
- func (o NotebookOutput) ToNotebookOutput() NotebookOutput
- func (o NotebookOutput) ToNotebookOutputWithContext(ctx context.Context) NotebookOutput
- func (o NotebookOutput) UpdatedAt() pulumi.StringOutput
- func (o NotebookOutput) Url() pulumi.StringOutput
- func (o NotebookOutput) Volume() NotebookVolumeOutput
- func (o NotebookOutput) WorkspaceId() pulumi.StringOutput
- type NotebookState
- type NotebookVolume
- type NotebookVolumeArgs
- func (NotebookVolumeArgs) ElementType() reflect.Type
- func (i NotebookVolumeArgs) ToNotebookVolumeOutput() NotebookVolumeOutput
- func (i NotebookVolumeArgs) ToNotebookVolumeOutputWithContext(ctx context.Context) NotebookVolumeOutput
- func (i NotebookVolumeArgs) ToNotebookVolumePtrOutput() NotebookVolumePtrOutput
- func (i NotebookVolumeArgs) ToNotebookVolumePtrOutputWithContext(ctx context.Context) NotebookVolumePtrOutput
- type NotebookVolumeInput
- type NotebookVolumeOutput
- func (NotebookVolumeOutput) ElementType() reflect.Type
- func (o NotebookVolumeOutput) MountPath() pulumi.StringPtrOutput
- func (o NotebookVolumeOutput) Ownership() pulumi.StringPtrOutput
- func (o NotebookVolumeOutput) Size() pulumi.IntPtrOutput
- func (o NotebookVolumeOutput) ToNotebookVolumeOutput() NotebookVolumeOutput
- func (o NotebookVolumeOutput) ToNotebookVolumeOutputWithContext(ctx context.Context) NotebookVolumeOutput
- func (o NotebookVolumeOutput) ToNotebookVolumePtrOutput() NotebookVolumePtrOutput
- func (o NotebookVolumeOutput) ToNotebookVolumePtrOutputWithContext(ctx context.Context) NotebookVolumePtrOutput
- func (o NotebookVolumeOutput) Type() pulumi.StringOutput
- func (o NotebookVolumeOutput) Uri() pulumi.StringPtrOutput
- type NotebookVolumePtrInput
- type NotebookVolumePtrOutput
- func (o NotebookVolumePtrOutput) Elem() NotebookVolumeOutput
- func (NotebookVolumePtrOutput) ElementType() reflect.Type
- func (o NotebookVolumePtrOutput) MountPath() pulumi.StringPtrOutput
- func (o NotebookVolumePtrOutput) Ownership() pulumi.StringPtrOutput
- func (o NotebookVolumePtrOutput) Size() pulumi.IntPtrOutput
- func (o NotebookVolumePtrOutput) ToNotebookVolumePtrOutput() NotebookVolumePtrOutput
- func (o NotebookVolumePtrOutput) ToNotebookVolumePtrOutputWithContext(ctx context.Context) NotebookVolumePtrOutput
- func (o NotebookVolumePtrOutput) Type() pulumi.StringPtrOutput
- func (o NotebookVolumePtrOutput) Uri() pulumi.StringPtrOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PkgVersion ¶ added in v0.0.2
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) 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 (o DatasetArrayOutput) Index(i pulumi.IntInput) DatasetOutput
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 ¶
func (o DatasetDataSourceOutput) ClusterId() pulumi.StringPtrOutput
Specifies the cluster ID of DWS/MRS when `dataType` is `1` or `4`. Changing this parameter will create a new resource.
func (DatasetDataSourceOutput) DataType ¶
func (o DatasetDataSourceOutput) DataType() pulumi.IntPtrOutput
Specifies the type of data source. The options are as follows: + **0**: OBS. + **1**: GaussDB(DWS). + **2**: DLI. + **4**: MRS.
func (DatasetDataSourceOutput) DatabaseName ¶
func (o DatasetDataSourceOutput) DatabaseName() pulumi.StringPtrOutput
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 ¶
func (o DatasetDataSourceOutput) Password() pulumi.StringPtrOutput
Specifies the password of database when `dataType` is `1`. Changing this parameter will create a new resource.
func (DatasetDataSourceOutput) Path ¶
func (o DatasetDataSourceOutput) Path() pulumi.StringPtrOutput
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 ¶
func (o DatasetDataSourceOutput) QueueName() pulumi.StringPtrOutput
Specifies the queue name of DLI when `dataType` is `2`. Changing this parameter will create a new resource.
func (DatasetDataSourceOutput) TableName ¶
func (o DatasetDataSourceOutput) TableName() pulumi.StringPtrOutput
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 ¶
func (o DatasetDataSourceOutput) UserName() pulumi.StringPtrOutput
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
func DatasetDataSourcePtr ¶
func DatasetDataSourcePtr(v *DatasetDataSourceArgs) DatasetDataSourcePtrInput
type DatasetDataSourcePtrOutput ¶
type DatasetDataSourcePtrOutput struct{ *pulumi.OutputState }
func (DatasetDataSourcePtrOutput) ClusterId ¶
func (o DatasetDataSourcePtrOutput) ClusterId() pulumi.StringPtrOutput
Specifies the cluster ID of DWS/MRS when `dataType` is `1` or `4`. Changing this parameter will create a new resource.
func (DatasetDataSourcePtrOutput) DataType ¶
func (o DatasetDataSourcePtrOutput) DataType() pulumi.IntPtrOutput
Specifies the type of data source. The options are as follows: + **0**: OBS. + **1**: GaussDB(DWS). + **2**: DLI. + **4**: MRS.
func (DatasetDataSourcePtrOutput) DatabaseName ¶
func (o DatasetDataSourcePtrOutput) DatabaseName() pulumi.StringPtrOutput
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 (o DatasetDataSourcePtrOutput) Elem() DatasetDataSourceOutput
func (DatasetDataSourcePtrOutput) ElementType ¶
func (DatasetDataSourcePtrOutput) ElementType() reflect.Type
func (DatasetDataSourcePtrOutput) Password ¶
func (o DatasetDataSourcePtrOutput) Password() pulumi.StringPtrOutput
Specifies the password of database when `dataType` is `1`. Changing this parameter will create a new resource.
func (DatasetDataSourcePtrOutput) Path ¶
func (o DatasetDataSourcePtrOutput) Path() pulumi.StringPtrOutput
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 ¶
func (o DatasetDataSourcePtrOutput) QueueName() pulumi.StringPtrOutput
Specifies the queue name of DLI when `dataType` is `2`. Changing this parameter will create a new resource.
func (DatasetDataSourcePtrOutput) TableName ¶
func (o DatasetDataSourcePtrOutput) TableName() pulumi.StringPtrOutput
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 ¶
func (o DatasetDataSourcePtrOutput) UserName() pulumi.StringPtrOutput
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 (o DatasetLabelArrayOutput) Index(i pulumi.IntInput) DatasetLabelOutput
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 ¶
func (o DatasetLabelFormatOutput) Type() pulumi.StringPtrOutput
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
func DatasetLabelFormatPtr ¶
func DatasetLabelFormatPtr(v *DatasetLabelFormatArgs) DatasetLabelFormatPtrInput
type DatasetLabelFormatPtrOutput ¶
type DatasetLabelFormatPtrOutput struct{ *pulumi.OutputState }
func (DatasetLabelFormatPtrOutput) Elem ¶
func (o DatasetLabelFormatPtrOutput) Elem() DatasetLabelFormatOutput
func (DatasetLabelFormatPtrOutput) ElementType ¶
func (DatasetLabelFormatPtrOutput) ElementType() reflect.Type
func (DatasetLabelFormatPtrOutput) LabelSeparator ¶
func (o DatasetLabelFormatPtrOutput) LabelSeparator() pulumi.StringPtrOutput
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 ¶
func (o DatasetLabelFormatPtrOutput) Type() pulumi.StringPtrOutput
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 ¶
func (o DatasetLabelOutput) Name() pulumi.StringOutput
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 (o DatasetMapOutput) MapIndex(k pulumi.StringInput) DatasetOutput
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 ¶
func (o DatasetOutput) LabelFormat() DatasetLabelFormatPtrOutput
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 ¶
func (o DatasetOutput) Labels() DatasetLabelArrayOutput
Specifies labels information. Structure is documented below.
func (DatasetOutput) Name ¶
func (o DatasetOutput) Name() pulumi.StringOutput
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 ¶
func (o DatasetOutput) Schemas() DatasetSchemaArrayOutput
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 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 (o DatasetSchemaArrayOutput) Index(i pulumi.IntInput) DatasetSchemaOutput
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 ¶
func (o DatasetSchemaOutput) Name() pulumi.StringOutput
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 ¶
func (o DatasetSchemaOutput) Type() pulumi.StringOutput
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 (o DatasetVersionArrayOutput) Index(i pulumi.IntInput) DatasetVersionOutput
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 (o DatasetVersionMapOutput) MapIndex(k pulumi.StringInput) DatasetVersionOutput
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 ¶
func (o DatasetVersionOutput) CreatedAt() pulumi.StringOutput
The creation time, in UTC format.
func (DatasetVersionOutput) DatasetId ¶
func (o DatasetVersionOutput) DatasetId() pulumi.StringOutput
Specifies the ID of dataset. Changing this parameter will create a new resource.
func (DatasetVersionOutput) Description ¶
func (o DatasetVersionOutput) Description() pulumi.StringPtrOutput
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 ¶
func (o DatasetVersionOutput) Files() pulumi.IntOutput
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 ¶
func (o DatasetVersionOutput) Name() pulumi.StringOutput
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 ¶
func (o DatasetVersionOutput) 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 (DatasetVersionOutput) SplitRatio ¶
func (o DatasetVersionOutput) SplitRatio() pulumi.StringPtrOutput
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 ¶
func (o DatasetVersionOutput) Status() pulumi.IntOutput
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 ¶
func (o DatasetVersionOutput) UpdatedAt() pulumi.StringOutput
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 ¶
func (o DatasetVersionOutput) VersionId() pulumi.StringOutput
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 ¶
func (GetDataset_versionsOutputArgs) ElementType() reflect.Type
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_versionsOutput ¶
func GetDataset_versionsOutput(ctx *pulumi.Context, args GetDataset_versionsOutputArgs, opts ...pulumi.InvokeOption) GetDataset_versionsResultOutput
func (GetDataset_versionsResultOutput) DatasetId ¶
func (o GetDataset_versionsResultOutput) DatasetId() pulumi.StringOutput
func (GetDataset_versionsResultOutput) ElementType ¶
func (GetDataset_versionsResultOutput) ElementType() reflect.Type
func (GetDataset_versionsResultOutput) Id ¶
func (o GetDataset_versionsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetDataset_versionsResultOutput) Name ¶
func (o GetDataset_versionsResultOutput) Name() pulumi.StringPtrOutput
The name of the dataset version.
func (GetDataset_versionsResultOutput) Region ¶
func (o GetDataset_versionsResultOutput) Region() pulumi.StringOutput
func (GetDataset_versionsResultOutput) SplitRatio ¶
func (o GetDataset_versionsResultOutput) SplitRatio() pulumi.StringPtrOutput
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 ¶
func (o GetDataset_versionsResultOutput) Versions() GetDataset_versionsVersionArrayOutput
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (GetDataset_versionsVersionArrayOutput) Index ¶
func (o GetDataset_versionsVersionArrayOutput) Index(i pulumi.IntInput) GetDataset_versionsVersionOutput
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 ¶
func (o GetDataset_versionsVersionOutput) CreatedAt() pulumi.StringOutput
The creation time, in UTC format.
func (GetDataset_versionsVersionOutput) Description ¶
func (o GetDataset_versionsVersionOutput) Description() pulumi.StringOutput
The description of the dataset version.
func (GetDataset_versionsVersionOutput) ElementType ¶
func (GetDataset_versionsVersionOutput) ElementType() reflect.Type
func (GetDataset_versionsVersionOutput) Files ¶
func (o GetDataset_versionsVersionOutput) Files() pulumi.IntOutput
The total number of samples.
func (GetDataset_versionsVersionOutput) Id ¶
func (o GetDataset_versionsVersionOutput) Id() pulumi.StringOutput
The ID of the dataset version.
func (GetDataset_versionsVersionOutput) IsCurrent ¶
func (o GetDataset_versionsVersionOutput) IsCurrent() pulumi.BoolOutput
Whether this version is current version.
func (GetDataset_versionsVersionOutput) Name ¶
func (o GetDataset_versionsVersionOutput) Name() pulumi.StringOutput
Specifies the name of the dataset version.
func (GetDataset_versionsVersionOutput) SplitRatio ¶
func (o GetDataset_versionsVersionOutput) SplitRatio() pulumi.StringOutput
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 ¶
func (o GetDataset_versionsVersionOutput) Status() pulumi.IntOutput
Dataset version status. Valid values are as follows: + **0**: Creating. + **1**: Normal. + **2**: Deleting. + **3**: Deleted. + **4**: Exception.
func (GetDataset_versionsVersionOutput) StoragePath ¶
func (o GetDataset_versionsVersionOutput) StoragePath() pulumi.StringOutput
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 ¶
func (o GetDataset_versionsVersionOutput) UpdatedAt() pulumi.StringOutput
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) ElementType() reflect.Type
func (GetDatasetsDatasetArrayOutput) Index ¶
func (o GetDatasetsDatasetArrayOutput) Index(i pulumi.IntInput) GetDatasetsDatasetOutput
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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 ¶
func (o GetDatasetsDatasetDataSourceOutput) DataType() pulumi.IntOutput
The type of data source. Valid values are as follows: + *0*: OBS. + *1*: GaussDB(DWS). + *2*: DLI. + *4*: MRS.
func (GetDatasetsDatasetDataSourceOutput) ElementType ¶
func (GetDatasetsDatasetDataSourceOutput) ElementType() reflect.Type
func (GetDatasetsDatasetDataSourceOutput) Path ¶
func (o GetDatasetsDatasetDataSourceOutput) Path() pulumi.StringOutput
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 ¶
func (o GetDatasetsDatasetDataSourceOutput) WithColumnHeader() pulumi.BoolOutput
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (GetDatasetsDatasetLabelArrayOutput) Index ¶
func (o GetDatasetsDatasetLabelArrayOutput) Index(i pulumi.IntInput) GetDatasetsDatasetLabelOutput
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) ElementType() reflect.Type
func (GetDatasetsDatasetLabelOutput) Name ¶
func (o GetDatasetsDatasetLabelOutput) Name() pulumi.StringOutput
Specifies the name of datasets.
func (GetDatasetsDatasetLabelOutput) PropertyColor ¶
func (o GetDatasetsDatasetLabelOutput) PropertyColor() pulumi.StringOutput
The color of label.
func (GetDatasetsDatasetLabelOutput) PropertyShape ¶
func (o GetDatasetsDatasetLabelOutput) PropertyShape() pulumi.StringOutput
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 ¶
func (o GetDatasetsDatasetOutput) CreatedAt() pulumi.StringOutput
The dataset creation time.
func (GetDatasetsDatasetOutput) DataFormat ¶
func (o GetDatasetsDatasetOutput) DataFormat() pulumi.StringOutput
The dataset format. Valid values include: `Default`, `CarbonData`: Carbon format(Supported only for table type dataset.).
func (GetDatasetsDatasetOutput) DataSources ¶
func (o GetDatasetsDatasetOutput) DataSources() GetDatasetsDatasetDataSourceArrayOutput
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 ¶
func (o GetDatasetsDatasetOutput) Description() pulumi.StringOutput
The description of the dataset.
func (GetDatasetsDatasetOutput) ElementType ¶
func (GetDatasetsDatasetOutput) ElementType() reflect.Type
func (GetDatasetsDatasetOutput) Id ¶
func (o GetDatasetsDatasetOutput) Id() pulumi.StringOutput
The ID of the dataset.
func (GetDatasetsDatasetOutput) Labels ¶
func (o GetDatasetsDatasetOutput) Labels() GetDatasetsDatasetLabelArrayOutput
The labels information. Structure is documented below.
func (GetDatasetsDatasetOutput) Name ¶
func (o GetDatasetsDatasetOutput) Name() pulumi.StringOutput
Specifies the name of datasets.
func (GetDatasetsDatasetOutput) OutputPath ¶
func (o GetDatasetsDatasetOutput) OutputPath() pulumi.StringOutput
The OBS path for storing output files such as labeled files.
func (GetDatasetsDatasetOutput) Schemas ¶
func (o GetDatasetsDatasetOutput) Schemas() GetDatasetsDatasetSchemaArrayOutput
The schema information of source data when `type` is `400`(Table Type). Structure is documented below.
func (GetDatasetsDatasetOutput) Status ¶
func (o GetDatasetsDatasetOutput) 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 (GetDatasetsDatasetOutput) ToGetDatasetsDatasetOutput ¶
func (o GetDatasetsDatasetOutput) ToGetDatasetsDatasetOutput() GetDatasetsDatasetOutput
func (GetDatasetsDatasetOutput) ToGetDatasetsDatasetOutputWithContext ¶
func (o GetDatasetsDatasetOutput) ToGetDatasetsDatasetOutputWithContext(ctx context.Context) GetDatasetsDatasetOutput
func (GetDatasetsDatasetOutput) Type ¶
func (o GetDatasetsDatasetOutput) Type() pulumi.IntOutput
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (GetDatasetsDatasetSchemaArrayOutput) Index ¶
func (o GetDatasetsDatasetSchemaArrayOutput) Index(i pulumi.IntInput) GetDatasetsDatasetSchemaOutput
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) ElementType() reflect.Type
func (GetDatasetsDatasetSchemaOutput) Name ¶
func (o GetDatasetsDatasetSchemaOutput) Name() pulumi.StringOutput
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 ¶
func (o GetDatasetsDatasetSchemaOutput) Type() pulumi.StringOutput
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 GetDatasetsOutput ¶
func GetDatasetsOutput(ctx *pulumi.Context, args GetDatasetsOutputArgs, opts ...pulumi.InvokeOption) GetDatasetsResultOutput
func (GetDatasetsResultOutput) Datasets ¶
func (o GetDatasetsResultOutput) Datasets() GetDatasetsDatasetArrayOutput
Indicates a list of all datasets found. Structure is documented below.
func (GetDatasetsResultOutput) ElementType ¶
func (GetDatasetsResultOutput) ElementType() reflect.Type
func (GetDatasetsResultOutput) Id ¶
func (o GetDatasetsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetDatasetsResultOutput) Name ¶
func (o GetDatasetsResultOutput) Name() pulumi.StringPtrOutput
The name of label.
func (GetDatasetsResultOutput) Region ¶
func (o GetDatasetsResultOutput) Region() pulumi.StringOutput
func (GetDatasetsResultOutput) ToGetDatasetsResultOutput ¶
func (o GetDatasetsResultOutput) ToGetDatasetsResultOutput() GetDatasetsResultOutput
func (GetDatasetsResultOutput) ToGetDatasetsResultOutputWithContext ¶
func (o GetDatasetsResultOutput) ToGetDatasetsResultOutputWithContext(ctx context.Context) GetDatasetsResultOutput
func (GetDatasetsResultOutput) Type ¶
func (o GetDatasetsResultOutput) Type() pulumi.IntPtrOutput
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (GetNotebookImagesImageArrayOutput) Index ¶
func (o GetNotebookImagesImageArrayOutput) Index(i pulumi.IntInput) GetNotebookImagesImageOutput
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 ¶
func (o GetNotebookImagesImageOutput) CpuArch() pulumi.StringOutput
Specifies the CPU architecture of image. The value can be **x86_64** and **aarch64**.
func (GetNotebookImagesImageOutput) Description ¶
func (o GetNotebookImagesImageOutput) Description() pulumi.StringOutput
The description of the image.
func (GetNotebookImagesImageOutput) ElementType ¶
func (GetNotebookImagesImageOutput) ElementType() reflect.Type
func (GetNotebookImagesImageOutput) Id ¶
func (o GetNotebookImagesImageOutput) Id() pulumi.StringOutput
The ID of the image.
func (GetNotebookImagesImageOutput) Name ¶
func (o GetNotebookImagesImageOutput) Name() pulumi.StringOutput
Specifies the name of image.
func (GetNotebookImagesImageOutput) SwrPath ¶
func (o GetNotebookImagesImageOutput) SwrPath() pulumi.StringOutput
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 ¶
func (o GetNotebookImagesImageOutput) Type() pulumi.StringOutput
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 ¶
func (GetNotebookImagesOutputArgs) ElementType() reflect.Type
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 GetNotebookImagesOutput ¶
func GetNotebookImagesOutput(ctx *pulumi.Context, args GetNotebookImagesOutputArgs, opts ...pulumi.InvokeOption) GetNotebookImagesResultOutput
func (GetNotebookImagesResultOutput) CpuArch ¶
func (o GetNotebookImagesResultOutput) CpuArch() pulumi.StringPtrOutput
The CPU architecture of the image. The value can be **x86_64** and **aarch64**.
func (GetNotebookImagesResultOutput) ElementType ¶
func (GetNotebookImagesResultOutput) ElementType() reflect.Type
func (GetNotebookImagesResultOutput) Id ¶
func (o GetNotebookImagesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetNotebookImagesResultOutput) Images ¶
func (o GetNotebookImagesResultOutput) Images() GetNotebookImagesImageArrayOutput
Indicates a list of all images found. Structure is documented below.
func (GetNotebookImagesResultOutput) Name ¶
func (o GetNotebookImagesResultOutput) Name() pulumi.StringPtrOutput
The name of the image.
func (GetNotebookImagesResultOutput) Organization ¶
func (o GetNotebookImagesResultOutput) Organization() pulumi.StringPtrOutput
func (GetNotebookImagesResultOutput) Region ¶
func (o GetNotebookImagesResultOutput) Region() pulumi.StringOutput
func (GetNotebookImagesResultOutput) ToGetNotebookImagesResultOutput ¶
func (o GetNotebookImagesResultOutput) ToGetNotebookImagesResultOutput() GetNotebookImagesResultOutput
func (GetNotebookImagesResultOutput) ToGetNotebookImagesResultOutputWithContext ¶
func (o GetNotebookImagesResultOutput) ToGetNotebookImagesResultOutputWithContext(ctx context.Context) GetNotebookImagesResultOutput
func (GetNotebookImagesResultOutput) Type ¶
func (o GetNotebookImagesResultOutput) Type() pulumi.StringPtrOutput
The type of the image.
func (GetNotebookImagesResultOutput) WorkspaceId ¶
func (o GetNotebookImagesResultOutput) WorkspaceId() pulumi.StringPtrOutput
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) 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 (o NotebookArrayOutput) Index(i pulumi.IntInput) NotebookOutput
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 (o NotebookMapOutput) MapIndex(k pulumi.StringInput) NotebookOutput
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) ElementType() reflect.Type
func (NotebookMountStorageArrayOutput) Index ¶
func (o NotebookMountStorageArrayOutput) Index(i pulumi.IntInput) NotebookMountStorageOutput
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) ElementType() reflect.Type
func (NotebookMountStorageMapOutput) MapIndex ¶
func (o NotebookMountStorageMapOutput) MapIndex(k pulumi.StringInput) NotebookMountStorageOutput
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 ¶
func (o NotebookMountStorageOutput) MountId() pulumi.StringOutput
The mount ID.
func (NotebookMountStorageOutput) NotebookId ¶
func (o NotebookMountStorageOutput) NotebookId() pulumi.StringOutput
Specifies ID of notebook which the storage be mounted to. Changing this parameter will create a new resource.
func (NotebookMountStorageOutput) Region ¶
func (o NotebookMountStorageOutput) 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 (NotebookMountStorageOutput) Status ¶
func (o NotebookMountStorageOutput) Status() pulumi.StringOutput
mount status. Valid values include: `MOUNTING`, `MOUNT_FAILED`, `MOUNTED`, `UNMOUNTING`, `UNMOUNT_FAILED`, `UNMOUNTED`.
func (NotebookMountStorageOutput) StoragePath ¶
func (o NotebookMountStorageOutput) StoragePath() pulumi.StringOutput
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 ¶
func (o NotebookMountStorageOutput) Type() pulumi.StringOutput
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (NotebookMountStorageTypeArrayOutput) Index ¶
func (o NotebookMountStorageTypeArrayOutput) Index(i pulumi.IntInput) NotebookMountStorageTypeOutput
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) ElementType() reflect.Type
func (NotebookMountStorageTypeOutput) Id ¶
func (o NotebookMountStorageTypeOutput) Id() pulumi.StringPtrOutput
The mount ID.
func (NotebookMountStorageTypeOutput) MountPath ¶
func (o NotebookMountStorageTypeOutput) MountPath() pulumi.StringPtrOutput
The local mount path.
func (NotebookMountStorageTypeOutput) Path ¶
func (o NotebookMountStorageTypeOutput) Path() pulumi.StringPtrOutput
The path of storage which be mounted.
func (NotebookMountStorageTypeOutput) Status ¶
func (o NotebookMountStorageTypeOutput) Status() pulumi.StringPtrOutput
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 ¶
func (o NotebookMountStorageTypeOutput) Type() pulumi.StringPtrOutput
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 ¶
func (o NotebookOutput) KeyPair() pulumi.StringPtrOutput
Specifies the key pair name for remote SSH access. Changing this parameter will create a new resource.
func (NotebookOutput) MountStorages ¶
func (o NotebookOutput) MountStorages() NotebookMountStorageTypeArrayOutput
An array of storages which mount to the notebook. Structure is documented below.
func (NotebookOutput) Name ¶
func (o NotebookOutput) Name() pulumi.StringOutput
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 ¶
func (o NotebookOutput) PoolId() pulumi.StringPtrOutput
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 ¶
func (o NotebookOutput) Url() pulumi.StringOutput
The web url of the notebook.
func (NotebookOutput) Volume ¶
func (o NotebookOutput) Volume() NotebookVolumeOutput
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 ¶
func (o NotebookVolumeOutput) MountPath() pulumi.StringPtrOutput
The local mount path.
func (NotebookVolumeOutput) Ownership ¶
func (o NotebookVolumeOutput) Ownership() pulumi.StringPtrOutput
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 ¶
func (o NotebookVolumeOutput) Size() pulumi.IntPtrOutput
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 ¶
func (o NotebookVolumeOutput) Type() pulumi.StringOutput
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 ¶
func (o NotebookVolumeOutput) Uri() pulumi.StringPtrOutput
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
func NotebookVolumePtr ¶
func NotebookVolumePtr(v *NotebookVolumeArgs) NotebookVolumePtrInput
type NotebookVolumePtrOutput ¶
type NotebookVolumePtrOutput struct{ *pulumi.OutputState }
func (NotebookVolumePtrOutput) Elem ¶
func (o NotebookVolumePtrOutput) Elem() NotebookVolumeOutput
func (NotebookVolumePtrOutput) ElementType ¶
func (NotebookVolumePtrOutput) ElementType() reflect.Type
func (NotebookVolumePtrOutput) MountPath ¶
func (o NotebookVolumePtrOutput) MountPath() pulumi.StringPtrOutput
The local mount path.
func (NotebookVolumePtrOutput) Ownership ¶
func (o NotebookVolumePtrOutput) Ownership() pulumi.StringPtrOutput
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 ¶
func (o NotebookVolumePtrOutput) Size() pulumi.IntPtrOutput
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 ¶
func (o NotebookVolumePtrOutput) Type() pulumi.StringPtrOutput
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 ¶
func (o NotebookVolumePtrOutput) Uri() pulumi.StringPtrOutput
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.