"use strict";
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.ByTag = void 0;
const resource_1 = require("cloudflaredev/resource");
class ByTag 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.ByTag = ByTag;
(function (ByTag) {
})(ByTag = exports.ByTag || (exports.ByTag = {}));
//# sourceMappingURL=by-tag.js.map