// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflaredev/resource';
import * as CertificatesAPI from 'cloudflaredev/resources/origin-tls-client-auth/hostnames/certificates';
import { SinglePage } from 'cloudflaredev/pagination';
export class Hostnames extends APIResource {
    constructor() {
        super(...arguments);
        this.certificates = new CertificatesAPI.Certificates(this._client);
    }
    /**
     * Associate a hostname to a certificate and enable, disable or invalidate the
     * association. If disabled, client certificate will not be sent to the hostname
     * even if activated at the zone level. 100 maximum associations on a single
     * certificate are allowed. Note: Use a null value for parameter _enabled_ to
     * invalidate the association.
     */
    update(params, options) {
        const { zone_id, ...body } = params;
        return this._client.put(`/zones/${zone_id}/origin_tls_client_auth/hostnames`, {
            body,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
    /**
     * Get the Hostname Status for Client Authentication
     */
    get(hostname, params, options) {
        const { zone_id } = params;
        return this._client.get(`/zones/${zone_id}/origin_tls_client_auth/hostnames/${hostname}`, options)._thenUnwrap((obj) => obj.result);
    }
}
export class AuthenticatedOriginPullsSinglePage extends SinglePage {
}
(function (Hostnames) {
    Hostnames.Certificates = CertificatesAPI.Certificates;
})(Hostnames || (Hostnames = {}));
//# sourceMappingURL=hostnames.mjs.map