mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 06:37:02 +02:00
54 lines
2.0 KiB
JavaScript
54 lines
2.0 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 TransformLookUpTokenRequest interface.
|
|
*/
|
|
export function instanceOfTransformLookUpTokenRequest(value) {
|
|
return true;
|
|
}
|
|
export function TransformLookUpTokenRequestFromJSON(json) {
|
|
return TransformLookUpTokenRequestFromJSONTyped(json, false);
|
|
}
|
|
export function TransformLookUpTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'batchInput': json['batch_input'] == null ? undefined : json['batch_input'],
|
|
'expiration': json['expiration'] == null ? undefined : json['expiration'],
|
|
'maxExpiration': json['max_expiration'] == null ? undefined : json['max_expiration'],
|
|
'minExpiration': json['min_expiration'] == null ? undefined : json['min_expiration'],
|
|
'token': json['token'] == null ? undefined : json['token'],
|
|
'transformation': json['transformation'] == null ? undefined : json['transformation'],
|
|
'value': json['value'] == null ? undefined : json['value'],
|
|
};
|
|
}
|
|
export function TransformLookUpTokenRequestToJSON(json) {
|
|
return TransformLookUpTokenRequestToJSONTyped(json, false);
|
|
}
|
|
export function TransformLookUpTokenRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'batch_input': value['batchInput'],
|
|
'expiration': value['expiration'],
|
|
'max_expiration': value['maxExpiration'],
|
|
'min_expiration': value['minExpiration'],
|
|
'token': value['token'],
|
|
'transformation': value['transformation'],
|
|
'value': value['value'],
|
|
};
|
|
}
|