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

46 lines
1.7 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 TransformConfigureNamedEncryptionKeyRequest interface.
*/
export function instanceOfTransformConfigureNamedEncryptionKeyRequest(value) {
return true;
}
export function TransformConfigureNamedEncryptionKeyRequestFromJSON(json) {
return TransformConfigureNamedEncryptionKeyRequestFromJSONTyped(json, false);
}
export function TransformConfigureNamedEncryptionKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'autoRotatePeriod': json['auto_rotate_period'] == null ? undefined : json['auto_rotate_period'],
'deletionAllowed': json['deletion_allowed'] == null ? undefined : json['deletion_allowed'],
'minDecryptionVersion': json['min_decryption_version'] == null ? undefined : json['min_decryption_version'],
};
}
export function TransformConfigureNamedEncryptionKeyRequestToJSON(json) {
return TransformConfigureNamedEncryptionKeyRequestToJSONTyped(json, false);
}
export function TransformConfigureNamedEncryptionKeyRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'auto_rotate_period': value['autoRotatePeriod'],
'deletion_allowed': value['deletionAllowed'],
'min_decryption_version': value['minDecryptionVersion'],
};
}