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

Commit 323ed4f

Browse files
author
LaunchDarklyReleaseBot
committed
Version 18.0.1 automatically generated from ld-openapi.
1 parent a4f9428 commit 323ed4f

8 files changed

Lines changed: 193 additions & 17 deletions

File tree

README.md

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

14701470
- API version: `2.0`
1471-
- Package version: `18.0.0`
1471+
- Package version: `18.0.1`
14721472
- Generator version: `7.16.0`
14731473
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`

composer.json

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

docs/Api/MetricsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ $apiInstance = new LaunchDarklyApi\Api\MetricsApi(
105105
);
106106
$project_key = 'project_key_example'; // string | The project key
107107
$metric_key = 'metric_key_example'; // string | The metric key
108-
$expand = 'expand_example'; // string | A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, and `lastUsedInEntity`.
108+
$expand = 'expand_example'; // string | A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`.
109109
$version_id = 'version_id_example'; // string | The specific version ID of the metric
110110

111111
try {
@@ -122,7 +122,7 @@ try {
122122
| ------------- | ------------- | ------------- | ------------- |
123123
| **project_key** | **string**| The project key | |
124124
| **metric_key** | **string**| The metric key | |
125-
| **expand** | **string**| A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, and `lastUsedInEntity`. | [optional] |
125+
| **expand** | **string**| A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`. | [optional] |
126126
| **version_id** | **string**| The specific version ID of the metric | [optional] |
127127

128128
### Return type

docs/Model/MetricGroupRep.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,9 @@ Name | Type | Description | Notes
1919
**_version** | **int** | The version of this metric group |
2020
**experiments** | [**\LaunchDarklyApi\Model\DependentExperimentRep[]**](DependentExperimentRep.md) | | [optional]
2121
**experiment_count** | **int** | The number of experiments using this metric group | [optional]
22+
**active_experiment_count** | **int** | The number of active experiments using this metric group | [optional]
23+
**active_guarded_rollout_count** | **int** | The number of active guarded rollouts using this metric group | [optional]
24+
**total_connections_count** | **int** | The total number of connections using this metric group | [optional]
25+
**total_active_connections_count** | **int** | The total number of active connections using this metric group | [optional]
2226

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

lib/Api/MetricsApi.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ public function deleteMetricRequest($project_key, $metric_key, string $contentTy
420420
*
421421
* @param string $project_key The project key (required)
422422
* @param string $metric_key The metric key (required)
423-
* @param string|null $expand A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, and `lastUsedInEntity`. (optional)
423+
* @param string|null $expand A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`. (optional)
424424
* @param string|null $version_id The specific version ID of the metric (optional)
425425
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getMetric'] to see the possible values for this operation
426426
*
@@ -441,7 +441,7 @@ public function getMetric($project_key, $metric_key, $expand = null, $version_id
441441
*
442442
* @param string $project_key The project key (required)
443443
* @param string $metric_key The metric key (required)
444-
* @param string|null $expand A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, and `lastUsedInEntity`. (optional)
444+
* @param string|null $expand A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`. (optional)
445445
* @param string|null $version_id The specific version ID of the metric (optional)
446446
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getMetric'] to see the possible values for this operation
447447
*
@@ -585,7 +585,7 @@ public function getMetricWithHttpInfo($project_key, $metric_key, $expand = null,
585585
*
586586
* @param string $project_key The project key (required)
587587
* @param string $metric_key The metric key (required)
588-
* @param string|null $expand A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, and `lastUsedInEntity`. (optional)
588+
* @param string|null $expand A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`. (optional)
589589
* @param string|null $version_id The specific version ID of the metric (optional)
590590
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getMetric'] to see the possible values for this operation
591591
*
@@ -609,7 +609,7 @@ function ($response) {
609609
*
610610
* @param string $project_key The project key (required)
611611
* @param string $metric_key The metric key (required)
612-
* @param string|null $expand A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, and `lastUsedInEntity`. (optional)
612+
* @param string|null $expand A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`. (optional)
613613
* @param string|null $version_id The specific version ID of the metric (optional)
614614
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getMetric'] to see the possible values for this operation
615615
*
@@ -662,7 +662,7 @@ function ($exception) {
662662
*
663663
* @param string $project_key The project key (required)
664664
* @param string $metric_key The metric key (required)
665-
* @param string|null $expand A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, and `lastUsedInEntity`. (optional)
665+
* @param string|null $expand A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`. (optional)
666666
* @param string|null $version_id The specific version ID of the metric (optional)
667667
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getMetric'] to see the possible values for this operation
668668
*

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.0/PHP';
104+
protected $userAgent = 'OpenAPI-Generator/18.0.1/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.0' . PHP_EOL;
437+
$report .= ' SDK Package Version: 18.0.1' . PHP_EOL;
438438
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
439439

440440
return $report;

lib/Model/MetricGroupRep.php

Lines changed: 142 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ class MetricGroupRep implements ModelInterface, ArrayAccess, \JsonSerializable
7272
'metrics' => '\LaunchDarklyApi\Model\MetricInGroupRep[]',
7373
'_version' => 'int',
7474
'experiments' => '\LaunchDarklyApi\Model\DependentExperimentRep[]',
75-
'experiment_count' => 'int'
75+
'experiment_count' => 'int',
76+
'active_experiment_count' => 'int',
77+
'active_guarded_rollout_count' => 'int',
78+
'total_connections_count' => 'int',
79+
'total_active_connections_count' => 'int'
7680
];
7781

7882
/**
@@ -97,7 +101,11 @@ class MetricGroupRep implements ModelInterface, ArrayAccess, \JsonSerializable
97101
'metrics' => null,
98102
'_version' => null,
99103
'experiments' => null,
100-
'experiment_count' => null
104+
'experiment_count' => null,
105+
'active_experiment_count' => null,
106+
'active_guarded_rollout_count' => null,
107+
'total_connections_count' => null,
108+
'total_active_connections_count' => null
101109
];
102110

103111
/**
@@ -120,7 +128,11 @@ class MetricGroupRep implements ModelInterface, ArrayAccess, \JsonSerializable
120128
'metrics' => false,
121129
'_version' => false,
122130
'experiments' => false,
123-
'experiment_count' => false
131+
'experiment_count' => false,
132+
'active_experiment_count' => false,
133+
'active_guarded_rollout_count' => false,
134+
'total_connections_count' => false,
135+
'total_active_connections_count' => false
124136
];
125137

126138
/**
@@ -223,7 +235,11 @@ public function isNullableSetToNull(string $property): bool
223235
'metrics' => 'metrics',
224236
'_version' => '_version',
225237
'experiments' => 'experiments',
226-
'experiment_count' => 'experimentCount'
238+
'experiment_count' => 'experimentCount',
239+
'active_experiment_count' => 'activeExperimentCount',
240+
'active_guarded_rollout_count' => 'activeGuardedRolloutCount',
241+
'total_connections_count' => 'totalConnectionsCount',
242+
'total_active_connections_count' => 'totalActiveConnectionsCount'
227243
];
228244

229245
/**
@@ -246,7 +262,11 @@ public function isNullableSetToNull(string $property): bool
246262
'metrics' => 'setMetrics',
247263
'_version' => 'setVersion',
248264
'experiments' => 'setExperiments',
249-
'experiment_count' => 'setExperimentCount'
265+
'experiment_count' => 'setExperimentCount',
266+
'active_experiment_count' => 'setActiveExperimentCount',
267+
'active_guarded_rollout_count' => 'setActiveGuardedRolloutCount',
268+
'total_connections_count' => 'setTotalConnectionsCount',
269+
'total_active_connections_count' => 'setTotalActiveConnectionsCount'
250270
];
251271

252272
/**
@@ -269,7 +289,11 @@ public function isNullableSetToNull(string $property): bool
269289
'metrics' => 'getMetrics',
270290
'_version' => 'getVersion',
271291
'experiments' => 'getExperiments',
272-
'experiment_count' => 'getExperimentCount'
292+
'experiment_count' => 'getExperimentCount',
293+
'active_experiment_count' => 'getActiveExperimentCount',
294+
'active_guarded_rollout_count' => 'getActiveGuardedRolloutCount',
295+
'total_connections_count' => 'getTotalConnectionsCount',
296+
'total_active_connections_count' => 'getTotalActiveConnectionsCount'
273297
];
274298

275299
/**
@@ -361,6 +385,10 @@ public function __construct(?array $data = null)
361385
$this->setIfExists('_version', $data ?? [], null);
362386
$this->setIfExists('experiments', $data ?? [], null);
363387
$this->setIfExists('experiment_count', $data ?? [], null);
388+
$this->setIfExists('active_experiment_count', $data ?? [], null);
389+
$this->setIfExists('active_guarded_rollout_count', $data ?? [], null);
390+
$this->setIfExists('total_connections_count', $data ?? [], null);
391+
$this->setIfExists('total_active_connections_count', $data ?? [], null);
364392
}
365393

366394
/**
@@ -861,6 +889,114 @@ public function setExperimentCount($experiment_count)
861889

862890
return $this;
863891
}
892+
893+
/**
894+
* Gets active_experiment_count
895+
*
896+
* @return int|null
897+
*/
898+
public function getActiveExperimentCount()
899+
{
900+
return $this->container['active_experiment_count'];
901+
}
902+
903+
/**
904+
* Sets active_experiment_count
905+
*
906+
* @param int|null $active_experiment_count The number of active experiments using this metric group
907+
*
908+
* @return self
909+
*/
910+
public function setActiveExperimentCount($active_experiment_count)
911+
{
912+
if (is_null($active_experiment_count)) {
913+
throw new \InvalidArgumentException('non-nullable active_experiment_count cannot be null');
914+
}
915+
$this->container['active_experiment_count'] = $active_experiment_count;
916+
917+
return $this;
918+
}
919+
920+
/**
921+
* Gets active_guarded_rollout_count
922+
*
923+
* @return int|null
924+
*/
925+
public function getActiveGuardedRolloutCount()
926+
{
927+
return $this->container['active_guarded_rollout_count'];
928+
}
929+
930+
/**
931+
* Sets active_guarded_rollout_count
932+
*
933+
* @param int|null $active_guarded_rollout_count The number of active guarded rollouts using this metric group
934+
*
935+
* @return self
936+
*/
937+
public function setActiveGuardedRolloutCount($active_guarded_rollout_count)
938+
{
939+
if (is_null($active_guarded_rollout_count)) {
940+
throw new \InvalidArgumentException('non-nullable active_guarded_rollout_count cannot be null');
941+
}
942+
$this->container['active_guarded_rollout_count'] = $active_guarded_rollout_count;
943+
944+
return $this;
945+
}
946+
947+
/**
948+
* Gets total_connections_count
949+
*
950+
* @return int|null
951+
*/
952+
public function getTotalConnectionsCount()
953+
{
954+
return $this->container['total_connections_count'];
955+
}
956+
957+
/**
958+
* Sets total_connections_count
959+
*
960+
* @param int|null $total_connections_count The total number of connections using this metric group
961+
*
962+
* @return self
963+
*/
964+
public function setTotalConnectionsCount($total_connections_count)
965+
{
966+
if (is_null($total_connections_count)) {
967+
throw new \InvalidArgumentException('non-nullable total_connections_count cannot be null');
968+
}
969+
$this->container['total_connections_count'] = $total_connections_count;
970+
971+
return $this;
972+
}
973+
974+
/**
975+
* Gets total_active_connections_count
976+
*
977+
* @return int|null
978+
*/
979+
public function getTotalActiveConnectionsCount()
980+
{
981+
return $this->container['total_active_connections_count'];
982+
}
983+
984+
/**
985+
* Sets total_active_connections_count
986+
*
987+
* @param int|null $total_active_connections_count The total number of active connections using this metric group
988+
*
989+
* @return self
990+
*/
991+
public function setTotalActiveConnectionsCount($total_active_connections_count)
992+
{
993+
if (is_null($total_active_connections_count)) {
994+
throw new \InvalidArgumentException('non-nullable total_active_connections_count cannot be null');
995+
}
996+
$this->container['total_active_connections_count'] = $total_active_connections_count;
997+
998+
return $this;
999+
}
8641000
/**
8651001
* Returns true if offset exists. False otherwise.
8661002
*

test/Model/MetricGroupRepTest.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,40 @@ public function testPropertyExperimentCount()
214214
// TODO: implement
215215
self::markTestIncomplete('Not implemented');
216216
}
217+
218+
/**
219+
* Test attribute "active_experiment_count"
220+
*/
221+
public function testPropertyActiveExperimentCount()
222+
{
223+
// TODO: implement
224+
self::markTestIncomplete('Not implemented');
225+
}
226+
227+
/**
228+
* Test attribute "active_guarded_rollout_count"
229+
*/
230+
public function testPropertyActiveGuardedRolloutCount()
231+
{
232+
// TODO: implement
233+
self::markTestIncomplete('Not implemented');
234+
}
235+
236+
/**
237+
* Test attribute "total_connections_count"
238+
*/
239+
public function testPropertyTotalConnectionsCount()
240+
{
241+
// TODO: implement
242+
self::markTestIncomplete('Not implemented');
243+
}
244+
245+
/**
246+
* Test attribute "total_active_connections_count"
247+
*/
248+
public function testPropertyTotalActiveConnectionsCount()
249+
{
250+
// TODO: implement
251+
self::markTestIncomplete('Not implemented');
252+
}
217253
}

0 commit comments

Comments
 (0)