vault/ui/api-client/dist/esm/models/RootTokenGenerationReadProgressResponse.js
Jordan Reimer 5905f43e1f
[UI] Check-in Built API Client (#29955)
* removes dist from api-client gitignore

* ignores api-client/dist directory for eslint and prettier

* builds api client
2025-03-19 11:50:15 -06:00

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.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.
*/
/**
* Check if a given object implements the RootTokenGenerationReadProgressResponse interface.
*/
export function instanceOfRootTokenGenerationReadProgressResponse(value) {
return true;
}
export function RootTokenGenerationReadProgressResponseFromJSON(json) {
return RootTokenGenerationReadProgressResponseFromJSONTyped(json, false);
}
export function RootTokenGenerationReadProgressResponseFromJSONTyped(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 RootTokenGenerationReadProgressResponseToJSON(json) {
return RootTokenGenerationReadProgressResponseToJSONTyped(json, false);
}
export function RootTokenGenerationReadProgressResponseToJSONTyped(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'],
};
}