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

Commit 47670fa

Browse files
author
LaunchDarklyReleaseBot
committed
Version 8.0.0 automatically generated from ld-openapi.
1 parent a2048bf commit 47670fa

623 files changed

Lines changed: 32869 additions & 3228 deletions

File tree

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: 120 additions & 33 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 121 additions & 70 deletions
Large diffs are not rendered by default.

composer.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/Api/AccountUsageBetaApi.md

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

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**getEvaluationsUsage()**](AccountUsageBetaApi.md#getEvaluationsUsage) | **GET** /api/v2/usage/evaluations/{projKey}/{envKey}/{flagKey} | Get evaluations usage
7+
[**getEvaluationsUsage()**](AccountUsageBetaApi.md#getEvaluationsUsage) | **GET** /api/v2/usage/evaluations/{projectKey}/{environmentKey}/{featureFlagKey} | Get evaluations usage
88
[**getEventsUsage()**](AccountUsageBetaApi.md#getEventsUsage) | **GET** /api/v2/usage/events/{type} | Get events usage
99
[**getMauSdksByType()**](AccountUsageBetaApi.md#getMauSdksByType) | **GET** /api/v2/usage/mau/sdks | Get MAU SDKs by type
1010
[**getMauUsage()**](AccountUsageBetaApi.md#getMauUsage) | **GET** /api/v2/usage/mau | Get MAU usage
@@ -17,7 +17,7 @@ Method | HTTP request | Description
1717
## `getEvaluationsUsage()`
1818

1919
```php
20-
getEvaluationsUsage($proj_key, $env_key, $flag_key, $from, $to, $tz): \LaunchDarklyApi\Model\SeriesListRep
20+
getEvaluationsUsage($project_key, $environment_key, $feature_flag_key, $from, $to, $tz): \LaunchDarklyApi\Model\SeriesListRep
2121
```
2222

2323
Get evaluations usage
@@ -43,15 +43,15 @@ $apiInstance = new LaunchDarklyApi\Api\AccountUsageBetaApi(
4343
new GuzzleHttp\Client(),
4444
$config
4545
);
46-
$proj_key = 'proj_key_example'; // string | The project key.
47-
$env_key = 'env_key_example'; // string | The environment key.
48-
$flag_key = 'flag_key_example'; // string | The feature flag's key.
46+
$project_key = 'project_key_example'; // string | The project key
47+
$environment_key = 'environment_key_example'; // string | The environment key
48+
$feature_flag_key = 'feature_flag_key_example'; // string | The feature flag key
4949
$from = 'from_example'; // string | The series of data returned starts from this timestamp. Defaults to 30 days ago.
5050
$to = 'to_example'; // string | The series of data returned ends at this timestamp. Defaults to the current time.
5151
$tz = 'tz_example'; // string | The timezone to use for breaks between days when returning daily data.
5252

5353
try {
54-
$result = $apiInstance->getEvaluationsUsage($proj_key, $env_key, $flag_key, $from, $to, $tz);
54+
$result = $apiInstance->getEvaluationsUsage($project_key, $environment_key, $feature_flag_key, $from, $to, $tz);
5555
print_r($result);
5656
} catch (Exception $e) {
5757
echo 'Exception when calling AccountUsageBetaApi->getEvaluationsUsage: ', $e->getMessage(), PHP_EOL;
@@ -62,9 +62,9 @@ try {
6262

6363
Name | Type | Description | Notes
6464
------------- | ------------- | ------------- | -------------
65-
**proj_key** | **string**| The project key. |
66-
**env_key** | **string**| The environment key. |
67-
**flag_key** | **string**| The feature flag's key. |
65+
**project_key** | **string**| The project key |
66+
**environment_key** | **string**| The environment key |
67+
**feature_flag_key** | **string**| The feature flag key |
6868
**from** | **string**| The series of data returned starts from this timestamp. Defaults to 30 days ago. | [optional]
6969
**to** | **string**| The series of data returned ends at this timestamp. Defaults to the current time. | [optional]
7070
**tz** | **string**| The timezone to use for breaks between days when returning daily data. | [optional]

docs/Api/ApprovalsApi.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ $apiInstance = new LaunchDarklyApi\Api\ApprovalsApi(
4343
$config
4444
);
4545
$project_key = 'project_key_example'; // string | The project key
46-
$feature_flag_key = 'feature_flag_key_example'; // string | The feature flag's key
46+
$feature_flag_key = 'feature_flag_key_example'; // string | The feature flag key
4747
$environment_key = 'environment_key_example'; // string | The environment key
4848
$id = 'id_example'; // string | The feature flag approval request ID
4949

@@ -59,7 +59,7 @@ try {
5959
Name | Type | Description | Notes
6060
------------- | ------------- | ------------- | -------------
6161
**project_key** | **string**| The project key |
62-
**feature_flag_key** | **string**| The feature flag's key |
62+
**feature_flag_key** | **string**| The feature flag key |
6363
**environment_key** | **string**| The environment key |
6464
**id** | **string**| The feature flag approval request ID |
6565

@@ -110,7 +110,7 @@ $apiInstance = new LaunchDarklyApi\Api\ApprovalsApi(
110110
$config
111111
);
112112
$project_key = 'project_key_example'; // string | The project key
113-
$feature_flag_key = 'feature_flag_key_example'; // string | The feature flag's key
113+
$feature_flag_key = 'feature_flag_key_example'; // string | The feature flag key
114114
$environment_key = 'environment_key_example'; // string | The environment key
115115
$id = 'id_example'; // string | The feature flag approval request ID
116116

@@ -127,7 +127,7 @@ try {
127127
Name | Type | Description | Notes
128128
------------- | ------------- | ------------- | -------------
129129
**project_key** | **string**| The project key |
130-
**feature_flag_key** | **string**| The feature flag's key |
130+
**feature_flag_key** | **string**| The feature flag key |
131131
**environment_key** | **string**| The environment key |
132132
**id** | **string**| The feature flag approval request ID |
133133

@@ -178,7 +178,7 @@ $apiInstance = new LaunchDarklyApi\Api\ApprovalsApi(
178178
$config
179179
);
180180
$project_key = 'project_key_example'; // string | The project key
181-
$feature_flag_key = 'feature_flag_key_example'; // string | The feature flag's key
181+
$feature_flag_key = 'feature_flag_key_example'; // string | The feature flag key
182182
$environment_key = 'environment_key_example'; // string | The environment key
183183

184184
try {
@@ -194,7 +194,7 @@ try {
194194
Name | Type | Description | Notes
195195
------------- | ------------- | ------------- | -------------
196196
**project_key** | **string**| The project key |
197-
**feature_flag_key** | **string**| The feature flag's key |
197+
**feature_flag_key** | **string**| The feature flag key |
198198
**environment_key** | **string**| The environment key |
199199

200200
### Return type
@@ -244,7 +244,7 @@ $apiInstance = new LaunchDarklyApi\Api\ApprovalsApi(
244244
$config
245245
);
246246
$project_key = 'project_key_example'; // string | The project key
247-
$feature_flag_key = 'feature_flag_key_example'; // string | The feature flag's key
247+
$feature_flag_key = 'feature_flag_key_example'; // string | The feature flag key
248248
$environment_key = 'environment_key_example'; // string | The environment key
249249
$create_flag_config_approval_request_request = new \LaunchDarklyApi\Model\CreateFlagConfigApprovalRequestRequest(); // \LaunchDarklyApi\Model\CreateFlagConfigApprovalRequestRequest
250250

@@ -261,7 +261,7 @@ try {
261261
Name | Type | Description | Notes
262262
------------- | ------------- | ------------- | -------------
263263
**project_key** | **string**| The project key |
264-
**feature_flag_key** | **string**| The feature flag's key |
264+
**feature_flag_key** | **string**| The feature flag key |
265265
**environment_key** | **string**| The environment key |
266266
**create_flag_config_approval_request_request** | [**\LaunchDarklyApi\Model\CreateFlagConfigApprovalRequestRequest**](../Model/CreateFlagConfigApprovalRequestRequest.md)| |
267267

@@ -312,7 +312,7 @@ $apiInstance = new LaunchDarklyApi\Api\ApprovalsApi(
312312
$config
313313
);
314314
$project_key = 'project_key_example'; // string | The project key
315-
$feature_flag_key = 'feature_flag_key_example'; // string | The feature flag's key
315+
$feature_flag_key = 'feature_flag_key_example'; // string | The feature flag key
316316
$environment_key = 'environment_key_example'; // string | The environment key
317317
$id = 'id_example'; // string | The feature flag approval request ID
318318
$post_approval_request_apply_request = new \LaunchDarklyApi\Model\PostApprovalRequestApplyRequest(); // \LaunchDarklyApi\Model\PostApprovalRequestApplyRequest
@@ -330,7 +330,7 @@ try {
330330
Name | Type | Description | Notes
331331
------------- | ------------- | ------------- | -------------
332332
**project_key** | **string**| The project key |
333-
**feature_flag_key** | **string**| The feature flag's key |
333+
**feature_flag_key** | **string**| The feature flag key |
334334
**environment_key** | **string**| The environment key |
335335
**id** | **string**| The feature flag approval request ID |
336336
**post_approval_request_apply_request** | [**\LaunchDarklyApi\Model\PostApprovalRequestApplyRequest**](../Model/PostApprovalRequestApplyRequest.md)| |
@@ -382,7 +382,7 @@ $apiInstance = new LaunchDarklyApi\Api\ApprovalsApi(
382382
$config
383383
);
384384
$project_key = 'project_key_example'; // string | The project key
385-
$feature_flag_key = 'feature_flag_key_example'; // string | The feature flag's key
385+
$feature_flag_key = 'feature_flag_key_example'; // string | The feature flag key
386386
$environment_key = 'environment_key_example'; // string | The environment key
387387
$id = 'id_example'; // string | The feature flag approval request ID
388388
$post_approval_request_review_request = new \LaunchDarklyApi\Model\PostApprovalRequestReviewRequest(); // \LaunchDarklyApi\Model\PostApprovalRequestReviewRequest
@@ -400,7 +400,7 @@ try {
400400
Name | Type | Description | Notes
401401
------------- | ------------- | ------------- | -------------
402402
**project_key** | **string**| The project key |
403-
**feature_flag_key** | **string**| The feature flag's key |
403+
**feature_flag_key** | **string**| The feature flag key |
404404
**environment_key** | **string**| The environment key |
405405
**id** | **string**| The feature flag approval request ID |
406406
**post_approval_request_review_request** | [**\LaunchDarklyApi\Model\PostApprovalRequestReviewRequest**](../Model/PostApprovalRequestReviewRequest.md)| |
@@ -452,7 +452,7 @@ $apiInstance = new LaunchDarklyApi\Api\ApprovalsApi(
452452
$config
453453
);
454454
$project_key = 'project_key_example'; // string | The project key
455-
$feature_flag_key = 'feature_flag_key_example'; // string | The feature flag's key
455+
$feature_flag_key = 'feature_flag_key_example'; // string | The feature flag key
456456
$environment_key = 'environment_key_example'; // string | The environment key
457457
$create_copy_flag_config_approval_request_request = new \LaunchDarklyApi\Model\CreateCopyFlagConfigApprovalRequestRequest(); // \LaunchDarklyApi\Model\CreateCopyFlagConfigApprovalRequestRequest
458458

@@ -469,7 +469,7 @@ try {
469469
Name | Type | Description | Notes
470470
------------- | ------------- | ------------- | -------------
471471
**project_key** | **string**| The project key |
472-
**feature_flag_key** | **string**| The feature flag's key |
472+
**feature_flag_key** | **string**| The feature flag key |
473473
**environment_key** | **string**| The environment key |
474474
**create_copy_flag_config_approval_request_request** | [**\LaunchDarklyApi\Model\CreateCopyFlagConfigApprovalRequestRequest**](../Model/CreateCopyFlagConfigApprovalRequestRequest.md)| |
475475

docs/Api/CodeReferencesApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Method | HTTP request | Description
1212
[**getRepositories()**](CodeReferencesApi.md#getRepositories) | **GET** /api/v2/code-refs/repositories | List repositories
1313
[**getRepository()**](CodeReferencesApi.md#getRepository) | **GET** /api/v2/code-refs/repositories/{repo} | Get repository
1414
[**getRootStatistic()**](CodeReferencesApi.md#getRootStatistic) | **GET** /api/v2/code-refs/statistics | Get links to code reference repositories for each project
15-
[**getStatistics()**](CodeReferencesApi.md#getStatistics) | **GET** /api/v2/code-refs/statistics/{projKey} | Get number of code references for flags
15+
[**getStatistics()**](CodeReferencesApi.md#getStatistics) | **GET** /api/v2/code-refs/statistics/{projectKey} | Get number of code references for flags
1616
[**patchRepository()**](CodeReferencesApi.md#patchRepository) | **PATCH** /api/v2/code-refs/repositories/{repo} | Update repository
1717
[**postExtinction()**](CodeReferencesApi.md#postExtinction) | **POST** /api/v2/code-refs/repositories/{repo}/branches/{branch}/extinction-events | Create extinction
1818
[**postRepository()**](CodeReferencesApi.md#postRepository) | **POST** /api/v2/code-refs/repositories | Create repository
@@ -537,7 +537,7 @@ This endpoint does not need any parameter.
537537
## `getStatistics()`
538538

539539
```php
540-
getStatistics($proj_key, $flag_key): \LaunchDarklyApi\Model\StatisticCollectionRep
540+
getStatistics($project_key, $flag_key): \LaunchDarklyApi\Model\StatisticCollectionRep
541541
```
542542

543543
Get number of code references for flags
@@ -563,11 +563,11 @@ $apiInstance = new LaunchDarklyApi\Api\CodeReferencesApi(
563563
new GuzzleHttp\Client(),
564564
$config
565565
);
566-
$proj_key = 'proj_key_example'; // string | The project key
566+
$project_key = 'project_key_example'; // string | The project key
567567
$flag_key = 'flag_key_example'; // string | Filter results to a specific flag key
568568

569569
try {
570-
$result = $apiInstance->getStatistics($proj_key, $flag_key);
570+
$result = $apiInstance->getStatistics($project_key, $flag_key);
571571
print_r($result);
572572
} catch (Exception $e) {
573573
echo 'Exception when calling CodeReferencesApi->getStatistics: ', $e->getMessage(), PHP_EOL;
@@ -578,7 +578,7 @@ try {
578578

579579
Name | Type | Description | Notes
580580
------------- | ------------- | ------------- | -------------
581-
**proj_key** | **string**| The project key |
581+
**project_key** | **string**| The project key |
582582
**flag_key** | **string**| Filter results to a specific flag key | [optional]
583583

584584
### Return type

docs/Api/CustomRolesApi.md

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

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**deleteCustomRole()**](CustomRolesApi.md#deleteCustomRole) | **DELETE** /api/v2/roles/{key} | Delete custom role
8-
[**getCustomRole()**](CustomRolesApi.md#getCustomRole) | **GET** /api/v2/roles/{key} | Get custom role
7+
[**deleteCustomRole()**](CustomRolesApi.md#deleteCustomRole) | **DELETE** /api/v2/roles/{customRoleKey} | Delete custom role
8+
[**getCustomRole()**](CustomRolesApi.md#getCustomRole) | **GET** /api/v2/roles/{customRoleKey} | Get custom role
99
[**getCustomRoles()**](CustomRolesApi.md#getCustomRoles) | **GET** /api/v2/roles | List custom roles
10-
[**patchCustomRole()**](CustomRolesApi.md#patchCustomRole) | **PATCH** /api/v2/roles/{key} | Update custom role
10+
[**patchCustomRole()**](CustomRolesApi.md#patchCustomRole) | **PATCH** /api/v2/roles/{customRoleKey} | Update custom role
1111
[**postCustomRole()**](CustomRolesApi.md#postCustomRole) | **POST** /api/v2/roles | Create custom role
1212

1313

1414
## `deleteCustomRole()`
1515

1616
```php
17-
deleteCustomRole($key)
17+
deleteCustomRole($custom_role_key)
1818
```
1919

2020
Delete custom role
@@ -40,10 +40,10 @@ $apiInstance = new LaunchDarklyApi\Api\CustomRolesApi(
4040
new GuzzleHttp\Client(),
4141
$config
4242
);
43-
$key = 'key_example'; // string | The key of the custom role to delete
43+
$custom_role_key = 'custom_role_key_example'; // string | The custom role key
4444

4545
try {
46-
$apiInstance->deleteCustomRole($key);
46+
$apiInstance->deleteCustomRole($custom_role_key);
4747
} catch (Exception $e) {
4848
echo 'Exception when calling CustomRolesApi->deleteCustomRole: ', $e->getMessage(), PHP_EOL;
4949
}
@@ -53,7 +53,7 @@ try {
5353

5454
Name | Type | Description | Notes
5555
------------- | ------------- | ------------- | -------------
56-
**key** | **string**| The key of the custom role to delete |
56+
**custom_role_key** | **string**| The custom role key |
5757

5858
### Return type
5959

@@ -75,7 +75,7 @@ void (empty response body)
7575
## `getCustomRole()`
7676

7777
```php
78-
getCustomRole($key): \LaunchDarklyApi\Model\CustomRole
78+
getCustomRole($custom_role_key): \LaunchDarklyApi\Model\CustomRole
7979
```
8080

8181
Get custom role
@@ -101,10 +101,10 @@ $apiInstance = new LaunchDarklyApi\Api\CustomRolesApi(
101101
new GuzzleHttp\Client(),
102102
$config
103103
);
104-
$key = 'key_example'; // string | The custom role's key or ID
104+
$custom_role_key = 'custom_role_key_example'; // string | The custom role key or ID
105105

106106
try {
107-
$result = $apiInstance->getCustomRole($key);
107+
$result = $apiInstance->getCustomRole($custom_role_key);
108108
print_r($result);
109109
} catch (Exception $e) {
110110
echo 'Exception when calling CustomRolesApi->getCustomRole: ', $e->getMessage(), PHP_EOL;
@@ -115,7 +115,7 @@ try {
115115

116116
Name | Type | Description | Notes
117117
------------- | ------------- | ------------- | -------------
118-
**key** | **string**| The custom role's key or ID |
118+
**custom_role_key** | **string**| The custom role key or ID |
119119

120120
### Return type
121121

@@ -196,12 +196,12 @@ This endpoint does not need any parameter.
196196
## `patchCustomRole()`
197197

198198
```php
199-
patchCustomRole($key, $patch_with_comment): \LaunchDarklyApi\Model\CustomRole
199+
patchCustomRole($custom_role_key, $patch_with_comment): \LaunchDarklyApi\Model\CustomRole
200200
```
201201

202202
Update custom role
203203

204-
Update a single custom role. The request must be a valid JSON Patch document describing the changes to be made to the custom role.
204+
Update a single custom role. The request must be a valid JSON Patch document describing the changes to be made to the custom role. To add an element to the `policy` array, set the `path` to `/policy` and then append `/<array index>`. Using `/0` adds to the beginning of the array.
205205

206206
### Example
207207

@@ -222,11 +222,11 @@ $apiInstance = new LaunchDarklyApi\Api\CustomRolesApi(
222222
new GuzzleHttp\Client(),
223223
$config
224224
);
225-
$key = 'key_example'; // string | The key of the custom role to update
226-
$patch_with_comment = new \LaunchDarklyApi\Model\PatchWithComment(); // \LaunchDarklyApi\Model\PatchWithComment
225+
$custom_role_key = 'custom_role_key_example'; // string | The custom role key
226+
$patch_with_comment = {"patch":[{"op":"add","path":"/policy/0","value":{"actions":["updateOn"],"effect":"allow","resources":["proj/*:env/qa:flag/*"]}}]}; // \LaunchDarklyApi\Model\PatchWithComment
227227

228228
try {
229-
$result = $apiInstance->patchCustomRole($key, $patch_with_comment);
229+
$result = $apiInstance->patchCustomRole($custom_role_key, $patch_with_comment);
230230
print_r($result);
231231
} catch (Exception $e) {
232232
echo 'Exception when calling CustomRolesApi->patchCustomRole: ', $e->getMessage(), PHP_EOL;
@@ -237,7 +237,7 @@ try {
237237

238238
Name | Type | Description | Notes
239239
------------- | ------------- | ------------- | -------------
240-
**key** | **string**| The key of the custom role to update |
240+
**custom_role_key** | **string**| The custom role key |
241241
**patch_with_comment** | [**\LaunchDarklyApi\Model\PatchWithComment**](../Model/PatchWithComment.md)| |
242242

243243
### Return type
@@ -286,7 +286,7 @@ $apiInstance = new LaunchDarklyApi\Api\CustomRolesApi(
286286
new GuzzleHttp\Client(),
287287
$config
288288
);
289-
$custom_role_post = new \LaunchDarklyApi\Model\CustomRolePost(); // \LaunchDarklyApi\Model\CustomRolePost
289+
$custom_role_post = {"basePermissions":"reader","description":"A role for members of the ops team","key":"ops-team","name":"Ops team","policy":[{"actions":["updateOn"],"effect":"allow","resources":["proj/*:env/production:flag/*"]}]}; // \LaunchDarklyApi\Model\CustomRolePost
290290

291291
try {
292292
$result = $apiInstance->postCustomRole($custom_role_post);

0 commit comments

Comments
 (0)