pulumi-datarobot 0.8.19__tar.gz → 0.9.0__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 (57) hide show
  1. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/PKG-INFO +1 -1
  2. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/__init__.py +9 -0
  3. pulumi_datarobot-0.9.0/pulumi_datarobot/notebook.py +316 -0
  4. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot.egg-info/PKG-INFO +1 -1
  5. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot.egg-info/SOURCES.txt +1 -0
  6. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/setup.py +1 -1
  7. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/README.md +0 -0
  8. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/_inputs.py +0 -0
  9. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/_utilities.py +0 -0
  10. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/api_token_credential.py +0 -0
  11. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/application_source.py +0 -0
  12. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/application_source_from_template.py +0 -0
  13. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/aws_credential.py +0 -0
  14. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/azure_credential.py +0 -0
  15. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/basic_credential.py +0 -0
  16. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/batch_prediction_job_definition.py +0 -0
  17. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/config/__init__.py +0 -0
  18. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/config/vars.py +0 -0
  19. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/custom_application.py +0 -0
  20. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/custom_application_from_environment.py +0 -0
  21. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/custom_job.py +0 -0
  22. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/custom_metric.py +0 -0
  23. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/custom_metric_from_job.py +0 -0
  24. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/custom_metric_job.py +0 -0
  25. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/custom_model.py +0 -0
  26. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/custom_model_llm_validation.py +0 -0
  27. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/dataset_from_datasource.py +0 -0
  28. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/dataset_from_file.py +0 -0
  29. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/dataset_from_url.py +0 -0
  30. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/datasource.py +0 -0
  31. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/datastore.py +0 -0
  32. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/deployment.py +0 -0
  33. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/deployment_retraining_policy.py +0 -0
  34. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/execution_environment.py +0 -0
  35. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/get_execution_environment.py +0 -0
  36. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/get_global_model.py +0 -0
  37. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/google_cloud_credential.py +0 -0
  38. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/llm_blueprint.py +0 -0
  39. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/notification_channel.py +0 -0
  40. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/notification_policy.py +0 -0
  41. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/outputs.py +0 -0
  42. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/playground.py +0 -0
  43. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/prediction_environment.py +0 -0
  44. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/provider.py +0 -0
  45. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/pulumi-plugin.json +0 -0
  46. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/py.typed +0 -0
  47. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/qa_application.py +0 -0
  48. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/registered_model.py +0 -0
  49. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/registered_model_from_leaderboard.py +0 -0
  50. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/remote_repository.py +0 -0
  51. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/use_case.py +0 -0
  52. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot/vector_database.py +0 -0
  53. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot.egg-info/dependency_links.txt +0 -0
  54. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot.egg-info/not-zip-safe +0 -0
  55. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot.egg-info/requires.txt +0 -0
  56. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/pulumi_datarobot.egg-info/top_level.txt +0 -0
  57. {pulumi_datarobot-0.8.19 → pulumi_datarobot-0.9.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_datarobot
3
- Version: 0.8.19
3
+ Version: 0.9.0
4
4
  Summary: A Pulumi package for creating and managing DataRobot resources.
5
5
  Home-page: https://www.datarobot.com
6
6
  License: Apache-2.0
@@ -32,6 +32,7 @@ from .get_execution_environment import *
32
32
  from .get_global_model import *
33
33
  from .google_cloud_credential import *
34
34
  from .llm_blueprint import *
35
+ from .notebook import *
35
36
  from .notification_channel import *
36
37
  from .notification_policy import *
37
38
  from .playground import *
@@ -256,6 +257,14 @@ _utilities.register(
256
257
  "datarobot:index/llmBlueprint:LlmBlueprint": "LlmBlueprint"
257
258
  }
258
259
  },
260
+ {
261
+ "pkg": "datarobot",
262
+ "mod": "index/notebook",
263
+ "fqn": "pulumi_datarobot",
264
+ "classes": {
265
+ "datarobot:index/notebook:Notebook": "Notebook"
266
+ }
267
+ },
259
268
  {
260
269
  "pkg": "datarobot",
261
270
  "mod": "index/notificationChannel",
@@ -0,0 +1,316 @@
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
+ import copy
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from . import _utilities
16
+
17
+ __all__ = ['NotebookArgs', 'Notebook']
18
+
19
+ @pulumi.input_type
20
+ class NotebookArgs:
21
+ def __init__(__self__, *,
22
+ file_path: pulumi.Input[str],
23
+ use_case_id: Optional[pulumi.Input[str]] = None):
24
+ """
25
+ The set of arguments for constructing a Notebook resource.
26
+ :param pulumi.Input[str] file_path: The path to the .ipynb file to import.
27
+ :param pulumi.Input[str] use_case_id: The Use Case ID to add the Notebook to.
28
+ """
29
+ pulumi.set(__self__, "file_path", file_path)
30
+ if use_case_id is not None:
31
+ pulumi.set(__self__, "use_case_id", use_case_id)
32
+
33
+ @property
34
+ @pulumi.getter(name="filePath")
35
+ def file_path(self) -> pulumi.Input[str]:
36
+ """
37
+ The path to the .ipynb file to import.
38
+ """
39
+ return pulumi.get(self, "file_path")
40
+
41
+ @file_path.setter
42
+ def file_path(self, value: pulumi.Input[str]):
43
+ pulumi.set(self, "file_path", value)
44
+
45
+ @property
46
+ @pulumi.getter(name="useCaseId")
47
+ def use_case_id(self) -> Optional[pulumi.Input[str]]:
48
+ """
49
+ The Use Case ID to add the Notebook to.
50
+ """
51
+ return pulumi.get(self, "use_case_id")
52
+
53
+ @use_case_id.setter
54
+ def use_case_id(self, value: Optional[pulumi.Input[str]]):
55
+ pulumi.set(self, "use_case_id", value)
56
+
57
+
58
+ @pulumi.input_type
59
+ class _NotebookState:
60
+ def __init__(__self__, *,
61
+ file_hash: Optional[pulumi.Input[str]] = None,
62
+ file_path: Optional[pulumi.Input[str]] = None,
63
+ name: Optional[pulumi.Input[str]] = None,
64
+ url: Optional[pulumi.Input[str]] = None,
65
+ use_case_id: Optional[pulumi.Input[str]] = None):
66
+ """
67
+ Input properties used for looking up and filtering Notebook resources.
68
+ :param pulumi.Input[str] file_hash: The SHA-256 hash of the file contents.
69
+ :param pulumi.Input[str] file_path: The path to the .ipynb file to import.
70
+ :param pulumi.Input[str] name: The name of the Notebook.
71
+ :param pulumi.Input[str] url: The URL to the Notebook.
72
+ :param pulumi.Input[str] use_case_id: The Use Case ID to add the Notebook to.
73
+ """
74
+ if file_hash is not None:
75
+ pulumi.set(__self__, "file_hash", file_hash)
76
+ if file_path is not None:
77
+ pulumi.set(__self__, "file_path", file_path)
78
+ if name is not None:
79
+ pulumi.set(__self__, "name", name)
80
+ if url is not None:
81
+ pulumi.set(__self__, "url", url)
82
+ if use_case_id is not None:
83
+ pulumi.set(__self__, "use_case_id", use_case_id)
84
+
85
+ @property
86
+ @pulumi.getter(name="fileHash")
87
+ def file_hash(self) -> Optional[pulumi.Input[str]]:
88
+ """
89
+ The SHA-256 hash of the file contents.
90
+ """
91
+ return pulumi.get(self, "file_hash")
92
+
93
+ @file_hash.setter
94
+ def file_hash(self, value: Optional[pulumi.Input[str]]):
95
+ pulumi.set(self, "file_hash", value)
96
+
97
+ @property
98
+ @pulumi.getter(name="filePath")
99
+ def file_path(self) -> Optional[pulumi.Input[str]]:
100
+ """
101
+ The path to the .ipynb file to import.
102
+ """
103
+ return pulumi.get(self, "file_path")
104
+
105
+ @file_path.setter
106
+ def file_path(self, value: Optional[pulumi.Input[str]]):
107
+ pulumi.set(self, "file_path", value)
108
+
109
+ @property
110
+ @pulumi.getter
111
+ def name(self) -> Optional[pulumi.Input[str]]:
112
+ """
113
+ The name of the Notebook.
114
+ """
115
+ return pulumi.get(self, "name")
116
+
117
+ @name.setter
118
+ def name(self, value: Optional[pulumi.Input[str]]):
119
+ pulumi.set(self, "name", value)
120
+
121
+ @property
122
+ @pulumi.getter
123
+ def url(self) -> Optional[pulumi.Input[str]]:
124
+ """
125
+ The URL to the Notebook.
126
+ """
127
+ return pulumi.get(self, "url")
128
+
129
+ @url.setter
130
+ def url(self, value: Optional[pulumi.Input[str]]):
131
+ pulumi.set(self, "url", value)
132
+
133
+ @property
134
+ @pulumi.getter(name="useCaseId")
135
+ def use_case_id(self) -> Optional[pulumi.Input[str]]:
136
+ """
137
+ The Use Case ID to add the Notebook to.
138
+ """
139
+ return pulumi.get(self, "use_case_id")
140
+
141
+ @use_case_id.setter
142
+ def use_case_id(self, value: Optional[pulumi.Input[str]]):
143
+ pulumi.set(self, "use_case_id", value)
144
+
145
+
146
+ class Notebook(pulumi.CustomResource):
147
+ @overload
148
+ def __init__(__self__,
149
+ resource_name: str,
150
+ opts: Optional[pulumi.ResourceOptions] = None,
151
+ file_path: Optional[pulumi.Input[str]] = None,
152
+ use_case_id: Optional[pulumi.Input[str]] = None,
153
+ __props__=None):
154
+ """
155
+ Notebook resource for importing and managing Jupyter notebooks in DataRobot.
156
+
157
+ **NOTE**
158
+
159
+ The synchronization of the file hash is one way. The provider will track changes of the Notebook file on disk
160
+ and update _only_ when that changes. If the remote Notebook changes, the provider will not update the local file.
161
+
162
+ ## Example Usage
163
+
164
+ ```python
165
+ import pulumi
166
+ import pulumi_datarobot as datarobot
167
+
168
+ example_use_case = datarobot.UseCase("exampleUseCase")
169
+ example_notebook = datarobot.Notebook("exampleNotebook",
170
+ file_path="/path/to/your/notebook.ipynb",
171
+ use_case_id=example_use_case.id)
172
+ ```
173
+
174
+ :param str resource_name: The name of the resource.
175
+ :param pulumi.ResourceOptions opts: Options for the resource.
176
+ :param pulumi.Input[str] file_path: The path to the .ipynb file to import.
177
+ :param pulumi.Input[str] use_case_id: The Use Case ID to add the Notebook to.
178
+ """
179
+ ...
180
+ @overload
181
+ def __init__(__self__,
182
+ resource_name: str,
183
+ args: NotebookArgs,
184
+ opts: Optional[pulumi.ResourceOptions] = None):
185
+ """
186
+ Notebook resource for importing and managing Jupyter notebooks in DataRobot.
187
+
188
+ **NOTE**
189
+
190
+ The synchronization of the file hash is one way. The provider will track changes of the Notebook file on disk
191
+ and update _only_ when that changes. If the remote Notebook changes, the provider will not update the local file.
192
+
193
+ ## Example Usage
194
+
195
+ ```python
196
+ import pulumi
197
+ import pulumi_datarobot as datarobot
198
+
199
+ example_use_case = datarobot.UseCase("exampleUseCase")
200
+ example_notebook = datarobot.Notebook("exampleNotebook",
201
+ file_path="/path/to/your/notebook.ipynb",
202
+ use_case_id=example_use_case.id)
203
+ ```
204
+
205
+ :param str resource_name: The name of the resource.
206
+ :param NotebookArgs args: The arguments to use to populate this resource's properties.
207
+ :param pulumi.ResourceOptions opts: Options for the resource.
208
+ """
209
+ ...
210
+ def __init__(__self__, resource_name: str, *args, **kwargs):
211
+ resource_args, opts = _utilities.get_resource_args_opts(NotebookArgs, pulumi.ResourceOptions, *args, **kwargs)
212
+ if resource_args is not None:
213
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
214
+ else:
215
+ __self__._internal_init(resource_name, *args, **kwargs)
216
+
217
+ def _internal_init(__self__,
218
+ resource_name: str,
219
+ opts: Optional[pulumi.ResourceOptions] = None,
220
+ file_path: Optional[pulumi.Input[str]] = None,
221
+ use_case_id: Optional[pulumi.Input[str]] = None,
222
+ __props__=None):
223
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
224
+ if not isinstance(opts, pulumi.ResourceOptions):
225
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
226
+ if opts.id is None:
227
+ if __props__ is not None:
228
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
229
+ __props__ = NotebookArgs.__new__(NotebookArgs)
230
+
231
+ if file_path is None and not opts.urn:
232
+ raise TypeError("Missing required property 'file_path'")
233
+ __props__.__dict__["file_path"] = file_path
234
+ __props__.__dict__["use_case_id"] = use_case_id
235
+ __props__.__dict__["file_hash"] = None
236
+ __props__.__dict__["name"] = None
237
+ __props__.__dict__["url"] = None
238
+ super(Notebook, __self__).__init__(
239
+ 'datarobot:index/notebook:Notebook',
240
+ resource_name,
241
+ __props__,
242
+ opts)
243
+
244
+ @staticmethod
245
+ def get(resource_name: str,
246
+ id: pulumi.Input[str],
247
+ opts: Optional[pulumi.ResourceOptions] = None,
248
+ file_hash: Optional[pulumi.Input[str]] = None,
249
+ file_path: Optional[pulumi.Input[str]] = None,
250
+ name: Optional[pulumi.Input[str]] = None,
251
+ url: Optional[pulumi.Input[str]] = None,
252
+ use_case_id: Optional[pulumi.Input[str]] = None) -> 'Notebook':
253
+ """
254
+ Get an existing Notebook resource's state with the given name, id, and optional extra
255
+ properties used to qualify the lookup.
256
+
257
+ :param str resource_name: The unique name of the resulting resource.
258
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
259
+ :param pulumi.ResourceOptions opts: Options for the resource.
260
+ :param pulumi.Input[str] file_hash: The SHA-256 hash of the file contents.
261
+ :param pulumi.Input[str] file_path: The path to the .ipynb file to import.
262
+ :param pulumi.Input[str] name: The name of the Notebook.
263
+ :param pulumi.Input[str] url: The URL to the Notebook.
264
+ :param pulumi.Input[str] use_case_id: The Use Case ID to add the Notebook to.
265
+ """
266
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
267
+
268
+ __props__ = _NotebookState.__new__(_NotebookState)
269
+
270
+ __props__.__dict__["file_hash"] = file_hash
271
+ __props__.__dict__["file_path"] = file_path
272
+ __props__.__dict__["name"] = name
273
+ __props__.__dict__["url"] = url
274
+ __props__.__dict__["use_case_id"] = use_case_id
275
+ return Notebook(resource_name, opts=opts, __props__=__props__)
276
+
277
+ @property
278
+ @pulumi.getter(name="fileHash")
279
+ def file_hash(self) -> pulumi.Output[str]:
280
+ """
281
+ The SHA-256 hash of the file contents.
282
+ """
283
+ return pulumi.get(self, "file_hash")
284
+
285
+ @property
286
+ @pulumi.getter(name="filePath")
287
+ def file_path(self) -> pulumi.Output[str]:
288
+ """
289
+ The path to the .ipynb file to import.
290
+ """
291
+ return pulumi.get(self, "file_path")
292
+
293
+ @property
294
+ @pulumi.getter
295
+ def name(self) -> pulumi.Output[str]:
296
+ """
297
+ The name of the Notebook.
298
+ """
299
+ return pulumi.get(self, "name")
300
+
301
+ @property
302
+ @pulumi.getter
303
+ def url(self) -> pulumi.Output[str]:
304
+ """
305
+ The URL to the Notebook.
306
+ """
307
+ return pulumi.get(self, "url")
308
+
309
+ @property
310
+ @pulumi.getter(name="useCaseId")
311
+ def use_case_id(self) -> pulumi.Output[Optional[str]]:
312
+ """
313
+ The Use Case ID to add the Notebook to.
314
+ """
315
+ return pulumi.get(self, "use_case_id")
316
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi-datarobot
3
- Version: 0.8.19
3
+ Version: 0.9.0
4
4
  Summary: A Pulumi package for creating and managing DataRobot resources.
5
5
  Home-page: https://www.datarobot.com
6
6
  License: Apache-2.0
@@ -30,6 +30,7 @@ pulumi_datarobot/get_execution_environment.py
30
30
  pulumi_datarobot/get_global_model.py
31
31
  pulumi_datarobot/google_cloud_credential.py
32
32
  pulumi_datarobot/llm_blueprint.py
33
+ pulumi_datarobot/notebook.py
33
34
  pulumi_datarobot/notification_channel.py
34
35
  pulumi_datarobot/notification_policy.py
35
36
  pulumi_datarobot/outputs.py
@@ -8,7 +8,7 @@ from setuptools.command.install import install
8
8
  from subprocess import check_call
9
9
 
10
10
 
11
- VERSION = "0.8.19"
11
+ VERSION = "0.9.0"
12
12
  def readme():
13
13
  try:
14
14
  with open('README.md', encoding='utf-8') as f: