public function createOrUpdateCalendar(BaseCalendar $calendar, $calendarName, $replace = false, $updateTriggers = false)
    {
        $url = $this->service_url . '/jobs/calendars/' . rawurlencode($calendarName) . '?' .
            Util::query_suffix(array("replace" => $replace, "updateTriggers" => $updateTriggers));
        $body = $calendar->toJSON();
        $this->service->prepAndSend($url, array(200), 'PUT', $body, false);
    }