// File generated from our OpenAPI spec by Stainless.
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
export class Summary extends APIResource {
    get(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.get({}, query);
        }
        return this._client.get('/radar/attacks/layer7/summary', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
    httpMethod(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.httpMethod({}, query);
        }
        return this._client.get('/radar/attacks/layer7/summary/http_method', {
            query,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
    httpVersion(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.httpVersion({}, query);
        }
        return this._client.get('/radar/attacks/layer7/summary/http_version', {
            query,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
    ipVersion(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.ipVersion({}, query);
        }
        return this._client.get('/radar/attacks/layer7/summary/ip_version', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
    managedRules(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.managedRules({}, query);
        }
        return this._client.get('/radar/attacks/layer7/summary/managed_rules', {
            query,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
    mitigationProduct(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.mitigationProduct({}, query);
        }
        return this._client.get('/radar/attacks/layer7/summary/mitigation_product', {
            query,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
}
(function (Summary) {
})(Summary || (Summary = {}));
//# sourceMappingURL=summary.mjs.map