"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.instanceOfTotpCreateKeyRequest = instanceOfTotpCreateKeyRequest; exports.TotpCreateKeyRequestFromJSON = TotpCreateKeyRequestFromJSON; exports.TotpCreateKeyRequestFromJSONTyped = TotpCreateKeyRequestFromJSONTyped; exports.TotpCreateKeyRequestToJSON = TotpCreateKeyRequestToJSON; exports.TotpCreateKeyRequestToJSONTyped = TotpCreateKeyRequestToJSONTyped; /** * Check if a given object implements the TotpCreateKeyRequest interface. */ function instanceOfTotpCreateKeyRequest(value) { return true; } function TotpCreateKeyRequestFromJSON(json) { return TotpCreateKeyRequestFromJSONTyped(json, false); } function TotpCreateKeyRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { accountName: json['account_name'] == null ? undefined : json['account_name'], algorithm: json['algorithm'] == null ? undefined : json['algorithm'], digits: json['digits'] == null ? undefined : json['digits'], exported: json['exported'] == null ? undefined : json['exported'], generate: json['generate'] == null ? undefined : json['generate'], issuer: json['issuer'] == null ? undefined : json['issuer'], key: json['key'] == null ? undefined : json['key'], keySize: json['key_size'] == null ? undefined : json['key_size'], period: json['period'] == null ? undefined : json['period'], qrSize: json['qr_size'] == null ? undefined : json['qr_size'], skew: json['skew'] == null ? undefined : json['skew'], url: json['url'] == null ? undefined : json['url'], }; } function TotpCreateKeyRequestToJSON(json) { return TotpCreateKeyRequestToJSONTyped(json, false); } function TotpCreateKeyRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { account_name: value['accountName'], algorithm: value['algorithm'], digits: value['digits'], exported: value['exported'], generate: value['generate'], issuer: value['issuer'], key: value['key'], key_size: value['keySize'], period: value['period'], qr_size: value['qrSize'], skew: value['skew'], url: value['url'], }; }