mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 06:37:02 +02:00
64 lines
2.3 KiB
JavaScript
64 lines
2.3 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 TotpCreateKeyRequest interface.
|
|
*/
|
|
export function instanceOfTotpCreateKeyRequest(value) {
|
|
return true;
|
|
}
|
|
export function TotpCreateKeyRequestFromJSON(json) {
|
|
return TotpCreateKeyRequestFromJSONTyped(json, false);
|
|
}
|
|
export 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'],
|
|
};
|
|
}
|
|
export function TotpCreateKeyRequestToJSON(json) {
|
|
return TotpCreateKeyRequestToJSONTyped(json, false);
|
|
}
|
|
export 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'],
|
|
};
|
|
}
|