Skip to content

Commit ebe9067

Browse files
author
LaunchDarklyReleaseBot
committed
Version 15.1.0 automatically generated from ld-openapi.
1 parent 800bbf1 commit ebe9067

39 files changed

+916
-51
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ docs/RelayAutoConfigPost.md
354354
docs/RelayAutoConfigRep.md
355355
docs/RelayProxyConfigurationsApi.md
356356
docs/Release.md
357+
docs/ReleaseAudience.md
357358
docs/ReleasePhase.md
358359
docs/ReleasePipeline.md
359360
docs/ReleasePipelineCollection.md
@@ -844,6 +845,7 @@ launchdarkly_api/model/relay_auto_config_collection_rep.py
844845
launchdarkly_api/model/relay_auto_config_post.py
845846
launchdarkly_api/model/relay_auto_config_rep.py
846847
launchdarkly_api/model/release.py
848+
launchdarkly_api/model/release_audience.py
847849
launchdarkly_api/model/release_phase.py
848850
launchdarkly_api/model/release_pipeline.py
849851
launchdarkly_api/model/release_pipeline_collection.py
@@ -1306,6 +1308,7 @@ test/test_relay_auto_config_post.py
13061308
test/test_relay_auto_config_rep.py
13071309
test/test_relay_proxy_configurations_api.py
13081310
test/test_release.py
1311+
test/test_release_audience.py
13091312
test/test_release_phase.py
13101313
test/test_release_pipeline.py
13111314
test/test_release_pipeline_collection.py

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ If you would like to upgrade your integration to use a new API version, you can
393393
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
394394

395395
- API version: 2.0
396-
- Package version: 15.0.0
396+
- Package version: 15.1.0
397397
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
398398
For more information, please visit [https://support.launchdarkly.com](https://support.launchdarkly.com)
399399

@@ -501,13 +501,15 @@ Class | Method | HTTP request | Description
501501
*AccountMembersApi* | [**post_member_teams**](docs/AccountMembersApi.md#post_member_teams) | **POST** /api/v2/members/{id}/teams | Add a member to teams
502502
*AccountMembersApi* | [**post_members**](docs/AccountMembersApi.md#post_members) | **POST** /api/v2/members | Invite new members
503503
*AccountMembersBetaApi* | [**patch_members**](docs/AccountMembersBetaApi.md#patch_members) | **PATCH** /api/v2/members | Modify account members
504+
*AccountUsageBetaApi* | [**get_data_export_events_usage**](docs/AccountUsageBetaApi.md#get_data_export_events_usage) | **GET** /api/v2/usage/data-export-events | Get data export events usage
504505
*AccountUsageBetaApi* | [**get_evaluations_usage**](docs/AccountUsageBetaApi.md#get_evaluations_usage) | **GET** /api/v2/usage/evaluations/{projectKey}/{environmentKey}/{featureFlagKey} | Get evaluations usage
505506
*AccountUsageBetaApi* | [**get_events_usage**](docs/AccountUsageBetaApi.md#get_events_usage) | **GET** /api/v2/usage/events/{type} | Get events usage
506507
*AccountUsageBetaApi* | [**get_experimentation_keys_usage**](docs/AccountUsageBetaApi.md#get_experimentation_keys_usage) | **GET** /api/v2/usage/experimentation-keys | Get experimentation keys usage
507508
*AccountUsageBetaApi* | [**get_experimentation_units_usage**](docs/AccountUsageBetaApi.md#get_experimentation_units_usage) | **GET** /api/v2/usage/experimentation-units | Get experimentation units usage
508509
*AccountUsageBetaApi* | [**get_mau_sdks_by_type**](docs/AccountUsageBetaApi.md#get_mau_sdks_by_type) | **GET** /api/v2/usage/mau/sdks | Get MAU SDKs by type
509510
*AccountUsageBetaApi* | [**get_mau_usage**](docs/AccountUsageBetaApi.md#get_mau_usage) | **GET** /api/v2/usage/mau | Get MAU usage
510511
*AccountUsageBetaApi* | [**get_mau_usage_by_category**](docs/AccountUsageBetaApi.md#get_mau_usage_by_category) | **GET** /api/v2/usage/mau/bycategory | Get MAU usage by category
512+
*AccountUsageBetaApi* | [**get_service_connection_usage**](docs/AccountUsageBetaApi.md#get_service_connection_usage) | **GET** /api/v2/usage/service-connections | Get service connection usage
511513
*AccountUsageBetaApi* | [**get_stream_usage**](docs/AccountUsageBetaApi.md#get_stream_usage) | **GET** /api/v2/usage/streams/{source} | Get stream usage
512514
*AccountUsageBetaApi* | [**get_stream_usage_by_sdk_version**](docs/AccountUsageBetaApi.md#get_stream_usage_by_sdk_version) | **GET** /api/v2/usage/streams/{source}/bysdkversion | Get stream usage by SDK version
513515
*AccountUsageBetaApi* | [**get_stream_usage_sdkversion**](docs/AccountUsageBetaApi.md#get_stream_usage_sdkversion) | **GET** /api/v2/usage/streams/{source}/sdkversions | Get stream usage SDK versions
@@ -616,7 +618,7 @@ Class | Method | HTTP request | Description
616618
*InsightsChartsBetaApi* | [**get_deployment_frequency_chart**](docs/InsightsChartsBetaApi.md#get_deployment_frequency_chart) | **GET** /api/v2/engineering-insights/charts/deployments/frequency | Get deployment frequency chart data
617619
*InsightsChartsBetaApi* | [**get_flag_status_chart**](docs/InsightsChartsBetaApi.md#get_flag_status_chart) | **GET** /api/v2/engineering-insights/charts/flags/status | Get flag status chart data
618620
*InsightsChartsBetaApi* | [**get_lead_time_chart**](docs/InsightsChartsBetaApi.md#get_lead_time_chart) | **GET** /api/v2/engineering-insights/charts/lead-time | Get lead time chart data
619-
*InsightsChartsBetaApi* | [**get_release_frequency_chart**](docs/InsightsChartsBetaApi.md#get_release_frequency_chart) | **GET** /api/v2/engineering-insights/charts/releases/frequency | Get replease frequency chart data
621+
*InsightsChartsBetaApi* | [**get_release_frequency_chart**](docs/InsightsChartsBetaApi.md#get_release_frequency_chart) | **GET** /api/v2/engineering-insights/charts/releases/frequency | Get release frequency chart data
620622
*InsightsChartsBetaApi* | [**get_stale_flags_chart**](docs/InsightsChartsBetaApi.md#get_stale_flags_chart) | **GET** /api/v2/engineering-insights/charts/flags/stale | Get stale flags chart data
621623
*InsightsDeploymentsBetaApi* | [**create_deployment_event**](docs/InsightsDeploymentsBetaApi.md#create_deployment_event) | **POST** /api/v2/engineering-insights/deployment-events | Create deployment event
622624
*InsightsDeploymentsBetaApi* | [**get_deployment**](docs/InsightsDeploymentsBetaApi.md#get_deployment) | **GET** /api/v2/engineering-insights/deployments/{deploymentID} | Get deployment
@@ -1066,6 +1068,7 @@ Class | Method | HTTP request | Description
10661068
- [RelayAutoConfigPost](docs/RelayAutoConfigPost.md)
10671069
- [RelayAutoConfigRep](docs/RelayAutoConfigRep.md)
10681070
- [Release](docs/Release.md)
1071+
- [ReleaseAudience](docs/ReleaseAudience.md)
10691072
- [ReleasePhase](docs/ReleasePhase.md)
10701073
- [ReleasePipeline](docs/ReleasePipeline.md)
10711074
- [ReleasePipelineCollection](docs/ReleasePipelineCollection.md)

docs/AccountUsageBetaApi.md

Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,111 @@ All URIs are relative to *https://app.launchdarkly.com*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7+
[**get_data_export_events_usage**](AccountUsageBetaApi.md#get_data_export_events_usage) | **GET** /api/v2/usage/data-export-events | Get data export events usage
78
[**get_evaluations_usage**](AccountUsageBetaApi.md#get_evaluations_usage) | **GET** /api/v2/usage/evaluations/{projectKey}/{environmentKey}/{featureFlagKey} | Get evaluations usage
89
[**get_events_usage**](AccountUsageBetaApi.md#get_events_usage) | **GET** /api/v2/usage/events/{type} | Get events usage
910
[**get_experimentation_keys_usage**](AccountUsageBetaApi.md#get_experimentation_keys_usage) | **GET** /api/v2/usage/experimentation-keys | Get experimentation keys usage
1011
[**get_experimentation_units_usage**](AccountUsageBetaApi.md#get_experimentation_units_usage) | **GET** /api/v2/usage/experimentation-units | Get experimentation units usage
1112
[**get_mau_sdks_by_type**](AccountUsageBetaApi.md#get_mau_sdks_by_type) | **GET** /api/v2/usage/mau/sdks | Get MAU SDKs by type
1213
[**get_mau_usage**](AccountUsageBetaApi.md#get_mau_usage) | **GET** /api/v2/usage/mau | Get MAU usage
1314
[**get_mau_usage_by_category**](AccountUsageBetaApi.md#get_mau_usage_by_category) | **GET** /api/v2/usage/mau/bycategory | Get MAU usage by category
15+
[**get_service_connection_usage**](AccountUsageBetaApi.md#get_service_connection_usage) | **GET** /api/v2/usage/service-connections | Get service connection usage
1416
[**get_stream_usage**](AccountUsageBetaApi.md#get_stream_usage) | **GET** /api/v2/usage/streams/{source} | Get stream usage
1517
[**get_stream_usage_by_sdk_version**](AccountUsageBetaApi.md#get_stream_usage_by_sdk_version) | **GET** /api/v2/usage/streams/{source}/bysdkversion | Get stream usage by SDK version
1618
[**get_stream_usage_sdkversion**](AccountUsageBetaApi.md#get_stream_usage_sdkversion) | **GET** /api/v2/usage/streams/{source}/sdkversions | Get stream usage SDK versions
1719

1820

21+
# **get_data_export_events_usage**
22+
> SeriesIntervalsRep get_data_export_events_usage()
23+
24+
Get data export events usage
25+
26+
Get a time-series array of the number of monthly data export events from your account. The granularity is always daily, with a maximum of 31 days.
27+
28+
### Example
29+
30+
* Api Key Authentication (ApiKey):
31+
32+
```python
33+
import time
34+
import launchdarkly_api
35+
from launchdarkly_api.api import account_usage_beta_api
36+
from launchdarkly_api.model.invalid_request_error_rep import InvalidRequestErrorRep
37+
from launchdarkly_api.model.forbidden_error_rep import ForbiddenErrorRep
38+
from launchdarkly_api.model.status_service_unavailable import StatusServiceUnavailable
39+
from launchdarkly_api.model.rate_limited_error_rep import RateLimitedErrorRep
40+
from launchdarkly_api.model.series_intervals_rep import SeriesIntervalsRep
41+
from launchdarkly_api.model.unauthorized_error_rep import UnauthorizedErrorRep
42+
from pprint import pprint
43+
# Defining the host is optional and defaults to https://app.launchdarkly.com
44+
# See configuration.py for a list of all supported configuration parameters.
45+
configuration = launchdarkly_api.Configuration(
46+
host = "https://app.launchdarkly.com"
47+
)
48+
49+
# The client must configure the authentication and authorization parameters
50+
# in accordance with the API server security policy.
51+
# Examples for each auth method are provided below, use the example that
52+
# satisfies your auth use case.
53+
54+
# Configure API key authorization: ApiKey
55+
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
56+
57+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
58+
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
59+
60+
# Enter a context with an instance of the API client
61+
with launchdarkly_api.ApiClient(configuration) as api_client:
62+
# Create an instance of the API class
63+
api_instance = account_usage_beta_api.AccountUsageBetaApi(api_client)
64+
_from = "from_example" # str | The series of data returned starts from this timestamp (Unix seconds). Defaults to the beginning of the current month. (optional)
65+
to = "to_example" # str | The series of data returned ends at this timestamp (Unix seconds). Defaults to the current time. (optional)
66+
67+
# example passing only required values which don't have defaults set
68+
# and optional values
69+
try:
70+
# Get data export events usage
71+
api_response = api_instance.get_data_export_events_usage(_from=_from, to=to)
72+
pprint(api_response)
73+
except launchdarkly_api.ApiException as e:
74+
print("Exception when calling AccountUsageBetaApi->get_data_export_events_usage: %s\n" % e)
75+
```
76+
77+
78+
### Parameters
79+
80+
Name | Type | Description | Notes
81+
------------- | ------------- | ------------- | -------------
82+
**_from** | **str**| The series of data returned starts from this timestamp (Unix seconds). Defaults to the beginning of the current month. | [optional]
83+
**to** | **str**| The series of data returned ends at this timestamp (Unix seconds). Defaults to the current time. | [optional]
84+
85+
### Return type
86+
87+
[**SeriesIntervalsRep**](SeriesIntervalsRep.md)
88+
89+
### Authorization
90+
91+
[ApiKey](../README.md#ApiKey)
92+
93+
### HTTP request headers
94+
95+
- **Content-Type**: Not defined
96+
- **Accept**: application/json
97+
98+
99+
### HTTP response details
100+
101+
| Status code | Description | Response headers |
102+
|-------------|-------------|------------------|
103+
**200** | Usage response | - |
104+
**400** | Invalid request | - |
105+
**401** | Invalid access token | - |
106+
**403** | Forbidden | - |
107+
**429** | Rate limited | - |
108+
**503** | Service unavailable | - |
109+
110+
[[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)
111+
19112
# **get_evaluations_usage**
20113
> SeriesListRep get_evaluations_usage(project_key, environment_key, feature_flag_key)
21114
@@ -689,6 +782,97 @@ Name | Type | Description | Notes
689782

690783
[[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)
691784

785+
# **get_service_connection_usage**
786+
> SeriesIntervalsRep get_service_connection_usage()
787+
788+
Get service connection usage
789+
790+
Get a time-series array of the number of monthly service connections from your account. The granularity is always daily, with a maximum of 31 days.
791+
792+
### Example
793+
794+
* Api Key Authentication (ApiKey):
795+
796+
```python
797+
import time
798+
import launchdarkly_api
799+
from launchdarkly_api.api import account_usage_beta_api
800+
from launchdarkly_api.model.invalid_request_error_rep import InvalidRequestErrorRep
801+
from launchdarkly_api.model.forbidden_error_rep import ForbiddenErrorRep
802+
from launchdarkly_api.model.status_service_unavailable import StatusServiceUnavailable
803+
from launchdarkly_api.model.rate_limited_error_rep import RateLimitedErrorRep
804+
from launchdarkly_api.model.series_intervals_rep import SeriesIntervalsRep
805+
from launchdarkly_api.model.unauthorized_error_rep import UnauthorizedErrorRep
806+
from pprint import pprint
807+
# Defining the host is optional and defaults to https://app.launchdarkly.com
808+
# See configuration.py for a list of all supported configuration parameters.
809+
configuration = launchdarkly_api.Configuration(
810+
host = "https://app.launchdarkly.com"
811+
)
812+
813+
# The client must configure the authentication and authorization parameters
814+
# in accordance with the API server security policy.
815+
# Examples for each auth method are provided below, use the example that
816+
# satisfies your auth use case.
817+
818+
# Configure API key authorization: ApiKey
819+
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
820+
821+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
822+
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
823+
824+
# Enter a context with an instance of the API client
825+
with launchdarkly_api.ApiClient(configuration) as api_client:
826+
# Create an instance of the API class
827+
api_instance = account_usage_beta_api.AccountUsageBetaApi(api_client)
828+
_from = "from_example" # str | The series of data returned starts from this timestamp (Unix seconds). Defaults to the beginning of the current month. (optional)
829+
to = "to_example" # str | The series of data returned ends at this timestamp (Unix seconds). Defaults to the current time. (optional)
830+
831+
# example passing only required values which don't have defaults set
832+
# and optional values
833+
try:
834+
# Get service connection usage
835+
api_response = api_instance.get_service_connection_usage(_from=_from, to=to)
836+
pprint(api_response)
837+
except launchdarkly_api.ApiException as e:
838+
print("Exception when calling AccountUsageBetaApi->get_service_connection_usage: %s\n" % e)
839+
```
840+
841+
842+
### Parameters
843+
844+
Name | Type | Description | Notes
845+
------------- | ------------- | ------------- | -------------
846+
**_from** | **str**| The series of data returned starts from this timestamp (Unix seconds). Defaults to the beginning of the current month. | [optional]
847+
**to** | **str**| The series of data returned ends at this timestamp (Unix seconds). Defaults to the current time. | [optional]
848+
849+
### Return type
850+
851+
[**SeriesIntervalsRep**](SeriesIntervalsRep.md)
852+
853+
### Authorization
854+
855+
[ApiKey](../README.md#ApiKey)
856+
857+
### HTTP request headers
858+
859+
- **Content-Type**: Not defined
860+
- **Accept**: application/json
861+
862+
863+
### HTTP response details
864+
865+
| Status code | Description | Response headers |
866+
|-------------|-------------|------------------|
867+
**200** | Usage response | - |
868+
**400** | Invalid request | - |
869+
**401** | Invalid access token | - |
870+
**403** | Forbidden | - |
871+
**429** | Rate limited | - |
872+
**503** | Service unavailable | - |
873+
874+
[[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)
875+
692876
# **get_stream_usage**
693877
> SeriesListRep get_stream_usage(source)
694878

docs/FeatureFlagBody.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Name | Type | Description | Notes
1616
**defaults** | [**Defaults**](Defaults.md) | | [optional]
1717
**purpose** | **str** | Purpose of the flag | [optional] if omitted the server will use the default value of "migration"
1818
**migration_settings** | [**MigrationSettingsPost**](MigrationSettingsPost.md) | | [optional]
19+
**maintainer_id** | **str** | The ID of the member who maintains this feature flag | [optional]
20+
**maintainer_team_key** | **str** | The key of the team that maintains this feature flag | [optional]
1921
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
2022

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

0 commit comments

Comments
 (0)