@datarobot/pulumi-datarobot 0.4.2 → 0.4.8
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/customJob.d.ts +202 -0
- package/customJob.js +99 -0
- package/customJob.js.map +1 -0
- package/customModel.d.ts +1 -1
- package/customModel.js +1 -1
- package/datasetFromDatasource.d.ts +153 -0
- package/datasetFromDatasource.js +90 -0
- package/datasetFromDatasource.js.map +1 -0
- package/datasource.d.ts +77 -0
- package/datasource.js +65 -0
- package/datasource.js.map +1 -0
- package/datastore.d.ts +161 -0
- package/datastore.js +112 -0
- package/datastore.js.map +1 -0
- package/index.d.ts +12 -0
- package/index.js +21 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types/input.d.ts +74 -0
- package/types/output.d.ts +74 -0
package/customJob.d.ts
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Custom Job
|
|
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 example = new datarobot.CustomJob("example", {
|
|
14
|
+
* jobType: "retraining",
|
|
15
|
+
* files: [
|
|
16
|
+
* "file1.py",
|
|
17
|
+
* "file2.py",
|
|
18
|
+
* ],
|
|
19
|
+
* environmentId: "65f9b27eab986d30d4c64268",
|
|
20
|
+
* description: "Example Custom Job Description",
|
|
21
|
+
* runtimeParameterValues: [{
|
|
22
|
+
* key: "EXAMPLE_PARAM",
|
|
23
|
+
* type: "string",
|
|
24
|
+
* value: "val",
|
|
25
|
+
* }],
|
|
26
|
+
* egressNetworkPolicy: "none",
|
|
27
|
+
* resourceBundleId: "cpu.micro",
|
|
28
|
+
* });
|
|
29
|
+
* export const exampleId = example.id;
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare class CustomJob extends pulumi.CustomResource {
|
|
33
|
+
/**
|
|
34
|
+
* Get an existing CustomJob resource's state with the given name, ID, and optional extra
|
|
35
|
+
* properties used to qualify the lookup.
|
|
36
|
+
*
|
|
37
|
+
* @param name The _unique_ name of the resulting resource.
|
|
38
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
39
|
+
* @param state Any extra arguments used during the lookup.
|
|
40
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
41
|
+
*/
|
|
42
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CustomJobState, opts?: pulumi.CustomResourceOptions): CustomJob;
|
|
43
|
+
/**
|
|
44
|
+
* Returns true if the given object is an instance of CustomJob. This is designed to work even
|
|
45
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
46
|
+
*/
|
|
47
|
+
static isInstance(obj: any): obj is CustomJob;
|
|
48
|
+
/**
|
|
49
|
+
* The description of the Custom Job.
|
|
50
|
+
*/
|
|
51
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* The egress network policy for the Job.
|
|
54
|
+
*/
|
|
55
|
+
readonly egressNetworkPolicy: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* The ID of the environment to use with the Job.
|
|
58
|
+
*/
|
|
59
|
+
readonly environmentId: pulumi.Output<string>;
|
|
60
|
+
/**
|
|
61
|
+
* The ID of the environment version to use with the Job.
|
|
62
|
+
*/
|
|
63
|
+
readonly environmentVersionId: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Job. If list is of strings, then basenames will be used for tuples.
|
|
66
|
+
*/
|
|
67
|
+
readonly files: pulumi.Output<any | undefined>;
|
|
68
|
+
/**
|
|
69
|
+
* The hash of file contents for each file in files.
|
|
70
|
+
*/
|
|
71
|
+
readonly filesHashes: pulumi.Output<string[]>;
|
|
72
|
+
/**
|
|
73
|
+
* The path to a folder containing files to be uploaded. Each file in the folder is uploaded under path relative to a folder path.
|
|
74
|
+
*/
|
|
75
|
+
readonly folderPath: pulumi.Output<string | undefined>;
|
|
76
|
+
/**
|
|
77
|
+
* The hash of the folder path contents.
|
|
78
|
+
*/
|
|
79
|
+
readonly folderPathHash: pulumi.Output<string>;
|
|
80
|
+
/**
|
|
81
|
+
* The type of the Custom Job.
|
|
82
|
+
*/
|
|
83
|
+
readonly jobType: pulumi.Output<string>;
|
|
84
|
+
/**
|
|
85
|
+
* The name of the Custom Job.
|
|
86
|
+
*/
|
|
87
|
+
readonly name: pulumi.Output<string>;
|
|
88
|
+
/**
|
|
89
|
+
* A single identifier that represents a bundle of resources: Memory, CPU, GPU, etc.
|
|
90
|
+
*/
|
|
91
|
+
readonly resourceBundleId: pulumi.Output<string | undefined>;
|
|
92
|
+
/**
|
|
93
|
+
* Additional parameters to be injected into a Job at runtime.
|
|
94
|
+
*/
|
|
95
|
+
readonly runtimeParameterValues: pulumi.Output<outputs.CustomJobRuntimeParameterValue[]>;
|
|
96
|
+
/**
|
|
97
|
+
* Create a CustomJob resource with the given unique name, arguments, and options.
|
|
98
|
+
*
|
|
99
|
+
* @param name The _unique_ name of the resource.
|
|
100
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
101
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
102
|
+
*/
|
|
103
|
+
constructor(name: string, args?: CustomJobArgs, opts?: pulumi.CustomResourceOptions);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Input properties used for looking up and filtering CustomJob resources.
|
|
107
|
+
*/
|
|
108
|
+
export interface CustomJobState {
|
|
109
|
+
/**
|
|
110
|
+
* The description of the Custom Job.
|
|
111
|
+
*/
|
|
112
|
+
description?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* The egress network policy for the Job.
|
|
115
|
+
*/
|
|
116
|
+
egressNetworkPolicy?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* The ID of the environment to use with the Job.
|
|
119
|
+
*/
|
|
120
|
+
environmentId?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* The ID of the environment version to use with the Job.
|
|
123
|
+
*/
|
|
124
|
+
environmentVersionId?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Job. If list is of strings, then basenames will be used for tuples.
|
|
127
|
+
*/
|
|
128
|
+
files?: any;
|
|
129
|
+
/**
|
|
130
|
+
* The hash of file contents for each file in files.
|
|
131
|
+
*/
|
|
132
|
+
filesHashes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
133
|
+
/**
|
|
134
|
+
* The path to a folder containing files to be uploaded. Each file in the folder is uploaded under path relative to a folder path.
|
|
135
|
+
*/
|
|
136
|
+
folderPath?: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* The hash of the folder path contents.
|
|
139
|
+
*/
|
|
140
|
+
folderPathHash?: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* The type of the Custom Job.
|
|
143
|
+
*/
|
|
144
|
+
jobType?: pulumi.Input<string>;
|
|
145
|
+
/**
|
|
146
|
+
* The name of the Custom Job.
|
|
147
|
+
*/
|
|
148
|
+
name?: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* A single identifier that represents a bundle of resources: Memory, CPU, GPU, etc.
|
|
151
|
+
*/
|
|
152
|
+
resourceBundleId?: pulumi.Input<string>;
|
|
153
|
+
/**
|
|
154
|
+
* Additional parameters to be injected into a Job at runtime.
|
|
155
|
+
*/
|
|
156
|
+
runtimeParameterValues?: pulumi.Input<pulumi.Input<inputs.CustomJobRuntimeParameterValue>[]>;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* The set of arguments for constructing a CustomJob resource.
|
|
160
|
+
*/
|
|
161
|
+
export interface CustomJobArgs {
|
|
162
|
+
/**
|
|
163
|
+
* The description of the Custom Job.
|
|
164
|
+
*/
|
|
165
|
+
description?: pulumi.Input<string>;
|
|
166
|
+
/**
|
|
167
|
+
* The egress network policy for the Job.
|
|
168
|
+
*/
|
|
169
|
+
egressNetworkPolicy?: pulumi.Input<string>;
|
|
170
|
+
/**
|
|
171
|
+
* The ID of the environment to use with the Job.
|
|
172
|
+
*/
|
|
173
|
+
environmentId?: pulumi.Input<string>;
|
|
174
|
+
/**
|
|
175
|
+
* The ID of the environment version to use with the Job.
|
|
176
|
+
*/
|
|
177
|
+
environmentVersionId?: pulumi.Input<string>;
|
|
178
|
+
/**
|
|
179
|
+
* The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Job. If list is of strings, then basenames will be used for tuples.
|
|
180
|
+
*/
|
|
181
|
+
files?: any;
|
|
182
|
+
/**
|
|
183
|
+
* The path to a folder containing files to be uploaded. Each file in the folder is uploaded under path relative to a folder path.
|
|
184
|
+
*/
|
|
185
|
+
folderPath?: pulumi.Input<string>;
|
|
186
|
+
/**
|
|
187
|
+
* The type of the Custom Job.
|
|
188
|
+
*/
|
|
189
|
+
jobType?: pulumi.Input<string>;
|
|
190
|
+
/**
|
|
191
|
+
* The name of the Custom Job.
|
|
192
|
+
*/
|
|
193
|
+
name?: pulumi.Input<string>;
|
|
194
|
+
/**
|
|
195
|
+
* A single identifier that represents a bundle of resources: Memory, CPU, GPU, etc.
|
|
196
|
+
*/
|
|
197
|
+
resourceBundleId?: pulumi.Input<string>;
|
|
198
|
+
/**
|
|
199
|
+
* Additional parameters to be injected into a Job at runtime.
|
|
200
|
+
*/
|
|
201
|
+
runtimeParameterValues?: pulumi.Input<pulumi.Input<inputs.CustomJobRuntimeParameterValue>[]>;
|
|
202
|
+
}
|
package/customJob.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
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.CustomJob = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Custom Job
|
|
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 example = new datarobot.CustomJob("example", {
|
|
18
|
+
* jobType: "retraining",
|
|
19
|
+
* files: [
|
|
20
|
+
* "file1.py",
|
|
21
|
+
* "file2.py",
|
|
22
|
+
* ],
|
|
23
|
+
* environmentId: "65f9b27eab986d30d4c64268",
|
|
24
|
+
* description: "Example Custom Job Description",
|
|
25
|
+
* runtimeParameterValues: [{
|
|
26
|
+
* key: "EXAMPLE_PARAM",
|
|
27
|
+
* type: "string",
|
|
28
|
+
* value: "val",
|
|
29
|
+
* }],
|
|
30
|
+
* egressNetworkPolicy: "none",
|
|
31
|
+
* resourceBundleId: "cpu.micro",
|
|
32
|
+
* });
|
|
33
|
+
* export const exampleId = example.id;
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
class CustomJob extends pulumi.CustomResource {
|
|
37
|
+
/**
|
|
38
|
+
* Get an existing CustomJob resource's state with the given name, ID, and optional extra
|
|
39
|
+
* properties used to qualify the lookup.
|
|
40
|
+
*
|
|
41
|
+
* @param name The _unique_ name of the resulting resource.
|
|
42
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
43
|
+
* @param state Any extra arguments used during the lookup.
|
|
44
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
45
|
+
*/
|
|
46
|
+
static get(name, id, state, opts) {
|
|
47
|
+
return new CustomJob(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Returns true if the given object is an instance of CustomJob. This is designed to work even
|
|
51
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
52
|
+
*/
|
|
53
|
+
static isInstance(obj) {
|
|
54
|
+
if (obj === undefined || obj === null) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
return obj['__pulumiType'] === CustomJob.__pulumiType;
|
|
58
|
+
}
|
|
59
|
+
constructor(name, argsOrState, opts) {
|
|
60
|
+
let resourceInputs = {};
|
|
61
|
+
opts = opts || {};
|
|
62
|
+
if (opts.id) {
|
|
63
|
+
const state = argsOrState;
|
|
64
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
65
|
+
resourceInputs["egressNetworkPolicy"] = state ? state.egressNetworkPolicy : undefined;
|
|
66
|
+
resourceInputs["environmentId"] = state ? state.environmentId : undefined;
|
|
67
|
+
resourceInputs["environmentVersionId"] = state ? state.environmentVersionId : undefined;
|
|
68
|
+
resourceInputs["files"] = state ? state.files : undefined;
|
|
69
|
+
resourceInputs["filesHashes"] = state ? state.filesHashes : undefined;
|
|
70
|
+
resourceInputs["folderPath"] = state ? state.folderPath : undefined;
|
|
71
|
+
resourceInputs["folderPathHash"] = state ? state.folderPathHash : undefined;
|
|
72
|
+
resourceInputs["jobType"] = state ? state.jobType : undefined;
|
|
73
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
74
|
+
resourceInputs["resourceBundleId"] = state ? state.resourceBundleId : undefined;
|
|
75
|
+
resourceInputs["runtimeParameterValues"] = state ? state.runtimeParameterValues : undefined;
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
const args = argsOrState;
|
|
79
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
80
|
+
resourceInputs["egressNetworkPolicy"] = args ? args.egressNetworkPolicy : undefined;
|
|
81
|
+
resourceInputs["environmentId"] = args ? args.environmentId : undefined;
|
|
82
|
+
resourceInputs["environmentVersionId"] = args ? args.environmentVersionId : undefined;
|
|
83
|
+
resourceInputs["files"] = args ? args.files : undefined;
|
|
84
|
+
resourceInputs["folderPath"] = args ? args.folderPath : undefined;
|
|
85
|
+
resourceInputs["jobType"] = args ? args.jobType : undefined;
|
|
86
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
87
|
+
resourceInputs["resourceBundleId"] = args ? args.resourceBundleId : undefined;
|
|
88
|
+
resourceInputs["runtimeParameterValues"] = args ? args.runtimeParameterValues : undefined;
|
|
89
|
+
resourceInputs["filesHashes"] = undefined /*out*/;
|
|
90
|
+
resourceInputs["folderPathHash"] = undefined /*out*/;
|
|
91
|
+
}
|
|
92
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
93
|
+
super(CustomJob.__pulumiType, name, resourceInputs, opts);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.CustomJob = CustomJob;
|
|
97
|
+
/** @internal */
|
|
98
|
+
CustomJob.__pulumiType = 'datarobot:index/customJob:CustomJob';
|
|
99
|
+
//# sourceMappingURL=customJob.js.map
|
package/customJob.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customJob.js","sourceRoot":"","sources":["../customJob.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UA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C,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1F,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACxD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AAvHL,8BAwHC;AA1GG,gBAAgB;AACO,sBAAY,GAAG,qCAAqC,CAAC"}
|
package/customModel.d.ts
CHANGED
package/customModel.js
CHANGED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Data Set from Data Source.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as datarobot from "@datarobot/pulumi-datarobot";
|
|
10
|
+
*
|
|
11
|
+
* const example = new datarobot.DatasetFromDatasource("example", {
|
|
12
|
+
* datasourceId: datarobot_datasource.example.id,
|
|
13
|
+
* credentialId: datarobot_credential.example.id,
|
|
14
|
+
* doSnapshot: false,
|
|
15
|
+
* persistDataAfterIngestion: false,
|
|
16
|
+
* useKerberos: true,
|
|
17
|
+
* categories: ["TRAINING"],
|
|
18
|
+
* useCaseIds: [datarobot_use_case.example.id],
|
|
19
|
+
* });
|
|
20
|
+
* export const exampleId = example.id;
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare class DatasetFromDatasource extends pulumi.CustomResource {
|
|
24
|
+
/**
|
|
25
|
+
* Get an existing DatasetFromDatasource resource's state with the given name, ID, and optional extra
|
|
26
|
+
* properties used to qualify the lookup.
|
|
27
|
+
*
|
|
28
|
+
* @param name The _unique_ name of the resulting resource.
|
|
29
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
30
|
+
* @param state Any extra arguments used during the lookup.
|
|
31
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
32
|
+
*/
|
|
33
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DatasetFromDatasourceState, opts?: pulumi.CustomResourceOptions): DatasetFromDatasource;
|
|
34
|
+
/**
|
|
35
|
+
* Returns true if the given object is an instance of DatasetFromDatasource. This is designed to work even
|
|
36
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
37
|
+
*/
|
|
38
|
+
static isInstance(obj: any): obj is DatasetFromDatasource;
|
|
39
|
+
/**
|
|
40
|
+
* An array of strings describing the intended use of the dataset.
|
|
41
|
+
*/
|
|
42
|
+
readonly categories: pulumi.Output<string[] | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* The ID of the set of credentials to use.
|
|
45
|
+
*/
|
|
46
|
+
readonly credentialId: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* The ID for the DataSource to use as the source of data.
|
|
49
|
+
*/
|
|
50
|
+
readonly dataSourceId: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* If unset, uses the server default: True. If true, creates a snapshot dataset; if false, creates a remote dataset.
|
|
53
|
+
*/
|
|
54
|
+
readonly doSnapshot: pulumi.Output<boolean>;
|
|
55
|
+
/**
|
|
56
|
+
* If unset, uses the server default: True. If true, will enforce saving all data (for download and sampling) and will allow a user to view extended data profile (which includes data statistics like min/max/median/mean, histogram, etc.). If false, will not enforce saving data. The data schema (feature names and types) still will be available.
|
|
57
|
+
*/
|
|
58
|
+
readonly persistDataAfterIngestion: pulumi.Output<boolean>;
|
|
59
|
+
/**
|
|
60
|
+
* The number of rows fetched during dataset registration.
|
|
61
|
+
*/
|
|
62
|
+
readonly sampleSizeRows: pulumi.Output<number | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* The list of Use Case IDs to add the Dataset to.
|
|
65
|
+
*/
|
|
66
|
+
readonly useCaseIds: pulumi.Output<string[] | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* If unset, uses the server default: False. If true, use kerberos authentication for database authentication.
|
|
69
|
+
*/
|
|
70
|
+
readonly useKerberos: pulumi.Output<boolean>;
|
|
71
|
+
/**
|
|
72
|
+
* Create a DatasetFromDatasource resource with the given unique name, arguments, and options.
|
|
73
|
+
*
|
|
74
|
+
* @param name The _unique_ name of the resource.
|
|
75
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
76
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
77
|
+
*/
|
|
78
|
+
constructor(name: string, args: DatasetFromDatasourceArgs, opts?: pulumi.CustomResourceOptions);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Input properties used for looking up and filtering DatasetFromDatasource resources.
|
|
82
|
+
*/
|
|
83
|
+
export interface DatasetFromDatasourceState {
|
|
84
|
+
/**
|
|
85
|
+
* An array of strings describing the intended use of the dataset.
|
|
86
|
+
*/
|
|
87
|
+
categories?: pulumi.Input<pulumi.Input<string>[]>;
|
|
88
|
+
/**
|
|
89
|
+
* The ID of the set of credentials to use.
|
|
90
|
+
*/
|
|
91
|
+
credentialId?: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* The ID for the DataSource to use as the source of data.
|
|
94
|
+
*/
|
|
95
|
+
dataSourceId?: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* If unset, uses the server default: True. If true, creates a snapshot dataset; if false, creates a remote dataset.
|
|
98
|
+
*/
|
|
99
|
+
doSnapshot?: pulumi.Input<boolean>;
|
|
100
|
+
/**
|
|
101
|
+
* If unset, uses the server default: True. If true, will enforce saving all data (for download and sampling) and will allow a user to view extended data profile (which includes data statistics like min/max/median/mean, histogram, etc.). If false, will not enforce saving data. The data schema (feature names and types) still will be available.
|
|
102
|
+
*/
|
|
103
|
+
persistDataAfterIngestion?: pulumi.Input<boolean>;
|
|
104
|
+
/**
|
|
105
|
+
* The number of rows fetched during dataset registration.
|
|
106
|
+
*/
|
|
107
|
+
sampleSizeRows?: pulumi.Input<number>;
|
|
108
|
+
/**
|
|
109
|
+
* The list of Use Case IDs to add the Dataset to.
|
|
110
|
+
*/
|
|
111
|
+
useCaseIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
112
|
+
/**
|
|
113
|
+
* If unset, uses the server default: False. If true, use kerberos authentication for database authentication.
|
|
114
|
+
*/
|
|
115
|
+
useKerberos?: pulumi.Input<boolean>;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* The set of arguments for constructing a DatasetFromDatasource resource.
|
|
119
|
+
*/
|
|
120
|
+
export interface DatasetFromDatasourceArgs {
|
|
121
|
+
/**
|
|
122
|
+
* An array of strings describing the intended use of the dataset.
|
|
123
|
+
*/
|
|
124
|
+
categories?: pulumi.Input<pulumi.Input<string>[]>;
|
|
125
|
+
/**
|
|
126
|
+
* The ID of the set of credentials to use.
|
|
127
|
+
*/
|
|
128
|
+
credentialId: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* The ID for the DataSource to use as the source of data.
|
|
131
|
+
*/
|
|
132
|
+
dataSourceId: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* If unset, uses the server default: True. If true, creates a snapshot dataset; if false, creates a remote dataset.
|
|
135
|
+
*/
|
|
136
|
+
doSnapshot?: pulumi.Input<boolean>;
|
|
137
|
+
/**
|
|
138
|
+
* If unset, uses the server default: True. If true, will enforce saving all data (for download and sampling) and will allow a user to view extended data profile (which includes data statistics like min/max/median/mean, histogram, etc.). If false, will not enforce saving data. The data schema (feature names and types) still will be available.
|
|
139
|
+
*/
|
|
140
|
+
persistDataAfterIngestion?: pulumi.Input<boolean>;
|
|
141
|
+
/**
|
|
142
|
+
* The number of rows fetched during dataset registration.
|
|
143
|
+
*/
|
|
144
|
+
sampleSizeRows?: pulumi.Input<number>;
|
|
145
|
+
/**
|
|
146
|
+
* The list of Use Case IDs to add the Dataset to.
|
|
147
|
+
*/
|
|
148
|
+
useCaseIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
149
|
+
/**
|
|
150
|
+
* If unset, uses the server default: False. If true, use kerberos authentication for database authentication.
|
|
151
|
+
*/
|
|
152
|
+
useKerberos?: pulumi.Input<boolean>;
|
|
153
|
+
}
|
|
@@ -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.DatasetFromDatasource = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data Set from Data Source.
|
|
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 example = new datarobot.DatasetFromDatasource("example", {
|
|
18
|
+
* datasourceId: datarobot_datasource.example.id,
|
|
19
|
+
* credentialId: datarobot_credential.example.id,
|
|
20
|
+
* doSnapshot: false,
|
|
21
|
+
* persistDataAfterIngestion: false,
|
|
22
|
+
* useKerberos: true,
|
|
23
|
+
* categories: ["TRAINING"],
|
|
24
|
+
* useCaseIds: [datarobot_use_case.example.id],
|
|
25
|
+
* });
|
|
26
|
+
* export const exampleId = example.id;
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
class DatasetFromDatasource extends pulumi.CustomResource {
|
|
30
|
+
/**
|
|
31
|
+
* Get an existing DatasetFromDatasource resource's state with the given name, ID, and optional extra
|
|
32
|
+
* properties used to qualify the lookup.
|
|
33
|
+
*
|
|
34
|
+
* @param name The _unique_ name of the resulting resource.
|
|
35
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
36
|
+
* @param state Any extra arguments used during the lookup.
|
|
37
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
38
|
+
*/
|
|
39
|
+
static get(name, id, state, opts) {
|
|
40
|
+
return new DatasetFromDatasource(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Returns true if the given object is an instance of DatasetFromDatasource. This is designed to work even
|
|
44
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
45
|
+
*/
|
|
46
|
+
static isInstance(obj) {
|
|
47
|
+
if (obj === undefined || obj === null) {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
return obj['__pulumiType'] === DatasetFromDatasource.__pulumiType;
|
|
51
|
+
}
|
|
52
|
+
constructor(name, argsOrState, opts) {
|
|
53
|
+
let resourceInputs = {};
|
|
54
|
+
opts = opts || {};
|
|
55
|
+
if (opts.id) {
|
|
56
|
+
const state = argsOrState;
|
|
57
|
+
resourceInputs["categories"] = state ? state.categories : undefined;
|
|
58
|
+
resourceInputs["credentialId"] = state ? state.credentialId : undefined;
|
|
59
|
+
resourceInputs["dataSourceId"] = state ? state.dataSourceId : undefined;
|
|
60
|
+
resourceInputs["doSnapshot"] = state ? state.doSnapshot : undefined;
|
|
61
|
+
resourceInputs["persistDataAfterIngestion"] = state ? state.persistDataAfterIngestion : undefined;
|
|
62
|
+
resourceInputs["sampleSizeRows"] = state ? state.sampleSizeRows : undefined;
|
|
63
|
+
resourceInputs["useCaseIds"] = state ? state.useCaseIds : undefined;
|
|
64
|
+
resourceInputs["useKerberos"] = state ? state.useKerberos : undefined;
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
const args = argsOrState;
|
|
68
|
+
if ((!args || args.credentialId === undefined) && !opts.urn) {
|
|
69
|
+
throw new Error("Missing required property 'credentialId'");
|
|
70
|
+
}
|
|
71
|
+
if ((!args || args.dataSourceId === undefined) && !opts.urn) {
|
|
72
|
+
throw new Error("Missing required property 'dataSourceId'");
|
|
73
|
+
}
|
|
74
|
+
resourceInputs["categories"] = args ? args.categories : undefined;
|
|
75
|
+
resourceInputs["credentialId"] = args ? args.credentialId : undefined;
|
|
76
|
+
resourceInputs["dataSourceId"] = args ? args.dataSourceId : undefined;
|
|
77
|
+
resourceInputs["doSnapshot"] = args ? args.doSnapshot : undefined;
|
|
78
|
+
resourceInputs["persistDataAfterIngestion"] = args ? args.persistDataAfterIngestion : undefined;
|
|
79
|
+
resourceInputs["sampleSizeRows"] = args ? args.sampleSizeRows : undefined;
|
|
80
|
+
resourceInputs["useCaseIds"] = args ? args.useCaseIds : undefined;
|
|
81
|
+
resourceInputs["useKerberos"] = args ? args.useKerberos : undefined;
|
|
82
|
+
}
|
|
83
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
84
|
+
super(DatasetFromDatasource.__pulumiType, name, resourceInputs, opts);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.DatasetFromDatasource = DatasetFromDatasource;
|
|
88
|
+
/** @internal */
|
|
89
|
+
DatasetFromDatasource.__pulumiType = 'datarobot:index/datasetFromDatasource:DatasetFromDatasource';
|
|
90
|
+
//# sourceMappingURL=datasetFromDatasource.js.map
|
|
@@ -0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AAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,2BAA2B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChG,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;;AArGL,sDAsGC;AAxFG,gBAAgB;AACO,kCAAY,GAAG,6DAA6D,CAAC"}
|
package/datasource.d.ts
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Data source
|
|
6
|
+
*/
|
|
7
|
+
export declare class Datasource extends pulumi.CustomResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get an existing Datasource resource's state with the given name, ID, and optional extra
|
|
10
|
+
* properties used to qualify the lookup.
|
|
11
|
+
*
|
|
12
|
+
* @param name The _unique_ name of the resulting resource.
|
|
13
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
14
|
+
* @param state Any extra arguments used during the lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DatasourceState, opts?: pulumi.CustomResourceOptions): Datasource;
|
|
18
|
+
/**
|
|
19
|
+
* Returns true if the given object is an instance of Datasource. This is designed to work even
|
|
20
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
21
|
+
*/
|
|
22
|
+
static isInstance(obj: any): obj is Datasource;
|
|
23
|
+
/**
|
|
24
|
+
* The user-friendly name of the data source.
|
|
25
|
+
*/
|
|
26
|
+
readonly canonicalName: pulumi.Output<string>;
|
|
27
|
+
/**
|
|
28
|
+
* The type of data source.
|
|
29
|
+
*/
|
|
30
|
+
readonly dataSourceType: pulumi.Output<string>;
|
|
31
|
+
/**
|
|
32
|
+
* The data source parameters.
|
|
33
|
+
*/
|
|
34
|
+
readonly params: pulumi.Output<outputs.DatasourceParams>;
|
|
35
|
+
/**
|
|
36
|
+
* Create a Datasource resource with the given unique name, arguments, and options.
|
|
37
|
+
*
|
|
38
|
+
* @param name The _unique_ name of the resource.
|
|
39
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
40
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
41
|
+
*/
|
|
42
|
+
constructor(name: string, args: DatasourceArgs, opts?: pulumi.CustomResourceOptions);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Input properties used for looking up and filtering Datasource resources.
|
|
46
|
+
*/
|
|
47
|
+
export interface DatasourceState {
|
|
48
|
+
/**
|
|
49
|
+
* The user-friendly name of the data source.
|
|
50
|
+
*/
|
|
51
|
+
canonicalName?: pulumi.Input<string>;
|
|
52
|
+
/**
|
|
53
|
+
* The type of data source.
|
|
54
|
+
*/
|
|
55
|
+
dataSourceType?: pulumi.Input<string>;
|
|
56
|
+
/**
|
|
57
|
+
* The data source parameters.
|
|
58
|
+
*/
|
|
59
|
+
params?: pulumi.Input<inputs.DatasourceParams>;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* The set of arguments for constructing a Datasource resource.
|
|
63
|
+
*/
|
|
64
|
+
export interface DatasourceArgs {
|
|
65
|
+
/**
|
|
66
|
+
* The user-friendly name of the data source.
|
|
67
|
+
*/
|
|
68
|
+
canonicalName: pulumi.Input<string>;
|
|
69
|
+
/**
|
|
70
|
+
* The type of data source.
|
|
71
|
+
*/
|
|
72
|
+
dataSourceType: pulumi.Input<string>;
|
|
73
|
+
/**
|
|
74
|
+
* The data source parameters.
|
|
75
|
+
*/
|
|
76
|
+
params: pulumi.Input<inputs.DatasourceParams>;
|
|
77
|
+
}
|