mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 14:47:01 +02:00
68 lines
2.8 KiB
JavaScript
68 lines
2.8 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 TransitVerifyRequest interface.
|
|
*/
|
|
export function instanceOfTransitVerifyRequest(value) {
|
|
return true;
|
|
}
|
|
export function TransitVerifyRequestFromJSON(json) {
|
|
return TransitVerifyRequestFromJSONTyped(json, false);
|
|
}
|
|
export function TransitVerifyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'algorithm': json['algorithm'] == null ? undefined : json['algorithm'],
|
|
'batchInput': json['batch_input'] == null ? undefined : json['batch_input'],
|
|
'cmac': json['cmac'] == null ? undefined : json['cmac'],
|
|
'context': json['context'] == null ? undefined : json['context'],
|
|
'hashAlgorithm': json['hash_algorithm'] == null ? undefined : json['hash_algorithm'],
|
|
'hmac': json['hmac'] == null ? undefined : json['hmac'],
|
|
'input': json['input'] == null ? undefined : json['input'],
|
|
'macLength': json['mac_length'] == null ? undefined : json['mac_length'],
|
|
'marshalingAlgorithm': json['marshaling_algorithm'] == null ? undefined : json['marshaling_algorithm'],
|
|
'prehashed': json['prehashed'] == null ? undefined : json['prehashed'],
|
|
'saltLength': json['salt_length'] == null ? undefined : json['salt_length'],
|
|
'signature': json['signature'] == null ? undefined : json['signature'],
|
|
'signatureAlgorithm': json['signature_algorithm'] == null ? undefined : json['signature_algorithm'],
|
|
'signatureContext': json['signature_context'] == null ? undefined : json['signature_context'],
|
|
};
|
|
}
|
|
export function TransitVerifyRequestToJSON(json) {
|
|
return TransitVerifyRequestToJSONTyped(json, false);
|
|
}
|
|
export function TransitVerifyRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'algorithm': value['algorithm'],
|
|
'batch_input': value['batchInput'],
|
|
'cmac': value['cmac'],
|
|
'context': value['context'],
|
|
'hash_algorithm': value['hashAlgorithm'],
|
|
'hmac': value['hmac'],
|
|
'input': value['input'],
|
|
'mac_length': value['macLength'],
|
|
'marshaling_algorithm': value['marshalingAlgorithm'],
|
|
'prehashed': value['prehashed'],
|
|
'salt_length': value['saltLength'],
|
|
'signature': value['signature'],
|
|
'signature_algorithm': value['signatureAlgorithm'],
|
|
'signature_context': value['signatureContext'],
|
|
};
|
|
}
|