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

81 lines
2.3 KiB
TypeScript
Raw Permalink 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';
import type { AddVirtualFolderDtoLibraryOptions } from './AddVirtualFolderDtoLibraryOptions';
import {
AddVirtualFolderDtoLibraryOptionsFromJSON,
AddVirtualFolderDtoLibraryOptionsFromJSONTyped,
AddVirtualFolderDtoLibraryOptionsToJSON,
} from './AddVirtualFolderDtoLibraryOptions';
/**
* Update library options dto.
* @export
* @interface UpdateLibraryOptionsRequest
*/
export interface UpdateLibraryOptionsRequest {
/**
* Gets or sets the library item id.
* @type {string}
* @memberof UpdateLibraryOptionsRequest
*/
id?: string;
/**
*
* @type {AddVirtualFolderDtoLibraryOptions}
* @memberof UpdateLibraryOptionsRequest
*/
libraryOptions?: AddVirtualFolderDtoLibraryOptions | null;
}
/**
* Check if a given object implements the UpdateLibraryOptionsRequest interface.
*/
export function instanceOfUpdateLibraryOptionsRequest(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function UpdateLibraryOptionsRequestFromJSON(json: any): UpdateLibraryOptionsRequest {
return UpdateLibraryOptionsRequestFromJSONTyped(json, false);
}
export function UpdateLibraryOptionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLibraryOptionsRequest {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'id': !exists(json, 'Id') ? undefined : json['Id'],
'libraryOptions': !exists(json, 'LibraryOptions') ? undefined : AddVirtualFolderDtoLibraryOptionsFromJSON(json['LibraryOptions']),
};
}
export function UpdateLibraryOptionsRequestToJSON(value?: UpdateLibraryOptionsRequest | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Id': value.id,
'LibraryOptions': AddVirtualFolderDtoLibraryOptionsToJSON(value.libraryOptions),
};
}