Skip to content

Commit 869555a

Browse files
author
LaunchDarklyReleaseBot
committed
Version 7.1.1 automatically generated from ld-openapi.
1 parent 6162923 commit 869555a

20 files changed

+369
-63
lines changed

Diff for: .openapi-generator/FILES

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ docs/MemberImportItemRep.md
131131
docs/MemberPermissionGrantSummaryRep.md
132132
docs/MemberSummaryRep.md
133133
docs/MemberTeamSummaryRep.md
134-
docs/MemberTeamsFormPost.md
134+
docs/MemberTeamsPostInput.md
135135
docs/Members.md
136136
docs/MethodNotAllowedErrorRep.md
137137
docs/MetricCollectionRep.md
@@ -402,7 +402,7 @@ launchdarkly_api/model/member_import_item_rep.py
402402
launchdarkly_api/model/member_permission_grant_summary_rep.py
403403
launchdarkly_api/model/member_summary_rep.py
404404
launchdarkly_api/model/member_team_summary_rep.py
405-
launchdarkly_api/model/member_teams_form_post.py
405+
launchdarkly_api/model/member_teams_post_input.py
406406
launchdarkly_api/model/members.py
407407
launchdarkly_api/model/method_not_allowed_error_rep.py
408408
launchdarkly_api/model/metric_collection_rep.py
@@ -649,7 +649,7 @@ test/test_member_import_item_rep.py
649649
test/test_member_permission_grant_summary_rep.py
650650
test/test_member_summary_rep.py
651651
test/test_member_team_summary_rep.py
652-
test/test_member_teams_form_post.py
652+
test/test_member_teams_post_input.py
653653
test/test_members.py
654654
test/test_method_not_allowed_error_rep.py
655655
test/test_metric_collection_rep.py

Diff for: README.md

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

441441
- API version: 2.0
442-
- Package version: 7.1.0
442+
- Package version: 7.1.1
443443
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
444444
For more information, please visit [https://support.launchdarkly.com](https://support.launchdarkly.com)
445445

@@ -794,7 +794,7 @@ Class | Method | HTTP request | Description
794794
- [MemberPermissionGrantSummaryRep](docs/MemberPermissionGrantSummaryRep.md)
795795
- [MemberSummaryRep](docs/MemberSummaryRep.md)
796796
- [MemberTeamSummaryRep](docs/MemberTeamSummaryRep.md)
797-
- [MemberTeamsFormPost](docs/MemberTeamsFormPost.md)
797+
- [MemberTeamsPostInput](docs/MemberTeamsPostInput.md)
798798
- [Members](docs/Members.md)
799799
- [MethodNotAllowedErrorRep](docs/MethodNotAllowedErrorRep.md)
800800
- [MetricCollectionRep](docs/MetricCollectionRep.md)

Diff for: docs/AccountMembersApi.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ Name | Type | Description | Notes
377377
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
378378

379379
# **post_member_teams**
380-
> Member post_member_teams(id, member_teams_form_post)
380+
> Member post_member_teams(id, member_teams_post_input)
381381
382382
Add member to teams
383383

@@ -396,7 +396,7 @@ from launchdarkly_api.model.forbidden_error_rep import ForbiddenErrorRep
396396
from launchdarkly_api.model.member import Member
397397
from launchdarkly_api.model.rate_limited_error_rep import RateLimitedErrorRep
398398
from launchdarkly_api.model.unauthorized_error_rep import UnauthorizedErrorRep
399-
from launchdarkly_api.model.member_teams_form_post import MemberTeamsFormPost
399+
from launchdarkly_api.model.member_teams_post_input import MemberTeamsPostInput
400400
from launchdarkly_api.model.status_conflict_error_rep import StatusConflictErrorRep
401401
from pprint import pprint
402402
# Defining the host is optional and defaults to https://app.launchdarkly.com
@@ -421,16 +421,16 @@ with launchdarkly_api.ApiClient(configuration) as api_client:
421421
# Create an instance of the API class
422422
api_instance = account_members_api.AccountMembersApi(api_client)
423423
id = "id_example" # str | The member ID
424-
member_teams_form_post = MemberTeamsFormPost(
424+
member_teams_post_input = MemberTeamsPostInput(
425425
team_keys=[
426426
"team_keys_example",
427427
],
428-
) # MemberTeamsFormPost |
428+
) # MemberTeamsPostInput |
429429

430430
# example passing only required values which don't have defaults set
431431
try:
432432
# Add member to teams
433-
api_response = api_instance.post_member_teams(id, member_teams_form_post)
433+
api_response = api_instance.post_member_teams(id, member_teams_post_input)
434434
pprint(api_response)
435435
except launchdarkly_api.ApiException as e:
436436
print("Exception when calling AccountMembersApi->post_member_teams: %s\n" % e)
@@ -442,7 +442,7 @@ with launchdarkly_api.ApiClient(configuration) as api_client:
442442
Name | Type | Description | Notes
443443
------------- | ------------- | ------------- | -------------
444444
**id** | **str**| The member ID |
445-
**member_teams_form_post** | [**MemberTeamsFormPost**](MemberTeamsFormPost.md)| |
445+
**member_teams_post_input** | [**MemberTeamsPostInput**](MemberTeamsPostInput.md)| |
446446

447447
### Return type
448448

Diff for: docs/EnvironmentsApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Name | Type | Description | Notes
191191
192192
Update environment
193193

194-
> ### Approval settings > > The `approvalSettings` key is only returned when the Flag Approvals feature is enabled. > > Only the `canReviewOwnRequest`, `canApplyDeclinedChanges`, `minNumApprovals`, `required` and `requiredApprovalTagsfields` are editable. > > If you try to patch the environment by setting both `required` and `requiredApprovalTags`, it fails and an error appears. Users can specify either required approvals for all flags in an environment or those with specific tags, but not both. Only customers on an Enterprise plan can require approval for flag updates by either mechanism.
194+
Update an environment. Requires a [JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes to the environment. To update fields in the environment object that are arrays, set the `path` to the name of the field and then append `/<array index>`. Using `/0` appends to the beginning of the array. ### Approval settings This request only returns the `approvalSettings` key if the [Flag Approvals](https://docs.launchdarkly.com/home/feature-workflows/approvals) feature is enabled. Only the `canReviewOwnRequest`, `canApplyDeclinedChanges`, `minNumApprovals`, `required` and `requiredApprovalTagsfields` are editable. If you try to patch the environment by setting both `required` and `requiredApprovalTags`, the request fails and an error appears. You can specify either required approvals for all flags in an environment or those with specific tags, but not both. Only customers on a Pro or Enterprise plan can require approval for flag updates by either mechanism.
195195

196196
### Example
197197

Diff for: docs/MemberTeamsPostInput.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# MemberTeamsPostInput
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**team_keys** | **[str]** | List of team keys |
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+

Diff for: docs/MetricsApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ Name | Type | Description | Notes
272272
273273
Update metric
274274

275-
Patch a environment by key.
275+
Patch a metric by key.
276276

277277
### Example
278278

Diff for: docs/StatementPost.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**resources** | **[str]** | Resource specifier strings |
8-
**actions** | **[str]** | Actions to perform on a resource |
97
**effect** | **str** | |
8+
**resources** | **[str]** | Resource specifier strings | [optional]
109
**not_resources** | **[str]** | Targeted resources are the resources NOT in this list. The \&quot;resources\&quot; field must be empty to use this field. | [optional]
10+
**actions** | **[str]** | Actions to perform on a resource | [optional]
1111
**not_actions** | **[str]** | Targeted actions are the actions NOT in this list. The \&quot;actions\&quot; field must be empty to use this field. | [optional]
1212
**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]
1313

Diff for: docs/StatementPostData.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**resources** | **[str]** | Resource specifier strings |
8-
**actions** | **[str]** | Actions to perform on a resource |
97
**effect** | **str** | |
8+
**resources** | **[str]** | Resource specifier strings | [optional]
109
**not_resources** | **[str]** | Targeted resources are the resources NOT in this list. The \&quot;resources\&quot; field must be empty to use this field. | [optional]
10+
**actions** | **[str]** | Actions to perform on a resource | [optional]
1111
**not_actions** | **[str]** | Targeted actions are the actions NOT in this list. The \&quot;actions\&quot; field must be empty to use this field. | [optional]
1212
**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]
1313

Diff for: launchdarkly_api/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"""
1414

1515

16-
__version__ = "7.1.0"
16+
__version__ = "7.1.1"
1717

1818
# import ApiClient
1919
from launchdarkly_api.api_client import ApiClient

Diff for: launchdarkly_api/api/account_members_api.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from launchdarkly_api.model.invalid_request_error_rep import InvalidRequestErrorRep
2929
from launchdarkly_api.model.json_patch import JSONPatch
3030
from launchdarkly_api.model.member import Member
31-
from launchdarkly_api.model.member_teams_form_post import MemberTeamsFormPost
31+
from launchdarkly_api.model.member_teams_post_input import MemberTeamsPostInput
3232
from launchdarkly_api.model.members import Members
3333
from launchdarkly_api.model.new_member_form_list_post import NewMemberFormListPost
3434
from launchdarkly_api.model.not_found_error_rep import NotFoundErrorRep
@@ -286,11 +286,11 @@ def __init__(self, api_client=None):
286286
params_map={
287287
'all': [
288288
'id',
289-
'member_teams_form_post',
289+
'member_teams_post_input',
290290
],
291291
'required': [
292292
'id',
293-
'member_teams_form_post',
293+
'member_teams_post_input',
294294
],
295295
'nullable': [
296296
],
@@ -307,15 +307,15 @@ def __init__(self, api_client=None):
307307
'openapi_types': {
308308
'id':
309309
(str,),
310-
'member_teams_form_post':
311-
(MemberTeamsFormPost,),
310+
'member_teams_post_input':
311+
(MemberTeamsPostInput,),
312312
},
313313
'attribute_map': {
314314
'id': 'id',
315315
},
316316
'location_map': {
317317
'id': 'path',
318-
'member_teams_form_post': 'body',
318+
'member_teams_post_input': 'body',
319319
},
320320
'collection_format_map': {
321321
}
@@ -653,7 +653,7 @@ def patch_member(
653653
def post_member_teams(
654654
self,
655655
id,
656-
member_teams_form_post,
656+
member_teams_post_input,
657657
**kwargs
658658
):
659659
"""Add member to teams # noqa: E501
@@ -662,12 +662,12 @@ def post_member_teams(
662662
This method makes a synchronous HTTP request by default. To make an
663663
asynchronous HTTP request, please pass async_req=True
664664
665-
>>> thread = api.post_member_teams(id, member_teams_form_post, async_req=True)
665+
>>> thread = api.post_member_teams(id, member_teams_post_input, async_req=True)
666666
>>> result = thread.get()
667667
668668
Args:
669669
id (str): The member ID
670-
member_teams_form_post (MemberTeamsFormPost):
670+
member_teams_post_input (MemberTeamsPostInput):
671671
672672
Keyword Args:
673673
_return_http_data_only (bool): response data without head status
@@ -716,8 +716,8 @@ def post_member_teams(
716716
kwargs['_host_index'] = kwargs.get('_host_index')
717717
kwargs['id'] = \
718718
id
719-
kwargs['member_teams_form_post'] = \
720-
member_teams_form_post
719+
kwargs['member_teams_post_input'] = \
720+
member_teams_post_input
721721
return self.post_member_teams_endpoint.call_with_http_info(**kwargs)
722722

723723
def post_members(

Diff for: launchdarkly_api/api/environments_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ def patch_environment(
551551
):
552552
"""Update environment # noqa: E501
553553
554-
> ### Approval settings > > The `approvalSettings` key is only returned when the Flag Approvals feature is enabled. > > Only the `canReviewOwnRequest`, `canApplyDeclinedChanges`, `minNumApprovals`, `required` and `requiredApprovalTagsfields` are editable. > > If you try to patch the environment by setting both `required` and `requiredApprovalTags`, it fails and an error appears. Users can specify either required approvals for all flags in an environment or those with specific tags, but not both. Only customers on an Enterprise plan can require approval for flag updates by either mechanism. # noqa: E501
554+
Update an environment. Requires a [JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes to the environment. To update fields in the environment object that are arrays, set the `path` to the name of the field and then append `/<array index>`. Using `/0` appends to the beginning of the array. ### Approval settings This request only returns the `approvalSettings` key if the [Flag Approvals](https://docs.launchdarkly.com/home/feature-workflows/approvals) feature is enabled. Only the `canReviewOwnRequest`, `canApplyDeclinedChanges`, `minNumApprovals`, `required` and `requiredApprovalTagsfields` are editable. If you try to patch the environment by setting both `required` and `requiredApprovalTags`, the request fails and an error appears. You can specify either required approvals for all flags in an environment or those with specific tags, but not both. Only customers on a Pro or Enterprise plan can require approval for flag updates by either mechanism. # noqa: E501
555555
This method makes a synchronous HTTP request by default. To make an
556556
asynchronous HTTP request, please pass async_req=True
557557

Diff for: launchdarkly_api/api/metrics_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ def patch_metric(
550550
):
551551
"""Update metric # noqa: E501
552552
553-
Patch a environment by key. # noqa: E501
553+
Patch a metric by key. # noqa: E501
554554
This method makes a synchronous HTTP request by default. To make an
555555
asynchronous HTTP request, please pass async_req=True
556556

Diff for: launchdarkly_api/api_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7979
self.default_headers[header_name] = header_value
8080
self.cookie = cookie
8181
# Set default User-Agent.
82-
self.user_agent = 'OpenAPI-Generator/7.1.0/python'
82+
self.user_agent = 'OpenAPI-Generator/7.1.1/python'
8383

8484
def __enter__(self):
8585
return self

Diff for: launchdarkly_api/configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def to_debug_report(self):
409409
"OS: {env}\n"\
410410
"Python Version: {pyversion}\n"\
411411
"Version of the API: 2.0\n"\
412-
"SDK Package Version: 7.1.0".\
412+
"SDK Package Version: 7.1.1".\
413413
format(env=sys.platform, pyversion=sys.version)
414414

415415
def get_host_settings(self):

Diff for: launchdarkly_api/model/member_teams_post_input.py

+264
Large diffs are not rendered by default.

Diff for: launchdarkly_api/model/statement_post.py

+10-14
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ def openapi_types():
8484
and the value is attribute type.
8585
"""
8686
return {
87-
'resources': ([str],), # noqa: E501
88-
'actions': ([str],), # noqa: E501
8987
'effect': (str,), # noqa: E501
88+
'resources': ([str],), # noqa: E501
9089
'not_resources': ([str],), # noqa: E501
90+
'actions': ([str],), # noqa: E501
9191
'not_actions': ([str],), # noqa: E501
9292
}
9393

@@ -97,10 +97,10 @@ def discriminator():
9797

9898

9999
attribute_map = {
100-
'resources': 'resources', # noqa: E501
101-
'actions': 'actions', # noqa: E501
102100
'effect': 'effect', # noqa: E501
101+
'resources': 'resources', # noqa: E501
103102
'not_resources': 'notResources', # noqa: E501
103+
'actions': 'actions', # noqa: E501
104104
'not_actions': 'notActions', # noqa: E501
105105
}
106106

@@ -111,12 +111,10 @@ def discriminator():
111111

112112
@classmethod
113113
@convert_js_args_to_python_args
114-
def _from_openapi_data(cls, resources, actions, effect, *args, **kwargs): # noqa: E501
114+
def _from_openapi_data(cls, effect, *args, **kwargs): # noqa: E501
115115
"""StatementPost - a model defined in OpenAPI
116116
117117
Args:
118-
resources ([str]): Resource specifier strings
119-
actions ([str]): Actions to perform on a resource
120118
effect (str):
121119
122120
Keyword Args:
@@ -150,7 +148,9 @@ def _from_openapi_data(cls, resources, actions, effect, *args, **kwargs): # noq
150148
Animal class but this time we won't travel
151149
through its discriminator because we passed in
152150
_visited_composed_classes = (Animal,)
151+
resources ([str]): Resource specifier strings. [optional] # noqa: E501
153152
not_resources ([str]): Targeted resources are the resources NOT in this list. The \"resources\" field must be empty to use this field.. [optional] # noqa: E501
153+
actions ([str]): Actions to perform on a resource. [optional] # noqa: E501
154154
not_actions ([str]): Targeted actions are the actions NOT in this list. The \"actions\" field must be empty to use this field.. [optional] # noqa: E501
155155
"""
156156

@@ -179,8 +179,6 @@ def _from_openapi_data(cls, resources, actions, effect, *args, **kwargs): # noq
179179
self._configuration = _configuration
180180
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
181181

182-
self.resources = resources
183-
self.actions = actions
184182
self.effect = effect
185183
for var_name, var_value in kwargs.items():
186184
if var_name not in self.attribute_map and \
@@ -202,12 +200,10 @@ def _from_openapi_data(cls, resources, actions, effect, *args, **kwargs): # noq
202200
])
203201

204202
@convert_js_args_to_python_args
205-
def __init__(self, resources, actions, effect, *args, **kwargs): # noqa: E501
203+
def __init__(self, effect, *args, **kwargs): # noqa: E501
206204
"""StatementPost - a model defined in OpenAPI
207205
208206
Args:
209-
resources ([str]): Resource specifier strings
210-
actions ([str]): Actions to perform on a resource
211207
effect (str):
212208
213209
Keyword Args:
@@ -241,7 +237,9 @@ def __init__(self, resources, actions, effect, *args, **kwargs): # noqa: E501
241237
Animal class but this time we won't travel
242238
through its discriminator because we passed in
243239
_visited_composed_classes = (Animal,)
240+
resources ([str]): Resource specifier strings. [optional] # noqa: E501
244241
not_resources ([str]): Targeted resources are the resources NOT in this list. The \"resources\" field must be empty to use this field.. [optional] # noqa: E501
242+
actions ([str]): Actions to perform on a resource. [optional] # noqa: E501
245243
not_actions ([str]): Targeted actions are the actions NOT in this list. The \"actions\" field must be empty to use this field.. [optional] # noqa: E501
246244
"""
247245

@@ -268,8 +266,6 @@ def __init__(self, resources, actions, effect, *args, **kwargs): # noqa: E501
268266
self._configuration = _configuration
269267
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
270268

271-
self.resources = resources
272-
self.actions = actions
273269
self.effect = effect
274270
for var_name, var_value in kwargs.items():
275271
if var_name not in self.attribute_map and \

0 commit comments

Comments
 (0)