Skip to content

Commit 9bc9157

Browse files
chore: LEAP-191: mark blueprints internal (#610)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 2271e47 commit 9bc9157

11 files changed

Lines changed: 5 additions & 554 deletions

File tree

.mock/definition/blueprints.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ service:
4949
title: title
5050
updated_at: '2024-01-15T09:30:00Z'
5151
audiences:
52-
- public
52+
- internal
5353
delete:
5454
path: /api/blueprints/{id}/
5555
method: DELETE
@@ -64,7 +64,7 @@ service:
6464
- path-parameters:
6565
id: id
6666
audiences:
67-
- public
67+
- internal
6868
api_blueprints_create_project_retrieve:
6969
path: /api/blueprints/{share_id}/create-project
7070
method: GET

.mock/openapi/openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ paths:
876876
tags:
877877
- Blueprints
878878
x-fern-audiences:
879-
- public
879+
- internal
880880
x-fern-sdk-group-name: blueprints
881881
x-fern-sdk-method-name: create
882882
/api/blueprints/{id}/:
@@ -898,7 +898,7 @@ paths:
898898
tags:
899899
- Blueprints
900900
x-fern-audiences:
901-
- public
901+
- internal
902902
x-fern-sdk-group-name: blueprints
903903
x-fern-sdk-method-name: delete
904904
/api/blueprints/{share_id}/create-project:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "label-studio-sdk"
33

44
[tool.poetry]
55
name = "label-studio-sdk"
6-
version = "2.0.9.dev"
6+
version = "2.0.9"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 0 additions & 173 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,179 +1680,6 @@ client.billing.info()
16801680
</dl>
16811681

16821682

1683-
</dd>
1684-
</dl>
1685-
</details>
1686-
1687-
## Blueprints
1688-
<details><summary><code>client.blueprints.<a href="src/label_studio_sdk/blueprints/client.py">create</a>(...)</code></summary>
1689-
<dl>
1690-
<dd>
1691-
1692-
#### 📝 Description
1693-
1694-
<dl>
1695-
<dd>
1696-
1697-
<dl>
1698-
<dd>
1699-
1700-
Create a new blueprint
1701-
</dd>
1702-
</dl>
1703-
</dd>
1704-
</dl>
1705-
1706-
#### 🔌 Usage
1707-
1708-
<dl>
1709-
<dd>
1710-
1711-
<dl>
1712-
<dd>
1713-
1714-
```python
1715-
from label_studio_sdk import LabelStudio
1716-
1717-
client = LabelStudio(
1718-
api_key="YOUR_API_KEY",
1719-
)
1720-
client.blueprints.create(
1721-
project=1,
1722-
)
1723-
1724-
```
1725-
</dd>
1726-
</dl>
1727-
</dd>
1728-
</dl>
1729-
1730-
#### ⚙️ Parameters
1731-
1732-
<dl>
1733-
<dd>
1734-
1735-
<dl>
1736-
<dd>
1737-
1738-
**project:** `int`
1739-
1740-
</dd>
1741-
</dl>
1742-
1743-
<dl>
1744-
<dd>
1745-
1746-
**created_by:** `typing.Optional[int]`
1747-
1748-
</dd>
1749-
</dl>
1750-
1751-
<dl>
1752-
<dd>
1753-
1754-
**description:** `typing.Optional[str]` — Project description
1755-
1756-
</dd>
1757-
</dl>
1758-
1759-
<dl>
1760-
<dd>
1761-
1762-
**label_config:** `typing.Optional[str]` — Labeling configuration in XML format
1763-
1764-
</dd>
1765-
</dl>
1766-
1767-
<dl>
1768-
<dd>
1769-
1770-
**title:** `typing.Optional[str]` — Blueprint name. Must be between 3 and 50 characters long.
1771-
1772-
</dd>
1773-
</dl>
1774-
1775-
<dl>
1776-
<dd>
1777-
1778-
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
1779-
1780-
</dd>
1781-
</dl>
1782-
</dd>
1783-
</dl>
1784-
1785-
1786-
</dd>
1787-
</dl>
1788-
</details>
1789-
1790-
<details><summary><code>client.blueprints.<a href="src/label_studio_sdk/blueprints/client.py">delete</a>(...)</code></summary>
1791-
<dl>
1792-
<dd>
1793-
1794-
#### 📝 Description
1795-
1796-
<dl>
1797-
<dd>
1798-
1799-
<dl>
1800-
<dd>
1801-
1802-
Delete a blueprint by ID
1803-
</dd>
1804-
</dl>
1805-
</dd>
1806-
</dl>
1807-
1808-
#### 🔌 Usage
1809-
1810-
<dl>
1811-
<dd>
1812-
1813-
<dl>
1814-
<dd>
1815-
1816-
```python
1817-
from label_studio_sdk import LabelStudio
1818-
1819-
client = LabelStudio(
1820-
api_key="YOUR_API_KEY",
1821-
)
1822-
client.blueprints.delete(
1823-
id="id",
1824-
)
1825-
1826-
```
1827-
</dd>
1828-
</dl>
1829-
</dd>
1830-
</dl>
1831-
1832-
#### ⚙️ Parameters
1833-
1834-
<dl>
1835-
<dd>
1836-
1837-
<dl>
1838-
<dd>
1839-
1840-
**id:** `str`
1841-
1842-
</dd>
1843-
</dl>
1844-
1845-
<dl>
1846-
<dd>
1847-
1848-
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
1849-
1850-
</dd>
1851-
</dl>
1852-
</dd>
1853-
</dl>
1854-
1855-
18561683
</dd>
18571684
</dl>
18581685
</details>

src/label_studio_sdk/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
BillingFlags,
3636
BillingInfoResponse,
3737
BlankEnum,
38-
Blueprint,
3938
BlueprintList,
4039
BudgetResetPeriodEnum,
4140
ChildFilter,
@@ -240,7 +239,6 @@
240239
annotation_reviews,
241240
annotations,
242241
billing,
243-
blueprints,
244242
comments,
245243
export_storage,
246244
files,
@@ -394,7 +392,6 @@
394392
"BillingFlags",
395393
"BillingInfoResponse",
396394
"BlankEnum",
397-
"Blueprint",
398395
"BlueprintList",
399396
"BudgetResetPeriodEnum",
400397
"ChildFilter",
@@ -649,7 +646,6 @@
649646
"annotation_reviews",
650647
"annotations",
651648
"billing",
652-
"blueprints",
653649
"comments",
654650
"export_storage",
655651
"files",

src/label_studio_sdk/base_client.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from .annotation_reviews.client import AnnotationReviewsClient
1212
from .annotations.client import AnnotationsClient
1313
from .billing.client import BillingClient
14-
from .blueprints.client import BlueprintsClient
1514
from .comments.client import CommentsClient
1615
from .users.client import UsersClient
1716
from .actions.client import ActionsClient
@@ -40,7 +39,6 @@
4039
from .annotation_reviews.client import AsyncAnnotationReviewsClient
4140
from .annotations.client import AsyncAnnotationsClient
4241
from .billing.client import AsyncBillingClient
43-
from .blueprints.client import AsyncBlueprintsClient
4442
from .comments.client import AsyncCommentsClient
4543
from .users.client import AsyncUsersClient
4644
from .actions.client import AsyncActionsClient
@@ -132,7 +130,6 @@ def __init__(
132130
self.annotation_reviews = AnnotationReviewsClient(client_wrapper=self._client_wrapper)
133131
self.annotations = AnnotationsClient(client_wrapper=self._client_wrapper)
134132
self.billing = BillingClient(client_wrapper=self._client_wrapper)
135-
self.blueprints = BlueprintsClient(client_wrapper=self._client_wrapper)
136133
self.comments = CommentsClient(client_wrapper=self._client_wrapper)
137134
self.users = UsersClient(client_wrapper=self._client_wrapper)
138135
self.actions = ActionsClient(client_wrapper=self._client_wrapper)
@@ -224,7 +221,6 @@ def __init__(
224221
self.annotation_reviews = AsyncAnnotationReviewsClient(client_wrapper=self._client_wrapper)
225222
self.annotations = AsyncAnnotationsClient(client_wrapper=self._client_wrapper)
226223
self.billing = AsyncBillingClient(client_wrapper=self._client_wrapper)
227-
self.blueprints = AsyncBlueprintsClient(client_wrapper=self._client_wrapper)
228224
self.comments = AsyncCommentsClient(client_wrapper=self._client_wrapper)
229225
self.users = AsyncUsersClient(client_wrapper=self._client_wrapper)
230226
self.actions = AsyncActionsClient(client_wrapper=self._client_wrapper)

src/label_studio_sdk/blueprints/__init__.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)