lib/purecloud/api/greetings_api.rb in purecloud-0.27.0 vs lib/purecloud/api/greetings_api.rb in purecloud-0.28.0

- old
+ new

@@ -29,11 +29,11 @@ if @api_client.config.debugging @api_client.config.logger.debug "Calling API: GreetingsApi#get_greetings ..." end # resource path - path = "/api/v1/greetings".sub('{format}','json') + path = "/api/v2/greetings".sub('{format}','json') # query parameters query_params = {} query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] @@ -92,11 +92,11 @@ # verify the required parameter 'body' is set fail "Missing the required parameter 'body' when calling post_greetings" if body.nil? # resource path - path = "/api/v1/greetings".sub('{format}','json') + path = "/api/v2/greetings".sub('{format}','json') # query parameters query_params = {} # header parameters @@ -148,11 +148,11 @@ if @api_client.config.debugging @api_client.config.logger.debug "Calling API: GreetingsApi#get_defaults ..." end # resource path - path = "/api/v1/greetings/defaults".sub('{format}','json') + path = "/api/v2/greetings/defaults".sub('{format}','json') # query parameters query_params = {} # header parameters @@ -209,11 +209,11 @@ # verify the required parameter 'body' is set fail "Missing the required parameter 'body' when calling put_defaults" if body.nil? # resource path - path = "/api/v1/greetings/defaults".sub('{format}','json') + path = "/api/v2/greetings/defaults".sub('{format}','json') # query parameters query_params = {} # header parameters @@ -270,11 +270,11 @@ # verify the required parameter 'greeting_id' is set fail "Missing the required parameter 'greeting_id' when calling get_greeting_id" if greeting_id.nil? # resource path - path = "/api/v1/greetings/{greetingId}".sub('{format}','json').sub('{' + 'greetingId' + '}', greeting_id.to_s) + path = "/api/v2/greetings/{greetingId}".sub('{format}','json').sub('{' + 'greetingId' + '}', greeting_id.to_s) # query parameters query_params = {} # header parameters @@ -336,11 +336,11 @@ # verify the required parameter 'body' is set fail "Missing the required parameter 'body' when calling put_greeting_id" if body.nil? # resource path - path = "/api/v1/greetings/{greetingId}".sub('{format}','json').sub('{' + 'greetingId' + '}', greeting_id.to_s) + path = "/api/v2/greetings/{greetingId}".sub('{format}','json').sub('{' + 'greetingId' + '}', greeting_id.to_s) # query parameters query_params = {} # header parameters @@ -397,11 +397,11 @@ # verify the required parameter 'greeting_id' is set fail "Missing the required parameter 'greeting_id' when calling delete_greeting_id" if greeting_id.nil? # resource path - path = "/api/v1/greetings/{greetingId}".sub('{format}','json').sub('{' + 'greetingId' + '}', greeting_id.to_s) + path = "/api/v2/greetings/{greetingId}".sub('{format}','json').sub('{' + 'greetingId' + '}', greeting_id.to_s) # query parameters query_params = {} # header parameters @@ -464,11 +464,11 @@ if opts[:'format_id'] && !['WAV'].include?(opts[:'format_id']) fail 'invalid value for "format_id", must be one of WAV' end # resource path - path = "/api/v1/greetings/{greetingId}/media".sub('{format}','json').sub('{' + 'greetingId' + '}', greeting_id.to_s) + path = "/api/v2/greetings/{greetingId}/media".sub('{format}','json').sub('{' + 'greetingId' + '}', greeting_id.to_s) # query parameters query_params = {} query_params[:'formatId'] = opts[:'format_id'] if opts[:'format_id'] @@ -530,11 +530,11 @@ # verify the required parameter 'user_id' is set fail "Missing the required parameter 'user_id' when calling get_user_id_greetings" if user_id.nil? # resource path - path = "/api/v1/users/{userId}/greetings".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s) + path = "/api/v2/users/{userId}/greetings".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s) # query parameters query_params = {} query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] @@ -598,11 +598,11 @@ # verify the required parameter 'body' is set fail "Missing the required parameter 'body' when calling post_user_id_greetings" if body.nil? # resource path - path = "/api/v1/users/{userId}/greetings".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s) + path = "/api/v2/users/{userId}/greetings".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s) # query parameters query_params = {} # header parameters @@ -659,11 +659,11 @@ # verify the required parameter 'user_id' is set fail "Missing the required parameter 'user_id' when calling get_user_id_greetings_defaults" if user_id.nil? # resource path - path = "/api/v1/users/{userId}/greetings/defaults".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s) + path = "/api/v2/users/{userId}/greetings/defaults".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s) # query parameters query_params = {} # header parameters @@ -725,10 +725,10 @@ # verify the required parameter 'body' is set fail "Missing the required parameter 'body' when calling put_user_id_greetings_defaults" if body.nil? # resource path - path = "/api/v1/users/{userId}/greetings/defaults".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s) + path = "/api/v2/users/{userId}/greetings/defaults".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s) # query parameters query_params = {} # header parameters