UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

27 lines 978 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from 'cloudflare/resource'; export class HostnameAssociations extends APIResource { /** * Replace Hostname Associations */ update(params, options) { const { zone_id, ...body } = params; return this._client.put(`/zones/${zone_id}/certificate_authorities/hostname_associations`, { body, ...options, })._thenUnwrap((obj) => obj.result); } /** * List Hostname Associations */ get(params, options) { const { zone_id, ...query } = params; return this._client.get(`/zones/${zone_id}/certificate_authorities/hostname_associations`, { query, ...options, })._thenUnwrap((obj) => obj.result); } } (function (HostnameAssociations) { })(HostnameAssociations || (HostnameAssociations = {})); //# sourceMappingURL=hostname-associations.mjs.map