Skip to content

Commit 73b6ea6

Browse files
author
LaunchDarklyReleaseBot
committed
Version 18.0.2 automatically generated from ld-openapi.
1 parent 323ed4f commit 73b6ea6

22 files changed

+962
-514
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Dependency Scan
2+
permissions:
3+
contents: read
4+
5+
on:
6+
pull_request:
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
dependency-scan:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Generate SBOM
16+
uses: launchdarkly/gh-actions/actions/dependency-scan/generate-sbom@main
17+
with:
18+
types: 'nodejs'
19+
20+
- name: Evaluate SBOM Policy
21+
uses: launchdarkly/gh-actions/actions/dependency-scan/evaluate-policy@main
22+
with:
23+
bom-file: bom.nodejs.json

.openapi-generator/FILES

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ composer.json
77
docs/Api/AIConfigsBetaApi.md
88
docs/Api/AccessTokensApi.md
99
docs/Api/AccountMembersApi.md
10-
docs/Api/AccountMembersBetaApi.md
1110
docs/Api/AccountUsageBetaApi.md
1211
docs/Api/AnnouncementsApi.md
1312
docs/Api/ApplicationsBetaApi.md
@@ -191,6 +190,7 @@ docs/Model/ContextSearch.md
191190
docs/Model/Contexts.md
192191
docs/Model/CopiedFromEnv.md
193192
docs/Model/CoreLink.md
193+
docs/Model/CovarianceInfoRep.md
194194
docs/Model/CreateAnnouncementBody.md
195195
docs/Model/CreateApprovalRequestRequest.md
196196
docs/Model/CreateCopyFlagConfigApprovalRequestRequest.md
@@ -643,7 +643,6 @@ git_push.sh
643643
lib/Api/AIConfigsBetaApi.php
644644
lib/Api/AccessTokensApi.php
645645
lib/Api/AccountMembersApi.php
646-
lib/Api/AccountMembersBetaApi.php
647646
lib/Api/AccountUsageBetaApi.php
648647
lib/Api/AnnouncementsApi.php
649648
lib/Api/ApplicationsBetaApi.php
@@ -831,6 +830,7 @@ lib/Model/ContextSearch.php
831830
lib/Model/Contexts.php
832831
lib/Model/CopiedFromEnv.php
833832
lib/Model/CoreLink.php
833+
lib/Model/CovarianceInfoRep.php
834834
lib/Model/CreateAnnouncementBody.php
835835
lib/Model/CreateApprovalRequestRequest.php
836836
lib/Model/CreateCopyFlagConfigApprovalRequestRequest.php
@@ -1285,7 +1285,6 @@ phpunit.xml.dist
12851285
test/Api/AIConfigsBetaApiTest.php
12861286
test/Api/AccessTokensApiTest.php
12871287
test/Api/AccountMembersApiTest.php
1288-
test/Api/AccountMembersBetaApiTest.php
12891288
test/Api/AccountUsageBetaApiTest.php
12901289
test/Api/AnnouncementsApiTest.php
12911290
test/Api/ApplicationsBetaApiTest.php
@@ -1469,6 +1468,7 @@ test/Model/ContextSearchTest.php
14691468
test/Model/ContextsTest.php
14701469
test/Model/CopiedFromEnvTest.php
14711470
test/Model/CoreLinkTest.php
1471+
test/Model/CovarianceInfoRepTest.php
14721472
test/Model/CreateAnnouncementBodyTest.php
14731473
test/Model/CreateApprovalRequestRequestTest.php
14741474
test/Model/CreateCopyFlagConfigApprovalRequestRequestTest.php

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,9 +555,9 @@ Class | Method | HTTP request | Description
555555
*AccountMembersApi* | [**getMember**](docs/Api/AccountMembersApi.md#getmember) | **GET** /api/v2/members/{id} | Get account member
556556
*AccountMembersApi* | [**getMembers**](docs/Api/AccountMembersApi.md#getmembers) | **GET** /api/v2/members | List account members
557557
*AccountMembersApi* | [**patchMember**](docs/Api/AccountMembersApi.md#patchmember) | **PATCH** /api/v2/members/{id} | Modify an account member
558+
*AccountMembersApi* | [**patchMembers**](docs/Api/AccountMembersApi.md#patchmembers) | **PATCH** /api/v2/members | Modify account members
558559
*AccountMembersApi* | [**postMemberTeams**](docs/Api/AccountMembersApi.md#postmemberteams) | **POST** /api/v2/members/{id}/teams | Add a member to teams
559560
*AccountMembersApi* | [**postMembers**](docs/Api/AccountMembersApi.md#postmembers) | **POST** /api/v2/members | Invite new members
560-
*AccountMembersBetaApi* | [**patchMembers**](docs/Api/AccountMembersBetaApi.md#patchmembers) | **PATCH** /api/v2/members | Modify account members
561561
*AccountUsageBetaApi* | [**getContextsClientsideUsage**](docs/Api/AccountUsageBetaApi.md#getcontextsclientsideusage) | **GET** /api/v2/usage/clientside-contexts | Get contexts clientside usage
562562
*AccountUsageBetaApi* | [**getContextsServersideUsage**](docs/Api/AccountUsageBetaApi.md#getcontextsserversideusage) | **GET** /api/v2/usage/serverside-contexts | Get contexts serverside usage
563563
*AccountUsageBetaApi* | [**getContextsTotalUsage**](docs/Api/AccountUsageBetaApi.md#getcontextstotalusage) | **GET** /api/v2/usage/total-contexts | Get contexts total usage
@@ -991,6 +991,7 @@ Class | Method | HTTP request | Description
991991
- [Contexts](docs/Model/Contexts.md)
992992
- [CopiedFromEnv](docs/Model/CopiedFromEnv.md)
993993
- [CoreLink](docs/Model/CoreLink.md)
994+
- [CovarianceInfoRep](docs/Model/CovarianceInfoRep.md)
994995
- [CreateAnnouncementBody](docs/Model/CreateAnnouncementBody.md)
995996
- [CreateApprovalRequestRequest](docs/Model/CreateApprovalRequestRequest.md)
996997
- [CreateCopyFlagConfigApprovalRequestRequest](docs/Model/CreateCopyFlagConfigApprovalRequestRequest.md)
@@ -1468,6 +1469,6 @@ support@launchdarkly.com
14681469
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
14691470

14701471
- API version: `2.0`
1471-
- Package version: `18.0.1`
1472+
- Package version: `18.0.2`
14721473
- Generator version: `7.16.0`
14731474
- 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: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ All URIs are relative to https://app.launchdarkly.com, except if the operation d
88
| [**getMember()**](AccountMembersApi.md#getMember) | **GET** /api/v2/members/{id} | Get account member |
99
| [**getMembers()**](AccountMembersApi.md#getMembers) | **GET** /api/v2/members | List account members |
1010
| [**patchMember()**](AccountMembersApi.md#patchMember) | **PATCH** /api/v2/members/{id} | Modify an account member |
11+
| [**patchMembers()**](AccountMembersApi.md#patchMembers) | **PATCH** /api/v2/members | Modify account members |
1112
| [**postMemberTeams()**](AccountMembersApi.md#postMemberTeams) | **POST** /api/v2/members/{id}/teams | Add a member to teams |
1213
| [**postMembers()**](AccountMembersApi.md#postMembers) | **POST** /api/v2/members | Invite new members |
1314

@@ -271,6 +272,68 @@ try {
271272
[[Back to Model list]](../../README.md#models)
272273
[[Back to README]](../../README.md)
273274

275+
## `patchMembers()`
276+
277+
```php
278+
patchMembers($members_patch_input): \LaunchDarklyApi\Model\BulkEditMembersRep
279+
```
280+
281+
Modify account members
282+
283+
> ### Full use of this API resource is an Enterprise feature > > The ability to perform a partial update to multiple members is available to customers on an Enterprise plan. If you are on another plan, you can update members individually. To learn more, [read about our pricing](https://launchdarkly.com/pricing/). To upgrade your plan, [contact Sales](https://launchdarkly.com/contact-sales/). Perform a partial update to multiple members. Updating members uses the semantic patch format. To make a semantic patch request, you must append `domain-model=launchdarkly.semanticpatch` to your `Content-Type` header. To learn more, read [Updates using semantic patch](https://launchdarkly.com/docs/api#updates-using-semantic-patch). ### Instructions Semantic patch requests support the following `kind` instructions for updating members. <details> <summary>Click to expand instructions for <strong>updating members</strong></summary> #### replaceMembersRoles Replaces the roles of the specified members. This also removes all custom roles assigned to the specified members. ##### Parameters - `value`: The new role. Must be a valid [base role](https://launchdarkly.com/docs/home/getting-started/vocabulary#base-role). To learn more, read [Roles](https://launchdarkly.com/docs/home/account/roles). - `memberIDs`: List of member IDs. Here's an example: ```json { \"instructions\": [{ \"kind\": \"replaceMembersRoles\", \"value\": \"reader\", \"memberIDs\": [ \"1234a56b7c89d012345e678f\", \"507f1f77bcf86cd799439011\" ] }] } ``` #### replaceAllMembersRoles Replaces the roles of all members. This also removes all custom roles assigned to the specified members. Members that match any of the filters are **excluded** from the update. ##### Parameters - `value`: The new role. Must be a valid [base role](https://launchdarkly.com/docs/home/getting-started/vocabulary#base-role). To learn more, read [Roles](https://launchdarkly.com/docs/home/account/roles). - `filterLastSeen`: (Optional) A JSON object with one of the following formats: - `{\"never\": true}` - Members that have never been active, such as those who have not accepted their invitation to LaunchDarkly, or have not logged in after being provisioned via SCIM. - `{\"noData\": true}` - Members that have not been active since LaunchDarkly began recording last seen timestamps. - `{\"before\": 1608672063611}` - Members that have not been active since the provided value, which should be a timestamp in Unix epoch milliseconds. - `filterQuery`: (Optional) A string that matches against the members' emails and names. It is not case sensitive. - `filterRoles`: (Optional) A `|` separated list of roles and custom roles. For the purposes of this filtering, `Owner` counts as `Admin`. - `filterTeamKey`: (Optional) A string that matches against the key of the team the members belong to. It is not case sensitive. - `ignoredMemberIDs`: (Optional) A list of member IDs. Here's an example: ```json { \"instructions\": [{ \"kind\": \"replaceAllMembersRoles\", \"value\": \"reader\", \"filterLastSeen\": { \"never\": true } }] } ``` #### replaceMembersCustomRoles Replaces the custom roles of the specified members. ##### Parameters - `values`: List of new custom roles. Must be a valid custom role key or ID. - `memberIDs`: List of member IDs. Here's an example: ```json { \"instructions\": [{ \"kind\": \"replaceMembersCustomRoles\", \"values\": [ \"example-custom-role\" ], \"memberIDs\": [ \"1234a56b7c89d012345e678f\", \"507f1f77bcf86cd799439011\" ] }] } ``` #### replaceAllMembersCustomRoles Replaces the custom roles of all members. Members that match any of the filters are **excluded** from the update. ##### Parameters - `values`: List of new roles. Must be a valid custom role key or ID. - `filterLastSeen`: (Optional) A JSON object with one of the following formats: - `{\"never\": true}` - Members that have never been active, such as those who have not accepted their invitation to LaunchDarkly, or have not logged in after being provisioned via SCIM. - `{\"noData\": true}` - Members that have not been active since LaunchDarkly began recording last seen timestamps. - `{\"before\": 1608672063611}` - Members that have not been active since the provided value, which should be a timestamp in Unix epoch milliseconds. - `filterQuery`: (Optional) A string that matches against the members' emails and names. It is not case sensitive. - `filterRoles`: (Optional) A `|` separated list of roles and custom roles. For the purposes of this filtering, `Owner` counts as `Admin`. - `filterTeamKey`: (Optional) A string that matches against the key of the team the members belong to. It is not case sensitive. - `ignoredMemberIDs`: (Optional) A list of member IDs. Here's an example: ```json { \"instructions\": [{ \"kind\": \"replaceAllMembersCustomRoles\", \"values\": [ \"example-custom-role\" ], \"filterLastSeen\": { \"never\": true } }] } ``` #### replaceMembersRoleAttributes Replaces the role attributes of the specified members. ##### Parameters - `value`: Map of role attribute keys to lists of values. - `memberIDs`: List of member IDs. Here's an example: ```json { \"instructions\": [{ \"kind\": \"replaceMembersRoleAttributes\", \"value\": { \"myRoleProjectKey\": [\"mobile\", \"web\"], \"myRoleEnvironmentKey\": [\"production\"] }, \"memberIDs\": [ \"1234a56b7c89d012345e678f\", \"507f1f77bcf86cd799439011\" ] }] } ``` </details>
284+
285+
### Example
286+
287+
```php
288+
<?php
289+
require_once(__DIR__ . '/vendor/autoload.php');
290+
291+
292+
// Configure API key authorization: ApiKey
293+
$config = LaunchDarklyApi\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
294+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
295+
// $config = LaunchDarklyApi\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
296+
297+
298+
$apiInstance = new LaunchDarklyApi\Api\AccountMembersApi(
299+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
300+
// This is optional, `GuzzleHttp\Client` will be used as default.
301+
new GuzzleHttp\Client(),
302+
$config
303+
);
304+
$members_patch_input = {"comment":"Optional comment about the update","instructions":[{"kind":"replaceMembersRoles","memberIDs":["1234a56b7c89d012345e678f","507f1f77bcf86cd799439011"],"value":"reader"}]}; // \LaunchDarklyApi\Model\MembersPatchInput
305+
306+
try {
307+
$result = $apiInstance->patchMembers($members_patch_input);
308+
print_r($result);
309+
} catch (Exception $e) {
310+
echo 'Exception when calling AccountMembersApi->patchMembers: ', $e->getMessage(), PHP_EOL;
311+
}
312+
```
313+
314+
### Parameters
315+
316+
| Name | Type | Description | Notes |
317+
| ------------- | ------------- | ------------- | ------------- |
318+
| **members_patch_input** | [**\LaunchDarklyApi\Model\MembersPatchInput**](../Model/MembersPatchInput.md)| | |
319+
320+
### Return type
321+
322+
[**\LaunchDarklyApi\Model\BulkEditMembersRep**](../Model/BulkEditMembersRep.md)
323+
324+
### Authorization
325+
326+
[ApiKey](../../README.md#ApiKey)
327+
328+
### HTTP request headers
329+
330+
- **Content-Type**: `application/json`
331+
- **Accept**: `application/json`
332+
333+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
334+
[[Back to Model list]](../../README.md#models)
335+
[[Back to README]](../../README.md)
336+
274337
## `postMemberTeams()`
275338

276339
```php

0 commit comments

Comments
 (0)