pulumi-datarobot 0.0.28__tar.gz

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 (36) hide show
  1. pulumi_datarobot-0.0.28/PKG-INFO +170 -0
  2. pulumi_datarobot-0.0.28/README.md +156 -0
  3. pulumi_datarobot-0.0.28/pulumi_datarobot/__init__.py +179 -0
  4. pulumi_datarobot-0.0.28/pulumi_datarobot/_inputs.py +768 -0
  5. pulumi_datarobot-0.0.28/pulumi_datarobot/_utilities.py +327 -0
  6. pulumi_datarobot-0.0.28/pulumi_datarobot/api_token_credential.py +260 -0
  7. pulumi_datarobot-0.0.28/pulumi_datarobot/application_source.py +345 -0
  8. pulumi_datarobot-0.0.28/pulumi_datarobot/basic_credential.py +314 -0
  9. pulumi_datarobot-0.0.28/pulumi_datarobot/config/__init__.py +8 -0
  10. pulumi_datarobot-0.0.28/pulumi_datarobot/config/vars.py +31 -0
  11. pulumi_datarobot-0.0.28/pulumi_datarobot/custom_application.py +383 -0
  12. pulumi_datarobot-0.0.28/pulumi_datarobot/custom_model.py +1293 -0
  13. pulumi_datarobot-0.0.28/pulumi_datarobot/dataset_from_file.py +218 -0
  14. pulumi_datarobot-0.0.28/pulumi_datarobot/deployment.py +349 -0
  15. pulumi_datarobot-0.0.28/pulumi_datarobot/get_global_model.py +117 -0
  16. pulumi_datarobot-0.0.28/pulumi_datarobot/google_cloud_credential.py +193 -0
  17. pulumi_datarobot-0.0.28/pulumi_datarobot/llm_blueprint.py +369 -0
  18. pulumi_datarobot-0.0.28/pulumi_datarobot/outputs.py +767 -0
  19. pulumi_datarobot-0.0.28/pulumi_datarobot/playground.py +262 -0
  20. pulumi_datarobot-0.0.28/pulumi_datarobot/prediction_environment.py +262 -0
  21. pulumi_datarobot-0.0.28/pulumi_datarobot/provider.py +136 -0
  22. pulumi_datarobot-0.0.28/pulumi_datarobot/pulumi-plugin.json +4 -0
  23. pulumi_datarobot-0.0.28/pulumi_datarobot/py.typed +0 -0
  24. pulumi_datarobot-0.0.28/pulumi_datarobot/qa_application.py +435 -0
  25. pulumi_datarobot-0.0.28/pulumi_datarobot/registered_model.py +312 -0
  26. pulumi_datarobot-0.0.28/pulumi_datarobot/remote_repository.py +520 -0
  27. pulumi_datarobot-0.0.28/pulumi_datarobot/use_case.py +212 -0
  28. pulumi_datarobot-0.0.28/pulumi_datarobot/vector_database.py +338 -0
  29. pulumi_datarobot-0.0.28/pulumi_datarobot.egg-info/PKG-INFO +170 -0
  30. pulumi_datarobot-0.0.28/pulumi_datarobot.egg-info/SOURCES.txt +34 -0
  31. pulumi_datarobot-0.0.28/pulumi_datarobot.egg-info/dependency_links.txt +1 -0
  32. pulumi_datarobot-0.0.28/pulumi_datarobot.egg-info/not-zip-safe +1 -0
  33. pulumi_datarobot-0.0.28/pulumi_datarobot.egg-info/requires.txt +3 -0
  34. pulumi_datarobot-0.0.28/pulumi_datarobot.egg-info/top_level.txt +1 -0
  35. pulumi_datarobot-0.0.28/setup.cfg +4 -0
  36. pulumi_datarobot-0.0.28/setup.py +44 -0
@@ -0,0 +1,170 @@
1
+ Metadata-Version: 2.1
2
+ Name: pulumi_datarobot
3
+ Version: 0.0.28
4
+ Summary: A Pulumi package for creating and managing DataRobot resources.
5
+ Home-page: https://www.datarobot.com
6
+ License: Apache-2.0
7
+ Project-URL: Repository, https://github.com/datarobot-community/pulumi-datarobot
8
+ Keywords: datarobot ai category/cloud
9
+ Platform: UNKNOWN
10
+ Requires-Python: >=3.8
11
+ Description-Content-Type: text/markdown
12
+
13
+ # DataRobot Resource Provider
14
+
15
+ The DataRobot Resource Provider lets you manage [DataRobot](https://www.datarobot.com/) resources.
16
+
17
+ The provider is built on [terraform-provider-datarobot](https://github.com/datarobot-community/terraform-provider-datarobot).
18
+
19
+ To use this package, please install the [Pulumi CLI first](https://www.pulumi.com/docs/install/).
20
+
21
+ ### Prerequisites
22
+
23
+ There are a few additional steps to build this Provider locally since it has not been published to the Pulumi Registry yet.
24
+
25
+ Ensure the following tools are installed and present in your `$PATH`:
26
+
27
+ - [`pulumictl`](https://github.com/pulumi/pulumictl#installation)
28
+ - [Go >= 1.17](https://golang.org/dl/)
29
+ - [`make`](https://formulae.brew.sh/formula/make)
30
+ - [Python](https://www.python.org/downloads/) (called as `python3`) and [pip](https://pypi.org/project/pip/). For recent versions of MacOS, the system-installed version is fine.
31
+ - [NodeJS](https://nodejs.org/en/) Active or maintenance version ([Node.js Releases](https://nodejs.org/en/about/previous-releases)). We recommend using [nvm](https://github.com/nvm-sh/nvm) to manage NodeJS installations.
32
+ - [Yarn](https://yarnpkg.com/)
33
+ - [TypeScript](https://www.typescriptlang.org/)
34
+ - [.NET](https://dotnet.microsoft.com/download)
35
+
36
+ You may skip installing any languages that you are not interested in testing in right now. Go is the only language required to test in Pulumi YAML
37
+
38
+ Although the steps below contain Unix commands, the Provider can also be tested on Windows.
39
+ It is recommended to use Powershell to run the `make` commands and the Windows equivalents for `cp`, `export`, etc.
40
+
41
+ ## Run the Low-Code Monitored RAG Example
42
+
43
+ 1. In a terminal clone the `pulumi-datarobot` repository:
44
+
45
+ ~~~ shell
46
+ git clone https://github.com/datarobot-community/pulumi-datarobot.git
47
+ ~~~
48
+
49
+ 1. Build the Provider locally.
50
+ This step is only required because we have not published the Provider to the Pulumi Registry yet.
51
+
52
+ ~~~ shell
53
+ make provider
54
+ ~~~
55
+
56
+ 1. Copy the generated binary into your PATH.
57
+
58
+ ~~~ shell
59
+ cp bin/pulumi-resource-datarobot $GOPATH/bin
60
+ ~~~
61
+
62
+ Depending on your setup, this could require `sudo` permissions.
63
+ Windows users may need to rename the `pulumi-resource-datarobot` binary to `pulumi-resource-datarobot.exe` to make it executable.
64
+
65
+ 1. Go to the `examples/low_code_rag` directory.
66
+
67
+ ~~~ shell
68
+ cd examples/low_code_rag
69
+ ~~~
70
+
71
+ 1. The provider requires an API key set in an environment variable named `DATROBOT_API_KEY`. Copy the [API key](https://docs.datarobot.com/en/docs/get-started/acct-mgmt/acct-settings/api-key-mgmt.html#api-key-management) from the DataRobot console and create the `DATAROBOT_API_KEY` environment variable.
72
+
73
+ ~~~ shell
74
+ export DATAROBOT_API_KEY=<YOUR_API_KEY>
75
+ ~~~
76
+
77
+ Where `<your API key>` is the API key you copied from the DataRobot Console.
78
+
79
+ 1. The example requires Google Cloud service account credentials in order to call the Google Vertex AI API. Follow [this guide](https://cloud.google.com/iam/docs/keys-create-delete#creating) to create a service account key for your Google account.
80
+ Download the service account key file and save it as `google_credentials.json` in the current directory.
81
+
82
+ 1. Create the resources.
83
+
84
+ By defualt, Pulumi will prompt you to login to their Pulumi Cloud service to manage the state files.
85
+ To store and manage the state files locally instead, run `pulumi login --local` before continuing.
86
+ This will create the `.pulumi` directory in your home directory to manage the state.
87
+
88
+ ~~~ shell
89
+ pulumi up
90
+ ~~~
91
+
92
+ Enter a name for your Pulumi stack when prompted.
93
+ Enter `yes` when asked if you want to perform the update.
94
+
95
+ 1. Once the creation is complete, navigate to the `datarobotChatApplicationUrl` to view your chat application.
96
+
97
+ ~~~ shell
98
+ Outputs:
99
+ datarobotChatApplicationUrl: {
100
+ value: "<your_chat_application_url>"
101
+ }
102
+
103
+ Resources:
104
+ + 12 created
105
+ ~~~
106
+
107
+ 1. (optional) Delete the resources when you are done.
108
+
109
+ ~~~ shell
110
+ pulumi down
111
+ ~~~
112
+
113
+ Choose your stack name when prompted and enter `yes` to perform this destroy.
114
+
115
+ ## Python Example
116
+
117
+ Follow these steps to run the Python example.
118
+ Since the Python SDK is not published yet, it must be built and overriden locally.
119
+
120
+ 1. Install local Python SDK.
121
+
122
+ ~~~ shell
123
+ make install_python_sdk
124
+ ~~~
125
+
126
+ 1. Navigate to the example directory.
127
+
128
+ ~~~ shell
129
+ cd examples/py
130
+ ~~~
131
+
132
+ 1. Create the resources.
133
+
134
+ ~~~ shell
135
+ pulumi up
136
+ ~~~
137
+
138
+ If the command fails, try adding the location where the local SDK was installed to your PYTHONPATH. For example:
139
+ ~~~ shell
140
+ export PYTHONPATH="${PYTHONPATH}:/opt/homebrew/lib/python3.12/site-packages"
141
+ ~~~
142
+
143
+ ## Typescript Example
144
+
145
+ 1. Install local Typescript SDK.
146
+
147
+ ~~~ shell
148
+ make install_nodejs_sdk
149
+ ~~~
150
+
151
+ 1. Navigate to the example directory.
152
+
153
+ ~~~ shell
154
+ cd examples/ts
155
+ ~~~
156
+
157
+ 1. Link the local Provider
158
+
159
+ ~~~ shell
160
+ npm install
161
+ yarn link @pulumi/datarobot
162
+ ~~~
163
+
164
+ 1. Create the resources.
165
+
166
+ ~~~ shell
167
+ pulumi up
168
+ ~~~
169
+
170
+
@@ -0,0 +1,156 @@
1
+ # DataRobot Resource Provider
2
+
3
+ The DataRobot Resource Provider lets you manage [DataRobot](https://www.datarobot.com/) resources.
4
+
5
+ The provider is built on [terraform-provider-datarobot](https://github.com/datarobot-community/terraform-provider-datarobot).
6
+
7
+ To use this package, please install the [Pulumi CLI first](https://www.pulumi.com/docs/install/).
8
+
9
+ ### Prerequisites
10
+
11
+ There are a few additional steps to build this Provider locally since it has not been published to the Pulumi Registry yet.
12
+
13
+ Ensure the following tools are installed and present in your `$PATH`:
14
+
15
+ - [`pulumictl`](https://github.com/pulumi/pulumictl#installation)
16
+ - [Go >= 1.17](https://golang.org/dl/)
17
+ - [`make`](https://formulae.brew.sh/formula/make)
18
+ - [Python](https://www.python.org/downloads/) (called as `python3`) and [pip](https://pypi.org/project/pip/). For recent versions of MacOS, the system-installed version is fine.
19
+ - [NodeJS](https://nodejs.org/en/) Active or maintenance version ([Node.js Releases](https://nodejs.org/en/about/previous-releases)). We recommend using [nvm](https://github.com/nvm-sh/nvm) to manage NodeJS installations.
20
+ - [Yarn](https://yarnpkg.com/)
21
+ - [TypeScript](https://www.typescriptlang.org/)
22
+ - [.NET](https://dotnet.microsoft.com/download)
23
+
24
+ You may skip installing any languages that you are not interested in testing in right now. Go is the only language required to test in Pulumi YAML
25
+
26
+ Although the steps below contain Unix commands, the Provider can also be tested on Windows.
27
+ It is recommended to use Powershell to run the `make` commands and the Windows equivalents for `cp`, `export`, etc.
28
+
29
+ ## Run the Low-Code Monitored RAG Example
30
+
31
+ 1. In a terminal clone the `pulumi-datarobot` repository:
32
+
33
+ ~~~ shell
34
+ git clone https://github.com/datarobot-community/pulumi-datarobot.git
35
+ ~~~
36
+
37
+ 1. Build the Provider locally.
38
+ This step is only required because we have not published the Provider to the Pulumi Registry yet.
39
+
40
+ ~~~ shell
41
+ make provider
42
+ ~~~
43
+
44
+ 1. Copy the generated binary into your PATH.
45
+
46
+ ~~~ shell
47
+ cp bin/pulumi-resource-datarobot $GOPATH/bin
48
+ ~~~
49
+
50
+ Depending on your setup, this could require `sudo` permissions.
51
+ Windows users may need to rename the `pulumi-resource-datarobot` binary to `pulumi-resource-datarobot.exe` to make it executable.
52
+
53
+ 1. Go to the `examples/low_code_rag` directory.
54
+
55
+ ~~~ shell
56
+ cd examples/low_code_rag
57
+ ~~~
58
+
59
+ 1. The provider requires an API key set in an environment variable named `DATROBOT_API_KEY`. Copy the [API key](https://docs.datarobot.com/en/docs/get-started/acct-mgmt/acct-settings/api-key-mgmt.html#api-key-management) from the DataRobot console and create the `DATAROBOT_API_KEY` environment variable.
60
+
61
+ ~~~ shell
62
+ export DATAROBOT_API_KEY=<YOUR_API_KEY>
63
+ ~~~
64
+
65
+ Where `<your API key>` is the API key you copied from the DataRobot Console.
66
+
67
+ 1. The example requires Google Cloud service account credentials in order to call the Google Vertex AI API. Follow [this guide](https://cloud.google.com/iam/docs/keys-create-delete#creating) to create a service account key for your Google account.
68
+ Download the service account key file and save it as `google_credentials.json` in the current directory.
69
+
70
+ 1. Create the resources.
71
+
72
+ By defualt, Pulumi will prompt you to login to their Pulumi Cloud service to manage the state files.
73
+ To store and manage the state files locally instead, run `pulumi login --local` before continuing.
74
+ This will create the `.pulumi` directory in your home directory to manage the state.
75
+
76
+ ~~~ shell
77
+ pulumi up
78
+ ~~~
79
+
80
+ Enter a name for your Pulumi stack when prompted.
81
+ Enter `yes` when asked if you want to perform the update.
82
+
83
+ 1. Once the creation is complete, navigate to the `datarobotChatApplicationUrl` to view your chat application.
84
+
85
+ ~~~ shell
86
+ Outputs:
87
+ datarobotChatApplicationUrl: {
88
+ value: "<your_chat_application_url>"
89
+ }
90
+
91
+ Resources:
92
+ + 12 created
93
+ ~~~
94
+
95
+ 1. (optional) Delete the resources when you are done.
96
+
97
+ ~~~ shell
98
+ pulumi down
99
+ ~~~
100
+
101
+ Choose your stack name when prompted and enter `yes` to perform this destroy.
102
+
103
+ ## Python Example
104
+
105
+ Follow these steps to run the Python example.
106
+ Since the Python SDK is not published yet, it must be built and overriden locally.
107
+
108
+ 1. Install local Python SDK.
109
+
110
+ ~~~ shell
111
+ make install_python_sdk
112
+ ~~~
113
+
114
+ 1. Navigate to the example directory.
115
+
116
+ ~~~ shell
117
+ cd examples/py
118
+ ~~~
119
+
120
+ 1. Create the resources.
121
+
122
+ ~~~ shell
123
+ pulumi up
124
+ ~~~
125
+
126
+ If the command fails, try adding the location where the local SDK was installed to your PYTHONPATH. For example:
127
+ ~~~ shell
128
+ export PYTHONPATH="${PYTHONPATH}:/opt/homebrew/lib/python3.12/site-packages"
129
+ ~~~
130
+
131
+ ## Typescript Example
132
+
133
+ 1. Install local Typescript SDK.
134
+
135
+ ~~~ shell
136
+ make install_nodejs_sdk
137
+ ~~~
138
+
139
+ 1. Navigate to the example directory.
140
+
141
+ ~~~ shell
142
+ cd examples/ts
143
+ ~~~
144
+
145
+ 1. Link the local Provider
146
+
147
+ ~~~ shell
148
+ npm install
149
+ yarn link @pulumi/datarobot
150
+ ~~~
151
+
152
+ 1. Create the resources.
153
+
154
+ ~~~ shell
155
+ pulumi up
156
+ ~~~
@@ -0,0 +1,179 @@
1
+ # coding=utf-8
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
+
5
+ from . import _utilities
6
+ import typing
7
+ # Export this package's modules as members:
8
+ from .api_token_credential import *
9
+ from .application_source import *
10
+ from .basic_credential import *
11
+ from .custom_application import *
12
+ from .custom_model import *
13
+ from .dataset_from_file import *
14
+ from .deployment import *
15
+ from .get_global_model import *
16
+ from .google_cloud_credential import *
17
+ from .llm_blueprint import *
18
+ from .playground import *
19
+ from .prediction_environment import *
20
+ from .provider import *
21
+ from .qa_application import *
22
+ from .registered_model import *
23
+ from .remote_repository import *
24
+ from .use_case import *
25
+ from .vector_database import *
26
+ from ._inputs import *
27
+ from . import outputs
28
+
29
+ # Make subpackages available:
30
+ if typing.TYPE_CHECKING:
31
+ import pulumi_datarobot.config as __config
32
+ config = __config
33
+ else:
34
+ config = _utilities.lazy_import('pulumi_datarobot.config')
35
+
36
+ _utilities.register(
37
+ resource_modules="""
38
+ [
39
+ {
40
+ "pkg": "datarobot",
41
+ "mod": "index/apiTokenCredential",
42
+ "fqn": "pulumi_datarobot",
43
+ "classes": {
44
+ "datarobot:index/apiTokenCredential:ApiTokenCredential": "ApiTokenCredential"
45
+ }
46
+ },
47
+ {
48
+ "pkg": "datarobot",
49
+ "mod": "index/applicationSource",
50
+ "fqn": "pulumi_datarobot",
51
+ "classes": {
52
+ "datarobot:index/applicationSource:ApplicationSource": "ApplicationSource"
53
+ }
54
+ },
55
+ {
56
+ "pkg": "datarobot",
57
+ "mod": "index/basicCredential",
58
+ "fqn": "pulumi_datarobot",
59
+ "classes": {
60
+ "datarobot:index/basicCredential:BasicCredential": "BasicCredential"
61
+ }
62
+ },
63
+ {
64
+ "pkg": "datarobot",
65
+ "mod": "index/customApplication",
66
+ "fqn": "pulumi_datarobot",
67
+ "classes": {
68
+ "datarobot:index/customApplication:CustomApplication": "CustomApplication"
69
+ }
70
+ },
71
+ {
72
+ "pkg": "datarobot",
73
+ "mod": "index/customModel",
74
+ "fqn": "pulumi_datarobot",
75
+ "classes": {
76
+ "datarobot:index/customModel:CustomModel": "CustomModel"
77
+ }
78
+ },
79
+ {
80
+ "pkg": "datarobot",
81
+ "mod": "index/datasetFromFile",
82
+ "fqn": "pulumi_datarobot",
83
+ "classes": {
84
+ "datarobot:index/datasetFromFile:DatasetFromFile": "DatasetFromFile"
85
+ }
86
+ },
87
+ {
88
+ "pkg": "datarobot",
89
+ "mod": "index/deployment",
90
+ "fqn": "pulumi_datarobot",
91
+ "classes": {
92
+ "datarobot:index/deployment:Deployment": "Deployment"
93
+ }
94
+ },
95
+ {
96
+ "pkg": "datarobot",
97
+ "mod": "index/googleCloudCredential",
98
+ "fqn": "pulumi_datarobot",
99
+ "classes": {
100
+ "datarobot:index/googleCloudCredential:GoogleCloudCredential": "GoogleCloudCredential"
101
+ }
102
+ },
103
+ {
104
+ "pkg": "datarobot",
105
+ "mod": "index/llmBlueprint",
106
+ "fqn": "pulumi_datarobot",
107
+ "classes": {
108
+ "datarobot:index/llmBlueprint:LlmBlueprint": "LlmBlueprint"
109
+ }
110
+ },
111
+ {
112
+ "pkg": "datarobot",
113
+ "mod": "index/playground",
114
+ "fqn": "pulumi_datarobot",
115
+ "classes": {
116
+ "datarobot:index/playground:Playground": "Playground"
117
+ }
118
+ },
119
+ {
120
+ "pkg": "datarobot",
121
+ "mod": "index/predictionEnvironment",
122
+ "fqn": "pulumi_datarobot",
123
+ "classes": {
124
+ "datarobot:index/predictionEnvironment:PredictionEnvironment": "PredictionEnvironment"
125
+ }
126
+ },
127
+ {
128
+ "pkg": "datarobot",
129
+ "mod": "index/qaApplication",
130
+ "fqn": "pulumi_datarobot",
131
+ "classes": {
132
+ "datarobot:index/qaApplication:QaApplication": "QaApplication"
133
+ }
134
+ },
135
+ {
136
+ "pkg": "datarobot",
137
+ "mod": "index/registeredModel",
138
+ "fqn": "pulumi_datarobot",
139
+ "classes": {
140
+ "datarobot:index/registeredModel:RegisteredModel": "RegisteredModel"
141
+ }
142
+ },
143
+ {
144
+ "pkg": "datarobot",
145
+ "mod": "index/remoteRepository",
146
+ "fqn": "pulumi_datarobot",
147
+ "classes": {
148
+ "datarobot:index/remoteRepository:RemoteRepository": "RemoteRepository"
149
+ }
150
+ },
151
+ {
152
+ "pkg": "datarobot",
153
+ "mod": "index/useCase",
154
+ "fqn": "pulumi_datarobot",
155
+ "classes": {
156
+ "datarobot:index/useCase:UseCase": "UseCase"
157
+ }
158
+ },
159
+ {
160
+ "pkg": "datarobot",
161
+ "mod": "index/vectorDatabase",
162
+ "fqn": "pulumi_datarobot",
163
+ "classes": {
164
+ "datarobot:index/vectorDatabase:VectorDatabase": "VectorDatabase"
165
+ }
166
+ }
167
+ ]
168
+ """,
169
+ resource_packages="""
170
+ [
171
+ {
172
+ "pkg": "datarobot",
173
+ "token": "pulumi:providers:datarobot",
174
+ "fqn": "pulumi_datarobot",
175
+ "class": "Provider"
176
+ }
177
+ ]
178
+ """
179
+ )