Skip to content

Commit 8e787bd

Browse files
author
LaunchDarklyCI
committed
Version 3.7.0 automatically generated from ld-openapi@efa472a.
1 parent 9bb69aa commit 8e787bd

File tree

255 files changed

+655
-259
lines changed

Some content is hidden

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

255 files changed

+655
-259
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Build custom integrations with the LaunchDarkly REST API
88

99
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
1010

11-
- API version: 3.6.0
12-
- Package version: 3.6.0
11+
- API version: 3.7.0
12+
- Package version: 3.7.0
1313
- Build package: io.swagger.codegen.languages.PythonClientCodegen
1414
For more information, please visit [https://support.launchdarkly.com](https://support.launchdarkly.com)
1515

@@ -113,6 +113,8 @@ Class | Method | HTTP request | Description
113113
*EnvironmentsApi* | [**get_environment**](docs/EnvironmentsApi.md#get_environment) | **GET** /projects/{projectKey}/environments/{environmentKey} | Get an environment given a project and key.
114114
*EnvironmentsApi* | [**patch_environment**](docs/EnvironmentsApi.md#patch_environment) | **PATCH** /projects/{projectKey}/environments/{environmentKey} | Modify an environment by ID.
115115
*EnvironmentsApi* | [**post_environment**](docs/EnvironmentsApi.md#post_environment) | **POST** /projects/{projectKey}/environments | Create a new environment in a specified project with a given name, key, and swatch color.
116+
*EnvironmentsApi* | [**reset_environment_mobile_key**](docs/EnvironmentsApi.md#reset_environment_mobile_key) | **POST** /projects/{projectKey}/environments/{environmentKey}/mobileKey | Reset an environment's mobile key with an optional expiry time for the old key.
117+
*EnvironmentsApi* | [**reset_environment_sdk_key**](docs/EnvironmentsApi.md#reset_environment_sdk_key) | **POST** /projects/{projectKey}/environments/{environmentKey}/apiKey | Reset an environment's SDK key with an optional expiry time for the old key.
116118
*FeatureFlagsApi* | [**copy_feature_flag**](docs/FeatureFlagsApi.md#copy_feature_flag) | **POST** /flags/{projectKey}/{featureFlagKey}/copy | Copies the feature flag configuration from one environment to the same feature flag in another environment.
117119
*FeatureFlagsApi* | [**delete_feature_flag**](docs/FeatureFlagsApi.md#delete_feature_flag) | **DELETE** /flags/{projectKey}/{featureFlagKey} | Delete a feature flag in all environments. Be careful-- only delete feature flags that are no longer being used by your application.
118120
*FeatureFlagsApi* | [**get_expiring_user_targets**](docs/FeatureFlagsApi.md#get_expiring_user_targets) | **GET** /flags/{projectKey}/{featureFlagKey}/expiring-user-targets/{environmentKey} | Get expiring user targets for feature flag

docs/EnvironmentsApi.md

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Method | HTTP request | Description
88
[**get_environment**](EnvironmentsApi.md#get_environment) | **GET** /projects/{projectKey}/environments/{environmentKey} | Get an environment given a project and key.
99
[**patch_environment**](EnvironmentsApi.md#patch_environment) | **PATCH** /projects/{projectKey}/environments/{environmentKey} | Modify an environment by ID.
1010
[**post_environment**](EnvironmentsApi.md#post_environment) | **POST** /projects/{projectKey}/environments | Create a new environment in a specified project with a given name, key, and swatch color.
11+
[**reset_environment_mobile_key**](EnvironmentsApi.md#reset_environment_mobile_key) | **POST** /projects/{projectKey}/environments/{environmentKey}/mobileKey | Reset an environment's mobile key with an optional expiry time for the old key.
12+
[**reset_environment_sdk_key**](EnvironmentsApi.md#reset_environment_sdk_key) | **POST** /projects/{projectKey}/environments/{environmentKey}/apiKey | Reset an environment's SDK key with an optional expiry time for the old key.
1113

1214

1315
# **delete_environment**
@@ -227,3 +229,115 @@ Name | Type | Description | Notes
227229

228230
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
229231

232+
# **reset_environment_mobile_key**
233+
> Environment reset_environment_mobile_key(project_key, environment_key, expiry=expiry)
234+
235+
Reset an environment's mobile key with an optional expiry time for the old key.
236+
237+
### Example
238+
```python
239+
from __future__ import print_function
240+
import time
241+
import launchdarkly_api
242+
from launchdarkly_api.rest import ApiException
243+
from pprint import pprint
244+
245+
# Configure API key authorization: Token
246+
configuration = launchdarkly_api.Configuration()
247+
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
248+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
249+
# configuration.api_key_prefix['Authorization'] = 'Bearer'
250+
251+
# create an instance of the API class
252+
api_instance = launchdarkly_api.EnvironmentsApi(launchdarkly_api.ApiClient(configuration))
253+
project_key = 'project_key_example' # str | The project key, used to tie the flags together under one project so they can be managed together.
254+
environment_key = 'environment_key_example' # str | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
255+
expiry = 789 # int | 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)
256+
257+
try:
258+
# Reset an environment's mobile key with an optional expiry time for the old key.
259+
api_response = api_instance.reset_environment_mobile_key(project_key, environment_key, expiry=expiry)
260+
pprint(api_response)
261+
except ApiException as e:
262+
print("Exception when calling EnvironmentsApi->reset_environment_mobile_key: %s\n" % e)
263+
```
264+
265+
### Parameters
266+
267+
Name | Type | Description | Notes
268+
------------- | ------------- | ------------- | -------------
269+
**project_key** | **str**| The project key, used to tie the flags together under one project so they can be managed together. |
270+
**environment_key** | **str**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
271+
**expiry** | **int**| 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]
272+
273+
### Return type
274+
275+
[**Environment**](Environment.md)
276+
277+
### Authorization
278+
279+
[Token](../README.md#Token)
280+
281+
### HTTP request headers
282+
283+
- **Content-Type**: application/json
284+
- **Accept**: application/json
285+
286+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
287+
288+
# **reset_environment_sdk_key**
289+
> Environment reset_environment_sdk_key(project_key, environment_key, expiry=expiry)
290+
291+
Reset an environment's SDK key with an optional expiry time for the old key.
292+
293+
### Example
294+
```python
295+
from __future__ import print_function
296+
import time
297+
import launchdarkly_api
298+
from launchdarkly_api.rest import ApiException
299+
from pprint import pprint
300+
301+
# Configure API key authorization: Token
302+
configuration = launchdarkly_api.Configuration()
303+
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
304+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
305+
# configuration.api_key_prefix['Authorization'] = 'Bearer'
306+
307+
# create an instance of the API class
308+
api_instance = launchdarkly_api.EnvironmentsApi(launchdarkly_api.ApiClient(configuration))
309+
project_key = 'project_key_example' # str | The project key, used to tie the flags together under one project so they can be managed together.
310+
environment_key = 'environment_key_example' # str | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
311+
expiry = 789 # int | 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)
312+
313+
try:
314+
# Reset an environment's SDK key with an optional expiry time for the old key.
315+
api_response = api_instance.reset_environment_sdk_key(project_key, environment_key, expiry=expiry)
316+
pprint(api_response)
317+
except ApiException as e:
318+
print("Exception when calling EnvironmentsApi->reset_environment_sdk_key: %s\n" % e)
319+
```
320+
321+
### Parameters
322+
323+
Name | Type | Description | Notes
324+
------------- | ------------- | ------------- | -------------
325+
**project_key** | **str**| The project key, used to tie the flags together under one project so they can be managed together. |
326+
**environment_key** | **str**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
327+
**expiry** | **int**| 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]
328+
329+
### Return type
330+
331+
[**Environment**](Environment.md)
332+
333+
### Authorization
334+
335+
[Token](../README.md#Token)
336+
337+
### HTTP request headers
338+
339+
- **Content-Type**: application/json
340+
- **Accept**: application/json
341+
342+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
343+

launchdarkly_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
Build custom integrations with the LaunchDarkly REST API # noqa: E501
99
10-
OpenAPI spec version: 3.6.0
10+
OpenAPI spec version: 3.7.0
1111
1212
Generated by: https://github.com/swagger-api/swagger-codegen.git
1313
"""

launchdarkly_api/api/access_tokens_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Build custom integrations with the LaunchDarkly REST API # noqa: E501
77
8-
OpenAPI spec version: 3.6.0
8+
OpenAPI spec version: 3.7.0
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

launchdarkly_api/api/audit_log_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Build custom integrations with the LaunchDarkly REST API # noqa: E501
77
8-
OpenAPI spec version: 3.6.0
8+
OpenAPI spec version: 3.7.0
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

launchdarkly_api/api/custom_roles_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Build custom integrations with the LaunchDarkly REST API # noqa: E501
77
8-
OpenAPI spec version: 3.6.0
8+
OpenAPI spec version: 3.7.0
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

launchdarkly_api/api/customer_metrics_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Build custom integrations with the LaunchDarkly REST API # noqa: E501
77
8-
OpenAPI spec version: 3.6.0
8+
OpenAPI spec version: 3.7.0
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

launchdarkly_api/api/data_export_destinations_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Build custom integrations with the LaunchDarkly REST API # noqa: E501
77
8-
OpenAPI spec version: 3.6.0
8+
OpenAPI spec version: 3.7.0
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

0 commit comments

Comments
 (0)