Skip to content

Commit 112bfcb

Browse files
feat(api): update via SDK Studio
1 parent cf32b0e commit 112bfcb

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 5
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-f40e779e2a48f5e37361f2f4a9879e5c40f2851b8033c23db69ec7b91242bf69.yml
3-
openapi_spec_hash: 2dfa146149e61363f1ec40bf9251eb7c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-1fe396b957ced73281fc0a61a69b630836aa5c89a8dccce2c5a1716bc9775e80.yml
3+
openapi_spec_hash: 9a0d67fb0781be034b77839584109638
44
config_hash: 2ddaa85513b6670889b1a56c905423c7

src/resources/apps/deployments.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ export interface DeploymentCreateParams {
7979
*/
8080
file: Uploadable;
8181

82+
/**
83+
* Map of environment variables to set for the deployed application. Each key-value
84+
* pair represents an environment variable.
85+
*/
86+
env_vars?: Record<string, string>;
87+
8288
/**
8389
* Allow overwriting an existing app version
8490
*/

tests/api-resources/apps/deployments.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ describe('resource deployments', () => {
2828
const response = await client.apps.deployments.create({
2929
entrypoint_rel_path: 'src/app.py',
3030
file: await toFile(Buffer.from('# my file contents'), 'README.md'),
31+
env_vars: { foo: 'string' },
3132
force: false,
3233
region: 'aws.us-east-1a',
3334
version: '1.0.0',

0 commit comments

Comments
 (0)