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

Commit a2048bf

Browse files
author
LaunchDarklyReleaseBot
committed
Version 7.1.1 automatically generated from ld-openapi.
1 parent b3cf08e commit a2048bf

19 files changed

Lines changed: 477 additions & 65 deletions

.openapi-generator/FILES

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ docs/Model/MemberImportItemRep.md
136136
docs/Model/MemberPermissionGrantSummaryRep.md
137137
docs/Model/MemberSummaryRep.md
138138
docs/Model/MemberTeamSummaryRep.md
139-
docs/Model/MemberTeamsFormPost.md
139+
docs/Model/MemberTeamsPostInput.md
140140
docs/Model/Members.md
141141
docs/Model/MethodNotAllowedErrorRep.md
142142
docs/Model/MetricCollectionRep.md
@@ -376,7 +376,7 @@ lib/Model/MemberImportItemRep.php
376376
lib/Model/MemberPermissionGrantSummaryRep.php
377377
lib/Model/MemberSummaryRep.php
378378
lib/Model/MemberTeamSummaryRep.php
379-
lib/Model/MemberTeamsFormPost.php
379+
lib/Model/MemberTeamsPostInput.php
380380
lib/Model/Members.php
381381
lib/Model/MethodNotAllowedErrorRep.php
382382
lib/Model/MetricCollectionRep.php
@@ -614,7 +614,7 @@ test/Model/MemberImportItemRepTest.php
614614
test/Model/MemberPermissionGrantSummaryRepTest.php
615615
test/Model/MemberSummaryRepTest.php
616616
test/Model/MemberTeamSummaryRepTest.php
617-
test/Model/MemberTeamsFormPostTest.php
617+
test/Model/MemberTeamsPostInputTest.php
618618
test/Model/MemberTest.php
619619
test/Model/MembersTest.php
620620
test/Model/MethodNotAllowedErrorRepTest.php

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ Class | Method | HTTP request | Description
764764
- [MemberPermissionGrantSummaryRep](docs/Model/MemberPermissionGrantSummaryRep.md)
765765
- [MemberSummaryRep](docs/Model/MemberSummaryRep.md)
766766
- [MemberTeamSummaryRep](docs/Model/MemberTeamSummaryRep.md)
767-
- [MemberTeamsFormPost](docs/Model/MemberTeamsFormPost.md)
767+
- [MemberTeamsPostInput](docs/Model/MemberTeamsPostInput.md)
768768
- [Members](docs/Model/Members.md)
769769
- [MethodNotAllowedErrorRep](docs/Model/MethodNotAllowedErrorRep.md)
770770
- [MetricCollectionRep](docs/Model/MetricCollectionRep.md)
@@ -896,5 +896,5 @@ support@launchdarkly.com
896896
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
897897

898898
- API version: `2.0`
899-
- Package version: `7.1.0`
899+
- Package version: `7.1.1`
900900
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`

composer.json

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

docs/Api/AccountMembersApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ $apiInstance = new LaunchDarklyApi\Api\AccountMembersApi(
233233
$config
234234
);
235235
$id = 'id_example'; // string | The member ID
236-
$patch_operation = array(new \LaunchDarklyApi\Model\PatchOperation()); // \LaunchDarklyApi\Model\PatchOperation[]
236+
$patch_operation = [{"op":"add","path":"/role","value":"writer"}]; // \LaunchDarklyApi\Model\PatchOperation[]
237237

238238
try {
239239
$result = $apiInstance->patchMember($id, $patch_operation);
@@ -270,7 +270,7 @@ Name | Type | Description | Notes
270270
## `postMemberTeams()`
271271

272272
```php
273-
postMemberTeams($id, $member_teams_form_post): \LaunchDarklyApi\Model\Member
273+
postMemberTeams($id, $member_teams_post_input): \LaunchDarklyApi\Model\Member
274274
```
275275

276276
Add member to teams
@@ -297,10 +297,10 @@ $apiInstance = new LaunchDarklyApi\Api\AccountMembersApi(
297297
$config
298298
);
299299
$id = 'id_example'; // string | The member ID
300-
$member_teams_form_post = new \LaunchDarklyApi\Model\MemberTeamsFormPost(); // \LaunchDarklyApi\Model\MemberTeamsFormPost
300+
$member_teams_post_input = new \LaunchDarklyApi\Model\MemberTeamsPostInput(); // \LaunchDarklyApi\Model\MemberTeamsPostInput
301301

302302
try {
303-
$result = $apiInstance->postMemberTeams($id, $member_teams_form_post);
303+
$result = $apiInstance->postMemberTeams($id, $member_teams_post_input);
304304
print_r($result);
305305
} catch (Exception $e) {
306306
echo 'Exception when calling AccountMembersApi->postMemberTeams: ', $e->getMessage(), PHP_EOL;
@@ -312,7 +312,7 @@ try {
312312
Name | Type | Description | Notes
313313
------------- | ------------- | ------------- | -------------
314314
**id** | **string**| The member ID |
315-
**member_teams_form_post** | [**\LaunchDarklyApi\Model\MemberTeamsFormPost**](../Model/MemberTeamsFormPost.md)| |
315+
**member_teams_post_input** | [**\LaunchDarklyApi\Model\MemberTeamsPostInput**](../Model/MemberTeamsPostInput.md)| |
316316

317317
### Return type
318318

docs/Api/CodeReferencesApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ $apiInstance = new LaunchDarklyApi\Api\CodeReferencesApi(
628628
$config
629629
);
630630
$repo = 'repo_example'; // string | The repository name
631-
$patch_operation = array(new \LaunchDarklyApi\Model\PatchOperation()); // \LaunchDarklyApi\Model\PatchOperation[]
631+
$patch_operation = [{"op":"replace","path":"/defaultBranch","value":"main"}]; // \LaunchDarklyApi\Model\PatchOperation[]
632632

633633
try {
634634
$result = $apiInstance->patchRepository($repo, $patch_operation);

docs/Api/EnvironmentsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ patchEnvironment($project_key, $environment_key, $patch_operation): \LaunchDarkl
147147

148148
Update environment
149149

150-
> ### Approval settings > > The `approvalSettings` key is only returned when the Flag Approvals feature is enabled. > > Only the `canReviewOwnRequest`, `canApplyDeclinedChanges`, `minNumApprovals`, `required` and `requiredApprovalTagsfields` are editable. > > If you try to patch the environment by setting both `required` and `requiredApprovalTags`, it fails and an error appears. Users can specify either required approvals for all flags in an environment or those with specific tags, but not both. Only customers on an Enterprise plan can require approval for flag updates by either mechanism.
150+
Update an environment. Requires a [JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes to the environment. To update fields in the environment object that are arrays, set the `path` to the name of the field and then append `/<array index>`. Using `/0` appends to the beginning of the array. ### Approval settings This request only returns the `approvalSettings` key if the [Flag Approvals](https://docs.launchdarkly.com/home/feature-workflows/approvals) feature is enabled. Only the `canReviewOwnRequest`, `canApplyDeclinedChanges`, `minNumApprovals`, `required` and `requiredApprovalTagsfields` are editable. If you try to patch the environment by setting both `required` and `requiredApprovalTags`, the request fails and an error appears. You can specify either required approvals for all flags in an environment or those with specific tags, but not both. Only customers on a Pro or Enterprise plan can require approval for flag updates by either mechanism.
151151

152152
### Example
153153

@@ -170,7 +170,7 @@ $apiInstance = new LaunchDarklyApi\Api\EnvironmentsApi(
170170
);
171171
$project_key = 'project_key_example'; // string | The project key
172172
$environment_key = 'environment_key_example'; // string | The environment key
173-
$patch_operation = array(new \LaunchDarklyApi\Model\PatchOperation()); // \LaunchDarklyApi\Model\PatchOperation[]
173+
$patch_operation = [{"op":"replace","path":"/requireComments","value":true}]; // \LaunchDarklyApi\Model\PatchOperation[]
174174

175175
try {
176176
$result = $apiInstance->patchEnvironment($project_key, $environment_key, $patch_operation);

docs/Api/IntegrationAuditLogSubscriptionsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ $apiInstance = new LaunchDarklyApi\Api\IntegrationAuditLogSubscriptionsApi(
295295
);
296296
$integration_key = 'integration_key_example'; // string | The integration key
297297
$id = 'id_example'; // string | The ID of the audit log subscription
298-
$patch_operation = array(new \LaunchDarklyApi\Model\PatchOperation()); // \LaunchDarklyApi\Model\PatchOperation[]
298+
$patch_operation = [{"op":"replace","path":"/on","value":false}]; // \LaunchDarklyApi\Model\PatchOperation[]
299299

300300
try {
301301
$result = $apiInstance->updateSubscription($integration_key, $id, $patch_operation);

docs/Api/MetricsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ patchMetric($project_key, $key, $patch_operation): \LaunchDarklyApi\Model\Metric
208208

209209
Update metric
210210

211-
Patch a environment by key.
211+
Patch a metric by key.
212212

213213
### Example
214214

@@ -231,7 +231,7 @@ $apiInstance = new LaunchDarklyApi\Api\MetricsApi(
231231
);
232232
$project_key = 'project_key_example'; // string | The project key
233233
$key = 'key_example'; // string | The metric key
234-
$patch_operation = array(new \LaunchDarklyApi\Model\PatchOperation()); // \LaunchDarklyApi\Model\PatchOperation[]
234+
$patch_operation = [{"op":"replace","path":"/name","value":"my-updated-metric"}]; // \LaunchDarklyApi\Model\PatchOperation[]
235235

236236
try {
237237
$result = $apiInstance->patchMetric($project_key, $key, $patch_operation);

docs/Api/ProjectsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ $apiInstance = new LaunchDarklyApi\Api\ProjectsApi(
223223
$config
224224
);
225225
$project_key = 'project_key_example'; // string | The project key
226-
$patch_operation = array(new \LaunchDarklyApi\Model\PatchOperation()); // \LaunchDarklyApi\Model\PatchOperation[]
226+
$patch_operation = [{"op":"add","path":"/tags/0","value":"another-tag"}]; // \LaunchDarklyApi\Model\PatchOperation[]
227227

228228
try {
229229
$result = $apiInstance->patchProject($project_key, $patch_operation);

docs/Api/WebhooksApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ $apiInstance = new LaunchDarklyApi\Api\WebhooksApi(
223223
$config
224224
);
225225
$id = 'id_example'; // string | The ID of the webhook to update
226-
$patch_operation = array(new \LaunchDarklyApi\Model\PatchOperation()); // \LaunchDarklyApi\Model\PatchOperation[]
226+
$patch_operation = [{"op":"replace","path":"/on","value":false}]; // \LaunchDarklyApi\Model\PatchOperation[]
227227

228228
try {
229229
$result = $apiInstance->patchWebhook($id, $patch_operation);

0 commit comments

Comments
 (0)