UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

37 lines • 1.61 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Groups = exports.BaseGroups = void 0; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. const resource_1 = require("../../../../core/resource.js"); const pagination_1 = require("../../../../core/pagination.js"); const path_1 = require("../../../../internal/utils/path.js"); var BaseGroups = /* @__PURE__ */ (() => { class BaseGroups extends resource_1.APIResource { /** * Lists SCIM Group resources synced to Cloudflare via the System for Cross-domain * Identity Management (SCIM). * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const zeroTrustGroup of client.zeroTrust.identityProviders.scim.groups.list( * 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415', * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * )) { * // ... * } * ``` */ list(identityProviderID, params, options) { const { account_id, ...query } = params; return this._client.getAPIList((0, path_1.path) `/accounts/${account_id}/access/identity_providers/${identityProviderID}/scim/groups`, (pagination_1.V4PagePaginationArray), { query, ...options }); } } BaseGroups._key = Object.freeze(['zeroTrust', 'identityProviders', 'scim', 'groups']); return BaseGroups; })(); exports.BaseGroups = BaseGroups; class Groups extends BaseGroups { } exports.Groups = Groups; //# sourceMappingURL=groups.js.map