Skip to content

Commit cd3c251

Browse files
author
LaunchDarklyReleaseBot
committed
Version 6.0.1 automatically generated from ld-openapi.
1 parent 939f9a0 commit cd3c251

File tree

414 files changed

+4661
-695
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

414 files changed

+4661
-695
lines changed

.openapi-generator/FILES

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ docs/CustomRolePost.md
3838
docs/CustomRolePostData.md
3939
docs/CustomRoles.md
4040
docs/CustomRolesApi.md
41+
docs/CustomWorkflowMeta.md
42+
docs/CustomWorkflowStageMeta.md
4143
docs/DataExportDestinationsApi.md
4244
docs/DefaultClientSideAvailabilityPost.md
4345
docs/Defaults.md
@@ -119,6 +121,8 @@ docs/PatchOperation.md
119121
docs/PatchSegmentInstruction.md
120122
docs/PatchSegmentRequest.md
121123
docs/PatchWithComment.md
124+
docs/PermissionGrantInput.md
125+
docs/PermissionGrantRep.md
122126
docs/PostApprovalRequestApplyRequest.md
123127
docs/PostApprovalRequestReviewRequest.md
124128
docs/PostFlagScheduledChangesInput.md
@@ -163,6 +167,11 @@ docs/StatisticsRoot.md
163167
docs/SubjectDataRep.md
164168
docs/Target.md
165169
docs/TargetResourceRep.md
170+
docs/TeamCollectionRep.md
171+
docs/TeamPatchInput.md
172+
docs/TeamPostInput.md
173+
docs/TeamRep.md
174+
docs/TeamsBetaApi.md
166175
docs/TitleRep.md
167176
docs/Token.md
168177
docs/TokenDataRep.md
@@ -212,6 +221,7 @@ lib/launchdarkly_api/api/projects_api.rb
212221
lib/launchdarkly_api/api/relay_proxy_configurations_api.rb
213222
lib/launchdarkly_api/api/scheduled_changes_api.rb
214223
lib/launchdarkly_api/api/segments_api.rb
224+
lib/launchdarkly_api/api/teams_beta_api.rb
215225
lib/launchdarkly_api/api/user_settings_api.rb
216226
lib/launchdarkly_api/api/users_api.rb
217227
lib/launchdarkly_api/api/users_beta_api.rb
@@ -244,6 +254,8 @@ lib/launchdarkly_api/models/custom_role.rb
244254
lib/launchdarkly_api/models/custom_role_post.rb
245255
lib/launchdarkly_api/models/custom_role_post_data.rb
246256
lib/launchdarkly_api/models/custom_roles.rb
257+
lib/launchdarkly_api/models/custom_workflow_meta.rb
258+
lib/launchdarkly_api/models/custom_workflow_stage_meta.rb
247259
lib/launchdarkly_api/models/default_client_side_availability_post.rb
248260
lib/launchdarkly_api/models/defaults.rb
249261
lib/launchdarkly_api/models/dependent_flag.rb
@@ -318,6 +330,8 @@ lib/launchdarkly_api/models/patch_operation.rb
318330
lib/launchdarkly_api/models/patch_segment_instruction.rb
319331
lib/launchdarkly_api/models/patch_segment_request.rb
320332
lib/launchdarkly_api/models/patch_with_comment.rb
333+
lib/launchdarkly_api/models/permission_grant_input.rb
334+
lib/launchdarkly_api/models/permission_grant_rep.rb
321335
lib/launchdarkly_api/models/post_approval_request_apply_request.rb
322336
lib/launchdarkly_api/models/post_approval_request_review_request.rb
323337
lib/launchdarkly_api/models/post_flag_scheduled_changes_input.rb
@@ -358,6 +372,10 @@ lib/launchdarkly_api/models/statistics_root.rb
358372
lib/launchdarkly_api/models/subject_data_rep.rb
359373
lib/launchdarkly_api/models/target.rb
360374
lib/launchdarkly_api/models/target_resource_rep.rb
375+
lib/launchdarkly_api/models/team_collection_rep.rb
376+
lib/launchdarkly_api/models/team_patch_input.rb
377+
lib/launchdarkly_api/models/team_post_input.rb
378+
lib/launchdarkly_api/models/team_rep.rb
361379
lib/launchdarkly_api/models/title_rep.rb
362380
lib/launchdarkly_api/models/token.rb
363381
lib/launchdarkly_api/models/token_data_rep.rb
@@ -401,6 +419,7 @@ spec/api/projects_api_spec.rb
401419
spec/api/relay_proxy_configurations_api_spec.rb
402420
spec/api/scheduled_changes_api_spec.rb
403421
spec/api/segments_api_spec.rb
422+
spec/api/teams_beta_api_spec.rb
404423
spec/api/user_settings_api_spec.rb
405424
spec/api/users_api_spec.rb
406425
spec/api/users_beta_api_spec.rb
@@ -432,6 +451,8 @@ spec/models/custom_role_post_data_spec.rb
432451
spec/models/custom_role_post_spec.rb
433452
spec/models/custom_role_spec.rb
434453
spec/models/custom_roles_spec.rb
454+
spec/models/custom_workflow_meta_spec.rb
455+
spec/models/custom_workflow_stage_meta_spec.rb
435456
spec/models/default_client_side_availability_post_spec.rb
436457
spec/models/defaults_spec.rb
437458
spec/models/dependent_flag_environment_spec.rb
@@ -506,6 +527,8 @@ spec/models/patch_operation_spec.rb
506527
spec/models/patch_segment_instruction_spec.rb
507528
spec/models/patch_segment_request_spec.rb
508529
spec/models/patch_with_comment_spec.rb
530+
spec/models/permission_grant_input_spec.rb
531+
spec/models/permission_grant_rep_spec.rb
509532
spec/models/post_approval_request_apply_request_spec.rb
510533
spec/models/post_approval_request_review_request_spec.rb
511534
spec/models/post_flag_scheduled_changes_input_spec.rb
@@ -546,6 +569,10 @@ spec/models/statistics_root_spec.rb
546569
spec/models/subject_data_rep_spec.rb
547570
spec/models/target_resource_rep_spec.rb
548571
spec/models/target_spec.rb
572+
spec/models/team_collection_rep_spec.rb
573+
spec/models/team_patch_input_spec.rb
574+
spec/models/team_post_input_spec.rb
575+
spec/models/team_rep_spec.rb
549576
spec/models/title_rep_spec.rb
550577
spec/models/token_data_rep_spec.rb
551578
spec/models/token_spec.rb

.rspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--require spec_helper

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ script:
1111
- bundle install --path vendor/bundle
1212
- bundle exec rspec
1313
- gem build launchdarkly_api.gemspec
14-
- gem install ./launchdarkly_api-6.0.0.gem
14+
- gem install ./launchdarkly_api-6.0.1.gem

README.md

Lines changed: 771 additions & 291 deletions
Large diffs are not rendered by default.

docs/CodeReferencesApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ All URIs are relative to *https://app.launchdarkly.com*
1111
| [**get_extinctions**](CodeReferencesApi.md#get_extinctions) | **GET** /api/v2/code-refs/extinctions | List extinctions |
1212
| [**get_repositories**](CodeReferencesApi.md#get_repositories) | **GET** /api/v2/code-refs/repositories | List repositories |
1313
| [**get_repository**](CodeReferencesApi.md#get_repository) | **GET** /api/v2/code-refs/repositories/{repo} | Get repository |
14-
| [**get_root_statistic**](CodeReferencesApi.md#get_root_statistic) | **GET** /api/v2/code-refs/statistics | Get number of code references for flags |
14+
| [**get_root_statistic**](CodeReferencesApi.md#get_root_statistic) | **GET** /api/v2/code-refs/statistics | Get links to code reference repositories for each project |
1515
| [**get_statistics**](CodeReferencesApi.md#get_statistics) | **GET** /api/v2/code-refs/statistics/{projKey} | Get number of code references for flags |
1616
| [**patch_repository**](CodeReferencesApi.md#patch_repository) | **PATCH** /api/v2/code-refs/repositories/{repo} | Update repository |
1717
| [**post_extinction**](CodeReferencesApi.md#post_extinction) | **POST** /api/v2/code-refs/repositories/{repo}/branches/{branch} | Create extinction |
@@ -544,7 +544,7 @@ end
544544

545545
> <StatisticsRoot> get_root_statistic
546546
547-
Get number of code references for flags
547+
Get links to code reference repositories for each project
548548

549549
Get links for all projects that have Code References.
550550

@@ -564,7 +564,7 @@ end
564564
api_instance = LaunchDarklyApi::CodeReferencesApi.new
565565

566566
begin
567-
# Get number of code references for flags
567+
# Get links to code reference repositories for each project
568568
result = api_instance.get_root_statistic
569569
p result
570570
rescue LaunchDarklyApi::ApiError => e
@@ -580,7 +580,7 @@ This returns an Array which contains the response data, status code and headers.
580580
581581
```ruby
582582
begin
583-
# Get number of code references for flags
583+
# Get links to code reference repositories for each project
584584
data, status_code, headers = api_instance.get_root_statistic_with_http_info
585585
p status_code # => 2xx
586586
p headers # => { ... }

docs/CustomWorkflowMeta.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# LaunchDarklyApi::CustomWorkflowMeta
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **name** | **String** | | [optional] |
8+
| **stage** | [**CustomWorkflowStageMeta**](CustomWorkflowStageMeta.md) | | [optional] |
9+
10+
## Example
11+
12+
```ruby
13+
require 'launchdarkly_api'
14+
15+
instance = LaunchDarklyApi::CustomWorkflowMeta.new(
16+
name: null,
17+
stage: null
18+
)
19+
```
20+

docs/CustomWorkflowStageMeta.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# LaunchDarklyApi::CustomWorkflowStageMeta
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **index** | **Integer** | | [optional] |
8+
| **name** | **String** | | [optional] |
9+
10+
## Example
11+
12+
```ruby
13+
require 'launchdarkly_api'
14+
15+
instance = LaunchDarklyApi::CustomWorkflowStageMeta.new(
16+
index: null,
17+
name: null
18+
)
19+
```
20+

docs/FeatureFlagsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ end
715715
716716
Update feature flag
717717

718-
Perform a partial update to a feature
718+
Perform a partial update to a feature flag. ## Using JSON Patches on a feature flag When using the update feature flag endpoint to add individual users to a specific variation, there are two different patch documents, depending on whether users are already being individually targeted for the variation. If a flag variation already has users individually targeted, the path for the JSON Patch operation is: ```json { \"op\": \"add\", \"path\": \"/environments/devint/targets/0/values/-\", \"value\": \"TestClient10\" } ``` If a flag variation does not already have users individually targeted, the path for the JSON Patch operation is: ```json [ { \"op\": \"add\", \"path\": \"/environments/devint/targets/-\", \"value\": { \"variation\": 0, \"values\": [\"TestClient10\"] } } ] ``` ## Using semantic patches on a feature flag To use a [semantic patch](/#section/Updates/Updates-via-semantic-patches) on a feature flag resource, you must include a header in the request. If you call a semantic patch resource without this header, you receive a `400` response as your semantic patch will be interpreted as a JSON patch. Use this header: ``` Content-Type: application/json; domain-model=launchdarkly.semanticpatch ``` The body of a semantic patch request takes the following three properties: 1. comment `string`: (Optional) A description of the update. 1. environmentKey `string`: (Required) The key of the LaunchDarkly environment. 1. instructions `array`: (Required) The action or list of actions to be performed by the update. Each update action in the list must be an object/hash table with a `kind` property, although depending on the action, other properties may be necessary. Read below for more information on the specific supported semantic patch instructions. If any instruction in the patch encounters an error, the error will be returned and the flag will not be changed. In general, instructions will silently do nothing if the flag is already in the state requested by the patch instruction. For example, `removeUserTargets` does nothing when the targets have already been removed). They will generally error if a parameter refers to something that does not exist, like a variation ID that doesn't correspond to a variation on the flag or a rule ID that doesn't belong to a rule on the flag. Other specific error conditions are noted in the instruction descriptions. ### Instructions #### `turnFlagOn` Sets the flag's targeting state to on. #### `turnFlagOff` Sets the flag's targeting state to off. #### `addUserTargets` Adds the user keys in `values` to the individual user targets for the variation specified by `variationId`. Returns an error if this causes the same user key to be targeted in multiple variations. ##### Parameters - `values`: list of user keys - `variationId`: ID of a variation on the flag #### `removeUserTargets` Removes the user keys in `values` to the individual user targets for the variation specified by `variationId`. Does nothing if the user keys are not targeted. ##### Parameters - `values`: list of user keys - `variationId`: ID of a variation on the flag #### `replaceUserTargets` Completely replaces the existing set of user targeting. All variations must be provided. Example: ```json { \"kind\": \"replaceUserTargets\", \"targets\": [ { \"variationId\": \"variation-1\", \"values\": [\"blah\", \"foo\", \"bar\"] }, { \"variationId\": \"variation-2\", \"values\": [\"abc\", \"def\"] } ] } ``` ##### Parameters - `targets`: a list of user targeting #### `clearUserTargets` Removes all individual user targets from the variation specified by `variationId` ##### Parameters - `variationId`: ID of a variation on the flag #### `addPrerequisite` Adds the flag indicated by `key` with variation `variationId` as a prerequisite to the flag. ##### Parameters - `key`: flag key of another flag - `variationId`: ID of a variation of the flag with key `key` #### `removePrerequisite` Removes the prerequisite indicated by `key`. Does nothing if this prerequisite does not exist. ##### Parameters - `key`: flag key of an existing prerequisite #### `updatePrerequisite` Changes the prerequisite with flag key `key` to the variation indicated by `variationId`. Returns an error if this prerequisite does not exist. ##### Parameters - `key`: flag key of an existing prerequisite - `variationId`: ID of a variation of the flag with key `key` #### `replacePrerequisites` Completely replaces the existing set of prerequisites for a given flag. Example: ```json { \"kind\": \"replacePrerequisites\", \"prerequisites\": [ { \"key\": \"flag-key\", \"variationId\": \"variation-1\" }, { \"key\": \"another-flag\", \"variationId\": \"variation-2\" } ] } ``` ##### Parameters - `prerequisites`: a list of prerequisites #### `addRule` Adds a new rule to the flag with the given `clauses` which serves the variation indicated by `variationId` or the percent rollout indicated by `rolloutWeights` and `rolloutBucketBy`. If `beforeRuleId` is set, the rule will be added in the list of rules before the indicated rule. Otherwise, the rule will be added to the end of the list. ##### Parameters - `clauses`: Array of clauses (see `addClauses`) - `beforeRuleId`: Optional ID of a rule in the flag - `variationId`: ID of a variation of the flag - `rolloutWeights`: Map of variationId to weight in thousandths of a percent (0-100000) - `rolloutBucketBy`: Optional user attribute #### `removeRule` Removes the targeting rule specified by `ruleId`. Does nothing if the rule does not exist. ##### Parameters - `ruleId`: ID of a rule in the flag #### `replaceRules` Completely replaces the existing rules for a given flag. Example: ```json { \"kind\": \"replaceRules\", \"rules\": [ { \"variationId\": \"variation-1\", \"description\": \"myRule\", \"clauses\": [ { \"attribute\": \"segmentMatch\", \"op\": \"segmentMatch\", \"values\": [\"test\"] } ], \"trackEvents\": true } ] } ``` ##### Parameters - `rules`: a list of rules #### `addClauses` Adds the given clauses to the rule indicated by `ruleId`. ##### Parameters - `ruleId`: ID of a rule in the flag - `clauses`: Array of clause objects, with `attribute` (string), `op` (string), and `values` (array of strings, numbers, or dates) properties. #### `removeClauses` Removes the clauses specified by `clauseIds` from the rule indicated by `ruleId`. #### Parameters - `ruleId`: ID of a rule in the flag - `clauseIds`: Array of IDs of clauses in the rule #### `updateClause` Replaces the clause indicated by `ruleId` and `clauseId` with `clause`. ##### Parameters - `ruleId`: ID of a rule in the flag - `clauseId`: ID of a clause in that rule - `clause`: Clause object #### `addValuesToClause` Adds `values` to the values of the clause indicated by `ruleId` and `clauseId`. ##### Parameters - `ruleId`: ID of a rule in the flag - `clauseId`: ID of a clause in that rule - `values`: Array of strings #### `removeValuesFromClause` Removes `values` from the values of the clause indicated by `ruleId` and `clauseId`. ##### Parameters `ruleId`: ID of a rule in the flag `clauseId`: ID of a clause in that rule `values`: Array of strings #### `reorderRules` Rearranges the rules to match the order given in `ruleIds`. Will return an error if `ruleIds` does not match the current set of rules on the flag. ##### Parameters - `ruleIds`: Array of IDs of all rules in the flag #### `updateRuleVariationOrRollout` Updates what the rule indicated by `ruleId` serves if its clauses evaluate to true. Can either be a fixed variation indicated by `variationId` or a percent rollout indicated by `rolloutWeights` and `rolloutBucketBy`. ##### Parameters - `ruleId`: ID of a rule in the flag - `variationId`: ID of a variation of the flag or - `rolloutWeights`: Map of variationId to weight in thousandths of a percent (0-100000) - `rolloutBucketBy`: Optional user attribute #### `updateFallthroughVariationOrRollout` Updates the flag's fallthrough, which is served if none of the targeting rules match. Can either be a fixed variation indicated by `variationId` or a percent rollout indicated by `rolloutWeights` and `rolloutBucketBy`. ##### Parameters `variationId`: ID of a variation of the flag or `rolloutWeights`: Map of variationId to weight in thousandths of a percent (0-100000) `rolloutBucketBy`: Optional user attribute #### `updateOffVariation` Updates the variation served when the flag's targeting is off to the variation indicated by `variationId`. ##### Parameters `variationId`: ID of a variation of the flag ### Example ```json { \"environmentKey\": \"production\", \"instructions\": [ { \"kind\": \"turnFlagOn\" }, { \"kind\": \"turnFlagOff\" }, { \"kind\": \"addUserTargets\", \"variationId\": \"8bfb304e-d516-47e5-8727-e7f798e8992d\", \"values\": [\"userId\", \"userId2\"] }, { \"kind\": \"removeUserTargets\", \"variationId\": \"8bfb304e-d516-47e5-8727-e7f798e8992d\", \"values\": [\"userId3\", \"userId4\"] }, { \"kind\": \"updateFallthroughVariationOrRollout\", \"rolloutWeights\": { \"variationId\": 50000, \"variationId2\": 50000 }, \"rolloutBucketBy\": null }, { \"kind\": \"addRule\", \"clauses\": [ { \"attribute\": \"segmentMatch\", \"negate\": false, \"values\": [\"test-segment\"] } ], \"variationId\": null, \"rolloutWeights\": { \"variationId\": 50000, \"variationId2\": 50000 }, \"rolloutBucketBy\": \"key\" }, { \"kind\": \"removeRule\", \"ruleId\": \"99f12464-a429-40fc-86cc-b27612188955\" }, { \"kind\": \"reorderRules\", \"ruleIds\": [\"2f72974e-de68-4243-8dd3-739582147a1f\", \"8bfb304e-d516-47e5-8727-e7f798e8992d\"] }, { \"kind\": \"addClauses\", \"ruleId\": \"1134\", \"clauses\": [ { \"attribute\": \"email\", \"op\": \"in\", \"negate\": false, \"values\": [\"test@test.com\"] } ] }, { \"kind\": \"removeClauses\", \"ruleId\": \"1242529\", \"clauseIds\": [\"8bfb304e-d516-47e5-8727-e7f798e8992d\"] }, { \"kind\": \"updateClause\", \"ruleId\": \"2f72974e-de68-4243-8dd3-739582147a1f\", \"clauseId\": \"309845\", \"clause\": { \"attribute\": \"segmentMatch\", \"negate\": false, \"values\": [\"test-segment\"] } }, { \"kind\": \"updateRuleVariationOrRollout\", \"ruleId\": \"2342\", \"rolloutWeights\": null, \"rolloutBucketBy\": null }, { \"kind\": \"updateOffVariation\", \"variationId\": \"3242453\" }, { \"kind\": \"addPrerequisite\", \"variationId\": \"234235\", \"key\": \"flagKey2\" }, { \"kind\": \"updatePrerequisite\", \"variationId\": \"234235\", \"key\": \"flagKey2\" }, { \"kind\": \"removePrerequisite\", \"key\": \"flagKey\" } ] } ``` ## Using JSON patches on a feature flag If you do not include the header described above, you can use [JSON patch](/#section/Updates/Updates-via-JSON-Patch).
719719

720720
### Examples
721721

docs/FlagConfigApprovalRequestResponse.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
| **operating_on_id** | **String** | ID of scheduled change to edit or delete | [optional] |
2424
| **integration_metadata** | [**IntegrationMetadata**](IntegrationMetadata.md) | | [optional] |
2525
| **source** | [**CopiedFromEnv**](CopiedFromEnv.md) | | [optional] |
26+
| **custom_workflow_meta_data** | [**CustomWorkflowMeta**](CustomWorkflowMeta.md) | | [optional] |
2627

2728
## Example
2829

@@ -48,7 +49,8 @@ instance = LaunchDarklyApi::FlagConfigApprovalRequestResponse.new(
4849
execution_date: null,
4950
operating_on_id: null,
5051
integration_metadata: null,
51-
source: null
52+
source: null,
53+
custom_workflow_meta_data: null
5254
)
5355
```
5456

docs/PermissionGrantInput.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# LaunchDarklyApi::PermissionGrantInput
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **member_ids** | **Array&lt;String&gt;** | | [optional] |
8+
| **actions** | **Array&lt;String&gt;** | | [optional] |
9+
| **action_set** | **String** | | [optional] |
10+
11+
## Example
12+
13+
```ruby
14+
require 'launchdarkly_api'
15+
16+
instance = LaunchDarklyApi::PermissionGrantInput.new(
17+
member_ids: null,
18+
actions: null,
19+
action_set: null
20+
)
21+
```
22+

0 commit comments

Comments
 (0)