Skip to content

Commit 15b68b1

Browse files
author
LaunchDarklyReleaseBot
committed
Version 18.0.0 automatically generated from ld-openapi.
1 parent c3a33c1 commit 15b68b1

File tree

960 files changed

+11384
-4642
lines changed

Some content is hidden

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

960 files changed

+11384
-4642
lines changed

.github/workflows/python.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,28 @@ name: launchdarkly_api Python package
77

88
on: [push, pull_request]
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
build:
1215

1316
runs-on: ubuntu-latest
1417
strategy:
1518
matrix:
16-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
19+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1720

1821
steps:
19-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2023
- name: Set up Python ${{ matrix.python-version }}
2124
uses: actions/setup-python@v4
2225
with:
2326
python-version: ${{ matrix.python-version }}
2427
- name: Install dependencies
2528
run: |
2629
python -m pip install --upgrade pip
27-
pip install flake8 pytest
28-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29-
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
30-
- name: Lint with flake8
31-
run: |
32-
# stop the build if there are Python syntax errors or undefined names
33-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
34-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
35-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
30+
pip install -r requirements.txt
31+
pip install -r test-requirements.txt
3632
- name: Test with pytest
3733
run: |
38-
pytest
34+
pytest --cov=launchdarkly_api

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ docs/_build/
6262
# PyBuilder
6363
target/
6464

65-
#Ipython Notebook
65+
# Ipython Notebook
6666
.ipynb_checkpoints

.gitlab-ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ stages:
1414
- pip install -r test-requirements.txt
1515
- pytest --cov=launchdarkly_api
1616

17-
pytest-3.7:
18-
extends: .pytest
19-
image: python:3.7-alpine
20-
pytest-3.8:
21-
extends: .pytest
22-
image: python:3.8-alpine
2317
pytest-3.9:
2418
extends: .pytest
2519
image: python:3.9-alpine
@@ -29,3 +23,9 @@ pytest-3.10:
2923
pytest-3.11:
3024
extends: .pytest
3125
image: python:3.11-alpine
26+
pytest-3.12:
27+
extends: .pytest
28+
image: python:3.12-alpine
29+
pytest-3.13:
30+
extends: .pytest
31+
image: python:3.13-alpine

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.5.0
1+
7.16.0

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# ref: https://docs.travis-ci.com/user/languages/python
22
language: python
33
python:
4-
- "3.7"
5-
- "3.8"
64
- "3.9"
75
- "3.10"
86
- "3.11"
7+
- "3.12"
8+
- "3.13"
99
# uncomment the following if needed
10-
#- "3.11-dev" # 3.11 development branch
10+
#- "3.13-dev" # 3.13 development branch
1111
#- "nightly" # nightly build
1212
# command to install dependencies
1313
install:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,13 +448,13 @@ This Python package is automatically generated by the [OpenAPI Generator](https:
448448

449449
- API version: 2.0
450450
- Package version: 18.0.0
451-
- Generator version: 7.5.0
451+
- Generator version: 7.16.0
452452
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
453453
For more information, please visit [https://support.launchdarkly.com](https://support.launchdarkly.com)
454454

455455
## Requirements.
456456

457-
Python 3.7+
457+
Python 3.9+
458458

459459
## Installation & Usage
460460
### pip install

docs/AIConfigsBetaApi.md

Lines changed: 600 additions & 4 deletions
Large diffs are not rendered by default.

docs/AccountMembersApi.md

Lines changed: 93 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,19 @@ void (empty response body)
9898
9999
Get account member
100100

101-
Get a single account member by member ID. `me` is a reserved value for the `id` parameter that returns the caller's member information. ### Expanding the member response LaunchDarkly supports one field for expanding the \"Get member\" response. By default, this field is **not** included in the response. To expand the response, append the `expand` query parameter and add a comma-separated list with any of the following fields: * `roleAttributes` includes a list of the role attributes that you have assigned to the member. For example, `expand=roleAttributes` includes `roleAttributes` field in the response.
101+
Get a single account member by member ID.
102+
103+
`me` is a reserved value for the `id` parameter that returns the caller's member information.
104+
105+
### Expanding the member response
106+
LaunchDarkly supports one field for expanding the "Get member" response. By default, this field is **not** included in the response.
107+
108+
To expand the response, append the `expand` query parameter and add a comma-separated list with any of the following fields:
109+
110+
* `roleAttributes` includes a list of the role attributes that you have assigned to the member.
111+
112+
For example, `expand=roleAttributes` includes `roleAttributes` field in the response.
113+
102114

103115
### Example
104116

@@ -183,7 +195,47 @@ Name | Type | Description | Notes
183195
184196
List account members
185197

186-
Return a list of account members. By default, this returns the first 20 members. Page through this list with the `limit` parameter and by following the `first`, `prev`, `next`, and `last` links in the returned `_links` field. These links are not present if the pages they refer to don't exist. For example, the `first` and `prev` links will be missing from the response on the first page. ### Filtering members LaunchDarkly supports the following fields for filters: - `query` is a string that matches against the members' emails and names. It is not case sensitive. - `role` is a `|` separated list of roles and custom roles. It filters the list to members who have any of the roles in the list. For the purposes of this filtering, `Owner` counts as `Admin`. - `id` is a `|` separated list of member IDs. It filters the list to members who match any of the IDs in the list. - `email` is a `|` separated list of member emails. It filters the list to members who match any of the emails in the list. - `team` is a string that matches against the key of the teams the members belong to. It is not case sensitive. - `noteam` is a boolean that filters the list of members who are not on a team if true and members on a team if false. - `lastSeen` is a JSON object in 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. - `accessCheck` is a string that represents a specific action on a specific resource and is in the format `<ActionSpecifier>:<ResourceSpecifier>`. It filters the list to members who have the ability to perform that action on that resource. Note: `accessCheck` is only supported in API version `20220603` and earlier. To learn more, read [Versioning](https://launchdarkly.com/docs/api#versioning). - For example, the filter `accessCheck:createApprovalRequest:proj/default:env/test:flag/alternate-page` matches members with the ability to create an approval request for the `alternate-page` flag in the `test` environment of the `default` project. - Wildcard and tag filters are not supported when filtering for access. For example, the filter `query:abc,role:admin|customrole` matches members with the string `abc` in their email or name, ignoring case, who also are either an `Owner` or `Admin` or have the custom role `customrole`. ### Sorting members LaunchDarkly supports two fields for sorting: `displayName` and `lastSeen`: - `displayName` sorts by first + last name, using the member's email if no name is set. - `lastSeen` sorts by the `_lastSeen` property. LaunchDarkly considers members that have never been seen or have no data the oldest. ### Expanding the members response LaunchDarkly supports two fields for expanding the \"List members\" response. By default, these fields are **not** included in the response. To expand the response, append the `expand` query parameter and add a comma-separated list with any of the following fields: * `customRoles` includes a list of the roles that you have assigned to the member. * `roleAttributes` includes a list of the role attributes that you have assigned to the member. For example, `expand=roleAttributes` includes `roleAttributes` field in the response.
198+
Return a list of account members.
199+
200+
By default, this returns the first 20 members. Page through this list with the `limit` parameter and by following the `first`, `prev`, `next`, and `last` links in the returned `_links` field. These links are not present if the pages they refer to don't exist. For example, the `first` and `prev` links will be missing from the response on the first page.
201+
202+
### Filtering members
203+
204+
LaunchDarkly supports the following fields for filters:
205+
206+
- `query` is a string that matches against the members' emails and names. It is not case sensitive.
207+
- `role` is a `|` separated list of roles and custom roles. It filters the list to members who have any of the roles in the list. For the purposes of this filtering, `Owner` counts as `Admin`.
208+
- `id` is a `|` separated list of member IDs. It filters the list to members who match any of the IDs in the list.
209+
- `email` is a `|` separated list of member emails. It filters the list to members who match any of the emails in the list.
210+
- `team` is a string that matches against the key of the teams the members belong to. It is not case sensitive.
211+
- `noteam` is a boolean that filters the list of members who are not on a team if true and members on a team if false.
212+
- `lastSeen` is a JSON object in one of the following formats:
213+
- `{"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.
214+
- `{"noData": true}` - Members that have not been active since LaunchDarkly began recording last seen timestamps.
215+
- `{"before": 1608672063611}` - Members that have not been active since the provided value, which should be a timestamp in Unix epoch milliseconds.
216+
- `accessCheck` is a string that represents a specific action on a specific resource and is in the format `<ActionSpecifier>:<ResourceSpecifier>`. It filters the list to members who have the ability to perform that action on that resource. Note: `accessCheck` is only supported in API version `20220603` and earlier. To learn more, read [Versioning](https://launchdarkly.com/docs/api#versioning).
217+
- For example, the filter `accessCheck:createApprovalRequest:proj/default:env/test:flag/alternate-page` matches members with the ability to create an approval request for the `alternate-page` flag in the `test` environment of the `default` project.
218+
- Wildcard and tag filters are not supported when filtering for access.
219+
220+
For example, the filter `query:abc,role:admin|customrole` matches members with the string `abc` in their email or name, ignoring case, who also are either an `Owner` or `Admin` or have the custom role `customrole`.
221+
222+
### Sorting members
223+
224+
LaunchDarkly supports two fields for sorting: `displayName` and `lastSeen`:
225+
226+
- `displayName` sorts by first + last name, using the member's email if no name is set.
227+
- `lastSeen` sorts by the `_lastSeen` property. LaunchDarkly considers members that have never been seen or have no data the oldest.
228+
229+
### Expanding the members response
230+
LaunchDarkly supports two fields for expanding the "List members" response. By default, these fields are **not** included in the response.
231+
232+
To expand the response, append the `expand` query parameter and add a comma-separated list with any of the following fields:
233+
234+
* `customRoles` includes a list of the roles that you have assigned to the member.
235+
* `roleAttributes` includes a list of the role attributes that you have assigned to the member.
236+
237+
For example, `expand=roleAttributes` includes `roleAttributes` field in the response.
238+
187239

188240
### Example
189241

@@ -274,7 +326,25 @@ Name | Type | Description | Notes
274326
275327
Modify an account member
276328

277-
Update a single account member. Updating a member uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes. To learn more, read [Updates](https://launchdarkly.com/docs/api#updates). To update fields in the account member object that are arrays, set the `path` to the name of the field and then append `/<array index>`. Use `/0` to add to the beginning of the array. Use `/-` to add to the end of the array. For example, to add a new custom role to a member, use the following request body: ``` [ { \"op\": \"add\", \"path\": \"/customRoles/0\", \"value\": \"some-role-id\" } ] ``` You can update only an account member's role or custom role using a JSON patch. Members can update their own names and email addresses though the LaunchDarkly UI. When SAML SSO or SCIM is enabled for the account, account members are managed in the Identity Provider (IdP). Requests to update account members will succeed, but the IdP will override the update shortly afterwards.
329+
330+
Update a single account member. Updating a member uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes. To learn more, read [Updates](https://launchdarkly.com/docs/api#updates).
331+
332+
To update fields in the account member object that are arrays, set the `path` to the name of the field and then append `/<array index>`. Use `/0` to add to the beginning of the array. Use `/-` to add to the end of the array. For example, to add a new custom role to a member, use the following request body:
333+
334+
```
335+
[
336+
{
337+
"op": "add",
338+
"path": "/customRoles/0",
339+
"value": "some-role-id"
340+
}
341+
]
342+
```
343+
344+
You can update only an account member's role or custom role using a JSON patch. Members can update their own names and email addresses though the LaunchDarkly UI.
345+
346+
When SAML SSO or SCIM is enabled for the account, account members are managed in the Identity Provider (IdP). Requests to update account members will succeed, but the IdP will override the update shortly afterwards.
347+
278348

279349
### Example
280350

@@ -450,7 +520,26 @@ Name | Type | Description | Notes
450520
451521
Invite new members
452522

453-
Invite one or more new members to join an account. Each member is sent an invitation. Members with Admin or Owner roles may create new members, as well as anyone with a `createMember` permission for \"member/\\*\". If a member cannot be invited, the entire request is rejected and no members are invited from that request. Each member _must_ have an `email` field and either a `role` or a `customRoles` field. If any of the fields are not populated correctly, the request is rejected with the reason specified in the \"message\" field of the response. Valid base role names that you can provide for the `role` field include `reader`, `writer`, `admin`, `owner/admin`, and `no_access`. To learn more about base roles, read [Organization roles](https://launchdarkly.com/docs/home/account/roles/organization-roles). If you are using the `customRoles` field instead, you can provide the key for any role that you have created, or for any preset [organization role](https://launchdarkly.com/docs/home/account/roles/organization-roles) or [project role](https://launchdarkly.com/docs/home/account/roles/project-roles) provided by LaunchDarkly. Some preset roles additionally require that you specify `roleAttributes`. To learn more, read [Using role scope](https://launchdarkly.com/docs/home/account/roles/role-scope). Requests to create account members will not work if SCIM is enabled for the account. _No more than 50 members may be created per request._ A request may also fail because of conflicts with existing members. These conflicts are reported using the additional `code` and `invalid_emails` response fields with the following possible values for `code`: - **email_already_exists_in_account**: A member with this email address already exists in this account. - **email_taken_in_different_account**: A member with this email address exists in another account. - **duplicate_email**s: This request contains two or more members with the same email address. A request that fails for one of the above reasons returns an HTTP response code of 400 (Bad Request).
523+
Invite one or more new members to join an account. Each member is sent an invitation. Members with Admin or Owner roles may create new members, as well as anyone with a `createMember` permission for "member/\*". If a member cannot be invited, the entire request is rejected and no members are invited from that request.
524+
525+
Each member _must_ have an `email` field and either a `role` or a `customRoles` field. If any of the fields are not populated correctly, the request is rejected with the reason specified in the "message" field of the response.
526+
527+
Valid base role names that you can provide for the `role` field include `reader`, `writer`, `admin`, `owner/admin`, and `no_access`. To learn more about base roles, read [Organization roles](https://launchdarkly.com/docs/home/account/roles/organization-roles).
528+
529+
If you are using the `customRoles` field instead, you can provide the key for any role that you have created, or for any preset [organization role](https://launchdarkly.com/docs/home/account/roles/organization-roles) or [project role](https://launchdarkly.com/docs/home/account/roles/project-roles) provided by LaunchDarkly. Some preset roles additionally require that you specify `roleAttributes`. To learn more, read [Using role scope](https://launchdarkly.com/docs/home/account/roles/role-scope).
530+
531+
Requests to create account members will not work if SCIM is enabled for the account.
532+
533+
_No more than 50 members may be created per request._
534+
535+
A request may also fail because of conflicts with existing members. These conflicts are reported using the additional `code` and `invalid_emails` response fields with the following possible values for `code`:
536+
537+
- **email_already_exists_in_account**: A member with this email address already exists in this account.
538+
- **email_taken_in_different_account**: A member with this email address exists in another account.
539+
- **duplicate_email**s: This request contains two or more members with the same email address.
540+
541+
A request that fails for one of the above reasons returns an HTTP response code of 400 (Bad Request).
542+
454543

455544
### Example
456545

0 commit comments

Comments
 (0)