lib/purecloud/api/voicemail_api.rb in purecloud-0.27.0 vs lib/purecloud/api/voicemail_api.rb in purecloud-0.28.0
- old
+ new
@@ -30,11 +30,11 @@
# verify the required parameter 'user_id' is set
fail "Missing the required parameter 'user_id' when calling get_uservoicemailpolicies_user_id" if user_id.nil?
# resource path
- path = "/api/v1/configuration/uservoicemailpolicies/{userId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
+ path = "/api/v2/configuration/uservoicemailpolicies/{userId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -96,11 +96,11 @@
# verify the required parameter 'body' is set
fail "Missing the required parameter 'body' when calling patch_uservoicemailpolicies_user_id" if body.nil?
# resource path
- path = "/api/v1/configuration/uservoicemailpolicies/{userId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
+ path = "/api/v2/configuration/uservoicemailpolicies/{userId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -152,11 +152,11 @@
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: VoicemailApi#get_voicemailpolicy ..."
end
# resource path
- path = "/api/v1/configuration/voicemailpolicy".sub('{format}','json')
+ path = "/api/v2/configuration/voicemailpolicy".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
@@ -210,11 +210,11 @@
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: VoicemailApi#put_voicemailpolicy ..."
end
# resource path
- path = "/api/v1/configuration/voicemailpolicy".sub('{format}','json')
+ path = "/api/v2/configuration/voicemailpolicy".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
@@ -266,11 +266,11 @@
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: VoicemailApi#get_mailbox ..."
end
# resource path
- path = "/api/v1/voicemail/mailbox".sub('{format}','json')
+ path = "/api/v2/voicemail/mailbox".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
@@ -322,11 +322,11 @@
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: VoicemailApi#get_messages ..."
end
# resource path
- path = "/api/v1/voicemail/messages".sub('{format}','json')
+ path = "/api/v2/voicemail/messages".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
@@ -378,11 +378,11 @@
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: VoicemailApi#delete_messages ..."
end
# resource path
- path = "/api/v1/voicemail/messages".sub('{format}','json')
+ path = "/api/v2/voicemail/messages".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
@@ -439,11 +439,11 @@
# verify the required parameter 'message_id' is set
fail "Missing the required parameter 'message_id' when calling get_messages_message_id" if message_id.nil?
# resource path
- path = "/api/v1/voicemail/messages/{messageId}".sub('{format}','json').sub('{' + 'messageId' + '}', message_id.to_s)
+ path = "/api/v2/voicemail/messages/{messageId}".sub('{format}','json').sub('{' + 'messageId' + '}', message_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -502,11 +502,11 @@
# verify the required parameter 'message_id' is set
fail "Missing the required parameter 'message_id' when calling put_messages_message_id" if message_id.nil?
# resource path
- path = "/api/v1/voicemail/messages/{messageId}".sub('{format}','json').sub('{' + 'messageId' + '}', message_id.to_s)
+ path = "/api/v2/voicemail/messages/{messageId}".sub('{format}','json').sub('{' + 'messageId' + '}', message_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -563,11 +563,11 @@
# verify the required parameter 'message_id' is set
fail "Missing the required parameter 'message_id' when calling delete_messages_message_id" if message_id.nil?
# resource path
- path = "/api/v1/voicemail/messages/{messageId}".sub('{format}','json').sub('{' + 'messageId' + '}', message_id.to_s)
+ path = "/api/v2/voicemail/messages/{messageId}".sub('{format}','json').sub('{' + 'messageId' + '}', message_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -630,10 +630,10 @@
if opts[:'format_id'] && !['WEBM', 'WAV'].include?(opts[:'format_id'])
fail 'invalid value for "format_id", must be one of WEBM, WAV'
end
# resource path
- path = "/api/v1/voicemail/messages/{messageId}/media".sub('{format}','json').sub('{' + 'messageId' + '}', message_id.to_s)
+ path = "/api/v2/voicemail/messages/{messageId}/media".sub('{format}','json').sub('{' + 'messageId' + '}', message_id.to_s)
# query parameters
query_params = {}
query_params[:'formatId'] = opts[:'format_id'] if opts[:'format_id']