Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Commit 6a633a6

Browse files
renovate[bot]Jason Barry
andauthored
fix(deps): update dependency @netlify/open-api to ^2.12.0 (#733)
* fix(deps): update dependency @netlify/open-api to ^2.12.0 * chore: update snapshots Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jason Barry <[email protected]>
1 parent 57760eb commit 6a633a6

File tree

4 files changed

+179
-8
lines changed

4 files changed

+179
-8
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"node client"
5353
],
5454
"dependencies": {
55-
"@netlify/open-api": "^2.11.0",
55+
"@netlify/open-api": "^2.12.0",
5656
"lodash.camelcase": "^4.3.0",
5757
"micro-api-client": "^3.3.0",
5858
"node-fetch": "^3.0.0",

src/operations.test.js.md

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3264,6 +3264,177 @@ Generated by [AVA](https://avajs.dev).
32643264
],
32653265
verb: 'put',
32663266
},
3267+
{
3268+
description: '[Beta] Updates or creates a new value for an existing environment variable. To use this endpoint, opt in to the beta environment variable experience using the Netlify UI.',
3269+
operationId: 'setEnvVarValue',
3270+
parameters: {
3271+
body: {
3272+
env_var: {
3273+
in: 'body',
3274+
name: 'env_var',
3275+
schema: {
3276+
properties: {
3277+
context: {
3278+
description: 'The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.',
3279+
enum: [
3280+
'dev',
3281+
'branch-deploy',
3282+
'deploy-preview',
3283+
'production',
3284+
],
3285+
type: 'string',
3286+
},
3287+
value: {
3288+
description: 'The environment variable\'s unencrypted value',
3289+
type: 'string',
3290+
},
3291+
},
3292+
type: 'object',
3293+
},
3294+
},
3295+
},
3296+
path: {
3297+
account_id: {
3298+
description: 'Scope response to account_id',
3299+
in: 'path',
3300+
name: 'account_id',
3301+
required: true,
3302+
type: 'string',
3303+
},
3304+
key: {
3305+
description: 'The existing environment variable key name (case-sensitive)',
3306+
in: 'path',
3307+
name: 'key',
3308+
required: true,
3309+
type: 'string',
3310+
},
3311+
},
3312+
query: {
3313+
site_id: {
3314+
description: 'If provided, update an environment variable set on this site',
3315+
in: 'query',
3316+
name: 'site_id',
3317+
type: 'string',
3318+
},
3319+
},
3320+
},
3321+
path: '/accounts/{account_id}/env/{key}',
3322+
responses: {
3323+
201: {
3324+
description: 'Created (success)',
3325+
schema: {
3326+
description: 'Environment variable model definition',
3327+
properties: {
3328+
key: {
3329+
description: 'The environment variable key, like ALGOLIA_ID (case-sensitive)',
3330+
type: 'string',
3331+
'x-faker': 'commerce.productName',
3332+
},
3333+
scopes: {
3334+
description: 'The scopes that this environment variable is set to',
3335+
items: {
3336+
enum: [
3337+
'builds',
3338+
'functions',
3339+
'runtime',
3340+
'post_processing',
3341+
],
3342+
type: 'string',
3343+
},
3344+
type: 'array',
3345+
},
3346+
updated_at: {
3347+
description: 'The timestamp of when the value was last updated',
3348+
format: 'date-time',
3349+
type: 'string',
3350+
'x-faker': 'date.past',
3351+
},
3352+
updated_by: {
3353+
properties: {
3354+
avatar_url: {
3355+
description: 'A URL pointing to the user\'s avatar',
3356+
type: 'string',
3357+
'x-faker': 'internet.avatar',
3358+
},
3359+
email: {
3360+
description: 'The user\'s email address',
3361+
type: 'string',
3362+
'x-faker': 'internet.email',
3363+
},
3364+
full_name: {
3365+
description: 'The user\'s full name (first and last)',
3366+
type: 'string',
3367+
'x-faker': 'name.findName',
3368+
},
3369+
id: {
3370+
description: 'The user\'s unique identifier',
3371+
type: 'string',
3372+
'x-faker': 'datatype.number',
3373+
},
3374+
},
3375+
type: 'object',
3376+
},
3377+
values: {
3378+
description: 'An array of Value objects containing values and metadata',
3379+
items: {
3380+
description: 'Environment variable value model definition',
3381+
properties: {
3382+
context: {
3383+
description: 'The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.',
3384+
enum: [
3385+
'all',
3386+
'dev',
3387+
'branch-deploy',
3388+
'deploy-preview',
3389+
'production',
3390+
],
3391+
type: 'string',
3392+
},
3393+
id: {
3394+
description: 'The environment variable value\'s universally unique ID',
3395+
type: 'string',
3396+
'x-faker': 'datatype.uuid',
3397+
},
3398+
value: {
3399+
description: 'The environment variable\'s unencrypted value',
3400+
type: 'string',
3401+
'x-faker': 'internet.password',
3402+
},
3403+
},
3404+
type: 'object',
3405+
},
3406+
type: 'array',
3407+
'x-faker': 'internet.password',
3408+
},
3409+
},
3410+
type: 'object',
3411+
},
3412+
},
3413+
default: {
3414+
description: 'error',
3415+
schema: {
3416+
properties: {
3417+
code: {
3418+
format: 'int64',
3419+
type: 'integer',
3420+
},
3421+
message: {
3422+
type: 'string',
3423+
'x-nullable': false,
3424+
},
3425+
},
3426+
required: [
3427+
'message',
3428+
],
3429+
type: 'object',
3430+
},
3431+
},
3432+
},
3433+
tags: [
3434+
'environmentVariables',
3435+
],
3436+
verb: 'patch',
3437+
},
32673438
{
32683439
description: '[Beta] Deletes an environment variable. To use this endpoint, opt in to the beta environment variable experience using the Netlify UI.',
32693440
operationId: 'deleteEnvVar',

src/operations.test.js.snap

970 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)