"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.instanceOfSystemWriteMfaMethodDuoNameRequest = instanceOfSystemWriteMfaMethodDuoNameRequest; exports.SystemWriteMfaMethodDuoNameRequestFromJSON = SystemWriteMfaMethodDuoNameRequestFromJSON; exports.SystemWriteMfaMethodDuoNameRequestFromJSONTyped = SystemWriteMfaMethodDuoNameRequestFromJSONTyped; exports.SystemWriteMfaMethodDuoNameRequestToJSON = SystemWriteMfaMethodDuoNameRequestToJSON; exports.SystemWriteMfaMethodDuoNameRequestToJSONTyped = SystemWriteMfaMethodDuoNameRequestToJSONTyped; /** * Check if a given object implements the SystemWriteMfaMethodDuoNameRequest interface. */ function instanceOfSystemWriteMfaMethodDuoNameRequest(value) { return true; } function SystemWriteMfaMethodDuoNameRequestFromJSON(json) { return SystemWriteMfaMethodDuoNameRequestFromJSONTyped(json, false); } function SystemWriteMfaMethodDuoNameRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { apiHostname: json['api_hostname'] == null ? undefined : json['api_hostname'], integrationKey: json['integration_key'] == null ? undefined : json['integration_key'], mountAccessor: json['mount_accessor'] == null ? undefined : json['mount_accessor'], pushInfo: json['push_info'] == null ? undefined : json['push_info'], secretKey: json['secret_key'] == null ? undefined : json['secret_key'], usePasscode: json['use_passcode'] == null ? undefined : json['use_passcode'], usernameFormat: json['username_format'] == null ? undefined : json['username_format'], }; } function SystemWriteMfaMethodDuoNameRequestToJSON(json) { return SystemWriteMfaMethodDuoNameRequestToJSONTyped(json, false); } function SystemWriteMfaMethodDuoNameRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { api_hostname: value['apiHostname'], integration_key: value['integrationKey'], mount_accessor: value['mountAccessor'], push_info: value['pushInfo'], secret_key: value['secretKey'], use_passcode: value['usePasscode'], username_format: value['usernameFormat'], }; }