diff --git a/bandwidth.yml b/bandwidth.yml index 3cc990a7..bf2c9ab0 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -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 @@ -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 diff --git a/lib/bandwidth-sdk/api/phone_number_lookup_api.rb b/lib/bandwidth-sdk/api/phone_number_lookup_api.rb index 9bb83658..68f00640 100644 --- a/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +++ b/lib/bandwidth-sdk/api/phone_number_lookup_api.rb @@ -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 @@ -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 @@ -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 @@ -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