"use strict";
// File generated from our OpenAPI spec by Stainless.
Object.defineProperty(exports, "__esModule", { value: true });
exports.ByTags = void 0;
const resource_1 = require("cloudflare/resource");
class ByTags extends resource_1.APIResource {
    /**
     * Fetches the rules of a managed account ruleset version for a given tag.
     */
    get(rulesetId, rulesetVersion, ruleTag, params, options) {
        const { account_id } = params;
        return this._client.get(`/accounts/${account_id}/rulesets/${rulesetId}/versions/${rulesetVersion}/by_tag/${ruleTag}`, options)._thenUnwrap((obj) => obj.result);
    }
}
exports.ByTags = ByTags;
(function (ByTags) {
})(ByTags = exports.ByTags || (exports.ByTags = {}));
//# sourceMappingURL=by-tags.js.map