lib/purecloud/api/configuration_api.rb in purecloud-0.44.1 vs lib/purecloud/api/configuration_api.rb in purecloud-0.45.1

- old
+ new

@@ -195,28 +195,31 @@ return data, status_code, headers end # Update key rotation schedule # + # @param body KeyRotationSchedule # @param [Hash] opts the optional parameters - # @option opts [KeyRotationSchedule] :body KeyRotationSchedule # @return [KeyRotationSchedule] - def put_recordingkeys_rotationschedule(opts = {}) - data, status_code, headers = put_recordingkeys_rotationschedule_with_http_info(opts) + def put_recordingkeys_rotationschedule(body, opts = {}) + data, status_code, headers = put_recordingkeys_rotationschedule_with_http_info(body, opts) return data end # Update key rotation schedule # + # @param body KeyRotationSchedule # @param [Hash] opts the optional parameters - # @option opts [KeyRotationSchedule] :body KeyRotationSchedule # @return [Array<(KeyRotationSchedule, Fixnum, Hash)>] KeyRotationSchedule data, response status code and response headers - def put_recordingkeys_rotationschedule_with_http_info(opts = {}) + def put_recordingkeys_rotationschedule_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ConfigurationApi#put_recordingkeys_rotationschedule ..." end + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling put_recordingkeys_rotationschedule" if body.nil? + # resource path local_var_path = "/api/v2/recording/recordingkeys/rotationschedule".sub('{format}','json') # query parameters query_params = {} @@ -234,10 +237,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,