// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflaredev/resource';
import * as RulesAPI from 'cloudflaredev/resources/snippets/rules';
import { SinglePage } from 'cloudflaredev/pagination';
export class Rules extends APIResource {
    /**
     * Put Rules
     */
    update(params, options) {
        const { zone_id, ...body } = params;
        return this._client.put(`/zones/${zone_id}/snippets/snippet_rules`, { body, ...options })._thenUnwrap((obj) => obj.result);
    }
    /**
     * Rules
     */
    list(params, options) {
        const { zone_id } = params;
        return this._client.getAPIList(`/zones/${zone_id}/snippets/snippet_rules`, RuleListResponsesSinglePage, options);
    }
}
export class RuleListResponsesSinglePage extends SinglePage {
}
(function (Rules) {
    Rules.RuleListResponsesSinglePage = RulesAPI.RuleListResponsesSinglePage;
})(Rules || (Rules = {}));
//# sourceMappingURL=rules.mjs.map