Skip to content

Commit 4a11678

Browse files
author
LaunchDarklyCI
committed
Version 5.3.0 automatically generated from ld-openapi@6ae0543.
1 parent acd4a15 commit 4a11678

File tree

3 files changed

+31
-7
lines changed

3 files changed

+31
-7
lines changed

api.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* LaunchDarkly REST API
33
* Build custom integrations with the LaunchDarkly REST API
44
*
5-
* OpenAPI spec version: 5.1.0
5+
* OpenAPI spec version: 5.3.0
66
* Contact: support@launchdarkly.com
77
*
88
* NOTE: This class is auto generated by the swagger code generator program.
@@ -1466,7 +1466,7 @@ export class EnvironmentApprovalSettings {
14661466
*/
14671467
'serviceKind'?: EnvironmentApprovalSettings.ServiceKindEnum;
14681468
/**
1469-
* Whether any changes to flags in this environment will require approval.
1469+
* Whether any changes to flags in this environment will require approval. You may only set required or requiredApprovalTags, not both.
14701470
*/
14711471
'required'?: boolean;
14721472
/**
@@ -1481,6 +1481,10 @@ export class EnvironmentApprovalSettings {
14811481
* Whether changes can be applied as long as minNumApprovals is met, regardless of if any reviewers have declined a request.
14821482
*/
14831483
'canApplyDeclinedChanges'?: boolean;
1484+
/**
1485+
* An array of tags used to specify which flags with those tags require approval. You may only set requiredApprovalTags or required, not both.
1486+
*/
1487+
'requiredApprovalTags'?: Array<string>;
14841488

14851489
static discriminator: string | undefined = undefined;
14861490

@@ -1509,6 +1513,11 @@ export class EnvironmentApprovalSettings {
15091513
"name": "canApplyDeclinedChanges",
15101514
"baseName": "canApplyDeclinedChanges",
15111515
"type": "boolean"
1516+
},
1517+
{
1518+
"name": "requiredApprovalTags",
1519+
"baseName": "requiredApprovalTags",
1520+
"type": "Array<string>"
15121521
} ];
15131522

15141523
static getAttributeTypeMap() {
@@ -7541,7 +7550,7 @@ export class EnvironmentsApi {
75417550
}
75427551
/**
75437552
*
7544-
* @summary Modify an environment by ID.
7553+
* @summary Modify an environment by ID. If you try to patch the environment by setting both required and requiredApprovalTags, it will result in an error. Users can specify either required approvals for all flags in an environment or those with specific tags, but not both. Only customers on an Enterprise plan can require approval for flag updates with either mechanism.
75457554
* @param projectKey The project key, used to tie the flags together under one project so they can be managed together.
75467555
* @param environmentKey The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
75477556
* @param patchDelta Requires a JSON Patch representation of the desired changes to the project. &#39;http://jsonpatch.com/&#39;

openapi.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ info:
1010
license:
1111
name: Apache 2.0
1212
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
13-
version: 5.1.0
13+
version: 5.3.0
1414
host: app.launchdarkly.com
1515
basePath: /api/v2
1616
schemes:
@@ -145,7 +145,13 @@ paths:
145145
tags:
146146
- Environments
147147
patch:
148-
summary: Modify an environment by ID.
148+
summary: >-
149+
Modify an environment by ID. If you try to patch the environment by
150+
setting both required and requiredApprovalTags, it will result in an
151+
error. Users can specify either required approvals for all flags in an
152+
environment or those with specific tags, but not both. Only customers on
153+
an Enterprise plan can require approval for flag updates with either
154+
mechanism.
149155
operationId: patchEnvironment
150156
parameters:
151157
- $ref: '#/parameters/ProjectKey'
@@ -2997,7 +3003,8 @@ definitions:
29973003
type: boolean
29983004
description: >-
29993005
Whether any changes to flags in this environment will require
3000-
approval.
3006+
approval. You may only set required or requiredApprovalTags, not
3007+
both.
30013008
canReviewOwnRequest:
30023009
type: boolean
30033010
description: >-
@@ -3015,6 +3022,14 @@ definitions:
30153022
description: >-
30163023
Whether changes can be applied as long as minNumApprovals is met,
30173024
regardless of if any reviewers have declined a request.
3025+
requiredApprovalTags:
3026+
type: array
3027+
items:
3028+
type: string
3029+
description: >-
3030+
An array of tags used to specify which flags with those tags
3031+
require approval. You may only set requiredApprovalTags or
3032+
required, not both.
30183033
EnvironmentPost:
30193034
type: object
30203035
properties:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "launchdarkly-api-typescript",
3-
"version": "5.1.0",
3+
"version": "5.3.0",
44
"description": "Build custom integrations with the LaunchDarkly REST API",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)