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

53 lines
1.9 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.instanceOfRekeyReadBackupKeyResponse = instanceOfRekeyReadBackupKeyResponse;
exports.RekeyReadBackupKeyResponseFromJSON = RekeyReadBackupKeyResponseFromJSON;
exports.RekeyReadBackupKeyResponseFromJSONTyped = RekeyReadBackupKeyResponseFromJSONTyped;
exports.RekeyReadBackupKeyResponseToJSON = RekeyReadBackupKeyResponseToJSON;
exports.RekeyReadBackupKeyResponseToJSONTyped = RekeyReadBackupKeyResponseToJSONTyped;
/**
* Check if a given object implements the RekeyReadBackupKeyResponse interface.
*/
function instanceOfRekeyReadBackupKeyResponse(value) {
return true;
}
function RekeyReadBackupKeyResponseFromJSON(json) {
return RekeyReadBackupKeyResponseFromJSONTyped(json, false);
}
function RekeyReadBackupKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'keys': json['keys'] == null ? undefined : json['keys'],
'keysBase64': json['keys_base64'] == null ? undefined : json['keys_base64'],
'nonce': json['nonce'] == null ? undefined : json['nonce'],
};
}
function RekeyReadBackupKeyResponseToJSON(json) {
return RekeyReadBackupKeyResponseToJSONTyped(json, false);
}
function RekeyReadBackupKeyResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'keys': value['keys'],
'keys_base64': value['keysBase64'],
'nonce': value['nonce'],
};
}