@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.
Files changed (79) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +44 -0
  3. package/apiTokenCredential.d.ts +84 -0
  4. package/apiTokenCredential.js +70 -0
  5. package/apiTokenCredential.js.map +1 -0
  6. package/applicationSource.d.ts +111 -0
  7. package/applicationSource.js +77 -0
  8. package/applicationSource.js.map +1 -0
  9. package/basicCredential.d.ts +100 -0
  10. package/basicCredential.js +79 -0
  11. package/basicCredential.js.map +1 -0
  12. package/config/index.d.ts +1 -0
  13. package/config/index.js +21 -0
  14. package/config/index.js.map +1 -0
  15. package/config/vars.d.ts +8 -0
  16. package/config/vars.js +19 -0
  17. package/config/vars.js.map +1 -0
  18. package/customApplication.d.ts +124 -0
  19. package/customApplication.js +86 -0
  20. package/customApplication.js.map +1 -0
  21. package/customModel.d.ts +361 -0
  22. package/customModel.js +106 -0
  23. package/customModel.js.map +1 -0
  24. package/datasetFromFile.d.ts +76 -0
  25. package/datasetFromFile.js +73 -0
  26. package/datasetFromFile.js.map +1 -0
  27. package/deployment.d.ts +122 -0
  28. package/deployment.js +100 -0
  29. package/deployment.js.map +1 -0
  30. package/getGlobalModel.d.ts +66 -0
  31. package/getGlobalModel.js +47 -0
  32. package/getGlobalModel.js.map +1 -0
  33. package/googleCloudCredential.d.ts +63 -0
  34. package/googleCloudCredential.js +57 -0
  35. package/googleCloudCredential.js.map +1 -0
  36. package/index.d.ts +57 -0
  37. package/index.js +116 -0
  38. package/index.js.map +1 -0
  39. package/llmBlueprint.d.ts +118 -0
  40. package/llmBlueprint.js +85 -0
  41. package/llmBlueprint.js.map +1 -0
  42. package/package.json +29 -0
  43. package/package.json.bak +29 -0
  44. package/playground.d.ts +86 -0
  45. package/playground.js +70 -0
  46. package/playground.js.map +1 -0
  47. package/predictionEnvironment.d.ts +87 -0
  48. package/predictionEnvironment.js +71 -0
  49. package/predictionEnvironment.js.map +1 -0
  50. package/provider.d.ts +43 -0
  51. package/provider.js +48 -0
  52. package/provider.js.map +1 -0
  53. package/qaApplication.d.ts +148 -0
  54. package/qaApplication.js +104 -0
  55. package/qaApplication.js.map +1 -0
  56. package/registeredModel.d.ts +108 -0
  57. package/registeredModel.js +86 -0
  58. package/registeredModel.js.map +1 -0
  59. package/remoteRepository.d.ts +161 -0
  60. package/remoteRepository.js +98 -0
  61. package/remoteRepository.js.map +1 -0
  62. package/types/index.d.ts +3 -0
  63. package/types/index.js +11 -0
  64. package/types/index.js.map +1 -0
  65. package/types/input.d.ts +196 -0
  66. package/types/input.js +5 -0
  67. package/types/input.js.map +1 -0
  68. package/types/output.d.ts +195 -0
  69. package/types/output.js +5 -0
  70. package/types/output.js.map +1 -0
  71. package/useCase.d.ts +73 -0
  72. package/useCase.js +64 -0
  73. package/useCase.js.map +1 -0
  74. package/utilities.d.ts +8 -0
  75. package/utilities.js +101 -0
  76. package/utilities.js.map +1 -0
  77. package/vectorDatabase.d.ts +115 -0
  78. package/vectorDatabase.js +90 -0
  79. package/vectorDatabase.js.map +1 -0
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAK5B,QAAA,kBAAkB,GAA6D,IAAW,CAAC;AACxG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,oBAAoB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC,CAAC;AAI9E,QAAA,iBAAiB,GAA2D,IAAW,CAAC;AACrG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,mBAAmB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC;AAI5E,QAAA,eAAe,GAAuD,IAAW,CAAC;AAC/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uBAAuB,CAAC,WAAW,EAAE;IAChD,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,4BAA4B,EAAE;YACvC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
@@ -0,0 +1,118 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * LLMBlueprint
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 exampleUseCase = new datarobot.UseCase("exampleUseCase", {});
12
+ * const examplePlayground = new datarobot.Playground("examplePlayground", {
13
+ * description: "Description for the example playground",
14
+ * useCaseId: exampleUseCase.id,
15
+ * });
16
+ * const exampleLlmBlueprint = new datarobot.LlmBlueprint("exampleLlmBlueprint", {
17
+ * description: "Description for the example LLM blueprint",
18
+ * playgroundId: examplePlayground.id,
19
+ * llmId: "azure-openai-gpt-3.5-turbo",
20
+ * });
21
+ * export const exampleId = exampleLlmBlueprint.id;
22
+ * ```
23
+ */
24
+ export declare class LlmBlueprint extends pulumi.CustomResource {
25
+ /**
26
+ * Get an existing LlmBlueprint resource's state with the given name, ID, and optional extra
27
+ * properties used to qualify the lookup.
28
+ *
29
+ * @param name The _unique_ name of the resulting resource.
30
+ * @param id The _unique_ provider ID of the resource to lookup.
31
+ * @param state Any extra arguments used during the lookup.
32
+ * @param opts Optional settings to control the behavior of the CustomResource.
33
+ */
34
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LlmBlueprintState, opts?: pulumi.CustomResourceOptions): LlmBlueprint;
35
+ /**
36
+ * Returns true if the given object is an instance of LlmBlueprint. This is designed to work even
37
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
38
+ */
39
+ static isInstance(obj: any): obj is LlmBlueprint;
40
+ /**
41
+ * The description of the LLM Blueprint.
42
+ */
43
+ readonly description: pulumi.Output<string | undefined>;
44
+ /**
45
+ * The id of the LLM for the LLM Blueprint.
46
+ */
47
+ readonly llmId: pulumi.Output<string>;
48
+ /**
49
+ * The name of the LLM Blueprint.
50
+ */
51
+ readonly name: pulumi.Output<string>;
52
+ /**
53
+ * The id of the Playground for the LLM Blueprint.
54
+ */
55
+ readonly playgroundId: pulumi.Output<string>;
56
+ /**
57
+ * The id of the Vector Database for the LLM Blueprint.
58
+ */
59
+ readonly vectorDatabaseId: pulumi.Output<string | undefined>;
60
+ /**
61
+ * Create a LlmBlueprint resource with the given unique name, arguments, and options.
62
+ *
63
+ * @param name The _unique_ name of the resource.
64
+ * @param args The arguments to use to populate this resource's properties.
65
+ * @param opts A bag of options that control this resource's behavior.
66
+ */
67
+ constructor(name: string, args: LlmBlueprintArgs, opts?: pulumi.CustomResourceOptions);
68
+ }
69
+ /**
70
+ * Input properties used for looking up and filtering LlmBlueprint resources.
71
+ */
72
+ export interface LlmBlueprintState {
73
+ /**
74
+ * The description of the LLM Blueprint.
75
+ */
76
+ description?: pulumi.Input<string>;
77
+ /**
78
+ * The id of the LLM for the LLM Blueprint.
79
+ */
80
+ llmId?: pulumi.Input<string>;
81
+ /**
82
+ * The name of the LLM Blueprint.
83
+ */
84
+ name?: pulumi.Input<string>;
85
+ /**
86
+ * The id of the Playground for the LLM Blueprint.
87
+ */
88
+ playgroundId?: pulumi.Input<string>;
89
+ /**
90
+ * The id of the Vector Database for the LLM Blueprint.
91
+ */
92
+ vectorDatabaseId?: pulumi.Input<string>;
93
+ }
94
+ /**
95
+ * The set of arguments for constructing a LlmBlueprint resource.
96
+ */
97
+ export interface LlmBlueprintArgs {
98
+ /**
99
+ * The description of the LLM Blueprint.
100
+ */
101
+ description?: pulumi.Input<string>;
102
+ /**
103
+ * The id of the LLM for the LLM Blueprint.
104
+ */
105
+ llmId: pulumi.Input<string>;
106
+ /**
107
+ * The name of the LLM Blueprint.
108
+ */
109
+ name?: pulumi.Input<string>;
110
+ /**
111
+ * The id of the Playground for the LLM Blueprint.
112
+ */
113
+ playgroundId: pulumi.Input<string>;
114
+ /**
115
+ * The id of the Vector Database for the LLM Blueprint.
116
+ */
117
+ vectorDatabaseId?: pulumi.Input<string>;
118
+ }
@@ -0,0 +1,85 @@
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.LlmBlueprint = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
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
+ * });
27
+ * export const exampleId = exampleLlmBlueprint.id;
28
+ * ```
29
+ */
30
+ class LlmBlueprint extends pulumi.CustomResource {
31
+ /**
32
+ * Get an existing LlmBlueprint resource's state with the given name, ID, and optional extra
33
+ * properties used to qualify the lookup.
34
+ *
35
+ * @param name The _unique_ name of the resulting resource.
36
+ * @param id The _unique_ provider ID of the resource to lookup.
37
+ * @param state Any extra arguments used during the lookup.
38
+ * @param opts Optional settings to control the behavior of the CustomResource.
39
+ */
40
+ static get(name, id, state, opts) {
41
+ return new LlmBlueprint(name, state, Object.assign(Object.assign({}, opts), { id: id }));
42
+ }
43
+ /**
44
+ * Returns true if the given object is an instance of LlmBlueprint. 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) {
48
+ if (obj === undefined || obj === null) {
49
+ return false;
50
+ }
51
+ return obj['__pulumiType'] === LlmBlueprint.__pulumiType;
52
+ }
53
+ constructor(name, argsOrState, opts) {
54
+ let resourceInputs = {};
55
+ opts = opts || {};
56
+ if (opts.id) {
57
+ const state = argsOrState;
58
+ resourceInputs["description"] = state ? state.description : undefined;
59
+ resourceInputs["llmId"] = state ? state.llmId : undefined;
60
+ resourceInputs["name"] = state ? state.name : undefined;
61
+ resourceInputs["playgroundId"] = state ? state.playgroundId : undefined;
62
+ resourceInputs["vectorDatabaseId"] = state ? state.vectorDatabaseId : undefined;
63
+ }
64
+ else {
65
+ const args = argsOrState;
66
+ if ((!args || args.llmId === undefined) && !opts.urn) {
67
+ throw new Error("Missing required property 'llmId'");
68
+ }
69
+ if ((!args || args.playgroundId === undefined) && !opts.urn) {
70
+ throw new Error("Missing required property 'playgroundId'");
71
+ }
72
+ resourceInputs["description"] = args ? args.description : undefined;
73
+ resourceInputs["llmId"] = args ? args.llmId : undefined;
74
+ resourceInputs["name"] = args ? args.name : undefined;
75
+ resourceInputs["playgroundId"] = args ? args.playgroundId : undefined;
76
+ resourceInputs["vectorDatabaseId"] = args ? args.vectorDatabaseId : undefined;
77
+ }
78
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
79
+ super(LlmBlueprint.__pulumiType, name, resourceInputs, opts);
80
+ }
81
+ }
82
+ exports.LlmBlueprint = LlmBlueprint;
83
+ /** @internal */
84
+ LlmBlueprint.__pulumiType = 'datarobot:index/llmBlueprint:LlmBlueprint';
85
+ //# sourceMappingURL=llmBlue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,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAnFL,oCAoFC;AAtEG,gBAAgB;AACO,yBAAY,GAAG,2CAA2C,CAAC"}
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@datarobot/pulumi-datarobot",
3
+ "version": "v0.1.32",
4
+ "description": "A Pulumi package for creating and managing DataRobot resources.",
5
+ "keywords": [
6
+ "datarobot",
7
+ "ai",
8
+ "category/cloud"
9
+ ],
10
+ "homepage": "https://www.datarobot.com",
11
+ "repository": "https://github.com/datarobot-community/pulumi-datarobot",
12
+ "license": "Apache-2.0",
13
+ "scripts": {
14
+ "build": "tsc"
15
+ },
16
+ "dependencies": {
17
+ "@pulumi/pulumi": "^3.0.0"
18
+ },
19
+ "devDependencies": {
20
+ "@types/mime": "^2.0.0",
21
+ "@types/node": "^10.0.0",
22
+ "typescript": "^4.3.5"
23
+ },
24
+ "pulumi": {
25
+ "resource": true,
26
+ "name": "datarobot",
27
+ "server": "github://api.github.com/datarobot-community/pulumi-datarobot"
28
+ }
29
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@datarobot/pulumi-datarobot",
3
+ "version": "${VERSION}",
4
+ "description": "A Pulumi package for creating and managing DataRobot resources.",
5
+ "keywords": [
6
+ "datarobot",
7
+ "ai",
8
+ "category/cloud"
9
+ ],
10
+ "homepage": "https://www.datarobot.com",
11
+ "repository": "https://github.com/datarobot-community/pulumi-datarobot",
12
+ "license": "Apache-2.0",
13
+ "scripts": {
14
+ "build": "tsc"
15
+ },
16
+ "dependencies": {
17
+ "@pulumi/pulumi": "^3.0.0"
18
+ },
19
+ "devDependencies": {
20
+ "@types/mime": "^2.0.0",
21
+ "@types/node": "^10.0.0",
22
+ "typescript": "^4.3.5"
23
+ },
24
+ "pulumi": {
25
+ "resource": true,
26
+ "name": "datarobot",
27
+ "server": "github://api.github.com/datarobot-community/pulumi-datarobot"
28
+ }
29
+ }
@@ -0,0 +1,86 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Playground
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 exampleUseCase = new datarobot.UseCase("exampleUseCase", {});
12
+ * const examplePlayground = new datarobot.Playground("examplePlayground", {useCaseId: exampleUseCase.id});
13
+ * export const exampleId = examplePlayground.id;
14
+ * ```
15
+ */
16
+ export declare class Playground extends pulumi.CustomResource {
17
+ /**
18
+ * Get an existing Playground resource's state with the given name, ID, and optional extra
19
+ * properties used to qualify the lookup.
20
+ *
21
+ * @param name The _unique_ name of the resulting resource.
22
+ * @param id The _unique_ provider ID of the resource to lookup.
23
+ * @param state Any extra arguments used during the lookup.
24
+ * @param opts Optional settings to control the behavior of the CustomResource.
25
+ */
26
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PlaygroundState, opts?: pulumi.CustomResourceOptions): Playground;
27
+ /**
28
+ * Returns true if the given object is an instance of Playground. This is designed to work even
29
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
30
+ */
31
+ static isInstance(obj: any): obj is Playground;
32
+ /**
33
+ * The description of the Playground.
34
+ */
35
+ readonly description: pulumi.Output<string | undefined>;
36
+ /**
37
+ * The name of the Playground.
38
+ */
39
+ readonly name: pulumi.Output<string>;
40
+ /**
41
+ * The id of the Playground.
42
+ */
43
+ readonly useCaseId: pulumi.Output<string>;
44
+ /**
45
+ * Create a Playground resource with the given unique name, arguments, and options.
46
+ *
47
+ * @param name The _unique_ name of the resource.
48
+ * @param args The arguments to use to populate this resource's properties.
49
+ * @param opts A bag of options that control this resource's behavior.
50
+ */
51
+ constructor(name: string, args: PlaygroundArgs, opts?: pulumi.CustomResourceOptions);
52
+ }
53
+ /**
54
+ * Input properties used for looking up and filtering Playground resources.
55
+ */
56
+ export interface PlaygroundState {
57
+ /**
58
+ * The description of the Playground.
59
+ */
60
+ description?: pulumi.Input<string>;
61
+ /**
62
+ * The name of the Playground.
63
+ */
64
+ name?: pulumi.Input<string>;
65
+ /**
66
+ * The id of the Playground.
67
+ */
68
+ useCaseId?: pulumi.Input<string>;
69
+ }
70
+ /**
71
+ * The set of arguments for constructing a Playground resource.
72
+ */
73
+ export interface PlaygroundArgs {
74
+ /**
75
+ * The description of the Playground.
76
+ */
77
+ description?: pulumi.Input<string>;
78
+ /**
79
+ * The name of the Playground.
80
+ */
81
+ name?: pulumi.Input<string>;
82
+ /**
83
+ * The id of the Playground.
84
+ */
85
+ useCaseId: pulumi.Input<string>;
86
+ }
package/playground.js ADDED
@@ -0,0 +1,70 @@
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.Playground = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Playground
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", {useCaseId: exampleUseCase.id});
19
+ * export const exampleId = examplePlayground.id;
20
+ * ```
21
+ */
22
+ class Playground extends pulumi.CustomResource {
23
+ /**
24
+ * Get an existing Playground resource's state with the given name, ID, and optional extra
25
+ * properties used to qualify the lookup.
26
+ *
27
+ * @param name The _unique_ name of the resulting resource.
28
+ * @param id The _unique_ provider ID of the resource to lookup.
29
+ * @param state Any extra arguments used during the lookup.
30
+ * @param opts Optional settings to control the behavior of the CustomResource.
31
+ */
32
+ static get(name, id, state, opts) {
33
+ return new Playground(name, state, Object.assign(Object.assign({}, opts), { id: id }));
34
+ }
35
+ /**
36
+ * Returns true if the given object is an instance of Playground. This is designed to work even
37
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
38
+ */
39
+ static isInstance(obj) {
40
+ if (obj === undefined || obj === null) {
41
+ return false;
42
+ }
43
+ return obj['__pulumiType'] === Playground.__pulumiType;
44
+ }
45
+ constructor(name, argsOrState, opts) {
46
+ let resourceInputs = {};
47
+ opts = opts || {};
48
+ if (opts.id) {
49
+ const state = argsOrState;
50
+ resourceInputs["description"] = state ? state.description : undefined;
51
+ resourceInputs["name"] = state ? state.name : undefined;
52
+ resourceInputs["useCaseId"] = state ? state.useCaseId : undefined;
53
+ }
54
+ else {
55
+ const args = argsOrState;
56
+ if ((!args || args.useCaseId === undefined) && !opts.urn) {
57
+ throw new Error("Missing required property 'useCaseId'");
58
+ }
59
+ resourceInputs["description"] = args ? args.description : undefined;
60
+ resourceInputs["name"] = args ? args.name : undefined;
61
+ resourceInputs["useCaseId"] = args ? args.useCaseId : undefined;
62
+ }
63
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
64
+ super(Playground.__pulumiType, name, resourceInputs, opts);
65
+ }
66
+ }
67
+ exports.Playground = Playground;
68
+ /** @internal */
69
+ Playground.__pulumiType = 'datarobot:index/playground:Playground';
70
+ //# sourceMappingURL=playground.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"playground.js","sourceRoot":"","sources":["../playground.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,CAAC;IAKD;;;OAGG;IAC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S,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AApEL,gCAqEC;AAvDG,gBAAgB;AACO,uBAAY,GAAG,uCAAuC,CAAC"}
@@ -0,0 +1,87 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * prediction environment
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.PredictionEnvironment("example", {
12
+ * description: "Description for the example prediction environment",
13
+ * platform: "datarobotServerless",
14
+ * });
15
+ * ```
16
+ */
17
+ export declare class PredictionEnvironment extends pulumi.CustomResource {
18
+ /**
19
+ * Get an existing PredictionEnvironment resource's state with the given name, ID, and optional extra
20
+ * properties used to qualify the lookup.
21
+ *
22
+ * @param name The _unique_ name of the resulting resource.
23
+ * @param id The _unique_ provider ID of the resource to lookup.
24
+ * @param state Any extra arguments used during the lookup.
25
+ * @param opts Optional settings to control the behavior of the CustomResource.
26
+ */
27
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PredictionEnvironmentState, opts?: pulumi.CustomResourceOptions): PredictionEnvironment;
28
+ /**
29
+ * Returns true if the given object is an instance of PredictionEnvironment. This is designed to work even
30
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
31
+ */
32
+ static isInstance(obj: any): obj is PredictionEnvironment;
33
+ /**
34
+ * The description of the Prediction Environment.
35
+ */
36
+ readonly description: pulumi.Output<string | undefined>;
37
+ /**
38
+ * The name of the Prediction Environment.
39
+ */
40
+ readonly name: pulumi.Output<string>;
41
+ /**
42
+ * The platform for the Prediction Environment.
43
+ */
44
+ readonly platform: pulumi.Output<string>;
45
+ /**
46
+ * Create a PredictionEnvironment resource with the given unique name, arguments, and options.
47
+ *
48
+ * @param name The _unique_ name of the resource.
49
+ * @param args The arguments to use to populate this resource's properties.
50
+ * @param opts A bag of options that control this resource's behavior.
51
+ */
52
+ constructor(name: string, args: PredictionEnvironmentArgs, opts?: pulumi.CustomResourceOptions);
53
+ }
54
+ /**
55
+ * Input properties used for looking up and filtering PredictionEnvironment resources.
56
+ */
57
+ export interface PredictionEnvironmentState {
58
+ /**
59
+ * The description of the Prediction Environment.
60
+ */
61
+ description?: pulumi.Input<string>;
62
+ /**
63
+ * The name of the Prediction Environment.
64
+ */
65
+ name?: pulumi.Input<string>;
66
+ /**
67
+ * The platform for the Prediction Environment.
68
+ */
69
+ platform?: pulumi.Input<string>;
70
+ }
71
+ /**
72
+ * The set of arguments for constructing a PredictionEnvironment resource.
73
+ */
74
+ export interface PredictionEnvironmentArgs {
75
+ /**
76
+ * The description of the Prediction Environment.
77
+ */
78
+ description?: pulumi.Input<string>;
79
+ /**
80
+ * The name of the Prediction Environment.
81
+ */
82
+ name?: pulumi.Input<string>;
83
+ /**
84
+ * The platform for the Prediction Environment.
85
+ */
86
+ platform: pulumi.Input<string>;
87
+ }
@@ -0,0 +1,71 @@
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.PredictionEnvironment = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * prediction environment
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.PredictionEnvironment("example", {
18
+ * description: "Description for the example prediction environment",
19
+ * platform: "datarobotServerless",
20
+ * });
21
+ * ```
22
+ */
23
+ class PredictionEnvironment extends pulumi.CustomResource {
24
+ /**
25
+ * Get an existing PredictionEnvironment 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, id, state, opts) {
34
+ return new PredictionEnvironment(name, state, Object.assign(Object.assign({}, opts), { id: id }));
35
+ }
36
+ /**
37
+ * Returns true if the given object is an instance of PredictionEnvironment. This is designed to work even
38
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
39
+ */
40
+ static isInstance(obj) {
41
+ if (obj === undefined || obj === null) {
42
+ return false;
43
+ }
44
+ return obj['__pulumiType'] === PredictionEnvironment.__pulumiType;
45
+ }
46
+ constructor(name, argsOrState, opts) {
47
+ let resourceInputs = {};
48
+ opts = opts || {};
49
+ if (opts.id) {
50
+ const state = argsOrState;
51
+ resourceInputs["description"] = state ? state.description : undefined;
52
+ resourceInputs["name"] = state ? state.name : undefined;
53
+ resourceInputs["platform"] = state ? state.platform : undefined;
54
+ }
55
+ else {
56
+ const args = argsOrState;
57
+ if ((!args || args.platform === undefined) && !opts.urn) {
58
+ throw new Error("Missing required property 'platform'");
59
+ }
60
+ resourceInputs["description"] = args ? args.description : undefined;
61
+ resourceInputs["name"] = args ? args.name : undefined;
62
+ resourceInputs["platform"] = args ? args.platform : undefined;
63
+ }
64
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
65
+ super(PredictionEnvironment.__pulumiType, name, resourceInputs, opts);
66
+ }
67
+ }
68
+ exports.PredictionEnvironment = PredictionEnvironment;
69
+ /** @internal */
70
+ PredictionEnvironment.__pulumiType = 'datarobot:index/predictionEnvironment:PredictionEnvironment';
71
+ //# sourceMappingURL=predictionEnvironment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":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I,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;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;;AApEL,sDAqEC;AAvDG,gBAAgB;AACO,kCAAY,GAAG,6DAA6D,CAAC"}
package/provider.d.ts ADDED
@@ -0,0 +1,43 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * The provider type for the datarobot package. By default, resources use package-wide configuration
4
+ * settings, however an explicit `Provider` instance may be created and passed during resource
5
+ * construction to achieve fine-grained programmatic control over provider settings. See the
6
+ * [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
7
+ */
8
+ export declare class Provider extends pulumi.ProviderResource {
9
+ /**
10
+ * Returns true if the given object is an instance of Provider. This is designed to work even
11
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
12
+ */
13
+ static isInstance(obj: any): obj is Provider;
14
+ /**
15
+ * Key to access DataRobot API
16
+ */
17
+ readonly apikey: pulumi.Output<string | undefined>;
18
+ /**
19
+ * Endpoint for the DataRobot API
20
+ */
21
+ readonly endpoint: pulumi.Output<string | undefined>;
22
+ /**
23
+ * Create a Provider resource with the given unique name, arguments, and options.
24
+ *
25
+ * @param name The _unique_ name of the resource.
26
+ * @param args The arguments to use to populate this resource's properties.
27
+ * @param opts A bag of options that control this resource's behavior.
28
+ */
29
+ constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
30
+ }
31
+ /**
32
+ * The set of arguments for constructing a Provider resource.
33
+ */
34
+ export interface ProviderArgs {
35
+ /**
36
+ * Key to access DataRobot API
37
+ */
38
+ apikey?: pulumi.Input<string>;
39
+ /**
40
+ * Endpoint for the DataRobot API
41
+ */
42
+ endpoint?: pulumi.Input<string>;
43
+ }