vault/ui/api-client/dist/esm/models/UiConfigReadCustomMessageResponse.js
Jordan Reimer 3cc24fbecb
[UI] API Client Update (#30380)
* regenerates api client

* updates systemReadUtilizationReport api method to generateUtilizationReport

* updates VoidResponse interface to camelCase keys

* fixes issue in api-client VoidApiResponse

* updates tools components and tests to camel api response keys

* test fixes

* fixes more tests
2025-04-25 10:36:23 -06:00

60 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.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 UiConfigReadCustomMessageResponse interface.
*/
export function instanceOfUiConfigReadCustomMessageResponse(value) {
return true;
}
export function UiConfigReadCustomMessageResponseFromJSON(json) {
return UiConfigReadCustomMessageResponseFromJSONTyped(json, false);
}
export function UiConfigReadCustomMessageResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'active': json['active'] == null ? undefined : json['active'],
'authenticated': json['authenticated'] == null ? undefined : json['authenticated'],
'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])),
'id': json['id'] == null ? undefined : json['id'],
'link': json['link'] == null ? undefined : json['link'],
'message': json['message'] == null ? undefined : json['message'],
'options': json['options'] == null ? undefined : json['options'],
'startTime': json['start_time'] == null ? undefined : (new Date(json['start_time'])),
'title': json['title'] == null ? undefined : json['title'],
'type': json['type'] == null ? undefined : json['type'],
};
}
export function UiConfigReadCustomMessageResponseToJSON(json) {
return UiConfigReadCustomMessageResponseToJSONTyped(json, false);
}
export function UiConfigReadCustomMessageResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'active': value['active'],
'authenticated': value['authenticated'],
'end_time': value['endTime'] == null ? undefined : ((value['endTime']).toISOString()),
'id': value['id'],
'link': value['link'],
'message': value['message'],
'options': value['options'],
'start_time': value['startTime'] == null ? undefined : ((value['startTime']).toISOString()),
'title': value['title'],
'type': value['type'],
};
}