Skip to content

Commit d54a40d

Browse files
committed
Remove unreleased method
1 parent b76a755 commit d54a40d

File tree

3 files changed

+1
-46
lines changed

3 files changed

+1
-46
lines changed

tests/test_organizations.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -218,25 +218,6 @@ def test_delete_organization(self, capture_and_mock_http_client_request):
218218
assert request_kwargs["method"] == "delete"
219219
assert response is None
220220

221-
def test_delete_organization_domain(self, capture_and_mock_http_client_request):
222-
request_kwargs = capture_and_mock_http_client_request(
223-
self.http_client,
224-
204,
225-
headers={"content-type": "text/plain; charset=utf-8"},
226-
)
227-
228-
response = syncify(
229-
self.organizations.delete_organization_domain(
230-
organization_domain_id="org_domain_01EHT88Z8WZEFWYPM6EC9BX2R8"
231-
)
232-
)
233-
234-
assert request_kwargs["url"].endswith(
235-
"/organization_domains/org_domain_01EHT88Z8WZEFWYPM6EC9BX2R8"
236-
)
237-
assert request_kwargs["method"] == "delete"
238-
assert response is None
239-
240221
def test_list_organizations_auto_pagination_for_single_page(
241222
self,
242223
mock_organizations_single_page_response,

workos/organization_domains.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Optional, Protocol
1+
from typing import Protocol
22
from workos._client_configuration import ClientConfiguration
33
from workos.types.organization_domains import OrganizationDomain
44
from workos.typing.sync_or_async import SyncOrAsync
@@ -7,7 +7,6 @@
77
REQUEST_METHOD_DELETE,
88
REQUEST_METHOD_GET,
99
REQUEST_METHOD_POST,
10-
RequestHelper,
1110
)
1211

1312

workos/organizations.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -128,19 +128,6 @@ def delete_organization(self, organization_id: str) -> SyncOrAsync[None]:
128128
"""
129129
...
130130

131-
def delete_organization_domain(
132-
self, organization_domain_id: str
133-
) -> SyncOrAsync[None]:
134-
"""Deletes a single Organization Domain
135-
136-
Args:
137-
organization_domain_id (str): Organization Domain unique identifier
138-
139-
Returns:
140-
None
141-
"""
142-
...
143-
144131

145132
class Organizations(OrganizationsModule):
146133
_http_client: SyncHTTPClient
@@ -252,12 +239,6 @@ def delete_organization(self, organization_id: str) -> None:
252239
method=REQUEST_METHOD_DELETE,
253240
)
254241

255-
def delete_organization_domain(self, organization_domain_id: str) -> None:
256-
self._http_client.request(
257-
f"organization_domains/{organization_domain_id}",
258-
method=REQUEST_METHOD_DELETE,
259-
)
260-
261242
def list_organization_roles(self, organization_id: str) -> RoleList:
262243
response = self._http_client.request(
263244
f"organizations/{organization_id}/roles",
@@ -377,12 +358,6 @@ async def delete_organization(self, organization_id: str) -> None:
377358
method=REQUEST_METHOD_DELETE,
378359
)
379360

380-
async def delete_organization_domain(self, organization_domain_id: str) -> None:
381-
await self._http_client.request(
382-
f"organization_domains/{organization_domain_id}",
383-
method=REQUEST_METHOD_DELETE,
384-
)
385-
386361
async def list_organization_roles(self, organization_id: str) -> RoleList:
387362
response = await self._http_client.request(
388363
f"organizations/{organization_id}/roles",

0 commit comments

Comments
 (0)