Skip to content

Commit c45d9da

Browse files
authored
SWI-8319 Deprecate TN Lookup V1 (#185)
1 parent de531b6 commit c45d9da

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
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

lib/bandwidth-sdk/api/phone_number_lookup_api.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def initialize(api_client = ApiClient.default)
2626
# @param [Hash] opts the optional parameters
2727
# @return [CreateLookupResponse]
2828
def create_lookup(account_id, lookup_request, opts = {})
29+
warn '[DEPRECATION NOTICE] `create_lookup` is deprecated.'
2930
data, _status_code, _headers = create_lookup_with_http_info(account_id, lookup_request, opts)
3031
data
3132
end
@@ -37,6 +38,7 @@ def create_lookup(account_id, lookup_request, opts = {})
3738
# @param [Hash] opts the optional parameters
3839
# @return [Array<(CreateLookupResponse, Integer, Hash)>] CreateLookupResponse data, response status code and response headers
3940
def create_lookup_with_http_info(account_id, lookup_request, opts = {})
41+
warn '[DEPRECATION NOTICE] `create_lookup_with_http_info` is deprecated.'
4042
if @api_client.config.debugging
4143
@api_client.config.logger.debug 'Calling API: PhoneNumberLookupApi.create_lookup ...'
4244
end
@@ -100,6 +102,7 @@ def create_lookup_with_http_info(account_id, lookup_request, opts = {})
100102
# @param [Hash] opts the optional parameters
101103
# @return [LookupStatus]
102104
def get_lookup_status(account_id, request_id, opts = {})
105+
warn '[DEPRECATION NOTICE] `get_lookup_status` is deprecated.'
103106
data, _status_code, _headers = get_lookup_status_with_http_info(account_id, request_id, opts)
104107
data
105108
end
@@ -111,6 +114,7 @@ def get_lookup_status(account_id, request_id, opts = {})
111114
# @param [Hash] opts the optional parameters
112115
# @return [Array<(LookupStatus, Integer, Hash)>] LookupStatus data, response status code and response headers
113116
def get_lookup_status_with_http_info(account_id, request_id, opts = {})
117+
warn '[DEPRECATION NOTICE] `get_lookup_status_with_http_info` is deprecated.'
114118
if @api_client.config.debugging
115119
@api_client.config.logger.debug 'Calling API: PhoneNumberLookupApi.get_lookup_status ...'
116120
end

0 commit comments

Comments
 (0)