@@ -171,6 +171,7 @@ def create(
171
171
name : Optional [str ] | NotGiven = NOT_GIVEN ,
172
172
prebuilt : Optional [str ] | NotGiven = NOT_GIVEN ,
173
173
repo_connection_id : Optional [str ] | NotGiven = NOT_GIVEN ,
174
+ secrets : Optional [Dict [str , str ]] | NotGiven = NOT_GIVEN ,
174
175
snapshot_id : Optional [str ] | NotGiven = NOT_GIVEN ,
175
176
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
176
177
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -218,6 +219,11 @@ def create(
218
219
219
220
repo_connection_id: Repository connection id the devbox should source its base image from.
220
221
222
+ secrets: (Optional) Map of environment variable names to secret names. The secret values
223
+ will be securely injected as environment variables in the Devbox. Example:
224
+ {"DB_PASS": "DATABASE_PASSWORD"} sets environment variable 'DB_PASS' to the
225
+ value of secret 'DATABASE_PASSWORD'.
226
+
221
227
snapshot_id: Snapshot ID to use for the Devbox. Only one of (Snapshot ID, Blueprint ID,
222
228
Blueprint name) should be specified.
223
229
@@ -246,6 +252,7 @@ def create(
246
252
"name" : name ,
247
253
"prebuilt" : prebuilt ,
248
254
"repo_connection_id" : repo_connection_id ,
255
+ "secrets" : secrets ,
249
256
"snapshot_id" : snapshot_id ,
250
257
},
251
258
devbox_create_params .DevboxCreateParams ,
@@ -1430,6 +1437,7 @@ async def create(
1430
1437
name : Optional [str ] | NotGiven = NOT_GIVEN ,
1431
1438
prebuilt : Optional [str ] | NotGiven = NOT_GIVEN ,
1432
1439
repo_connection_id : Optional [str ] | NotGiven = NOT_GIVEN ,
1440
+ secrets : Optional [Dict [str , str ]] | NotGiven = NOT_GIVEN ,
1433
1441
snapshot_id : Optional [str ] | NotGiven = NOT_GIVEN ,
1434
1442
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1435
1443
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1477,6 +1485,11 @@ async def create(
1477
1485
1478
1486
repo_connection_id: Repository connection id the devbox should source its base image from.
1479
1487
1488
+ secrets: (Optional) Map of environment variable names to secret names. The secret values
1489
+ will be securely injected as environment variables in the Devbox. Example:
1490
+ {"DB_PASS": "DATABASE_PASSWORD"} sets environment variable 'DB_PASS' to the
1491
+ value of secret 'DATABASE_PASSWORD'.
1492
+
1480
1493
snapshot_id: Snapshot ID to use for the Devbox. Only one of (Snapshot ID, Blueprint ID,
1481
1494
Blueprint name) should be specified.
1482
1495
@@ -1505,6 +1518,7 @@ async def create(
1505
1518
"name" : name ,
1506
1519
"prebuilt" : prebuilt ,
1507
1520
"repo_connection_id" : repo_connection_id ,
1521
+ "secrets" : secrets ,
1508
1522
"snapshot_id" : snapshot_id ,
1509
1523
},
1510
1524
devbox_create_params .DevboxCreateParams ,
0 commit comments