cloudflare
Version:
The official TypeScript library for the Cloudflare API
39 lines • 1.59 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Associations = exports.BaseAssociations = 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 BaseAssociations = /* @__PURE__ */ (() => {
class BaseAssociations extends resource_1.APIResource {
/**
* Lists all active associations between the certificate and Cloudflare services.
*
* @example
* ```ts
* // Automatically fetches more pages as needed.
* for await (const certificateAsssociation of client.mtlsCertificates.associations.get(
* '2458ce5a-0c35-4c7f-82c7-8e9487d3ff60',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* )) {
* // ...
* }
* ```
*/
get(mtlsCertificateID, params, options) {
const { account_id } = params;
return this._client.getAPIList((0, path_1.path) `/accounts/${account_id}/mtls_certificates/${mtlsCertificateID}/associations`, (pagination_1.SinglePage), options);
}
}
BaseAssociations._key = Object.freeze([
'mtlsCertificates',
'associations',
]);
return BaseAssociations;
})();
exports.BaseAssociations = BaseAssociations;
class Associations extends BaseAssociations {
}
exports.Associations = Associations;
//# sourceMappingURL=associations.js.map