Skip to content

Commit a00f1b4

Browse files
author
LaunchDarklyReleaseBot
committed
Version 19.0.0 automatically generated from ld-openapi.
1 parent d090e12 commit a00f1b4

File tree

66 files changed

+1096
-97
lines changed

Some content is hidden

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

66 files changed

+1096
-97
lines changed

.openapi-generator/FILES

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ docs/FollowFlagsApi.md
299299
docs/FollowersPerFlag.md
300300
docs/ForbiddenErrorRep.md
301301
docs/FormVariable.md
302+
docs/GenerateTrustPolicyPostRep.md
302303
docs/GenerateWarehouseDestinationKeyPairPostRep.md
303304
docs/GetAnnouncementsPublic200Response.md
304305
docs/GuardedReleaseConfig.md
@@ -574,6 +575,8 @@ docs/TreatmentRep.md
574575
docs/TriggerPost.md
575576
docs/TriggerWorkflowCollectionRep.md
576577
docs/TriggerWorkflowRep.md
578+
docs/TrustPolicyDetails.md
579+
docs/TrustPolicyStatement.md
577580
docs/UnauthorizedErrorRep.md
578581
docs/UnlinkResourceSuccessResponse.md
579582
docs/UpdatePhaseStatusInput.md
@@ -975,6 +978,7 @@ launchdarkly_api/models/follow_flag_member.py
975978
launchdarkly_api/models/followers_per_flag.py
976979
launchdarkly_api/models/forbidden_error_rep.py
977980
launchdarkly_api/models/form_variable.py
981+
launchdarkly_api/models/generate_trust_policy_post_rep.py
978982
launchdarkly_api/models/generate_warehouse_destination_key_pair_post_rep.py
979983
launchdarkly_api/models/get_announcements_public200_response.py
980984
launchdarkly_api/models/guarded_release_config.py
@@ -1224,6 +1228,8 @@ launchdarkly_api/models/treatment_rep.py
12241228
launchdarkly_api/models/trigger_post.py
12251229
launchdarkly_api/models/trigger_workflow_collection_rep.py
12261230
launchdarkly_api/models/trigger_workflow_rep.py
1231+
launchdarkly_api/models/trust_policy_details.py
1232+
launchdarkly_api/models/trust_policy_statement.py
12271233
launchdarkly_api/models/unauthorized_error_rep.py
12281234
launchdarkly_api/models/unlink_resource_success_response.py
12291235
launchdarkly_api/models/update_phase_status_input.py
@@ -1585,6 +1591,7 @@ test/test_follow_flags_api.py
15851591
test/test_followers_per_flag.py
15861592
test/test_forbidden_error_rep.py
15871593
test/test_form_variable.py
1594+
test/test_generate_trust_policy_post_rep.py
15881595
test/test_generate_warehouse_destination_key_pair_post_rep.py
15891596
test/test_get_announcements_public200_response.py
15901597
test/test_guarded_release_config.py
@@ -1860,6 +1867,8 @@ test/test_treatment_rep.py
18601867
test/test_trigger_post.py
18611868
test/test_trigger_workflow_collection_rep.py
18621869
test/test_trigger_workflow_rep.py
1870+
test/test_trust_policy_details.py
1871+
test/test_trust_policy_statement.py
18631872
test/test_unauthorized_error_rep.py
18641873
test/test_unlink_resource_success_response.py
18651874
test/test_update_phase_status_input.py

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ To learn more about how EOL is determined, read LaunchDarkly's [End of Life (EOL
447447
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
448448

449449
- API version: 2.0
450-
- Package version: 18.1.0
450+
- Package version: 19.0.0
451451
- Generator version: 7.16.0
452452
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
453453
For more information, please visit [https://support.launchdarkly.com](https://support.launchdarkly.com)
@@ -661,6 +661,7 @@ Class | Method | HTTP request | Description
661661
*DataExportDestinationsApi* | [**get_destinations**](docs/DataExportDestinationsApi.md#get_destinations) | **GET** /api/v2/destinations | List destinations
662662
*DataExportDestinationsApi* | [**patch_destination**](docs/DataExportDestinationsApi.md#patch_destination) | **PATCH** /api/v2/destinations/{projectKey}/{environmentKey}/{id} | Update Data Export destination
663663
*DataExportDestinationsApi* | [**post_destination**](docs/DataExportDestinationsApi.md#post_destination) | **POST** /api/v2/destinations/{projectKey}/{environmentKey} | Create Data Export destination
664+
*DataExportDestinationsApi* | [**post_generate_trust_policy**](docs/DataExportDestinationsApi.md#post_generate_trust_policy) | **POST** /api/v2/destinations/projects/{projKey}/environments/{envKey}/generate-trust-policy | Generate trust policy
664665
*DataExportDestinationsApi* | [**post_generate_warehouse_destination_key_pair**](docs/DataExportDestinationsApi.md#post_generate_warehouse_destination_key_pair) | **POST** /api/v2/destinations/generate-warehouse-destination-key-pair | Generate Snowflake destination key pair
665666
*EnvironmentsApi* | [**delete_environment**](docs/EnvironmentsApi.md#delete_environment) | **DELETE** /api/v2/projects/{projectKey}/environments/{environmentKey} | Delete environment
666667
*EnvironmentsApi* | [**get_environment**](docs/EnvironmentsApi.md#get_environment) | **GET** /api/v2/projects/{projectKey}/environments/{environmentKey} | Get environment
@@ -1153,6 +1154,7 @@ Class | Method | HTTP request | Description
11531154
- [FollowersPerFlag](docs/FollowersPerFlag.md)
11541155
- [ForbiddenErrorRep](docs/ForbiddenErrorRep.md)
11551156
- [FormVariable](docs/FormVariable.md)
1157+
- [GenerateTrustPolicyPostRep](docs/GenerateTrustPolicyPostRep.md)
11561158
- [GenerateWarehouseDestinationKeyPairPostRep](docs/GenerateWarehouseDestinationKeyPairPostRep.md)
11571159
- [GetAnnouncementsPublic200Response](docs/GetAnnouncementsPublic200Response.md)
11581160
- [GuardedReleaseConfig](docs/GuardedReleaseConfig.md)
@@ -1402,6 +1404,8 @@ Class | Method | HTTP request | Description
14021404
- [TriggerPost](docs/TriggerPost.md)
14031405
- [TriggerWorkflowCollectionRep](docs/TriggerWorkflowCollectionRep.md)
14041406
- [TriggerWorkflowRep](docs/TriggerWorkflowRep.md)
1407+
- [TrustPolicyDetails](docs/TrustPolicyDetails.md)
1408+
- [TrustPolicyStatement](docs/TrustPolicyStatement.md)
14051409
- [UnauthorizedErrorRep](docs/UnauthorizedErrorRep.md)
14061410
- [UnlinkResourceSuccessResponse](docs/UnlinkResourceSuccessResponse.md)
14071411
- [UpdatePhaseStatusInput](docs/UpdatePhaseStatusInput.md)

docs/AIConfig.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
1717
**variations** | [**List[AIConfigVariation]**](AIConfigVariation.md) | |
1818
**created_at** | **int** | |
1919
**updated_at** | **int** | |
20+
**evaluation_metric_keys** | **List[str]** | List of evaluation metric keys for this AI config | [optional]
2021

2122
## Example
2223

docs/AiConfigsMetricDataSourceRefRep.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**key** | **str** | | [optional]
8+
**key** | **str** | |
99
**environment_key** | **str** | | [optional]
1010
**name** | **str** | | [optional]
1111
**integration_key** | **str** | | [optional]

docs/AiConfigsMetricListingRep.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Name | Type | Description | Notes
3737
**analysis_type** | **str** | The method for analyzing metric events | [optional]
3838
**percentile_value** | **int** | The percentile for the analysis method. An integer denoting the target percentile between 0 and 100. Required when <code>analysisType</code> is <code>percentile</code>. | [optional]
3939
**event_default** | [**AiConfigsMetricEventDefaultRep**](AiConfigsMetricEventDefaultRep.md) | | [optional]
40-
**data_source** | [**AiConfigsMetricDataSourceRefRep**](AiConfigsMetricDataSourceRefRep.md) | | [optional]
40+
**data_source** | [**AiConfigsMetricDataSourceRefRep**](AiConfigsMetricDataSourceRefRep.md) | |
4141
**archived** | **bool** | Whether the metric version is archived | [optional]
4242
**archived_at** | **int** | | [optional]
4343
**selector** | **str** | For click metrics, the CSS selectors | [optional]

docs/DataExportDestinationsApi.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Method | HTTP request | Description
99
[**get_destinations**](DataExportDestinationsApi.md#get_destinations) | **GET** /api/v2/destinations | List destinations
1010
[**patch_destination**](DataExportDestinationsApi.md#patch_destination) | **PATCH** /api/v2/destinations/{projectKey}/{environmentKey}/{id} | Update Data Export destination
1111
[**post_destination**](DataExportDestinationsApi.md#post_destination) | **POST** /api/v2/destinations/{projectKey}/{environmentKey} | Create Data Export destination
12+
[**post_generate_trust_policy**](DataExportDestinationsApi.md#post_generate_trust_policy) | **POST** /api/v2/destinations/projects/{projKey}/environments/{envKey}/generate-trust-policy | Generate trust policy
1213
[**post_generate_warehouse_destination_key_pair**](DataExportDestinationsApi.md#post_generate_warehouse_destination_key_pair) | **POST** /api/v2/destinations/generate-warehouse-destination-key-pair | Generate Snowflake destination key pair
1314

1415

@@ -497,6 +498,92 @@ Name | Type | Description | Notes
497498

498499
[[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)
499500

501+
# **post_generate_trust_policy**
502+
> GenerateTrustPolicyPostRep post_generate_trust_policy(proj_key, env_key)
503+
504+
Generate trust policy
505+
506+
Trust policy to allow Data Export to assume the role and perform operations on AWS resources
507+
508+
### Example
509+
510+
* Api Key Authentication (ApiKey):
511+
512+
```python
513+
import launchdarkly_api
514+
from launchdarkly_api.models.generate_trust_policy_post_rep import GenerateTrustPolicyPostRep
515+
from launchdarkly_api.rest import ApiException
516+
from pprint import pprint
517+
518+
# Defining the host is optional and defaults to https://app.launchdarkly.com
519+
# See configuration.py for a list of all supported configuration parameters.
520+
configuration = launchdarkly_api.Configuration(
521+
host = "https://app.launchdarkly.com"
522+
)
523+
524+
# The client must configure the authentication and authorization parameters
525+
# in accordance with the API server security policy.
526+
# Examples for each auth method are provided below, use the example that
527+
# satisfies your auth use case.
528+
529+
# Configure API key authorization: ApiKey
530+
configuration.api_key['ApiKey'] = os.environ["API_KEY"]
531+
532+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
533+
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
534+
535+
# Enter a context with an instance of the API client
536+
with launchdarkly_api.ApiClient(configuration) as api_client:
537+
# Create an instance of the API class
538+
api_instance = launchdarkly_api.DataExportDestinationsApi(api_client)
539+
proj_key = 'proj_key_example' # str | The project key
540+
env_key = 'env_key_example' # str | The environment key
541+
542+
try:
543+
# Generate trust policy
544+
api_response = api_instance.post_generate_trust_policy(proj_key, env_key)
545+
print("The response of DataExportDestinationsApi->post_generate_trust_policy:\n")
546+
pprint(api_response)
547+
except Exception as e:
548+
print("Exception when calling DataExportDestinationsApi->post_generate_trust_policy: %s\n" % e)
549+
```
550+
551+
552+
553+
### Parameters
554+
555+
556+
Name | Type | Description | Notes
557+
------------- | ------------- | ------------- | -------------
558+
**proj_key** | **str**| The project key |
559+
**env_key** | **str**| The environment key |
560+
561+
### Return type
562+
563+
[**GenerateTrustPolicyPostRep**](GenerateTrustPolicyPostRep.md)
564+
565+
### Authorization
566+
567+
[ApiKey](../README.md#ApiKey)
568+
569+
### HTTP request headers
570+
571+
- **Content-Type**: Not defined
572+
- **Accept**: application/json
573+
574+
### HTTP response details
575+
576+
| Status code | Description | Response headers |
577+
|-------------|-------------|------------------|
578+
**201** | Generate trust policy response | - |
579+
**400** | Invalid request | - |
580+
**401** | Invalid access token | - |
581+
**403** | Forbidden | - |
582+
**409** | Status conflict | - |
583+
**429** | Rate limited | - |
584+
585+
[[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)
586+
500587
# **post_generate_warehouse_destination_key_pair**
501588
> GenerateWarehouseDestinationKeyPairPostRep post_generate_warehouse_destination_key_pair()
502589

docs/FeatureFlagsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ with launchdarkly_api.ApiClient(configuration) as api_client:
859859
limit = 56 # int | The number of feature flags to return. Defaults to 20. (optional)
860860
offset = 56 # int | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)
861861
archived = True # bool | Deprecated, use `filter=archived:true` instead. A boolean to filter the list to archived flags. When this is absent, only unarchived flags will be returned (optional)
862-
summary = True # bool | By default, flags do _not_ include their lists of prerequisites, targets, or rules for each environment. Set `summary=0` to include these fields for each flag returned. (optional)
862+
summary = True # bool | By default, flags do _not_ include their lists of prerequisites, targets, or rules for each environment. Set `summary=0` and include the `env` query parameter to include these fields for each flag returned. (optional)
863863
filter = 'filter_example' # str | A comma-separated list of filters. Each filter is of the form field:value. Read the endpoint description for a full list of available filter fields. (optional)
864864
sort = 'sort_example' # str | A comma-separated list of fields to sort by. Fields prefixed by a dash ( - ) sort in descending order. Read the endpoint description for a full list of available sort fields. (optional)
865865
compare = True # bool | Deprecated, unavailable in API version `20240415`. A boolean to filter results by only flags that have differences between environments. (optional)
@@ -887,7 +887,7 @@ Name | Type | Description | Notes
887887
**limit** | **int**| The number of feature flags to return. Defaults to 20. | [optional]
888888
**offset** | **int**| Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. | [optional]
889889
**archived** | **bool**| Deprecated, use `filter=archived:true` instead. A boolean to filter the list to archived flags. When this is absent, only unarchived flags will be returned | [optional]
890-
**summary** | **bool**| By default, flags do _not_ include their lists of prerequisites, targets, or rules for each environment. Set `summary=0` to include these fields for each flag returned. | [optional]
890+
**summary** | **bool**| By default, flags do _not_ include their lists of prerequisites, targets, or rules for each environment. Set `summary=0` and include the `env` query parameter to include these fields for each flag returned. | [optional]
891891
**filter** | **str**| A comma-separated list of filters. Each filter is of the form field:value. Read the endpoint description for a full list of available filter fields. | [optional]
892892
**sort** | **str**| A comma-separated list of fields to sort by. Fields prefixed by a dash ( - ) sort in descending order. Read the endpoint description for a full list of available sort fields. | [optional]
893893
**compare** | **bool**| Deprecated, unavailable in API version `20240415`. A boolean to filter results by only flags that have differences between environments. | [optional]

docs/GenerateTrustPolicyPostRep.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# GenerateTrustPolicyPostRep
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**aws_trust_policy** | [**TrustPolicyDetails**](TrustPolicyDetails.md) | | [optional]
9+
10+
## Example
11+
12+
```python
13+
from launchdarkly_api.models.generate_trust_policy_post_rep import GenerateTrustPolicyPostRep
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of GenerateTrustPolicyPostRep from a JSON string
18+
generate_trust_policy_post_rep_instance = GenerateTrustPolicyPostRep.from_json(json)
19+
# print the JSON string representation of the object
20+
print(GenerateTrustPolicyPostRep.to_json())
21+
22+
# convert the object into a dict
23+
generate_trust_policy_post_rep_dict = generate_trust_policy_post_rep_instance.to_dict()
24+
# create an instance of GenerateTrustPolicyPostRep from a dict
25+
generate_trust_policy_post_rep_from_dict = GenerateTrustPolicyPostRep.from_dict(generate_trust_policy_post_rep_dict)
26+
```
27+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
28+
29+

docs/MetricDataSourceRefRep.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**key** | **str** | | [optional]
8+
**key** | **str** | |
99
**environment_key** | **str** | | [optional]
1010
**name** | **str** | | [optional]
1111
**integration_key** | **str** | | [optional]

docs/MetricGroupRep.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ Name | Type | Description | Notes
2222
**experiment_count** | **int** | The number of experiments using this metric group | [optional]
2323
**active_experiment_count** | **int** | The number of active experiments using this metric group | [optional]
2424
**active_guarded_rollout_count** | **int** | The number of active guarded rollouts using this metric group | [optional]
25-
**total_connections_count** | **int** | The total number of connections using this metric group | [optional]
26-
**total_active_connections_count** | **int** | The total number of active connections using this metric group | [optional]
2725

2826
## Example
2927

0 commit comments

Comments
 (0)