cloudflare
Version:
The official TypeScript library for the Cloudflare API
19 lines • 862 B
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflare/resource';
import * as AppTypesAPI from 'cloudflare/resources/zero-trust/gateway/app-types';
import { SinglePage } from 'cloudflare/pagination';
export class AppTypes extends APIResource {
/**
* Fetches all application and application type mappings.
*/
list(params, options) {
const { account_id } = params;
return this._client.getAPIList(`/accounts/${account_id}/gateway/app_types`, ZeroTrustGatewayAppTypesSinglePage, options);
}
}
export class ZeroTrustGatewayAppTypesSinglePage extends SinglePage {
}
(function (AppTypes) {
AppTypes.ZeroTrustGatewayAppTypesSinglePage = AppTypesAPI.ZeroTrustGatewayAppTypesSinglePage;
})(AppTypes || (AppTypes = {}));
//# sourceMappingURL=app-types.mjs.map