Skip to content
This repository was archived by the owner on Feb 3, 2026. It is now read-only.

Commit 846af0e

Browse files
author
LaunchDarklyReleaseBot
committed
Version 19.0.0 automatically generated from ld-openapi.
1 parent 0227b82 commit 846af0e

47 files changed

Lines changed: 2514 additions & 148 deletions

Some content is hidden

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

.openapi-generator/FILES

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ docs/Model/FollowFlagMember.md
332332
docs/Model/FollowersPerFlag.md
333333
docs/Model/ForbiddenErrorRep.md
334334
docs/Model/FormVariable.md
335+
docs/Model/GenerateTrustPolicyPostRep.md
335336
docs/Model/GenerateWarehouseDestinationKeyPairPostRep.md
336337
docs/Model/GetAnnouncementsPublic200Response.md
337338
docs/Model/GuardedReleaseConfig.md
@@ -581,6 +582,8 @@ docs/Model/TreatmentRep.md
581582
docs/Model/TriggerPost.md
582583
docs/Model/TriggerWorkflowCollectionRep.md
583584
docs/Model/TriggerWorkflowRep.md
585+
docs/Model/TrustPolicyDetails.md
586+
docs/Model/TrustPolicyStatement.md
584587
docs/Model/UnauthorizedErrorRep.md
585588
docs/Model/UnlinkResourceSuccessResponse.md
586589
docs/Model/UpdatePhaseStatusInput.md
@@ -972,6 +975,7 @@ lib/Model/FollowFlagMember.php
972975
lib/Model/FollowersPerFlag.php
973976
lib/Model/ForbiddenErrorRep.php
974977
lib/Model/FormVariable.php
978+
lib/Model/GenerateTrustPolicyPostRep.php
975979
lib/Model/GenerateWarehouseDestinationKeyPairPostRep.php
976980
lib/Model/GetAnnouncementsPublic200Response.php
977981
lib/Model/GuardedReleaseConfig.php
@@ -1222,6 +1226,8 @@ lib/Model/TreatmentRep.php
12221226
lib/Model/TriggerPost.php
12231227
lib/Model/TriggerWorkflowCollectionRep.php
12241228
lib/Model/TriggerWorkflowRep.php
1229+
lib/Model/TrustPolicyDetails.php
1230+
lib/Model/TrustPolicyStatement.php
12251231
lib/Model/UnauthorizedErrorRep.php
12261232
lib/Model/UnlinkResourceSuccessResponse.php
12271233
lib/Model/UpdatePhaseStatusInput.php
@@ -1610,6 +1616,7 @@ test/Model/FollowFlagMemberTest.php
16101616
test/Model/FollowersPerFlagTest.php
16111617
test/Model/ForbiddenErrorRepTest.php
16121618
test/Model/FormVariableTest.php
1619+
test/Model/GenerateTrustPolicyPostRepTest.php
16131620
test/Model/GenerateWarehouseDestinationKeyPairPostRepTest.php
16141621
test/Model/GetAnnouncementsPublic200ResponseTest.php
16151622
test/Model/GuardedReleaseConfigTest.php
@@ -1859,6 +1866,8 @@ test/Model/TreatmentRepTest.php
18591866
test/Model/TriggerPostTest.php
18601867
test/Model/TriggerWorkflowCollectionRepTest.php
18611868
test/Model/TriggerWorkflowRepTest.php
1869+
test/Model/TrustPolicyDetailsTest.php
1870+
test/Model/TrustPolicyStatementTest.php
18621871
test/Model/UnauthorizedErrorRepTest.php
18631872
test/Model/UnlinkResourceSuccessResponseTest.php
18641873
test/Model/UpdatePhaseStatusInputTest.php

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ Class | Method | HTTP request | Description
642642
*DataExportDestinationsApi* | [**getDestinations**](docs/Api/DataExportDestinationsApi.md#getdestinations) | **GET** /api/v2/destinations | List destinations
643643
*DataExportDestinationsApi* | [**patchDestination**](docs/Api/DataExportDestinationsApi.md#patchdestination) | **PATCH** /api/v2/destinations/{projectKey}/{environmentKey}/{id} | Update Data Export destination
644644
*DataExportDestinationsApi* | [**postDestination**](docs/Api/DataExportDestinationsApi.md#postdestination) | **POST** /api/v2/destinations/{projectKey}/{environmentKey} | Create Data Export destination
645+
*DataExportDestinationsApi* | [**postGenerateTrustPolicy**](docs/Api/DataExportDestinationsApi.md#postgeneratetrustpolicy) | **POST** /api/v2/destinations/projects/{projKey}/environments/{envKey}/generate-trust-policy | Generate trust policy
645646
*DataExportDestinationsApi* | [**postGenerateWarehouseDestinationKeyPair**](docs/Api/DataExportDestinationsApi.md#postgeneratewarehousedestinationkeypair) | **POST** /api/v2/destinations/generate-warehouse-destination-key-pair | Generate Snowflake destination key pair
646647
*EnvironmentsApi* | [**deleteEnvironment**](docs/Api/EnvironmentsApi.md#deleteenvironment) | **DELETE** /api/v2/projects/{projectKey}/environments/{environmentKey} | Delete environment
647648
*EnvironmentsApi* | [**getEnvironment**](docs/Api/EnvironmentsApi.md#getenvironment) | **GET** /api/v2/projects/{projectKey}/environments/{environmentKey} | Get environment
@@ -1133,6 +1134,7 @@ Class | Method | HTTP request | Description
11331134
- [FollowersPerFlag](docs/Model/FollowersPerFlag.md)
11341135
- [ForbiddenErrorRep](docs/Model/ForbiddenErrorRep.md)
11351136
- [FormVariable](docs/Model/FormVariable.md)
1137+
- [GenerateTrustPolicyPostRep](docs/Model/GenerateTrustPolicyPostRep.md)
11361138
- [GenerateWarehouseDestinationKeyPairPostRep](docs/Model/GenerateWarehouseDestinationKeyPairPostRep.md)
11371139
- [GetAnnouncementsPublic200Response](docs/Model/GetAnnouncementsPublic200Response.md)
11381140
- [GuardedReleaseConfig](docs/Model/GuardedReleaseConfig.md)
@@ -1382,6 +1384,8 @@ Class | Method | HTTP request | Description
13821384
- [TriggerPost](docs/Model/TriggerPost.md)
13831385
- [TriggerWorkflowCollectionRep](docs/Model/TriggerWorkflowCollectionRep.md)
13841386
- [TriggerWorkflowRep](docs/Model/TriggerWorkflowRep.md)
1387+
- [TrustPolicyDetails](docs/Model/TrustPolicyDetails.md)
1388+
- [TrustPolicyStatement](docs/Model/TrustPolicyStatement.md)
13851389
- [UnauthorizedErrorRep](docs/Model/UnauthorizedErrorRep.md)
13861390
- [UnlinkResourceSuccessResponse](docs/Model/UnlinkResourceSuccessResponse.md)
13871391
- [UpdatePhaseStatusInput](docs/Model/UpdatePhaseStatusInput.md)
@@ -1469,6 +1473,6 @@ support@launchdarkly.com
14691473
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
14701474

14711475
- API version: `2.0`
1472-
- Package version: `18.1.0`
1476+
- Package version: `19.0.0`
14731477
- Generator version: `7.16.0`
14741478
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`

composer.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/Api/DataExportDestinationsApi.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ All URIs are relative to https://app.launchdarkly.com, except if the operation d
99
| [**getDestinations()**](DataExportDestinationsApi.md#getDestinations) | **GET** /api/v2/destinations | List destinations |
1010
| [**patchDestination()**](DataExportDestinationsApi.md#patchDestination) | **PATCH** /api/v2/destinations/{projectKey}/{environmentKey}/{id} | Update Data Export destination |
1111
| [**postDestination()**](DataExportDestinationsApi.md#postDestination) | **POST** /api/v2/destinations/{projectKey}/{environmentKey} | Create Data Export destination |
12+
| [**postGenerateTrustPolicy()**](DataExportDestinationsApi.md#postGenerateTrustPolicy) | **POST** /api/v2/destinations/projects/{projKey}/environments/{envKey}/generate-trust-policy | Generate trust policy |
1213
| [**postGenerateWarehouseDestinationKeyPair()**](DataExportDestinationsApi.md#postGenerateWarehouseDestinationKeyPair) | **POST** /api/v2/destinations/generate-warehouse-destination-key-pair | Generate Snowflake destination key pair |
1314

1415

@@ -336,6 +337,70 @@ try {
336337
[[Back to Model list]](../../README.md#models)
337338
[[Back to README]](../../README.md)
338339

340+
## `postGenerateTrustPolicy()`
341+
342+
```php
343+
postGenerateTrustPolicy($proj_key, $env_key): \LaunchDarklyApi\Model\GenerateTrustPolicyPostRep
344+
```
345+
346+
Generate trust policy
347+
348+
Trust policy to allow Data Export to assume the role and perform operations on AWS resources
349+
350+
### Example
351+
352+
```php
353+
<?php
354+
require_once(__DIR__ . '/vendor/autoload.php');
355+
356+
357+
// Configure API key authorization: ApiKey
358+
$config = LaunchDarklyApi\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
359+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
360+
// $config = LaunchDarklyApi\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
361+
362+
363+
$apiInstance = new LaunchDarklyApi\Api\DataExportDestinationsApi(
364+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
365+
// This is optional, `GuzzleHttp\Client` will be used as default.
366+
new GuzzleHttp\Client(),
367+
$config
368+
);
369+
$proj_key = 'proj_key_example'; // string | The project key
370+
$env_key = 'env_key_example'; // string | The environment key
371+
372+
try {
373+
$result = $apiInstance->postGenerateTrustPolicy($proj_key, $env_key);
374+
print_r($result);
375+
} catch (Exception $e) {
376+
echo 'Exception when calling DataExportDestinationsApi->postGenerateTrustPolicy: ', $e->getMessage(), PHP_EOL;
377+
}
378+
```
379+
380+
### Parameters
381+
382+
| Name | Type | Description | Notes |
383+
| ------------- | ------------- | ------------- | ------------- |
384+
| **proj_key** | **string**| The project key | |
385+
| **env_key** | **string**| The environment key | |
386+
387+
### Return type
388+
389+
[**\LaunchDarklyApi\Model\GenerateTrustPolicyPostRep**](../Model/GenerateTrustPolicyPostRep.md)
390+
391+
### Authorization
392+
393+
[ApiKey](../../README.md#ApiKey)
394+
395+
### HTTP request headers
396+
397+
- **Content-Type**: Not defined
398+
- **Accept**: `application/json`
399+
400+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
401+
[[Back to Model list]](../../README.md#models)
402+
[[Back to README]](../../README.md)
403+
339404
## `postGenerateWarehouseDestinationKeyPair()`
340405

341406
```php

docs/Api/FeatureFlagsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ $tag = 'tag_example'; // string | Filter feature flags by tag
580580
$limit = 56; // int | The number of feature flags to return. Defaults to 20.
581581
$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`.
582582
$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
583-
$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.
583+
$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.
584584
$filter = 'filter_example'; // string | 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.
585585
$sort = 'sort_example'; // string | 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.
586586
$compare = True; // bool | Deprecated, unavailable in API version `20240415`. A boolean to filter results by only flags that have differences between environments.
@@ -604,7 +604,7 @@ try {
604604
| **limit** | **int**| The number of feature flags to return. Defaults to 20. | [optional] |
605605
| **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 &#x60;limit&#x60;. | [optional] |
606606
| **archived** | **bool**| Deprecated, use &#x60;filter&#x3D;archived:true&#x60; instead. A boolean to filter the list to archived flags. When this is absent, only unarchived flags will be returned | [optional] |
607-
| **summary** | **bool**| By default, flags do _not_ include their lists of prerequisites, targets, or rules for each environment. Set &#x60;summary&#x3D;0&#x60; to include these fields for each flag returned. | [optional] |
607+
| **summary** | **bool**| By default, flags do _not_ include their lists of prerequisites, targets, or rules for each environment. Set &#x60;summary&#x3D;0&#x60; and include the &#x60;env&#x60; query parameter to include these fields for each flag returned. | [optional] |
608608
| **filter** | **string**| 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] |
609609
| **sort** | **string**| 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] |
610610
| **compare** | **bool**| Deprecated, unavailable in API version &#x60;20240415&#x60;. A boolean to filter results by only flags that have differences between environments. | [optional] |

docs/Api/MetricsApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ getMetrics($project_key, $expand, $limit, $offset, $sort, $filter): \LaunchDarkl
150150

151151
List metrics
152152

153-
Get a list of all metrics for the specified project. ### Filtering metrics The `filter` parameter supports the following operators: `contains`, `equals`, `anyOf`. #### Supported fields and operators You can only filter certain fields in metrics when using the `filter` parameter. Additionally, you can only filter some fields with certain operators. When you search for metrics, the `filter` parameter supports the following fields and operators: |<div style=\"width:120px\">Field</div> |Description |Supported operators | |---|---|---| | `eventKind` | The metric event kind. One of `custom`, `pageview`, `click`. | `equals` | | `hasConnections` | Whether the metric has connections to experiments or guarded rollouts. One of `true`, `false`. | `equals` | | `isNumeric` | Whether the metric is numeric. One of `true`, `false`. | `equals` | | `maintainerIds` | A comma-separated list of metric maintainer IDs. | `anyOf` | | `maintainerTeamKey` | The metric maintainer team key. | `equals` | | `query` | A \"fuzzy\" search across metric key and name. Supply a string or list of strings to the operator. | `equals` | | `tags` | The metric tags. | `contains` | | `unitAggregationType` | The metric's unit aggregation type. One of `sum`, `average`. | `equals` | For example, the filter `?filter=tags contains [\"tag1\", \"tag2\", \"tag3\"]` matches metrics that have all three tags. The documented values for `filter` query parameters are prior to URL encoding. For example, the `[` in `?filter=tags contains [\"tag1\", \"tag2\", \"tag3\"]` must be encoded to `%5B`. ### Expanding the metric list response LaunchDarkly supports expanding the \"List metrics\" response. By default, the expandable field is **not** included in the response. To expand the response, append the `expand` query parameter and add the following supported field: - `experimentCount` includes the number of experiments from the specific project that use the metric For example, `expand=experimentCount` includes the `experimentCount` field for each metric in the response.
153+
Get a list of all metrics for the specified project. ### Filtering metrics The `filter` parameter supports the following operators: `contains`, `equals`, `anyOf`. #### Supported fields and operators You can only filter certain fields in metrics when using the `filter` parameter. Additionally, you can only filter some fields with certain operators. When you search for metrics, the `filter` parameter supports the following fields and operators: |<div style=\"width:120px\">Field</div> |Description |Supported operators | |---|---|---| | `eventKind` | The metric event kind. One of `custom`, `pageview`, `click`. | `equals` | | `hasConnections` | Whether the metric has connections to experiments or guarded rollouts. One of `true`, `false`. | `equals` | | `isNumeric` | Whether the metric is numeric. One of `true`, `false`. | `equals` | | `maintainerIds` | A comma-separated list of metric maintainer IDs. | `anyOf` | | `maintainerTeamKey` | The metric maintainer team key. | `equals` | | `metricUsedIn` | Filter by where the metric is used. One of `experiments`, `guarded_rollouts`, `any`, `none`. | `equals` | | `query` | A \"fuzzy\" search across metric key and name. Supply a string or list of strings to the operator. | `equals` | | `tags` | The metric tags. | `contains` | | `unitAggregationType` | The metric's unit aggregation type. One of `sum`, `average`. | `equals` | For example, the filter `?filter=tags contains [\"tag1\", \"tag2\", \"tag3\"]` matches metrics that have all three tags. The documented values for `filter` query parameters are prior to URL encoding. For example, the `[` in `?filter=tags contains [\"tag1\", \"tag2\", \"tag3\"]` must be encoded to `%5B`. ### Expanding the metric list response LaunchDarkly supports expanding the \"List metrics\" response. By default, the expandable field is **not** included in the response. To expand the response, append the `expand` query parameter and add the following supported field: - `experimentCount` includes the number of experiments from the specific project that use the metric For example, `expand=experimentCount` includes the `experimentCount` field for each metric in the response.
154154

155155
### Example
156156

@@ -176,7 +176,7 @@ $expand = 'expand_example'; // string | A comma-separated list of properties tha
176176
$limit = 56; // int | The number of metrics to return in the response. Defaults to 20. Maximum limit is 50.
177177
$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 returns the next `limit` items.
178178
$sort = 'sort_example'; // string | A field to sort the items by. Prefix field by a dash ( - ) to sort in descending order. This endpoint supports sorting by `createdAt` or `name`.
179-
$filter = 'filter_example'; // string | A comma-separated list of filters. This endpoint accepts filtering by `query`, `tags`, 'eventKind', 'isNumeric', 'unitAggregationType`, `hasConnections`, `maintainerIds`, `maintainerTeamKey`, `view`, and `dataSourceKeys`. To learn more about the filter syntax, read the 'Filtering metrics' section above.
179+
$filter = 'filter_example'; // string | A comma-separated list of filters. This endpoint accepts filtering by `query`, `tags`, 'eventKind', 'isNumeric', 'unitAggregationType`, `hasConnections`, `maintainerIds`, `maintainerTeamKey`, `view`, `dataSourceKeys`, and `metricUsedIn`. To learn more about the filter syntax, read the 'Filtering metrics' section above.
180180

181181
try {
182182
$result = $apiInstance->getMetrics($project_key, $expand, $limit, $offset, $sort, $filter);
@@ -195,7 +195,7 @@ try {
195195
| **limit** | **int**| The number of metrics to return in the response. Defaults to 20. Maximum limit is 50. | [optional] |
196196
| **offset** | **int**| Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and returns the next &#x60;limit&#x60; items. | [optional] |
197197
| **sort** | **string**| A field to sort the items by. Prefix field by a dash ( - ) to sort in descending order. This endpoint supports sorting by &#x60;createdAt&#x60; or &#x60;name&#x60;. | [optional] |
198-
| **filter** | **string**| A comma-separated list of filters. This endpoint accepts filtering by &#x60;query&#x60;, &#x60;tags&#x60;, &#39;eventKind&#39;, &#39;isNumeric&#39;, &#39;unitAggregationType&#x60;, &#x60;hasConnections&#x60;, &#x60;maintainerIds&#x60;, &#x60;maintainerTeamKey&#x60;, &#x60;view&#x60;, and &#x60;dataSourceKeys&#x60;. To learn more about the filter syntax, read the &#39;Filtering metrics&#39; section above. | [optional] |
198+
| **filter** | **string**| A comma-separated list of filters. This endpoint accepts filtering by &#x60;query&#x60;, &#x60;tags&#x60;, &#39;eventKind&#39;, &#39;isNumeric&#39;, &#39;unitAggregationType&#x60;, &#x60;hasConnections&#x60;, &#x60;maintainerIds&#x60;, &#x60;maintainerTeamKey&#x60;, &#x60;view&#x60;, &#x60;dataSourceKeys&#x60;, and &#x60;metricUsedIn&#x60;. To learn more about the filter syntax, read the &#39;Filtering metrics&#39; section above. | [optional] |
199199

200200
### Return type
201201

docs/Api/ScheduledChangesApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ postFlagConfigScheduledChanges($project_key, $feature_flag_key, $environment_key
292292

293293
Create scheduled changes workflow
294294

295-
Create scheduled changes for a feature flag. The changes you schedule may include any semantic patch instructions available when [updating a feature flag](https://launchdarkly.com/docs/api/feature-flags/patch-feature-flag#using-semantic-patches-on-a-feature-flag). If the `ignoreConficts` query parameter is false and there are conflicts between these instructions and existing scheduled changes, the request will fail. If the parameter is true and there are conflicts, the request will succeed.
295+
Create scheduled changes for a feature flag. The changes you schedule may include any semantic patch instructions available when [updating a feature flag](https://launchdarkly.com/docs/api/feature-flags/patch-feature-flag#using-semantic-patches-on-a-feature-flag). If the `ignoreConflicts` query parameter is false and there are conflicts between these instructions and existing scheduled changes, the request will fail. If the parameter is true and there are conflicts, the request will succeed.
296296

297297
### Example
298298

docs/Api/SegmentsApi.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/Model/AIConfig.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ Name | Type | Description | Notes
1616
**variations** | [**\LaunchDarklyApi\Model\AIConfigVariation[]**](AIConfigVariation.md) | |
1717
**created_at** | **int** | |
1818
**updated_at** | **int** | |
19+
**evaluation_metric_keys** | **string[]** | List of evaluation metric keys for this AI config | [optional]
1920

2021
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)

0 commit comments

Comments
 (0)