Skip to content

Commit cf69462

Browse files
author
LaunchDarklyReleaseBot
committed
Version 18.0.2 automatically generated from ld-openapi.
1 parent d224d46 commit cf69462

25 files changed

+539
-200
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
@@ -44,7 +44,6 @@ docs/AccessDeniedReason.md
4444
docs/AccessTokenPost.md
4545
docs/AccessTokensApi.md
4646
docs/AccountMembersApi.md
47-
docs/AccountMembersBetaApi.md
4847
docs/AccountUsageBetaApi.md
4948
docs/ActionInput.md
5049
docs/ActionOutput.md
@@ -151,6 +150,7 @@ docs/Contexts.md
151150
docs/ContextsApi.md
152151
docs/CopiedFromEnv.md
153152
docs/CoreLink.md
153+
docs/CovarianceInfoRep.md
154154
docs/CreateAnnouncementBody.md
155155
docs/CreateApprovalRequestRequest.md
156156
docs/CreateCopyFlagConfigApprovalRequestRequest.md
@@ -647,7 +647,6 @@ launchdarkly_api.gemspec
647647
lib/launchdarkly_api.rb
648648
lib/launchdarkly_api/api/access_tokens_api.rb
649649
lib/launchdarkly_api/api/account_members_api.rb
650-
lib/launchdarkly_api/api/account_members_beta_api.rb
651650
lib/launchdarkly_api/api/account_usage_beta_api.rb
652651
lib/launchdarkly_api/api/ai_configs_beta_api.rb
653652
lib/launchdarkly_api/api/announcements_api.rb
@@ -835,6 +834,7 @@ lib/launchdarkly_api/models/context_search.rb
835834
lib/launchdarkly_api/models/contexts.rb
836835
lib/launchdarkly_api/models/copied_from_env.rb
837836
lib/launchdarkly_api/models/core_link.rb
837+
lib/launchdarkly_api/models/covariance_info_rep.rb
838838
lib/launchdarkly_api/models/create_announcement_body.rb
839839
lib/launchdarkly_api/models/create_approval_request_request.rb
840840
lib/launchdarkly_api/models/create_copy_flag_config_approval_request_request.rb
@@ -1286,7 +1286,6 @@ lib/launchdarkly_api/models/workflow_templates_listing_output_rep.rb
12861286
lib/launchdarkly_api/version.rb
12871287
spec/api/access_tokens_api_spec.rb
12881288
spec/api/account_members_api_spec.rb
1289-
spec/api/account_members_beta_api_spec.rb
12901289
spec/api/account_usage_beta_api_spec.rb
12911290
spec/api/ai_configs_beta_api_spec.rb
12921291
spec/api/announcements_api_spec.rb
@@ -1471,6 +1470,7 @@ spec/models/context_search_spec.rb
14711470
spec/models/contexts_spec.rb
14721471
spec/models/copied_from_env_spec.rb
14731472
spec/models/core_link_spec.rb
1473+
spec/models/covariance_info_rep_spec.rb
14741474
spec/models/create_announcement_body_spec.rb
14751475
spec/models/create_approval_request_request_spec.rb
14761476
spec/models/create_copy_flag_config_approval_request_request_spec.rb

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ script:
88
- bundle install --path vendor/bundle
99
- bundle exec rspec
1010
- gem build launchdarkly_api.gemspec
11-
- gem install ./launchdarkly_api-18.0.1.gem
11+
- gem install ./launchdarkly_api-18.0.2.gem

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ To learn more about how EOL is determined, read LaunchDarkly's [End of Life (EOL
450450
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
451451

452452
- API version: 2.0
453-
- Package version: 18.0.1
453+
- Package version: 18.0.2
454454
- Generator version: 7.16.0
455455
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
456456
For more information, please visit [https://support.launchdarkly.com](https://support.launchdarkly.com)
@@ -468,16 +468,16 @@ gem build launchdarkly_api.gemspec
468468
Then either install the gem locally:
469469

470470
```shell
471-
gem install ./launchdarkly_api-18.0.1.gem
471+
gem install ./launchdarkly_api-18.0.2.gem
472472
```
473473

474-
(for development, run `gem install --dev ./launchdarkly_api-18.0.1.gem` to install the development dependencies)
474+
(for development, run `gem install --dev ./launchdarkly_api-18.0.2.gem` to install the development dependencies)
475475

476476
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
477477

478478
Finally add this to the Gemfile:
479479

480-
gem 'launchdarkly_api', '~> 18.0.1'
480+
gem 'launchdarkly_api', '~> 18.0.2'
481481

482482
### Install from Git
483483

@@ -564,9 +564,9 @@ Class | Method | HTTP request | Description
564564
*LaunchDarklyApi::AccountMembersApi* | [**get_member**](docs/AccountMembersApi.md#get_member) | **GET** /api/v2/members/{id} | Get account member
565565
*LaunchDarklyApi::AccountMembersApi* | [**get_members**](docs/AccountMembersApi.md#get_members) | **GET** /api/v2/members | List account members
566566
*LaunchDarklyApi::AccountMembersApi* | [**patch_member**](docs/AccountMembersApi.md#patch_member) | **PATCH** /api/v2/members/{id} | Modify an account member
567+
*LaunchDarklyApi::AccountMembersApi* | [**patch_members**](docs/AccountMembersApi.md#patch_members) | **PATCH** /api/v2/members | Modify account members
567568
*LaunchDarklyApi::AccountMembersApi* | [**post_member_teams**](docs/AccountMembersApi.md#post_member_teams) | **POST** /api/v2/members/{id}/teams | Add a member to teams
568569
*LaunchDarklyApi::AccountMembersApi* | [**post_members**](docs/AccountMembersApi.md#post_members) | **POST** /api/v2/members | Invite new members
569-
*LaunchDarklyApi::AccountMembersBetaApi* | [**patch_members**](docs/AccountMembersBetaApi.md#patch_members) | **PATCH** /api/v2/members | Modify account members
570570
*LaunchDarklyApi::AccountUsageBetaApi* | [**get_contexts_clientside_usage**](docs/AccountUsageBetaApi.md#get_contexts_clientside_usage) | **GET** /api/v2/usage/clientside-contexts | Get contexts clientside usage
571571
*LaunchDarklyApi::AccountUsageBetaApi* | [**get_contexts_serverside_usage**](docs/AccountUsageBetaApi.md#get_contexts_serverside_usage) | **GET** /api/v2/usage/serverside-contexts | Get contexts serverside usage
572572
*LaunchDarklyApi::AccountUsageBetaApi* | [**get_contexts_total_usage**](docs/AccountUsageBetaApi.md#get_contexts_total_usage) | **GET** /api/v2/usage/total-contexts | Get contexts total usage
@@ -1001,6 +1001,7 @@ Class | Method | HTTP request | Description
10011001
- [LaunchDarklyApi::Contexts](docs/Contexts.md)
10021002
- [LaunchDarklyApi::CopiedFromEnv](docs/CopiedFromEnv.md)
10031003
- [LaunchDarklyApi::CoreLink](docs/CoreLink.md)
1004+
- [LaunchDarklyApi::CovarianceInfoRep](docs/CovarianceInfoRep.md)
10041005
- [LaunchDarklyApi::CreateAnnouncementBody](docs/CreateAnnouncementBody.md)
10051006
- [LaunchDarklyApi::CreateApprovalRequestRequest](docs/CreateApprovalRequestRequest.md)
10061007
- [LaunchDarklyApi::CreateCopyFlagConfigApprovalRequestRequest](docs/CreateCopyFlagConfigApprovalRequestRequest.md)

docs/AIConfigVariationPost.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
| **description** | **String** | Returns the description for the agent. This is only returned for agent variations. | [optional] |
99
| **instructions** | **String** | Returns the instructions for the agent. This is only returned for agent variations. | [optional] |
1010
| **key** | **String** | | |
11-
| **messages** | [**Array<Message>**](Message.md) | | |
11+
| **messages** | [**Array<Message>**](Message.md) | | [optional] |
1212
| **model** | **Object** | | [optional] |
1313
| **name** | **String** | | |
1414
| **model_config_key** | **String** | | [optional] |

docs/AIConfigsBetaApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,7 @@ api_instance = LaunchDarklyApi::AIConfigsBetaApi.new
16861686
ld_api_version = 'beta' # String | Version of the endpoint.
16871687
project_key = 'project_key_example' # String |
16881688
config_key = 'config_key_example' # String |
1689-
ai_config_variation_post = LaunchDarklyApi::AIConfigVariationPost.new({key: 'key_example', messages: [LaunchDarklyApi::Message.new({content: 'content_example', role: 'role_example'})], name: 'name_example'}) # AIConfigVariationPost | AI Config variation object to create
1689+
ai_config_variation_post = LaunchDarklyApi::AIConfigVariationPost.new({key: 'key_example', name: 'name_example'}) # AIConfigVariationPost | AI Config variation object to create
16901690

16911691
begin
16921692
# Create AI Config variation

docs/AccountMembersApi.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ All URIs are relative to *https://app.launchdarkly.com*
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

@@ -311,6 +312,77 @@ end
311312
- **Accept**: application/json
312313

313314

315+
## patch_members
316+
317+
> <BulkEditMembersRep> patch_members(members_patch_input)
318+
319+
Modify account members
320+
321+
> ### 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>
322+
323+
### Examples
324+
325+
```ruby
326+
require 'time'
327+
require 'launchdarkly_api'
328+
# setup authorization
329+
LaunchDarklyApi.configure do |config|
330+
# Configure API key authorization: ApiKey
331+
config.api_key['Authorization'] = 'YOUR API KEY'
332+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
333+
# config.api_key_prefix['Authorization'] = 'Bearer'
334+
end
335+
336+
api_instance = LaunchDarklyApi::AccountMembersApi.new
337+
members_patch_input = LaunchDarklyApi::MembersPatchInput.new({instructions: [{ key: 3.56}]}) # MembersPatchInput |
338+
339+
begin
340+
# Modify account members
341+
result = api_instance.patch_members(members_patch_input)
342+
p result
343+
rescue LaunchDarklyApi::ApiError => e
344+
puts "Error when calling AccountMembersApi->patch_members: #{e}"
345+
end
346+
```
347+
348+
#### Using the patch_members_with_http_info variant
349+
350+
This returns an Array which contains the response data, status code and headers.
351+
352+
> <Array(<BulkEditMembersRep>, Integer, Hash)> patch_members_with_http_info(members_patch_input)
353+
354+
```ruby
355+
begin
356+
# Modify account members
357+
data, status_code, headers = api_instance.patch_members_with_http_info(members_patch_input)
358+
p status_code # => 2xx
359+
p headers # => { ... }
360+
p data # => <BulkEditMembersRep>
361+
rescue LaunchDarklyApi::ApiError => e
362+
puts "Error when calling AccountMembersApi->patch_members_with_http_info: #{e}"
363+
end
364+
```
365+
366+
### Parameters
367+
368+
| Name | Type | Description | Notes |
369+
| ---- | ---- | ----------- | ----- |
370+
| **members_patch_input** | [**MembersPatchInput**](MembersPatchInput.md) | | |
371+
372+
### Return type
373+
374+
[**BulkEditMembersRep**](BulkEditMembersRep.md)
375+
376+
### Authorization
377+
378+
[ApiKey](../README.md#ApiKey)
379+
380+
### HTTP request headers
381+
382+
- **Content-Type**: application/json
383+
- **Accept**: application/json
384+
385+
314386
## post_member_teams
315387

316388
> <Member> post_member_teams(id, member_teams_post_input)

0 commit comments

Comments
 (0)