UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

93 lines (92 loc) 2.98 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * Use this data source to get a list of ModelArts dataset versions. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const config = new pulumi.Config(); * const datasetId = config.requireObject("datasetId"); * const test = huaweicloud.ModelArts.getDataset_versions({ * datasetId: datasetId, * }); * ``` */ export declare function getDataset_versions(args: GetDataset_versionsArgs, opts?: pulumi.InvokeOptions): Promise<GetDataset_versionsResult>; /** * A collection of arguments for invoking getDataset_versions. */ export interface GetDataset_versionsArgs { /** * Specifies the ID of dataset. */ datasetId: string; /** * Specifies the name of the dataset version. */ name?: string; /** * Specifies the region in which to obtain dataset versions. If omitted, the * provider-level region will be used. */ region?: string; /** * 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; } /** * A collection of values returned by getDataset_versions. */ export interface GetDataset_versionsResult { readonly datasetId: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The name of the dataset version. */ readonly name?: string; readonly region: string; /** * The ratio of splitting which randomly divides a labeled sample into a training set and * a validation set. */ readonly splitRatio?: string; /** * Indicates a list of all dataset versions found. Structure is documented below. */ readonly versions: outputs.ModelArts.GetDataset_versionsVersion[]; } export declare function getDataset_versionsOutput(args: GetDataset_versionsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDataset_versionsResult>; /** * A collection of arguments for invoking getDataset_versions. */ export interface GetDataset_versionsOutputArgs { /** * Specifies the ID of dataset. */ datasetId: pulumi.Input<string>; /** * Specifies the name of the dataset version. */ name?: pulumi.Input<string>; /** * Specifies the region in which to obtain dataset versions. If omitted, the * provider-level region will be used. */ region?: pulumi.Input<string>; /** * 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.Input<string>; }