/* tslint:disable */ /* eslint-disable */ /** * ELEMENTS API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2 * * * 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 { CustomFieldReference, CustomFieldReferenceFromJSON, CustomFieldReferenceFromJSONTyped, CustomFieldReferenceToJSON, JobReference, JobReferenceFromJSON, JobReferenceFromJSONTyped, JobReferenceToJSON, VolumeMiniReference, VolumeMiniReferenceFromJSON, VolumeMiniReferenceFromJSONTyped, VolumeMiniReferenceToJSON, } from './'; /** * * @export * @interface MediaRootPartialUpdate */ export interface MediaRootPartialUpdate { /** * * @type {number} * @memberof MediaRootPartialUpdate */ id?: number; /** * * @type {Array} * @memberof MediaRootPartialUpdate */ customFields?: Array; /** * * @type {{ [key: string]: string | undefined; }} * @memberof MediaRootPartialUpdate */ workflow?: { [key: string]: string | undefined; } | null; /** * * @type {{ [key: string]: string | undefined; }} * @memberof MediaRootPartialUpdate */ aiConfig?: { [key: string]: string | undefined; } | null; /** * * @type {{ [key: string]: string | undefined; }} * @memberof MediaRootPartialUpdate */ veritoneConfig?: { [key: string]: string | undefined; } | null; /** * * @type {VolumeMiniReference} * @memberof MediaRootPartialUpdate */ volume?: VolumeMiniReference; /** * * @type {Array} * @memberof MediaRootPartialUpdate */ jobs?: Array; /** * * @type {string} * @memberof MediaRootPartialUpdate */ name?: string; /** * * @type {string} * @memberof MediaRootPartialUpdate */ readonly path?: string; /** * * @type {boolean} * @memberof MediaRootPartialUpdate */ needsRescan?: boolean; /** * * @type {string} * @memberof MediaRootPartialUpdate */ viewMode?: string; /** * * @type {string} * @memberof MediaRootPartialUpdate */ viewStyle?: string; /** * * @type {string} * @memberof MediaRootPartialUpdate */ viewDefaultTab?: string; /** * * @type {boolean} * @memberof MediaRootPartialUpdate */ showTags?: boolean; /** * * @type {boolean} * @memberof MediaRootPartialUpdate */ showComments?: boolean; /** * * @type {boolean} * @memberof MediaRootPartialUpdate */ showLocations?: boolean; /** * * @type {boolean} * @memberof MediaRootPartialUpdate */ showCustomFields?: boolean; /** * * @type {boolean} * @memberof MediaRootPartialUpdate */ showRatings?: boolean; /** * * @type {boolean} * @memberof MediaRootPartialUpdate */ showSubclips?: boolean; /** * * @type {boolean} * @memberof MediaRootPartialUpdate */ showMarkers?: boolean; /** * * @type {boolean} * @memberof MediaRootPartialUpdate */ showHistory?: boolean; /** * * @type {boolean} * @memberof MediaRootPartialUpdate */ showAiMetadata?: boolean; /** * * @type {boolean} * @memberof MediaRootPartialUpdate */ prefetchThumbnailStrips?: boolean; /** * * @type {string} * @memberof MediaRootPartialUpdate */ cover?: string | null; /** * * @type {string} * @memberof MediaRootPartialUpdate */ nameField?: string | null; /** * * @type {boolean} * @memberof MediaRootPartialUpdate */ shareComments?: boolean; /** * * @type {number} * @memberof MediaRootPartialUpdate */ shareLinkDuration?: number; /** * * @type {number} * @memberof MediaRootPartialUpdate */ defaultProxyProfile?: number | null; /** * * @type {number} * @memberof MediaRootPartialUpdate */ cloudProxyProfile?: number | null; /** * * @type {number} * @memberof MediaRootPartialUpdate */ veritoneConnection?: number | null; /** * * @type {number} * @memberof MediaRootPartialUpdate */ veritoneProxyProfile?: number | null; /** * * @type {number} * @memberof MediaRootPartialUpdate */ aiConnection?: number | null; /** * * @type {number} * @memberof MediaRootPartialUpdate */ aiProxyProfile?: number | null; /** * * @type {Array} * @memberof MediaRootPartialUpdate */ proxyProfiles?: Array; /** * * @type {Array} * @memberof MediaRootPartialUpdate */ tags?: Array; } export function MediaRootPartialUpdateFromJSON(json: any): MediaRootPartialUpdate { return MediaRootPartialUpdateFromJSONTyped(json, false); } export function MediaRootPartialUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): MediaRootPartialUpdate { if ((json === undefined) || (json === null)) { return json; } return { 'id': !exists(json, 'id') ? undefined : json['id'], 'customFields': !exists(json, 'custom_fields') ? undefined : ((json['custom_fields'] as Array).map(CustomFieldReferenceFromJSON)), 'workflow': !exists(json, 'workflow') ? undefined : json['workflow'], 'aiConfig': !exists(json, 'ai_config') ? undefined : json['ai_config'], 'veritoneConfig': !exists(json, 'veritone_config') ? undefined : json['veritone_config'], 'volume': !exists(json, 'volume') ? undefined : VolumeMiniReferenceFromJSON(json['volume']), 'jobs': !exists(json, 'jobs') ? undefined : ((json['jobs'] as Array).map(JobReferenceFromJSON)), 'name': !exists(json, 'name') ? undefined : json['name'], 'path': !exists(json, 'path') ? undefined : json['path'], 'needsRescan': !exists(json, 'needs_rescan') ? undefined : json['needs_rescan'], 'viewMode': !exists(json, 'view_mode') ? undefined : json['view_mode'], 'viewStyle': !exists(json, 'view_style') ? undefined : json['view_style'], 'viewDefaultTab': !exists(json, 'view_default_tab') ? undefined : json['view_default_tab'], 'showTags': !exists(json, 'show_tags') ? undefined : json['show_tags'], 'showComments': !exists(json, 'show_comments') ? undefined : json['show_comments'], 'showLocations': !exists(json, 'show_locations') ? undefined : json['show_locations'], 'showCustomFields': !exists(json, 'show_custom_fields') ? undefined : json['show_custom_fields'], 'showRatings': !exists(json, 'show_ratings') ? undefined : json['show_ratings'], 'showSubclips': !exists(json, 'show_subclips') ? undefined : json['show_subclips'], 'showMarkers': !exists(json, 'show_markers') ? undefined : json['show_markers'], 'showHistory': !exists(json, 'show_history') ? undefined : json['show_history'], 'showAiMetadata': !exists(json, 'show_ai_metadata') ? undefined : json['show_ai_metadata'], 'prefetchThumbnailStrips': !exists(json, 'prefetch_thumbnail_strips') ? undefined : json['prefetch_thumbnail_strips'], 'cover': !exists(json, 'cover') ? undefined : json['cover'], 'nameField': !exists(json, 'name_field') ? undefined : json['name_field'], 'shareComments': !exists(json, 'share_comments') ? undefined : json['share_comments'], 'shareLinkDuration': !exists(json, 'share_link_duration') ? undefined : json['share_link_duration'], 'defaultProxyProfile': !exists(json, 'default_proxy_profile') ? undefined : json['default_proxy_profile'], 'cloudProxyProfile': !exists(json, 'cloud_proxy_profile') ? undefined : json['cloud_proxy_profile'], 'veritoneConnection': !exists(json, 'veritone_connection') ? undefined : json['veritone_connection'], 'veritoneProxyProfile': !exists(json, 'veritone_proxy_profile') ? undefined : json['veritone_proxy_profile'], 'aiConnection': !exists(json, 'ai_connection') ? undefined : json['ai_connection'], 'aiProxyProfile': !exists(json, 'ai_proxy_profile') ? undefined : json['ai_proxy_profile'], 'proxyProfiles': !exists(json, 'proxy_profiles') ? undefined : json['proxy_profiles'], 'tags': !exists(json, 'tags') ? undefined : json['tags'], }; } export function MediaRootPartialUpdateToJSON(value?: MediaRootPartialUpdate | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'id': value.id, 'custom_fields': value.customFields === undefined ? undefined : ((value.customFields as Array).map(CustomFieldReferenceToJSON)), 'workflow': value.workflow, 'ai_config': value.aiConfig, 'veritone_config': value.veritoneConfig, 'volume': VolumeMiniReferenceToJSON(value.volume), 'jobs': value.jobs === undefined ? undefined : ((value.jobs as Array).map(JobReferenceToJSON)), 'name': value.name, 'needs_rescan': value.needsRescan, 'view_mode': value.viewMode, 'view_style': value.viewStyle, 'view_default_tab': value.viewDefaultTab, 'show_tags': value.showTags, 'show_comments': value.showComments, 'show_locations': value.showLocations, 'show_custom_fields': value.showCustomFields, 'show_ratings': value.showRatings, 'show_subclips': value.showSubclips, 'show_markers': value.showMarkers, 'show_history': value.showHistory, 'show_ai_metadata': value.showAiMetadata, 'prefetch_thumbnail_strips': value.prefetchThumbnailStrips, 'cover': value.cover, 'name_field': value.nameField, 'share_comments': value.shareComments, 'share_link_duration': value.shareLinkDuration, 'default_proxy_profile': value.defaultProxyProfile, 'cloud_proxy_profile': value.cloudProxyProfile, 'veritone_connection': value.veritoneConnection, 'veritone_proxy_profile': value.veritoneProxyProfile, 'ai_connection': value.aiConnection, 'ai_proxy_profile': value.aiProxyProfile, 'proxy_profiles': value.proxyProfiles, 'tags': value.tags, }; }