umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
59 lines (58 loc) • 2.4 kB
JavaScript
;
/* 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.instanceOfServerConfigurationResponseModel = instanceOfServerConfigurationResponseModel;
exports.ServerConfigurationResponseModelFromJSON = ServerConfigurationResponseModelFromJSON;
exports.ServerConfigurationResponseModelFromJSONTyped = ServerConfigurationResponseModelFromJSONTyped;
exports.ServerConfigurationResponseModelToJSON = ServerConfigurationResponseModelToJSON;
exports.ServerConfigurationResponseModelToJSONTyped = ServerConfigurationResponseModelToJSONTyped;
/**
* Check if a given object implements the ServerConfigurationResponseModel interface.
*/
function instanceOfServerConfigurationResponseModel(value) {
if (!('allowPasswordReset' in value) || value['allowPasswordReset'] === undefined)
return false;
if (!('versionCheckPeriod' in value) || value['versionCheckPeriod'] === undefined)
return false;
if (!('allowLocalLogin' in value) || value['allowLocalLogin'] === undefined)
return false;
return true;
}
function ServerConfigurationResponseModelFromJSON(json) {
return ServerConfigurationResponseModelFromJSONTyped(json, false);
}
function ServerConfigurationResponseModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'allowPasswordReset': json['allowPasswordReset'],
'versionCheckPeriod': json['versionCheckPeriod'],
'allowLocalLogin': json['allowLocalLogin'],
};
}
function ServerConfigurationResponseModelToJSON(json) {
return ServerConfigurationResponseModelToJSONTyped(json, false);
}
function ServerConfigurationResponseModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'allowPasswordReset': value['allowPasswordReset'],
'versionCheckPeriod': value['versionCheckPeriod'],
'allowLocalLogin': value['allowLocalLogin'],
};
}