mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 14:47:01 +02:00
62 lines
2.3 KiB
JavaScript
62 lines
2.3 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 KeyManagementDistributeKeyInKmsProviderRequestProtectionEnum;
|
|
(function (KeyManagementDistributeKeyInKmsProviderRequestProtectionEnum) {
|
|
KeyManagementDistributeKeyInKmsProviderRequestProtectionEnum["HSM"] = "hsm";
|
|
KeyManagementDistributeKeyInKmsProviderRequestProtectionEnum["SOFTWARE"] = "software";
|
|
})(KeyManagementDistributeKeyInKmsProviderRequestProtectionEnum || (KeyManagementDistributeKeyInKmsProviderRequestProtectionEnum = {}));
|
|
/**
|
|
* @export
|
|
* @enum {string}
|
|
*/
|
|
export var KeyManagementDistributeKeyInKmsProviderRequestPurposeEnum;
|
|
(function (KeyManagementDistributeKeyInKmsProviderRequestPurposeEnum) {
|
|
})(KeyManagementDistributeKeyInKmsProviderRequestPurposeEnum || (KeyManagementDistributeKeyInKmsProviderRequestPurposeEnum = {}));
|
|
/**
|
|
* Check if a given object implements the KeyManagementDistributeKeyInKmsProviderRequest interface.
|
|
*/
|
|
export function instanceOfKeyManagementDistributeKeyInKmsProviderRequest(value) {
|
|
if (!('purpose' in value) || value['purpose'] === undefined)
|
|
return false;
|
|
return true;
|
|
}
|
|
export function KeyManagementDistributeKeyInKmsProviderRequestFromJSON(json) {
|
|
return KeyManagementDistributeKeyInKmsProviderRequestFromJSONTyped(json, false);
|
|
}
|
|
export function KeyManagementDistributeKeyInKmsProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'protection': json['protection'] == null ? undefined : json['protection'],
|
|
'purpose': json['purpose'],
|
|
};
|
|
}
|
|
export function KeyManagementDistributeKeyInKmsProviderRequestToJSON(json) {
|
|
return KeyManagementDistributeKeyInKmsProviderRequestToJSONTyped(json, false);
|
|
}
|
|
export function KeyManagementDistributeKeyInKmsProviderRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'protection': value['protection'],
|
|
'purpose': value['purpose'],
|
|
};
|
|
}
|