Skip to content

Commit fa54a75

Browse files
author
LaunchDarklyReleaseBot
committed
Version 7.0.0 automatically generated from ld-openapi.
1 parent 62bea7b commit fa54a75

File tree

474 files changed

+4829
-1442
lines changed

Some content is hidden

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

474 files changed

+4829
-1442
lines changed

.openapi-generator/FILES

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ docs/Model/Defaults.md
7171
docs/Model/DependentFlag.md
7272
docs/Model/DependentFlagEnvironment.md
7373
docs/Model/DependentFlagsByEnvironment.md
74+
docs/Model/DerivedAttribute.md
7475
docs/Model/Destination.md
7576
docs/Model/DestinationPost.md
7677
docs/Model/Destinations.md
@@ -92,8 +93,8 @@ docs/Model/ExpiringUserTargetError.md
9293
docs/Model/ExpiringUserTargetGetResponse.md
9394
docs/Model/ExpiringUserTargetItem.md
9495
docs/Model/ExpiringUserTargetPatchResponse.md
96+
docs/Model/Extinction.md
9597
docs/Model/ExtinctionCollectionRep.md
96-
docs/Model/ExtinctionRep.md
9798
docs/Model/FeatureFlag.md
9899
docs/Model/FeatureFlagBody.md
99100
docs/Model/FeatureFlagConfig.md
@@ -114,7 +115,6 @@ docs/Model/FlagStatusRep.md
114115
docs/Model/FlagSummary.md
115116
docs/Model/ForbiddenErrorRep.md
116117
docs/Model/HunkRep.md
117-
docs/Model/InlineResponse200.md
118118
docs/Model/IntegrationMetadata.md
119119
docs/Model/IntegrationStatus.md
120120
docs/Model/InvalidRequestErrorRep.md
@@ -132,6 +132,7 @@ docs/Model/MetricCollectionRep.md
132132
docs/Model/MetricListingRep.md
133133
docs/Model/MetricPost.md
134134
docs/Model/MetricRep.md
135+
docs/Model/MetricSeen.md
135136
docs/Model/Modification.md
136137
docs/Model/MultiEnvironmentDependentFlag.md
137138
docs/Model/MultiEnvironmentDependentFlags.md
@@ -208,12 +209,12 @@ docs/Model/UserAttributeNamesRep.md
208209
docs/Model/UserFlagSetting.md
209210
docs/Model/UserFlagSettings.md
210211
docs/Model/UserRecord.md
212+
docs/Model/UserRecordRep.md
211213
docs/Model/UserSegment.md
212214
docs/Model/UserSegmentRule.md
213215
docs/Model/UserSegments.md
214216
docs/Model/Users.md
215217
docs/Model/ValuePut.md
216-
docs/Model/Variate.md
217218
docs/Model/Variation.md
218219
docs/Model/VariationOrRolloutRep.md
219220
docs/Model/VariationSummary.md
@@ -293,6 +294,7 @@ lib/Model/Defaults.php
293294
lib/Model/DependentFlag.php
294295
lib/Model/DependentFlagEnvironment.php
295296
lib/Model/DependentFlagsByEnvironment.php
297+
lib/Model/DerivedAttribute.php
296298
lib/Model/Destination.php
297299
lib/Model/DestinationPost.php
298300
lib/Model/Destinations.php
@@ -314,8 +316,8 @@ lib/Model/ExpiringUserTargetError.php
314316
lib/Model/ExpiringUserTargetGetResponse.php
315317
lib/Model/ExpiringUserTargetItem.php
316318
lib/Model/ExpiringUserTargetPatchResponse.php
319+
lib/Model/Extinction.php
317320
lib/Model/ExtinctionCollectionRep.php
318-
lib/Model/ExtinctionRep.php
319321
lib/Model/FeatureFlag.php
320322
lib/Model/FeatureFlagBody.php
321323
lib/Model/FeatureFlagConfig.php
@@ -336,7 +338,6 @@ lib/Model/FlagStatusRep.php
336338
lib/Model/FlagSummary.php
337339
lib/Model/ForbiddenErrorRep.php
338340
lib/Model/HunkRep.php
339-
lib/Model/InlineResponse200.php
340341
lib/Model/IntegrationMetadata.php
341342
lib/Model/IntegrationStatus.php
342343
lib/Model/InvalidRequestErrorRep.php
@@ -354,6 +355,7 @@ lib/Model/MetricCollectionRep.php
354355
lib/Model/MetricListingRep.php
355356
lib/Model/MetricPost.php
356357
lib/Model/MetricRep.php
358+
lib/Model/MetricSeen.php
357359
lib/Model/ModelInterface.php
358360
lib/Model/Modification.php
359361
lib/Model/MultiEnvironmentDependentFlag.php
@@ -431,12 +433,12 @@ lib/Model/UserAttributeNamesRep.php
431433
lib/Model/UserFlagSetting.php
432434
lib/Model/UserFlagSettings.php
433435
lib/Model/UserRecord.php
436+
lib/Model/UserRecordRep.php
434437
lib/Model/UserSegment.php
435438
lib/Model/UserSegmentRule.php
436439
lib/Model/UserSegments.php
437440
lib/Model/Users.php
438441
lib/Model/ValuePut.php
439-
lib/Model/Variate.php
440442
lib/Model/Variation.php
441443
lib/Model/VariationOrRolloutRep.php
442444
lib/Model/VariationSummary.php
@@ -514,6 +516,7 @@ test/Model/DefaultsTest.php
514516
test/Model/DependentFlagEnvironmentTest.php
515517
test/Model/DependentFlagTest.php
516518
test/Model/DependentFlagsByEnvironmentTest.php
519+
test/Model/DerivedAttributeTest.php
517520
test/Model/DestinationPostTest.php
518521
test/Model/DestinationTest.php
519522
test/Model/DestinationsTest.php
@@ -536,7 +539,7 @@ test/Model/ExpiringUserTargetGetResponseTest.php
536539
test/Model/ExpiringUserTargetItemTest.php
537540
test/Model/ExpiringUserTargetPatchResponseTest.php
538541
test/Model/ExtinctionCollectionRepTest.php
539-
test/Model/ExtinctionRepTest.php
542+
test/Model/ExtinctionTest.php
540543
test/Model/FeatureFlagBodyTest.php
541544
test/Model/FeatureFlagConfigTest.php
542545
test/Model/FeatureFlagScheduledChangeTest.php
@@ -557,7 +560,6 @@ test/Model/FlagStatusRepTest.php
557560
test/Model/FlagSummaryTest.php
558561
test/Model/ForbiddenErrorRepTest.php
559562
test/Model/HunkRepTest.php
560-
test/Model/InlineResponse200Test.php
561563
test/Model/IntegrationMetadataTest.php
562564
test/Model/IntegrationStatusTest.php
563565
test/Model/InvalidRequestErrorRepTest.php
@@ -575,6 +577,7 @@ test/Model/MetricCollectionRepTest.php
575577
test/Model/MetricListingRepTest.php
576578
test/Model/MetricPostTest.php
577579
test/Model/MetricRepTest.php
580+
test/Model/MetricSeenTest.php
578581
test/Model/ModificationTest.php
579582
test/Model/MultiEnvironmentDependentFlagTest.php
580583
test/Model/MultiEnvironmentDependentFlagsTest.php
@@ -649,14 +652,14 @@ test/Model/UrlPostTest.php
649652
test/Model/UserAttributeNamesRepTest.php
650653
test/Model/UserFlagSettingTest.php
651654
test/Model/UserFlagSettingsTest.php
655+
test/Model/UserRecordRepTest.php
652656
test/Model/UserRecordTest.php
653657
test/Model/UserSegmentRuleTest.php
654658
test/Model/UserSegmentTest.php
655659
test/Model/UserSegmentsTest.php
656660
test/Model/UserTest.php
657661
test/Model/UsersTest.php
658662
test/Model/ValuePutTest.php
659-
test/Model/VariateTest.php
660663
test/Model/VariationOrRolloutRepTest.php
661664
test/Model/VariationSummaryTest.php
662665
test/Model/VariationTest.php

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.3.0-SNAPSHOT
1+
5.3.0

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ Paginated collections include `first`, `last`, `next`, and `prev` links containi
9999

100100
## Updates
101101

102-
Resources that accept partial updates use the `PATCH` verb, and support the [JSON Patch](http://tools.ietf.org/html/rfc6902) format. Some resources also support the [JSON Merge Patch](https://tools.ietf.org/html/rfc7386) format. In addition, some resources support optional comments that can be submitted with updates. Comments appear in outgoing webhooks, the audit log, and other integrations.
102+
Resources that accept partial updates use the `PATCH` verb, and support the [JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902) format. Some resources also support the [JSON Merge Patch](https://datatracker.ietf.org/doc/html/rfc7386) format. In addition, some resources support optional comments that can be submitted with updates. Comments appear in outgoing webhooks, the audit log, and other integrations.
103103

104104
### Updates via JSON Patch
105105

106-
[JSON Patch](http://tools.ietf.org/html/rfc6902) is a way to specify the modifications to perform on a resource. For example, in this feature flag representation:
106+
[JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902) is a way to specify the modifications to perform on a resource. For example, in this feature flag representation:
107107

108108
```json
109109
{
@@ -135,7 +135,7 @@ Attributes that aren't editable, like a resource's `_links`, have names that sta
135135

136136
### Updates via JSON Merge Patch
137137

138-
The API also supports the [JSON Merge Patch](https://tools.ietf.org/html/rfc7386) format, as well as the [Update feature flag](/tag/Feature-flags#operation/patchFeatureFlag) resource.
138+
The API also supports the [JSON Merge Patch](https://datatracker.ietf.org/doc/html/rfc7386) format, as well as the [Update feature flag](/tag/Feature-flags#operation/patchFeatureFlag) resource.
139139

140140
JSON Merge Patch is less expressive than JSON Patch but in many cases, it is simpler to construct a merge patch document. For example, you can change a feature flag's description with the following merge patch document:
141141

@@ -640,6 +640,7 @@ Class | Method | HTTP request | Description
640640
*WebhooksApi* | [**patchWebhook**](docs/Api/WebhooksApi.md#patchwebhook) | **PATCH** /api/v2/webhooks/{id} | Update webhook
641641
*WebhooksApi* | [**postWebhook**](docs/Api/WebhooksApi.md#postwebhook) | **POST** /api/v2/webhooks | Creates a webhook
642642
*WorkflowsBetaApi* | [**deleteWorkflow**](docs/Api/WorkflowsBetaApi.md#deleteworkflow) | **DELETE** /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/workflows/{workflowId} | Delete workflow
643+
*WorkflowsBetaApi* | [**getCustomWorkflow**](docs/Api/WorkflowsBetaApi.md#getcustomworkflow) | **GET** /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/workflows/{workflowId} | Get custom workflow
643644
*WorkflowsBetaApi* | [**getWorkflows**](docs/Api/WorkflowsBetaApi.md#getworkflows) | **GET** /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/workflows | Get workflows
644645
*WorkflowsBetaApi* | [**postWorkflow**](docs/Api/WorkflowsBetaApi.md#postworkflow) | **POST** /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/workflows | Create workflow
645646

@@ -688,6 +689,7 @@ Class | Method | HTTP request | Description
688689
- [DependentFlag](docs/Model/DependentFlag.md)
689690
- [DependentFlagEnvironment](docs/Model/DependentFlagEnvironment.md)
690691
- [DependentFlagsByEnvironment](docs/Model/DependentFlagsByEnvironment.md)
692+
- [DerivedAttribute](docs/Model/DerivedAttribute.md)
691693
- [Destination](docs/Model/Destination.md)
692694
- [DestinationPost](docs/Model/DestinationPost.md)
693695
- [Destinations](docs/Model/Destinations.md)
@@ -709,8 +711,8 @@ Class | Method | HTTP request | Description
709711
- [ExpiringUserTargetGetResponse](docs/Model/ExpiringUserTargetGetResponse.md)
710712
- [ExpiringUserTargetItem](docs/Model/ExpiringUserTargetItem.md)
711713
- [ExpiringUserTargetPatchResponse](docs/Model/ExpiringUserTargetPatchResponse.md)
714+
- [Extinction](docs/Model/Extinction.md)
712715
- [ExtinctionCollectionRep](docs/Model/ExtinctionCollectionRep.md)
713-
- [ExtinctionRep](docs/Model/ExtinctionRep.md)
714716
- [FeatureFlag](docs/Model/FeatureFlag.md)
715717
- [FeatureFlagBody](docs/Model/FeatureFlagBody.md)
716718
- [FeatureFlagConfig](docs/Model/FeatureFlagConfig.md)
@@ -731,7 +733,6 @@ Class | Method | HTTP request | Description
731733
- [FlagSummary](docs/Model/FlagSummary.md)
732734
- [ForbiddenErrorRep](docs/Model/ForbiddenErrorRep.md)
733735
- [HunkRep](docs/Model/HunkRep.md)
734-
- [InlineResponse200](docs/Model/InlineResponse200.md)
735736
- [IntegrationMetadata](docs/Model/IntegrationMetadata.md)
736737
- [IntegrationStatus](docs/Model/IntegrationStatus.md)
737738
- [InvalidRequestErrorRep](docs/Model/InvalidRequestErrorRep.md)
@@ -749,6 +750,7 @@ Class | Method | HTTP request | Description
749750
- [MetricListingRep](docs/Model/MetricListingRep.md)
750751
- [MetricPost](docs/Model/MetricPost.md)
751752
- [MetricRep](docs/Model/MetricRep.md)
753+
- [MetricSeen](docs/Model/MetricSeen.md)
752754
- [Modification](docs/Model/Modification.md)
753755
- [MultiEnvironmentDependentFlag](docs/Model/MultiEnvironmentDependentFlag.md)
754756
- [MultiEnvironmentDependentFlags](docs/Model/MultiEnvironmentDependentFlags.md)
@@ -825,12 +827,12 @@ Class | Method | HTTP request | Description
825827
- [UserFlagSetting](docs/Model/UserFlagSetting.md)
826828
- [UserFlagSettings](docs/Model/UserFlagSettings.md)
827829
- [UserRecord](docs/Model/UserRecord.md)
830+
- [UserRecordRep](docs/Model/UserRecordRep.md)
828831
- [UserSegment](docs/Model/UserSegment.md)
829832
- [UserSegmentRule](docs/Model/UserSegmentRule.md)
830833
- [UserSegments](docs/Model/UserSegments.md)
831834
- [Users](docs/Model/Users.md)
832835
- [ValuePut](docs/Model/ValuePut.md)
833-
- [Variate](docs/Model/Variate.md)
834836
- [Variation](docs/Model/Variation.md)
835837
- [VariationOrRolloutRep](docs/Model/VariationOrRolloutRep.md)
836838
- [VariationSummary](docs/Model/VariationSummary.md)
@@ -867,5 +869,5 @@ [email protected]
867869
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
868870

869871
- API version: `2.0`
870-
- Package version: `6.0.2`
872+
- Package version: `7.0.0`
871873
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`

composer.json

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

docs/Api/CodeReferencesApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ Name | Type | Description | Notes
661661
## `postExtinction()`
662662

663663
```php
664-
postExtinction($repo, $branch, $extinction_rep)
664+
postExtinction($repo, $branch, $extinction)
665665
```
666666

667667
Create extinction
@@ -689,10 +689,10 @@ $apiInstance = new LaunchDarklyApi\Api\CodeReferencesApi(
689689
);
690690
$repo = 'repo_example'; // string | The repository name
691691
$branch = 'branch_example'; // string | The url-encoded branch name
692-
$extinction_rep = array(new \LaunchDarklyApi\Model\ExtinctionRep()); // \LaunchDarklyApi\Model\ExtinctionRep[]
692+
$extinction = array(new \LaunchDarklyApi\Model\Extinction()); // \LaunchDarklyApi\Model\Extinction[]
693693

694694
try {
695-
$apiInstance->postExtinction($repo, $branch, $extinction_rep);
695+
$apiInstance->postExtinction($repo, $branch, $extinction);
696696
} catch (Exception $e) {
697697
echo 'Exception when calling CodeReferencesApi->postExtinction: ', $e->getMessage(), PHP_EOL;
698698
}
@@ -704,7 +704,7 @@ Name | Type | Description | Notes
704704
------------- | ------------- | ------------- | -------------
705705
**repo** | **string**| The repository name |
706706
**branch** | **string**| The url-encoded branch name |
707-
**extinction_rep** | [**\LaunchDarklyApi\Model\ExtinctionRep[]**](../Model/ExtinctionRep.md)| |
707+
**extinction** | [**\LaunchDarklyApi\Model\Extinction[]**](../Model/Extinction.md)| |
708708

709709
### Return type
710710

docs/Api/OtherApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ void (empty response body)
130130
## `getRoot()`
131131

132132
```php
133-
getRoot(): array<string,\LaunchDarklyApi\Model\InlineResponse200>
133+
getRoot(): array<string,\LaunchDarklyApi\Model\Link>
134134
```
135135

136136
Root resource
@@ -171,7 +171,7 @@ This endpoint does not need any parameter.
171171

172172
### Return type
173173

174-
[**array<string,\LaunchDarklyApi\Model\InlineResponse200>**](../Model/InlineResponse200.md)
174+
[**array<string,\LaunchDarklyApi\Model\Link>**](../Model/Link.md)
175175

176176
### Authorization
177177

docs/Api/ProjectsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ patchProject($project_key, $patch_operation): \LaunchDarklyApi\Model\Project
201201

202202
Update project
203203

204-
Update a project. Requires a [JSON Patch](http://tools.ietf.org/html/rfc6902) representation of the desired changes to the project.
204+
Update a project. Requires a [JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes to the project.
205205

206206
### Example
207207

docs/Api/UsersApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Name | Type | Description | Notes
156156
## `getUser()`
157157

158158
```php
159-
getUser($proj_key, $env_key, $key): \LaunchDarklyApi\Model\User
159+
getUser($proj_key, $env_key, $key): \LaunchDarklyApi\Model\UserRecord
160160
```
161161

162162
Get user
@@ -204,7 +204,7 @@ Name | Type | Description | Notes
204204

205205
### Return type
206206

207-
[**\LaunchDarklyApi\Model\User**](../Model/User.md)
207+
[**\LaunchDarklyApi\Model\UserRecord**](../Model/UserRecord.md)
208208

209209
### Authorization
210210

docs/Api/WorkflowsBetaApi.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All URIs are relative to https://app.launchdarkly.com.
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**deleteWorkflow()**](WorkflowsBetaApi.md#deleteWorkflow) | **DELETE** /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/workflows/{workflowId} | Delete workflow
8+
[**getCustomWorkflow()**](WorkflowsBetaApi.md#getCustomWorkflow) | **GET** /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/workflows/{workflowId} | Get custom workflow
89
[**getWorkflows()**](WorkflowsBetaApi.md#getWorkflows) | **GET** /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/workflows | Get workflows
910
[**postWorkflow()**](WorkflowsBetaApi.md#postWorkflow) | **POST** /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/workflows | Create workflow
1011

@@ -76,6 +77,74 @@ void (empty response body)
7677
[[Back to Model list]](../../README.md#models)
7778
[[Back to README]](../../README.md)
7879

80+
## `getCustomWorkflow()`
81+
82+
```php
83+
getCustomWorkflow($project_key, $feature_flag_key, $environment_key, $workflow_id): \LaunchDarklyApi\Model\CustomWorkflowOutputRep
84+
```
85+
86+
Get custom workflow
87+
88+
Get a specific workflow by ID
89+
90+
### Example
91+
92+
```php
93+
<?php
94+
require_once(__DIR__ . '/vendor/autoload.php');
95+
96+
97+
// Configure API key authorization: ApiKey
98+
$config = LaunchDarklyApi\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
99+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
100+
// $config = LaunchDarklyApi\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
101+
102+
103+
$apiInstance = new LaunchDarklyApi\Api\WorkflowsBetaApi(
104+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
105+
// This is optional, `GuzzleHttp\Client` will be used as default.
106+
new GuzzleHttp\Client(),
107+
$config
108+
);
109+
$project_key = 'project_key_example'; // string | The project key
110+
$feature_flag_key = 'feature_flag_key_example'; // string | The feature flag's key
111+
$environment_key = 'environment_key_example'; // string | The environment key
112+
$workflow_id = 'workflow_id_example'; // string | The workflow ID
113+
114+
try {
115+
$result = $apiInstance->getCustomWorkflow($project_key, $feature_flag_key, $environment_key, $workflow_id);
116+
print_r($result);
117+
} catch (Exception $e) {
118+
echo 'Exception when calling WorkflowsBetaApi->getCustomWorkflow: ', $e->getMessage(), PHP_EOL;
119+
}
120+
```
121+
122+
### Parameters
123+
124+
Name | Type | Description | Notes
125+
------------- | ------------- | ------------- | -------------
126+
**project_key** | **string**| The project key |
127+
**feature_flag_key** | **string**| The feature flag&#39;s key |
128+
**environment_key** | **string**| The environment key |
129+
**workflow_id** | **string**| The workflow ID |
130+
131+
### Return type
132+
133+
[**\LaunchDarklyApi\Model\CustomWorkflowOutputRep**](../Model/CustomWorkflowOutputRep.md)
134+
135+
### Authorization
136+
137+
[ApiKey](../../README.md#ApiKey)
138+
139+
### HTTP request headers
140+
141+
- **Content-Type**: Not defined
142+
- **Accept**: `application/json`
143+
144+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
145+
[[Back to Model list]](../../README.md#models)
146+
[[Back to README]](../../README.md)
147+
79148
## `getWorkflows()`
80149

81150
```php

0 commit comments

Comments
 (0)