vault/ui/api-client/dist/esm/models/RekeyReadBackupRecoveryKeyResponse.js

46 lines
1.5 KiB
JavaScript

/* 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.21.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* Check if a given object implements the RekeyReadBackupRecoveryKeyResponse interface.
*/
export function instanceOfRekeyReadBackupRecoveryKeyResponse(value) {
return true;
}
export function RekeyReadBackupRecoveryKeyResponseFromJSON(json) {
return RekeyReadBackupRecoveryKeyResponseFromJSONTyped(json, false);
}
export function RekeyReadBackupRecoveryKeyResponseFromJSONTyped(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'],
};
}
export function RekeyReadBackupRecoveryKeyResponseToJSON(json) {
return RekeyReadBackupRecoveryKeyResponseToJSONTyped(json, false);
}
export function RekeyReadBackupRecoveryKeyResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'keys': value['keys'],
'keys_base64': value['keysBase64'],
'nonce': value['nonce'],
};
}