73 lines
2.3 KiB
TypeScript
73 lines
2.3 KiB
TypeScript
/* 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';
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface HostDelete200Response
|
|
*/
|
|
export interface HostDelete200Response {
|
|
/**
|
|
*
|
|
* @type {object}
|
|
* @memberof HostDelete200Response
|
|
*/
|
|
data?: object;
|
|
/**
|
|
*
|
|
* @type {object}
|
|
* @memberof HostDelete200Response
|
|
*/
|
|
metadata?: object;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the HostDelete200Response interface.
|
|
*/
|
|
export function instanceOfHostDelete200Response(value: object): boolean {
|
|
let isInstance = true;
|
|
|
|
return isInstance;
|
|
}
|
|
|
|
export function HostDelete200ResponseFromJSON(json: any): HostDelete200Response {
|
|
return HostDelete200ResponseFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function HostDelete200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostDelete200Response {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'data': !exists(json, 'data') ? undefined : json['data'],
|
|
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
|
|
};
|
|
}
|
|
|
|
export function HostDelete200ResponseToJSON(value?: HostDelete200Response | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'data': value.data,
|
|
'metadata': value.metadata,
|
|
};
|
|
}
|
|
|