// File generated from our OpenAPI spec by Stainless.
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
export class Rules extends APIResource {
    update(zoneIdentifier, body = {}, options) {
        if (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);
    }
}
(function (Rules) {
})(Rules || (Rules = {}));
//# sourceMappingURL=rules.mjs.map