@datarobot/pulumi-datarobot 0.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +44 -0
- package/apiTokenCredential.d.ts +84 -0
- package/apiTokenCredential.js +70 -0
- package/apiTokenCredential.js.map +1 -0
- package/applicationSource.d.ts +111 -0
- package/applicationSource.js +77 -0
- package/applicationSource.js.map +1 -0
- package/basicCredential.d.ts +100 -0
- package/basicCredential.js +79 -0
- package/basicCredential.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +8 -0
- package/config/vars.js +19 -0
- package/config/vars.js.map +1 -0
- package/customApplication.d.ts +124 -0
- package/customApplication.js +86 -0
- package/customApplication.js.map +1 -0
- package/customModel.d.ts +361 -0
- package/customModel.js +106 -0
- package/customModel.js.map +1 -0
- package/datasetFromFile.d.ts +76 -0
- package/datasetFromFile.js +73 -0
- package/datasetFromFile.js.map +1 -0
- package/deployment.d.ts +122 -0
- package/deployment.js +100 -0
- package/deployment.js.map +1 -0
- package/getGlobalModel.d.ts +66 -0
- package/getGlobalModel.js +47 -0
- package/getGlobalModel.js.map +1 -0
- package/googleCloudCredential.d.ts +63 -0
- package/googleCloudCredential.js +57 -0
- package/googleCloudCredential.js.map +1 -0
- package/index.d.ts +57 -0
- package/index.js +116 -0
- package/index.js.map +1 -0
- package/llmBlueprint.d.ts +118 -0
- package/llmBlueprint.js +85 -0
- package/llmBlueprint.js.map +1 -0
- package/package.json +29 -0
- package/package.json.bak +29 -0
- package/playground.d.ts +86 -0
- package/playground.js +70 -0
- package/playground.js.map +1 -0
- package/predictionEnvironment.d.ts +87 -0
- package/predictionEnvironment.js +71 -0
- package/predictionEnvironment.js.map +1 -0
- package/provider.d.ts +43 -0
- package/provider.js +48 -0
- package/provider.js.map +1 -0
- package/qaApplication.d.ts +148 -0
- package/qaApplication.js +104 -0
- package/qaApplication.js.map +1 -0
- package/registeredModel.d.ts +108 -0
- package/registeredModel.js +86 -0
- package/registeredModel.js.map +1 -0
- package/remoteRepository.d.ts +161 -0
- package/remoteRepository.js +98 -0
- package/remoteRepository.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +196 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +195 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/useCase.d.ts +73 -0
- package/useCase.js +64 -0
- package/useCase.js.map +1 -0
- package/utilities.d.ts +8 -0
- package/utilities.js +101 -0
- package/utilities.js.map +1 -0
- package/vectorDatabase.d.ts +115 -0
- package/vectorDatabase.js +90 -0
- package/vectorDatabase.js.map +1 -0
package/utilities.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare function getEnv(...vars: string[]): string | undefined;
|
|
3
|
+
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
4
|
+
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
5
|
+
export declare function getVersion(): string;
|
|
6
|
+
export declare function callAsync<T>(tok: string, props: pulumi.Inputs, res?: pulumi.Resource, opts?: {
|
|
7
|
+
property?: string;
|
|
8
|
+
}): Promise<T>;
|
package/utilities.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
15
|
+
const runtime = require("@pulumi/pulumi/runtime");
|
|
16
|
+
function getEnv(...vars) {
|
|
17
|
+
for (const v of vars) {
|
|
18
|
+
const value = process.env[v];
|
|
19
|
+
if (value) {
|
|
20
|
+
return value;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
exports.getEnv = getEnv;
|
|
26
|
+
function getEnvBoolean(...vars) {
|
|
27
|
+
const s = getEnv(...vars);
|
|
28
|
+
if (s !== undefined) {
|
|
29
|
+
// NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
|
|
30
|
+
// Terraform uses internally when parsing boolean values.
|
|
31
|
+
if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
exports.getEnvBoolean = getEnvBoolean;
|
|
41
|
+
function getEnvNumber(...vars) {
|
|
42
|
+
const s = getEnv(...vars);
|
|
43
|
+
if (s !== undefined) {
|
|
44
|
+
const f = parseFloat(s);
|
|
45
|
+
if (!isNaN(f)) {
|
|
46
|
+
return f;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
exports.getEnvNumber = getEnvNumber;
|
|
52
|
+
function getVersion() {
|
|
53
|
+
let version = require('./package.json').version;
|
|
54
|
+
// Node allows for the version to be prefixed by a "v", while semver doesn't.
|
|
55
|
+
// If there is a v, strip it off.
|
|
56
|
+
if (version.indexOf('v') === 0) {
|
|
57
|
+
version = version.slice(1);
|
|
58
|
+
}
|
|
59
|
+
return version;
|
|
60
|
+
}
|
|
61
|
+
exports.getVersion = getVersion;
|
|
62
|
+
/** @internal */
|
|
63
|
+
function resourceOptsDefaults() {
|
|
64
|
+
return { version: getVersion(), pluginDownloadURL: "github://api.github.com/datarobot-community/pulumi-datarobot" };
|
|
65
|
+
}
|
|
66
|
+
exports.resourceOptsDefaults = resourceOptsDefaults;
|
|
67
|
+
/** @internal */
|
|
68
|
+
function lazyLoad(exports, props, loadModule) {
|
|
69
|
+
for (let property of props) {
|
|
70
|
+
Object.defineProperty(exports, property, {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () {
|
|
73
|
+
return loadModule()[property];
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.lazyLoad = lazyLoad;
|
|
79
|
+
function callAsync(tok, props, res, opts) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const o = runtime.call(tok, props, res);
|
|
82
|
+
const value = yield o.promise(true /*withUnknowns*/);
|
|
83
|
+
const isKnown = yield o.isKnown;
|
|
84
|
+
const isSecret = yield o.isSecret;
|
|
85
|
+
const problem = !isKnown ? "an unknown value"
|
|
86
|
+
: isSecret ? "a secret value"
|
|
87
|
+
: undefined;
|
|
88
|
+
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
89
|
+
if (problem) {
|
|
90
|
+
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
|
91
|
+
"This is an error in the provider, please report this to the provider developer.");
|
|
92
|
+
}
|
|
93
|
+
// Extract a single property if requested.
|
|
94
|
+
if (opts && opts.property) {
|
|
95
|
+
return value[opts.property];
|
|
96
|
+
}
|
|
97
|
+
return value;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
exports.callAsync = callAsync;
|
|
101
|
+
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAGjF,kDAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE;QACjB,uGAAuG;QACvG,yDAAyD;QACzD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,EAAE;YAC1E,OAAO,IAAI,CAAC;SACf;QACD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,EAAE;YAC7E,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAA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AAE,GAAG,CAAC,CAAC;QAChD,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACrD,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,OAAO,CAAC;QAChC,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,QAAQ,CAAC;QAClC,MAAM,OAAO,GACT,CAAC,OAAO,CAAC,CAAC,CAAC,kBAAkB;YAC7B,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB;gBAC7B,CAAC,CAAC,SAAS,CAAC;QAChB,sGAAsG;QACtG,IAAI,OAAO,EAAE;YACT,MAAM,IAAI,KAAK,CAAC,0BAA0B,GAAG,0BAA0B,OAAO,IAAI;gBAC9E,iFAAiF,CAAC,CAAC;SAC1F;QACD,0CAA0C;QAC1C,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE;YACvB,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SAC/B;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;CAAA;AAxBD,8BAwBC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Vector database
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as datarobot from "@datarobot/pulumi-datarobot";
|
|
12
|
+
*
|
|
13
|
+
* const exampleUseCase = new datarobot.UseCase("exampleUseCase", {description: "Description for the example use case"});
|
|
14
|
+
* const exampleDatasetFromFile = new datarobot.DatasetFromFile("exampleDatasetFromFile", {
|
|
15
|
+
* sourceFile: "[Path to file to upload]",
|
|
16
|
+
* useCaseId: exampleUseCase.id,
|
|
17
|
+
* });
|
|
18
|
+
* const exampleVectorDatabase = new datarobot.VectorDatabase("exampleVectorDatabase", {
|
|
19
|
+
* useCaseId: exampleUseCase.id,
|
|
20
|
+
* datasetId: exampleDatasetFromFile.id,
|
|
21
|
+
* });
|
|
22
|
+
* // Optional
|
|
23
|
+
* // chunking_parameters = {
|
|
24
|
+
* // chunk_overlap_percentage = 0
|
|
25
|
+
* // chunk_size = 512
|
|
26
|
+
* // chunking_method = "recursive"
|
|
27
|
+
* // embedding_model = "jinaai/jina-embedding-t-en-v1"
|
|
28
|
+
* // separators = ["\n", " "]
|
|
29
|
+
* // }
|
|
30
|
+
* export const exampleId = exampleVectorDatabase.id;
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare class VectorDatabase extends pulumi.CustomResource {
|
|
34
|
+
/**
|
|
35
|
+
* Get an existing VectorDatabase resource's state with the given name, ID, and optional extra
|
|
36
|
+
* properties used to qualify the lookup.
|
|
37
|
+
*
|
|
38
|
+
* @param name The _unique_ name of the resulting resource.
|
|
39
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
40
|
+
* @param state Any extra arguments used during the lookup.
|
|
41
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
+
*/
|
|
43
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VectorDatabaseState, opts?: pulumi.CustomResourceOptions): VectorDatabase;
|
|
44
|
+
/**
|
|
45
|
+
* Returns true if the given object is an instance of VectorDatabase. This is designed to work even
|
|
46
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
47
|
+
*/
|
|
48
|
+
static isInstance(obj: any): obj is VectorDatabase;
|
|
49
|
+
/**
|
|
50
|
+
* The chunking parameters for the Model.
|
|
51
|
+
*/
|
|
52
|
+
readonly chunkingParameters: pulumi.Output<outputs.VectorDatabaseChunkingParameters>;
|
|
53
|
+
/**
|
|
54
|
+
* The id of the Vector Database.
|
|
55
|
+
*/
|
|
56
|
+
readonly datasetId: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* The name of the VectorDatabase.
|
|
59
|
+
*/
|
|
60
|
+
readonly name: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* The id of the Use Case.
|
|
63
|
+
*/
|
|
64
|
+
readonly useCaseId: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Create a VectorDatabase resource with the given unique name, arguments, and options.
|
|
67
|
+
*
|
|
68
|
+
* @param name The _unique_ name of the resource.
|
|
69
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
70
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
71
|
+
*/
|
|
72
|
+
constructor(name: string, args: VectorDatabaseArgs, opts?: pulumi.CustomResourceOptions);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Input properties used for looking up and filtering VectorDatabase resources.
|
|
76
|
+
*/
|
|
77
|
+
export interface VectorDatabaseState {
|
|
78
|
+
/**
|
|
79
|
+
* The chunking parameters for the Model.
|
|
80
|
+
*/
|
|
81
|
+
chunkingParameters?: pulumi.Input<inputs.VectorDatabaseChunkingParameters>;
|
|
82
|
+
/**
|
|
83
|
+
* The id of the Vector Database.
|
|
84
|
+
*/
|
|
85
|
+
datasetId?: pulumi.Input<string>;
|
|
86
|
+
/**
|
|
87
|
+
* The name of the VectorDatabase.
|
|
88
|
+
*/
|
|
89
|
+
name?: pulumi.Input<string>;
|
|
90
|
+
/**
|
|
91
|
+
* The id of the Use Case.
|
|
92
|
+
*/
|
|
93
|
+
useCaseId?: pulumi.Input<string>;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* The set of arguments for constructing a VectorDatabase resource.
|
|
97
|
+
*/
|
|
98
|
+
export interface VectorDatabaseArgs {
|
|
99
|
+
/**
|
|
100
|
+
* The chunking parameters for the Model.
|
|
101
|
+
*/
|
|
102
|
+
chunkingParameters?: pulumi.Input<inputs.VectorDatabaseChunkingParameters>;
|
|
103
|
+
/**
|
|
104
|
+
* The id of the Vector Database.
|
|
105
|
+
*/
|
|
106
|
+
datasetId: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* The name of the VectorDatabase.
|
|
109
|
+
*/
|
|
110
|
+
name?: pulumi.Input<string>;
|
|
111
|
+
/**
|
|
112
|
+
* The id of the Use Case.
|
|
113
|
+
*/
|
|
114
|
+
useCaseId: pulumi.Input<string>;
|
|
115
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.VectorDatabase = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Vector database
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as datarobot from "@datarobot/pulumi-datarobot";
|
|
16
|
+
*
|
|
17
|
+
* const exampleUseCase = new datarobot.UseCase("exampleUseCase", {description: "Description for the example use case"});
|
|
18
|
+
* const exampleDatasetFromFile = new datarobot.DatasetFromFile("exampleDatasetFromFile", {
|
|
19
|
+
* sourceFile: "[Path to file to upload]",
|
|
20
|
+
* useCaseId: exampleUseCase.id,
|
|
21
|
+
* });
|
|
22
|
+
* const exampleVectorDatabase = new datarobot.VectorDatabase("exampleVectorDatabase", {
|
|
23
|
+
* useCaseId: exampleUseCase.id,
|
|
24
|
+
* datasetId: exampleDatasetFromFile.id,
|
|
25
|
+
* });
|
|
26
|
+
* // Optional
|
|
27
|
+
* // chunking_parameters = {
|
|
28
|
+
* // chunk_overlap_percentage = 0
|
|
29
|
+
* // chunk_size = 512
|
|
30
|
+
* // chunking_method = "recursive"
|
|
31
|
+
* // embedding_model = "jinaai/jina-embedding-t-en-v1"
|
|
32
|
+
* // separators = ["\n", " "]
|
|
33
|
+
* // }
|
|
34
|
+
* export const exampleId = exampleVectorDatabase.id;
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
class VectorDatabase extends pulumi.CustomResource {
|
|
38
|
+
/**
|
|
39
|
+
* Get an existing VectorDatabase resource's state with the given name, ID, and optional extra
|
|
40
|
+
* properties used to qualify the lookup.
|
|
41
|
+
*
|
|
42
|
+
* @param name The _unique_ name of the resulting resource.
|
|
43
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
44
|
+
* @param state Any extra arguments used during the lookup.
|
|
45
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
46
|
+
*/
|
|
47
|
+
static get(name, id, state, opts) {
|
|
48
|
+
return new VectorDatabase(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Returns true if the given object is an instance of VectorDatabase. This is designed to work even
|
|
52
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
53
|
+
*/
|
|
54
|
+
static isInstance(obj) {
|
|
55
|
+
if (obj === undefined || obj === null) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
return obj['__pulumiType'] === VectorDatabase.__pulumiType;
|
|
59
|
+
}
|
|
60
|
+
constructor(name, argsOrState, opts) {
|
|
61
|
+
let resourceInputs = {};
|
|
62
|
+
opts = opts || {};
|
|
63
|
+
if (opts.id) {
|
|
64
|
+
const state = argsOrState;
|
|
65
|
+
resourceInputs["chunkingParameters"] = state ? state.chunkingParameters : undefined;
|
|
66
|
+
resourceInputs["datasetId"] = state ? state.datasetId : undefined;
|
|
67
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
68
|
+
resourceInputs["useCaseId"] = state ? state.useCaseId : undefined;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
const args = argsOrState;
|
|
72
|
+
if ((!args || args.datasetId === undefined) && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'datasetId'");
|
|
74
|
+
}
|
|
75
|
+
if ((!args || args.useCaseId === undefined) && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'useCaseId'");
|
|
77
|
+
}
|
|
78
|
+
resourceInputs["chunkingParameters"] = args ? args.chunkingParameters : undefined;
|
|
79
|
+
resourceInputs["datasetId"] = args ? args.datasetId : undefined;
|
|
80
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
81
|
+
resourceInputs["useCaseId"] = args ? args.useCaseId : undefined;
|
|
82
|
+
}
|
|
83
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
84
|
+
super(VectorDatabase.__pulumiType, name, resourceInputs, opts);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.VectorDatabase = VectorDatabase;
|
|
88
|
+
/** @internal */
|
|
89
|
+
VectorDatabase.__pulumiType = 'datarobot:index/vectorDatabase:VectorDatabase';
|
|
90
|
+
//# sourceMappingURL=vectorDatabase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vectorDatabase.js","sourceRoot":"","sources":["../vectorDatabase.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG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