Skip to content

Commit 2678579

Browse files
author
LaunchDarklyReleaseBot
committed
Version 7.1.1 automatically generated from ld-openapi.
1 parent a96ab14 commit 2678579

File tree

236 files changed

+505
-293
lines changed

Some content is hidden

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

236 files changed

+505
-293
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ docs/MemberImportItemRep.md
125125
docs/MemberPermissionGrantSummaryRep.md
126126
docs/MemberSummaryRep.md
127127
docs/MemberTeamSummaryRep.md
128-
docs/MemberTeamsFormPost.md
128+
docs/MemberTeamsPostInput.md
129129
docs/Members.md
130130
docs/MethodNotAllowedErrorRep.md
131131
docs/MetricCollectionRep.md
@@ -399,7 +399,7 @@ src/main/java/com/launchdarkly/api/model/MemberImportItemRep.java
399399
src/main/java/com/launchdarkly/api/model/MemberPermissionGrantSummaryRep.java
400400
src/main/java/com/launchdarkly/api/model/MemberSummaryRep.java
401401
src/main/java/com/launchdarkly/api/model/MemberTeamSummaryRep.java
402-
src/main/java/com/launchdarkly/api/model/MemberTeamsFormPost.java
402+
src/main/java/com/launchdarkly/api/model/MemberTeamsPostInput.java
403403
src/main/java/com/launchdarkly/api/model/Members.java
404404
src/main/java/com/launchdarkly/api/model/MethodNotAllowedErrorRep.java
405405
src/main/java/com/launchdarkly/api/model/MetricCollectionRep.java
@@ -634,7 +634,7 @@ src/test/java/com/launchdarkly/api/model/MemberImportItemRepTest.java
634634
src/test/java/com/launchdarkly/api/model/MemberPermissionGrantSummaryRepTest.java
635635
src/test/java/com/launchdarkly/api/model/MemberSummaryRepTest.java
636636
src/test/java/com/launchdarkly/api/model/MemberTeamSummaryRepTest.java
637-
src/test/java/com/launchdarkly/api/model/MemberTeamsFormPostTest.java
637+
src/test/java/com/launchdarkly/api/model/MemberTeamsPostInputTest.java
638638
src/test/java/com/launchdarkly/api/model/MemberTest.java
639639
src/test/java/com/launchdarkly/api/model/MembersTest.java
640640
src/test/java/com/launchdarkly/api/model/MethodNotAllowedErrorRepTest.java

README.md

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

77
LaunchDarkly REST API
88
- API version: 2.0
9-
- Build date: 2022-01-06T23:47:01.381398Z[Etc/UTC]
9+
- Build date: 2022-01-15T00:48:54.370829Z[Etc/UTC]
1010

1111
# Overview
1212

@@ -476,7 +476,7 @@ Add this dependency to your project's POM:
476476
<dependency>
477477
<groupId>com.launchdarkly</groupId>
478478
<artifactId>api-client</artifactId>
479-
<version>7.1.0</version>
479+
<version>7.1.1</version>
480480
<scope>compile</scope>
481481
</dependency>
482482
```
@@ -486,7 +486,7 @@ Add this dependency to your project's POM:
486486
Add this dependency to your project's build file:
487487

488488
```groovy
489-
compile "com.launchdarkly:api-client:7.1.0"
489+
compile "com.launchdarkly:api-client:7.1.1"
490490
```
491491

492492
### Others
@@ -499,7 +499,7 @@ mvn clean package
499499

500500
Then manually install the following JARs:
501501

502-
* `target/api-client-7.1.0.jar`
502+
* `target/api-client-7.1.1.jar`
503503
* `target/lib/*.jar`
504504

505505
## Getting Started
@@ -801,7 +801,7 @@ Class | Method | HTTP request | Description
801801
- [MemberPermissionGrantSummaryRep](docs/MemberPermissionGrantSummaryRep.md)
802802
- [MemberSummaryRep](docs/MemberSummaryRep.md)
803803
- [MemberTeamSummaryRep](docs/MemberTeamSummaryRep.md)
804-
- [MemberTeamsFormPost](docs/MemberTeamsFormPost.md)
804+
- [MemberTeamsPostInput](docs/MemberTeamsPostInput.md)
805805
- [Members](docs/Members.md)
806806
- [MethodNotAllowedErrorRep](docs/MethodNotAllowedErrorRep.md)
807807
- [MetricCollectionRep](docs/MetricCollectionRep.md)

api/openapi.yaml

Lines changed: 44 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1846,6 +1846,10 @@ paths:
18461846
requestBody:
18471847
content:
18481848
application/json:
1849+
example:
1850+
- op: replace
1851+
path: /defaultBranch
1852+
value: main
18491853
schema:
18501854
$ref: '#/components/schemas/JSONPatch'
18511855
required: true
@@ -4960,6 +4964,10 @@ paths:
49604964
requestBody:
49614965
content:
49624966
application/json:
4967+
example:
4968+
- op: replace
4969+
path: /on
4970+
value: false
49634971
schema:
49644972
$ref: '#/components/schemas/JSONPatch'
49654973
required: true
@@ -5323,6 +5331,10 @@ paths:
53235331
requestBody:
53245332
content:
53255333
application/json:
5334+
example:
5335+
- op: add
5336+
path: /role
5337+
value: writer
53265338
schema:
53275339
$ref: '#/components/schemas/JSONPatch'
53285340
required: true
@@ -5393,7 +5405,7 @@ paths:
53935405
content:
53945406
application/json:
53955407
schema:
5396-
$ref: '#/components/schemas/MemberTeamsFormPost'
5408+
$ref: '#/components/schemas/MemberTeamsPostInput'
53975409
required: true
53985410
responses:
53995411
"201":
@@ -5666,7 +5678,7 @@ paths:
56665678
- Metrics
56675679
x-accepts: application/json
56685680
patch:
5669-
description: Patch a environment by key.
5681+
description: Patch a metric by key.
56705682
operationId: patchMetric
56715683
parameters:
56725684
- description: The project key
@@ -5692,6 +5704,10 @@ paths:
56925704
requestBody:
56935705
content:
56945706
application/json:
5707+
example:
5708+
- op: replace
5709+
path: /name
5710+
value: my-updated-metric
56955711
schema:
56965712
$ref: '#/components/schemas/JSONPatch'
56975713
required: true
@@ -5958,6 +5974,10 @@ paths:
59585974
requestBody:
59595975
content:
59605976
application/json:
5977+
example:
5978+
- op: add
5979+
path: /tags/0
5980+
value: another-tag
59615981
schema:
59625982
$ref: '#/components/schemas/JSONPatch'
59635983
required: true
@@ -6357,14 +6377,19 @@ paths:
63576377
- Environments
63586378
x-accepts: application/json
63596379
patch:
6360-
description: |
6361-
> ### Approval settings
6362-
>
6363-
> The `approvalSettings` key is only returned when the Flag Approvals feature is enabled.
6364-
>
6365-
> Only the `canReviewOwnRequest`, `canApplyDeclinedChanges`, `minNumApprovals`, `required` and `requiredApprovalTagsfields` are editable.
6366-
>
6367-
> If you try to patch the environment by setting both `required` and `requiredApprovalTags`, it fails and an error appears. 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 by either mechanism.
6380+
description: |2
6381+
6382+
Update an environment. Requires a [JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes to the environment.
6383+
6384+
To update fields in the environment object that are arrays, set the `path` to the name of the field and then append `/<array index>`. Using `/0` appends to the beginning of the array.
6385+
6386+
### Approval settings
6387+
6388+
This request only returns the `approvalSettings` key if the [Flag Approvals](https://docs.launchdarkly.com/home/feature-workflows/approvals) feature is enabled.
6389+
6390+
Only the `canReviewOwnRequest`, `canApplyDeclinedChanges`, `minNumApprovals`, `required` and `requiredApprovalTagsfields` are editable.
6391+
6392+
If you try to patch the environment by setting both `required` and `requiredApprovalTags`, the request fails and an error appears. You can specify either required approvals for all flags in an environment or those with specific tags, but not both. Only customers on a Pro or Enterprise plan can require approval for flag updates by either mechanism.
63686393
operationId: patchEnvironment
63696394
parameters:
63706395
- description: The project key
@@ -6390,6 +6415,10 @@ paths:
63906415
requestBody:
63916416
content:
63926417
application/json:
6418+
example:
6419+
- op: replace
6420+
path: /requireComments
6421+
value: true
63936422
schema:
63946423
$ref: '#/components/schemas/JSONPatch'
63956424
required: true
@@ -11412,6 +11441,10 @@ paths:
1141211441
requestBody:
1141311442
content:
1141411443
application/json:
11444+
example:
11445+
- op: replace
11446+
path: /on
11447+
value: false
1141511448
schema:
1141611449
$ref: '#/components/schemas/JSONPatch'
1141711450
required: true
@@ -17647,7 +17680,7 @@ components:
1764717680
- key
1764817681
- name
1764917682
type: object
17650-
MemberTeamsFormPost:
17683+
MemberTeamsPostInput:
1765117684
example:
1765217685
teamKeys:
1765317686
- teamKeys
@@ -20409,9 +20442,7 @@ components:
2040920442
effect:
2041020443
type: string
2041120444
required:
20412-
- actions
2041320445
- effect
20414-
- resources
2041520446
type: object
2041620447
StatementPostData:
2041720448
properties:
@@ -20440,9 +20471,7 @@ components:
2044020471
effect:
2044120472
type: string
2044220473
required:
20443-
- actions
2044420474
- effect
20445-
- resources
2044620475
type: object
2044720476
StatementPostList:
2044820477
items:

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def ossrhPassword = hasProperty('ossrhPassword') ? ossrhPassword : System.getenv
3636

3737
allprojects {
3838
group = 'com.launchdarkly'
39-
version = '7.1.0'
39+
version = '7.1.1'
4040
archivesBaseName = 'api-client'
4141
sourceCompatibility = 1.8
4242
targetCompatibility = 1.8

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 := "7.1.0",
5+
version := "7.1.1",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/AccountMembersApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ Name | Type | Description | Notes
316316

317317
<a name="postMemberTeams"></a>
318318
# **postMemberTeams**
319-
> Member postMemberTeams(id, memberTeamsFormPost)
319+
> Member postMemberTeams(id, memberTeamsPostInput)
320320
321321
Add member to teams
322322

@@ -345,9 +345,9 @@ public class Example {
345345

346346
AccountMembersApi apiInstance = new AccountMembersApi(defaultClient);
347347
String id = "id_example"; // String | The member ID
348-
MemberTeamsFormPost memberTeamsFormPost = new MemberTeamsFormPost(); // MemberTeamsFormPost |
348+
MemberTeamsPostInput memberTeamsPostInput = new MemberTeamsPostInput(); // MemberTeamsPostInput |
349349
try {
350-
Member result = apiInstance.postMemberTeams(id, memberTeamsFormPost);
350+
Member result = apiInstance.postMemberTeams(id, memberTeamsPostInput);
351351
System.out.println(result);
352352
} catch (ApiException e) {
353353
System.err.println("Exception when calling AccountMembersApi#postMemberTeams");
@@ -365,7 +365,7 @@ public class Example {
365365
Name | Type | Description | Notes
366366
------------- | ------------- | ------------- | -------------
367367
**id** | **String**| The member ID |
368-
**memberTeamsFormPost** | [**MemberTeamsFormPost**](MemberTeamsFormPost.md)| |
368+
**memberTeamsPostInput** | [**MemberTeamsPostInput**](MemberTeamsPostInput.md)| |
369369

370370
### Return type
371371

docs/EnvironmentsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Name | Type | Description | Notes
167167
168168
Update environment
169169

170-
&gt; ### Approval settings &gt; &gt; The &#x60;approvalSettings&#x60; key is only returned when the Flag Approvals feature is enabled. &gt; &gt; Only the &#x60;canReviewOwnRequest&#x60;, &#x60;canApplyDeclinedChanges&#x60;, &#x60;minNumApprovals&#x60;, &#x60;required&#x60; and &#x60;requiredApprovalTagsfields&#x60; are editable. &gt; &gt; If you try to patch the environment by setting both &#x60;required&#x60; and &#x60;requiredApprovalTags&#x60;, it fails and an error appears. 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 by either mechanism.
170+
Update an environment. Requires a [JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes to the environment. To update fields in the environment object that are arrays, set the &#x60;path&#x60; to the name of the field and then append &#x60;/&lt;array index&gt;&#x60;. Using &#x60;/0&#x60; appends to the beginning of the array. ### Approval settings This request only returns the &#x60;approvalSettings&#x60; key if the [Flag Approvals](https://docs.launchdarkly.com/home/feature-workflows/approvals) feature is enabled. Only the &#x60;canReviewOwnRequest&#x60;, &#x60;canApplyDeclinedChanges&#x60;, &#x60;minNumApprovals&#x60;, &#x60;required&#x60; and &#x60;requiredApprovalTagsfields&#x60; are editable. If you try to patch the environment by setting both &#x60;required&#x60; and &#x60;requiredApprovalTags&#x60;, the request fails and an error appears. You can specify either required approvals for all flags in an environment or those with specific tags, but not both. Only customers on a Pro or Enterprise plan can require approval for flag updates by either mechanism.
171171

172172
### Example
173173
```java

docs/MemberTeamsPostInput.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
# MemberTeamsPostInput
4+
5+
6+
## Properties
7+
8+
Name | Type | Description | Notes
9+
------------ | ------------- | ------------- | -------------
10+
**teamKeys** | **List&lt;String&gt;** | List of team keys |
11+
12+
13+

docs/MetricsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ Name | Type | Description | Notes
237237
238238
Update metric
239239

240-
Patch a environment by key.
240+
Patch a metric by key.
241241

242242
### Example
243243
```java

docs/StatementPost.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
10-
**resources** | **List&lt;String&gt;** | Resource specifier strings |
10+
**resources** | **List&lt;String&gt;** | Resource specifier strings | [optional]
1111
**notResources** | **List&lt;String&gt;** | Targeted resources are the resources NOT in this list. The \&quot;resources\&quot; field must be empty to use this field. | [optional]
12-
**actions** | **List&lt;String&gt;** | Actions to perform on a resource |
12+
**actions** | **List&lt;String&gt;** | Actions to perform on a resource | [optional]
1313
**notActions** | **List&lt;String&gt;** | Targeted actions are the actions NOT in this list. The \&quot;actions\&quot; field must be empty to use this field. | [optional]
1414
**effect** | **String** | |
1515

0 commit comments

Comments
 (0)