// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflaredev/resource';
import { isRequestOptions } from 'cloudflaredev/core';
import * as SummaryAPI from 'cloudflaredev/resources/radar/as112/summary';
import * as TimeseriesGroupsAPI from 'cloudflaredev/resources/radar/as112/timeseries-groups';
import * as TopAPI from 'cloudflaredev/resources/radar/as112/top';
export class AS112 extends APIResource {
    constructor() {
        super(...arguments);
        this.summary = new SummaryAPI.Summary(this._client);
        this.timeseriesGroups = new TimeseriesGroupsAPI.TimeseriesGroups(this._client);
        this.top = new TopAPI.Top(this._client);
    }
    timeseries(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.timeseries({}, query);
        }
        return this._client.get('/radar/as112/timeseries', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
}
(function (AS112) {
    AS112.Summary = SummaryAPI.Summary;
    AS112.TimeseriesGroups = TimeseriesGroupsAPI.TimeseriesGroups;
    AS112.Top = TopAPI.Top;
})(AS112 || (AS112 = {}));
//# sourceMappingURL=as112.mjs.map