"use strict";
// File generated from our OpenAPI spec by Stainless.
Object.defineProperty(exports, "__esModule", { value: true });
exports.Rules = void 0;
const resource_1 = require("cloudflare/resource");
const core_1 = require("cloudflare/core");
class Rules extends resource_1.APIResource {
    update(zoneIdentifier, body = {}, options) {
        if ((0, core_1.isRequestOptions)(body)) {
            return this.update(zoneIdentifier, {}, body);
        }
        return this._client.put(`/zones/${zoneIdentifier}/snippets/snippet_rules`, {
            body,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
    /**
     * Rules
     */
    list(zoneIdentifier, options) {
        return this._client.get(`/zones/${zoneIdentifier}/snippets/snippet_rules`, options)._thenUnwrap((obj) => obj.result);
    }
}
exports.Rules = Rules;
(function (Rules) {
})(Rules = exports.Rules || (exports.Rules = {}));
//# sourceMappingURL=rules.js.map