Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1330,6 +1330,7 @@ paths:
servers: *ref_2
/accounts/{accountId}/tnlookup:
post:
deprecated: true
summary: Create Lookup
description: Create a Phone Number Lookup Request.
operationId: createLookup
Expand Down Expand Up @@ -1359,6 +1360,7 @@ paths:
description: Production
/accounts/{accountId}/tnlookup/{requestId}:
get:
deprecated: true
summary: Get Lookup Request Status
description: Get an existing Phone Number Lookup Request.
operationId: getLookupStatus
Expand Down
4 changes: 4 additions & 0 deletions lib/bandwidth-sdk/api/phone_number_lookup_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def initialize(api_client = ApiClient.default)
# @param [Hash] opts the optional parameters
# @return [CreateLookupResponse]
def create_lookup(account_id, lookup_request, opts = {})
warn '[DEPRECATION NOTICE] `create_lookup` is deprecated.'
data, _status_code, _headers = create_lookup_with_http_info(account_id, lookup_request, opts)
data
end
Expand All @@ -37,6 +38,7 @@ def create_lookup(account_id, lookup_request, opts = {})
# @param [Hash] opts the optional parameters
# @return [Array<(CreateLookupResponse, Integer, Hash)>] CreateLookupResponse data, response status code and response headers
def create_lookup_with_http_info(account_id, lookup_request, opts = {})
warn '[DEPRECATION NOTICE] `create_lookup_with_http_info` is deprecated.'
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PhoneNumberLookupApi.create_lookup ...'
end
Expand Down Expand Up @@ -100,6 +102,7 @@ def create_lookup_with_http_info(account_id, lookup_request, opts = {})
# @param [Hash] opts the optional parameters
# @return [LookupStatus]
def get_lookup_status(account_id, request_id, opts = {})
warn '[DEPRECATION NOTICE] `get_lookup_status` is deprecated.'
data, _status_code, _headers = get_lookup_status_with_http_info(account_id, request_id, opts)
data
end
Expand All @@ -111,6 +114,7 @@ def get_lookup_status(account_id, request_id, opts = {})
# @param [Hash] opts the optional parameters
# @return [Array<(LookupStatus, Integer, Hash)>] LookupStatus data, response status code and response headers
def get_lookup_status_with_http_info(account_id, request_id, opts = {})
warn '[DEPRECATION NOTICE] `get_lookup_status_with_http_info` is deprecated.'
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PhoneNumberLookupApi.get_lookup_status ...'
end
Expand Down
Loading