jellyfin-discord-bot/server/jellyfin/models/SetRemoteAccessRequest.ts

76 lines
2.1 KiB
TypeScript
Raw Normal View History

2023-05-04 23:34:53 +02:00
/* tslint:disable */
/* eslint-disable */
/**
* Jellyfin API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 10.8.9
*
*
* 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';
/**
* Startup remote access dto.
* @export
* @interface SetRemoteAccessRequest
*/
export interface SetRemoteAccessRequest {
/**
* Gets or sets a value indicating whether enable remote access.
* @type {boolean}
* @memberof SetRemoteAccessRequest
*/
enableRemoteAccess: boolean;
/**
* Gets or sets a value indicating whether enable automatic port mapping.
* @type {boolean}
* @memberof SetRemoteAccessRequest
*/
enableAutomaticPortMapping: boolean;
}
/**
* Check if a given object implements the SetRemoteAccessRequest interface.
*/
export function instanceOfSetRemoteAccessRequest(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "enableRemoteAccess" in value;
isInstance = isInstance && "enableAutomaticPortMapping" in value;
return isInstance;
}
export function SetRemoteAccessRequestFromJSON(json: any): SetRemoteAccessRequest {
return SetRemoteAccessRequestFromJSONTyped(json, false);
}
export function SetRemoteAccessRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetRemoteAccessRequest {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'enableRemoteAccess': json['EnableRemoteAccess'],
'enableAutomaticPortMapping': json['EnableAutomaticPortMapping'],
};
}
export function SetRemoteAccessRequestToJSON(value?: SetRemoteAccessRequest | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'EnableRemoteAccess': value.enableRemoteAccess,
'EnableAutomaticPortMapping': value.enableAutomaticPortMapping,
};
}