mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 14:47:01 +02:00
54 lines
2.0 KiB
JavaScript
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 MfaUpdateDuoMethodRequest interface.
|
|
*/
|
|
export function instanceOfMfaUpdateDuoMethodRequest(value) {
|
|
return true;
|
|
}
|
|
export function MfaUpdateDuoMethodRequestFromJSON(json) {
|
|
return MfaUpdateDuoMethodRequestFromJSONTyped(json, false);
|
|
}
|
|
export function MfaUpdateDuoMethodRequestFromJSONTyped(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 MfaUpdateDuoMethodRequestToJSON(json) {
|
|
return MfaUpdateDuoMethodRequestToJSONTyped(json, false);
|
|
}
|
|
export function MfaUpdateDuoMethodRequestToJSONTyped(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'],
|
|
};
|
|
}
|