cloudflare
Version:
The official TypeScript library for the Cloudflare API
39 lines • 1.66 kB
JavaScript
;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.UpdateListResponsesV4PagePaginationArray = exports.Updates = void 0;
const resource_1 = require("../../../../../resource.js");
const pagination_1 = require("../../../../../pagination.js");
class Updates extends resource_1.APIResource {
/**
* Lists Access SCIM update logs that maintain a record of updates made to User and
* 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 updateListResponse of client.zeroTrust.access.logs.scim.updates.list(
* {
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
* idp_id: [
* 'df7e2w5f-02b7-4d9d-af26-8d1988fca630',
* '0194ae2c-efcf-7cfb-8884-055f1a161fa5',
* ],
* },
* )) {
* // ...
* }
* ```
*/
list(params, options) {
const { account_id, ...query } = params;
return this._client.getAPIList(`/accounts/${account_id}/access/logs/scim/updates`, UpdateListResponsesV4PagePaginationArray, { query, ...options });
}
}
exports.Updates = Updates;
class UpdateListResponsesV4PagePaginationArray extends pagination_1.V4PagePaginationArray {
}
exports.UpdateListResponsesV4PagePaginationArray = UpdateListResponsesV4PagePaginationArray;
Updates.UpdateListResponsesV4PagePaginationArray = UpdateListResponsesV4PagePaginationArray;
//# sourceMappingURL=updates.js.map