48 lines
No EOL
2.4 KiB
JavaScript
48 lines
No EOL
2.4 KiB
JavaScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* Defined Networking API
|
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
|
*
|
|
* The version of the OpenAPI document: 1.0.0
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
import { exists, mapValues } from '../runtime';
|
|
import { DownloadsVersionInfoDnclientValueFromJSON, DownloadsVersionInfoDnclientValueFromJSONTyped, DownloadsVersionInfoDnclientValueToJSON, } from './DownloadsVersionInfoDnclientValue';
|
|
import { DownloadsVersionInfoLatestFromJSON, DownloadsVersionInfoLatestFromJSONTyped, DownloadsVersionInfoLatestToJSON, } from './DownloadsVersionInfoLatest';
|
|
/**
|
|
* Check if a given object implements the DownloadsVersionInfo interface.
|
|
*/
|
|
export function instanceOfDownloadsVersionInfo(value) {
|
|
let isInstance = true;
|
|
return isInstance;
|
|
}
|
|
export function DownloadsVersionInfoFromJSON(json) {
|
|
return DownloadsVersionInfoFromJSONTyped(json, false);
|
|
}
|
|
export function DownloadsVersionInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
'dnclient': !exists(json, 'dnclient') ? undefined : (mapValues(json['dnclient'], DownloadsVersionInfoDnclientValueFromJSON)),
|
|
'latest': !exists(json, 'latest') ? undefined : DownloadsVersionInfoLatestFromJSON(json['latest']),
|
|
};
|
|
}
|
|
export function DownloadsVersionInfoToJSON(value) {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
'dnclient': value.dnclient === undefined ? undefined : (mapValues(value.dnclient, DownloadsVersionInfoDnclientValueToJSON)),
|
|
'latest': DownloadsVersionInfoLatestToJSON(value.latest),
|
|
};
|
|
}
|
|
//# sourceMappingURL=DownloadsVersionInfo.js.map
|