lib/purecloud/api/voicemail_api.rb in purecloud-0.39.1 vs lib/purecloud/api/voicemail_api.rb in purecloud-0.40.1

- old
+ new

@@ -311,32 +311,32 @@ # Get media playback URI for this message # # @param message_id Message ID # @param [Hash] opts the optional parameters - # @option opts [String] :format_id The desired media format (WEBM, WAV) (default to WEBM) + # @option opts [String] :format_id The desired media format. (default to WEBM) # @return [VoicemailMediaInfo] def get_messages_message_id_media(message_id, opts = {}) data, status_code, headers = get_messages_message_id_media_with_http_info(message_id, opts) return data end # Get media playback URI for this message # # @param message_id Message ID # @param [Hash] opts the optional parameters - # @option opts [String] :format_id The desired media format (WEBM, WAV) + # @option opts [String] :format_id The desired media format. # @return [Array<(VoicemailMediaInfo, Fixnum, Hash)>] VoicemailMediaInfo data, response status code and response headers def get_messages_message_id_media_with_http_info(message_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: VoicemailApi#get_messages_message_id_media ..." end # verify the required parameter 'message_id' is set fail "Missing the required parameter 'message_id' when calling get_messages_message_id_media" if message_id.nil? - if opts[:'format_id'] && !['WEBM', 'WAV'].include?(opts[:'format_id']) - fail 'invalid value for "format_id", must be one of WEBM, WAV' + if opts[:'format_id'] && !['WAV', 'WEBM', 'WAV_ULAW', 'OGG_VORBIS', 'OGG_OPUS', 'NONE'].include?(opts[:'format_id']) + fail 'invalid value for "format_id", must be one of WAV, WEBM, WAV_ULAW, OGG_VORBIS, OGG_OPUS, NONE' end # resource path local_var_path = "/api/v2/voicemail/messages/{messageId}/media".sub('{format}','json').sub('{' + 'messageId' + '}', message_id.to_s)