mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 06:37:02 +02:00
60 lines
2.3 KiB
JavaScript
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.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 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'],
|
|
};
|
|
}
|