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

60 lines
2.4 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 TransitImportKeyRequest interface.
*/
export function instanceOfTransitImportKeyRequest(value) {
return true;
}
export function TransitImportKeyRequestFromJSON(json) {
return TransitImportKeyRequestFromJSONTyped(json, false);
}
export 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'],
};
}
export function TransitImportKeyRequestToJSON(json) {
return TransitImportKeyRequestToJSONTyped(json, false);
}
export 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'],
};
}