mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 14:47:01 +02:00
58 lines
2.1 KiB
JavaScript
58 lines
2.1 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 MfaUpdateTotpMethodRequest interface.
|
|
*/
|
|
export function instanceOfMfaUpdateTotpMethodRequest(value) {
|
|
return true;
|
|
}
|
|
export function MfaUpdateTotpMethodRequestFromJSON(json) {
|
|
return MfaUpdateTotpMethodRequestFromJSONTyped(json, false);
|
|
}
|
|
export function MfaUpdateTotpMethodRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'algorithm': json['algorithm'] == null ? undefined : json['algorithm'],
|
|
'digits': json['digits'] == null ? undefined : json['digits'],
|
|
'issuer': json['issuer'] == null ? undefined : json['issuer'],
|
|
'keySize': json['key_size'] == null ? undefined : json['key_size'],
|
|
'maxValidationAttempts': json['max_validation_attempts'] == null ? undefined : json['max_validation_attempts'],
|
|
'methodName': json['method_name'] == null ? undefined : json['method_name'],
|
|
'period': json['period'] == null ? undefined : json['period'],
|
|
'qrSize': json['qr_size'] == null ? undefined : json['qr_size'],
|
|
'skew': json['skew'] == null ? undefined : json['skew'],
|
|
};
|
|
}
|
|
export function MfaUpdateTotpMethodRequestToJSON(json) {
|
|
return MfaUpdateTotpMethodRequestToJSONTyped(json, false);
|
|
}
|
|
export function MfaUpdateTotpMethodRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'algorithm': value['algorithm'],
|
|
'digits': value['digits'],
|
|
'issuer': value['issuer'],
|
|
'key_size': value['keySize'],
|
|
'max_validation_attempts': value['maxValidationAttempts'],
|
|
'method_name': value['methodName'],
|
|
'period': value['period'],
|
|
'qr_size': value['qrSize'],
|
|
'skew': value['skew'],
|
|
};
|
|
}
|