mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 14:47:01 +02:00
60 lines
2.4 KiB
JavaScript
60 lines
2.4 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 RootTokenGenerationInitialize2Response interface.
|
|
*/
|
|
export function instanceOfRootTokenGenerationInitialize2Response(value) {
|
|
return true;
|
|
}
|
|
export function RootTokenGenerationInitialize2ResponseFromJSON(json) {
|
|
return RootTokenGenerationInitialize2ResponseFromJSONTyped(json, false);
|
|
}
|
|
export function RootTokenGenerationInitialize2ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'complete': json['complete'] == null ? undefined : json['complete'],
|
|
'encodedRootToken': json['encoded_root_token'] == null ? undefined : json['encoded_root_token'],
|
|
'encodedToken': json['encoded_token'] == null ? undefined : json['encoded_token'],
|
|
'nonce': json['nonce'] == null ? undefined : json['nonce'],
|
|
'otp': json['otp'] == null ? undefined : json['otp'],
|
|
'otpLength': json['otp_length'] == null ? undefined : json['otp_length'],
|
|
'pgpFingerprint': json['pgp_fingerprint'] == null ? undefined : json['pgp_fingerprint'],
|
|
'progress': json['progress'] == null ? undefined : json['progress'],
|
|
'required': json['required'] == null ? undefined : json['required'],
|
|
'started': json['started'] == null ? undefined : json['started'],
|
|
};
|
|
}
|
|
export function RootTokenGenerationInitialize2ResponseToJSON(json) {
|
|
return RootTokenGenerationInitialize2ResponseToJSONTyped(json, false);
|
|
}
|
|
export function RootTokenGenerationInitialize2ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'complete': value['complete'],
|
|
'encoded_root_token': value['encodedRootToken'],
|
|
'encoded_token': value['encodedToken'],
|
|
'nonce': value['nonce'],
|
|
'otp': value['otp'],
|
|
'otp_length': value['otpLength'],
|
|
'pgp_fingerprint': value['pgpFingerprint'],
|
|
'progress': value['progress'],
|
|
'required': value['required'],
|
|
'started': value['started'],
|
|
};
|
|
}
|