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

60 lines
2.2 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.
*/
/**
* @export
* @enum {string}
*/
export var KeyManagementUpdateKeyRequestTypeEnum;
(function (KeyManagementUpdateKeyRequestTypeEnum) {
KeyManagementUpdateKeyRequestTypeEnum["RSA_2048"] = "rsa-2048";
KeyManagementUpdateKeyRequestTypeEnum["RSA_3072"] = "rsa-3072";
KeyManagementUpdateKeyRequestTypeEnum["RSA_4096"] = "rsa-4096";
KeyManagementUpdateKeyRequestTypeEnum["ECDSA_P256"] = "ecdsa-p256";
KeyManagementUpdateKeyRequestTypeEnum["ECDSA_P384"] = "ecdsa-p384";
KeyManagementUpdateKeyRequestTypeEnum["ECDSA_P521"] = "ecdsa-p521";
KeyManagementUpdateKeyRequestTypeEnum["AES256_GCM96"] = "aes256-gcm96";
})(KeyManagementUpdateKeyRequestTypeEnum || (KeyManagementUpdateKeyRequestTypeEnum = {}));
/**
* Check if a given object implements the KeyManagementUpdateKeyRequest interface.
*/
export function instanceOfKeyManagementUpdateKeyRequest(value) {
return true;
}
export function KeyManagementUpdateKeyRequestFromJSON(json) {
return KeyManagementUpdateKeyRequestFromJSONTyped(json, false);
}
export function KeyManagementUpdateKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'deletionAllowed': json['deletion_allowed'] == null ? undefined : json['deletion_allowed'],
'minEnabledVersion': json['min_enabled_version'] == null ? undefined : json['min_enabled_version'],
'type': json['type'] == null ? undefined : json['type'],
};
}
export function KeyManagementUpdateKeyRequestToJSON(json) {
return KeyManagementUpdateKeyRequestToJSONTyped(json, false);
}
export function KeyManagementUpdateKeyRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'deletion_allowed': value['deletionAllowed'],
'min_enabled_version': value['minEnabledVersion'],
'type': value['type'],
};
}