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

83 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 { UpdateMediaPathRequestDtoPathInfo } from './UpdateMediaPathRequestDtoPathInfo';
import {
UpdateMediaPathRequestDtoPathInfoFromJSON,
UpdateMediaPathRequestDtoPathInfoFromJSONTyped,
UpdateMediaPathRequestDtoPathInfoToJSON,
} from './UpdateMediaPathRequestDtoPathInfo';
/**
* Update library options dto.
* @export
* @interface UpdateMediaPathRequest
*/
export interface UpdateMediaPathRequest {
/**
* Gets or sets the library name.
* @type {string}
* @memberof UpdateMediaPathRequest
*/
name: string;
/**
*
* @type {UpdateMediaPathRequestDtoPathInfo}
* @memberof UpdateMediaPathRequest
*/
pathInfo: UpdateMediaPathRequestDtoPathInfo;
}
/**
* Check if a given object implements the UpdateMediaPathRequest interface.
*/
export function instanceOfUpdateMediaPathRequest(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "name" in value;
isInstance = isInstance && "pathInfo" in value;
return isInstance;
}
export function UpdateMediaPathRequestFromJSON(json: any): UpdateMediaPathRequest {
return UpdateMediaPathRequestFromJSONTyped(json, false);
}
export function UpdateMediaPathRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateMediaPathRequest {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'name': json['Name'],
'pathInfo': UpdateMediaPathRequestDtoPathInfoFromJSON(json['PathInfo']),
};
}
export function UpdateMediaPathRequestToJSON(value?: UpdateMediaPathRequest | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Name': value.name,
'PathInfo': UpdateMediaPathRequestDtoPathInfoToJSON(value.pathInfo),
};
}