vault/ui/api-client/dist/esm/models/MfaCreateDuoMethodRequest.js

54 lines
2.0 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 MfaCreateDuoMethodRequest interface.
*/
export function instanceOfMfaCreateDuoMethodRequest(value) {
return true;
}
export function MfaCreateDuoMethodRequestFromJSON(json) {
return MfaCreateDuoMethodRequestFromJSONTyped(json, false);
}
export function MfaCreateDuoMethodRequestFromJSONTyped(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'],
'methodName': json['method_name'] == null ? undefined : json['method_name'],
'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'],
};
}
export function MfaCreateDuoMethodRequestToJSON(json) {
return MfaCreateDuoMethodRequestToJSONTyped(json, false);
}
export function MfaCreateDuoMethodRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'api_hostname': value['apiHostname'],
'integration_key': value['integrationKey'],
'method_name': value['methodName'],
'push_info': value['pushInfo'],
'secret_key': value['secretKey'],
'use_passcode': value['usePasscode'],
'username_format': value['usernameFormat'],
};
}