pulumi-datarobot 0.1.30__tar.gz → 0.1.32__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.
- pulumi_datarobot-0.1.32/PKG-INFO +58 -0
- pulumi_datarobot-0.1.32/README.md +44 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/custom_model.py +94 -47
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/deployment.py +2 -2
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/qa_application.py +2 -2
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/registered_model.py +2 -2
- pulumi_datarobot-0.1.32/pulumi_datarobot.egg-info/PKG-INFO +58 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/setup.py +1 -1
- pulumi_datarobot-0.1.30/PKG-INFO +0 -177
- pulumi_datarobot-0.1.30/README.md +0 -163
- pulumi_datarobot-0.1.30/pulumi_datarobot.egg-info/PKG-INFO +0 -177
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/__init__.py +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/_inputs.py +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/_utilities.py +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/api_token_credential.py +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/application_source.py +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/basic_credential.py +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/config/__init__.py +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/config/vars.py +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/custom_application.py +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/dataset_from_file.py +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/get_global_model.py +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/google_cloud_credential.py +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/llm_blueprint.py +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/outputs.py +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/playground.py +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/prediction_environment.py +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/provider.py +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/pulumi-plugin.json +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/py.typed +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/remote_repository.py +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/use_case.py +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/vector_database.py +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot.egg-info/SOURCES.txt +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot.egg-info/dependency_links.txt +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot.egg-info/not-zip-safe +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot.egg-info/requires.txt +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot.egg-info/top_level.txt +0 -0
- {pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/setup.cfg +0 -0
@@ -0,0 +1,58 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: pulumi_datarobot
|
3
|
+
Version: 0.1.32
|
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
|
+
The provider is built on [terraform-provider-datarobot](https://github.com/datarobot-community/terraform-provider-datarobot).
|
17
|
+
To use this package, please install the [Pulumi CLI](https://pulumi.io/) first.
|
18
|
+
|
19
|
+
## Installing
|
20
|
+
|
21
|
+
This package is available for several languages/platforms:
|
22
|
+
|
23
|
+
### Python
|
24
|
+
|
25
|
+
To use from Python, install using `pip`:
|
26
|
+
|
27
|
+
```bash
|
28
|
+
pip install pulumi_datarobot
|
29
|
+
```
|
30
|
+
|
31
|
+
### Go
|
32
|
+
|
33
|
+
Coming soon...
|
34
|
+
|
35
|
+
### Javscript/Typescript
|
36
|
+
|
37
|
+
Coming soon...
|
38
|
+
|
39
|
+
### .NET
|
40
|
+
|
41
|
+
Coming soon...
|
42
|
+
|
43
|
+
### YAML
|
44
|
+
|
45
|
+
No install necessary, just run `pulumi up`.
|
46
|
+
|
47
|
+
## Configuration
|
48
|
+
|
49
|
+
The following configuration points are available for the DataRobot provider:
|
50
|
+
|
51
|
+
- `datarobot:apikey` (environment: `DATAROBOT_API_KEY`) - the API key for DataRobot
|
52
|
+
- `datarobot:endpoint` (environment: `DATAROBOT_ENDPOINT`) - the endpoint for DataRobot
|
53
|
+
|
54
|
+
## Examples
|
55
|
+
|
56
|
+
See [datarobot-pulumi examples](https://github.com/datarobot-community/pulumi-datarobot/tree/main/examples)
|
57
|
+
|
58
|
+
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# DataRobot Resource Provider
|
2
|
+
|
3
|
+
The DataRobot Resource Provider lets you manage [DataRobot](https://www.datarobot.com/) resources.
|
4
|
+
The provider is built on [terraform-provider-datarobot](https://github.com/datarobot-community/terraform-provider-datarobot).
|
5
|
+
To use this package, please install the [Pulumi CLI](https://pulumi.io/) first.
|
6
|
+
|
7
|
+
## Installing
|
8
|
+
|
9
|
+
This package is available for several languages/platforms:
|
10
|
+
|
11
|
+
### Python
|
12
|
+
|
13
|
+
To use from Python, install using `pip`:
|
14
|
+
|
15
|
+
```bash
|
16
|
+
pip install pulumi_datarobot
|
17
|
+
```
|
18
|
+
|
19
|
+
### Go
|
20
|
+
|
21
|
+
Coming soon...
|
22
|
+
|
23
|
+
### Javscript/Typescript
|
24
|
+
|
25
|
+
Coming soon...
|
26
|
+
|
27
|
+
### .NET
|
28
|
+
|
29
|
+
Coming soon...
|
30
|
+
|
31
|
+
### YAML
|
32
|
+
|
33
|
+
No install necessary, just run `pulumi up`.
|
34
|
+
|
35
|
+
## Configuration
|
36
|
+
|
37
|
+
The following configuration points are available for the DataRobot provider:
|
38
|
+
|
39
|
+
- `datarobot:apikey` (environment: `DATAROBOT_API_KEY`) - the API key for DataRobot
|
40
|
+
- `datarobot:endpoint` (environment: `DATAROBOT_ENDPOINT`) - the endpoint for DataRobot
|
41
|
+
|
42
|
+
## Examples
|
43
|
+
|
44
|
+
See [datarobot-pulumi examples](https://github.com/datarobot-community/pulumi-datarobot/tree/main/examples)
|
@@ -22,10 +22,11 @@ class CustomModelArgs:
|
|
22
22
|
class_labels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
23
23
|
class_labels_file: Optional[pulumi.Input[str]] = None,
|
24
24
|
description: Optional[pulumi.Input[str]] = None,
|
25
|
+
files: Optional[Any] = None,
|
26
|
+
folder_path: Optional[pulumi.Input[str]] = None,
|
25
27
|
guard_configurations: Optional[pulumi.Input[Sequence[pulumi.Input['CustomModelGuardConfigurationArgs']]]] = None,
|
26
28
|
is_proxy: Optional[pulumi.Input[bool]] = None,
|
27
29
|
language: Optional[pulumi.Input[str]] = None,
|
28
|
-
local_files: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
29
30
|
name: Optional[pulumi.Input[str]] = None,
|
30
31
|
negative_class_label: Optional[pulumi.Input[str]] = None,
|
31
32
|
overall_moderation_configuration: Optional[pulumi.Input['CustomModelOverallModerationConfigurationArgs']] = None,
|
@@ -47,10 +48,11 @@ class CustomModelArgs:
|
|
47
48
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] class_labels: Class labels for multiclass classification. Cannot be used with class*labels*file.
|
48
49
|
:param pulumi.Input[str] class_labels_file: Path to file containing newline separated class labels for multiclass classification. Cannot be used with class_labels.
|
49
50
|
:param pulumi.Input[str] description: The description of the Custom Model.
|
51
|
+
:param Any files: The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Custom Model. If list is of strings, then basenames will be used for tuples.
|
52
|
+
:param pulumi.Input[str] folder_path: The path to a folder containing files to build the Custom Model. Each file in the folder is uploaded under path relative to a folder path.
|
50
53
|
:param pulumi.Input[Sequence[pulumi.Input['CustomModelGuardConfigurationArgs']]] guard_configurations: The guard configurations for the Custom Model.
|
51
54
|
:param pulumi.Input[bool] is_proxy: Flag indicating if the Custom Model is a proxy model.
|
52
55
|
:param pulumi.Input[str] language: The language used to build the Custom Model.
|
53
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] local_files: The list of local file paths used to build the Custom Model.
|
54
56
|
:param pulumi.Input[str] name: The name of the Custom Model.
|
55
57
|
:param pulumi.Input[str] negative_class_label: The negative class label of the Custom Model.
|
56
58
|
:param pulumi.Input['CustomModelOverallModerationConfigurationArgs'] overall_moderation_configuration: The overall moderation configuration for the Custom Model.
|
@@ -77,14 +79,16 @@ class CustomModelArgs:
|
|
77
79
|
pulumi.set(__self__, "class_labels_file", class_labels_file)
|
78
80
|
if description is not None:
|
79
81
|
pulumi.set(__self__, "description", description)
|
82
|
+
if files is not None:
|
83
|
+
pulumi.set(__self__, "files", files)
|
84
|
+
if folder_path is not None:
|
85
|
+
pulumi.set(__self__, "folder_path", folder_path)
|
80
86
|
if guard_configurations is not None:
|
81
87
|
pulumi.set(__self__, "guard_configurations", guard_configurations)
|
82
88
|
if is_proxy is not None:
|
83
89
|
pulumi.set(__self__, "is_proxy", is_proxy)
|
84
90
|
if language is not None:
|
85
91
|
pulumi.set(__self__, "language", language)
|
86
|
-
if local_files is not None:
|
87
|
-
pulumi.set(__self__, "local_files", local_files)
|
88
92
|
if name is not None:
|
89
93
|
pulumi.set(__self__, "name", name)
|
90
94
|
if negative_class_label is not None:
|
@@ -184,6 +188,30 @@ class CustomModelArgs:
|
|
184
188
|
def description(self, value: Optional[pulumi.Input[str]]):
|
185
189
|
pulumi.set(self, "description", value)
|
186
190
|
|
191
|
+
@property
|
192
|
+
@pulumi.getter
|
193
|
+
def files(self) -> Optional[Any]:
|
194
|
+
"""
|
195
|
+
The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Custom Model. If list is of strings, then basenames will be used for tuples.
|
196
|
+
"""
|
197
|
+
return pulumi.get(self, "files")
|
198
|
+
|
199
|
+
@files.setter
|
200
|
+
def files(self, value: Optional[Any]):
|
201
|
+
pulumi.set(self, "files", value)
|
202
|
+
|
203
|
+
@property
|
204
|
+
@pulumi.getter(name="folderPath")
|
205
|
+
def folder_path(self) -> Optional[pulumi.Input[str]]:
|
206
|
+
"""
|
207
|
+
The path to a folder containing files to build the Custom Model. Each file in the folder is uploaded under path relative to a folder path.
|
208
|
+
"""
|
209
|
+
return pulumi.get(self, "folder_path")
|
210
|
+
|
211
|
+
@folder_path.setter
|
212
|
+
def folder_path(self, value: Optional[pulumi.Input[str]]):
|
213
|
+
pulumi.set(self, "folder_path", value)
|
214
|
+
|
187
215
|
@property
|
188
216
|
@pulumi.getter(name="guardConfigurations")
|
189
217
|
def guard_configurations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CustomModelGuardConfigurationArgs']]]]:
|
@@ -220,18 +248,6 @@ class CustomModelArgs:
|
|
220
248
|
def language(self, value: Optional[pulumi.Input[str]]):
|
221
249
|
pulumi.set(self, "language", value)
|
222
250
|
|
223
|
-
@property
|
224
|
-
@pulumi.getter(name="localFiles")
|
225
|
-
def local_files(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
226
|
-
"""
|
227
|
-
The list of local file paths used to build the Custom Model.
|
228
|
-
"""
|
229
|
-
return pulumi.get(self, "local_files")
|
230
|
-
|
231
|
-
@local_files.setter
|
232
|
-
def local_files(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
233
|
-
pulumi.set(self, "local_files", value)
|
234
|
-
|
235
251
|
@property
|
236
252
|
@pulumi.getter
|
237
253
|
def name(self) -> Optional[pulumi.Input[str]]:
|
@@ -399,10 +415,11 @@ class _CustomModelState:
|
|
399
415
|
class_labels_file: Optional[pulumi.Input[str]] = None,
|
400
416
|
deployments_count: Optional[pulumi.Input[int]] = None,
|
401
417
|
description: Optional[pulumi.Input[str]] = None,
|
418
|
+
files: Optional[Any] = None,
|
419
|
+
folder_path: Optional[pulumi.Input[str]] = None,
|
402
420
|
guard_configurations: Optional[pulumi.Input[Sequence[pulumi.Input['CustomModelGuardConfigurationArgs']]]] = None,
|
403
421
|
is_proxy: Optional[pulumi.Input[bool]] = None,
|
404
422
|
language: Optional[pulumi.Input[str]] = None,
|
405
|
-
local_files: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
406
423
|
name: Optional[pulumi.Input[str]] = None,
|
407
424
|
negative_class_label: Optional[pulumi.Input[str]] = None,
|
408
425
|
overall_moderation_configuration: Optional[pulumi.Input['CustomModelOverallModerationConfigurationArgs']] = None,
|
@@ -428,10 +445,11 @@ class _CustomModelState:
|
|
428
445
|
:param pulumi.Input[str] class_labels_file: Path to file containing newline separated class labels for multiclass classification. Cannot be used with class_labels.
|
429
446
|
:param pulumi.Input[int] deployments_count: The number of deployments for the Custom Model.
|
430
447
|
:param pulumi.Input[str] description: The description of the Custom Model.
|
448
|
+
:param Any files: The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Custom Model. If list is of strings, then basenames will be used for tuples.
|
449
|
+
:param pulumi.Input[str] folder_path: The path to a folder containing files to build the Custom Model. Each file in the folder is uploaded under path relative to a folder path.
|
431
450
|
:param pulumi.Input[Sequence[pulumi.Input['CustomModelGuardConfigurationArgs']]] guard_configurations: The guard configurations for the Custom Model.
|
432
451
|
:param pulumi.Input[bool] is_proxy: Flag indicating if the Custom Model is a proxy model.
|
433
452
|
:param pulumi.Input[str] language: The language used to build the Custom Model.
|
434
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] local_files: The list of local file paths used to build the Custom Model.
|
435
453
|
:param pulumi.Input[str] name: The name of the Custom Model.
|
436
454
|
:param pulumi.Input[str] negative_class_label: The negative class label of the Custom Model.
|
437
455
|
:param pulumi.Input['CustomModelOverallModerationConfigurationArgs'] overall_moderation_configuration: The overall moderation configuration for the Custom Model.
|
@@ -463,14 +481,16 @@ class _CustomModelState:
|
|
463
481
|
pulumi.set(__self__, "deployments_count", deployments_count)
|
464
482
|
if description is not None:
|
465
483
|
pulumi.set(__self__, "description", description)
|
484
|
+
if files is not None:
|
485
|
+
pulumi.set(__self__, "files", files)
|
486
|
+
if folder_path is not None:
|
487
|
+
pulumi.set(__self__, "folder_path", folder_path)
|
466
488
|
if guard_configurations is not None:
|
467
489
|
pulumi.set(__self__, "guard_configurations", guard_configurations)
|
468
490
|
if is_proxy is not None:
|
469
491
|
pulumi.set(__self__, "is_proxy", is_proxy)
|
470
492
|
if language is not None:
|
471
493
|
pulumi.set(__self__, "language", language)
|
472
|
-
if local_files is not None:
|
473
|
-
pulumi.set(__self__, "local_files", local_files)
|
474
494
|
if name is not None:
|
475
495
|
pulumi.set(__self__, "name", name)
|
476
496
|
if negative_class_label is not None:
|
@@ -588,6 +608,30 @@ class _CustomModelState:
|
|
588
608
|
def description(self, value: Optional[pulumi.Input[str]]):
|
589
609
|
pulumi.set(self, "description", value)
|
590
610
|
|
611
|
+
@property
|
612
|
+
@pulumi.getter
|
613
|
+
def files(self) -> Optional[Any]:
|
614
|
+
"""
|
615
|
+
The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Custom Model. If list is of strings, then basenames will be used for tuples.
|
616
|
+
"""
|
617
|
+
return pulumi.get(self, "files")
|
618
|
+
|
619
|
+
@files.setter
|
620
|
+
def files(self, value: Optional[Any]):
|
621
|
+
pulumi.set(self, "files", value)
|
622
|
+
|
623
|
+
@property
|
624
|
+
@pulumi.getter(name="folderPath")
|
625
|
+
def folder_path(self) -> Optional[pulumi.Input[str]]:
|
626
|
+
"""
|
627
|
+
The path to a folder containing files to build the Custom Model. Each file in the folder is uploaded under path relative to a folder path.
|
628
|
+
"""
|
629
|
+
return pulumi.get(self, "folder_path")
|
630
|
+
|
631
|
+
@folder_path.setter
|
632
|
+
def folder_path(self, value: Optional[pulumi.Input[str]]):
|
633
|
+
pulumi.set(self, "folder_path", value)
|
634
|
+
|
591
635
|
@property
|
592
636
|
@pulumi.getter(name="guardConfigurations")
|
593
637
|
def guard_configurations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CustomModelGuardConfigurationArgs']]]]:
|
@@ -624,18 +668,6 @@ class _CustomModelState:
|
|
624
668
|
def language(self, value: Optional[pulumi.Input[str]]):
|
625
669
|
pulumi.set(self, "language", value)
|
626
670
|
|
627
|
-
@property
|
628
|
-
@pulumi.getter(name="localFiles")
|
629
|
-
def local_files(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
630
|
-
"""
|
631
|
-
The list of local file paths used to build the Custom Model.
|
632
|
-
"""
|
633
|
-
return pulumi.get(self, "local_files")
|
634
|
-
|
635
|
-
@local_files.setter
|
636
|
-
def local_files(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
637
|
-
pulumi.set(self, "local_files", value)
|
638
|
-
|
639
671
|
@property
|
640
672
|
@pulumi.getter
|
641
673
|
def name(self) -> Optional[pulumi.Input[str]]:
|
@@ -840,10 +872,11 @@ class CustomModel(pulumi.CustomResource):
|
|
840
872
|
class_labels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
841
873
|
class_labels_file: Optional[pulumi.Input[str]] = None,
|
842
874
|
description: Optional[pulumi.Input[str]] = None,
|
875
|
+
files: Optional[Any] = None,
|
876
|
+
folder_path: Optional[pulumi.Input[str]] = None,
|
843
877
|
guard_configurations: Optional[pulumi.Input[Sequence[pulumi.Input[Union['CustomModelGuardConfigurationArgs', 'CustomModelGuardConfigurationArgsDict']]]]] = None,
|
844
878
|
is_proxy: Optional[pulumi.Input[bool]] = None,
|
845
879
|
language: Optional[pulumi.Input[str]] = None,
|
846
|
-
local_files: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
847
880
|
name: Optional[pulumi.Input[str]] = None,
|
848
881
|
negative_class_label: Optional[pulumi.Input[str]] = None,
|
849
882
|
overall_moderation_configuration: Optional[pulumi.Input[Union['CustomModelOverallModerationConfigurationArgs', 'CustomModelOverallModerationConfigurationArgsDict']]] = None,
|
@@ -869,10 +902,11 @@ class CustomModel(pulumi.CustomResource):
|
|
869
902
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] class_labels: Class labels for multiclass classification. Cannot be used with class*labels*file.
|
870
903
|
:param pulumi.Input[str] class_labels_file: Path to file containing newline separated class labels for multiclass classification. Cannot be used with class_labels.
|
871
904
|
:param pulumi.Input[str] description: The description of the Custom Model.
|
905
|
+
:param Any files: The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Custom Model. If list is of strings, then basenames will be used for tuples.
|
906
|
+
:param pulumi.Input[str] folder_path: The path to a folder containing files to build the Custom Model. Each file in the folder is uploaded under path relative to a folder path.
|
872
907
|
:param pulumi.Input[Sequence[pulumi.Input[Union['CustomModelGuardConfigurationArgs', 'CustomModelGuardConfigurationArgsDict']]]] guard_configurations: The guard configurations for the Custom Model.
|
873
908
|
:param pulumi.Input[bool] is_proxy: Flag indicating if the Custom Model is a proxy model.
|
874
909
|
:param pulumi.Input[str] language: The language used to build the Custom Model.
|
875
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] local_files: The list of local file paths used to build the Custom Model.
|
876
910
|
:param pulumi.Input[str] name: The name of the Custom Model.
|
877
911
|
:param pulumi.Input[str] negative_class_label: The negative class label of the Custom Model.
|
878
912
|
:param pulumi.Input[Union['CustomModelOverallModerationConfigurationArgs', 'CustomModelOverallModerationConfigurationArgsDict']] overall_moderation_configuration: The overall moderation configuration for the Custom Model.
|
@@ -917,10 +951,11 @@ class CustomModel(pulumi.CustomResource):
|
|
917
951
|
class_labels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
918
952
|
class_labels_file: Optional[pulumi.Input[str]] = None,
|
919
953
|
description: Optional[pulumi.Input[str]] = None,
|
954
|
+
files: Optional[Any] = None,
|
955
|
+
folder_path: Optional[pulumi.Input[str]] = None,
|
920
956
|
guard_configurations: Optional[pulumi.Input[Sequence[pulumi.Input[Union['CustomModelGuardConfigurationArgs', 'CustomModelGuardConfigurationArgsDict']]]]] = None,
|
921
957
|
is_proxy: Optional[pulumi.Input[bool]] = None,
|
922
958
|
language: Optional[pulumi.Input[str]] = None,
|
923
|
-
local_files: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
924
959
|
name: Optional[pulumi.Input[str]] = None,
|
925
960
|
negative_class_label: Optional[pulumi.Input[str]] = None,
|
926
961
|
overall_moderation_configuration: Optional[pulumi.Input[Union['CustomModelOverallModerationConfigurationArgs', 'CustomModelOverallModerationConfigurationArgsDict']]] = None,
|
@@ -949,10 +984,11 @@ class CustomModel(pulumi.CustomResource):
|
|
949
984
|
__props__.__dict__["class_labels"] = class_labels
|
950
985
|
__props__.__dict__["class_labels_file"] = class_labels_file
|
951
986
|
__props__.__dict__["description"] = description
|
987
|
+
__props__.__dict__["files"] = files
|
988
|
+
__props__.__dict__["folder_path"] = folder_path
|
952
989
|
__props__.__dict__["guard_configurations"] = guard_configurations
|
953
990
|
__props__.__dict__["is_proxy"] = is_proxy
|
954
991
|
__props__.__dict__["language"] = language
|
955
|
-
__props__.__dict__["local_files"] = local_files
|
956
992
|
__props__.__dict__["name"] = name
|
957
993
|
__props__.__dict__["negative_class_label"] = negative_class_label
|
958
994
|
__props__.__dict__["overall_moderation_configuration"] = overall_moderation_configuration
|
@@ -987,10 +1023,11 @@ class CustomModel(pulumi.CustomResource):
|
|
987
1023
|
class_labels_file: Optional[pulumi.Input[str]] = None,
|
988
1024
|
deployments_count: Optional[pulumi.Input[int]] = None,
|
989
1025
|
description: Optional[pulumi.Input[str]] = None,
|
1026
|
+
files: Optional[Any] = None,
|
1027
|
+
folder_path: Optional[pulumi.Input[str]] = None,
|
990
1028
|
guard_configurations: Optional[pulumi.Input[Sequence[pulumi.Input[Union['CustomModelGuardConfigurationArgs', 'CustomModelGuardConfigurationArgsDict']]]]] = None,
|
991
1029
|
is_proxy: Optional[pulumi.Input[bool]] = None,
|
992
1030
|
language: Optional[pulumi.Input[str]] = None,
|
993
|
-
local_files: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
994
1031
|
name: Optional[pulumi.Input[str]] = None,
|
995
1032
|
negative_class_label: Optional[pulumi.Input[str]] = None,
|
996
1033
|
overall_moderation_configuration: Optional[pulumi.Input[Union['CustomModelOverallModerationConfigurationArgs', 'CustomModelOverallModerationConfigurationArgsDict']]] = None,
|
@@ -1021,10 +1058,11 @@ class CustomModel(pulumi.CustomResource):
|
|
1021
1058
|
:param pulumi.Input[str] class_labels_file: Path to file containing newline separated class labels for multiclass classification. Cannot be used with class_labels.
|
1022
1059
|
:param pulumi.Input[int] deployments_count: The number of deployments for the Custom Model.
|
1023
1060
|
:param pulumi.Input[str] description: The description of the Custom Model.
|
1061
|
+
:param Any files: The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Custom Model. If list is of strings, then basenames will be used for tuples.
|
1062
|
+
:param pulumi.Input[str] folder_path: The path to a folder containing files to build the Custom Model. Each file in the folder is uploaded under path relative to a folder path.
|
1024
1063
|
:param pulumi.Input[Sequence[pulumi.Input[Union['CustomModelGuardConfigurationArgs', 'CustomModelGuardConfigurationArgsDict']]]] guard_configurations: The guard configurations for the Custom Model.
|
1025
1064
|
:param pulumi.Input[bool] is_proxy: Flag indicating if the Custom Model is a proxy model.
|
1026
1065
|
:param pulumi.Input[str] language: The language used to build the Custom Model.
|
1027
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] local_files: The list of local file paths used to build the Custom Model.
|
1028
1066
|
:param pulumi.Input[str] name: The name of the Custom Model.
|
1029
1067
|
:param pulumi.Input[str] negative_class_label: The negative class label of the Custom Model.
|
1030
1068
|
:param pulumi.Input[Union['CustomModelOverallModerationConfigurationArgs', 'CustomModelOverallModerationConfigurationArgsDict']] overall_moderation_configuration: The overall moderation configuration for the Custom Model.
|
@@ -1053,10 +1091,11 @@ class CustomModel(pulumi.CustomResource):
|
|
1053
1091
|
__props__.__dict__["class_labels_file"] = class_labels_file
|
1054
1092
|
__props__.__dict__["deployments_count"] = deployments_count
|
1055
1093
|
__props__.__dict__["description"] = description
|
1094
|
+
__props__.__dict__["files"] = files
|
1095
|
+
__props__.__dict__["folder_path"] = folder_path
|
1056
1096
|
__props__.__dict__["guard_configurations"] = guard_configurations
|
1057
1097
|
__props__.__dict__["is_proxy"] = is_proxy
|
1058
1098
|
__props__.__dict__["language"] = language
|
1059
|
-
__props__.__dict__["local_files"] = local_files
|
1060
1099
|
__props__.__dict__["name"] = name
|
1061
1100
|
__props__.__dict__["negative_class_label"] = negative_class_label
|
1062
1101
|
__props__.__dict__["overall_moderation_configuration"] = overall_moderation_configuration
|
@@ -1131,6 +1170,22 @@ class CustomModel(pulumi.CustomResource):
|
|
1131
1170
|
"""
|
1132
1171
|
return pulumi.get(self, "description")
|
1133
1172
|
|
1173
|
+
@property
|
1174
|
+
@pulumi.getter
|
1175
|
+
def files(self) -> pulumi.Output[Optional[Any]]:
|
1176
|
+
"""
|
1177
|
+
The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Custom Model. If list is of strings, then basenames will be used for tuples.
|
1178
|
+
"""
|
1179
|
+
return pulumi.get(self, "files")
|
1180
|
+
|
1181
|
+
@property
|
1182
|
+
@pulumi.getter(name="folderPath")
|
1183
|
+
def folder_path(self) -> pulumi.Output[Optional[str]]:
|
1184
|
+
"""
|
1185
|
+
The path to a folder containing files to build the Custom Model. Each file in the folder is uploaded under path relative to a folder path.
|
1186
|
+
"""
|
1187
|
+
return pulumi.get(self, "folder_path")
|
1188
|
+
|
1134
1189
|
@property
|
1135
1190
|
@pulumi.getter(name="guardConfigurations")
|
1136
1191
|
def guard_configurations(self) -> pulumi.Output[Optional[Sequence['outputs.CustomModelGuardConfiguration']]]:
|
@@ -1155,14 +1210,6 @@ class CustomModel(pulumi.CustomResource):
|
|
1155
1210
|
"""
|
1156
1211
|
return pulumi.get(self, "language")
|
1157
1212
|
|
1158
|
-
@property
|
1159
|
-
@pulumi.getter(name="localFiles")
|
1160
|
-
def local_files(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
1161
|
-
"""
|
1162
|
-
The list of local file paths used to build the Custom Model.
|
1163
|
-
"""
|
1164
|
-
return pulumi.get(self, "local_files")
|
1165
|
-
|
1166
1213
|
@property
|
1167
1214
|
@pulumi.getter
|
1168
1215
|
def name(self) -> pulumi.Output[str]:
|
@@ -178,7 +178,7 @@ class Deployment(pulumi.CustomResource):
|
|
178
178
|
target_type="Binary",
|
179
179
|
target_name="my_label",
|
180
180
|
base_environment_name="[GenAI] Python 3.11 with Moderations",
|
181
|
-
|
181
|
+
files=["example.py"])
|
182
182
|
example_registered_model = datarobot.RegisteredModel("exampleRegisteredModel",
|
183
183
|
custom_model_version_id=example_custom_model.version_id,
|
184
184
|
description="Description for the example registered model")
|
@@ -223,7 +223,7 @@ class Deployment(pulumi.CustomResource):
|
|
223
223
|
target_type="Binary",
|
224
224
|
target_name="my_label",
|
225
225
|
base_environment_name="[GenAI] Python 3.11 with Moderations",
|
226
|
-
|
226
|
+
files=["example.py"])
|
227
227
|
example_registered_model = datarobot.RegisteredModel("exampleRegisteredModel",
|
228
228
|
custom_model_version_id=example_custom_model.version_id,
|
229
229
|
description="Description for the example registered model")
|
@@ -226,7 +226,7 @@ class QaApplication(pulumi.CustomResource):
|
|
226
226
|
target_type="Binary",
|
227
227
|
target_name="my_label",
|
228
228
|
base_environment_name="[GenAI] Python 3.11 with Moderations",
|
229
|
-
|
229
|
+
files=["example.py"])
|
230
230
|
example_registered_model = datarobot.RegisteredModel("exampleRegisteredModel",
|
231
231
|
custom_model_version_id=example_custom_model.version_id,
|
232
232
|
description="Description for the example registered model")
|
@@ -274,7 +274,7 @@ class QaApplication(pulumi.CustomResource):
|
|
274
274
|
target_type="Binary",
|
275
275
|
target_name="my_label",
|
276
276
|
base_environment_name="[GenAI] Python 3.11 with Moderations",
|
277
|
-
|
277
|
+
files=["example.py"])
|
278
278
|
example_registered_model = datarobot.RegisteredModel("exampleRegisteredModel",
|
279
279
|
custom_model_version_id=example_custom_model.version_id,
|
280
280
|
description="Description for the example registered model")
|
@@ -161,7 +161,7 @@ class RegisteredModel(pulumi.CustomResource):
|
|
161
161
|
target_type="Binary",
|
162
162
|
target_name="my_label",
|
163
163
|
base_environment_name="[GenAI] Python 3.11 with Moderations",
|
164
|
-
|
164
|
+
files=["example.py"])
|
165
165
|
example_registered_model = datarobot.RegisteredModel("exampleRegisteredModel",
|
166
166
|
custom_model_version_id=example_custom_model.version_id,
|
167
167
|
description="Description for the example registered model")
|
@@ -198,7 +198,7 @@ class RegisteredModel(pulumi.CustomResource):
|
|
198
198
|
target_type="Binary",
|
199
199
|
target_name="my_label",
|
200
200
|
base_environment_name="[GenAI] Python 3.11 with Moderations",
|
201
|
-
|
201
|
+
files=["example.py"])
|
202
202
|
example_registered_model = datarobot.RegisteredModel("exampleRegisteredModel",
|
203
203
|
custom_model_version_id=example_custom_model.version_id,
|
204
204
|
description="Description for the example registered model")
|
@@ -0,0 +1,58 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: pulumi-datarobot
|
3
|
+
Version: 0.1.32
|
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
|
+
The provider is built on [terraform-provider-datarobot](https://github.com/datarobot-community/terraform-provider-datarobot).
|
17
|
+
To use this package, please install the [Pulumi CLI](https://pulumi.io/) first.
|
18
|
+
|
19
|
+
## Installing
|
20
|
+
|
21
|
+
This package is available for several languages/platforms:
|
22
|
+
|
23
|
+
### Python
|
24
|
+
|
25
|
+
To use from Python, install using `pip`:
|
26
|
+
|
27
|
+
```bash
|
28
|
+
pip install pulumi_datarobot
|
29
|
+
```
|
30
|
+
|
31
|
+
### Go
|
32
|
+
|
33
|
+
Coming soon...
|
34
|
+
|
35
|
+
### Javscript/Typescript
|
36
|
+
|
37
|
+
Coming soon...
|
38
|
+
|
39
|
+
### .NET
|
40
|
+
|
41
|
+
Coming soon...
|
42
|
+
|
43
|
+
### YAML
|
44
|
+
|
45
|
+
No install necessary, just run `pulumi up`.
|
46
|
+
|
47
|
+
## Configuration
|
48
|
+
|
49
|
+
The following configuration points are available for the DataRobot provider:
|
50
|
+
|
51
|
+
- `datarobot:apikey` (environment: `DATAROBOT_API_KEY`) - the API key for DataRobot
|
52
|
+
- `datarobot:endpoint` (environment: `DATAROBOT_ENDPOINT`) - the endpoint for DataRobot
|
53
|
+
|
54
|
+
## Examples
|
55
|
+
|
56
|
+
See [datarobot-pulumi examples](https://github.com/datarobot-community/pulumi-datarobot/tree/main/examples)
|
57
|
+
|
58
|
+
|
pulumi_datarobot-0.1.30/PKG-INFO
DELETED
@@ -1,177 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: pulumi_datarobot
|
3
|
-
Version: 0.1.30
|
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
|
-
## Configuration
|
42
|
-
|
43
|
-
The following configuration points are available for the DataRobot provider:
|
44
|
-
|
45
|
-
- `datarobot:apikey` (environment: `DATAROBOT_API_KEY`) - the API key for DataRobot
|
46
|
-
- `datarobot:endpoint` (environment: `DATAROBOT_ENDPOINT`) - the endpoint for DataRobot
|
47
|
-
|
48
|
-
## Run the Low-Code Monitored RAG Example
|
49
|
-
|
50
|
-
1. In a terminal clone the `pulumi-datarobot` repository:
|
51
|
-
|
52
|
-
~~~ shell
|
53
|
-
git clone https://github.com/datarobot-community/pulumi-datarobot.git
|
54
|
-
~~~
|
55
|
-
|
56
|
-
1. Build the Provider locally.
|
57
|
-
This step is only required because we have not published the Provider to the Pulumi Registry yet.
|
58
|
-
|
59
|
-
~~~ shell
|
60
|
-
make provider
|
61
|
-
~~~
|
62
|
-
|
63
|
-
1. Copy the generated binary into your PATH.
|
64
|
-
|
65
|
-
~~~ shell
|
66
|
-
cp bin/pulumi-resource-datarobot $GOPATH/bin
|
67
|
-
~~~
|
68
|
-
|
69
|
-
Depending on your setup, this could require `sudo` permissions.
|
70
|
-
Windows users may need to rename the `pulumi-resource-datarobot` binary to `pulumi-resource-datarobot.exe` to make it executable.
|
71
|
-
|
72
|
-
1. Go to the `examples/low_code_rag` directory.
|
73
|
-
|
74
|
-
~~~ shell
|
75
|
-
cd examples/low_code_rag
|
76
|
-
~~~
|
77
|
-
|
78
|
-
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.
|
79
|
-
|
80
|
-
~~~ shell
|
81
|
-
export DATAROBOT_API_KEY=<YOUR_API_KEY>
|
82
|
-
~~~
|
83
|
-
|
84
|
-
Where `<your API key>` is the API key you copied from the DataRobot Console.
|
85
|
-
|
86
|
-
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.
|
87
|
-
Download the service account key file and save it as `google_credentials.json` in the current directory.
|
88
|
-
|
89
|
-
1. Create the resources.
|
90
|
-
|
91
|
-
By defualt, Pulumi will prompt you to login to their Pulumi Cloud service to manage the state files.
|
92
|
-
To store and manage the state files locally instead, run `pulumi login --local` before continuing.
|
93
|
-
This will create the `.pulumi` directory in your home directory to manage the state.
|
94
|
-
|
95
|
-
~~~ shell
|
96
|
-
pulumi up
|
97
|
-
~~~
|
98
|
-
|
99
|
-
Enter a name for your Pulumi stack when prompted.
|
100
|
-
Enter `yes` when asked if you want to perform the update.
|
101
|
-
|
102
|
-
1. Once the creation is complete, navigate to the `datarobotChatApplicationUrl` to view your chat application.
|
103
|
-
|
104
|
-
~~~ shell
|
105
|
-
Outputs:
|
106
|
-
datarobotChatApplicationUrl: {
|
107
|
-
value: "<your_chat_application_url>"
|
108
|
-
}
|
109
|
-
|
110
|
-
Resources:
|
111
|
-
+ 12 created
|
112
|
-
~~~
|
113
|
-
|
114
|
-
1. (optional) Delete the resources when you are done.
|
115
|
-
|
116
|
-
~~~ shell
|
117
|
-
pulumi down
|
118
|
-
~~~
|
119
|
-
|
120
|
-
Choose your stack name when prompted and enter `yes` to perform this destroy.
|
121
|
-
|
122
|
-
## Python Example
|
123
|
-
|
124
|
-
Follow these steps to run the Python example.
|
125
|
-
Since the Python SDK is not published yet, it must be built and overriden locally.
|
126
|
-
|
127
|
-
1. Install local Python SDK.
|
128
|
-
|
129
|
-
~~~ shell
|
130
|
-
make install_python_sdk
|
131
|
-
~~~
|
132
|
-
|
133
|
-
1. Navigate to the example directory.
|
134
|
-
|
135
|
-
~~~ shell
|
136
|
-
cd examples/py
|
137
|
-
~~~
|
138
|
-
|
139
|
-
1. Create the resources.
|
140
|
-
|
141
|
-
~~~ shell
|
142
|
-
pulumi up
|
143
|
-
~~~
|
144
|
-
|
145
|
-
If the command fails, try adding the location where the local SDK was installed to your PYTHONPATH. For example:
|
146
|
-
~~~ shell
|
147
|
-
export PYTHONPATH="${PYTHONPATH}:/opt/homebrew/lib/python3.12/site-packages"
|
148
|
-
~~~
|
149
|
-
|
150
|
-
## Typescript Example
|
151
|
-
|
152
|
-
1. Install local Typescript SDK.
|
153
|
-
|
154
|
-
~~~ shell
|
155
|
-
make install_nodejs_sdk
|
156
|
-
~~~
|
157
|
-
|
158
|
-
1. Navigate to the example directory.
|
159
|
-
|
160
|
-
~~~ shell
|
161
|
-
cd examples/ts
|
162
|
-
~~~
|
163
|
-
|
164
|
-
1. Link the local Provider
|
165
|
-
|
166
|
-
~~~ shell
|
167
|
-
npm install
|
168
|
-
yarn link @pulumi/datarobot
|
169
|
-
~~~
|
170
|
-
|
171
|
-
1. Create the resources.
|
172
|
-
|
173
|
-
~~~ shell
|
174
|
-
pulumi up
|
175
|
-
~~~
|
176
|
-
|
177
|
-
|
@@ -1,163 +0,0 @@
|
|
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
|
-
## Configuration
|
30
|
-
|
31
|
-
The following configuration points are available for the DataRobot provider:
|
32
|
-
|
33
|
-
- `datarobot:apikey` (environment: `DATAROBOT_API_KEY`) - the API key for DataRobot
|
34
|
-
- `datarobot:endpoint` (environment: `DATAROBOT_ENDPOINT`) - the endpoint for DataRobot
|
35
|
-
|
36
|
-
## Run the Low-Code Monitored RAG Example
|
37
|
-
|
38
|
-
1. In a terminal clone the `pulumi-datarobot` repository:
|
39
|
-
|
40
|
-
~~~ shell
|
41
|
-
git clone https://github.com/datarobot-community/pulumi-datarobot.git
|
42
|
-
~~~
|
43
|
-
|
44
|
-
1. Build the Provider locally.
|
45
|
-
This step is only required because we have not published the Provider to the Pulumi Registry yet.
|
46
|
-
|
47
|
-
~~~ shell
|
48
|
-
make provider
|
49
|
-
~~~
|
50
|
-
|
51
|
-
1. Copy the generated binary into your PATH.
|
52
|
-
|
53
|
-
~~~ shell
|
54
|
-
cp bin/pulumi-resource-datarobot $GOPATH/bin
|
55
|
-
~~~
|
56
|
-
|
57
|
-
Depending on your setup, this could require `sudo` permissions.
|
58
|
-
Windows users may need to rename the `pulumi-resource-datarobot` binary to `pulumi-resource-datarobot.exe` to make it executable.
|
59
|
-
|
60
|
-
1. Go to the `examples/low_code_rag` directory.
|
61
|
-
|
62
|
-
~~~ shell
|
63
|
-
cd examples/low_code_rag
|
64
|
-
~~~
|
65
|
-
|
66
|
-
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.
|
67
|
-
|
68
|
-
~~~ shell
|
69
|
-
export DATAROBOT_API_KEY=<YOUR_API_KEY>
|
70
|
-
~~~
|
71
|
-
|
72
|
-
Where `<your API key>` is the API key you copied from the DataRobot Console.
|
73
|
-
|
74
|
-
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.
|
75
|
-
Download the service account key file and save it as `google_credentials.json` in the current directory.
|
76
|
-
|
77
|
-
1. Create the resources.
|
78
|
-
|
79
|
-
By defualt, Pulumi will prompt you to login to their Pulumi Cloud service to manage the state files.
|
80
|
-
To store and manage the state files locally instead, run `pulumi login --local` before continuing.
|
81
|
-
This will create the `.pulumi` directory in your home directory to manage the state.
|
82
|
-
|
83
|
-
~~~ shell
|
84
|
-
pulumi up
|
85
|
-
~~~
|
86
|
-
|
87
|
-
Enter a name for your Pulumi stack when prompted.
|
88
|
-
Enter `yes` when asked if you want to perform the update.
|
89
|
-
|
90
|
-
1. Once the creation is complete, navigate to the `datarobotChatApplicationUrl` to view your chat application.
|
91
|
-
|
92
|
-
~~~ shell
|
93
|
-
Outputs:
|
94
|
-
datarobotChatApplicationUrl: {
|
95
|
-
value: "<your_chat_application_url>"
|
96
|
-
}
|
97
|
-
|
98
|
-
Resources:
|
99
|
-
+ 12 created
|
100
|
-
~~~
|
101
|
-
|
102
|
-
1. (optional) Delete the resources when you are done.
|
103
|
-
|
104
|
-
~~~ shell
|
105
|
-
pulumi down
|
106
|
-
~~~
|
107
|
-
|
108
|
-
Choose your stack name when prompted and enter `yes` to perform this destroy.
|
109
|
-
|
110
|
-
## Python Example
|
111
|
-
|
112
|
-
Follow these steps to run the Python example.
|
113
|
-
Since the Python SDK is not published yet, it must be built and overriden locally.
|
114
|
-
|
115
|
-
1. Install local Python SDK.
|
116
|
-
|
117
|
-
~~~ shell
|
118
|
-
make install_python_sdk
|
119
|
-
~~~
|
120
|
-
|
121
|
-
1. Navigate to the example directory.
|
122
|
-
|
123
|
-
~~~ shell
|
124
|
-
cd examples/py
|
125
|
-
~~~
|
126
|
-
|
127
|
-
1. Create the resources.
|
128
|
-
|
129
|
-
~~~ shell
|
130
|
-
pulumi up
|
131
|
-
~~~
|
132
|
-
|
133
|
-
If the command fails, try adding the location where the local SDK was installed to your PYTHONPATH. For example:
|
134
|
-
~~~ shell
|
135
|
-
export PYTHONPATH="${PYTHONPATH}:/opt/homebrew/lib/python3.12/site-packages"
|
136
|
-
~~~
|
137
|
-
|
138
|
-
## Typescript Example
|
139
|
-
|
140
|
-
1. Install local Typescript SDK.
|
141
|
-
|
142
|
-
~~~ shell
|
143
|
-
make install_nodejs_sdk
|
144
|
-
~~~
|
145
|
-
|
146
|
-
1. Navigate to the example directory.
|
147
|
-
|
148
|
-
~~~ shell
|
149
|
-
cd examples/ts
|
150
|
-
~~~
|
151
|
-
|
152
|
-
1. Link the local Provider
|
153
|
-
|
154
|
-
~~~ shell
|
155
|
-
npm install
|
156
|
-
yarn link @pulumi/datarobot
|
157
|
-
~~~
|
158
|
-
|
159
|
-
1. Create the resources.
|
160
|
-
|
161
|
-
~~~ shell
|
162
|
-
pulumi up
|
163
|
-
~~~
|
@@ -1,177 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: pulumi-datarobot
|
3
|
-
Version: 0.1.30
|
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
|
-
## Configuration
|
42
|
-
|
43
|
-
The following configuration points are available for the DataRobot provider:
|
44
|
-
|
45
|
-
- `datarobot:apikey` (environment: `DATAROBOT_API_KEY`) - the API key for DataRobot
|
46
|
-
- `datarobot:endpoint` (environment: `DATAROBOT_ENDPOINT`) - the endpoint for DataRobot
|
47
|
-
|
48
|
-
## Run the Low-Code Monitored RAG Example
|
49
|
-
|
50
|
-
1. In a terminal clone the `pulumi-datarobot` repository:
|
51
|
-
|
52
|
-
~~~ shell
|
53
|
-
git clone https://github.com/datarobot-community/pulumi-datarobot.git
|
54
|
-
~~~
|
55
|
-
|
56
|
-
1. Build the Provider locally.
|
57
|
-
This step is only required because we have not published the Provider to the Pulumi Registry yet.
|
58
|
-
|
59
|
-
~~~ shell
|
60
|
-
make provider
|
61
|
-
~~~
|
62
|
-
|
63
|
-
1. Copy the generated binary into your PATH.
|
64
|
-
|
65
|
-
~~~ shell
|
66
|
-
cp bin/pulumi-resource-datarobot $GOPATH/bin
|
67
|
-
~~~
|
68
|
-
|
69
|
-
Depending on your setup, this could require `sudo` permissions.
|
70
|
-
Windows users may need to rename the `pulumi-resource-datarobot` binary to `pulumi-resource-datarobot.exe` to make it executable.
|
71
|
-
|
72
|
-
1. Go to the `examples/low_code_rag` directory.
|
73
|
-
|
74
|
-
~~~ shell
|
75
|
-
cd examples/low_code_rag
|
76
|
-
~~~
|
77
|
-
|
78
|
-
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.
|
79
|
-
|
80
|
-
~~~ shell
|
81
|
-
export DATAROBOT_API_KEY=<YOUR_API_KEY>
|
82
|
-
~~~
|
83
|
-
|
84
|
-
Where `<your API key>` is the API key you copied from the DataRobot Console.
|
85
|
-
|
86
|
-
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.
|
87
|
-
Download the service account key file and save it as `google_credentials.json` in the current directory.
|
88
|
-
|
89
|
-
1. Create the resources.
|
90
|
-
|
91
|
-
By defualt, Pulumi will prompt you to login to their Pulumi Cloud service to manage the state files.
|
92
|
-
To store and manage the state files locally instead, run `pulumi login --local` before continuing.
|
93
|
-
This will create the `.pulumi` directory in your home directory to manage the state.
|
94
|
-
|
95
|
-
~~~ shell
|
96
|
-
pulumi up
|
97
|
-
~~~
|
98
|
-
|
99
|
-
Enter a name for your Pulumi stack when prompted.
|
100
|
-
Enter `yes` when asked if you want to perform the update.
|
101
|
-
|
102
|
-
1. Once the creation is complete, navigate to the `datarobotChatApplicationUrl` to view your chat application.
|
103
|
-
|
104
|
-
~~~ shell
|
105
|
-
Outputs:
|
106
|
-
datarobotChatApplicationUrl: {
|
107
|
-
value: "<your_chat_application_url>"
|
108
|
-
}
|
109
|
-
|
110
|
-
Resources:
|
111
|
-
+ 12 created
|
112
|
-
~~~
|
113
|
-
|
114
|
-
1. (optional) Delete the resources when you are done.
|
115
|
-
|
116
|
-
~~~ shell
|
117
|
-
pulumi down
|
118
|
-
~~~
|
119
|
-
|
120
|
-
Choose your stack name when prompted and enter `yes` to perform this destroy.
|
121
|
-
|
122
|
-
## Python Example
|
123
|
-
|
124
|
-
Follow these steps to run the Python example.
|
125
|
-
Since the Python SDK is not published yet, it must be built and overriden locally.
|
126
|
-
|
127
|
-
1. Install local Python SDK.
|
128
|
-
|
129
|
-
~~~ shell
|
130
|
-
make install_python_sdk
|
131
|
-
~~~
|
132
|
-
|
133
|
-
1. Navigate to the example directory.
|
134
|
-
|
135
|
-
~~~ shell
|
136
|
-
cd examples/py
|
137
|
-
~~~
|
138
|
-
|
139
|
-
1. Create the resources.
|
140
|
-
|
141
|
-
~~~ shell
|
142
|
-
pulumi up
|
143
|
-
~~~
|
144
|
-
|
145
|
-
If the command fails, try adding the location where the local SDK was installed to your PYTHONPATH. For example:
|
146
|
-
~~~ shell
|
147
|
-
export PYTHONPATH="${PYTHONPATH}:/opt/homebrew/lib/python3.12/site-packages"
|
148
|
-
~~~
|
149
|
-
|
150
|
-
## Typescript Example
|
151
|
-
|
152
|
-
1. Install local Typescript SDK.
|
153
|
-
|
154
|
-
~~~ shell
|
155
|
-
make install_nodejs_sdk
|
156
|
-
~~~
|
157
|
-
|
158
|
-
1. Navigate to the example directory.
|
159
|
-
|
160
|
-
~~~ shell
|
161
|
-
cd examples/ts
|
162
|
-
~~~
|
163
|
-
|
164
|
-
1. Link the local Provider
|
165
|
-
|
166
|
-
~~~ shell
|
167
|
-
npm install
|
168
|
-
yarn link @pulumi/datarobot
|
169
|
-
~~~
|
170
|
-
|
171
|
-
1. Create the resources.
|
172
|
-
|
173
|
-
~~~ shell
|
174
|
-
pulumi up
|
175
|
-
~~~
|
176
|
-
|
177
|
-
|
File without changes
|
File without changes
|
File without changes
|
{pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/api_token_credential.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/google_cloud_credential.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot/prediction_environment.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pulumi_datarobot-0.1.30 → pulumi_datarobot-0.1.32}/pulumi_datarobot.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|