@datarobot/pulumi-datarobot 0.2.2 → 0.2.4
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/applicationSource.d.ts +31 -4
- package/applicationSource.js +11 -4
- package/applicationSource.js.map +1 -1
- package/package.json +1 -1
package/applicationSource.d.ts
CHANGED
|
@@ -10,10 +10,13 @@ import * as outputs from "./types/output";
|
|
|
10
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
11
11
|
* import * as datarobot from "@datarobot/pulumi-datarobot";
|
|
12
12
|
*
|
|
13
|
-
* const example = new datarobot.ApplicationSource("example", {
|
|
14
|
-
*
|
|
15
|
-
* [
|
|
16
|
-
*
|
|
13
|
+
* const example = new datarobot.ApplicationSource("example", {
|
|
14
|
+
* baseEnvironmentId: "6542cd582a9d3d51bf4ac71e",
|
|
15
|
+
* files: [
|
|
16
|
+
* ["start-app.sh"],
|
|
17
|
+
* ["streamlit-app.py"],
|
|
18
|
+
* ],
|
|
19
|
+
* });
|
|
17
20
|
* export const datarobotApplicationSourceId = example.id;
|
|
18
21
|
* export const datarobotApplicationSourceVersionId = example.versionId;
|
|
19
22
|
* ```
|
|
@@ -34,6 +37,14 @@ export declare class ApplicationSource extends pulumi.CustomResource {
|
|
|
34
37
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
35
38
|
*/
|
|
36
39
|
static isInstance(obj: any): obj is ApplicationSource;
|
|
40
|
+
/**
|
|
41
|
+
* The ID of the base environment for the Application Source.
|
|
42
|
+
*/
|
|
43
|
+
readonly baseEnvironmentId: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* The ID of the base environment version for the Application Source.
|
|
46
|
+
*/
|
|
47
|
+
readonly baseEnvironmentVersionId: pulumi.Output<string>;
|
|
37
48
|
/**
|
|
38
49
|
* The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Application Source. If list is of strings, then basenames will be used for tuples.
|
|
39
50
|
*/
|
|
@@ -79,6 +90,14 @@ export declare class ApplicationSource extends pulumi.CustomResource {
|
|
|
79
90
|
* Input properties used for looking up and filtering ApplicationSource resources.
|
|
80
91
|
*/
|
|
81
92
|
export interface ApplicationSourceState {
|
|
93
|
+
/**
|
|
94
|
+
* The ID of the base environment for the Application Source.
|
|
95
|
+
*/
|
|
96
|
+
baseEnvironmentId?: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* The ID of the base environment version for the Application Source.
|
|
99
|
+
*/
|
|
100
|
+
baseEnvironmentVersionId?: pulumi.Input<string>;
|
|
82
101
|
/**
|
|
83
102
|
* The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Application Source. If list is of strings, then basenames will be used for tuples.
|
|
84
103
|
*/
|
|
@@ -116,6 +135,14 @@ export interface ApplicationSourceState {
|
|
|
116
135
|
* The set of arguments for constructing a ApplicationSource resource.
|
|
117
136
|
*/
|
|
118
137
|
export interface ApplicationSourceArgs {
|
|
138
|
+
/**
|
|
139
|
+
* The ID of the base environment for the Application Source.
|
|
140
|
+
*/
|
|
141
|
+
baseEnvironmentId?: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* The ID of the base environment version for the Application Source.
|
|
144
|
+
*/
|
|
145
|
+
baseEnvironmentVersionId?: pulumi.Input<string>;
|
|
119
146
|
/**
|
|
120
147
|
* The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Application Source. If list is of strings, then basenames will be used for tuples.
|
|
121
148
|
*/
|
package/applicationSource.js
CHANGED
|
@@ -14,10 +14,13 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as datarobot from "@datarobot/pulumi-datarobot";
|
|
16
16
|
*
|
|
17
|
-
* const example = new datarobot.ApplicationSource("example", {
|
|
18
|
-
*
|
|
19
|
-
* [
|
|
20
|
-
*
|
|
17
|
+
* const example = new datarobot.ApplicationSource("example", {
|
|
18
|
+
* baseEnvironmentId: "6542cd582a9d3d51bf4ac71e",
|
|
19
|
+
* files: [
|
|
20
|
+
* ["start-app.sh"],
|
|
21
|
+
* ["streamlit-app.py"],
|
|
22
|
+
* ],
|
|
23
|
+
* });
|
|
21
24
|
* export const datarobotApplicationSourceId = example.id;
|
|
22
25
|
* export const datarobotApplicationSourceVersionId = example.versionId;
|
|
23
26
|
* ```
|
|
@@ -50,6 +53,8 @@ class ApplicationSource extends pulumi.CustomResource {
|
|
|
50
53
|
opts = opts || {};
|
|
51
54
|
if (opts.id) {
|
|
52
55
|
const state = argsOrState;
|
|
56
|
+
resourceInputs["baseEnvironmentId"] = state ? state.baseEnvironmentId : undefined;
|
|
57
|
+
resourceInputs["baseEnvironmentVersionId"] = state ? state.baseEnvironmentVersionId : undefined;
|
|
53
58
|
resourceInputs["files"] = state ? state.files : undefined;
|
|
54
59
|
resourceInputs["filesHashes"] = state ? state.filesHashes : undefined;
|
|
55
60
|
resourceInputs["folderPath"] = state ? state.folderPath : undefined;
|
|
@@ -61,6 +66,8 @@ class ApplicationSource extends pulumi.CustomResource {
|
|
|
61
66
|
}
|
|
62
67
|
else {
|
|
63
68
|
const args = argsOrState;
|
|
69
|
+
resourceInputs["baseEnvironmentId"] = args ? args.baseEnvironmentId : undefined;
|
|
70
|
+
resourceInputs["baseEnvironmentVersionId"] = args ? args.baseEnvironmentVersionId : undefined;
|
|
64
71
|
resourceInputs["files"] = args ? args.files : undefined;
|
|
65
72
|
resourceInputs["folderPath"] = args ? args.folderPath : undefined;
|
|
66
73
|
resourceInputs["name"] = args ? args.name : undefined;
|
package/applicationSource.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicationSource.js","sourceRoot":"","sources":["../applicationSource.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"applicationSource.js","sourceRoot":"","sources":["../applicationSource.ts"],"names":[],"mappings":";AAAA,w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