@datarobot/pulumi-datarobot 0.8.7 → 0.8.9
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/customApplication.d.ts +13 -0
- package/customApplication.js +3 -0
- package/customApplication.js.map +1 -1
- package/customApplicationFromEnvironment.d.ts +13 -0
- package/customApplicationFromEnvironment.js +3 -0
- package/customApplicationFromEnvironment.js.map +1 -1
- package/llmBlueprint.d.ts +3 -34
- package/llmBlueprint.js +0 -31
- package/llmBlueprint.js.map +1 -1
- package/package.json +1 -1
- package/qaApplication.d.ts +13 -0
- package/qaApplication.js +3 -0
- package/qaApplication.js.map +1 -1
package/customApplication.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
16
16
|
* sourceVersionId: exampleApplicationSource.versionId,
|
|
17
17
|
* externalAccessEnabled: true,
|
|
18
18
|
* externalAccessRecipients: ["recipient@example.com"],
|
|
19
|
+
* allowAutoStopping: false,
|
|
19
20
|
* });
|
|
20
21
|
* export const datarobotCustomApplicationId = exampleCustomApplication.id;
|
|
21
22
|
* export const datarobotCustomApplicationSourceId = exampleCustomApplication.sourceId;
|
|
@@ -39,6 +40,10 @@ export declare class CustomApplication extends pulumi.CustomResource {
|
|
|
39
40
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
40
41
|
*/
|
|
41
42
|
static isInstance(obj: any): obj is CustomApplication;
|
|
43
|
+
/**
|
|
44
|
+
* Whether auto stopping is allowed for the Custom Application.
|
|
45
|
+
*/
|
|
46
|
+
readonly allowAutoStopping: pulumi.Output<boolean>;
|
|
42
47
|
/**
|
|
43
48
|
* The URL of the Custom Application.
|
|
44
49
|
*/
|
|
@@ -80,6 +85,10 @@ export declare class CustomApplication extends pulumi.CustomResource {
|
|
|
80
85
|
* Input properties used for looking up and filtering CustomApplication resources.
|
|
81
86
|
*/
|
|
82
87
|
export interface CustomApplicationState {
|
|
88
|
+
/**
|
|
89
|
+
* Whether auto stopping is allowed for the Custom Application.
|
|
90
|
+
*/
|
|
91
|
+
allowAutoStopping?: pulumi.Input<boolean>;
|
|
83
92
|
/**
|
|
84
93
|
* The URL of the Custom Application.
|
|
85
94
|
*/
|
|
@@ -113,6 +122,10 @@ export interface CustomApplicationState {
|
|
|
113
122
|
* The set of arguments for constructing a CustomApplication resource.
|
|
114
123
|
*/
|
|
115
124
|
export interface CustomApplicationArgs {
|
|
125
|
+
/**
|
|
126
|
+
* Whether auto stopping is allowed for the Custom Application.
|
|
127
|
+
*/
|
|
128
|
+
allowAutoStopping?: pulumi.Input<boolean>;
|
|
116
129
|
/**
|
|
117
130
|
* Whether external access is enabled for the Custom Application.
|
|
118
131
|
*/
|
package/customApplication.js
CHANGED
|
@@ -22,6 +22,7 @@ const utilities = require("./utilities");
|
|
|
22
22
|
* sourceVersionId: exampleApplicationSource.versionId,
|
|
23
23
|
* externalAccessEnabled: true,
|
|
24
24
|
* externalAccessRecipients: ["recipient@example.com"],
|
|
25
|
+
* allowAutoStopping: false,
|
|
25
26
|
* });
|
|
26
27
|
* export const datarobotCustomApplicationId = exampleCustomApplication.id;
|
|
27
28
|
* export const datarobotCustomApplicationSourceId = exampleCustomApplication.sourceId;
|
|
@@ -57,6 +58,7 @@ class CustomApplication extends pulumi.CustomResource {
|
|
|
57
58
|
opts = opts || {};
|
|
58
59
|
if (opts.id) {
|
|
59
60
|
const state = argsOrState;
|
|
61
|
+
resourceInputs["allowAutoStopping"] = state ? state.allowAutoStopping : undefined;
|
|
60
62
|
resourceInputs["applicationUrl"] = state ? state.applicationUrl : undefined;
|
|
61
63
|
resourceInputs["externalAccessEnabled"] = state ? state.externalAccessEnabled : undefined;
|
|
62
64
|
resourceInputs["externalAccessRecipients"] = state ? state.externalAccessRecipients : undefined;
|
|
@@ -70,6 +72,7 @@ class CustomApplication extends pulumi.CustomResource {
|
|
|
70
72
|
if ((!args || args.sourceVersionId === undefined) && !opts.urn) {
|
|
71
73
|
throw new Error("Missing required property 'sourceVersionId'");
|
|
72
74
|
}
|
|
75
|
+
resourceInputs["allowAutoStopping"] = args ? args.allowAutoStopping : undefined;
|
|
73
76
|
resourceInputs["externalAccessEnabled"] = args ? args.externalAccessEnabled : undefined;
|
|
74
77
|
resourceInputs["externalAccessRecipients"] = args ? args.externalAccessRecipients : undefined;
|
|
75
78
|
resourceInputs["name"] = args ? args.name : undefined;
|
package/customApplication.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customApplication.js","sourceRoot":"","sources":["../customApplication.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"customApplication.js","sourceRoot":"","sources":["../customApplication.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;IA2CD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,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AiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,0BAA0B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9F,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAClD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AAlGL,8CAmGC;AArFG,gBAAgB;AACO,8BAAY,GAAG,qDAAqD,CAAC"}
|
|
@@ -12,6 +12,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
12
12
|
* environmentId: "6542cd582a9d3d51bf4ac71e",
|
|
13
13
|
* externalAccessEnabled: true,
|
|
14
14
|
* externalAccessRecipients: ["recipient@example.com"],
|
|
15
|
+
* allowAutoStopping: false,
|
|
15
16
|
* });
|
|
16
17
|
* export const datarobotCustomApplicationId = example.id;
|
|
17
18
|
* export const datarobotCustomApplicationUrl = example.applicationUrl;
|
|
@@ -33,6 +34,10 @@ export declare class CustomApplicationFromEnvironment extends pulumi.CustomResou
|
|
|
33
34
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
34
35
|
*/
|
|
35
36
|
static isInstance(obj: any): obj is CustomApplicationFromEnvironment;
|
|
37
|
+
/**
|
|
38
|
+
* Whether auto stopping is allowed for the Custom Application.
|
|
39
|
+
*/
|
|
40
|
+
readonly allowAutoStopping: pulumi.Output<boolean>;
|
|
36
41
|
/**
|
|
37
42
|
* The URL of the Custom Application.
|
|
38
43
|
*/
|
|
@@ -74,6 +79,10 @@ export declare class CustomApplicationFromEnvironment extends pulumi.CustomResou
|
|
|
74
79
|
* Input properties used for looking up and filtering CustomApplicationFromEnvironment resources.
|
|
75
80
|
*/
|
|
76
81
|
export interface CustomApplicationFromEnvironmentState {
|
|
82
|
+
/**
|
|
83
|
+
* Whether auto stopping is allowed for the Custom Application.
|
|
84
|
+
*/
|
|
85
|
+
allowAutoStopping?: pulumi.Input<boolean>;
|
|
77
86
|
/**
|
|
78
87
|
* The URL of the Custom Application.
|
|
79
88
|
*/
|
|
@@ -107,6 +116,10 @@ export interface CustomApplicationFromEnvironmentState {
|
|
|
107
116
|
* The set of arguments for constructing a CustomApplicationFromEnvironment resource.
|
|
108
117
|
*/
|
|
109
118
|
export interface CustomApplicationFromEnvironmentArgs {
|
|
119
|
+
/**
|
|
120
|
+
* Whether auto stopping is allowed for the Custom Application.
|
|
121
|
+
*/
|
|
122
|
+
allowAutoStopping?: pulumi.Input<boolean>;
|
|
110
123
|
/**
|
|
111
124
|
* The ID of the Execution Environment used to create the Custom Application.
|
|
112
125
|
*/
|
|
@@ -18,6 +18,7 @@ const utilities = require("./utilities");
|
|
|
18
18
|
* environmentId: "6542cd582a9d3d51bf4ac71e",
|
|
19
19
|
* externalAccessEnabled: true,
|
|
20
20
|
* externalAccessRecipients: ["recipient@example.com"],
|
|
21
|
+
* allowAutoStopping: false,
|
|
21
22
|
* });
|
|
22
23
|
* export const datarobotCustomApplicationId = example.id;
|
|
23
24
|
* export const datarobotCustomApplicationUrl = example.applicationUrl;
|
|
@@ -51,6 +52,7 @@ class CustomApplicationFromEnvironment extends pulumi.CustomResource {
|
|
|
51
52
|
opts = opts || {};
|
|
52
53
|
if (opts.id) {
|
|
53
54
|
const state = argsOrState;
|
|
55
|
+
resourceInputs["allowAutoStopping"] = state ? state.allowAutoStopping : undefined;
|
|
54
56
|
resourceInputs["applicationUrl"] = state ? state.applicationUrl : undefined;
|
|
55
57
|
resourceInputs["environmentId"] = state ? state.environmentId : undefined;
|
|
56
58
|
resourceInputs["environmentVersionId"] = state ? state.environmentVersionId : undefined;
|
|
@@ -64,6 +66,7 @@ class CustomApplicationFromEnvironment extends pulumi.CustomResource {
|
|
|
64
66
|
if ((!args || args.environmentId === undefined) && !opts.urn) {
|
|
65
67
|
throw new Error("Missing required property 'environmentId'");
|
|
66
68
|
}
|
|
69
|
+
resourceInputs["allowAutoStopping"] = args ? args.allowAutoStopping : undefined;
|
|
67
70
|
resourceInputs["environmentId"] = args ? args.environmentId : undefined;
|
|
68
71
|
resourceInputs["externalAccessEnabled"] = args ? args.externalAccessEnabled : undefined;
|
|
69
72
|
resourceInputs["externalAccessRecipients"] = args ? args.externalAccessRecipients : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customApplicationFromEnvironment.js","sourceRoot":"","sources":["../customApplicationFromEnvironment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"customApplicationFromEnvironment.js","sourceRoot":"","sources":["../customApplicationFromEnvironment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,gCAAiC,SAAQ,MAAM,CAAC,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CAAC;YACrD,cAAc,CAAC,sBAAsB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gCAAgC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrF,CAAC;;AAlGL,4EAmGC;AArFG,gBAAgB;AACO,6CAAY,GAAG,mFAAmF,CAAC"}
|
package/llmBlueprint.d.ts
CHANGED
|
@@ -3,37 +3,6 @@ import * as inputs from "./types/input";
|
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
5
|
* LLMBlueprint
|
|
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", {});
|
|
14
|
-
* const examplePlayground = new datarobot.Playground("examplePlayground", {
|
|
15
|
-
* description: "Description for the example playground",
|
|
16
|
-
* useCaseId: exampleUseCase.id,
|
|
17
|
-
* });
|
|
18
|
-
* const exampleLlmBlueprint = new datarobot.LlmBlueprint("exampleLlmBlueprint", {
|
|
19
|
-
* description: "Description for the example LLM blueprint",
|
|
20
|
-
* playgroundId: examplePlayground.id,
|
|
21
|
-
* llmId: "azure-openai-gpt-3.5-turbo",
|
|
22
|
-
* promptType: "ONE_TIME_PROMPT",
|
|
23
|
-
* });
|
|
24
|
-
* // Optional
|
|
25
|
-
* // llm_settings {
|
|
26
|
-
* // max_completion_length = 1000
|
|
27
|
-
* // temperature = 0.5
|
|
28
|
-
* // top_p = 0.9
|
|
29
|
-
* // system_prompt = "My Prompt:"
|
|
30
|
-
* // }
|
|
31
|
-
* // vector_database_settings = {
|
|
32
|
-
* // max_documents_retrieved_per_prompt = 5
|
|
33
|
-
* // max_tokens = 1000
|
|
34
|
-
* // }
|
|
35
|
-
* export const exampleId = exampleLlmBlueprint.id;
|
|
36
|
-
* ```
|
|
37
6
|
*/
|
|
38
7
|
export declare class LlmBlueprint extends pulumi.CustomResource {
|
|
39
8
|
/**
|
|
@@ -60,7 +29,7 @@ export declare class LlmBlueprint extends pulumi.CustomResource {
|
|
|
60
29
|
*/
|
|
61
30
|
readonly description: pulumi.Output<string | undefined>;
|
|
62
31
|
/**
|
|
63
|
-
* The id of the LLM for the LLM Blueprint.
|
|
32
|
+
* The id of the LLM for the LLM Blueprint. If custom*model*llm_settings is set, this value must be 'custom-model'.
|
|
64
33
|
*/
|
|
65
34
|
readonly llmId: pulumi.Output<string | undefined>;
|
|
66
35
|
/**
|
|
@@ -109,7 +78,7 @@ export interface LlmBlueprintState {
|
|
|
109
78
|
*/
|
|
110
79
|
description?: pulumi.Input<string>;
|
|
111
80
|
/**
|
|
112
|
-
* The id of the LLM for the LLM Blueprint.
|
|
81
|
+
* The id of the LLM for the LLM Blueprint. If custom*model*llm_settings is set, this value must be 'custom-model'.
|
|
113
82
|
*/
|
|
114
83
|
llmId?: pulumi.Input<string>;
|
|
115
84
|
/**
|
|
@@ -150,7 +119,7 @@ export interface LlmBlueprintArgs {
|
|
|
150
119
|
*/
|
|
151
120
|
description?: pulumi.Input<string>;
|
|
152
121
|
/**
|
|
153
|
-
* The id of the LLM for the LLM Blueprint.
|
|
122
|
+
* The id of the LLM for the LLM Blueprint. If custom*model*llm_settings is set, this value must be 'custom-model'.
|
|
154
123
|
*/
|
|
155
124
|
llmId?: pulumi.Input<string>;
|
|
156
125
|
/**
|
package/llmBlueprint.js
CHANGED
|
@@ -7,37 +7,6 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
9
|
* LLMBlueprint
|
|
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", {});
|
|
18
|
-
* const examplePlayground = new datarobot.Playground("examplePlayground", {
|
|
19
|
-
* description: "Description for the example playground",
|
|
20
|
-
* useCaseId: exampleUseCase.id,
|
|
21
|
-
* });
|
|
22
|
-
* const exampleLlmBlueprint = new datarobot.LlmBlueprint("exampleLlmBlueprint", {
|
|
23
|
-
* description: "Description for the example LLM blueprint",
|
|
24
|
-
* playgroundId: examplePlayground.id,
|
|
25
|
-
* llmId: "azure-openai-gpt-3.5-turbo",
|
|
26
|
-
* promptType: "ONE_TIME_PROMPT",
|
|
27
|
-
* });
|
|
28
|
-
* // Optional
|
|
29
|
-
* // llm_settings {
|
|
30
|
-
* // max_completion_length = 1000
|
|
31
|
-
* // temperature = 0.5
|
|
32
|
-
* // top_p = 0.9
|
|
33
|
-
* // system_prompt = "My Prompt:"
|
|
34
|
-
* // }
|
|
35
|
-
* // vector_database_settings = {
|
|
36
|
-
* // max_documents_retrieved_per_prompt = 5
|
|
37
|
-
* // max_tokens = 1000
|
|
38
|
-
* // }
|
|
39
|
-
* export const exampleId = exampleLlmBlueprint.id;
|
|
40
|
-
* ```
|
|
41
10
|
*/
|
|
42
11
|
class LlmBlueprint extends pulumi.CustomResource {
|
|
43
12
|
/**
|
package/llmBlueprint.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llmBlueprint.js","sourceRoot":"","sources":["../llmBlueprint.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"llmBlueprint.js","sourceRoot":"","sources":["../llmBlueprint.ts"],"names":[],"mappings":";AAAA,wFAAwF;A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CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,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;SAC7F;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAxGL,oCAyGC;AA3FG,gBAAgB;AACO,yBAAY,GAAG,2CAA2C,CAAC"}
|
package/package.json
CHANGED
package/qaApplication.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
32
32
|
* deploymentId: exampleDeployment.id,
|
|
33
33
|
* externalAccessEnabled: true,
|
|
34
34
|
* externalAccessRecipients: ["recipient@example.com"],
|
|
35
|
+
* allowAutoStopping: false,
|
|
35
36
|
* });
|
|
36
37
|
* export const datarobotQaApplicationId = exampleQaApplication.id;
|
|
37
38
|
* export const datarobotQaApplicationSourceId = exampleQaApplication.sourceId;
|
|
@@ -55,6 +56,10 @@ export declare class QaApplication extends pulumi.CustomResource {
|
|
|
55
56
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
56
57
|
*/
|
|
57
58
|
static isInstance(obj: any): obj is QaApplication;
|
|
59
|
+
/**
|
|
60
|
+
* Whether auto stopping is allowed for the Q&A Application.
|
|
61
|
+
*/
|
|
62
|
+
readonly allowAutoStopping: pulumi.Output<boolean>;
|
|
58
63
|
/**
|
|
59
64
|
* The URL of the Q&A Application.
|
|
60
65
|
*/
|
|
@@ -96,6 +101,10 @@ export declare class QaApplication extends pulumi.CustomResource {
|
|
|
96
101
|
* Input properties used for looking up and filtering QaApplication resources.
|
|
97
102
|
*/
|
|
98
103
|
export interface QaApplicationState {
|
|
104
|
+
/**
|
|
105
|
+
* Whether auto stopping is allowed for the Q&A Application.
|
|
106
|
+
*/
|
|
107
|
+
allowAutoStopping?: pulumi.Input<boolean>;
|
|
99
108
|
/**
|
|
100
109
|
* The URL of the Q&A Application.
|
|
101
110
|
*/
|
|
@@ -129,6 +138,10 @@ export interface QaApplicationState {
|
|
|
129
138
|
* The set of arguments for constructing a QaApplication resource.
|
|
130
139
|
*/
|
|
131
140
|
export interface QaApplicationArgs {
|
|
141
|
+
/**
|
|
142
|
+
* Whether auto stopping is allowed for the Q&A Application.
|
|
143
|
+
*/
|
|
144
|
+
allowAutoStopping?: pulumi.Input<boolean>;
|
|
132
145
|
/**
|
|
133
146
|
* The deployment ID of the Q&A Application.
|
|
134
147
|
*/
|
package/qaApplication.js
CHANGED
|
@@ -38,6 +38,7 @@ const utilities = require("./utilities");
|
|
|
38
38
|
* deploymentId: exampleDeployment.id,
|
|
39
39
|
* externalAccessEnabled: true,
|
|
40
40
|
* externalAccessRecipients: ["recipient@example.com"],
|
|
41
|
+
* allowAutoStopping: false,
|
|
41
42
|
* });
|
|
42
43
|
* export const datarobotQaApplicationId = exampleQaApplication.id;
|
|
43
44
|
* export const datarobotQaApplicationSourceId = exampleQaApplication.sourceId;
|
|
@@ -73,6 +74,7 @@ class QaApplication extends pulumi.CustomResource {
|
|
|
73
74
|
opts = opts || {};
|
|
74
75
|
if (opts.id) {
|
|
75
76
|
const state = argsOrState;
|
|
77
|
+
resourceInputs["allowAutoStopping"] = state ? state.allowAutoStopping : undefined;
|
|
76
78
|
resourceInputs["applicationUrl"] = state ? state.applicationUrl : undefined;
|
|
77
79
|
resourceInputs["deploymentId"] = state ? state.deploymentId : undefined;
|
|
78
80
|
resourceInputs["externalAccessEnabled"] = state ? state.externalAccessEnabled : undefined;
|
|
@@ -86,6 +88,7 @@ class QaApplication extends pulumi.CustomResource {
|
|
|
86
88
|
if ((!args || args.deploymentId === undefined) && !opts.urn) {
|
|
87
89
|
throw new Error("Missing required property 'deploymentId'");
|
|
88
90
|
}
|
|
91
|
+
resourceInputs["allowAutoStopping"] = args ? args.allowAutoStopping : undefined;
|
|
89
92
|
resourceInputs["deploymentId"] = args ? args.deploymentId : undefined;
|
|
90
93
|
resourceInputs["externalAccessEnabled"] = args ? args.externalAccessEnabled : undefined;
|
|
91
94
|
resourceInputs["externalAccessRecipients"] = args ? args.externalAccessRecipients : undefined;
|
package/qaApplication.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qaApplication.js","sourceRoot":"","sources":["../qaApplication.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"qaApplication.js","sourceRoot":"","sources":["../qaApplication.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI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