"use strict"; /* tslint:disable */ /* eslint-disable */ /** * HashiCorp Vault API * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. * * The version of the OpenAPI document: 1.20.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.PkiWriteExternalPolicySignRequestFormatEnum = void 0; exports.instanceOfPkiWriteExternalPolicySignRequest = instanceOfPkiWriteExternalPolicySignRequest; exports.PkiWriteExternalPolicySignRequestFromJSON = PkiWriteExternalPolicySignRequestFromJSON; exports.PkiWriteExternalPolicySignRequestFromJSONTyped = PkiWriteExternalPolicySignRequestFromJSONTyped; exports.PkiWriteExternalPolicySignRequestToJSON = PkiWriteExternalPolicySignRequestToJSON; exports.PkiWriteExternalPolicySignRequestToJSONTyped = PkiWriteExternalPolicySignRequestToJSONTyped; /** * @export * @enum {string} */ var PkiWriteExternalPolicySignRequestFormatEnum; (function (PkiWriteExternalPolicySignRequestFormatEnum) { PkiWriteExternalPolicySignRequestFormatEnum["PEM"] = "pem"; PkiWriteExternalPolicySignRequestFormatEnum["DER"] = "der"; PkiWriteExternalPolicySignRequestFormatEnum["PEM_BUNDLE"] = "pem_bundle"; })(PkiWriteExternalPolicySignRequestFormatEnum || (exports.PkiWriteExternalPolicySignRequestFormatEnum = PkiWriteExternalPolicySignRequestFormatEnum = {})); /** * Check if a given object implements the PkiWriteExternalPolicySignRequest interface. */ function instanceOfPkiWriteExternalPolicySignRequest(value) { if (!('csr' in value) || value['csr'] === undefined) return false; return true; } function PkiWriteExternalPolicySignRequestFromJSON(json) { return PkiWriteExternalPolicySignRequestFromJSONTyped(json, false); } function PkiWriteExternalPolicySignRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return Object.assign(Object.assign({}, json), { csr: json['csr'], format: json['format'] == null ? undefined : json['format'], removeRootsFromChain: json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'] }); } function PkiWriteExternalPolicySignRequestToJSON(json) { return PkiWriteExternalPolicySignRequestToJSONTyped(json, false); } function PkiWriteExternalPolicySignRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return Object.assign(Object.assign({}, value), { csr: value['csr'], format: value['format'], remove_roots_from_chain: value['removeRootsFromChain'] }); }