/* 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'; /** * Download links for a given DNClient version * @export * @interface DownloadsDNClientLinks */ export interface DownloadsDNClientLinks { [key: string]: string | any; /** * * @type {string} * @memberof DownloadsDNClientLinks */ linuxAmd64?: string; /** * * @type {string} * @memberof DownloadsDNClientLinks */ linuxArm64?: string; /** * * @type {string} * @memberof DownloadsDNClientLinks */ macosUniversal?: string; /** * * @type {string} * @memberof DownloadsDNClientLinks */ macosUniversalDmg?: string; /** * * @type {string} * @memberof DownloadsDNClientLinks */ windowsAmd64?: string; /** * * @type {string} * @memberof DownloadsDNClientLinks */ windowsArm64?: string; } /** * Check if a given object implements the DownloadsDNClientLinks interface. */ export function instanceOfDownloadsDNClientLinks(value: object): boolean { let isInstance = true; return isInstance; } export function DownloadsDNClientLinksFromJSON(json: any): DownloadsDNClientLinks { return DownloadsDNClientLinksFromJSONTyped(json, false); } export function DownloadsDNClientLinksFromJSONTyped(json: any, ignoreDiscriminator: boolean): DownloadsDNClientLinks { if ((json === undefined) || (json === null)) { return json; } return { ...json, 'linuxAmd64': !exists(json, 'linux-amd64') ? undefined : json['linux-amd64'], 'linuxArm64': !exists(json, 'linux-arm64') ? undefined : json['linux-arm64'], 'macosUniversal': !exists(json, 'macos-universal') ? undefined : json['macos-universal'], 'macosUniversalDmg': !exists(json, 'macos-universal-dmg') ? undefined : json['macos-universal-dmg'], 'windowsAmd64': !exists(json, 'windows-amd64') ? undefined : json['windows-amd64'], 'windowsArm64': !exists(json, 'windows-arm64') ? undefined : json['windows-arm64'], }; } export function DownloadsDNClientLinksToJSON(value?: DownloadsDNClientLinks | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { ...value, 'linux-amd64': value.linuxAmd64, 'linux-arm64': value.linuxArm64, 'macos-universal': value.macosUniversal, 'macos-universal-dmg': value.macosUniversalDmg, 'windows-amd64': value.windowsAmd64, 'windows-arm64': value.windowsArm64, }; }