UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

26 lines 1.24 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../resource.mjs"; import { SinglePage } from "../../../pagination.mjs"; export class PermissionGroups extends APIResource { /** * Find all available permission groups for Account Owned API Tokens */ list(params, options) { const { account_id } = params; return this._client.getAPIList(`/accounts/${account_id}/tokens/permission_groups`, PermissionGroupListResponsesSinglePage, options); } /** * Find all available permission groups for Account Owned API Tokens */ get(params, options) { const { account_id } = params; return this._client.getAPIList(`/accounts/${account_id}/tokens/permission_groups`, PermissionGroupGetResponsesSinglePage, options); } } export class PermissionGroupListResponsesSinglePage extends SinglePage { } export class PermissionGroupGetResponsesSinglePage extends SinglePage { } PermissionGroups.PermissionGroupListResponsesSinglePage = PermissionGroupListResponsesSinglePage; PermissionGroups.PermissionGroupGetResponsesSinglePage = PermissionGroupGetResponsesSinglePage; //# sourceMappingURL=permission-groups.mjs.map