// File generated from our OpenAPI spec by Stainless.
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