Skip to content

Commit ae3f198

Browse files
author
LaunchDarklyReleaseBot
committedApr 19, 2023
Version 13.0.0 automatically generated from ld-openapi.
1 parent ac9f3a1 commit ae3f198

26 files changed

+2734
-2647
lines changed
 

‎.openapi-generator/FILES

+6-3
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ docs/ContextKindRep.md
6666
docs/ContextKindsCollectionRep.md
6767
docs/ContextRecord.md
6868
docs/ContextSearch.md
69-
docs/ContextSettingsBetaApi.md
69+
docs/ContextSettingsApi.md
7070
docs/Contexts.md
71+
docs/ContextsApi.md
7172
docs/ContextsBetaApi.md
7273
docs/CopiedFromEnv.md
7374
docs/CreateApprovalRequestRequest.md
@@ -414,7 +415,8 @@ launchdarkly_api/api/approvals_api.py
414415
launchdarkly_api/api/approvals_beta_api.py
415416
launchdarkly_api/api/audit_log_api.py
416417
launchdarkly_api/api/code_references_api.py
417-
launchdarkly_api/api/context_settings_beta_api.py
418+
launchdarkly_api/api/context_settings_api.py
419+
launchdarkly_api/api/contexts_api.py
418420
launchdarkly_api/api/contexts_beta_api.py
419421
launchdarkly_api/api/custom_roles_api.py
420422
launchdarkly_api/api/data_export_destinations_api.py
@@ -882,8 +884,9 @@ test/test_context_kind_rep.py
882884
test/test_context_kinds_collection_rep.py
883885
test/test_context_record.py
884886
test/test_context_search.py
885-
test/test_context_settings_beta_api.py
887+
test/test_context_settings_api.py
886888
test/test_contexts.py
889+
test/test_contexts_api.py
887890
test/test_contexts_beta_api.py
888891
test/test_copied_from_env.py
889892
test/test_create_approval_request_request.py

‎README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ If you would like to upgrade your integration to use a new API version, you can
391391
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
392392

393393
- API version: 2.0
394-
- Package version: 12.1.0
394+
- Package version: 13.0.0
395395
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
396396
For more information, please visit [https://support.launchdarkly.com](https://support.launchdarkly.com)
397397

@@ -536,17 +536,17 @@ Class | Method | HTTP request | Description
536536
*CodeReferencesApi* | [**post_extinction**](docs/CodeReferencesApi.md#post_extinction) | **POST** /api/v2/code-refs/repositories/{repo}/branches/{branch}/extinction-events | Create extinction
537537
*CodeReferencesApi* | [**post_repository**](docs/CodeReferencesApi.md#post_repository) | **POST** /api/v2/code-refs/repositories | Create repository
538538
*CodeReferencesApi* | [**put_branch**](docs/CodeReferencesApi.md#put_branch) | **PUT** /api/v2/code-refs/repositories/{repo}/branches/{branch} | Upsert branch
539-
*ContextSettingsBetaApi* | [**put_context_flag_setting**](docs/ContextSettingsBetaApi.md#put_context_flag_setting) | **PUT** /api/v2/projects/{projectKey}/environments/{environmentKey}/contexts/{contextKind}/{contextKey}/flags/{featureFlagKey} | Update flag settings for context
540-
*ContextsBetaApi* | [**delete_context_instances**](docs/ContextsBetaApi.md#delete_context_instances) | **DELETE** /api/v2/projects/{projectKey}/environments/{environmentKey}/context-instances/{id} | Delete context instances
541-
*ContextsBetaApi* | [**evaluate_context_instance**](docs/ContextsBetaApi.md#evaluate_context_instance) | **POST** /api/v2/projects/{projectKey}/environments/{environmentKey}/flags/evaluate | Evaluate flags for context instance
542-
*ContextsBetaApi* | [**get_context_attribute_names**](docs/ContextsBetaApi.md#get_context_attribute_names) | **GET** /api/v2/projects/{projectKey}/environments/{environmentKey}/context-attributes | Get context attribute names
543-
*ContextsBetaApi* | [**get_context_attribute_values**](docs/ContextsBetaApi.md#get_context_attribute_values) | **GET** /api/v2/projects/{projectKey}/environments/{environmentKey}/context-attributes/{attributeName} | Get context attribute values
544-
*ContextsBetaApi* | [**get_context_instances**](docs/ContextsBetaApi.md#get_context_instances) | **GET** /api/v2/projects/{projectKey}/environments/{environmentKey}/context-instances/{id} | Get context instances
539+
*ContextSettingsApi* | [**put_context_flag_setting**](docs/ContextSettingsApi.md#put_context_flag_setting) | **PUT** /api/v2/projects/{projectKey}/environments/{environmentKey}/contexts/{contextKind}/{contextKey}/flags/{featureFlagKey} | Update flag settings for context
540+
*ContextsApi* | [**delete_context_instances**](docs/ContextsApi.md#delete_context_instances) | **DELETE** /api/v2/projects/{projectKey}/environments/{environmentKey}/context-instances/{id} | Delete context instances
541+
*ContextsApi* | [**evaluate_context_instance**](docs/ContextsApi.md#evaluate_context_instance) | **POST** /api/v2/projects/{projectKey}/environments/{environmentKey}/flags/evaluate | Evaluate flags for context instance
542+
*ContextsApi* | [**get_context_attribute_names**](docs/ContextsApi.md#get_context_attribute_names) | **GET** /api/v2/projects/{projectKey}/environments/{environmentKey}/context-attributes | Get context attribute names
543+
*ContextsApi* | [**get_context_attribute_values**](docs/ContextsApi.md#get_context_attribute_values) | **GET** /api/v2/projects/{projectKey}/environments/{environmentKey}/context-attributes/{attributeName} | Get context attribute values
544+
*ContextsApi* | [**get_context_instances**](docs/ContextsApi.md#get_context_instances) | **GET** /api/v2/projects/{projectKey}/environments/{environmentKey}/context-instances/{id} | Get context instances
545+
*ContextsApi* | [**get_contexts**](docs/ContextsApi.md#get_contexts) | **GET** /api/v2/projects/{projectKey}/environments/{environmentKey}/contexts/{kind}/{key} | Get contexts
546+
*ContextsApi* | [**search_context_instances**](docs/ContextsApi.md#search_context_instances) | **POST** /api/v2/projects/{projectKey}/environments/{environmentKey}/context-instances/search | Search for context instances
547+
*ContextsApi* | [**search_contexts**](docs/ContextsApi.md#search_contexts) | **POST** /api/v2/projects/{projectKey}/environments/{environmentKey}/contexts/search | Search for contexts
545548
*ContextsBetaApi* | [**get_context_kinds_by_project_key**](docs/ContextsBetaApi.md#get_context_kinds_by_project_key) | **GET** /api/v2/projects/{projectKey}/context-kinds | Get context kinds
546-
*ContextsBetaApi* | [**get_contexts**](docs/ContextsBetaApi.md#get_contexts) | **GET** /api/v2/projects/{projectKey}/environments/{environmentKey}/contexts/{kind}/{key} | Get contexts
547549
*ContextsBetaApi* | [**put_context_kind**](docs/ContextsBetaApi.md#put_context_kind) | **PUT** /api/v2/projects/{projectKey}/context-kinds/{key} | Create or update context kind
548-
*ContextsBetaApi* | [**search_context_instances**](docs/ContextsBetaApi.md#search_context_instances) | **POST** /api/v2/projects/{projectKey}/environments/{environmentKey}/context-instances/search | Search for context instances
549-
*ContextsBetaApi* | [**search_contexts**](docs/ContextsBetaApi.md#search_contexts) | **POST** /api/v2/projects/{projectKey}/environments/{environmentKey}/contexts/search | Search for contexts
550550
*CustomRolesApi* | [**delete_custom_role**](docs/CustomRolesApi.md#delete_custom_role) | **DELETE** /api/v2/roles/{customRoleKey} | Delete custom role
551551
*CustomRolesApi* | [**get_custom_role**](docs/CustomRolesApi.md#get_custom_role) | **GET** /api/v2/roles/{customRoleKey} | Get custom role
552552
*CustomRolesApi* | [**get_custom_roles**](docs/CustomRolesApi.md#get_custom_roles) | **GET** /api/v2/roles | List custom roles
@@ -648,6 +648,7 @@ Class | Method | HTTP request | Description
648648
*ScheduledChangesApi* | [**patch_flag_config_scheduled_change**](docs/ScheduledChangesApi.md#patch_flag_config_scheduled_change) | **PATCH** /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes/{id} | Update scheduled changes workflow
649649
*ScheduledChangesApi* | [**post_flag_config_scheduled_changes**](docs/ScheduledChangesApi.md#post_flag_config_scheduled_changes) | **POST** /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes | Create scheduled changes workflow
650650
*SegmentsApi* | [**delete_segment**](docs/SegmentsApi.md#delete_segment) | **DELETE** /api/v2/segments/{projectKey}/{environmentKey}/{segmentKey} | Delete segment
651+
*SegmentsApi* | [**get_context_instance_segments_membership_by_env**](docs/SegmentsApi.md#get_context_instance_segments_membership_by_env) | **POST** /api/v2/projects/{projectKey}/environments/{environmentKey}/segments/evaluate | List segment memberships for context instance
651652
*SegmentsApi* | [**get_expiring_targets_for_segment**](docs/SegmentsApi.md#get_expiring_targets_for_segment) | **GET** /api/v2/segments/{projectKey}/{segmentKey}/expiring-targets/{environmentKey} | Get expiring targets for segment
652653
*SegmentsApi* | [**get_expiring_user_targets_for_segment**](docs/SegmentsApi.md#get_expiring_user_targets_for_segment) | **GET** /api/v2/segments/{projectKey}/{segmentKey}/expiring-user-targets/{environmentKey} | Get expiring user targets for segment
653654
*SegmentsApi* | [**get_segment**](docs/SegmentsApi.md#get_segment) | **GET** /api/v2/segments/{projectKey}/{environmentKey}/{segmentKey} | Get segment
@@ -664,7 +665,6 @@ Class | Method | HTTP request | Description
664665
*SegmentsBetaApi* | [**create_big_segment_import**](docs/SegmentsBetaApi.md#create_big_segment_import) | **POST** /api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/imports | Create Big Segment import
665666
*SegmentsBetaApi* | [**get_big_segment_export**](docs/SegmentsBetaApi.md#get_big_segment_export) | **GET** /api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/exports/{exportID} | Get Big Segment export
666667
*SegmentsBetaApi* | [**get_big_segment_import**](docs/SegmentsBetaApi.md#get_big_segment_import) | **GET** /api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/imports/{importID} | Get Big Segment import
667-
*SegmentsBetaApi* | [**get_context_instance_segments_membership_by_env**](docs/SegmentsBetaApi.md#get_context_instance_segments_membership_by_env) | **POST** /api/v2/projects/{projectKey}/environments/{environmentKey}/segments/evaluate | List segment memberships for context instance
668668
*TagsApi* | [**get_tags**](docs/TagsApi.md#get_tags) | **GET** /api/v2/tags | List tags
669669
*TeamsApi* | [**delete_team**](docs/TeamsApi.md#delete_team) | **DELETE** /api/v2/teams/{teamKey} | Delete team
670670
*TeamsApi* | [**get_team**](docs/TeamsApi.md#get_team) | **GET** /api/v2/teams/{teamKey} | Get team

‎docs/ContextSettingsBetaApi.md renamed to ‎docs/ContextSettingsApi.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# launchdarkly_api.ContextSettingsBetaApi
1+
# launchdarkly_api.ContextSettingsApi
22

33
All URIs are relative to *https://app.launchdarkly.com*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**put_context_flag_setting**](ContextSettingsBetaApi.md#put_context_flag_setting) | **PUT** /api/v2/projects/{projectKey}/environments/{environmentKey}/contexts/{contextKind}/{contextKey}/flags/{featureFlagKey} | Update flag settings for context
7+
[**put_context_flag_setting**](ContextSettingsApi.md#put_context_flag_setting) | **PUT** /api/v2/projects/{projectKey}/environments/{environmentKey}/contexts/{contextKind}/{contextKey}/flags/{featureFlagKey} | Update flag settings for context
88

99

1010
# **put_context_flag_setting**
@@ -21,7 +21,7 @@ Update flag settings for context
2121
```python
2222
import time
2323
import launchdarkly_api
24-
from launchdarkly_api.api import context_settings_beta_api
24+
from launchdarkly_api.api import context_settings_api
2525
from launchdarkly_api.model.value_put import ValuePut
2626
from launchdarkly_api.model.invalid_request_error_rep import InvalidRequestErrorRep
2727
from launchdarkly_api.model.forbidden_error_rep import ForbiddenErrorRep
@@ -49,7 +49,7 @@ configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
4949
# Enter a context with an instance of the API client
5050
with launchdarkly_api.ApiClient(configuration) as api_client:
5151
# Create an instance of the API class
52-
api_instance = context_settings_beta_api.ContextSettingsBetaApi(api_client)
52+
api_instance = context_settings_api.ContextSettingsApi(api_client)
5353
project_key = "projectKey_example" # str | The project key
5454
environment_key = "environmentKey_example" # str | The environment key
5555
context_kind = "contextKind_example" # str | The context kind
@@ -65,7 +65,7 @@ with launchdarkly_api.ApiClient(configuration) as api_client:
6565
# Update flag settings for context
6666
api_instance.put_context_flag_setting(project_key, environment_key, context_kind, context_key, feature_flag_key, value_put)
6767
except launchdarkly_api.ApiException as e:
68-
print("Exception when calling ContextSettingsBetaApi->put_context_flag_setting: %s\n" % e)
68+
print("Exception when calling ContextSettingsApi->put_context_flag_setting: %s\n" % e)
6969
```
7070

7171

0 commit comments

Comments
 (0)
Please sign in to comment.