@datarobot/pulumi-datarobot 0.10.13 → 0.10.15

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.
package/README.md CHANGED
@@ -71,7 +71,7 @@ Keep the following items in mind if running in an air-gapped environment:
71
71
  - Run `pulumi login --local` to store state files on your local filesystem, instead of the default Pulumi Cloud. Pulumi binaries are available [here](https://www.pulumi.com/docs/iac/download-install/).
72
72
  - Set `DATAROBOT_ENDPOINT`: https://{datarobot.example.com}/api/v2
73
73
  (replacing {datarobot.example.com} with your specific deployment endpoint)
74
- - For Python, the [pulumi](https://pypi.org/project/pulumi/) and [pulumi-datarobot](https://pypi.org/project/pulumi-datarobot/) packages must be installed in the air-gapped system.
74
+ - For Python, the [pulumi](https://pypi.org/project/pulumi/) and [pulumi-datarobot](https://pypi.org/project/pulumi-datarobot/) packages must be installed in the air-gapped system.
75
75
 
76
76
  Example using `pip wheel`:
77
77
 
@@ -107,5 +107,45 @@ Keep the following items in mind if running in an air-gapped environment:
107
107
  now install wheels from the folder.
108
108
 
109
109
  ```bash
110
- pip install * -f ./ --no-index
110
+ pip install * -f ./ --no-index
111
111
  ```
112
+
113
+ You will also need to download the binary plugin from this repository. Click on the version that matches the Python package
114
+ version from our [Releases](https://github.com/datarobot-community/pulumi-datarobot/releases) page, download the tar.gz
115
+ for the correct architecture of your computer. For Codespaces, that is `*-linux-amd64.tar.gz`. After you've extracted it
116
+ install it with:
117
+
118
+ ```bash
119
+ pulumi plugin install resource datarobot <version> -f <path-to-extracted-folder>
120
+ ```
121
+
122
+ ## Rate limited by GitHub?
123
+
124
+ > [!IMPORTANT]
125
+ > GitHub has hard limits on API calls that cannot be changed. If you are
126
+ running into this when running deployment tasks you have a couple of
127
+ options. You can wait until the [rate
128
+ limit](https://docs.github.com/en/enterprise-cloud@latest/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#primary-rate-limit-for-unauthenticated-users)
129
+ expires or you can do a direct download from the releases page which
130
+ will not use the API and hit the limit.
131
+
132
+ To directly download the plugin and bypass the GitHub API run:
133
+ ```bash
134
+ pulumi plugin install resource datarobot <version> --server https://github.com/datarobot-community/pulumi-datarobot/releases/download/<version>/
135
+ ```
136
+ For example, to download version **0.10.14**, you can run:
137
+
138
+ ```bash
139
+ pulumi plugin install resource datarobot v0.10.14 --server https://github.com/datarobot-community/pulumi-datarobot/releases/download/v0.10.14/
140
+ ```
141
+ prior to running the deploy to directly install the plugin.
142
+
143
+ After you have it downloaded, it will still attempt to query for
144
+ updates via the GitHub API that can trigger rate limits. To bypass
145
+ that, set the environment variable: `PULUMI_SKIP_UPDATE_CHECK`
146
+
147
+ ```bash
148
+ export PULUMI_SKIP_UPDATE_CHECK=1
149
+ # OR
150
+ export PULUMI_SKIP_UPDATE_CHECK=true
151
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarobot/pulumi-datarobot",
3
- "version": "v0.10.13",
3
+ "version": "v0.10.15",
4
4
  "description": "A Pulumi package for creating and managing DataRobot resources.",
5
5
  "keywords": [
6
6
  "datarobot",
package/types/input.d.ts CHANGED
@@ -423,6 +423,10 @@ export interface CustomMetricValue {
423
423
  columnName?: pulumi.Input<string>;
424
424
  }
425
425
  export interface CustomModelGuardConfiguration {
426
+ /**
427
+ * Additional guard configuration
428
+ */
429
+ additionalGuardConfig?: pulumi.Input<inputs.CustomModelGuardConfigurationAdditionalGuardConfig>;
426
430
  /**
427
431
  * The deployment ID of this guard.
428
432
  */
@@ -472,6 +476,34 @@ export interface CustomModelGuardConfiguration {
472
476
  */
473
477
  templateName: pulumi.Input<string>;
474
478
  }
479
+ export interface CustomModelGuardConfigurationAdditionalGuardConfig {
480
+ /**
481
+ * Cost metric configuration
482
+ */
483
+ cost?: pulumi.Input<inputs.CustomModelGuardConfigurationAdditionalGuardConfigCost>;
484
+ }
485
+ export interface CustomModelGuardConfigurationAdditionalGuardConfigCost {
486
+ /**
487
+ * Currency for cost calculation (USD)
488
+ */
489
+ currency: pulumi.Input<string>;
490
+ /**
491
+ * LLM Price for inputUnit tokens
492
+ */
493
+ inputPrice: pulumi.Input<number>;
494
+ /**
495
+ * No of input tokens for given price
496
+ */
497
+ inputUnit: pulumi.Input<number>;
498
+ /**
499
+ * LLM Price for outputUnit tokens
500
+ */
501
+ outputPrice: pulumi.Input<number>;
502
+ /**
503
+ * No of output tokens for given price
504
+ */
505
+ outputUnit: pulumi.Input<number>;
506
+ }
475
507
  export interface CustomModelGuardConfigurationIntervention {
476
508
  /**
477
509
  * The action of the guard intervention.
package/types/output.d.ts CHANGED
@@ -422,6 +422,10 @@ export interface CustomMetricValue {
422
422
  columnName?: string;
423
423
  }
424
424
  export interface CustomModelGuardConfiguration {
425
+ /**
426
+ * Additional guard configuration
427
+ */
428
+ additionalGuardConfig?: outputs.CustomModelGuardConfigurationAdditionalGuardConfig;
425
429
  /**
426
430
  * The deployment ID of this guard.
427
431
  */
@@ -471,6 +475,34 @@ export interface CustomModelGuardConfiguration {
471
475
  */
472
476
  templateName: string;
473
477
  }
478
+ export interface CustomModelGuardConfigurationAdditionalGuardConfig {
479
+ /**
480
+ * Cost metric configuration
481
+ */
482
+ cost?: outputs.CustomModelGuardConfigurationAdditionalGuardConfigCost;
483
+ }
484
+ export interface CustomModelGuardConfigurationAdditionalGuardConfigCost {
485
+ /**
486
+ * Currency for cost calculation (USD)
487
+ */
488
+ currency: string;
489
+ /**
490
+ * LLM Price for inputUnit tokens
491
+ */
492
+ inputPrice: number;
493
+ /**
494
+ * No of input tokens for given price
495
+ */
496
+ inputUnit: number;
497
+ /**
498
+ * LLM Price for outputUnit tokens
499
+ */
500
+ outputPrice: number;
501
+ /**
502
+ * No of output tokens for given price
503
+ */
504
+ outputUnit: number;
505
+ }
474
506
  export interface CustomModelGuardConfigurationIntervention {
475
507
  /**
476
508
  * The action of the guard intervention.