cloudflare
Version:
The official TypeScript library for the Cloudflare API
50 lines • 2.15 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
export class Summary extends APIResource {
botClass(query = {}, options) {
if (isRequestOptions(query)) {
return this.botClass({}, query);
}
return this._client.get('/radar/http/summary/bot_class', { query, ...options })._thenUnwrap((obj) => obj.result);
}
deviceType(query = {}, options) {
if (isRequestOptions(query)) {
return this.deviceType({}, query);
}
return this._client.get('/radar/http/summary/device_type', { query, ...options })._thenUnwrap((obj) => obj.result);
}
httpProtocol(query = {}, options) {
if (isRequestOptions(query)) {
return this.httpProtocol({}, query);
}
return this._client.get('/radar/http/summary/http_protocol', { query, ...options })._thenUnwrap((obj) => obj.result);
}
httpVersion(query = {}, options) {
if (isRequestOptions(query)) {
return this.httpVersion({}, query);
}
return this._client.get('/radar/http/summary/http_version', { query, ...options })._thenUnwrap((obj) => obj.result);
}
ipVersion(query = {}, options) {
if (isRequestOptions(query)) {
return this.ipVersion({}, query);
}
return this._client.get('/radar/http/summary/ip_version', { query, ...options })._thenUnwrap((obj) => obj.result);
}
os(query = {}, options) {
if (isRequestOptions(query)) {
return this.os({}, query);
}
return this._client.get('/radar/http/summary/os', { query, ...options })._thenUnwrap((obj) => obj.result);
}
tlsVersion(query = {}, options) {
if (isRequestOptions(query)) {
return this.tlsVersion({}, query);
}
return this._client.get('/radar/http/summary/tls_version', { query, ...options })._thenUnwrap((obj) => obj.result);
}
}
(function (Summary) {
})(Summary || (Summary = {}));
//# sourceMappingURL=summary.mjs.map