mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-26 00:51:08 +02:00
* removes dist from api-client gitignore * ignores api-client/dist directory for eslint and prettier * builds api client
63 lines
2.6 KiB
JavaScript
63 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.instanceOfSystemWriteMfaMethodTotpNameRequest = instanceOfSystemWriteMfaMethodTotpNameRequest;
|
|
exports.SystemWriteMfaMethodTotpNameRequestFromJSON = SystemWriteMfaMethodTotpNameRequestFromJSON;
|
|
exports.SystemWriteMfaMethodTotpNameRequestFromJSONTyped = SystemWriteMfaMethodTotpNameRequestFromJSONTyped;
|
|
exports.SystemWriteMfaMethodTotpNameRequestToJSON = SystemWriteMfaMethodTotpNameRequestToJSON;
|
|
exports.SystemWriteMfaMethodTotpNameRequestToJSONTyped = SystemWriteMfaMethodTotpNameRequestToJSONTyped;
|
|
/**
|
|
* Check if a given object implements the SystemWriteMfaMethodTotpNameRequest interface.
|
|
*/
|
|
function instanceOfSystemWriteMfaMethodTotpNameRequest(value) {
|
|
return true;
|
|
}
|
|
function SystemWriteMfaMethodTotpNameRequestFromJSON(json) {
|
|
return SystemWriteMfaMethodTotpNameRequestFromJSONTyped(json, false);
|
|
}
|
|
function SystemWriteMfaMethodTotpNameRequestFromJSONTyped(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'],
|
|
period: json['period'] == null ? undefined : json['period'],
|
|
qrSize: json['qr_size'] == null ? undefined : json['qr_size'],
|
|
skew: json['skew'] == null ? undefined : json['skew'],
|
|
};
|
|
}
|
|
function SystemWriteMfaMethodTotpNameRequestToJSON(json) {
|
|
return SystemWriteMfaMethodTotpNameRequestToJSONTyped(json, false);
|
|
}
|
|
function SystemWriteMfaMethodTotpNameRequestToJSONTyped(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'],
|
|
period: value['period'],
|
|
qr_size: value['qrSize'],
|
|
skew: value['skew'],
|
|
};
|
|
}
|