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

Commit

Permalink
fix(deps): update dependency @netlify/open-api to ^2.12.0 (#733)
Browse files Browse the repository at this point in the history
* 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 <jb@netlify.com>
  • Loading branch information
renovate[bot] and Jason Barry authored Aug 16, 2022
1 parent 57760eb commit 6a633a6
Show file tree
Hide file tree
Showing 4 changed files with 179 additions and 8 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"node client"
],
"dependencies": {
"@netlify/open-api": "^2.11.0",
"@netlify/open-api": "^2.12.0",
"lodash.camelcase": "^4.3.0",
"micro-api-client": "^3.3.0",
"node-fetch": "^3.0.0",
Expand Down
171 changes: 171 additions & 0 deletions src/operations.test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -3264,6 +3264,177 @@ Generated by [AVA](https://avajs.dev).
],
verb: 'put',
},
{
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.',
operationId: 'setEnvVarValue',
parameters: {
body: {
env_var: {
in: 'body',
name: 'env_var',
schema: {
properties: {
context: {
description: 'The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.',
enum: [
'dev',
'branch-deploy',
'deploy-preview',
'production',
],
type: 'string',
},
value: {
description: 'The environment variable\'s unencrypted value',
type: 'string',
},
},
type: 'object',
},
},
},
path: {
account_id: {
description: 'Scope response to account_id',
in: 'path',
name: 'account_id',
required: true,
type: 'string',
},
key: {
description: 'The existing environment variable key name (case-sensitive)',
in: 'path',
name: 'key',
required: true,
type: 'string',
},
},
query: {
site_id: {
description: 'If provided, update an environment variable set on this site',
in: 'query',
name: 'site_id',
type: 'string',
},
},
},
path: '/accounts/{account_id}/env/{key}',
responses: {
201: {
description: 'Created (success)',
schema: {
description: 'Environment variable model definition',
properties: {
key: {
description: 'The environment variable key, like ALGOLIA_ID (case-sensitive)',
type: 'string',
'x-faker': 'commerce.productName',
},
scopes: {
description: 'The scopes that this environment variable is set to',
items: {
enum: [
'builds',
'functions',
'runtime',
'post_processing',
],
type: 'string',
},
type: 'array',
},
updated_at: {
description: 'The timestamp of when the value was last updated',
format: 'date-time',
type: 'string',
'x-faker': 'date.past',
},
updated_by: {
properties: {
avatar_url: {
description: 'A URL pointing to the user\'s avatar',
type: 'string',
'x-faker': 'internet.avatar',
},
email: {
description: 'The user\'s email address',
type: 'string',
'x-faker': 'internet.email',
},
full_name: {
description: 'The user\'s full name (first and last)',
type: 'string',
'x-faker': 'name.findName',
},
id: {
description: 'The user\'s unique identifier',
type: 'string',
'x-faker': 'datatype.number',
},
},
type: 'object',
},
values: {
description: 'An array of Value objects containing values and metadata',
items: {
description: 'Environment variable value model definition',
properties: {
context: {
description: 'The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.',
enum: [
'all',
'dev',
'branch-deploy',
'deploy-preview',
'production',
],
type: 'string',
},
id: {
description: 'The environment variable value\'s universally unique ID',
type: 'string',
'x-faker': 'datatype.uuid',
},
value: {
description: 'The environment variable\'s unencrypted value',
type: 'string',
'x-faker': 'internet.password',
},
},
type: 'object',
},
type: 'array',
'x-faker': 'internet.password',
},
},
type: 'object',
},
},
default: {
description: 'error',
schema: {
properties: {
code: {
format: 'int64',
type: 'integer',
},
message: {
type: 'string',
'x-nullable': false,
},
},
required: [
'message',
],
type: 'object',
},
},
},
tags: [
'environmentVariables',
],
verb: 'patch',
},
{
description: '[Beta] Deletes an environment variable. To use this endpoint, opt in to the beta environment variable experience using the Netlify UI.',
operationId: 'deleteEnvVar',
Expand Down
Binary file modified src/operations.test.js.snap
Binary file not shown.

0 comments on commit 6a633a6

Please sign in to comment.