vault/ui/api-client/dist/models/TransitImportKeyRequest.js

67 lines
2.8 KiB
JavaScript

"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.instanceOfTransitImportKeyRequest = instanceOfTransitImportKeyRequest;
exports.TransitImportKeyRequestFromJSON = TransitImportKeyRequestFromJSON;
exports.TransitImportKeyRequestFromJSONTyped = TransitImportKeyRequestFromJSONTyped;
exports.TransitImportKeyRequestToJSON = TransitImportKeyRequestToJSON;
exports.TransitImportKeyRequestToJSONTyped = TransitImportKeyRequestToJSONTyped;
/**
* Check if a given object implements the TransitImportKeyRequest interface.
*/
function instanceOfTransitImportKeyRequest(value) {
return true;
}
function TransitImportKeyRequestFromJSON(json) {
return TransitImportKeyRequestFromJSONTyped(json, false);
}
function TransitImportKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'allowPlaintextBackup': json['allow_plaintext_backup'] == null ? undefined : json['allow_plaintext_backup'],
'allowRotation': json['allow_rotation'] == null ? undefined : json['allow_rotation'],
'autoRotatePeriod': json['auto_rotate_period'] == null ? undefined : json['auto_rotate_period'],
'ciphertext': json['ciphertext'] == null ? undefined : json['ciphertext'],
'context': json['context'] == null ? undefined : json['context'],
'derived': json['derived'] == null ? undefined : json['derived'],
'exportable': json['exportable'] == null ? undefined : json['exportable'],
'hashFunction': json['hash_function'] == null ? undefined : json['hash_function'],
'publicKey': json['public_key'] == null ? undefined : json['public_key'],
'type': json['type'] == null ? undefined : json['type'],
};
}
function TransitImportKeyRequestToJSON(json) {
return TransitImportKeyRequestToJSONTyped(json, false);
}
function TransitImportKeyRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'allow_plaintext_backup': value['allowPlaintextBackup'],
'allow_rotation': value['allowRotation'],
'auto_rotate_period': value['autoRotatePeriod'],
'ciphertext': value['ciphertext'],
'context': value['context'],
'derived': value['derived'],
'exportable': value['exportable'],
'hash_function': value['hashFunction'],
'public_key': value['publicKey'],
'type': value['type'],
};
}