UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

25 lines 885 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../resource.mjs"; 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); } } //# sourceMappingURL=hostname-associations.mjs.map