UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

108 lines 4.52 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.AiDataset = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * A collection of DataItems and Annotations on them. * * To get more information about Dataset, see: * * * [API documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.datasets) * * How-to Guides * * [Official Documentation](https://cloud.google.com/vertex-ai/docs) * * ## Example Usage * * ### Vertex Ai Dataset * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const dataset = new gcp.vertex.AiDataset("dataset", { * displayName: "terraform", * metadataSchemaUri: "gs://google-cloud-aiplatform/schema/dataset/metadata/image_1.0.0.yaml", * region: "us-central1", * labels: { * env: "test", * }, * }); * ``` * * ## Import * * This resource does not support import. */ class AiDataset extends pulumi.CustomResource { /** * Get an existing AiDataset resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new AiDataset(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of AiDataset. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === AiDataset.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["createTime"] = state?.createTime; resourceInputs["displayName"] = state?.displayName; resourceInputs["effectiveLabels"] = state?.effectiveLabels; resourceInputs["encryptionSpec"] = state?.encryptionSpec; resourceInputs["labels"] = state?.labels; resourceInputs["metadataSchemaUri"] = state?.metadataSchemaUri; resourceInputs["name"] = state?.name; resourceInputs["project"] = state?.project; resourceInputs["pulumiLabels"] = state?.pulumiLabels; resourceInputs["region"] = state?.region; resourceInputs["updateTime"] = state?.updateTime; } else { const args = argsOrState; if (args?.displayName === undefined && !opts.urn) { throw new Error("Missing required property 'displayName'"); } if (args?.metadataSchemaUri === undefined && !opts.urn) { throw new Error("Missing required property 'metadataSchemaUri'"); } resourceInputs["displayName"] = args?.displayName; resourceInputs["encryptionSpec"] = args?.encryptionSpec; resourceInputs["labels"] = args?.labels; resourceInputs["metadataSchemaUri"] = args?.metadataSchemaUri; resourceInputs["project"] = args?.project; resourceInputs["region"] = args?.region; resourceInputs["createTime"] = undefined /*out*/; resourceInputs["effectiveLabels"] = undefined /*out*/; resourceInputs["name"] = undefined /*out*/; resourceInputs["pulumiLabels"] = undefined /*out*/; resourceInputs["updateTime"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["effectiveLabels", "pulumiLabels"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(AiDataset.__pulumiType, name, resourceInputs, opts); } } exports.AiDataset = AiDataset; /** @internal */ AiDataset.__pulumiType = 'gcp:vertex/aiDataset:AiDataset'; //# sourceMappingURL=aiDataset.js.map