// File generated from our OpenAPI spec by Stainless.
import { APIResource } from 'cloudflare/resource';
export class Schedule extends 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);
    }
}
(function (Schedule) {
})(Schedule || (Schedule = {}));
//# sourceMappingURL=schedule.mjs.map