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

Commit 0227b82

Browse files
author
LaunchDarklyReleaseBot
committed
Version 18.1.0 automatically generated from ld-openapi.
1 parent 73b6ea6 commit 0227b82

14 files changed

Lines changed: 150 additions & 18 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1469,6 +1469,6 @@ support@launchdarkly.com
14691469
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
14701470

14711471
- API version: `2.0`
1472-
- Package version: `18.0.2`
1472+
- Package version: `18.1.0`
14731473
- Generator version: `7.16.0`
14741474
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`

composer.json

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

docs/Api/MetricsBetaApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ getMetricGroups($project_key, $filter, $sort, $expand, $limit, $offset): \Launch
212212

213213
List metric groups
214214

215-
Get a list of all metric groups for the specified project. ### Expanding the metric groups response LaunchDarkly supports one field for expanding the \"Get metric groups\" response. By default, these fields are **not** included in the response. To expand the response, append the `expand` query parameter and add a comma-separated list with the following field: - `experiments` includes all experiments from the specific project that use the metric group For example, `expand=experiments` includes the `experiments` field in the response. ### Filtering metric groups 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 | |---|---|---| | `experimentStatus` | The experiment's status. One of `not_started`, `running`, `stopped`, `started`. | `equals` | | `hasConnections` | Whether the metric group has connections to experiments or guarded rollouts. One of `true`, `false`. | `equals` | | `kind` | The metric group kind. One of `funnel`, `standard`. | `equals` | | `maintainerIds` | The metric maintainer IDs. | `anyOf` | | `maintainerTeamKey` | The metric maintainer team key. | `equals` | | `query` | A \"fuzzy\" search across metric group key and name. Supply a string or list of strings to the operator. | `equals` | ### Sorting metric groups LaunchDarkly supports the following fields for sorting: - `name` sorts by metric group name. - `createdAt` sorts by the creation date of the metric group. - `connectionCount` sorts by the number of connections to experiments the metric group has. By default, the sort is in ascending order. Use `-` to sort in descending order. For example, `?sort=name` sorts the response by metric group name in ascending order, and `?sort=-name` sorts in descending order. #### Sample query `filter=experimentStatus equals 'not_started' and query equals 'metric name'`
215+
Get a list of all metric groups for the specified project. ### Expanding the metric groups response This endpoint does not support response expansion. Although the API accepts an `expand` query parameter for compatibility reasons, it does not currently modify the response. The parameter is reserved for future use. ### Filtering metric groups 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 | |---|---|---| | `experimentStatus` | The experiment's status. One of `not_started`, `running`, `stopped`, `started`. | `equals` | | `hasConnections` | Whether the metric group has connections to experiments or guarded rollouts. One of `true`, `false`. | `equals` | | `kind` | The metric group kind. One of `funnel`, `standard`. | `equals` | | `maintainerIds` | The metric maintainer IDs. | `anyOf` | | `maintainerTeamKey` | The metric maintainer team key. | `equals` | | `query` | A \"fuzzy\" search across metric group key and name. Supply a string or list of strings to the operator. | `equals` | ### Sorting metric groups LaunchDarkly supports the following fields for sorting: - `name` sorts by metric group name. - `createdAt` sorts by the creation date of the metric group. - `connectionCount` sorts by the number of connections to experiments the metric group has. By default, the sort is in ascending order. Use `-` to sort in descending order. For example, `?sort=name` sorts the response by metric group name in ascending order, and `?sort=-name` sorts in descending order. #### Sample query `filter=experimentStatus equals 'not_started' and query equals 'metric name'`
216216

217217
### Example
218218

@@ -236,7 +236,7 @@ $apiInstance = new LaunchDarklyApi\Api\MetricsBetaApi(
236236
$project_key = 'project_key_example'; // string | The project key
237237
$filter = 'filter_example'; // string | Accepts filter by `experimentStatus`, `query`, `kind`, `hasConnections`, `maintainerIds`, and `maintainerTeamKey`. Example: `filter=experimentStatus equals 'running' and query equals 'test'`.
238238
$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.
239-
$expand = 'expand_example'; // string | A comma-separated list of properties that can reveal additional information in the response.
239+
$expand = 'expand_example'; // string | This parameter is reserved for future use and is not currently supported on this endpoint.
240240
$limit = 56; // int | The number of metric groups to return in the response. Defaults to 20. Maximum limit is 50.
241241
$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.
242242

@@ -255,7 +255,7 @@ try {
255255
| **project_key** | **string**| The project key | |
256256
| **filter** | **string**| Accepts filter by &#x60;experimentStatus&#x60;, &#x60;query&#x60;, &#x60;kind&#x60;, &#x60;hasConnections&#x60;, &#x60;maintainerIds&#x60;, and &#x60;maintainerTeamKey&#x60;. Example: &#x60;filter&#x3D;experimentStatus equals &#39;running&#39; and query equals &#39;test&#39;&#x60;. | [optional] |
257257
| **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] |
258-
| **expand** | **string**| A comma-separated list of properties that can reveal additional information in the response. | [optional] |
258+
| **expand** | **string**| This parameter is reserved for future use and is not currently supported on this endpoint. | [optional] |
259259
| **limit** | **int**| The number of metric groups to return in the response. Defaults to 20. Maximum limit is 50. | [optional] |
260260
| **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] |
261261

docs/Model/Environment.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
1313
**color** | **string** | The color used to indicate this environment in the UI |
1414
**default_ttl** | **int** | The default time (in minutes) that the PHP SDK can cache feature flag rules locally |
1515
**secure_mode** | **bool** | Ensures that one end user of the client-side SDK cannot inspect the variations for another end user |
16+
**_access** | [**\LaunchDarklyApi\Model\Access**](Access.md) | | [optional]
1617
**default_track_events** | **bool** | Enables tracking detailed information for new flags by default |
1718
**require_comments** | **bool** | Whether members who modify flags and segments through the LaunchDarkly user interface are required to add a comment |
1819
**confirm_changes** | **bool** | Whether members who modify flags and segments through the LaunchDarkly user interface are required to confirm those changes |

docs/Model/Experiment.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**_creation_date** | **int** | |
1313
**environment_key** | **string** | |
1414
**archived_date** | **int** | | [optional]
15+
**tags** | **string[]** | Tags for the experiment | [optional]
1516
**_links** | [**array<string,\LaunchDarklyApi\Model\Link>**](Link.md) | The location and content type of related resources |
1617
**holdout_id** | **string** | The holdout ID | [optional]
1718
**current_iteration** | [**\LaunchDarklyApi\Model\IterationRep**](IterationRep.md) | | [optional]

docs/Model/ExperimentPost.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ Name | Type | Description | Notes
1010
**key** | **string** | The experiment key |
1111
**iteration** | [**\LaunchDarklyApi\Model\IterationInput**](IterationInput.md) | |
1212
**holdout_id** | **string** | The ID of the holdout | [optional]
13+
**tags** | **string[]** | Tags for the experiment | [optional]
1314

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

lib/Api/MetricsBetaApi.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ public function getMetricGroupRequest($project_key, $metric_group_key, $expand =
12051205
* @param string $project_key The project key (required)
12061206
* @param string|null $filter Accepts filter by &#x60;experimentStatus&#x60;, &#x60;query&#x60;, &#x60;kind&#x60;, &#x60;hasConnections&#x60;, &#x60;maintainerIds&#x60;, and &#x60;maintainerTeamKey&#x60;. Example: &#x60;filter&#x3D;experimentStatus equals &#39;running&#39; and query equals &#39;test&#39;&#x60;. (optional)
12071207
* @param string|null $sort 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)
1208-
* @param string|null $expand A comma-separated list of properties that can reveal additional information in the response. (optional)
1208+
* @param string|null $expand This parameter is reserved for future use and is not currently supported on this endpoint. (optional)
12091209
* @param int|null $limit The number of metric groups to return in the response. Defaults to 20. Maximum limit is 50. (optional)
12101210
* @param int|null $offset 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)
12111211
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getMetricGroups'] to see the possible values for this operation
@@ -1228,7 +1228,7 @@ public function getMetricGroups($project_key, $filter = null, $sort = null, $exp
12281228
* @param string $project_key The project key (required)
12291229
* @param string|null $filter Accepts filter by &#x60;experimentStatus&#x60;, &#x60;query&#x60;, &#x60;kind&#x60;, &#x60;hasConnections&#x60;, &#x60;maintainerIds&#x60;, and &#x60;maintainerTeamKey&#x60;. Example: &#x60;filter&#x3D;experimentStatus equals &#39;running&#39; and query equals &#39;test&#39;&#x60;. (optional)
12301230
* @param string|null $sort 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)
1231-
* @param string|null $expand A comma-separated list of properties that can reveal additional information in the response. (optional)
1231+
* @param string|null $expand This parameter is reserved for future use and is not currently supported on this endpoint. (optional)
12321232
* @param int|null $limit The number of metric groups to return in the response. Defaults to 20. Maximum limit is 50. (optional)
12331233
* @param int|null $offset 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)
12341234
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getMetricGroups'] to see the possible values for this operation
@@ -1402,7 +1402,7 @@ public function getMetricGroupsWithHttpInfo($project_key, $filter = null, $sort
14021402
* @param string $project_key The project key (required)
14031403
* @param string|null $filter Accepts filter by &#x60;experimentStatus&#x60;, &#x60;query&#x60;, &#x60;kind&#x60;, &#x60;hasConnections&#x60;, &#x60;maintainerIds&#x60;, and &#x60;maintainerTeamKey&#x60;. Example: &#x60;filter&#x3D;experimentStatus equals &#39;running&#39; and query equals &#39;test&#39;&#x60;. (optional)
14041404
* @param string|null $sort 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)
1405-
* @param string|null $expand A comma-separated list of properties that can reveal additional information in the response. (optional)
1405+
* @param string|null $expand This parameter is reserved for future use and is not currently supported on this endpoint. (optional)
14061406
* @param int|null $limit The number of metric groups to return in the response. Defaults to 20. Maximum limit is 50. (optional)
14071407
* @param int|null $offset 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)
14081408
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getMetricGroups'] to see the possible values for this operation
@@ -1428,7 +1428,7 @@ function ($response) {
14281428
* @param string $project_key The project key (required)
14291429
* @param string|null $filter Accepts filter by &#x60;experimentStatus&#x60;, &#x60;query&#x60;, &#x60;kind&#x60;, &#x60;hasConnections&#x60;, &#x60;maintainerIds&#x60;, and &#x60;maintainerTeamKey&#x60;. Example: &#x60;filter&#x3D;experimentStatus equals &#39;running&#39; and query equals &#39;test&#39;&#x60;. (optional)
14301430
* @param string|null $sort 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)
1431-
* @param string|null $expand A comma-separated list of properties that can reveal additional information in the response. (optional)
1431+
* @param string|null $expand This parameter is reserved for future use and is not currently supported on this endpoint. (optional)
14321432
* @param int|null $limit The number of metric groups to return in the response. Defaults to 20. Maximum limit is 50. (optional)
14331433
* @param int|null $offset 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)
14341434
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getMetricGroups'] to see the possible values for this operation
@@ -1483,7 +1483,7 @@ function ($exception) {
14831483
* @param string $project_key The project key (required)
14841484
* @param string|null $filter Accepts filter by &#x60;experimentStatus&#x60;, &#x60;query&#x60;, &#x60;kind&#x60;, &#x60;hasConnections&#x60;, &#x60;maintainerIds&#x60;, and &#x60;maintainerTeamKey&#x60;. Example: &#x60;filter&#x3D;experimentStatus equals &#39;running&#39; and query equals &#39;test&#39;&#x60;. (optional)
14851485
* @param string|null $sort 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)
1486-
* @param string|null $expand A comma-separated list of properties that can reveal additional information in the response. (optional)
1486+
* @param string|null $expand This parameter is reserved for future use and is not currently supported on this endpoint. (optional)
14871487
* @param int|null $limit The number of metric groups to return in the response. Defaults to 20. Maximum limit is 50. (optional)
14881488
* @param int|null $offset 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)
14891489
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getMetricGroups'] to see the possible values for this operation

lib/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class Configuration
101101
*
102102
* @var string
103103
*/
104-
protected $userAgent = 'OpenAPI-Generator/18.0.2/PHP';
104+
protected $userAgent = 'OpenAPI-Generator/18.1.0/PHP';
105105

106106
/**
107107
* Debug switch (default set to false)
@@ -434,7 +434,7 @@ public static function toDebugReport()
434434
$report .= ' OS: ' . php_uname() . PHP_EOL;
435435
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
436436
$report .= ' The version of the OpenAPI document: 2.0' . PHP_EOL;
437-
$report .= ' SDK Package Version: 18.0.2' . PHP_EOL;
437+
$report .= ' SDK Package Version: 18.1.0' . PHP_EOL;
438438
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
439439

440440
return $report;

0 commit comments

Comments
 (0)