// File generated from our OpenAPI spec by Stainless.
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as BytimesAPI from 'cloudflare/resources/dns/analytics/reports/bytimes';
export class Reports extends APIResource {
    constructor() {
        super(...arguments);
        this.bytimes = new BytimesAPI.Bytimes(this._client);
    }
    get(identifier, query = {}, options) {
        if (isRequestOptions(query)) {
            return this.get(identifier, {}, query);
        }
        return this._client.get(`/zones/${identifier}/dns_analytics/report`, {
            query,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
}
(function (Reports) {
    Reports.Bytimes = BytimesAPI.Bytimes;
})(Reports || (Reports = {}));
//# sourceMappingURL=reports.mjs.map