# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.

# typed: true
# frozen_string_literal: true

require 'sorbet-runtime'
require 'faraday'

module OpenApiSDK
  module Operations

    class GetMetadataRequest < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig

      # the id of the library item to return the children of.
      field :rating_key, Float, { 'path_param': { 'field_name': 'ratingKey', 'style': 'simple', 'explode': false } }


      sig { params(rating_key: Float).void }
      def initialize(rating_key: nil)
        @rating_key = rating_key
      end
    end


    class GetMetadataErrors < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig


      field :code, T.nilable(Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('code') } }

      field :message, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('message') } }

      field :status, T.nilable(Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('status') } }


      sig { params(code: T.nilable(Float), message: T.nilable(String), status: T.nilable(Float)).void }
      def initialize(code: nil, message: nil, status: nil)
        @code = code
        @message = message
        @status = status
      end
    end

    # Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
    class GetMetadataLibraryResponseBody < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig


      field :errors, T.nilable(T::Array[Operations::GetMetadataErrors]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('errors') } }


      sig { params(errors: T.nilable(T::Array[Operations::GetMetadataErrors])).void }
      def initialize(errors: nil)
        @errors = errors
      end
    end


    class Stream < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig


      field :bit_depth, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('bitDepth') } }

      field :bitrate, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('bitrate') } }

      field :channels, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('channels') } }

      field :chroma_location, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('chromaLocation') } }

      field :chroma_subsampling, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('chromaSubsampling') } }

      field :codec, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('codec') } }

      field :coded_height, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('codedHeight') } }

      field :coded_width, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('codedWidth') } }

      field :color_primaries, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('colorPrimaries') } }

      field :color_range, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('colorRange') } }

      field :color_space, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('colorSpace') } }

      field :color_trc, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('colorTrc') } }

      field :default, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('default') } }

      field :display_title, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('displayTitle') } }

      field :extended_display_title, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('extendedDisplayTitle') } }

      field :frame_rate, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('frameRate') } }

      field :has_scaling_matrix, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('hasScalingMatrix') } }

      field :height, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('height') } }

      field :id, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }

      field :index, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('index') } }

      field :language, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('language') } }

      field :language_code, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('languageCode') } }

      field :language_tag, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('languageTag') } }

      field :level, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('level') } }

      field :profile, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('profile') } }

      field :ref_frames, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('refFrames') } }

      field :sampling_rate, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('samplingRate') } }

      field :scan_type, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('scanType') } }

      field :selected, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('selected') } }

      field :stream_identifier, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('streamIdentifier') } }

      field :stream_type, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('streamType') } }

      field :width, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('width') } }


      sig { params(bit_depth: T.nilable(Integer), bitrate: T.nilable(Integer), channels: T.nilable(Integer), chroma_location: T.nilable(String), chroma_subsampling: T.nilable(String), codec: T.nilable(String), coded_height: T.nilable(Integer), coded_width: T.nilable(Integer), color_primaries: T.nilable(String), color_range: T.nilable(String), color_space: T.nilable(String), color_trc: T.nilable(String), default: T.nilable(T::Boolean), display_title: T.nilable(String), extended_display_title: T.nilable(String), frame_rate: T.nilable(Integer), has_scaling_matrix: T.nilable(T::Boolean), height: T.nilable(Integer), id: T.nilable(Integer), index: T.nilable(Integer), language: T.nilable(String), language_code: T.nilable(String), language_tag: T.nilable(String), level: T.nilable(Integer), profile: T.nilable(String), ref_frames: T.nilable(Integer), sampling_rate: T.nilable(Integer), scan_type: T.nilable(String), selected: T.nilable(T::Boolean), stream_identifier: T.nilable(String), stream_type: T.nilable(Integer), width: T.nilable(Integer)).void }
      def initialize(bit_depth: nil, bitrate: nil, channels: nil, chroma_location: nil, chroma_subsampling: nil, codec: nil, coded_height: nil, coded_width: nil, color_primaries: nil, color_range: nil, color_space: nil, color_trc: nil, default: nil, display_title: nil, extended_display_title: nil, frame_rate: nil, has_scaling_matrix: nil, height: nil, id: nil, index: nil, language: nil, language_code: nil, language_tag: nil, level: nil, profile: nil, ref_frames: nil, sampling_rate: nil, scan_type: nil, selected: nil, stream_identifier: nil, stream_type: nil, width: nil)
        @bit_depth = bit_depth
        @bitrate = bitrate
        @channels = channels
        @chroma_location = chroma_location
        @chroma_subsampling = chroma_subsampling
        @codec = codec
        @coded_height = coded_height
        @coded_width = coded_width
        @color_primaries = color_primaries
        @color_range = color_range
        @color_space = color_space
        @color_trc = color_trc
        @default = default
        @display_title = display_title
        @extended_display_title = extended_display_title
        @frame_rate = frame_rate
        @has_scaling_matrix = has_scaling_matrix
        @height = height
        @id = id
        @index = index
        @language = language
        @language_code = language_code
        @language_tag = language_tag
        @level = level
        @profile = profile
        @ref_frames = ref_frames
        @sampling_rate = sampling_rate
        @scan_type = scan_type
        @selected = selected
        @stream_identifier = stream_identifier
        @stream_type = stream_type
        @width = width
      end
    end


    class GetMetadataPart < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig


      field :audio_profile, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('audioProfile') } }

      field :container, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('container') } }

      field :duration, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('duration') } }

      field :file, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('file') } }

      field :has64bit_offsets, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('has64bitOffsets') } }

      field :id, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }

      field :key, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }

      field :optimized_for_streaming, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('optimizedForStreaming') } }

      field :size, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('size') } }

      field :stream, T.nilable(T::Array[Operations::Stream]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('Stream') } }

      field :video_profile, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('videoProfile') } }


      sig { params(audio_profile: T.nilable(String), container: T.nilable(String), duration: T.nilable(Integer), file: T.nilable(String), has64bit_offsets: T.nilable(T::Boolean), id: T.nilable(Integer), key: T.nilable(String), optimized_for_streaming: T.nilable(T::Boolean), size: T.nilable(Integer), stream: T.nilable(T::Array[Operations::Stream]), video_profile: T.nilable(String)).void }
      def initialize(audio_profile: nil, container: nil, duration: nil, file: nil, has64bit_offsets: nil, id: nil, key: nil, optimized_for_streaming: nil, size: nil, stream: nil, video_profile: nil)
        @audio_profile = audio_profile
        @container = container
        @duration = duration
        @file = file
        @has64bit_offsets = has64bit_offsets
        @id = id
        @key = key
        @optimized_for_streaming = optimized_for_streaming
        @size = size
        @stream = stream
        @video_profile = video_profile
      end
    end


    class GetMetadataMedia < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig


      field :aspect_ratio, T.nilable(Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('aspectRatio') } }

      field :audio_channels, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('audioChannels') } }

      field :audio_codec, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('audioCodec') } }

      field :audio_profile, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('audioProfile') } }

      field :bitrate, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('bitrate') } }

      field :container, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('container') } }

      field :duration, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('duration') } }

      field :has64bit_offsets, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('has64bitOffsets') } }

      field :height, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('height') } }

      field :id, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }

      field :optimized_for_streaming, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('optimizedForStreaming') } }

      field :part, T.nilable(T::Array[Operations::GetMetadataPart]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('Part') } }

      field :video_codec, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('videoCodec') } }

      field :video_frame_rate, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('videoFrameRate') } }

      field :video_profile, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('videoProfile') } }

      field :video_resolution, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('videoResolution') } }

      field :width, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('width') } }


      sig { params(aspect_ratio: T.nilable(Float), audio_channels: T.nilable(Integer), audio_codec: T.nilable(String), audio_profile: T.nilable(String), bitrate: T.nilable(Integer), container: T.nilable(String), duration: T.nilable(Integer), has64bit_offsets: T.nilable(T::Boolean), height: T.nilable(Integer), id: T.nilable(Integer), optimized_for_streaming: T.nilable(Integer), part: T.nilable(T::Array[Operations::GetMetadataPart]), video_codec: T.nilable(String), video_frame_rate: T.nilable(String), video_profile: T.nilable(String), video_resolution: T.nilable(String), width: T.nilable(Integer)).void }
      def initialize(aspect_ratio: nil, audio_channels: nil, audio_codec: nil, audio_profile: nil, bitrate: nil, container: nil, duration: nil, has64bit_offsets: nil, height: nil, id: nil, optimized_for_streaming: nil, part: nil, video_codec: nil, video_frame_rate: nil, video_profile: nil, video_resolution: nil, width: nil)
        @aspect_ratio = aspect_ratio
        @audio_channels = audio_channels
        @audio_codec = audio_codec
        @audio_profile = audio_profile
        @bitrate = bitrate
        @container = container
        @duration = duration
        @has64bit_offsets = has64bit_offsets
        @height = height
        @id = id
        @optimized_for_streaming = optimized_for_streaming
        @part = part
        @video_codec = video_codec
        @video_frame_rate = video_frame_rate
        @video_profile = video_profile
        @video_resolution = video_resolution
        @width = width
      end
    end


    class GetMetadataGenre < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig


      field :filter, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('filter') } }

      field :id, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }

      field :tag, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tag') } }


      sig { params(filter: T.nilable(String), id: T.nilable(Integer), tag: T.nilable(String)).void }
      def initialize(filter: nil, id: nil, tag: nil)
        @filter = filter
        @id = id
        @tag = tag
      end
    end


    class GetMetadataCountry < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig


      field :filter, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('filter') } }

      field :id, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }

      field :tag, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tag') } }


      sig { params(filter: T.nilable(String), id: T.nilable(Integer), tag: T.nilable(String)).void }
      def initialize(filter: nil, id: nil, tag: nil)
        @filter = filter
        @id = id
        @tag = tag
      end
    end


    class Guids < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig


      field :id, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }


      sig { params(id: T.nilable(String)).void }
      def initialize(id: nil)
        @id = id
      end
    end


    class Ratings < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig


      field :image, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }

      field :type, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('type') } }

      field :value, T.nilable(Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('value') } }


      sig { params(image: T.nilable(String), type: T.nilable(String), value: T.nilable(Float)).void }
      def initialize(image: nil, type: nil, value: nil)
        @image = image
        @type = type
        @value = value
      end
    end


    class GetMetadataDirector < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig


      field :filter, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('filter') } }

      field :id, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }

      field :tag, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tag') } }

      field :tag_key, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagKey') } }

      field :thumb, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('thumb') } }


      sig { params(filter: T.nilable(String), id: T.nilable(Integer), tag: T.nilable(String), tag_key: T.nilable(String), thumb: T.nilable(String)).void }
      def initialize(filter: nil, id: nil, tag: nil, tag_key: nil, thumb: nil)
        @filter = filter
        @id = id
        @tag = tag
        @tag_key = tag_key
        @thumb = thumb
      end
    end


    class GetMetadataWriter < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig


      field :filter, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('filter') } }

      field :id, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }

      field :tag, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tag') } }

      field :tag_key, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagKey') } }

      field :thumb, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('thumb') } }


      sig { params(filter: T.nilable(String), id: T.nilable(Integer), tag: T.nilable(String), tag_key: T.nilable(String), thumb: T.nilable(String)).void }
      def initialize(filter: nil, id: nil, tag: nil, tag_key: nil, thumb: nil)
        @filter = filter
        @id = id
        @tag = tag
        @tag_key = tag_key
        @thumb = thumb
      end
    end


    class GetMetadataRole < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig


      field :filter, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('filter') } }

      field :id, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }

      field :role, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('role') } }

      field :tag, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tag') } }

      field :tag_key, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagKey') } }

      field :thumb, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('thumb') } }


      sig { params(filter: T.nilable(String), id: T.nilable(Integer), role: T.nilable(String), tag: T.nilable(String), tag_key: T.nilable(String), thumb: T.nilable(String)).void }
      def initialize(filter: nil, id: nil, role: nil, tag: nil, tag_key: nil, thumb: nil)
        @filter = filter
        @id = id
        @role = role
        @tag = tag
        @tag_key = tag_key
        @thumb = thumb
      end
    end


    class Producer < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig


      field :filter, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('filter') } }

      field :id, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }

      field :tag, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tag') } }

      field :tag_key, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagKey') } }

      field :thumb, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('thumb') } }


      sig { params(filter: T.nilable(String), id: T.nilable(Integer), tag: T.nilable(String), tag_key: T.nilable(String), thumb: T.nilable(String)).void }
      def initialize(filter: nil, id: nil, tag: nil, tag_key: nil, thumb: nil)
        @filter = filter
        @id = id
        @tag = tag
        @tag_key = tag_key
        @thumb = thumb
      end
    end


    class GetMetadataMetadata < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig


      field :added_at, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('addedAt') } }

      field :art, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('art') } }

      field :audience_rating, T.nilable(Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('audienceRating') } }

      field :audience_rating_image, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('audienceRatingImage') } }

      field :content_rating, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('contentRating') } }

      field :country, T.nilable(T::Array[Operations::GetMetadataCountry]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('Country') } }

      field :director, T.nilable(T::Array[Operations::GetMetadataDirector]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('Director') } }

      field :duration, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('duration') } }

      field :genre, T.nilable(T::Array[Operations::GetMetadataGenre]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('Genre') } }

      field :guid, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('guid') } }

      field :guids, T.nilable(T::Array[Operations::Guids]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('Guid') } }

      field :has_premium_primary_extra, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('hasPremiumPrimaryExtra') } }

      field :key, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }

      field :library_section_id, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('librarySectionID') } }

      field :library_section_key, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('librarySectionKey') } }

      field :library_section_title, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('librarySectionTitle') } }

      field :media, T.nilable(T::Array[Operations::GetMetadataMedia]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('Media') } }

      field :originally_available_at, T.nilable(Date), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('originallyAvailableAt'), 'decoder': Utils.date_from_iso_format(true) } }

      field :producer, T.nilable(T::Array[Operations::Producer]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('Producer') } }

      field :rating, T.nilable(Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rating') } }

      field :rating_image, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ratingImage') } }

      field :rating_key, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ratingKey') } }

      field :ratings, T.nilable(T::Array[Operations::Ratings]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('Rating') } }

      field :role, T.nilable(T::Array[Operations::GetMetadataRole]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('Role') } }

      field :studio, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('studio') } }

      field :summary, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('summary') } }

      field :tagline, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagline') } }

      field :thumb, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('thumb') } }

      field :title, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('title') } }

      field :type, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('type') } }

      field :updated_at, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('updatedAt') } }

      field :writer, T.nilable(T::Array[Operations::GetMetadataWriter]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('Writer') } }

      field :year, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('year') } }


      sig { params(added_at: T.nilable(Integer), art: T.nilable(String), audience_rating: T.nilable(Float), audience_rating_image: T.nilable(String), content_rating: T.nilable(String), country: T.nilable(T::Array[Operations::GetMetadataCountry]), director: T.nilable(T::Array[Operations::GetMetadataDirector]), duration: T.nilable(Integer), genre: T.nilable(T::Array[Operations::GetMetadataGenre]), guid: T.nilable(String), guids: T.nilable(T::Array[Operations::Guids]), has_premium_primary_extra: T.nilable(String), key: T.nilable(String), library_section_id: T.nilable(Integer), library_section_key: T.nilable(String), library_section_title: T.nilable(String), media: T.nilable(T::Array[Operations::GetMetadataMedia]), originally_available_at: T.nilable(Date), producer: T.nilable(T::Array[Operations::Producer]), rating: T.nilable(Float), rating_image: T.nilable(String), rating_key: T.nilable(String), ratings: T.nilable(T::Array[Operations::Ratings]), role: T.nilable(T::Array[Operations::GetMetadataRole]), studio: T.nilable(String), summary: T.nilable(String), tagline: T.nilable(String), thumb: T.nilable(String), title: T.nilable(String), type: T.nilable(String), updated_at: T.nilable(Integer), writer: T.nilable(T::Array[Operations::GetMetadataWriter]), year: T.nilable(Integer)).void }
      def initialize(added_at: nil, art: nil, audience_rating: nil, audience_rating_image: nil, content_rating: nil, country: nil, director: nil, duration: nil, genre: nil, guid: nil, guids: nil, has_premium_primary_extra: nil, key: nil, library_section_id: nil, library_section_key: nil, library_section_title: nil, media: nil, originally_available_at: nil, producer: nil, rating: nil, rating_image: nil, rating_key: nil, ratings: nil, role: nil, studio: nil, summary: nil, tagline: nil, thumb: nil, title: nil, type: nil, updated_at: nil, writer: nil, year: nil)
        @added_at = added_at
        @art = art
        @audience_rating = audience_rating
        @audience_rating_image = audience_rating_image
        @content_rating = content_rating
        @country = country
        @director = director
        @duration = duration
        @genre = genre
        @guid = guid
        @guids = guids
        @has_premium_primary_extra = has_premium_primary_extra
        @key = key
        @library_section_id = library_section_id
        @library_section_key = library_section_key
        @library_section_title = library_section_title
        @media = media
        @originally_available_at = originally_available_at
        @producer = producer
        @rating = rating
        @rating_image = rating_image
        @rating_key = rating_key
        @ratings = ratings
        @role = role
        @studio = studio
        @summary = summary
        @tagline = tagline
        @thumb = thumb
        @title = title
        @type = type
        @updated_at = updated_at
        @writer = writer
        @year = year
      end
    end


    class GetMetadataMediaContainer < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig


      field :allow_sync, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('allowSync') } }

      field :identifier, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('identifier') } }

      field :library_section_id, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('librarySectionID') } }

      field :library_section_title, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('librarySectionTitle') } }

      field :library_section_uuid, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('librarySectionUUID') } }

      field :media_tag_prefix, T.nilable(String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('mediaTagPrefix') } }

      field :media_tag_version, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('mediaTagVersion') } }

      field :metadata, T.nilable(T::Array[Operations::GetMetadataMetadata]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('Metadata') } }

      field :size, T.nilable(Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('size') } }


      sig { params(allow_sync: T.nilable(T::Boolean), identifier: T.nilable(String), library_section_id: T.nilable(Integer), library_section_title: T.nilable(String), library_section_uuid: T.nilable(String), media_tag_prefix: T.nilable(String), media_tag_version: T.nilable(Integer), metadata: T.nilable(T::Array[Operations::GetMetadataMetadata]), size: T.nilable(Integer)).void }
      def initialize(allow_sync: nil, identifier: nil, library_section_id: nil, library_section_title: nil, library_section_uuid: nil, media_tag_prefix: nil, media_tag_version: nil, metadata: nil, size: nil)
        @allow_sync = allow_sync
        @identifier = identifier
        @library_section_id = library_section_id
        @library_section_title = library_section_title
        @library_section_uuid = library_section_uuid
        @media_tag_prefix = media_tag_prefix
        @media_tag_version = media_tag_version
        @metadata = metadata
        @size = size
      end
    end

    # The metadata of the library item.
    class GetMetadataResponseBody < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig


      field :media_container, T.nilable(Operations::GetMetadataMediaContainer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('MediaContainer') } }


      sig { params(media_container: T.nilable(Operations::GetMetadataMediaContainer)).void }
      def initialize(media_container: nil)
        @media_container = media_container
      end
    end


    class GetMetadataResponse < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig

      # HTTP response content type for this operation
      field :content_type, String
      # Raw HTTP response; suitable for custom response parsing
      field :raw_response, Faraday::Response
      # HTTP response status code for this operation
      field :status_code, Integer
      # The metadata of the library item.
      field :two_hundred_application_json_object, T.nilable(Operations::GetMetadataResponseBody)
      # Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
      field :four_hundred_and_one_application_json_object, T.nilable(Operations::GetMetadataLibraryResponseBody)


      sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, two_hundred_application_json_object: T.nilable(Operations::GetMetadataResponseBody), four_hundred_and_one_application_json_object: T.nilable(Operations::GetMetadataLibraryResponseBody)).void }
      def initialize(content_type: nil, raw_response: nil, status_code: nil, two_hundred_application_json_object: nil, four_hundred_and_one_application_json_object: nil)
        @content_type = content_type
        @raw_response = raw_response
        @status_code = status_code
        @two_hundred_application_json_object = two_hundred_application_json_object
        @four_hundred_and_one_application_json_object = four_hundred_and_one_application_json_object
      end
    end
  end
end
