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

82 lines
2.1 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';
/**
* Validate path object.
* @export
* @interface ValidatePathRequest
*/
export interface ValidatePathRequest {
/**
* Gets or sets a value indicating whether validate if path is writable.
* @type {boolean}
* @memberof ValidatePathRequest
*/
validateWritable?: boolean;
/**
* Gets or sets the path.
* @type {string}
* @memberof ValidatePathRequest
*/
path?: string | null;
/**
* Gets or sets is path file.
* @type {boolean}
* @memberof ValidatePathRequest
*/
isFile?: boolean | null;
}
/**
* Check if a given object implements the ValidatePathRequest interface.
*/
export function instanceOfValidatePathRequest(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function ValidatePathRequestFromJSON(json: any): ValidatePathRequest {
return ValidatePathRequestFromJSONTyped(json, false);
}
export function ValidatePathRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidatePathRequest {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'validateWritable': !exists(json, 'ValidateWritable') ? undefined : json['ValidateWritable'],
'path': !exists(json, 'Path') ? undefined : json['Path'],
'isFile': !exists(json, 'IsFile') ? undefined : json['IsFile'],
};
}
export function ValidatePathRequestToJSON(value?: ValidatePathRequest | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'ValidateWritable': value.validateWritable,
'Path': value.path,
'IsFile': value.isFile,
};
}