Skip to content

Commit e040395

Browse files
author
LaunchDarklyReleaseBot
committed
Version 6.0.1 automatically generated from ld-openapi.
1 parent 5690a48 commit e040395

File tree

437 files changed

+5450
-444
lines changed

Some content is hidden

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

437 files changed

+5450
-444
lines changed

.openapi-generator/FILES

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ docs/CustomRolePost.md
3737
docs/CustomRolePostData.md
3838
docs/CustomRoles.md
3939
docs/CustomRolesApi.md
40+
docs/CustomWorkflowMeta.md
41+
docs/CustomWorkflowStageMeta.md
4042
docs/DataExportDestinationsApi.md
4143
docs/DefaultClientSideAvailabilityPost.md
4244
docs/Defaults.md
@@ -123,6 +125,9 @@ docs/PatchOperation.md
123125
docs/PatchSegmentInstruction.md
124126
docs/PatchSegmentRequest.md
125127
docs/PatchWithComment.md
128+
docs/PermissionGrantCollectionRep.md
129+
docs/PermissionGrantInput.md
130+
docs/PermissionGrantRep.md
126131
docs/PostApprovalRequestApplyRequest.md
127132
docs/PostApprovalRequestReviewRequest.md
128133
docs/PostFlagScheduledChangesInput.md
@@ -170,6 +175,11 @@ docs/StatisticsRoot.md
170175
docs/SubjectDataRep.md
171176
docs/Target.md
172177
docs/TargetResourceRep.md
178+
docs/TeamCollectionRep.md
179+
docs/TeamPatchInput.md
180+
docs/TeamPostInput.md
181+
docs/TeamRep.md
182+
docs/TeamsBetaApi.md
173183
docs/TitleRep.md
174184
docs/Token.md
175185
docs/TokenDataRep.md
@@ -220,6 +230,7 @@ launchdarkly_api/api/projects_api.py
220230
launchdarkly_api/api/relay_proxy_configurations_api.py
221231
launchdarkly_api/api/scheduled_changes_api.py
222232
launchdarkly_api/api/segments_api.py
233+
launchdarkly_api/api/teams__beta_api.py
223234
launchdarkly_api/api/user_settings_api.py
224235
launchdarkly_api/api/users__beta_api.py
225236
launchdarkly_api/api/users_api.py
@@ -256,6 +267,8 @@ launchdarkly_api/model/custom_role.py
256267
launchdarkly_api/model/custom_role_post.py
257268
launchdarkly_api/model/custom_role_post_data.py
258269
launchdarkly_api/model/custom_roles.py
270+
launchdarkly_api/model/custom_workflow_meta.py
271+
launchdarkly_api/model/custom_workflow_stage_meta.py
259272
launchdarkly_api/model/default_client_side_availability_post.py
260273
launchdarkly_api/model/defaults.py
261274
launchdarkly_api/model/dependent_flag.py
@@ -335,6 +348,9 @@ launchdarkly_api/model/patch_operation.py
335348
launchdarkly_api/model/patch_segment_instruction.py
336349
launchdarkly_api/model/patch_segment_request.py
337350
launchdarkly_api/model/patch_with_comment.py
351+
launchdarkly_api/model/permission_grant_collection_rep.py
352+
launchdarkly_api/model/permission_grant_input.py
353+
launchdarkly_api/model/permission_grant_rep.py
338354
launchdarkly_api/model/post_approval_request_apply_request.py
339355
launchdarkly_api/model/post_approval_request_review_request.py
340356
launchdarkly_api/model/post_flag_scheduled_changes_input.py
@@ -378,6 +394,10 @@ launchdarkly_api/model/statistics_root.py
378394
launchdarkly_api/model/subject_data_rep.py
379395
launchdarkly_api/model/target.py
380396
launchdarkly_api/model/target_resource_rep.py
397+
launchdarkly_api/model/team_collection_rep.py
398+
launchdarkly_api/model/team_patch_input.py
399+
launchdarkly_api/model/team_post_input.py
400+
launchdarkly_api/model/team_rep.py
381401
launchdarkly_api/model/title_rep.py
382402
launchdarkly_api/model/token.py
383403
launchdarkly_api/model/token_data_rep.py
@@ -445,6 +465,8 @@ test/test_custom_role_post.py
445465
test/test_custom_role_post_data.py
446466
test/test_custom_roles.py
447467
test/test_custom_roles_api.py
468+
test/test_custom_workflow_meta.py
469+
test/test_custom_workflow_stage_meta.py
448470
test/test_data_export_destinations_api.py
449471
test/test_default_client_side_availability_post.py
450472
test/test_defaults.py
@@ -531,6 +553,9 @@ test/test_patch_operation.py
531553
test/test_patch_segment_instruction.py
532554
test/test_patch_segment_request.py
533555
test/test_patch_with_comment.py
556+
test/test_permission_grant_collection_rep.py
557+
test/test_permission_grant_input.py
558+
test/test_permission_grant_rep.py
534559
test/test_post_approval_request_apply_request.py
535560
test/test_post_approval_request_review_request.py
536561
test/test_post_flag_scheduled_changes_input.py
@@ -578,6 +603,11 @@ test/test_statistics_root.py
578603
test/test_subject_data_rep.py
579604
test/test_target.py
580605
test/test_target_resource_rep.py
606+
test/test_team_collection_rep.py
607+
test/test_team_patch_input.py
608+
test/test_team_post_input.py
609+
test/test_team_rep.py
610+
test/test_teams__beta_api.py
581611
test/test_title_rep.py
582612
test/test_token.py
583613
test/test_token_data_rep.py

README.md

Lines changed: 47 additions & 31 deletions
Large diffs are not rendered by default.

docs/CodeReferencesApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Method | HTTP request | Description
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
@@ -629,7 +629,7 @@ Name | Type | Description | Notes
629629
# **get_root_statistic**
630630
> StatisticsRoot get_root_statistic()
631631
632-
Get number of code references for flags
632+
Get links to code reference repositories for each project
633633

634634
Get links for all projects that have Code References.
635635

@@ -667,7 +667,7 @@ with launchdarkly_api.ApiClient(configuration) as api_client:
667667

668668
# example, this endpoint has no required or optional parameters
669669
try:
670-
# Get number of code references for flags
670+
# Get links to code reference repositories for each project
671671
api_response = api_instance.get_root_statistic()
672672
pprint(api_response)
673673
except launchdarkly_api.ApiException as e:

docs/CustomWorkflowMeta.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# CustomWorkflowMeta
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**name** | **str** | | [optional]
8+
**stage** | [**CustomWorkflowStageMeta**](CustomWorkflowStageMeta.md) | | [optional]
9+
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
13+

docs/CustomWorkflowStageMeta.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# CustomWorkflowStageMeta
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**index** | **int** | | [optional]
8+
**name** | **str** | | [optional]
9+
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
13+

docs/FeatureFlagsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ Name | Type | Description | Notes
862862
863863
Update feature flag
864864

865-
Perform a partial update to a feature
865+
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\": [\"[email protected]\"] } ] }, { \"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).
866866

867867
### Example
868868

docs/FlagConfigApprovalRequestResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Name | Type | Description | Notes
2323
**operating_on_id** | **str** | 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
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
2728

2829
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# PermissionGrantCollectionRep
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**value** | [**[PermissionGrantRep]**](PermissionGrantRep.md) | |
8+
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+

docs/PermissionGrantInput.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# PermissionGrantInput
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**member_ids** | **[str]** | | [optional]
8+
**actions** | **[str]** | | [optional]
9+
**action_set** | **str** | | [optional]
10+
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
11+
12+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13+
14+

0 commit comments

Comments
 (0)