Skip to content

Commit 1ec10bc

Browse files
author
LaunchDarklyReleaseBot
committed
Version 18.0.2 automatically generated from ld-openapi.
1 parent 4bf9789 commit 1ec10bc

33 files changed

+783
-601
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
@@ -41,7 +41,6 @@ docs/AccessDeniedReason.md
4141
docs/AccessTokenPost.md
4242
docs/AccessTokensApi.md
4343
docs/AccountMembersApi.md
44-
docs/AccountMembersBetaApi.md
4544
docs/AccountUsageBetaApi.md
4645
docs/ActionInput.md
4746
docs/ActionOutput.md
@@ -148,6 +147,7 @@ docs/Contexts.md
148147
docs/ContextsApi.md
149148
docs/CopiedFromEnv.md
150149
docs/CoreLink.md
150+
docs/CovarianceInfoRep.md
151151
docs/CreateAnnouncementBody.md
152152
docs/CreateApprovalRequestRequest.md
153153
docs/CreateCopyFlagConfigApprovalRequestRequest.md
@@ -644,7 +644,6 @@ launchdarkly_api/__init__.py
644644
launchdarkly_api/api/__init__.py
645645
launchdarkly_api/api/access_tokens_api.py
646646
launchdarkly_api/api/account_members_api.py
647-
launchdarkly_api/api/account_members_beta_api.py
648647
launchdarkly_api/api/account_usage_beta_api.py
649648
launchdarkly_api/api/ai_configs_beta_api.py
650649
launchdarkly_api/api/announcements_api.py
@@ -834,6 +833,7 @@ launchdarkly_api/models/context_search.py
834833
launchdarkly_api/models/contexts.py
835834
launchdarkly_api/models/copied_from_env.py
836835
launchdarkly_api/models/core_link.py
836+
launchdarkly_api/models/covariance_info_rep.py
837837
launchdarkly_api/models/create_announcement_body.py
838838
launchdarkly_api/models/create_approval_request_request.py
839839
launchdarkly_api/models/create_copy_flag_config_approval_request_request.py
@@ -1298,7 +1298,6 @@ test/test_access_denied_reason.py
12981298
test/test_access_token_post.py
12991299
test/test_access_tokens_api.py
13001300
test/test_account_members_api.py
1301-
test/test_account_members_beta_api.py
13021301
test/test_account_usage_beta_api.py
13031302
test/test_action_input.py
13041303
test/test_action_output.py
@@ -1434,6 +1433,7 @@ test/test_contexts.py
14341433
test/test_contexts_api.py
14351434
test/test_copied_from_env.py
14361435
test/test_core_link.py
1436+
test/test_covariance_info_rep.py
14371437
test/test_create_announcement_body.py
14381438
test/test_create_approval_request_request.py
14391439
test/test_create_copy_flag_config_approval_request_request.py

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ To learn more about how EOL is determined, read LaunchDarkly's [End of Life (EOL
447447
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
448448

449449
- API version: 2.0
450-
- Package version: 18.0.1
450+
- Package version: 18.0.2
451451
- Generator version: 7.16.0
452452
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
453453
For more information, please visit [https://support.launchdarkly.com](https://support.launchdarkly.com)
@@ -574,9 +574,9 @@ Class | Method | HTTP request | Description
574574
*AccountMembersApi* | [**get_member**](docs/AccountMembersApi.md#get_member) | **GET** /api/v2/members/{id} | Get account member
575575
*AccountMembersApi* | [**get_members**](docs/AccountMembersApi.md#get_members) | **GET** /api/v2/members | List account members
576576
*AccountMembersApi* | [**patch_member**](docs/AccountMembersApi.md#patch_member) | **PATCH** /api/v2/members/{id} | Modify an account member
577+
*AccountMembersApi* | [**patch_members**](docs/AccountMembersApi.md#patch_members) | **PATCH** /api/v2/members | Modify account members
577578
*AccountMembersApi* | [**post_member_teams**](docs/AccountMembersApi.md#post_member_teams) | **POST** /api/v2/members/{id}/teams | Add a member to teams
578579
*AccountMembersApi* | [**post_members**](docs/AccountMembersApi.md#post_members) | **POST** /api/v2/members | Invite new members
579-
*AccountMembersBetaApi* | [**patch_members**](docs/AccountMembersBetaApi.md#patch_members) | **PATCH** /api/v2/members | Modify account members
580580
*AccountUsageBetaApi* | [**get_contexts_clientside_usage**](docs/AccountUsageBetaApi.md#get_contexts_clientside_usage) | **GET** /api/v2/usage/clientside-contexts | Get contexts clientside usage
581581
*AccountUsageBetaApi* | [**get_contexts_serverside_usage**](docs/AccountUsageBetaApi.md#get_contexts_serverside_usage) | **GET** /api/v2/usage/serverside-contexts | Get contexts serverside usage
582582
*AccountUsageBetaApi* | [**get_contexts_total_usage**](docs/AccountUsageBetaApi.md#get_contexts_total_usage) | **GET** /api/v2/usage/total-contexts | Get contexts total usage
@@ -1011,6 +1011,7 @@ Class | Method | HTTP request | Description
10111011
- [Contexts](docs/Contexts.md)
10121012
- [CopiedFromEnv](docs/CopiedFromEnv.md)
10131013
- [CoreLink](docs/CoreLink.md)
1014+
- [CovarianceInfoRep](docs/CovarianceInfoRep.md)
10141015
- [CreateAnnouncementBody](docs/CreateAnnouncementBody.md)
10151016
- [CreateApprovalRequestRequest](docs/CreateApprovalRequestRequest.md)
10161017
- [CreateCopyFlagConfigApprovalRequestRequest](docs/CreateCopyFlagConfigApprovalRequestRequest.md)

docs/AIConfigVariationPost.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
99
**description** | **str** | Returns the description for the agent. This is only returned for agent variations. | [optional]
1010
**instructions** | **str** | Returns the instructions for the agent. This is only returned for agent variations. | [optional]
1111
**key** | **str** | |
12-
**messages** | [**List[Message]**](Message.md) | |
12+
**messages** | [**List[Message]**](Message.md) | | [optional]
1313
**model** | **object** | | [optional]
1414
**name** | **str** | |
1515
**model_config_key** | **str** | | [optional]

docs/AccountMembersApi.md

Lines changed: 235 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Method | HTTP request | Description
88
[**get_member**](AccountMembersApi.md#get_member) | **GET** /api/v2/members/{id} | Get account member
99
[**get_members**](AccountMembersApi.md#get_members) | **GET** /api/v2/members | List account members
1010
[**patch_member**](AccountMembersApi.md#patch_member) | **PATCH** /api/v2/members/{id} | Modify an account member
11+
[**patch_members**](AccountMembersApi.md#patch_members) | **PATCH** /api/v2/members | Modify account members
1112
[**post_member_teams**](AccountMembersApi.md#post_member_teams) | **POST** /api/v2/members/{id}/teams | Add a member to teams
1213
[**post_members**](AccountMembersApi.md#post_members) | **POST** /api/v2/members | Invite new members
1314

@@ -427,6 +428,240 @@ Name | Type | Description | Notes
427428

428429
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
429430

431+
# **patch_members**
432+
> BulkEditMembersRep patch_members(members_patch_input)
433+
434+
Modify account members
435+
436+
> ### Full use of this API resource is an Enterprise feature
437+
>
438+
> 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/).
439+
440+
Perform a partial update to multiple members. Updating members uses the semantic patch format.
441+
442+
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).
443+
444+
### Instructions
445+
446+
Semantic patch requests support the following `kind` instructions for updating members.
447+
448+
<details>
449+
<summary>Click to expand instructions for <strong>updating members</strong></summary>
450+
451+
#### replaceMembersRoles
452+
453+
Replaces the roles of the specified members. This also removes all custom roles assigned to the specified members.
454+
455+
##### Parameters
456+
457+
- `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).
458+
- `memberIDs`: List of member IDs.
459+
460+
Here's an example:
461+
462+
```json
463+
{
464+
"instructions": [{
465+
"kind": "replaceMembersRoles",
466+
"value": "reader",
467+
"memberIDs": [
468+
"1234a56b7c89d012345e678f",
469+
"507f1f77bcf86cd799439011"
470+
]
471+
}]
472+
}
473+
```
474+
475+
#### replaceAllMembersRoles
476+
477+
Replaces the roles of all members. This also removes all custom roles assigned to the specified members.
478+
479+
Members that match any of the filters are **excluded** from the update.
480+
481+
##### Parameters
482+
483+
- `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).
484+
- `filterLastSeen`: (Optional) A JSON object with one of the following formats:
485+
- `{"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.
486+
- `{"noData": true}` - Members that have not been active since LaunchDarkly began recording last seen timestamps.
487+
- `{"before": 1608672063611}` - Members that have not been active since the provided value, which should be a timestamp in Unix epoch milliseconds.
488+
- `filterQuery`: (Optional) A string that matches against the members' emails and names. It is not case sensitive.
489+
- `filterRoles`: (Optional) A `|` separated list of roles and custom roles. For the purposes of this filtering, `Owner` counts as `Admin`.
490+
- `filterTeamKey`: (Optional) A string that matches against the key of the team the members belong to. It is not case sensitive.
491+
- `ignoredMemberIDs`: (Optional) A list of member IDs.
492+
493+
Here's an example:
494+
495+
```json
496+
{
497+
"instructions": [{
498+
"kind": "replaceAllMembersRoles",
499+
"value": "reader",
500+
"filterLastSeen": { "never": true }
501+
}]
502+
}
503+
```
504+
505+
#### replaceMembersCustomRoles
506+
507+
Replaces the custom roles of the specified members.
508+
509+
##### Parameters
510+
511+
- `values`: List of new custom roles. Must be a valid custom role key or ID.
512+
- `memberIDs`: List of member IDs.
513+
514+
Here's an example:
515+
516+
```json
517+
{
518+
"instructions": [{
519+
"kind": "replaceMembersCustomRoles",
520+
"values": [ "example-custom-role" ],
521+
"memberIDs": [
522+
"1234a56b7c89d012345e678f",
523+
"507f1f77bcf86cd799439011"
524+
]
525+
}]
526+
}
527+
```
528+
529+
#### replaceAllMembersCustomRoles
530+
531+
Replaces the custom roles of all members. Members that match any of the filters are **excluded** from the update.
532+
533+
##### Parameters
534+
535+
- `values`: List of new roles. Must be a valid custom role key or ID.
536+
- `filterLastSeen`: (Optional) A JSON object with one of the following formats:
537+
- `{"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.
538+
- `{"noData": true}` - Members that have not been active since LaunchDarkly began recording last seen timestamps.
539+
- `{"before": 1608672063611}` - Members that have not been active since the provided value, which should be a timestamp in Unix epoch milliseconds.
540+
- `filterQuery`: (Optional) A string that matches against the members' emails and names. It is not case sensitive.
541+
- `filterRoles`: (Optional) A `|` separated list of roles and custom roles. For the purposes of this filtering, `Owner` counts as `Admin`.
542+
- `filterTeamKey`: (Optional) A string that matches against the key of the team the members belong to. It is not case sensitive.
543+
- `ignoredMemberIDs`: (Optional) A list of member IDs.
544+
545+
Here's an example:
546+
547+
```json
548+
{
549+
"instructions": [{
550+
"kind": "replaceAllMembersCustomRoles",
551+
"values": [ "example-custom-role" ],
552+
"filterLastSeen": { "never": true }
553+
}]
554+
}
555+
```
556+
557+
#### replaceMembersRoleAttributes
558+
559+
Replaces the role attributes of the specified members.
560+
561+
##### Parameters
562+
563+
- `value`: Map of role attribute keys to lists of values.
564+
- `memberIDs`: List of member IDs.
565+
566+
Here's an example:
567+
568+
```json
569+
{
570+
"instructions": [{
571+
"kind": "replaceMembersRoleAttributes",
572+
"value": {
573+
"myRoleProjectKey": ["mobile", "web"],
574+
"myRoleEnvironmentKey": ["production"]
575+
},
576+
"memberIDs": [
577+
"1234a56b7c89d012345e678f",
578+
"507f1f77bcf86cd799439011"
579+
]
580+
}]
581+
}
582+
```
583+
584+
</details>
585+
586+
587+
### Example
588+
589+
* Api Key Authentication (ApiKey):
590+
591+
```python
592+
import launchdarkly_api
593+
from launchdarkly_api.models.bulk_edit_members_rep import BulkEditMembersRep
594+
from launchdarkly_api.models.members_patch_input import MembersPatchInput
595+
from launchdarkly_api.rest import ApiException
596+
from pprint import pprint
597+
598+
# Defining the host is optional and defaults to https://app.launchdarkly.com
599+
# See configuration.py for a list of all supported configuration parameters.
600+
configuration = launchdarkly_api.Configuration(
601+
host = "https://app.launchdarkly.com"
602+
)
603+
604+
# The client must configure the authentication and authorization parameters
605+
# in accordance with the API server security policy.
606+
# Examples for each auth method are provided below, use the example that
607+
# satisfies your auth use case.
608+
609+
# Configure API key authorization: ApiKey
610+
configuration.api_key['ApiKey'] = os.environ["API_KEY"]
611+
612+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
613+
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
614+
615+
# Enter a context with an instance of the API client
616+
with launchdarkly_api.ApiClient(configuration) as api_client:
617+
# Create an instance of the API class
618+
api_instance = launchdarkly_api.AccountMembersApi(api_client)
619+
members_patch_input = {"comment":"Optional comment about the update","instructions":[{"kind":"replaceMembersRoles","memberIDs":["1234a56b7c89d012345e678f","507f1f77bcf86cd799439011"],"value":"reader"}]} # MembersPatchInput |
620+
621+
try:
622+
# Modify account members
623+
api_response = api_instance.patch_members(members_patch_input)
624+
print("The response of AccountMembersApi->patch_members:\n")
625+
pprint(api_response)
626+
except Exception as e:
627+
print("Exception when calling AccountMembersApi->patch_members: %s\n" % e)
628+
```
629+
630+
631+
632+
### Parameters
633+
634+
635+
Name | Type | Description | Notes
636+
------------- | ------------- | ------------- | -------------
637+
**members_patch_input** | [**MembersPatchInput**](MembersPatchInput.md)| |
638+
639+
### Return type
640+
641+
[**BulkEditMembersRep**](BulkEditMembersRep.md)
642+
643+
### Authorization
644+
645+
[ApiKey](../README.md#ApiKey)
646+
647+
### HTTP request headers
648+
649+
- **Content-Type**: application/json
650+
- **Accept**: application/json
651+
652+
### HTTP response details
653+
654+
| Status code | Description | Response headers |
655+
|-------------|-------------|------------------|
656+
**200** | Members response | - |
657+
**400** | Invalid request | - |
658+
**401** | Invalid access token | - |
659+
**403** | Forbidden | - |
660+
**409** | Status conflict | - |
661+
**429** | Rate limited | - |
662+
663+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
664+
430665
# **post_member_teams**
431666
> Member post_member_teams(id, member_teams_post_input)
432667

0 commit comments

Comments
 (0)