lib/purecloud/api/voicemail_api.rb in purecloud-0.44.1 vs lib/purecloud/api/voicemail_api.rb in purecloud-0.45.1
- old
+ new
@@ -557,32 +557,35 @@
end
# Update a message.
#
# @param message_id Message ID
+ # @param body VoicemailMessage
# @param [Hash] opts the optional parameters
- # @option opts [VoicemailMessage] :body VoicemailMessage
# @return [VoicemailMessage]
- def put_messages_message_id(message_id, opts = {})
- data, status_code, headers = put_messages_message_id_with_http_info(message_id, opts)
+ def put_messages_message_id(message_id, body, opts = {})
+ data, status_code, headers = put_messages_message_id_with_http_info(message_id, body, opts)
return data
end
# Update a message.
#
# @param message_id Message ID
+ # @param body VoicemailMessage
# @param [Hash] opts the optional parameters
- # @option opts [VoicemailMessage] :body VoicemailMessage
# @return [Array<(VoicemailMessage, Fixnum, Hash)>] VoicemailMessage data, response status code and response headers
- def put_messages_message_id_with_http_info(message_id, opts = {})
+ def put_messages_message_id_with_http_info(message_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: VoicemailApi#put_messages_message_id ..."
end
# 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?
+ # verify the required parameter 'body' is set
+ fail "Missing the required parameter 'body' when calling put_messages_message_id" if body.nil?
+
# resource path
local_var_path = "/api/v2/voicemail/messages/{messageId}".sub('{format}','json').sub('{' + 'messageId' + '}', message_id.to_s)
# query parameters
query_params = {}
@@ -600,11 +603,11 @@
# form parameters
form_params = {}
# http body (model)
- post_body = @api_client.object_to_http_body(opts[:'body'])
+ post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud Auth']
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
:header_params => header_params,
:query_params => query_params,
@@ -618,28 +621,31 @@
return data, status_code, headers
end
# Update a policy
#
+ # @param body Policy
# @param [Hash] opts the optional parameters
- # @option opts [VoicemailOrganizationPolicy] :body Policy
# @return [VoicemailOrganizationPolicy]
- def put_policy(opts = {})
- data, status_code, headers = put_policy_with_http_info(opts)
+ def put_policy(body, opts = {})
+ data, status_code, headers = put_policy_with_http_info(body, opts)
return data
end
# Update a policy
#
+ # @param body Policy
# @param [Hash] opts the optional parameters
- # @option opts [VoicemailOrganizationPolicy] :body Policy
# @return [Array<(VoicemailOrganizationPolicy, Fixnum, Hash)>] VoicemailOrganizationPolicy data, response status code and response headers
- def put_policy_with_http_info(opts = {})
+ def put_policy_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: VoicemailApi#put_policy ..."
end
+ # verify the required parameter 'body' is set
+ fail "Missing the required parameter 'body' when calling put_policy" if body.nil?
+
# resource path
local_var_path = "/api/v2/voicemail/policy".sub('{format}','json')
# query parameters
query_params = {}
@@ -657,10 +663,10 @@
# form parameters
form_params = {}
# http body (model)
- post_body = @api_client.object_to_http_body(opts[:'body'])
+ post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud Auth']
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
:header_params => header_params,
:query_params => query_params,