pulumi-datarobot 0.2.3__tar.gz → 0.2.5__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 (38) hide show
  1. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/PKG-INFO +1 -1
  2. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/__init__.py +9 -0
  3. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/_inputs.py +5 -43
  4. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/custom_model.py +8 -8
  5. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/outputs.py +4 -34
  6. pulumi_datarobot-0.2.5/pulumi_datarobot/registered_model_from_leaderboard.py +456 -0
  7. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot.egg-info/PKG-INFO +1 -1
  8. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot.egg-info/SOURCES.txt +1 -0
  9. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/setup.py +1 -1
  10. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/README.md +0 -0
  11. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/_utilities.py +0 -0
  12. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/api_token_credential.py +0 -0
  13. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/application_source.py +0 -0
  14. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/basic_credential.py +0 -0
  15. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/config/__init__.py +0 -0
  16. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/config/vars.py +0 -0
  17. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/custom_application.py +0 -0
  18. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/dataset_from_file.py +0 -0
  19. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/dataset_from_url.py +0 -0
  20. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/deployment.py +0 -0
  21. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/get_global_model.py +0 -0
  22. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/google_cloud_credential.py +0 -0
  23. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/llm_blueprint.py +0 -0
  24. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/playground.py +0 -0
  25. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/prediction_environment.py +0 -0
  26. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/provider.py +0 -0
  27. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/pulumi-plugin.json +0 -0
  28. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/py.typed +0 -0
  29. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/qa_application.py +0 -0
  30. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/registered_model.py +0 -0
  31. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/remote_repository.py +0 -0
  32. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/use_case.py +0 -0
  33. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot/vector_database.py +0 -0
  34. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot.egg-info/dependency_links.txt +0 -0
  35. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot.egg-info/not-zip-safe +0 -0
  36. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot.egg-info/requires.txt +0 -0
  37. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/pulumi_datarobot.egg-info/top_level.txt +0 -0
  38. {pulumi_datarobot-0.2.3 → pulumi_datarobot-0.2.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_datarobot
3
- Version: 0.2.3
3
+ Version: 0.2.5
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
@@ -21,6 +21,7 @@ from .prediction_environment import *
21
21
  from .provider import *
22
22
  from .qa_application import *
23
23
  from .registered_model import *
24
+ from .registered_model_from_leaderboard import *
24
25
  from .remote_repository import *
25
26
  from .use_case import *
26
27
  from .vector_database import *
@@ -149,6 +150,14 @@ _utilities.register(
149
150
  "datarobot:index/registeredModel:RegisteredModel": "RegisteredModel"
150
151
  }
151
152
  },
153
+ {
154
+ "pkg": "datarobot",
155
+ "mod": "index/registeredModelFromLeaderboard",
156
+ "fqn": "pulumi_datarobot",
157
+ "classes": {
158
+ "datarobot:index/registeredModelFromLeaderboard:RegisteredModelFromLeaderboard": "RegisteredModelFromLeaderboard"
159
+ }
160
+ },
152
161
  {
153
162
  "pkg": "datarobot",
154
163
  "mod": "index/remoteRepository",
@@ -14,7 +14,6 @@ __all__ = [
14
14
  'ApplicationSourceRuntimeParameterValueArgs',
15
15
  'CustomModelGuardConfigurationArgs',
16
16
  'CustomModelGuardConfigurationInterventionArgs',
17
- 'CustomModelGuardConfigurationInterventionConditionArgs',
18
17
  'CustomModelOverallModerationConfigurationArgs',
19
18
  'CustomModelResourceSettingsArgs',
20
19
  'CustomModelRuntimeParameterValueArgs',
@@ -304,11 +303,11 @@ class CustomModelGuardConfigurationArgs:
304
303
  class CustomModelGuardConfigurationInterventionArgs:
305
304
  def __init__(__self__, *,
306
305
  action: pulumi.Input[str],
307
- condition: pulumi.Input['CustomModelGuardConfigurationInterventionConditionArgs'],
306
+ condition: pulumi.Input[str],
308
307
  message: Optional[pulumi.Input[str]] = None):
309
308
  """
310
309
  :param pulumi.Input[str] action: The action of the guard intervention.
311
- :param pulumi.Input['CustomModelGuardConfigurationInterventionConditionArgs'] condition: The list of conditions for the guard intervention.
310
+ :param pulumi.Input[str] condition: The JSON-encoded condition of the guard intervention. e.g. `{"comparand": 0.5, "comparator": "lessThan"}`
312
311
  :param pulumi.Input[str] message: The message of the guard intervention.
313
312
  """
314
313
  pulumi.set(__self__, "action", action)
@@ -330,14 +329,14 @@ class CustomModelGuardConfigurationInterventionArgs:
330
329
 
331
330
  @property
332
331
  @pulumi.getter
333
- def condition(self) -> pulumi.Input['CustomModelGuardConfigurationInterventionConditionArgs']:
332
+ def condition(self) -> pulumi.Input[str]:
334
333
  """
335
- The list of conditions for the guard intervention.
334
+ The JSON-encoded condition of the guard intervention. e.g. `{"comparand": 0.5, "comparator": "lessThan"}`
336
335
  """
337
336
  return pulumi.get(self, "condition")
338
337
 
339
338
  @condition.setter
340
- def condition(self, value: pulumi.Input['CustomModelGuardConfigurationInterventionConditionArgs']):
339
+ def condition(self, value: pulumi.Input[str]):
341
340
  pulumi.set(self, "condition", value)
342
341
 
343
342
  @property
@@ -353,43 +352,6 @@ class CustomModelGuardConfigurationInterventionArgs:
353
352
  pulumi.set(self, "message", value)
354
353
 
355
354
 
356
- @pulumi.input_type
357
- class CustomModelGuardConfigurationInterventionConditionArgs:
358
- def __init__(__self__, *,
359
- comparand: pulumi.Input[float],
360
- comparator: pulumi.Input[str]):
361
- """
362
- :param pulumi.Input[float] comparand: The comparand of the guard condition.
363
- :param pulumi.Input[str] comparator: The comparator of the guard condition.
364
- """
365
- pulumi.set(__self__, "comparand", comparand)
366
- pulumi.set(__self__, "comparator", comparator)
367
-
368
- @property
369
- @pulumi.getter
370
- def comparand(self) -> pulumi.Input[float]:
371
- """
372
- The comparand of the guard condition.
373
- """
374
- return pulumi.get(self, "comparand")
375
-
376
- @comparand.setter
377
- def comparand(self, value: pulumi.Input[float]):
378
- pulumi.set(self, "comparand", value)
379
-
380
- @property
381
- @pulumi.getter
382
- def comparator(self) -> pulumi.Input[str]:
383
- """
384
- The comparator of the guard condition.
385
- """
386
- return pulumi.get(self, "comparator")
387
-
388
- @comparator.setter
389
- def comparator(self, value: pulumi.Input[str]):
390
- pulumi.set(self, "comparator", value)
391
-
392
-
393
355
  @pulumi.input_type
394
356
  class CustomModelOverallModerationConfigurationArgs:
395
357
  def __init__(__self__, *,
@@ -932,10 +932,10 @@ class CustomModel(pulumi.CustomResource):
932
932
  # intervention = {
933
933
  # action = "block"
934
934
  # message = "response has been blocked by Rogue 1 guard"
935
- # condition = {
936
- # comparand = 0.8
937
- # comparator = "lessThan"
938
- # }
935
+ # condition = jsonencode({
936
+ # "comparand": 0.5,
937
+ # "comparator": "greaterThan"
938
+ # })
939
939
  # }
940
940
  # },
941
941
  # ]
@@ -1025,10 +1025,10 @@ class CustomModel(pulumi.CustomResource):
1025
1025
  # intervention = {
1026
1026
  # action = "block"
1027
1027
  # message = "response has been blocked by Rogue 1 guard"
1028
- # condition = {
1029
- # comparand = 0.8
1030
- # comparator = "lessThan"
1031
- # }
1028
+ # condition = jsonencode({
1029
+ # "comparand": 0.5,
1030
+ # "comparator": "greaterThan"
1031
+ # })
1032
1032
  # }
1033
1033
  # },
1034
1034
  # ]
@@ -15,7 +15,6 @@ __all__ = [
15
15
  'ApplicationSourceRuntimeParameterValue',
16
16
  'CustomModelGuardConfiguration',
17
17
  'CustomModelGuardConfigurationIntervention',
18
- 'CustomModelGuardConfigurationInterventionCondition',
19
18
  'CustomModelOverallModerationConfiguration',
20
19
  'CustomModelResourceSettings',
21
20
  'CustomModelRuntimeParameterValue',
@@ -276,11 +275,11 @@ class CustomModelGuardConfiguration(dict):
276
275
  class CustomModelGuardConfigurationIntervention(dict):
277
276
  def __init__(__self__, *,
278
277
  action: str,
279
- condition: 'outputs.CustomModelGuardConfigurationInterventionCondition',
278
+ condition: str,
280
279
  message: Optional[str] = None):
281
280
  """
282
281
  :param str action: The action of the guard intervention.
283
- :param 'CustomModelGuardConfigurationInterventionConditionArgs' condition: The list of conditions for the guard intervention.
282
+ :param str condition: The JSON-encoded condition of the guard intervention. e.g. `{"comparand": 0.5, "comparator": "lessThan"}`
284
283
  :param str message: The message of the guard intervention.
285
284
  """
286
285
  pulumi.set(__self__, "action", action)
@@ -298,9 +297,9 @@ class CustomModelGuardConfigurationIntervention(dict):
298
297
 
299
298
  @property
300
299
  @pulumi.getter
301
- def condition(self) -> 'outputs.CustomModelGuardConfigurationInterventionCondition':
300
+ def condition(self) -> str:
302
301
  """
303
- The list of conditions for the guard intervention.
302
+ The JSON-encoded condition of the guard intervention. e.g. `{"comparand": 0.5, "comparator": "lessThan"}`
304
303
  """
305
304
  return pulumi.get(self, "condition")
306
305
 
@@ -313,35 +312,6 @@ class CustomModelGuardConfigurationIntervention(dict):
313
312
  return pulumi.get(self, "message")
314
313
 
315
314
 
316
- @pulumi.output_type
317
- class CustomModelGuardConfigurationInterventionCondition(dict):
318
- def __init__(__self__, *,
319
- comparand: float,
320
- comparator: str):
321
- """
322
- :param float comparand: The comparand of the guard condition.
323
- :param str comparator: The comparator of the guard condition.
324
- """
325
- pulumi.set(__self__, "comparand", comparand)
326
- pulumi.set(__self__, "comparator", comparator)
327
-
328
- @property
329
- @pulumi.getter
330
- def comparand(self) -> float:
331
- """
332
- The comparand of the guard condition.
333
- """
334
- return pulumi.get(self, "comparand")
335
-
336
- @property
337
- @pulumi.getter
338
- def comparator(self) -> str:
339
- """
340
- The comparator of the guard condition.
341
- """
342
- return pulumi.get(self, "comparator")
343
-
344
-
345
315
  @pulumi.output_type
346
316
  class CustomModelOverallModerationConfiguration(dict):
347
317
  @staticmethod
@@ -0,0 +1,456 @@
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 pulumi
8
+ import pulumi.runtime
9
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
10
+ from . import _utilities
11
+
12
+ __all__ = ['RegisteredModelFromLeaderboardArgs', 'RegisteredModelFromLeaderboard']
13
+
14
+ @pulumi.input_type
15
+ class RegisteredModelFromLeaderboardArgs:
16
+ def __init__(__self__, *,
17
+ model_id: pulumi.Input[str],
18
+ compute_all_ts_intervals: Optional[pulumi.Input[bool]] = None,
19
+ description: Optional[pulumi.Input[str]] = None,
20
+ distribution_prediction_model_id: Optional[pulumi.Input[str]] = None,
21
+ name: Optional[pulumi.Input[str]] = None,
22
+ prediction_threshold: Optional[pulumi.Input[float]] = None,
23
+ version_name: Optional[pulumi.Input[str]] = None):
24
+ """
25
+ The set of arguments for constructing a RegisteredModelFromLeaderboard resource.
26
+ :param pulumi.Input[str] model_id: The ID of the DataRobot model for this Registered Model.
27
+ :param pulumi.Input[bool] compute_all_ts_intervals: Whether to compute all time series intervals (1-100 percentiles).
28
+ :param pulumi.Input[str] description: The description of the Registered Model.
29
+ :param pulumi.Input[str] distribution_prediction_model_id: The ID of the DataRobot distribution prediction model trained on predictions from the DataRobot model.
30
+ :param pulumi.Input[str] name: The name of the Registered Model.
31
+ :param pulumi.Input[float] prediction_threshold: The prediction threshold for the model.
32
+ :param pulumi.Input[str] version_name: The name of the Registered Model Version.
33
+ """
34
+ pulumi.set(__self__, "model_id", model_id)
35
+ if compute_all_ts_intervals is not None:
36
+ pulumi.set(__self__, "compute_all_ts_intervals", compute_all_ts_intervals)
37
+ if description is not None:
38
+ pulumi.set(__self__, "description", description)
39
+ if distribution_prediction_model_id is not None:
40
+ pulumi.set(__self__, "distribution_prediction_model_id", distribution_prediction_model_id)
41
+ if name is not None:
42
+ pulumi.set(__self__, "name", name)
43
+ if prediction_threshold is not None:
44
+ pulumi.set(__self__, "prediction_threshold", prediction_threshold)
45
+ if version_name is not None:
46
+ pulumi.set(__self__, "version_name", version_name)
47
+
48
+ @property
49
+ @pulumi.getter(name="modelId")
50
+ def model_id(self) -> pulumi.Input[str]:
51
+ """
52
+ The ID of the DataRobot model for this Registered Model.
53
+ """
54
+ return pulumi.get(self, "model_id")
55
+
56
+ @model_id.setter
57
+ def model_id(self, value: pulumi.Input[str]):
58
+ pulumi.set(self, "model_id", value)
59
+
60
+ @property
61
+ @pulumi.getter(name="computeAllTsIntervals")
62
+ def compute_all_ts_intervals(self) -> Optional[pulumi.Input[bool]]:
63
+ """
64
+ Whether to compute all time series intervals (1-100 percentiles).
65
+ """
66
+ return pulumi.get(self, "compute_all_ts_intervals")
67
+
68
+ @compute_all_ts_intervals.setter
69
+ def compute_all_ts_intervals(self, value: Optional[pulumi.Input[bool]]):
70
+ pulumi.set(self, "compute_all_ts_intervals", value)
71
+
72
+ @property
73
+ @pulumi.getter
74
+ def description(self) -> Optional[pulumi.Input[str]]:
75
+ """
76
+ The description of the Registered Model.
77
+ """
78
+ return pulumi.get(self, "description")
79
+
80
+ @description.setter
81
+ def description(self, value: Optional[pulumi.Input[str]]):
82
+ pulumi.set(self, "description", value)
83
+
84
+ @property
85
+ @pulumi.getter(name="distributionPredictionModelId")
86
+ def distribution_prediction_model_id(self) -> Optional[pulumi.Input[str]]:
87
+ """
88
+ The ID of the DataRobot distribution prediction model trained on predictions from the DataRobot model.
89
+ """
90
+ return pulumi.get(self, "distribution_prediction_model_id")
91
+
92
+ @distribution_prediction_model_id.setter
93
+ def distribution_prediction_model_id(self, value: Optional[pulumi.Input[str]]):
94
+ pulumi.set(self, "distribution_prediction_model_id", value)
95
+
96
+ @property
97
+ @pulumi.getter
98
+ def name(self) -> Optional[pulumi.Input[str]]:
99
+ """
100
+ The name of the Registered Model.
101
+ """
102
+ return pulumi.get(self, "name")
103
+
104
+ @name.setter
105
+ def name(self, value: Optional[pulumi.Input[str]]):
106
+ pulumi.set(self, "name", value)
107
+
108
+ @property
109
+ @pulumi.getter(name="predictionThreshold")
110
+ def prediction_threshold(self) -> Optional[pulumi.Input[float]]:
111
+ """
112
+ The prediction threshold for the model.
113
+ """
114
+ return pulumi.get(self, "prediction_threshold")
115
+
116
+ @prediction_threshold.setter
117
+ def prediction_threshold(self, value: Optional[pulumi.Input[float]]):
118
+ pulumi.set(self, "prediction_threshold", value)
119
+
120
+ @property
121
+ @pulumi.getter(name="versionName")
122
+ def version_name(self) -> Optional[pulumi.Input[str]]:
123
+ """
124
+ The name of the Registered Model Version.
125
+ """
126
+ return pulumi.get(self, "version_name")
127
+
128
+ @version_name.setter
129
+ def version_name(self, value: Optional[pulumi.Input[str]]):
130
+ pulumi.set(self, "version_name", value)
131
+
132
+
133
+ @pulumi.input_type
134
+ class _RegisteredModelFromLeaderboardState:
135
+ def __init__(__self__, *,
136
+ compute_all_ts_intervals: Optional[pulumi.Input[bool]] = None,
137
+ description: Optional[pulumi.Input[str]] = None,
138
+ distribution_prediction_model_id: Optional[pulumi.Input[str]] = None,
139
+ model_id: Optional[pulumi.Input[str]] = None,
140
+ name: Optional[pulumi.Input[str]] = None,
141
+ prediction_threshold: Optional[pulumi.Input[float]] = None,
142
+ version_id: Optional[pulumi.Input[str]] = None,
143
+ version_name: Optional[pulumi.Input[str]] = None):
144
+ """
145
+ Input properties used for looking up and filtering RegisteredModelFromLeaderboard resources.
146
+ :param pulumi.Input[bool] compute_all_ts_intervals: Whether to compute all time series intervals (1-100 percentiles).
147
+ :param pulumi.Input[str] description: The description of the Registered Model.
148
+ :param pulumi.Input[str] distribution_prediction_model_id: The ID of the DataRobot distribution prediction model trained on predictions from the DataRobot model.
149
+ :param pulumi.Input[str] model_id: The ID of the DataRobot model for this Registered Model.
150
+ :param pulumi.Input[str] name: The name of the Registered Model.
151
+ :param pulumi.Input[float] prediction_threshold: The prediction threshold for the model.
152
+ :param pulumi.Input[str] version_id: The ID of the Registered Model Version.
153
+ :param pulumi.Input[str] version_name: The name of the Registered Model Version.
154
+ """
155
+ if compute_all_ts_intervals is not None:
156
+ pulumi.set(__self__, "compute_all_ts_intervals", compute_all_ts_intervals)
157
+ if description is not None:
158
+ pulumi.set(__self__, "description", description)
159
+ if distribution_prediction_model_id is not None:
160
+ pulumi.set(__self__, "distribution_prediction_model_id", distribution_prediction_model_id)
161
+ if model_id is not None:
162
+ pulumi.set(__self__, "model_id", model_id)
163
+ if name is not None:
164
+ pulumi.set(__self__, "name", name)
165
+ if prediction_threshold is not None:
166
+ pulumi.set(__self__, "prediction_threshold", prediction_threshold)
167
+ if version_id is not None:
168
+ pulumi.set(__self__, "version_id", version_id)
169
+ if version_name is not None:
170
+ pulumi.set(__self__, "version_name", version_name)
171
+
172
+ @property
173
+ @pulumi.getter(name="computeAllTsIntervals")
174
+ def compute_all_ts_intervals(self) -> Optional[pulumi.Input[bool]]:
175
+ """
176
+ Whether to compute all time series intervals (1-100 percentiles).
177
+ """
178
+ return pulumi.get(self, "compute_all_ts_intervals")
179
+
180
+ @compute_all_ts_intervals.setter
181
+ def compute_all_ts_intervals(self, value: Optional[pulumi.Input[bool]]):
182
+ pulumi.set(self, "compute_all_ts_intervals", value)
183
+
184
+ @property
185
+ @pulumi.getter
186
+ def description(self) -> Optional[pulumi.Input[str]]:
187
+ """
188
+ The description of the Registered Model.
189
+ """
190
+ return pulumi.get(self, "description")
191
+
192
+ @description.setter
193
+ def description(self, value: Optional[pulumi.Input[str]]):
194
+ pulumi.set(self, "description", value)
195
+
196
+ @property
197
+ @pulumi.getter(name="distributionPredictionModelId")
198
+ def distribution_prediction_model_id(self) -> Optional[pulumi.Input[str]]:
199
+ """
200
+ The ID of the DataRobot distribution prediction model trained on predictions from the DataRobot model.
201
+ """
202
+ return pulumi.get(self, "distribution_prediction_model_id")
203
+
204
+ @distribution_prediction_model_id.setter
205
+ def distribution_prediction_model_id(self, value: Optional[pulumi.Input[str]]):
206
+ pulumi.set(self, "distribution_prediction_model_id", value)
207
+
208
+ @property
209
+ @pulumi.getter(name="modelId")
210
+ def model_id(self) -> Optional[pulumi.Input[str]]:
211
+ """
212
+ The ID of the DataRobot model for this Registered Model.
213
+ """
214
+ return pulumi.get(self, "model_id")
215
+
216
+ @model_id.setter
217
+ def model_id(self, value: Optional[pulumi.Input[str]]):
218
+ pulumi.set(self, "model_id", value)
219
+
220
+ @property
221
+ @pulumi.getter
222
+ def name(self) -> Optional[pulumi.Input[str]]:
223
+ """
224
+ The name of the Registered Model.
225
+ """
226
+ return pulumi.get(self, "name")
227
+
228
+ @name.setter
229
+ def name(self, value: Optional[pulumi.Input[str]]):
230
+ pulumi.set(self, "name", value)
231
+
232
+ @property
233
+ @pulumi.getter(name="predictionThreshold")
234
+ def prediction_threshold(self) -> Optional[pulumi.Input[float]]:
235
+ """
236
+ The prediction threshold for the model.
237
+ """
238
+ return pulumi.get(self, "prediction_threshold")
239
+
240
+ @prediction_threshold.setter
241
+ def prediction_threshold(self, value: Optional[pulumi.Input[float]]):
242
+ pulumi.set(self, "prediction_threshold", value)
243
+
244
+ @property
245
+ @pulumi.getter(name="versionId")
246
+ def version_id(self) -> Optional[pulumi.Input[str]]:
247
+ """
248
+ The ID of the Registered Model Version.
249
+ """
250
+ return pulumi.get(self, "version_id")
251
+
252
+ @version_id.setter
253
+ def version_id(self, value: Optional[pulumi.Input[str]]):
254
+ pulumi.set(self, "version_id", value)
255
+
256
+ @property
257
+ @pulumi.getter(name="versionName")
258
+ def version_name(self) -> Optional[pulumi.Input[str]]:
259
+ """
260
+ The name of the Registered Model Version.
261
+ """
262
+ return pulumi.get(self, "version_name")
263
+
264
+ @version_name.setter
265
+ def version_name(self, value: Optional[pulumi.Input[str]]):
266
+ pulumi.set(self, "version_name", value)
267
+
268
+
269
+ class RegisteredModelFromLeaderboard(pulumi.CustomResource):
270
+ @overload
271
+ def __init__(__self__,
272
+ resource_name: str,
273
+ opts: Optional[pulumi.ResourceOptions] = None,
274
+ compute_all_ts_intervals: Optional[pulumi.Input[bool]] = None,
275
+ description: Optional[pulumi.Input[str]] = None,
276
+ distribution_prediction_model_id: Optional[pulumi.Input[str]] = None,
277
+ model_id: Optional[pulumi.Input[str]] = None,
278
+ name: Optional[pulumi.Input[str]] = None,
279
+ prediction_threshold: Optional[pulumi.Input[float]] = None,
280
+ version_name: Optional[pulumi.Input[str]] = None,
281
+ __props__=None):
282
+ """
283
+ registered model from leaderboard
284
+
285
+ :param str resource_name: The name of the resource.
286
+ :param pulumi.ResourceOptions opts: Options for the resource.
287
+ :param pulumi.Input[bool] compute_all_ts_intervals: Whether to compute all time series intervals (1-100 percentiles).
288
+ :param pulumi.Input[str] description: The description of the Registered Model.
289
+ :param pulumi.Input[str] distribution_prediction_model_id: The ID of the DataRobot distribution prediction model trained on predictions from the DataRobot model.
290
+ :param pulumi.Input[str] model_id: The ID of the DataRobot model for this Registered Model.
291
+ :param pulumi.Input[str] name: The name of the Registered Model.
292
+ :param pulumi.Input[float] prediction_threshold: The prediction threshold for the model.
293
+ :param pulumi.Input[str] version_name: The name of the Registered Model Version.
294
+ """
295
+ ...
296
+ @overload
297
+ def __init__(__self__,
298
+ resource_name: str,
299
+ args: RegisteredModelFromLeaderboardArgs,
300
+ opts: Optional[pulumi.ResourceOptions] = None):
301
+ """
302
+ registered model from leaderboard
303
+
304
+ :param str resource_name: The name of the resource.
305
+ :param RegisteredModelFromLeaderboardArgs args: The arguments to use to populate this resource's properties.
306
+ :param pulumi.ResourceOptions opts: Options for the resource.
307
+ """
308
+ ...
309
+ def __init__(__self__, resource_name: str, *args, **kwargs):
310
+ resource_args, opts = _utilities.get_resource_args_opts(RegisteredModelFromLeaderboardArgs, pulumi.ResourceOptions, *args, **kwargs)
311
+ if resource_args is not None:
312
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
313
+ else:
314
+ __self__._internal_init(resource_name, *args, **kwargs)
315
+
316
+ def _internal_init(__self__,
317
+ resource_name: str,
318
+ opts: Optional[pulumi.ResourceOptions] = None,
319
+ compute_all_ts_intervals: Optional[pulumi.Input[bool]] = None,
320
+ description: Optional[pulumi.Input[str]] = None,
321
+ distribution_prediction_model_id: Optional[pulumi.Input[str]] = None,
322
+ model_id: Optional[pulumi.Input[str]] = None,
323
+ name: Optional[pulumi.Input[str]] = None,
324
+ prediction_threshold: Optional[pulumi.Input[float]] = None,
325
+ version_name: Optional[pulumi.Input[str]] = None,
326
+ __props__=None):
327
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
328
+ if not isinstance(opts, pulumi.ResourceOptions):
329
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
330
+ if opts.id is None:
331
+ if __props__ is not None:
332
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
333
+ __props__ = RegisteredModelFromLeaderboardArgs.__new__(RegisteredModelFromLeaderboardArgs)
334
+
335
+ __props__.__dict__["compute_all_ts_intervals"] = compute_all_ts_intervals
336
+ __props__.__dict__["description"] = description
337
+ __props__.__dict__["distribution_prediction_model_id"] = distribution_prediction_model_id
338
+ if model_id is None and not opts.urn:
339
+ raise TypeError("Missing required property 'model_id'")
340
+ __props__.__dict__["model_id"] = model_id
341
+ __props__.__dict__["name"] = name
342
+ __props__.__dict__["prediction_threshold"] = prediction_threshold
343
+ __props__.__dict__["version_name"] = version_name
344
+ __props__.__dict__["version_id"] = None
345
+ super(RegisteredModelFromLeaderboard, __self__).__init__(
346
+ 'datarobot:index/registeredModelFromLeaderboard:RegisteredModelFromLeaderboard',
347
+ resource_name,
348
+ __props__,
349
+ opts)
350
+
351
+ @staticmethod
352
+ def get(resource_name: str,
353
+ id: pulumi.Input[str],
354
+ opts: Optional[pulumi.ResourceOptions] = None,
355
+ compute_all_ts_intervals: Optional[pulumi.Input[bool]] = None,
356
+ description: Optional[pulumi.Input[str]] = None,
357
+ distribution_prediction_model_id: Optional[pulumi.Input[str]] = None,
358
+ model_id: Optional[pulumi.Input[str]] = None,
359
+ name: Optional[pulumi.Input[str]] = None,
360
+ prediction_threshold: Optional[pulumi.Input[float]] = None,
361
+ version_id: Optional[pulumi.Input[str]] = None,
362
+ version_name: Optional[pulumi.Input[str]] = None) -> 'RegisteredModelFromLeaderboard':
363
+ """
364
+ Get an existing RegisteredModelFromLeaderboard resource's state with the given name, id, and optional extra
365
+ properties used to qualify the lookup.
366
+
367
+ :param str resource_name: The unique name of the resulting resource.
368
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
369
+ :param pulumi.ResourceOptions opts: Options for the resource.
370
+ :param pulumi.Input[bool] compute_all_ts_intervals: Whether to compute all time series intervals (1-100 percentiles).
371
+ :param pulumi.Input[str] description: The description of the Registered Model.
372
+ :param pulumi.Input[str] distribution_prediction_model_id: The ID of the DataRobot distribution prediction model trained on predictions from the DataRobot model.
373
+ :param pulumi.Input[str] model_id: The ID of the DataRobot model for this Registered Model.
374
+ :param pulumi.Input[str] name: The name of the Registered Model.
375
+ :param pulumi.Input[float] prediction_threshold: The prediction threshold for the model.
376
+ :param pulumi.Input[str] version_id: The ID of the Registered Model Version.
377
+ :param pulumi.Input[str] version_name: The name of the Registered Model Version.
378
+ """
379
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
380
+
381
+ __props__ = _RegisteredModelFromLeaderboardState.__new__(_RegisteredModelFromLeaderboardState)
382
+
383
+ __props__.__dict__["compute_all_ts_intervals"] = compute_all_ts_intervals
384
+ __props__.__dict__["description"] = description
385
+ __props__.__dict__["distribution_prediction_model_id"] = distribution_prediction_model_id
386
+ __props__.__dict__["model_id"] = model_id
387
+ __props__.__dict__["name"] = name
388
+ __props__.__dict__["prediction_threshold"] = prediction_threshold
389
+ __props__.__dict__["version_id"] = version_id
390
+ __props__.__dict__["version_name"] = version_name
391
+ return RegisteredModelFromLeaderboard(resource_name, opts=opts, __props__=__props__)
392
+
393
+ @property
394
+ @pulumi.getter(name="computeAllTsIntervals")
395
+ def compute_all_ts_intervals(self) -> pulumi.Output[Optional[bool]]:
396
+ """
397
+ Whether to compute all time series intervals (1-100 percentiles).
398
+ """
399
+ return pulumi.get(self, "compute_all_ts_intervals")
400
+
401
+ @property
402
+ @pulumi.getter
403
+ def description(self) -> pulumi.Output[Optional[str]]:
404
+ """
405
+ The description of the Registered Model.
406
+ """
407
+ return pulumi.get(self, "description")
408
+
409
+ @property
410
+ @pulumi.getter(name="distributionPredictionModelId")
411
+ def distribution_prediction_model_id(self) -> pulumi.Output[Optional[str]]:
412
+ """
413
+ The ID of the DataRobot distribution prediction model trained on predictions from the DataRobot model.
414
+ """
415
+ return pulumi.get(self, "distribution_prediction_model_id")
416
+
417
+ @property
418
+ @pulumi.getter(name="modelId")
419
+ def model_id(self) -> pulumi.Output[str]:
420
+ """
421
+ The ID of the DataRobot model for this Registered Model.
422
+ """
423
+ return pulumi.get(self, "model_id")
424
+
425
+ @property
426
+ @pulumi.getter
427
+ def name(self) -> pulumi.Output[str]:
428
+ """
429
+ The name of the Registered Model.
430
+ """
431
+ return pulumi.get(self, "name")
432
+
433
+ @property
434
+ @pulumi.getter(name="predictionThreshold")
435
+ def prediction_threshold(self) -> pulumi.Output[Optional[float]]:
436
+ """
437
+ The prediction threshold for the model.
438
+ """
439
+ return pulumi.get(self, "prediction_threshold")
440
+
441
+ @property
442
+ @pulumi.getter(name="versionId")
443
+ def version_id(self) -> pulumi.Output[str]:
444
+ """
445
+ The ID of the Registered Model Version.
446
+ """
447
+ return pulumi.get(self, "version_id")
448
+
449
+ @property
450
+ @pulumi.getter(name="versionName")
451
+ def version_name(self) -> pulumi.Output[str]:
452
+ """
453
+ The name of the Registered Model Version.
454
+ """
455
+ return pulumi.get(self, "version_name")
456
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi-datarobot
3
- Version: 0.2.3
3
+ Version: 0.2.5
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
@@ -22,6 +22,7 @@ pulumi_datarobot/pulumi-plugin.json
22
22
  pulumi_datarobot/py.typed
23
23
  pulumi_datarobot/qa_application.py
24
24
  pulumi_datarobot/registered_model.py
25
+ pulumi_datarobot/registered_model_from_leaderboard.py
25
26
  pulumi_datarobot/remote_repository.py
26
27
  pulumi_datarobot/use_case.py
27
28
  pulumi_datarobot/vector_database.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.2.3"
11
+ VERSION = "0.2.5"
12
12
  def readme():
13
13
  try:
14
14
  with open('README.md', encoding='utf-8') as f: