Skip to content

Commit b4a998a

Browse files
author
LaunchDarklyCI
committed
Version 3.7.0 automatically generated from ld-openapi@efa472a.
1 parent ad05673 commit b4a998a

File tree

252 files changed

+870
-566
lines changed

Some content is hidden

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

252 files changed

+870
-566
lines changed

README.md

Lines changed: 195 additions & 193 deletions
Large diffs are not rendered by default.

docs/EnvironmentsApi.md

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Method | HTTP request | Description
88
[**getEnvironment**](EnvironmentsApi.md#getEnvironment) | **GET** /projects/{projectKey}/environments/{environmentKey} | Get an environment given a project and key.
99
[**patchEnvironment**](EnvironmentsApi.md#patchEnvironment) | **PATCH** /projects/{projectKey}/environments/{environmentKey} | Modify an environment by ID.
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.
11+
[**resetEnvironmentMobileKey**](EnvironmentsApi.md#resetEnvironmentMobileKey) | **POST** /projects/{projectKey}/environments/{environmentKey}/mobileKey | Reset an environment's mobile key with an optional expiry time for the old key.
12+
[**resetEnvironmentSDKKey**](EnvironmentsApi.md#resetEnvironmentSDKKey) | **POST** /projects/{projectKey}/environments/{environmentKey}/apiKey | Reset an environment's SDK key with an optional expiry time for the old key.
1113

1214

1315
<a name="deleteEnvironment"></a>
@@ -229,3 +231,119 @@ Name | Type | Description | Notes
229231
- **Content-Type**: application/json
230232
- **Accept**: application/json
231233

234+
<a name="resetEnvironmentMobileKey"></a>
235+
# **resetEnvironmentMobileKey**
236+
> Environment resetEnvironmentMobileKey(projectKey, environmentKey, , opts)
237+
238+
Reset an environment&#39;s mobile key with an optional expiry time for the old key.
239+
240+
### Example
241+
```javascript
242+
var LaunchDarklyApi = require('launchdarkly-api');
243+
var defaultClient = LaunchDarklyApi.ApiClient.instance;
244+
245+
// Configure API key authorization: Token
246+
var Token = defaultClient.authentications['Token'];
247+
Token.apiKey = 'YOUR API KEY';
248+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
249+
//Token.apiKeyPrefix = 'Token';
250+
251+
var apiInstance = new LaunchDarklyApi.EnvironmentsApi();
252+
253+
var projectKey = "projectKey_example"; // String | The project key, used to tie the flags together under one project so they can be managed together.
254+
255+
var environmentKey = "environmentKey_example"; // String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
256+
257+
var opts = {
258+
'expiry': 789 // Number | An expiration time for the old environment SDK or mobile key, expressed as a Unix epoch time in milliseconds. By default, the key will expire immediately
259+
};
260+
261+
var callback = function(error, data, response) {
262+
if (error) {
263+
console.error(error);
264+
} else {
265+
console.log('API called successfully. Returned data: ' + data);
266+
}
267+
};
268+
apiInstance.resetEnvironmentMobileKey(projectKey, environmentKey, , opts, callback);
269+
```
270+
271+
### Parameters
272+
273+
Name | Type | Description | Notes
274+
------------- | ------------- | ------------- | -------------
275+
**projectKey** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
276+
**environmentKey** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
277+
**expiry** | **Number**| An expiration time for the old environment SDK or mobile key, expressed as a Unix epoch time in milliseconds. By default, the key will expire immediately | [optional]
278+
279+
### Return type
280+
281+
[**Environment**](Environment.md)
282+
283+
### Authorization
284+
285+
[Token](../README.md#Token)
286+
287+
### HTTP request headers
288+
289+
- **Content-Type**: application/json
290+
- **Accept**: application/json
291+
292+
<a name="resetEnvironmentSDKKey"></a>
293+
# **resetEnvironmentSDKKey**
294+
> Environment resetEnvironmentSDKKey(projectKey, environmentKey, , opts)
295+
296+
Reset an environment&#39;s SDK key with an optional expiry time for the old key.
297+
298+
### Example
299+
```javascript
300+
var LaunchDarklyApi = require('launchdarkly-api');
301+
var defaultClient = LaunchDarklyApi.ApiClient.instance;
302+
303+
// Configure API key authorization: Token
304+
var Token = defaultClient.authentications['Token'];
305+
Token.apiKey = 'YOUR API KEY';
306+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
307+
//Token.apiKeyPrefix = 'Token';
308+
309+
var apiInstance = new LaunchDarklyApi.EnvironmentsApi();
310+
311+
var projectKey = "projectKey_example"; // String | The project key, used to tie the flags together under one project so they can be managed together.
312+
313+
var environmentKey = "environmentKey_example"; // String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
314+
315+
var opts = {
316+
'expiry': 789 // Number | An expiration time for the old environment SDK or mobile key, expressed as a Unix epoch time in milliseconds. By default, the key will expire immediately
317+
};
318+
319+
var callback = function(error, data, response) {
320+
if (error) {
321+
console.error(error);
322+
} else {
323+
console.log('API called successfully. Returned data: ' + data);
324+
}
325+
};
326+
apiInstance.resetEnvironmentSDKKey(projectKey, environmentKey, , opts, callback);
327+
```
328+
329+
### Parameters
330+
331+
Name | Type | Description | Notes
332+
------------- | ------------- | ------------- | -------------
333+
**projectKey** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
334+
**environmentKey** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
335+
**expiry** | **Number**| An expiration time for the old environment SDK or mobile key, expressed as a Unix epoch time in milliseconds. By default, the key will expire immediately | [optional]
336+
337+
### Return type
338+
339+
[**Environment**](Environment.md)
340+
341+
### Authorization
342+
343+
[Token](../README.md#Token)
344+
345+
### HTTP request headers
346+
347+
- **Content-Type**: application/json
348+
- **Accept**: application/json
349+

openapi.yml

Lines changed: 49 additions & 1 deletion
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: 3.6.0
13+
version: 3.7.0
1414
host: app.launchdarkly.com
1515
basePath: /api/v2
1616
schemes:
@@ -179,6 +179,44 @@ paths:
179179
$ref: '#/responses/Standard404'
180180
tags:
181181
- Environments
182+
'/projects/{projectKey}/environments/{environmentKey}/apiKey':
183+
post:
184+
summary: >-
185+
Reset an environment's SDK key with an optional expiry time for the old
186+
key.
187+
operationId: resetEnvironmentSDKKey
188+
parameters:
189+
- $ref: '#/parameters/ProjectKey'
190+
- $ref: '#/parameters/EnvironmentKey'
191+
- $ref: '#/parameters/EnvironmentKeyExpiry'
192+
responses:
193+
'200':
194+
$ref: '#/responses/Environment2xx'
195+
'404':
196+
$ref: '#/responses/Standard404'
197+
'409':
198+
$ref: '#/responses/Standard409'
199+
tags:
200+
- Environments
201+
'/projects/{projectKey}/environments/{environmentKey}/mobileKey':
202+
post:
203+
summary: >-
204+
Reset an environment's mobile key with an optional expiry time for the
205+
old key.
206+
operationId: resetEnvironmentMobileKey
207+
parameters:
208+
- $ref: '#/parameters/ProjectKey'
209+
- $ref: '#/parameters/EnvironmentKey'
210+
- $ref: '#/parameters/EnvironmentKeyExpiry'
211+
responses:
212+
'200':
213+
$ref: '#/responses/Environment2xx'
214+
'404':
215+
$ref: '#/responses/Standard404'
216+
'409':
217+
$ref: '#/responses/Standard409'
218+
tags:
219+
- Environments
182220
'/flags/{projectKey}':
183221
get:
184222
summary: Get a list of all features in the given project.
@@ -3473,6 +3511,16 @@ parameters:
34733511
items:
34743512
type: string
34753513
collectionFormat: multi
3514+
EnvironmentKeyExpiry:
3515+
name: expiry
3516+
in: query
3517+
required: false
3518+
type: integer
3519+
format: int64
3520+
description: >-
3521+
An expiration time for the old environment SDK or mobile key, expressed as
3522+
a Unix epoch time in milliseconds. By default, the key will expire
3523+
immediately
34763524
SummaryQuery:
34773525
name: summary
34783526
in: query

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",
3-
"version": "3.6.0",
3+
"version": "3.7.0",
44
"description": "Build_custom_integrations_with_the_LaunchDarkly_REST_API",
55
"license": "Apache 2.0",
66
"main": "src/index.js",

src/ApiClient.js

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: 3.6.0
5+
* OpenAPI spec version: 3.7.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by the swagger code generator program.
@@ -33,7 +33,7 @@
3333

3434
/**
3535
* @module ApiClient
36-
* @version 3.6.0
36+
* @version 3.7.0
3737
*/
3838

3939
/**

src/api/AccessTokensApi.js

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: 3.6.0
5+
* OpenAPI spec version: 3.7.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by the swagger code generator program.
@@ -34,7 +34,7 @@
3434
/**
3535
* AccessTokens service.
3636
* @module api/AccessTokensApi
37-
* @version 3.6.0
37+
* @version 3.7.0
3838
*/
3939

4040
/**

src/api/AuditLogApi.js

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: 3.6.0
5+
* OpenAPI spec version: 3.7.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by the swagger code generator program.
@@ -34,7 +34,7 @@
3434
/**
3535
* AuditLog service.
3636
* @module api/AuditLogApi
37-
* @version 3.6.0
37+
* @version 3.7.0
3838
*/
3939

4040
/**

src/api/CustomRolesApi.js

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: 3.6.0
5+
* OpenAPI spec version: 3.7.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by the swagger code generator program.
@@ -34,7 +34,7 @@
3434
/**
3535
* CustomRoles service.
3636
* @module api/CustomRolesApi
37-
* @version 3.6.0
37+
* @version 3.7.0
3838
*/
3939

4040
/**

src/api/CustomerMetricsApi.js

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: 3.6.0
5+
* OpenAPI spec version: 3.7.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by the swagger code generator program.
@@ -34,7 +34,7 @@
3434
/**
3535
* CustomerMetrics service.
3636
* @module api/CustomerMetricsApi
37-
* @version 3.6.0
37+
* @version 3.7.0
3838
*/
3939

4040
/**

src/api/DataExportDestinationsApi.js

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: 3.6.0
5+
* OpenAPI spec version: 3.7.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by the swagger code generator program.
@@ -34,7 +34,7 @@
3434
/**
3535
* DataExportDestinations service.
3636
* @module api/DataExportDestinationsApi
37-
* @version 3.6.0
37+
* @version 3.7.0
3838
*/
3939

4040
/**

0 commit comments

Comments
 (0)