/* 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. */ /** * @export * @enum {string} */ export var PkiWriteIssuerIssuerRefExternalPolicyIssueRequestFormatEnum; (function (PkiWriteIssuerIssuerRefExternalPolicyIssueRequestFormatEnum) { PkiWriteIssuerIssuerRefExternalPolicyIssueRequestFormatEnum["PEM"] = "pem"; PkiWriteIssuerIssuerRefExternalPolicyIssueRequestFormatEnum["DER"] = "der"; PkiWriteIssuerIssuerRefExternalPolicyIssueRequestFormatEnum["PEM_BUNDLE"] = "pem_bundle"; })(PkiWriteIssuerIssuerRefExternalPolicyIssueRequestFormatEnum || (PkiWriteIssuerIssuerRefExternalPolicyIssueRequestFormatEnum = {})); /** * @export * @enum {string} */ export var PkiWriteIssuerIssuerRefExternalPolicyIssueRequestKeyTypeEnum; (function (PkiWriteIssuerIssuerRefExternalPolicyIssueRequestKeyTypeEnum) { PkiWriteIssuerIssuerRefExternalPolicyIssueRequestKeyTypeEnum["RSA"] = "rsa"; PkiWriteIssuerIssuerRefExternalPolicyIssueRequestKeyTypeEnum["EC"] = "ec"; PkiWriteIssuerIssuerRefExternalPolicyIssueRequestKeyTypeEnum["ED25519"] = "ed25519"; })(PkiWriteIssuerIssuerRefExternalPolicyIssueRequestKeyTypeEnum || (PkiWriteIssuerIssuerRefExternalPolicyIssueRequestKeyTypeEnum = {})); /** * @export * @enum {string} */ export var PkiWriteIssuerIssuerRefExternalPolicyIssueRequestPrivateKeyFormatEnum; (function (PkiWriteIssuerIssuerRefExternalPolicyIssueRequestPrivateKeyFormatEnum) { PkiWriteIssuerIssuerRefExternalPolicyIssueRequestPrivateKeyFormatEnum["DER"] = "der"; PkiWriteIssuerIssuerRefExternalPolicyIssueRequestPrivateKeyFormatEnum["PEM"] = "pem"; PkiWriteIssuerIssuerRefExternalPolicyIssueRequestPrivateKeyFormatEnum["PKCS8"] = "pkcs8"; })(PkiWriteIssuerIssuerRefExternalPolicyIssueRequestPrivateKeyFormatEnum || (PkiWriteIssuerIssuerRefExternalPolicyIssueRequestPrivateKeyFormatEnum = {})); /** * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyIssueRequest interface. */ export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyIssueRequest(value) { return true; } export function PkiWriteIssuerIssuerRefExternalPolicyIssueRequestFromJSON(json) { return PkiWriteIssuerIssuerRefExternalPolicyIssueRequestFromJSONTyped(json, false); } export function PkiWriteIssuerIssuerRefExternalPolicyIssueRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return Object.assign(Object.assign({}, json), { 'format': json['format'] == null ? undefined : json['format'], 'keyBits': json['key_bits'] == null ? undefined : json['key_bits'], 'keyType': json['key_type'] == null ? undefined : json['key_type'], 'privateKeyFormat': json['private_key_format'] == null ? undefined : json['private_key_format'], 'removeRootsFromChain': json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'] }); } export function PkiWriteIssuerIssuerRefExternalPolicyIssueRequestToJSON(json) { return PkiWriteIssuerIssuerRefExternalPolicyIssueRequestToJSONTyped(json, false); } export function PkiWriteIssuerIssuerRefExternalPolicyIssueRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return Object.assign(Object.assign({}, value), { 'format': value['format'], 'key_bits': value['keyBits'], 'key_type': value['keyType'], 'private_key_format': value['privateKeyFormat'], 'remove_roots_from_chain': value['removeRootsFromChain'] }); }