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

42 lines
1.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.
*/
/**
* Check if a given object implements the TotpValidateCodeRequest interface.
*/
export function instanceOfTotpValidateCodeRequest(value) {
return true;
}
export function TotpValidateCodeRequestFromJSON(json) {
return TotpValidateCodeRequestFromJSONTyped(json, false);
}
export function TotpValidateCodeRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'code': json['code'] == null ? undefined : json['code'],
};
}
export function TotpValidateCodeRequestToJSON(json) {
return TotpValidateCodeRequestToJSONTyped(json, false);
}
export function TotpValidateCodeRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'code': value['code'],
};
}