lib/purecloud/api/voicemail_api.rb in purecloud-0.64.1 vs lib/purecloud/api/voicemail_api.rb in purecloud-0.65.1

- old
+ new

@@ -553,20 +553,22 @@ # List voicemail messages # # @param [Hash] opts the optional parameters # @option opts [String] :ids An optional comma separated list of VoicemailMessage ids + # @option opts [Array<String>] :expand If the caller is a known user, which fields, if any, to expand # @return [VoicemailMessageEntityListing] def get_messages(opts = {}) data, status_code, headers = get_messages_with_http_info(opts) return data end # List voicemail messages # # @param [Hash] opts the optional parameters # @option opts [String] :ids An optional comma separated list of VoicemailMessage ids + # @option opts [Array<String>] :expand If the caller is a known user, which fields, if any, to expand # @return [Array<(VoicemailMessageEntityListing, Fixnum, Hash)>] VoicemailMessageEntityListing data, response status code and response headers def get_messages_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: VoicemailApi#get_messages ..." end @@ -575,10 +577,11 @@ local_var_path = "/api/v2/voicemail/messages".sub('{format}','json') # query parameters query_params = {} query_params[:'ids'] = opts[:'ids'] if opts[:'ids'] + query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) @@ -611,20 +614,22 @@ # Get message. # # @param message_id Message ID # @param [Hash] opts the optional parameters + # @option opts [Array<String>] :expand If the caller is a known user, which fields, if any, to expand # @return [VoicemailMessage] def get_messages_message_id(message_id, opts = {}) data, status_code, headers = get_messages_message_id_with_http_info(message_id, opts) return data end # Get message. # # @param message_id Message ID # @param [Hash] opts the optional parameters + # @option opts [Array<String>] :expand If the caller is a known user, which fields, if any, to expand # @return [Array<(VoicemailMessage, Fixnum, Hash)>] VoicemailMessage data, response status code and response headers def get_messages_message_id_with_http_info(message_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: VoicemailApi#get_messages_message_id ..." end @@ -635,9 +640,10 @@ # resource path local_var_path = "/api/v2/voicemail/messages/{messageId}".sub('{format}','json').sub('{' + 'messageId' + '}', message_id.to_s) # query parameters query_params = {} + query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand'] # header parameters header_params = {} # HTTP header 'Accept' (if needed)