Skip to content

Commit 5341ea2

Browse files
author
LaunchDarklyCI
committed
Version 5.3.0 automatically generated from ld-openapi@6ae0543.
1 parent f86b8dd commit 5341ea2

File tree

189 files changed

+392
-343
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+392
-343
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ This REST API is for custom integrations, data export, or automating your featur
66
# api-client
77

88
LaunchDarkly REST API
9-
- API version: 5.1.0
10-
- Build date: 2021-04-21T16:19:08.589Z
9+
- API version: 5.3.0
10+
- Build date: 2021-07-14T18:58:43.744Z
1111

1212
Build custom integrations with the LaunchDarkly REST API
1313

@@ -46,7 +46,7 @@ Add this dependency to your project's POM:
4646
<dependency>
4747
<groupId>com.launchdarkly</groupId>
4848
<artifactId>api-client</artifactId>
49-
<version>5.1.0</version>
49+
<version>5.3.0</version>
5050
<scope>compile</scope>
5151
</dependency>
5252
```
@@ -56,7 +56,7 @@ Add this dependency to your project's POM:
5656
Add this dependency to your project's build file:
5757

5858
```groovy
59-
compile "com.launchdarkly:api-client:5.1.0"
59+
compile "com.launchdarkly:api-client:5.3.0"
6060
```
6161

6262
### Others
@@ -69,7 +69,7 @@ mvn clean package
6969

7070
Then manually install the following JARs:
7171

72-
* `target/api-client-5.1.0.jar`
72+
* `target/api-client-5.3.0.jar`
7373
* `target/lib/*.jar`
7474

7575
## Getting Started
@@ -146,7 +146,7 @@ Class | Method | HTTP request | Description
146146
*DataExportDestinationsApi* | [**postDestination**](docs/DataExportDestinationsApi.md#postDestination) | **POST** /destinations/{projectKey}/{environmentKey} | Create a new data export destination
147147
*EnvironmentsApi* | [**deleteEnvironment**](docs/EnvironmentsApi.md#deleteEnvironment) | **DELETE** /projects/{projectKey}/environments/{environmentKey} | Delete an environment in a specific project.
148148
*EnvironmentsApi* | [**getEnvironment**](docs/EnvironmentsApi.md#getEnvironment) | **GET** /projects/{projectKey}/environments/{environmentKey} | Get an environment given a project and key.
149-
*EnvironmentsApi* | [**patchEnvironment**](docs/EnvironmentsApi.md#patchEnvironment) | **PATCH** /projects/{projectKey}/environments/{environmentKey} | Modify an environment by ID.
149+
*EnvironmentsApi* | [**patchEnvironment**](docs/EnvironmentsApi.md#patchEnvironment) | **PATCH** /projects/{projectKey}/environments/{environmentKey} | 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.
150150
*EnvironmentsApi* | [**postEnvironment**](docs/EnvironmentsApi.md#postEnvironment) | **POST** /projects/{projectKey}/environments | Create a new environment in a specified project with a given name, key, and swatch color.
151151
*EnvironmentsApi* | [**resetEnvironmentMobileKey**](docs/EnvironmentsApi.md#resetEnvironmentMobileKey) | **POST** /projects/{projectKey}/environments/{environmentKey}/mobileKey | Reset an environment&#39;s mobile key. The optional expiry for the old key is deprecated for this endpoint, so the old key will always expire immediately.
152152
*EnvironmentsApi* | [**resetEnvironmentSDKKey**](docs/EnvironmentsApi.md#resetEnvironmentSDKKey) | **POST** /projects/{projectKey}/environments/{environmentKey}/apiKey | Reset an environment&#39;s SDK key with an optional expiry time for the old key.

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'com.launchdarkly'
5-
version = '5.1.0'
5+
version = '5.3.0'
66

77
buildscript {
88
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.launchdarkly",
44
name := "api-client",
5-
version := "5.1.0",
5+
version := "5.3.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/EnvironmentApprovalSettings.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**serviceKind** | [**ServiceKindEnum**](#ServiceKindEnum) | The approvals system used. | [optional]
8-
**required** | **Boolean** | Whether any changes to flags in this environment will require approval. | [optional]
8+
**required** | **Boolean** | Whether any changes to flags in this environment will require approval. You may only set required or requiredApprovalTags, not both. | [optional]
99
**canReviewOwnRequest** | **Boolean** | Whether requesters can approve or decline their own request. They may always comment. | [optional]
1010
**minNumApprovals** | **Long** | The number of approvals required before an approval request can be applied. | [optional]
1111
**canApplyDeclinedChanges** | **Boolean** | Whether changes can be applied as long as minNumApprovals is met, regardless of if any reviewers have declined a request. | [optional]
12+
**requiredApprovalTags** | **List&lt;String&gt;** | An array of tags used to specify which flags with those tags require approval. You may only set requiredApprovalTags or required, not both. | [optional]
1213

1314

1415
<a name="ServiceKindEnum"></a>

docs/EnvironmentsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**deleteEnvironment**](EnvironmentsApi.md#deleteEnvironment) | **DELETE** /projects/{projectKey}/environments/{environmentKey} | Delete an environment in a specific project.
88
[**getEnvironment**](EnvironmentsApi.md#getEnvironment) | **GET** /projects/{projectKey}/environments/{environmentKey} | Get an environment given a project and key.
9-
[**patchEnvironment**](EnvironmentsApi.md#patchEnvironment) | **PATCH** /projects/{projectKey}/environments/{environmentKey} | Modify an environment by ID.
9+
[**patchEnvironment**](EnvironmentsApi.md#patchEnvironment) | **PATCH** /projects/{projectKey}/environments/{environmentKey} | 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.
1010
[**postEnvironment**](EnvironmentsApi.md#postEnvironment) | **POST** /projects/{projectKey}/environments | Create a new environment in a specified project with a given name, key, and swatch color.
1111
[**resetEnvironmentMobileKey**](EnvironmentsApi.md#resetEnvironmentMobileKey) | **POST** /projects/{projectKey}/environments/{environmentKey}/mobileKey | Reset an environment&#39;s mobile key. The optional expiry for the old key is deprecated for this endpoint, so the old key will always expire immediately.
1212
[**resetEnvironmentSDKKey**](EnvironmentsApi.md#resetEnvironmentSDKKey) | **POST** /projects/{projectKey}/environments/{environmentKey}/apiKey | Reset an environment&#39;s SDK key with an optional expiry time for the old key.
@@ -125,7 +125,7 @@ Name | Type | Description | Notes
125125
# **patchEnvironment**
126126
> Environment patchEnvironment(projectKey, environmentKey, patchDelta)
127127
128-
Modify an environment by ID.
128+
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.
129129

130130
### Example
131131
```java

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:

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>api-client</artifactId>
66
<packaging>jar</packaging>
77
<name>api-client</name>
8-
<version>5.1.0</version>
8+
<version>5.3.0</version>
99
<url>https://github.com/launchdarkly/api-client-java</url>
1010
<description>Build custom integrations with the LaunchDarkly REST API</description>
1111
<scm>

src/main/java/com/launchdarkly/api/ApiCallback.java

Lines changed: 1 addition & 1 deletion
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.

src/main/java/com/launchdarkly/api/ApiClient.java

Lines changed: 2 additions & 2 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.
@@ -85,7 +85,7 @@ public ApiClient() {
8585
json = new JSON();
8686

8787
// Set default User-Agent.
88-
setUserAgent("Swagger-Codegen/5.1.0/java");
88+
setUserAgent("Swagger-Codegen/5.3.0/java");
8989

9090
// Setup authentications (key: authentication name, value: authentication).
9191
authentications = new HashMap<String, Authentication>();

src/main/java/com/launchdarkly/api/ApiException.java

Lines changed: 2 additions & 2 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.
@@ -16,7 +16,7 @@
1616
import java.util.Map;
1717
import java.util.List;
1818

19-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2021-04-21T16:19:08.589Z")
19+
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2021-07-14T18:58:43.744Z")
2020
public class ApiException extends Exception {
2121
private int code = 0;
2222
private Map<String, List<String>> responseHeaders = null;

0 commit comments

Comments
 (0)