@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
@@ -0,0 +1,100 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Basic Credential
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.BasicCredential("example", {
12
+ * description: "Description for the example basic credential",
13
+ * password: "example_password",
14
+ * user: "example_user",
15
+ * });
16
+ * ```
17
+ */
18
+ export declare class BasicCredential extends pulumi.CustomResource {
19
+ /**
20
+ * Get an existing BasicCredential resource's state with the given name, ID, and optional extra
21
+ * properties used to qualify the lookup.
22
+ *
23
+ * @param name The _unique_ name of the resulting resource.
24
+ * @param id The _unique_ provider ID of the resource to lookup.
25
+ * @param state Any extra arguments used during the lookup.
26
+ * @param opts Optional settings to control the behavior of the CustomResource.
27
+ */
28
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BasicCredentialState, opts?: pulumi.CustomResourceOptions): BasicCredential;
29
+ /**
30
+ * Returns true if the given object is an instance of BasicCredential. This is designed to work even
31
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
32
+ */
33
+ static isInstance(obj: any): obj is BasicCredential;
34
+ /**
35
+ * The description of the Basic Credential.
36
+ */
37
+ readonly description: pulumi.Output<string | undefined>;
38
+ /**
39
+ * The name of the Basic Credential.
40
+ */
41
+ readonly name: pulumi.Output<string>;
42
+ /**
43
+ * The password of the Basic Credential.
44
+ */
45
+ readonly password: pulumi.Output<string>;
46
+ /**
47
+ * The user of the Basic Credential.
48
+ */
49
+ readonly user: pulumi.Output<string>;
50
+ /**
51
+ * Create a BasicCredential resource with the given unique name, arguments, and options.
52
+ *
53
+ * @param name The _unique_ name of the resource.
54
+ * @param args The arguments to use to populate this resource's properties.
55
+ * @param opts A bag of options that control this resource's behavior.
56
+ */
57
+ constructor(name: string, args: BasicCredentialArgs, opts?: pulumi.CustomResourceOptions);
58
+ }
59
+ /**
60
+ * Input properties used for looking up and filtering BasicCredential resources.
61
+ */
62
+ export interface BasicCredentialState {
63
+ /**
64
+ * The description of the Basic Credential.
65
+ */
66
+ description?: pulumi.Input<string>;
67
+ /**
68
+ * The name of the Basic Credential.
69
+ */
70
+ name?: pulumi.Input<string>;
71
+ /**
72
+ * The password of the Basic Credential.
73
+ */
74
+ password?: pulumi.Input<string>;
75
+ /**
76
+ * The user of the Basic Credential.
77
+ */
78
+ user?: pulumi.Input<string>;
79
+ }
80
+ /**
81
+ * The set of arguments for constructing a BasicCredential resource.
82
+ */
83
+ export interface BasicCredentialArgs {
84
+ /**
85
+ * The description of the Basic Credential.
86
+ */
87
+ description?: pulumi.Input<string>;
88
+ /**
89
+ * The name of the Basic Credential.
90
+ */
91
+ name?: pulumi.Input<string>;
92
+ /**
93
+ * The password of the Basic Credential.
94
+ */
95
+ password: pulumi.Input<string>;
96
+ /**
97
+ * The user of the Basic Credential.
98
+ */
99
+ user: pulumi.Input<string>;
100
+ }
@@ -0,0 +1,79 @@
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.BasicCredential = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Basic Credential
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.BasicCredential("example", {
18
+ * description: "Description for the example basic credential",
19
+ * password: "example_password",
20
+ * user: "example_user",
21
+ * });
22
+ * ```
23
+ */
24
+ class BasicCredential extends pulumi.CustomResource {
25
+ /**
26
+ * Get an existing BasicCredential 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, id, state, opts) {
35
+ return new BasicCredential(name, state, Object.assign(Object.assign({}, opts), { id: id }));
36
+ }
37
+ /**
38
+ * Returns true if the given object is an instance of BasicCredential. This is designed to work even
39
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
40
+ */
41
+ static isInstance(obj) {
42
+ if (obj === undefined || obj === null) {
43
+ return false;
44
+ }
45
+ return obj['__pulumiType'] === BasicCredential.__pulumiType;
46
+ }
47
+ constructor(name, argsOrState, opts) {
48
+ let resourceInputs = {};
49
+ opts = opts || {};
50
+ if (opts.id) {
51
+ const state = argsOrState;
52
+ resourceInputs["description"] = state ? state.description : undefined;
53
+ resourceInputs["name"] = state ? state.name : undefined;
54
+ resourceInputs["password"] = state ? state.password : undefined;
55
+ resourceInputs["user"] = state ? state.user : undefined;
56
+ }
57
+ else {
58
+ const args = argsOrState;
59
+ if ((!args || args.password === undefined) && !opts.urn) {
60
+ throw new Error("Missing required property 'password'");
61
+ }
62
+ if ((!args || args.user === undefined) && !opts.urn) {
63
+ throw new Error("Missing required property 'user'");
64
+ }
65
+ resourceInputs["description"] = args ? args.description : undefined;
66
+ resourceInputs["name"] = args ? args.name : undefined;
67
+ resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined;
68
+ resourceInputs["user"] = (args === null || args === void 0 ? void 0 : args.user) ? pulumi.secret(args.user) : undefined;
69
+ }
70
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
71
+ const secretOpts = { additionalSecretOutputs: ["password", "user"] };
72
+ opts = pulumi.mergeOptions(opts, secretOpts);
73
+ super(BasicCredential.__pulumiType, name, resourceInputs, opts);
74
+ }
75
+ }
76
+ exports.BasicCredential = BasicCredential;
77
+ /** @internal */
78
+ BasicCredential.__pulumiType = 'datarobot:index/basicCredential:BasicCredential';
79
+ //# sourceMappingURL=basicCredential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basicCredential.js","sourceRoot":"","sources":["../basicCredential.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,S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AW,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,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACvF,cAAc,CAAC,MAAM,CAAC,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;SAC9E;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC,EAAE,CAAC;QACrE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AA/EL,0CAgFC;AAlEG,gBAAgB;AACO,4BAAY,GAAG,iDAAiD,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./vars";
@@ -0,0 +1,21 @@
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ // Export members:
20
+ __exportStar(require("./vars"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Key to access DataRobot API
3
+ */
4
+ export declare const apikey: string | undefined;
5
+ /**
6
+ * Endpoint for the DataRobot API
7
+ */
8
+ export declare const endpoint: string | undefined;
package/config/vars.js ADDED
@@ -0,0 +1,19 @@
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
+ const pulumi = require("@pulumi/pulumi");
6
+ const __config = new pulumi.Config("datarobot");
7
+ Object.defineProperty(exports, "apikey", {
8
+ get() {
9
+ return __config.get("apikey");
10
+ },
11
+ enumerable: true,
12
+ });
13
+ Object.defineProperty(exports, "endpoint", {
14
+ get() {
15
+ return __config.get("endpoint");
16
+ },
17
+ enumerable: true,
18
+ });
19
+ //# sourceMappingURL=vars.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAMhD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
@@ -0,0 +1,124 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Custom Application
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 exampleApplicationSource = new datarobot.ApplicationSource("exampleApplicationSource", {localFiles: [
12
+ * "start-app.sh",
13
+ * "streamlit-app.py",
14
+ * ]});
15
+ * const exampleCustomApplication = new datarobot.CustomApplication("exampleCustomApplication", {
16
+ * sourceVersionId: exampleApplicationSource.versionId,
17
+ * externalAccessEnabled: true,
18
+ * externalAccessRecipients: ["recipient@example.com"],
19
+ * });
20
+ * export const datarobotCustomApplicationId = exampleCustomApplication.id;
21
+ * export const datarobotCustomApplicationSourceId = exampleCustomApplication.sourceId;
22
+ * export const datarobotCustomApplicationSourceVersionId = exampleCustomApplication.sourceVersionId;
23
+ * export const datarobotCustomApplicationUrl = exampleCustomApplication.applicationUrl;
24
+ * ```
25
+ */
26
+ export declare class CustomApplication extends pulumi.CustomResource {
27
+ /**
28
+ * Get an existing CustomApplication resource's state with the given name, ID, and optional extra
29
+ * properties used to qualify the lookup.
30
+ *
31
+ * @param name The _unique_ name of the resulting resource.
32
+ * @param id The _unique_ provider ID of the resource to lookup.
33
+ * @param state Any extra arguments used during the lookup.
34
+ * @param opts Optional settings to control the behavior of the CustomResource.
35
+ */
36
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CustomApplicationState, opts?: pulumi.CustomResourceOptions): CustomApplication;
37
+ /**
38
+ * Returns true if the given object is an instance of CustomApplication. This is designed to work even
39
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
40
+ */
41
+ static isInstance(obj: any): obj is CustomApplication;
42
+ /**
43
+ * The URL of the Custom Application.
44
+ */
45
+ readonly applicationUrl: pulumi.Output<string>;
46
+ /**
47
+ * Whether external access is enabled for the Custom Application.
48
+ */
49
+ readonly externalAccessEnabled: pulumi.Output<boolean>;
50
+ /**
51
+ * The list of external email addresses that have access to the Custom Application.
52
+ */
53
+ readonly externalAccessRecipients: pulumi.Output<string[] | undefined>;
54
+ /**
55
+ * The name of the Custom Application.
56
+ */
57
+ readonly name: pulumi.Output<string>;
58
+ /**
59
+ * The ID of the Custom Application Source.
60
+ */
61
+ readonly sourceId: pulumi.Output<string>;
62
+ /**
63
+ * The version ID of the Custom Application Source.
64
+ */
65
+ readonly sourceVersionId: pulumi.Output<string>;
66
+ /**
67
+ * Create a CustomApplication resource with the given unique name, arguments, and options.
68
+ *
69
+ * @param name The _unique_ name of the resource.
70
+ * @param args The arguments to use to populate this resource's properties.
71
+ * @param opts A bag of options that control this resource's behavior.
72
+ */
73
+ constructor(name: string, args: CustomApplicationArgs, opts?: pulumi.CustomResourceOptions);
74
+ }
75
+ /**
76
+ * Input properties used for looking up and filtering CustomApplication resources.
77
+ */
78
+ export interface CustomApplicationState {
79
+ /**
80
+ * The URL of the Custom Application.
81
+ */
82
+ applicationUrl?: pulumi.Input<string>;
83
+ /**
84
+ * Whether external access is enabled for the Custom Application.
85
+ */
86
+ externalAccessEnabled?: pulumi.Input<boolean>;
87
+ /**
88
+ * The list of external email addresses that have access to the Custom Application.
89
+ */
90
+ externalAccessRecipients?: pulumi.Input<pulumi.Input<string>[]>;
91
+ /**
92
+ * The name of the Custom Application.
93
+ */
94
+ name?: pulumi.Input<string>;
95
+ /**
96
+ * The ID of the Custom Application Source.
97
+ */
98
+ sourceId?: pulumi.Input<string>;
99
+ /**
100
+ * The version ID of the Custom Application Source.
101
+ */
102
+ sourceVersionId?: pulumi.Input<string>;
103
+ }
104
+ /**
105
+ * The set of arguments for constructing a CustomApplication resource.
106
+ */
107
+ export interface CustomApplicationArgs {
108
+ /**
109
+ * Whether external access is enabled for the Custom Application.
110
+ */
111
+ externalAccessEnabled?: pulumi.Input<boolean>;
112
+ /**
113
+ * The list of external email addresses that have access to the Custom Application.
114
+ */
115
+ externalAccessRecipients?: pulumi.Input<pulumi.Input<string>[]>;
116
+ /**
117
+ * The name of the Custom Application.
118
+ */
119
+ name?: pulumi.Input<string>;
120
+ /**
121
+ * The version ID of the Custom Application Source.
122
+ */
123
+ sourceVersionId: pulumi.Input<string>;
124
+ }
@@ -0,0 +1,86 @@
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.CustomApplication = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Custom Application
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 exampleApplicationSource = new datarobot.ApplicationSource("exampleApplicationSource", {localFiles: [
18
+ * "start-app.sh",
19
+ * "streamlit-app.py",
20
+ * ]});
21
+ * const exampleCustomApplication = new datarobot.CustomApplication("exampleCustomApplication", {
22
+ * sourceVersionId: exampleApplicationSource.versionId,
23
+ * externalAccessEnabled: true,
24
+ * externalAccessRecipients: ["recipient@example.com"],
25
+ * });
26
+ * export const datarobotCustomApplicationId = exampleCustomApplication.id;
27
+ * export const datarobotCustomApplicationSourceId = exampleCustomApplication.sourceId;
28
+ * export const datarobotCustomApplicationSourceVersionId = exampleCustomApplication.sourceVersionId;
29
+ * export const datarobotCustomApplicationUrl = exampleCustomApplication.applicationUrl;
30
+ * ```
31
+ */
32
+ class CustomApplication extends pulumi.CustomResource {
33
+ /**
34
+ * Get an existing CustomApplication 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, id, state, opts) {
43
+ return new CustomApplication(name, state, Object.assign(Object.assign({}, opts), { id: id }));
44
+ }
45
+ /**
46
+ * Returns true if the given object is an instance of CustomApplication. This is designed to work even
47
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
48
+ */
49
+ static isInstance(obj) {
50
+ if (obj === undefined || obj === null) {
51
+ return false;
52
+ }
53
+ return obj['__pulumiType'] === CustomApplication.__pulumiType;
54
+ }
55
+ constructor(name, argsOrState, opts) {
56
+ let resourceInputs = {};
57
+ opts = opts || {};
58
+ if (opts.id) {
59
+ const state = argsOrState;
60
+ resourceInputs["applicationUrl"] = state ? state.applicationUrl : undefined;
61
+ resourceInputs["externalAccessEnabled"] = state ? state.externalAccessEnabled : undefined;
62
+ resourceInputs["externalAccessRecipients"] = state ? state.externalAccessRecipients : undefined;
63
+ resourceInputs["name"] = state ? state.name : undefined;
64
+ resourceInputs["sourceId"] = state ? state.sourceId : undefined;
65
+ resourceInputs["sourceVersionId"] = state ? state.sourceVersionId : undefined;
66
+ }
67
+ else {
68
+ const args = argsOrState;
69
+ if ((!args || args.sourceVersionId === undefined) && !opts.urn) {
70
+ throw new Error("Missing required property 'sourceVersionId'");
71
+ }
72
+ resourceInputs["externalAccessEnabled"] = args ? args.externalAccessEnabled : undefined;
73
+ resourceInputs["externalAccessRecipients"] = args ? args.externalAccessRecipients : undefined;
74
+ resourceInputs["name"] = args ? args.name : undefined;
75
+ resourceInputs["sourceVersionId"] = args ? args.sourceVersionId : undefined;
76
+ resourceInputs["applicationUrl"] = undefined /*out*/;
77
+ resourceInputs["sourceId"] = undefined /*out*/;
78
+ }
79
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
80
+ super(CustomApplication.__pulumiType, name, resourceInputs, opts);
81
+ }
82
+ }
83
+ exports.CustomApplication = CustomApplication;
84
+ /** @internal */
85
+ CustomApplication.__pulumiType = 'datarobot:index/customApplication:CustomApplication';
86
+ //# sourceMappingURL=customApplication.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customApplication.js","sourceRoot":"","sources":["../customApplication.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;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;IAmCD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EA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