"use strict";
// File generated from our OpenAPI spec by Stainless.
Object.defineProperty(exports, "__esModule", { value: true });
exports.Schedule = void 0;
const resource_1 = require("cloudflare/resource");
class Schedule extends resource_1.APIResource {
    /**
     * Creates a scheduled test for a page.
     */
    create(url, params, options) {
        const { zone_id, region } = params;
        return this._client.post(`/zones/${zone_id}/speed_api/schedule/${url}`, {
            query: { region },
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
}
exports.Schedule = Schedule;
(function (Schedule) {
})(Schedule = exports.Schedule || (exports.Schedule = {}));
//# sourceMappingURL=schedule.js.map