launchdarkly_api 18.0.1 → 18.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -5
- data/docs/AIConfigVariationPost.md +1 -1
- data/docs/AIConfigsBetaApi.md +1 -1
- data/docs/AccountMembersApi.md +72 -0
- data/docs/CovarianceInfoRep.md +22 -0
- data/docs/IterationInput.md +2 -0
- data/docs/IterationRep.md +3 -1
- data/docs/MetricsApi.md +2 -2
- data/lib/launchdarkly_api/api/account_members_api.rb +68 -0
- data/lib/launchdarkly_api/api/metrics_api.rb +2 -2
- data/lib/launchdarkly_api/models/ai_config_variation_post.rb +0 -17
- data/lib/launchdarkly_api/{api/account_members_beta_api.rb → models/covariance_info_rep.rb} +264 -63
- data/lib/launchdarkly_api/models/iteration_input.rb +11 -1
- data/lib/launchdarkly_api/models/iteration_rep.rb +13 -4
- data/lib/launchdarkly_api/version.rb +1 -1
- data/lib/launchdarkly_api.rb +1 -1
- data/spec/api/account_members_api_spec.rb +12 -0
- data/spec/api/metrics_api_spec.rb +1 -1
- data/spec/{api/account_members_beta_api_spec.rb → models/covariance_info_rep_spec.rb} +18 -17
- data/spec/models/iteration_input_spec.rb +6 -0
- data/spec/models/iteration_rep_spec.rb +6 -0
- metadata +6 -6
- data/docs/AccountMembersBetaApi.md +0 -79
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d219a763fe1d96abf1b11f018db76f3e6a2211baf7ea9234a6a442235122d9da
|
|
4
|
+
data.tar.gz: 4880d0dd99c4aba39408958ff5dec4402dec505516918cb49f5e25acb3f6b9d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2210e65dbf06f0ce075a1ec6b10a0536d34c4a89643ef9d9e0398b595c0e837d1f398f0707e547e9f58ea85ef3f66598d2405c52b0101edce023d6c131883495
|
|
7
|
+
data.tar.gz: 0eb98124b4513bf497079b63bb87fe819f3a81393f7512155d8de80bf06252c7d8ef5fdd8a4d2ed037b3b542b459a901a5cd950fe83e6b1cef83a669f2a6dd66
|
data/README.md
CHANGED
|
@@ -450,7 +450,7 @@ To learn more about how EOL is determined, read LaunchDarkly's [End of Life (EOL
|
|
|
450
450
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
451
451
|
|
|
452
452
|
- API version: 2.0
|
|
453
|
-
- Package version: 18.0.
|
|
453
|
+
- Package version: 18.0.2
|
|
454
454
|
- Generator version: 7.16.0
|
|
455
455
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
456
456
|
For more information, please visit [https://support.launchdarkly.com](https://support.launchdarkly.com)
|
|
@@ -468,16 +468,16 @@ gem build launchdarkly_api.gemspec
|
|
|
468
468
|
Then either install the gem locally:
|
|
469
469
|
|
|
470
470
|
```shell
|
|
471
|
-
gem install ./launchdarkly_api-18.0.
|
|
471
|
+
gem install ./launchdarkly_api-18.0.2.gem
|
|
472
472
|
```
|
|
473
473
|
|
|
474
|
-
(for development, run `gem install --dev ./launchdarkly_api-18.0.
|
|
474
|
+
(for development, run `gem install --dev ./launchdarkly_api-18.0.2.gem` to install the development dependencies)
|
|
475
475
|
|
|
476
476
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
477
477
|
|
|
478
478
|
Finally add this to the Gemfile:
|
|
479
479
|
|
|
480
|
-
gem 'launchdarkly_api', '~> 18.0.
|
|
480
|
+
gem 'launchdarkly_api', '~> 18.0.2'
|
|
481
481
|
|
|
482
482
|
### Install from Git
|
|
483
483
|
|
|
@@ -564,9 +564,9 @@ Class | Method | HTTP request | Description
|
|
|
564
564
|
*LaunchDarklyApi::AccountMembersApi* | [**get_member**](docs/AccountMembersApi.md#get_member) | **GET** /api/v2/members/{id} | Get account member
|
|
565
565
|
*LaunchDarklyApi::AccountMembersApi* | [**get_members**](docs/AccountMembersApi.md#get_members) | **GET** /api/v2/members | List account members
|
|
566
566
|
*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
|
|
567
568
|
*LaunchDarklyApi::AccountMembersApi* | [**post_member_teams**](docs/AccountMembersApi.md#post_member_teams) | **POST** /api/v2/members/{id}/teams | Add a member to teams
|
|
568
569
|
*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
|
|
570
570
|
*LaunchDarklyApi::AccountUsageBetaApi* | [**get_contexts_clientside_usage**](docs/AccountUsageBetaApi.md#get_contexts_clientside_usage) | **GET** /api/v2/usage/clientside-contexts | Get contexts clientside usage
|
|
571
571
|
*LaunchDarklyApi::AccountUsageBetaApi* | [**get_contexts_serverside_usage**](docs/AccountUsageBetaApi.md#get_contexts_serverside_usage) | **GET** /api/v2/usage/serverside-contexts | Get contexts serverside usage
|
|
572
572
|
*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
|
|
|
1001
1001
|
- [LaunchDarklyApi::Contexts](docs/Contexts.md)
|
|
1002
1002
|
- [LaunchDarklyApi::CopiedFromEnv](docs/CopiedFromEnv.md)
|
|
1003
1003
|
- [LaunchDarklyApi::CoreLink](docs/CoreLink.md)
|
|
1004
|
+
- [LaunchDarklyApi::CovarianceInfoRep](docs/CovarianceInfoRep.md)
|
|
1004
1005
|
- [LaunchDarklyApi::CreateAnnouncementBody](docs/CreateAnnouncementBody.md)
|
|
1005
1006
|
- [LaunchDarklyApi::CreateApprovalRequestRequest](docs/CreateApprovalRequestRequest.md)
|
|
1006
1007
|
- [LaunchDarklyApi::CreateCopyFlagConfigApprovalRequestRequest](docs/CreateCopyFlagConfigApprovalRequestRequest.md)
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
| **description** | **String** | Returns the description for the agent. This is only returned for agent variations. | [optional] |
|
|
9
9
|
| **instructions** | **String** | Returns the instructions for the agent. This is only returned for agent variations. | [optional] |
|
|
10
10
|
| **key** | **String** | | |
|
|
11
|
-
| **messages** | [**Array<Message>**](Message.md) | |
|
|
11
|
+
| **messages** | [**Array<Message>**](Message.md) | | [optional] |
|
|
12
12
|
| **model** | **Object** | | [optional] |
|
|
13
13
|
| **name** | **String** | | |
|
|
14
14
|
| **model_config_key** | **String** | | [optional] |
|
data/docs/AIConfigsBetaApi.md
CHANGED
|
@@ -1686,7 +1686,7 @@ api_instance = LaunchDarklyApi::AIConfigsBetaApi.new
|
|
|
1686
1686
|
ld_api_version = 'beta' # String | Version of the endpoint.
|
|
1687
1687
|
project_key = 'project_key_example' # String |
|
|
1688
1688
|
config_key = 'config_key_example' # String |
|
|
1689
|
-
ai_config_variation_post = LaunchDarklyApi::AIConfigVariationPost.new({key: 'key_example',
|
|
1689
|
+
ai_config_variation_post = LaunchDarklyApi::AIConfigVariationPost.new({key: 'key_example', name: 'name_example'}) # AIConfigVariationPost | AI Config variation object to create
|
|
1690
1690
|
|
|
1691
1691
|
begin
|
|
1692
1692
|
# Create AI Config variation
|
data/docs/AccountMembersApi.md
CHANGED
|
@@ -8,6 +8,7 @@ All URIs are relative to *https://app.launchdarkly.com*
|
|
|
8
8
|
| [**get_member**](AccountMembersApi.md#get_member) | **GET** /api/v2/members/{id} | Get account member |
|
|
9
9
|
| [**get_members**](AccountMembersApi.md#get_members) | **GET** /api/v2/members | List account members |
|
|
10
10
|
| [**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 |
|
|
11
12
|
| [**post_member_teams**](AccountMembersApi.md#post_member_teams) | **POST** /api/v2/members/{id}/teams | Add a member to teams |
|
|
12
13
|
| [**post_members**](AccountMembersApi.md#post_members) | **POST** /api/v2/members | Invite new members |
|
|
13
14
|
|
|
@@ -311,6 +312,77 @@ end
|
|
|
311
312
|
- **Accept**: application/json
|
|
312
313
|
|
|
313
314
|
|
|
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
|
+
|
|
314
386
|
## post_member_teams
|
|
315
387
|
|
|
316
388
|
> <Member> post_member_teams(id, member_teams_post_input)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# LaunchDarklyApi::CovarianceInfoRep
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | The ID of the covariance matrix | |
|
|
8
|
+
| **file_name** | **String** | The file name of the uploaded covariance matrix | |
|
|
9
|
+
| **created_at** | **Integer** | | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'launchdarkly_api'
|
|
15
|
+
|
|
16
|
+
instance = LaunchDarklyApi::CovarianceInfoRep.new(
|
|
17
|
+
id: 74a49a2b-4834-4246-917e-5d85231d8c2a,
|
|
18
|
+
file_name: covariance.csv,
|
|
19
|
+
created_at: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/IterationInput.md
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
| **treatments** | [**Array<TreatmentInput>**](TreatmentInput.md) | | |
|
|
13
13
|
| **flags** | [**Hash<String, FlagInput>**](FlagInput.md) | | |
|
|
14
14
|
| **randomization_unit** | **String** | The unit of randomization for this iteration. Defaults to user. | [optional] |
|
|
15
|
+
| **covariance_id** | **String** | The ID of the covariance CSV | [optional] |
|
|
15
16
|
| **attributes** | **Array<String>** | The attributes that this iteration's results can be sliced by | [optional] |
|
|
16
17
|
|
|
17
18
|
## Example
|
|
@@ -28,6 +29,7 @@ instance = LaunchDarklyApi::IterationInput.new(
|
|
|
28
29
|
treatments: null,
|
|
29
30
|
flags: null,
|
|
30
31
|
randomization_unit: user,
|
|
32
|
+
covariance_id: null,
|
|
31
33
|
attributes: ["country","device","os"]
|
|
32
34
|
)
|
|
33
35
|
```
|
data/docs/IterationRep.md
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
| **secondary_metrics** | [**Array<MetricV2Rep>**](MetricV2Rep.md) | Deprecated, use <code>metrics</code> instead. Details on the secondary metrics for this experiment. | [optional] |
|
|
26
26
|
| **metrics** | [**Array<DependentMetricOrMetricGroupRep>**](DependentMetricOrMetricGroupRep.md) | Details on the metrics for this experiment | [optional] |
|
|
27
27
|
| **layer_snapshot** | [**LayerSnapshotRep**](LayerSnapshotRep.md) | | [optional] |
|
|
28
|
+
| **covariance_info** | [**CovarianceInfoRep**](CovarianceInfoRep.md) | | [optional] |
|
|
28
29
|
|
|
29
30
|
## Example
|
|
30
31
|
|
|
@@ -52,7 +53,8 @@ instance = LaunchDarklyApi::IterationRep.new(
|
|
|
52
53
|
treatments: null,
|
|
53
54
|
secondary_metrics: null,
|
|
54
55
|
metrics: null,
|
|
55
|
-
layer_snapshot: null
|
|
56
|
+
layer_snapshot: null,
|
|
57
|
+
covariance_info: null
|
|
56
58
|
)
|
|
57
59
|
```
|
|
58
60
|
|
data/docs/MetricsApi.md
CHANGED
|
@@ -190,7 +190,7 @@ opts = {
|
|
|
190
190
|
limit: 789, # Integer | The number of metrics to return in the response. Defaults to 20. Maximum limit is 50.
|
|
191
191
|
offset: 789, # Integer | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and returns the next `limit` items.
|
|
192
192
|
sort: 'sort_example', # String | A field to sort the items by. Prefix field by a dash ( - ) to sort in descending order. This endpoint supports sorting by `createdAt` or `name`.
|
|
193
|
-
filter: 'filter_example' # String | A comma-separated list of filters. This endpoint accepts filtering by `query`, `tags`, 'eventKind', 'isNumeric', 'unitAggregationType`, `hasConnections`, `maintainerIds`, `maintainerTeamKey` and `
|
|
193
|
+
filter: 'filter_example' # String | A comma-separated list of filters. This endpoint accepts filtering by `query`, `tags`, 'eventKind', 'isNumeric', 'unitAggregationType`, `hasConnections`, `maintainerIds`, `maintainerTeamKey`, `view`, and `dataSourceKeys`. To learn more about the filter syntax, read the 'Filtering metrics' section above.
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
begin
|
|
@@ -229,7 +229,7 @@ end
|
|
|
229
229
|
| **limit** | **Integer** | The number of metrics to return in the response. Defaults to 20. Maximum limit is 50. | [optional] |
|
|
230
230
|
| **offset** | **Integer** | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and returns the next `limit` items. | [optional] |
|
|
231
231
|
| **sort** | **String** | A field to sort the items by. Prefix field by a dash ( - ) to sort in descending order. This endpoint supports sorting by `createdAt` or `name`. | [optional] |
|
|
232
|
-
| **filter** | **String** | A comma-separated list of filters. This endpoint accepts filtering by `query`, `tags`, 'eventKind', 'isNumeric', 'unitAggregationType`, `hasConnections`, `maintainerIds`, `maintainerTeamKey` and `
|
|
232
|
+
| **filter** | **String** | A comma-separated list of filters. This endpoint accepts filtering by `query`, `tags`, 'eventKind', 'isNumeric', 'unitAggregationType`, `hasConnections`, `maintainerIds`, `maintainerTeamKey`, `view`, and `dataSourceKeys`. To learn more about the filter syntax, read the 'Filtering metrics' section above. | [optional] |
|
|
233
233
|
|
|
234
234
|
### Return type
|
|
235
235
|
|
|
@@ -294,6 +294,74 @@ module LaunchDarklyApi
|
|
|
294
294
|
return data, status_code, headers
|
|
295
295
|
end
|
|
296
296
|
|
|
297
|
+
# Modify account members
|
|
298
|
+
# > ### 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>
|
|
299
|
+
# @param members_patch_input [MembersPatchInput]
|
|
300
|
+
# @param [Hash] opts the optional parameters
|
|
301
|
+
# @return [BulkEditMembersRep]
|
|
302
|
+
def patch_members(members_patch_input, opts = {})
|
|
303
|
+
data, _status_code, _headers = patch_members_with_http_info(members_patch_input, opts)
|
|
304
|
+
data
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
# Modify account members
|
|
308
|
+
# > ### 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>
|
|
309
|
+
# @param members_patch_input [MembersPatchInput]
|
|
310
|
+
# @param [Hash] opts the optional parameters
|
|
311
|
+
# @return [Array<(BulkEditMembersRep, Integer, Hash)>] BulkEditMembersRep data, response status code and response headers
|
|
312
|
+
def patch_members_with_http_info(members_patch_input, opts = {})
|
|
313
|
+
if @api_client.config.debugging
|
|
314
|
+
@api_client.config.logger.debug 'Calling API: AccountMembersApi.patch_members ...'
|
|
315
|
+
end
|
|
316
|
+
# verify the required parameter 'members_patch_input' is set
|
|
317
|
+
if @api_client.config.client_side_validation && members_patch_input.nil?
|
|
318
|
+
fail ArgumentError, "Missing the required parameter 'members_patch_input' when calling AccountMembersApi.patch_members"
|
|
319
|
+
end
|
|
320
|
+
# resource path
|
|
321
|
+
local_var_path = '/api/v2/members'
|
|
322
|
+
|
|
323
|
+
# query parameters
|
|
324
|
+
query_params = opts[:query_params] || {}
|
|
325
|
+
|
|
326
|
+
# header parameters
|
|
327
|
+
header_params = opts[:header_params] || {}
|
|
328
|
+
# HTTP header 'Accept' (if needed)
|
|
329
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
330
|
+
# HTTP header 'Content-Type'
|
|
331
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
332
|
+
if !content_type.nil?
|
|
333
|
+
header_params['Content-Type'] = content_type
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
# form parameters
|
|
337
|
+
form_params = opts[:form_params] || {}
|
|
338
|
+
|
|
339
|
+
# http body (model)
|
|
340
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(members_patch_input)
|
|
341
|
+
|
|
342
|
+
# return_type
|
|
343
|
+
return_type = opts[:debug_return_type] || 'BulkEditMembersRep'
|
|
344
|
+
|
|
345
|
+
# auth_names
|
|
346
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
|
347
|
+
|
|
348
|
+
new_options = opts.merge(
|
|
349
|
+
:operation => :"AccountMembersApi.patch_members",
|
|
350
|
+
:header_params => header_params,
|
|
351
|
+
:query_params => query_params,
|
|
352
|
+
:form_params => form_params,
|
|
353
|
+
:body => post_body,
|
|
354
|
+
:auth_names => auth_names,
|
|
355
|
+
:return_type => return_type
|
|
356
|
+
)
|
|
357
|
+
|
|
358
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
359
|
+
if @api_client.config.debugging
|
|
360
|
+
@api_client.config.logger.debug "API called: AccountMembersApi#patch_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
361
|
+
end
|
|
362
|
+
return data, status_code, headers
|
|
363
|
+
end
|
|
364
|
+
|
|
297
365
|
# Add a member to teams
|
|
298
366
|
# Add one member to one or more teams.
|
|
299
367
|
# @param id [String] The member ID
|
|
@@ -171,7 +171,7 @@ module LaunchDarklyApi
|
|
|
171
171
|
# @option opts [Integer] :limit The number of metrics to return in the response. Defaults to 20. Maximum limit is 50.
|
|
172
172
|
# @option opts [Integer] :offset Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and returns the next `limit` items.
|
|
173
173
|
# @option opts [String] :sort A field to sort the items by. Prefix field by a dash ( - ) to sort in descending order. This endpoint supports sorting by `createdAt` or `name`.
|
|
174
|
-
# @option opts [String] :filter A comma-separated list of filters. This endpoint accepts filtering by `query`, `tags`, 'eventKind', 'isNumeric', 'unitAggregationType`, `hasConnections`, `maintainerIds`, `maintainerTeamKey` and `
|
|
174
|
+
# @option opts [String] :filter A comma-separated list of filters. This endpoint accepts filtering by `query`, `tags`, 'eventKind', 'isNumeric', 'unitAggregationType`, `hasConnections`, `maintainerIds`, `maintainerTeamKey`, `view`, and `dataSourceKeys`. To learn more about the filter syntax, read the 'Filtering metrics' section above.
|
|
175
175
|
# @return [MetricCollectionRep]
|
|
176
176
|
def get_metrics(project_key, opts = {})
|
|
177
177
|
data, _status_code, _headers = get_metrics_with_http_info(project_key, opts)
|
|
@@ -186,7 +186,7 @@ module LaunchDarklyApi
|
|
|
186
186
|
# @option opts [Integer] :limit The number of metrics to return in the response. Defaults to 20. Maximum limit is 50.
|
|
187
187
|
# @option opts [Integer] :offset Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and returns the next `limit` items.
|
|
188
188
|
# @option opts [String] :sort A field to sort the items by. Prefix field by a dash ( - ) to sort in descending order. This endpoint supports sorting by `createdAt` or `name`.
|
|
189
|
-
# @option opts [String] :filter A comma-separated list of filters. This endpoint accepts filtering by `query`, `tags`, 'eventKind', 'isNumeric', 'unitAggregationType`, `hasConnections`, `maintainerIds`, `maintainerTeamKey` and `
|
|
189
|
+
# @option opts [String] :filter A comma-separated list of filters. This endpoint accepts filtering by `query`, `tags`, 'eventKind', 'isNumeric', 'unitAggregationType`, `hasConnections`, `maintainerIds`, `maintainerTeamKey`, `view`, and `dataSourceKeys`. To learn more about the filter syntax, read the 'Filtering metrics' section above.
|
|
190
190
|
# @return [Array<(MetricCollectionRep, Integer, Hash)>] MetricCollectionRep data, response status code and response headers
|
|
191
191
|
def get_metrics_with_http_info(project_key, opts = {})
|
|
192
192
|
if @api_client.config.debugging
|
|
@@ -130,8 +130,6 @@ module LaunchDarklyApi
|
|
|
130
130
|
if (value = attributes[:'messages']).is_a?(Array)
|
|
131
131
|
self.messages = value
|
|
132
132
|
end
|
|
133
|
-
else
|
|
134
|
-
self.messages = nil
|
|
135
133
|
end
|
|
136
134
|
|
|
137
135
|
if attributes.key?(:'model')
|
|
@@ -174,10 +172,6 @@ module LaunchDarklyApi
|
|
|
174
172
|
invalid_properties.push('invalid value for "key", key cannot be nil.')
|
|
175
173
|
end
|
|
176
174
|
|
|
177
|
-
if @messages.nil?
|
|
178
|
-
invalid_properties.push('invalid value for "messages", messages cannot be nil.')
|
|
179
|
-
end
|
|
180
|
-
|
|
181
175
|
if @name.nil?
|
|
182
176
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
183
177
|
end
|
|
@@ -190,7 +184,6 @@ module LaunchDarklyApi
|
|
|
190
184
|
def valid?
|
|
191
185
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
192
186
|
return false if @key.nil?
|
|
193
|
-
return false if @messages.nil?
|
|
194
187
|
return false if @name.nil?
|
|
195
188
|
true
|
|
196
189
|
end
|
|
@@ -205,16 +198,6 @@ module LaunchDarklyApi
|
|
|
205
198
|
@key = key
|
|
206
199
|
end
|
|
207
200
|
|
|
208
|
-
# Custom attribute writer method with validation
|
|
209
|
-
# @param [Object] messages Value to be assigned
|
|
210
|
-
def messages=(messages)
|
|
211
|
-
if messages.nil?
|
|
212
|
-
fail ArgumentError, 'messages cannot be nil'
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
@messages = messages
|
|
216
|
-
end
|
|
217
|
-
|
|
218
201
|
# Custom attribute writer method with validation
|
|
219
202
|
# @param [Object] name Value to be assigned
|
|
220
203
|
def name=(name)
|
|
@@ -10,81 +10,282 @@ Generator version: 7.16.0
|
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
|
-
require '
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
14
15
|
|
|
15
16
|
module LaunchDarklyApi
|
|
16
|
-
class
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
#
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
#
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
17
|
+
class CovarianceInfoRep
|
|
18
|
+
# The ID of the covariance matrix
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
# The file name of the uploaded covariance matrix
|
|
22
|
+
attr_accessor :file_name
|
|
23
|
+
|
|
24
|
+
attr_accessor :created_at
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
:'id' => :'id',
|
|
30
|
+
:'file_name' => :'fileName',
|
|
31
|
+
:'created_at' => :'createdAt'
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Returns attribute mapping this model knows about
|
|
36
|
+
def self.acceptable_attribute_map
|
|
37
|
+
attribute_map
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Returns all the JSON keys this model knows about
|
|
41
|
+
def self.acceptable_attributes
|
|
42
|
+
acceptable_attribute_map.values
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
def self.openapi_types
|
|
47
|
+
{
|
|
48
|
+
:'id' => :'String',
|
|
49
|
+
:'file_name' => :'String',
|
|
50
|
+
:'created_at' => :'Integer'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# List of attributes with nullable: true
|
|
55
|
+
def self.openapi_nullable
|
|
56
|
+
Set.new([
|
|
57
|
+
])
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Initializes the object
|
|
61
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
62
|
+
def initialize(attributes = {})
|
|
63
|
+
if (!attributes.is_a?(Hash))
|
|
64
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `LaunchDarklyApi::CovarianceInfoRep` initialize method"
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
68
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
69
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
70
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `LaunchDarklyApi::CovarianceInfoRep`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
72
|
+
end
|
|
73
|
+
h[k.to_sym] = v
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'id')
|
|
77
|
+
self.id = attributes[:'id']
|
|
78
|
+
else
|
|
79
|
+
self.id = nil
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'file_name')
|
|
83
|
+
self.file_name = attributes[:'file_name']
|
|
84
|
+
else
|
|
85
|
+
self.file_name = nil
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'created_at')
|
|
89
|
+
self.created_at = attributes[:'created_at']
|
|
90
|
+
else
|
|
91
|
+
self.created_at = nil
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
96
|
+
# @return Array for valid properties with the reasons
|
|
97
|
+
def list_invalid_properties
|
|
98
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
99
|
+
invalid_properties = Array.new
|
|
100
|
+
if @id.nil?
|
|
101
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if @file_name.nil?
|
|
105
|
+
invalid_properties.push('invalid value for "file_name", file_name cannot be nil.')
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if @created_at.nil?
|
|
109
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
invalid_properties
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Check to see if the all the properties in the model are valid
|
|
116
|
+
# @return true if the model is valid
|
|
117
|
+
def valid?
|
|
118
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
119
|
+
return false if @id.nil?
|
|
120
|
+
return false if @file_name.nil?
|
|
121
|
+
return false if @created_at.nil?
|
|
122
|
+
true
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Custom attribute writer method with validation
|
|
126
|
+
# @param [Object] id Value to be assigned
|
|
127
|
+
def id=(id)
|
|
128
|
+
if id.nil?
|
|
129
|
+
fail ArgumentError, 'id cannot be nil'
|
|
40
130
|
end
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
131
|
+
|
|
132
|
+
@id = id
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Custom attribute writer method with validation
|
|
136
|
+
# @param [Object] file_name Value to be assigned
|
|
137
|
+
def file_name=(file_name)
|
|
138
|
+
if file_name.nil?
|
|
139
|
+
fail ArgumentError, 'file_name cannot be nil'
|
|
44
140
|
end
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
55
|
-
# HTTP header 'Content-Type'
|
|
56
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
57
|
-
if !content_type.nil?
|
|
58
|
-
header_params['Content-Type'] = content_type
|
|
141
|
+
|
|
142
|
+
@file_name = file_name
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Custom attribute writer method with validation
|
|
146
|
+
# @param [Object] created_at Value to be assigned
|
|
147
|
+
def created_at=(created_at)
|
|
148
|
+
if created_at.nil?
|
|
149
|
+
fail ArgumentError, 'created_at cannot be nil'
|
|
59
150
|
end
|
|
60
151
|
|
|
61
|
-
|
|
62
|
-
|
|
152
|
+
@created_at = created_at
|
|
153
|
+
end
|
|
63
154
|
|
|
64
|
-
|
|
65
|
-
|
|
155
|
+
# Checks equality by comparing each attribute.
|
|
156
|
+
# @param [Object] Object to be compared
|
|
157
|
+
def ==(o)
|
|
158
|
+
return true if self.equal?(o)
|
|
159
|
+
self.class == o.class &&
|
|
160
|
+
id == o.id &&
|
|
161
|
+
file_name == o.file_name &&
|
|
162
|
+
created_at == o.created_at
|
|
163
|
+
end
|
|
66
164
|
|
|
67
|
-
|
|
68
|
-
|
|
165
|
+
# @see the `==` method
|
|
166
|
+
# @param [Object] Object to be compared
|
|
167
|
+
def eql?(o)
|
|
168
|
+
self == o
|
|
169
|
+
end
|
|
69
170
|
|
|
70
|
-
|
|
71
|
-
|
|
171
|
+
# Calculates hash code according to all attributes.
|
|
172
|
+
# @return [Integer] Hash code
|
|
173
|
+
def hash
|
|
174
|
+
[id, file_name, created_at].hash
|
|
175
|
+
end
|
|
72
176
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
177
|
+
# Builds the object from hash
|
|
178
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
179
|
+
# @return [Object] Returns the model itself
|
|
180
|
+
def self.build_from_hash(attributes)
|
|
181
|
+
return nil unless attributes.is_a?(Hash)
|
|
182
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
183
|
+
transformed_hash = {}
|
|
184
|
+
openapi_types.each_pair do |key, type|
|
|
185
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
186
|
+
transformed_hash["#{key}"] = nil
|
|
187
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
188
|
+
# check to ensure the input is an array given that the attribute
|
|
189
|
+
# is documented as an array but the input is not
|
|
190
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
191
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
192
|
+
end
|
|
193
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
194
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
new(transformed_hash)
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# Deserializes the data based on type
|
|
201
|
+
# @param string type Data type
|
|
202
|
+
# @param string value Value to be deserialized
|
|
203
|
+
# @return [Object] Deserialized data
|
|
204
|
+
def self._deserialize(type, value)
|
|
205
|
+
case type.to_sym
|
|
206
|
+
when :Time
|
|
207
|
+
Time.parse(value)
|
|
208
|
+
when :Date
|
|
209
|
+
Date.parse(value)
|
|
210
|
+
when :String
|
|
211
|
+
value.to_s
|
|
212
|
+
when :Integer
|
|
213
|
+
value.to_i
|
|
214
|
+
when :Float
|
|
215
|
+
value.to_f
|
|
216
|
+
when :Boolean
|
|
217
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
218
|
+
true
|
|
219
|
+
else
|
|
220
|
+
false
|
|
221
|
+
end
|
|
222
|
+
when :Object
|
|
223
|
+
# generic object (usually a Hash), return directly
|
|
224
|
+
value
|
|
225
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
226
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
227
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
228
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
229
|
+
k_type = Regexp.last_match[:k_type]
|
|
230
|
+
v_type = Regexp.last_match[:v_type]
|
|
231
|
+
{}.tap do |hash|
|
|
232
|
+
value.each do |k, v|
|
|
233
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
else # model
|
|
237
|
+
# models (e.g. Pet) or oneOf
|
|
238
|
+
klass = LaunchDarklyApi.const_get(type)
|
|
239
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
240
|
+
end
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# Returns the string representation of the object
|
|
244
|
+
# @return [String] String presentation of the object
|
|
245
|
+
def to_s
|
|
246
|
+
to_hash.to_s
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
250
|
+
# @return [Hash] Returns the object in the form of hash
|
|
251
|
+
def to_body
|
|
252
|
+
to_hash
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# Returns the object in the form of hash
|
|
256
|
+
# @return [Hash] Returns the object in the form of hash
|
|
257
|
+
def to_hash
|
|
258
|
+
hash = {}
|
|
259
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
260
|
+
value = self.send(attr)
|
|
261
|
+
if value.nil?
|
|
262
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
263
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
264
|
+
end
|
|
82
265
|
|
|
83
|
-
|
|
84
|
-
if @api_client.config.debugging
|
|
85
|
-
@api_client.config.logger.debug "API called: AccountMembersBetaApi#patch_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
266
|
+
hash[param] = _to_hash(value)
|
|
86
267
|
end
|
|
87
|
-
|
|
268
|
+
hash
|
|
88
269
|
end
|
|
270
|
+
|
|
271
|
+
# Outputs non-array value in the form of hash
|
|
272
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
273
|
+
# @param [Object] value Any valid value
|
|
274
|
+
# @return [Hash] Returns the value in the form of hash
|
|
275
|
+
def _to_hash(value)
|
|
276
|
+
if value.is_a?(Array)
|
|
277
|
+
value.compact.map { |v| _to_hash(v) }
|
|
278
|
+
elsif value.is_a?(Hash)
|
|
279
|
+
{}.tap do |hash|
|
|
280
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
281
|
+
end
|
|
282
|
+
elsif value.respond_to? :to_hash
|
|
283
|
+
value.to_hash
|
|
284
|
+
else
|
|
285
|
+
value
|
|
286
|
+
end
|
|
287
|
+
end
|
|
288
|
+
|
|
89
289
|
end
|
|
290
|
+
|
|
90
291
|
end
|
|
@@ -36,6 +36,9 @@ module LaunchDarklyApi
|
|
|
36
36
|
# The unit of randomization for this iteration. Defaults to user.
|
|
37
37
|
attr_accessor :randomization_unit
|
|
38
38
|
|
|
39
|
+
# The ID of the covariance CSV
|
|
40
|
+
attr_accessor :covariance_id
|
|
41
|
+
|
|
39
42
|
# The attributes that this iteration's results can be sliced by
|
|
40
43
|
attr_accessor :attributes
|
|
41
44
|
|
|
@@ -50,6 +53,7 @@ module LaunchDarklyApi
|
|
|
50
53
|
:'treatments' => :'treatments',
|
|
51
54
|
:'flags' => :'flags',
|
|
52
55
|
:'randomization_unit' => :'randomizationUnit',
|
|
56
|
+
:'covariance_id' => :'covarianceId',
|
|
53
57
|
:'attributes' => :'attributes'
|
|
54
58
|
}
|
|
55
59
|
end
|
|
@@ -75,6 +79,7 @@ module LaunchDarklyApi
|
|
|
75
79
|
:'treatments' => :'Array<TreatmentInput>',
|
|
76
80
|
:'flags' => :'Hash<String, FlagInput>',
|
|
77
81
|
:'randomization_unit' => :'String',
|
|
82
|
+
:'covariance_id' => :'String',
|
|
78
83
|
:'attributes' => :'Array<String>'
|
|
79
84
|
}
|
|
80
85
|
end
|
|
@@ -147,6 +152,10 @@ module LaunchDarklyApi
|
|
|
147
152
|
self.randomization_unit = attributes[:'randomization_unit']
|
|
148
153
|
end
|
|
149
154
|
|
|
155
|
+
if attributes.key?(:'covariance_id')
|
|
156
|
+
self.covariance_id = attributes[:'covariance_id']
|
|
157
|
+
end
|
|
158
|
+
|
|
150
159
|
if attributes.key?(:'attributes')
|
|
151
160
|
if (value = attributes[:'attributes']).is_a?(Array)
|
|
152
161
|
self.attributes = value
|
|
@@ -242,6 +251,7 @@ module LaunchDarklyApi
|
|
|
242
251
|
treatments == o.treatments &&
|
|
243
252
|
flags == o.flags &&
|
|
244
253
|
randomization_unit == o.randomization_unit &&
|
|
254
|
+
covariance_id == o.covariance_id &&
|
|
245
255
|
attributes == o.attributes
|
|
246
256
|
end
|
|
247
257
|
|
|
@@ -254,7 +264,7 @@ module LaunchDarklyApi
|
|
|
254
264
|
# Calculates hash code according to all attributes.
|
|
255
265
|
# @return [Integer] Hash code
|
|
256
266
|
def hash
|
|
257
|
-
[hypothesis, can_reshuffle_traffic, metrics, primary_single_metric_key, primary_funnel_key, treatments, flags, randomization_unit, attributes].hash
|
|
267
|
+
[hypothesis, can_reshuffle_traffic, metrics, primary_single_metric_key, primary_funnel_key, treatments, flags, randomization_unit, covariance_id, attributes].hash
|
|
258
268
|
end
|
|
259
269
|
|
|
260
270
|
# Builds the object from hash
|
|
@@ -71,6 +71,8 @@ module LaunchDarklyApi
|
|
|
71
71
|
|
|
72
72
|
attr_accessor :layer_snapshot
|
|
73
73
|
|
|
74
|
+
attr_accessor :covariance_info
|
|
75
|
+
|
|
74
76
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
75
77
|
def self.attribute_map
|
|
76
78
|
{
|
|
@@ -94,7 +96,8 @@ module LaunchDarklyApi
|
|
|
94
96
|
:'treatments' => :'treatments',
|
|
95
97
|
:'secondary_metrics' => :'secondaryMetrics',
|
|
96
98
|
:'metrics' => :'metrics',
|
|
97
|
-
:'layer_snapshot' => :'layerSnapshot'
|
|
99
|
+
:'layer_snapshot' => :'layerSnapshot',
|
|
100
|
+
:'covariance_info' => :'covarianceInfo'
|
|
98
101
|
}
|
|
99
102
|
end
|
|
100
103
|
|
|
@@ -131,7 +134,8 @@ module LaunchDarklyApi
|
|
|
131
134
|
:'treatments' => :'Array<TreatmentRep>',
|
|
132
135
|
:'secondary_metrics' => :'Array<MetricV2Rep>',
|
|
133
136
|
:'metrics' => :'Array<DependentMetricOrMetricGroupRep>',
|
|
134
|
-
:'layer_snapshot' => :'LayerSnapshotRep'
|
|
137
|
+
:'layer_snapshot' => :'LayerSnapshotRep',
|
|
138
|
+
:'covariance_info' => :'CovarianceInfoRep'
|
|
135
139
|
}
|
|
136
140
|
end
|
|
137
141
|
|
|
@@ -256,6 +260,10 @@ module LaunchDarklyApi
|
|
|
256
260
|
if attributes.key?(:'layer_snapshot')
|
|
257
261
|
self.layer_snapshot = attributes[:'layer_snapshot']
|
|
258
262
|
end
|
|
263
|
+
|
|
264
|
+
if attributes.key?(:'covariance_info')
|
|
265
|
+
self.covariance_info = attributes[:'covariance_info']
|
|
266
|
+
end
|
|
259
267
|
end
|
|
260
268
|
|
|
261
269
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -343,7 +351,8 @@ module LaunchDarklyApi
|
|
|
343
351
|
treatments == o.treatments &&
|
|
344
352
|
secondary_metrics == o.secondary_metrics &&
|
|
345
353
|
metrics == o.metrics &&
|
|
346
|
-
layer_snapshot == o.layer_snapshot
|
|
354
|
+
layer_snapshot == o.layer_snapshot &&
|
|
355
|
+
covariance_info == o.covariance_info
|
|
347
356
|
end
|
|
348
357
|
|
|
349
358
|
# @see the `==` method
|
|
@@ -355,7 +364,7 @@ module LaunchDarklyApi
|
|
|
355
364
|
# Calculates hash code according to all attributes.
|
|
356
365
|
# @return [Integer] Hash code
|
|
357
366
|
def hash
|
|
358
|
-
[_id, hypothesis, status, created_at, started_at, ended_at, winning_treatment_id, winning_reason, can_reshuffle_traffic, flags, reallocation_frequency_millis, version, primary_metric, primary_single_metric, primary_funnel, randomization_unit, attributes, treatments, secondary_metrics, metrics, layer_snapshot].hash
|
|
367
|
+
[_id, hypothesis, status, created_at, started_at, ended_at, winning_treatment_id, winning_reason, can_reshuffle_traffic, flags, reallocation_frequency_millis, version, primary_metric, primary_single_metric, primary_funnel, randomization_unit, attributes, treatments, secondary_metrics, metrics, layer_snapshot, covariance_info].hash
|
|
359
368
|
end
|
|
360
369
|
|
|
361
370
|
# Builds the object from hash
|
data/lib/launchdarkly_api.rb
CHANGED
|
@@ -148,6 +148,7 @@ require 'launchdarkly_api/models/context_search'
|
|
|
148
148
|
require 'launchdarkly_api/models/contexts'
|
|
149
149
|
require 'launchdarkly_api/models/copied_from_env'
|
|
150
150
|
require 'launchdarkly_api/models/core_link'
|
|
151
|
+
require 'launchdarkly_api/models/covariance_info_rep'
|
|
151
152
|
require 'launchdarkly_api/models/create_announcement_body'
|
|
152
153
|
require 'launchdarkly_api/models/create_approval_request_request'
|
|
153
154
|
require 'launchdarkly_api/models/create_copy_flag_config_approval_request_request'
|
|
@@ -601,7 +602,6 @@ require 'launchdarkly_api/models/workflow_templates_listing_output_rep'
|
|
|
601
602
|
require 'launchdarkly_api/api/ai_configs_beta_api'
|
|
602
603
|
require 'launchdarkly_api/api/access_tokens_api'
|
|
603
604
|
require 'launchdarkly_api/api/account_members_api'
|
|
604
|
-
require 'launchdarkly_api/api/account_members_beta_api'
|
|
605
605
|
require 'launchdarkly_api/api/account_usage_beta_api'
|
|
606
606
|
require 'launchdarkly_api/api/announcements_api'
|
|
607
607
|
require 'launchdarkly_api/api/applications_beta_api'
|
|
@@ -86,6 +86,18 @@ describe 'AccountMembersApi' do
|
|
|
86
86
|
end
|
|
87
87
|
end
|
|
88
88
|
|
|
89
|
+
# unit tests for patch_members
|
|
90
|
+
# Modify account members
|
|
91
|
+
# > ### 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>
|
|
92
|
+
# @param members_patch_input
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @return [BulkEditMembersRep]
|
|
95
|
+
describe 'patch_members test' do
|
|
96
|
+
it 'should work' do
|
|
97
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
89
101
|
# unit tests for post_member_teams
|
|
90
102
|
# Add a member to teams
|
|
91
103
|
# Add one member to one or more teams.
|
|
@@ -69,7 +69,7 @@ describe 'MetricsApi' do
|
|
|
69
69
|
# @option opts [Integer] :limit The number of metrics to return in the response. Defaults to 20. Maximum limit is 50.
|
|
70
70
|
# @option opts [Integer] :offset Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and returns the next `limit` items.
|
|
71
71
|
# @option opts [String] :sort A field to sort the items by. Prefix field by a dash ( - ) to sort in descending order. This endpoint supports sorting by `createdAt` or `name`.
|
|
72
|
-
# @option opts [String] :filter A comma-separated list of filters. This endpoint accepts filtering by `query`, `tags`, 'eventKind', 'isNumeric', 'unitAggregationType`, `hasConnections`, `maintainerIds`, `maintainerTeamKey` and `
|
|
72
|
+
# @option opts [String] :filter A comma-separated list of filters. This endpoint accepts filtering by `query`, `tags`, 'eventKind', 'isNumeric', 'unitAggregationType`, `hasConnections`, `maintainerIds`, `maintainerTeamKey`, `view`, and `dataSourceKeys`. To learn more about the filter syntax, read the 'Filtering metrics' section above.
|
|
73
73
|
# @return [MetricCollectionRep]
|
|
74
74
|
describe 'get_metrics test' do
|
|
75
75
|
it 'should work' do
|
|
@@ -12,33 +12,34 @@ Generator version: 7.16.0
|
|
|
12
12
|
|
|
13
13
|
require 'spec_helper'
|
|
14
14
|
require 'json'
|
|
15
|
+
require 'date'
|
|
15
16
|
|
|
16
|
-
# Unit tests for LaunchDarklyApi::
|
|
17
|
+
# Unit tests for LaunchDarklyApi::CovarianceInfoRep
|
|
17
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
19
|
# Please update as you see appropriate
|
|
19
|
-
describe
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
describe LaunchDarklyApi::CovarianceInfoRep do
|
|
21
|
+
#let(:instance) { LaunchDarklyApi::CovarianceInfoRep.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CovarianceInfoRep' do
|
|
24
|
+
it 'should create an instance of CovarianceInfoRep' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(LaunchDarklyApi::CovarianceInfoRep)
|
|
27
|
+
end
|
|
23
28
|
end
|
|
24
29
|
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
describe 'test attribute "id"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
27
34
|
end
|
|
28
35
|
|
|
29
|
-
describe 'test
|
|
30
|
-
it 'should
|
|
31
|
-
|
|
36
|
+
describe 'test attribute "file_name"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
32
39
|
end
|
|
33
40
|
end
|
|
34
41
|
|
|
35
|
-
|
|
36
|
-
# Modify account members
|
|
37
|
-
# > ### 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\": \"replaceMemberRoles\", \"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>
|
|
38
|
-
# @param members_patch_input
|
|
39
|
-
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @return [BulkEditMembersRep]
|
|
41
|
-
describe 'patch_members test' do
|
|
42
|
+
describe 'test attribute "created_at"' do
|
|
42
43
|
it 'should work' do
|
|
43
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
45
|
end
|
|
@@ -75,6 +75,12 @@ describe LaunchDarklyApi::IterationInput do
|
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
+
describe 'test attribute "covariance_id"' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
78
84
|
describe 'test attribute "attributes"' do
|
|
79
85
|
it 'should work' do
|
|
80
86
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -153,4 +153,10 @@ describe LaunchDarklyApi::IterationRep do
|
|
|
153
153
|
end
|
|
154
154
|
end
|
|
155
155
|
|
|
156
|
+
describe 'test attribute "covariance_info"' do
|
|
157
|
+
it 'should work' do
|
|
158
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
|
|
156
162
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: launchdarkly_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 18.0.
|
|
4
|
+
version: 18.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-10-
|
|
11
|
+
date: 2025-10-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -441,7 +441,6 @@ files:
|
|
|
441
441
|
- docs/AccessTokenPost.md
|
|
442
442
|
- docs/AccessTokensApi.md
|
|
443
443
|
- docs/AccountMembersApi.md
|
|
444
|
-
- docs/AccountMembersBetaApi.md
|
|
445
444
|
- docs/AccountUsageBetaApi.md
|
|
446
445
|
- docs/ActionInput.md
|
|
447
446
|
- docs/ActionOutput.md
|
|
@@ -548,6 +547,7 @@ files:
|
|
|
548
547
|
- docs/ContextsApi.md
|
|
549
548
|
- docs/CopiedFromEnv.md
|
|
550
549
|
- docs/CoreLink.md
|
|
550
|
+
- docs/CovarianceInfoRep.md
|
|
551
551
|
- docs/CreateAnnouncementBody.md
|
|
552
552
|
- docs/CreateApprovalRequestRequest.md
|
|
553
553
|
- docs/CreateCopyFlagConfigApprovalRequestRequest.md
|
|
@@ -1044,7 +1044,6 @@ files:
|
|
|
1044
1044
|
- lib/launchdarkly_api.rb
|
|
1045
1045
|
- lib/launchdarkly_api/api/access_tokens_api.rb
|
|
1046
1046
|
- lib/launchdarkly_api/api/account_members_api.rb
|
|
1047
|
-
- lib/launchdarkly_api/api/account_members_beta_api.rb
|
|
1048
1047
|
- lib/launchdarkly_api/api/account_usage_beta_api.rb
|
|
1049
1048
|
- lib/launchdarkly_api/api/ai_configs_beta_api.rb
|
|
1050
1049
|
- lib/launchdarkly_api/api/announcements_api.rb
|
|
@@ -1232,6 +1231,7 @@ files:
|
|
|
1232
1231
|
- lib/launchdarkly_api/models/contexts.rb
|
|
1233
1232
|
- lib/launchdarkly_api/models/copied_from_env.rb
|
|
1234
1233
|
- lib/launchdarkly_api/models/core_link.rb
|
|
1234
|
+
- lib/launchdarkly_api/models/covariance_info_rep.rb
|
|
1235
1235
|
- lib/launchdarkly_api/models/create_announcement_body.rb
|
|
1236
1236
|
- lib/launchdarkly_api/models/create_approval_request_request.rb
|
|
1237
1237
|
- lib/launchdarkly_api/models/create_copy_flag_config_approval_request_request.rb
|
|
@@ -1683,7 +1683,6 @@ files:
|
|
|
1683
1683
|
- lib/launchdarkly_api/version.rb
|
|
1684
1684
|
- spec/api/access_tokens_api_spec.rb
|
|
1685
1685
|
- spec/api/account_members_api_spec.rb
|
|
1686
|
-
- spec/api/account_members_beta_api_spec.rb
|
|
1687
1686
|
- spec/api/account_usage_beta_api_spec.rb
|
|
1688
1687
|
- spec/api/ai_configs_beta_api_spec.rb
|
|
1689
1688
|
- spec/api/announcements_api_spec.rb
|
|
@@ -1868,6 +1867,7 @@ files:
|
|
|
1868
1867
|
- spec/models/contexts_spec.rb
|
|
1869
1868
|
- spec/models/copied_from_env_spec.rb
|
|
1870
1869
|
- spec/models/core_link_spec.rb
|
|
1870
|
+
- spec/models/covariance_info_rep_spec.rb
|
|
1871
1871
|
- spec/models/create_announcement_body_spec.rb
|
|
1872
1872
|
- spec/models/create_approval_request_request_spec.rb
|
|
1873
1873
|
- spec/models/create_copy_flag_config_approval_request_request_spec.rb
|
|
@@ -2363,7 +2363,6 @@ test_files:
|
|
|
2363
2363
|
- spec/api/o_auth2_clients_api_spec.rb
|
|
2364
2364
|
- spec/api/metrics_beta_api_spec.rb
|
|
2365
2365
|
- spec/api/scheduled_changes_api_spec.rb
|
|
2366
|
-
- spec/api/account_members_beta_api_spec.rb
|
|
2367
2366
|
- spec/api/insights_flag_events_beta_api_spec.rb
|
|
2368
2367
|
- spec/api/contexts_api_spec.rb
|
|
2369
2368
|
- spec/api/insights_scores_beta_api_spec.rb
|
|
@@ -2630,6 +2629,7 @@ test_files:
|
|
|
2630
2629
|
- spec/models/import_spec.rb
|
|
2631
2630
|
- spec/models/flag_event_experiment_iteration_spec.rb
|
|
2632
2631
|
- spec/models/big_segment_store_integration_collection_links_spec.rb
|
|
2632
|
+
- spec/models/covariance_info_rep_spec.rb
|
|
2633
2633
|
- spec/models/announcement_access_spec.rb
|
|
2634
2634
|
- spec/models/trigger_post_spec.rb
|
|
2635
2635
|
- spec/models/view_link_request_spec.rb
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
# LaunchDarklyApi::AccountMembersBetaApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://app.launchdarkly.com*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**patch_members**](AccountMembersBetaApi.md#patch_members) | **PATCH** /api/v2/members | Modify account members |
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
## patch_members
|
|
11
|
-
|
|
12
|
-
> <BulkEditMembersRep> patch_members(members_patch_input)
|
|
13
|
-
|
|
14
|
-
Modify account members
|
|
15
|
-
|
|
16
|
-
> ### 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\": \"replaceMemberRoles\", \"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>
|
|
17
|
-
|
|
18
|
-
### Examples
|
|
19
|
-
|
|
20
|
-
```ruby
|
|
21
|
-
require 'time'
|
|
22
|
-
require 'launchdarkly_api'
|
|
23
|
-
# setup authorization
|
|
24
|
-
LaunchDarklyApi.configure do |config|
|
|
25
|
-
# Configure API key authorization: ApiKey
|
|
26
|
-
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
27
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
28
|
-
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
api_instance = LaunchDarklyApi::AccountMembersBetaApi.new
|
|
32
|
-
members_patch_input = LaunchDarklyApi::MembersPatchInput.new({instructions: [{ key: 3.56}]}) # MembersPatchInput |
|
|
33
|
-
|
|
34
|
-
begin
|
|
35
|
-
# Modify account members
|
|
36
|
-
result = api_instance.patch_members(members_patch_input)
|
|
37
|
-
p result
|
|
38
|
-
rescue LaunchDarklyApi::ApiError => e
|
|
39
|
-
puts "Error when calling AccountMembersBetaApi->patch_members: #{e}"
|
|
40
|
-
end
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
#### Using the patch_members_with_http_info variant
|
|
44
|
-
|
|
45
|
-
This returns an Array which contains the response data, status code and headers.
|
|
46
|
-
|
|
47
|
-
> <Array(<BulkEditMembersRep>, Integer, Hash)> patch_members_with_http_info(members_patch_input)
|
|
48
|
-
|
|
49
|
-
```ruby
|
|
50
|
-
begin
|
|
51
|
-
# Modify account members
|
|
52
|
-
data, status_code, headers = api_instance.patch_members_with_http_info(members_patch_input)
|
|
53
|
-
p status_code # => 2xx
|
|
54
|
-
p headers # => { ... }
|
|
55
|
-
p data # => <BulkEditMembersRep>
|
|
56
|
-
rescue LaunchDarklyApi::ApiError => e
|
|
57
|
-
puts "Error when calling AccountMembersBetaApi->patch_members_with_http_info: #{e}"
|
|
58
|
-
end
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### Parameters
|
|
62
|
-
|
|
63
|
-
| Name | Type | Description | Notes |
|
|
64
|
-
| ---- | ---- | ----------- | ----- |
|
|
65
|
-
| **members_patch_input** | [**MembersPatchInput**](MembersPatchInput.md) | | |
|
|
66
|
-
|
|
67
|
-
### Return type
|
|
68
|
-
|
|
69
|
-
[**BulkEditMembersRep**](BulkEditMembersRep.md)
|
|
70
|
-
|
|
71
|
-
### Authorization
|
|
72
|
-
|
|
73
|
-
[ApiKey](../README.md#ApiKey)
|
|
74
|
-
|
|
75
|
-
### HTTP request headers
|
|
76
|
-
|
|
77
|
-
- **Content-Type**: application/json
|
|
78
|
-
- **Accept**: application/json
|
|
79
|
-
|