vault/ui/api-client/dist/models/MfaCreateTotpMethodRequest.js
Jordan Reimer 5905f43e1f
[UI] Check-in Built API Client (#29955)
* removes dist from api-client gitignore

* ignores api-client/dist directory for eslint and prettier

* builds api client
2025-03-19 11:50:15 -06:00

65 lines
2.6 KiB
JavaScript

"use strict";
/* 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.20.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfMfaCreateTotpMethodRequest = instanceOfMfaCreateTotpMethodRequest;
exports.MfaCreateTotpMethodRequestFromJSON = MfaCreateTotpMethodRequestFromJSON;
exports.MfaCreateTotpMethodRequestFromJSONTyped = MfaCreateTotpMethodRequestFromJSONTyped;
exports.MfaCreateTotpMethodRequestToJSON = MfaCreateTotpMethodRequestToJSON;
exports.MfaCreateTotpMethodRequestToJSONTyped = MfaCreateTotpMethodRequestToJSONTyped;
/**
* Check if a given object implements the MfaCreateTotpMethodRequest interface.
*/
function instanceOfMfaCreateTotpMethodRequest(value) {
return true;
}
function MfaCreateTotpMethodRequestFromJSON(json) {
return MfaCreateTotpMethodRequestFromJSONTyped(json, false);
}
function MfaCreateTotpMethodRequestFromJSONTyped(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'],
};
}
function MfaCreateTotpMethodRequestToJSON(json) {
return MfaCreateTotpMethodRequestToJSONTyped(json, false);
}
function MfaCreateTotpMethodRequestToJSONTyped(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'],
};
}