Skip to content

Commit eeec653

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@1f118b52.
1 parent 989e494 commit eeec653

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

docs/DeletionAndSuppressionApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ Name | Type | Description | Notes
247247
248248
Delete Regulation
249249

250-
Deletes a regulation from the Workspace. The regulation must be in the initialized state to be deleted. • When called, this endpoint may generate the `Regulation Deleted` event in the [audit trail](/tag/Audit-Trail).
250+
Deletes a regulation from the Workspace. The regulation must be in the initialized state to be deleted. • When called, this endpoint may generate the `Regulation Deleted` event in the [audit trail](/tag/Audit-Trail). **DEPRECATED**: this endpoint has been deprecated according to the guidelines, and may experience reduced SLA guarantees.
251251

252252
### Example
253253

segment_public_api/api/deletion_and_suppression_api.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,9 @@ def create_workspace_regulation_with_http_info(self, create_workspace_regulation
525525

526526
@validate_arguments
527527
def delete_regulation(self, regulate_id : constr(strict=True), **kwargs) -> DeleteRegulation200Response: # noqa: E501
528-
"""Delete Regulation # noqa: E501
528+
"""(Deprecated) Delete Regulation # noqa: E501
529529
530-
Deletes a regulation from the Workspace. The regulation must be in the initialized state to be deleted. • When called, this endpoint may generate the `Regulation Deleted` event in the [audit trail](/tag/Audit-Trail). # noqa: E501
530+
Deletes a regulation from the Workspace. The regulation must be in the initialized state to be deleted. • When called, this endpoint may generate the `Regulation Deleted` event in the [audit trail](/tag/Audit-Trail). **DEPRECATED**: this endpoint has been deprecated according to the guidelines, and may experience reduced SLA guarantees. # noqa: E501
531531
This method makes a synchronous HTTP request by default. To make an
532532
asynchronous HTTP request, please pass async_req=True
533533
@@ -555,9 +555,9 @@ def delete_regulation(self, regulate_id : constr(strict=True), **kwargs) -> Dele
555555

556556
@validate_arguments
557557
def delete_regulation_with_http_info(self, regulate_id : constr(strict=True), **kwargs) -> ApiResponse: # noqa: E501
558-
"""Delete Regulation # noqa: E501
558+
"""(Deprecated) Delete Regulation # noqa: E501
559559
560-
Deletes a regulation from the Workspace. The regulation must be in the initialized state to be deleted. • When called, this endpoint may generate the `Regulation Deleted` event in the [audit trail](/tag/Audit-Trail). # noqa: E501
560+
Deletes a regulation from the Workspace. The regulation must be in the initialized state to be deleted. • When called, this endpoint may generate the `Regulation Deleted` event in the [audit trail](/tag/Audit-Trail). **DEPRECATED**: this endpoint has been deprecated according to the guidelines, and may experience reduced SLA guarantees. # noqa: E501
561561
This method makes a synchronous HTTP request by default. To make an
562562
asynchronous HTTP request, please pass async_req=True
563563
@@ -591,6 +591,8 @@ def delete_regulation_with_http_info(self, regulate_id : constr(strict=True), **
591591
:rtype: tuple(DeleteRegulation200Response, status_code(int), headers(HTTPHeaderDict))
592592
"""
593593

594+
warnings.warn("DELETE /regulations/{regulateId} is deprecated.", DeprecationWarning)
595+
594596
_params = locals()
595597

596598
_all_params = [

0 commit comments

Comments
 (0)