Skip to content

Commit 4a323a1

Browse files
authored
SWI-8319 Deprecate TN Lookup V1 (#267)
1 parent 3eae30e commit 4a323a1

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

bandwidth.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,6 +1330,7 @@ paths:
13301330
servers: *ref_2
13311331
/accounts/{accountId}/tnlookup:
13321332
post:
1333+
deprecated: true
13331334
summary: Create Lookup
13341335
description: Create a Phone Number Lookup Request.
13351336
operationId: createLookup
@@ -1359,6 +1360,7 @@ paths:
13591360
description: Production
13601361
/accounts/{accountId}/tnlookup/{requestId}:
13611362
get:
1363+
deprecated: true
13621364
summary: Get Lookup Request Status
13631365
description: Get an existing Phone Number Lookup Request.
13641366
operationId: getLookupStatus

bandwidth/api/phone_number_lookup_api.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def create_lookup(
5959
_headers: Optional[Dict[StrictStr, Any]] = None,
6060
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
6161
) -> CreateLookupResponse:
62-
"""Create Lookup
62+
"""(Deprecated) Create Lookup
6363
6464
Create a Phone Number Lookup Request.
6565
@@ -88,6 +88,7 @@ def create_lookup(
8888
:type _host_index: int, optional
8989
:return: Returns the result object.
9090
""" # noqa: E501
91+
warnings.warn("POST /accounts/{accountId}/tnlookup is deprecated.", DeprecationWarning)
9192

9293
_param = self._create_lookup_serialize(
9394
account_id=account_id,
@@ -136,7 +137,7 @@ def create_lookup_with_http_info(
136137
_headers: Optional[Dict[StrictStr, Any]] = None,
137138
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
138139
) -> ApiResponse[CreateLookupResponse]:
139-
"""Create Lookup
140+
"""(Deprecated) Create Lookup
140141
141142
Create a Phone Number Lookup Request.
142143
@@ -165,6 +166,7 @@ def create_lookup_with_http_info(
165166
:type _host_index: int, optional
166167
:return: Returns the result object.
167168
""" # noqa: E501
169+
warnings.warn("POST /accounts/{accountId}/tnlookup is deprecated.", DeprecationWarning)
168170

169171
_param = self._create_lookup_serialize(
170172
account_id=account_id,
@@ -213,7 +215,7 @@ def create_lookup_without_preload_content(
213215
_headers: Optional[Dict[StrictStr, Any]] = None,
214216
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
215217
) -> RESTResponseType:
216-
"""Create Lookup
218+
"""(Deprecated) Create Lookup
217219
218220
Create a Phone Number Lookup Request.
219221
@@ -242,6 +244,7 @@ def create_lookup_without_preload_content(
242244
:type _host_index: int, optional
243245
:return: Returns the result object.
244246
""" # noqa: E501
247+
warnings.warn("POST /accounts/{accountId}/tnlookup is deprecated.", DeprecationWarning)
245248

246249
_param = self._create_lookup_serialize(
247250
account_id=account_id,
@@ -369,7 +372,7 @@ def get_lookup_status(
369372
_headers: Optional[Dict[StrictStr, Any]] = None,
370373
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
371374
) -> LookupStatus:
372-
"""Get Lookup Request Status
375+
"""(Deprecated) Get Lookup Request Status
373376
374377
Get an existing Phone Number Lookup Request.
375378
@@ -398,6 +401,7 @@ def get_lookup_status(
398401
:type _host_index: int, optional
399402
:return: Returns the result object.
400403
""" # noqa: E501
404+
warnings.warn("GET /accounts/{accountId}/tnlookup/{requestId} is deprecated.", DeprecationWarning)
401405

402406
_param = self._get_lookup_status_serialize(
403407
account_id=account_id,
@@ -446,7 +450,7 @@ def get_lookup_status_with_http_info(
446450
_headers: Optional[Dict[StrictStr, Any]] = None,
447451
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
448452
) -> ApiResponse[LookupStatus]:
449-
"""Get Lookup Request Status
453+
"""(Deprecated) Get Lookup Request Status
450454
451455
Get an existing Phone Number Lookup Request.
452456
@@ -475,6 +479,7 @@ def get_lookup_status_with_http_info(
475479
:type _host_index: int, optional
476480
:return: Returns the result object.
477481
""" # noqa: E501
482+
warnings.warn("GET /accounts/{accountId}/tnlookup/{requestId} is deprecated.", DeprecationWarning)
478483

479484
_param = self._get_lookup_status_serialize(
480485
account_id=account_id,
@@ -523,7 +528,7 @@ def get_lookup_status_without_preload_content(
523528
_headers: Optional[Dict[StrictStr, Any]] = None,
524529
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
525530
) -> RESTResponseType:
526-
"""Get Lookup Request Status
531+
"""(Deprecated) Get Lookup Request Status
527532
528533
Get an existing Phone Number Lookup Request.
529534
@@ -552,6 +557,7 @@ def get_lookup_status_without_preload_content(
552557
:type _host_index: int, optional
553558
:return: Returns the result object.
554559
""" # noqa: E501
560+
warnings.warn("GET /accounts/{accountId}/tnlookup/{requestId} is deprecated.", DeprecationWarning)
555561

556562
_param = self._get_lookup_status_serialize(
557563
account_id=account_id,

0 commit comments

Comments
 (0)