UNPKG

umbraco-management-api-client

Version:

TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)

61 lines (60 loc) 2.83 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Umbraco Management API * This shows all APIs available in this version of Umbraco - including all the legacy apis that are available for backward compatibility * * The version of the OpenAPI document: Latest * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfHealthCheckResultResponseModel = instanceOfHealthCheckResultResponseModel; exports.HealthCheckResultResponseModelFromJSON = HealthCheckResultResponseModelFromJSON; exports.HealthCheckResultResponseModelFromJSONTyped = HealthCheckResultResponseModelFromJSONTyped; exports.HealthCheckResultResponseModelToJSON = HealthCheckResultResponseModelToJSON; exports.HealthCheckResultResponseModelToJSONTyped = HealthCheckResultResponseModelToJSONTyped; const HealthCheckResultResponseModelActionsInner_1 = require("./HealthCheckResultResponseModelActionsInner"); const StatusResultTypeModel_1 = require("./StatusResultTypeModel"); /** * Check if a given object implements the HealthCheckResultResponseModel interface. */ function instanceOfHealthCheckResultResponseModel(value) { if (!('message' in value) || value['message'] === undefined) return false; if (!('resultType' in value) || value['resultType'] === undefined) return false; return true; } function HealthCheckResultResponseModelFromJSON(json) { return HealthCheckResultResponseModelFromJSONTyped(json, false); } function HealthCheckResultResponseModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'message': json['message'], 'resultType': (0, StatusResultTypeModel_1.StatusResultTypeModelFromJSON)(json['resultType']), 'actions': json['actions'] == null ? undefined : (json['actions'].map(HealthCheckResultResponseModelActionsInner_1.HealthCheckResultResponseModelActionsInnerFromJSON)), 'readMoreLink': json['readMoreLink'] == null ? undefined : json['readMoreLink'], }; } function HealthCheckResultResponseModelToJSON(json) { return HealthCheckResultResponseModelToJSONTyped(json, false); } function HealthCheckResultResponseModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'message': value['message'], 'resultType': (0, StatusResultTypeModel_1.StatusResultTypeModelToJSON)(value['resultType']), 'actions': value['actions'] == null ? undefined : (value['actions'].map(HealthCheckResultResponseModelActionsInner_1.HealthCheckResultResponseModelActionsInnerToJSON)), 'readMoreLink': value['readMoreLink'], }; }