text: # coding: utf-8
  
  """
      Emby Server API
  
      Explore the Emby Server API  # noqa: E501
  
      OpenAPI spec version: 4.1.1.0
      
      Generated by: https://github.com/swagger-api/swagger-codegen.git
  """
  
  from __future__ import absolute_import
  
  import re  # noqa: F401
  
  # python 2 and python 3 compatibility library
  import six
  
  from embyapi.api_client import ApiClient
  
  
  class AudioServiceApi(object):
      """NOTE: This class is auto generated by the swagger code generator program.
  
      Do not edit the class manually.
      Ref: https://github.com/swagger-api/swagger-codegen
      """
  
      def __init__(self, api_client=None):
          if api_client is None:
              api_client = ApiClient()
          self.api_client = api_client
  
      def get_audio_by_id_by_container(self, id, container, **kwargs):  # noqa: E501
          """Gets an audio stream  # noqa: E501
  
          No authentication required  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.get_audio_by_id_by_container(id, container, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str id: Item Id (required)
          :param str container: Container (required)
          :param str device_profile_id: Optional. The dlna device profile id to utilize.
          :param str device_id: The device id of the client requesting. Used to stop encoding processes when needed.
          :param str audio_codec: Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma.
          :param bool enable_auto_stream_copy: Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
          :param int audio_sample_rate: Optional. Specify a specific audio sample rate, e.g. 44100
          :param int audio_bit_rate: Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
          :param int audio_channels: Optional. Specify a specific number of audio channels to encode to, e.g. 2
          :param int max_audio_channels: Optional. Specify a maximum number of audio channels to encode to, e.g. 2
          :param bool static: Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false
          :param str profile: Optional. Specify a specific h264 profile, e.g. main, baseline, high.
          :param str level: Optional. Specify a level for the h264 profile, e.g. 3, 3.1.
          :param float framerate: Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
          :param float max_framerate: Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
          :param bool copy_timestamps: Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
          :param int start_time_ticks: Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms
          :param int width: Optional. The fixed horizontal resolution of the encoded video.
          :param int height: Optional. The fixed vertical resolution of the encoded video.
          :param int max_width: Optional. The maximum horizontal resolution of the encoded video.
          :param int max_height: Optional. The maximum vertical resolution of the encoded video.
          :param int video_bit_rate: Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
          :param int subtitle_stream_index: Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
          :param str subtitle_method: Optional. Specify the subtitle delivery method.
          :param int max_ref_frames: Optional.
          :param int max_video_bit_depth: Optional.
          :param str video_codec: Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h264, mpeg4, theora, vpx, wmv.
          :param int audio_stream_index: Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
          :param int video_stream_index: Optional. The index of the video stream to use. If omitted the first video stream will be used.
          :return: None
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.get_audio_by_id_by_container_with_http_info(id, container, **kwargs)  # noqa: E501
          else:
              (data) = self.get_audio_by_id_by_container_with_http_info(id, container, **kwargs)  # noqa: E501
              return data
  
      def get_audio_by_id_by_container_with_http_info(self, id, container, **kwargs):  # noqa: E501
          """Gets an audio stream  # noqa: E501
  
          No authentication required  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.get_audio_by_id_by_container_with_http_info(id, container, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str id: Item Id (required)
          :param str container: Container (required)
          :param str device_profile_id: Optional. The dlna device profile id to utilize.
          :param str device_id: The device id of the client requesting. Used to stop encoding processes when needed.
          :param str audio_codec: Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma.
          :param bool enable_auto_stream_copy: Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
          :param int audio_sample_rate: Optional. Specify a specific audio sample rate, e.g. 44100
          :param int audio_bit_rate: Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
          :param int audio_channels: Optional. Specify a specific number of audio channels to encode to, e.g. 2
          :param int max_audio_channels: Optional. Specify a maximum number of audio channels to encode to, e.g. 2
          :param bool static: Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false
          :param str profile: Optional. Specify a specific h264 profile, e.g. main, baseline, high.
          :param str level: Optional. Specify a level for the h264 profile, e.g. 3, 3.1.
          :param float framerate: Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
          :param float max_framerate: Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
          :param bool copy_timestamps: Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
          :param int start_time_ticks: Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms
          :param int width: Optional. The fixed horizontal resolution of the encoded video.
          :param int height: Optional. The fixed vertical resolution of the encoded video.
          :param int max_width: Optional. The maximum horizontal resolution of the encoded video.
          :param int max_height: Optional. The maximum vertical resolution of the encoded video.
          :param int video_bit_rate: Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
          :param int subtitle_stream_index: Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
          :param str subtitle_method: Optional. Specify the subtitle delivery method.
          :param int max_ref_frames: Optional.
          :param int max_video_bit_depth: Optional.
          :param str video_codec: Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h264, mpeg4, theora, vpx, wmv.
          :param int audio_stream_index: Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
          :param int video_stream_index: Optional. The index of the video stream to use. If omitted the first video stream will be used.
          :return: None
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          all_params = ['id', 'container', 'device_profile_id', 'device_id', 'audio_codec', 'enable_auto_stream_copy', 'audio_sample_rate', 'audio_bit_rate', 'audio_channels', 'max_audio_channels', 'static', 'profile', 'level', 'framerate', 'max_framerate', 'copy_timestamps', 'start_time_ticks', 'width', 'height', 'max_width', 'max_height', 'video_bit_rate', 'subtitle_stream_index', 'subtitle_method', 'max_ref_frames', 'max_video_bit_depth', 'video_codec', 'audio_stream_index', 'video_stream_index']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          params = locals()
          for key, val in six.iteritems(params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method get_audio_by_id_by_container" % key
                  )
              params[key] = val
          del params['kwargs']
          # verify the required parameter 'id' is set
          if ('id' not in params or
                  params['id'] is None):
              raise ValueError("Missing the required parameter `id` when calling `get_audio_by_id_by_container`")  # noqa: E501
          # verify the required parameter 'container' is set
          if ('container' not in params or
                  params['container'] is None):
              raise ValueError("Missing the required parameter `container` when calling `get_audio_by_id_by_container`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'id' in params:
              path_params['Id'] = params['id']  # noqa: E501
          if 'container' in params:
              path_params['Container'] = params['container']  # noqa: E501
  
          query_params = []
          if 'device_profile_id' in params:
              query_params.append(('DeviceProfileId', params['device_profile_id']))  # noqa: E501
          if 'device_id' in params:
              query_params.append(('DeviceId', params['device_id']))  # noqa: E501
          if 'audio_codec' in params:
              query_params.append(('AudioCodec', params['audio_codec']))  # noqa: E501
          if 'enable_auto_stream_copy' in params:
              query_params.append(('EnableAutoStreamCopy', params['enable_auto_stream_copy']))  # noqa: E501
          if 'audio_sample_rate' in params:
              query_params.append(('AudioSampleRate', params['audio_sample_rate']))  # noqa: E501
          if 'audio_bit_rate' in params:
              query_params.append(('AudioBitRate', params['audio_bit_rate']))  # noqa: E501
          if 'audio_channels' in params:
              query_params.append(('AudioChannels', params['audio_channels']))  # noqa: E501
          if 'max_audio_channels' in params:
              query_params.append(('MaxAudioChannels', params['max_audio_channels']))  # noqa: E501
          if 'static' in params:
              query_params.append(('Static', params['static']))  # noqa: E501
          if 'profile' in params:
              query_params.append(('Profile', params['profile']))  # noqa: E501
          if 'level' in params:
              query_params.append(('Level', params['level']))  # noqa: E501
          if 'framerate' in params:
              query_params.append(('Framerate', params['framerate']))  # noqa: E501
          if 'max_framerate' in params:
              query_params.append(('MaxFramerate', params['max_framerate']))  # noqa: E501
          if 'copy_timestamps' in params:
              query_params.append(('CopyTimestamps', params['copy_timestamps']))  # noqa: E501
          if 'start_time_ticks' in params:
              query_params.append(('StartTimeTicks', params['start_time_ticks']))  # noqa: E501
          if 'width' in params:
              query_params.append(('Width', params['width']))  # noqa: E501
          if 'height' in params:
              query_params.append(('Height', params['height']))  # noqa: E501
          if 'max_width' in params:
              query_params.append(('MaxWidth', params['max_width']))  # noqa: E501
          if 'max_height' in params:
              query_params.append(('MaxHeight', params['max_height']))  # noqa: E501
          if 'video_bit_rate' in params:
              query_params.append(('VideoBitRate', params['video_bit_rate']))  # noqa: E501
          if 'subtitle_stream_index' in params:
              query_params.append(('SubtitleStreamIndex', params['subtitle_stream_index']))  # noqa: E501
          if 'subtitle_method' in params:
              query_params.append(('SubtitleMethod', params['subtitle_method']))  # noqa: E501
          if 'max_ref_frames' in params:
              query_params.append(('MaxRefFrames', params['max_ref_frames']))  # noqa: E501
          if 'max_video_bit_depth' in params:
              query_params.append(('MaxVideoBitDepth', params['max_video_bit_depth']))  # noqa: E501
          if 'video_codec' in params:
              query_params.append(('VideoCodec', params['video_codec']))  # noqa: E501
          if 'audio_stream_index' in params:
              query_params.append(('AudioStreamIndex', params['audio_stream_index']))  # noqa: E501
          if 'video_stream_index' in params:
              query_params.append(('VideoStreamIndex', params['video_stream_index']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # Authentication setting
          auth_settings = []  # noqa: E501
  
          return self.api_client.call_api(
              '/Audio/{Id}/stream.{Container}', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type=None,  # noqa: E501
              auth_settings=auth_settings,
              async_req=params.get('async_req'),
              _return_http_data_only=params.get('_return_http_data_only'),
              _preload_content=params.get('_preload_content', True),
              _request_timeout=params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def get_audio_by_id_stream(self, id, container, **kwargs):  # noqa: E501
          """Gets an audio stream  # noqa: E501
  
          No authentication required  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.get_audio_by_id_stream(id, container, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str id: Item Id (required)
          :param str container: Container (required)
          :param str device_profile_id: Optional. The dlna device profile id to utilize.
          :param str device_id: The device id of the client requesting. Used to stop encoding processes when needed.
          :param str audio_codec: Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma.
          :param bool enable_auto_stream_copy: Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
          :param int audio_sample_rate: Optional. Specify a specific audio sample rate, e.g. 44100
          :param int audio_bit_rate: Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
          :param int audio_channels: Optional. Specify a specific number of audio channels to encode to, e.g. 2
          :param int max_audio_channels: Optional. Specify a maximum number of audio channels to encode to, e.g. 2
          :param bool static: Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false
          :param str profile: Optional. Specify a specific h264 profile, e.g. main, baseline, high.
          :param str level: Optional. Specify a level for the h264 profile, e.g. 3, 3.1.
          :param float framerate: Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
          :param float max_framerate: Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
          :param bool copy_timestamps: Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
          :param int start_time_ticks: Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms
          :param int width: Optional. The fixed horizontal resolution of the encoded video.
          :param int height: Optional. The fixed vertical resolution of the encoded video.
          :param int max_width: Optional. The maximum horizontal resolution of the encoded video.
          :param int max_height: Optional. The maximum vertical resolution of the encoded video.
          :param int video_bit_rate: Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
          :param int subtitle_stream_index: Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
          :param str subtitle_method: Optional. Specify the subtitle delivery method.
          :param int max_ref_frames: Optional.
          :param int max_video_bit_depth: Optional.
          :param str video_codec: Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h264, mpeg4, theora, vpx, wmv.
          :param int audio_stream_index: Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
          :param int video_stream_index: Optional. The index of the video stream to use. If omitted the first video stream will be used.
          :return: None
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.get_audio_by_id_stream_with_http_info(id, container, **kwargs)  # noqa: E501
          else:
              (data) = self.get_audio_by_id_stream_with_http_info(id, container, **kwargs)  # noqa: E501
              return data
  
      def get_audio_by_id_stream_with_http_info(self, id, container, **kwargs):  # noqa: E501
          """Gets an audio stream  # noqa: E501
  
          No authentication required  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.get_audio_by_id_stream_with_http_info(id, container, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str id: Item Id (required)
          :param str container: Container (required)
          :param str device_profile_id: Optional. The dlna device profile id to utilize.
          :param str device_id: The device id of the client requesting. Used to stop encoding processes when needed.
          :param str audio_codec: Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma.
          :param bool enable_auto_stream_copy: Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
          :param int audio_sample_rate: Optional. Specify a specific audio sample rate, e.g. 44100
          :param int audio_bit_rate: Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
          :param int audio_channels: Optional. Specify a specific number of audio channels to encode to, e.g. 2
          :param int max_audio_channels: Optional. Specify a maximum number of audio channels to encode to, e.g. 2
          :param bool static: Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false
          :param str profile: Optional. Specify a specific h264 profile, e.g. main, baseline, high.
          :param str level: Optional. Specify a level for the h264 profile, e.g. 3, 3.1.
          :param float framerate: Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
          :param float max_framerate: Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
          :param bool copy_timestamps: Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
          :param int start_time_ticks: Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms
          :param int width: Optional. The fixed horizontal resolution of the encoded video.
          :param int height: Optional. The fixed vertical resolution of the encoded video.
          :param int max_width: Optional. The maximum horizontal resolution of the encoded video.
          :param int max_height: Optional. The maximum vertical resolution of the encoded video.
          :param int video_bit_rate: Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
          :param int subtitle_stream_index: Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
          :param str subtitle_method: Optional. Specify the subtitle delivery method.
          :param int max_ref_frames: Optional.
          :param int max_video_bit_depth: Optional.
          :param str video_codec: Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h264, mpeg4, theora, vpx, wmv.
          :param int audio_stream_index: Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
          :param int video_stream_index: Optional. The index of the video stream to use. If omitted the first video stream will be used.
          :return: None
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          all_params = ['id', 'container', 'device_profile_id', 'device_id', 'audio_codec', 'enable_auto_stream_copy', 'audio_sample_rate', 'audio_bit_rate', 'audio_channels', 'max_audio_channels', 'static', 'profile', 'level', 'framerate', 'max_framerate', 'copy_timestamps', 'start_time_ticks', 'width', 'height', 'max_width', 'max_height', 'video_bit_rate', 'subtitle_stream_index', 'subtitle_method', 'max_ref_frames', 'max_video_bit_depth', 'video_codec', 'audio_stream_index', 'video_stream_index']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          params = locals()
          for key, val in six.iteritems(params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method get_audio_by_id_stream" % key
                  )
              params[key] = val
          del params['kwargs']
          # verify the required parameter 'id' is set
          if ('id' not in params or
                  params['id'] is None):
              raise ValueError("Missing the required parameter `id` when calling `get_audio_by_id_stream`")  # noqa: E501
          # verify the required parameter 'container' is set
          if ('container' not in params or
                  params['container'] is None):
              raise ValueError("Missing the required parameter `container` when calling `get_audio_by_id_stream`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'id' in params:
              path_params['Id'] = params['id']  # noqa: E501
  
          query_params = []
          if 'device_profile_id' in params:
              query_params.append(('DeviceProfileId', params['device_profile_id']))  # noqa: E501
          if 'device_id' in params:
              query_params.append(('DeviceId', params['device_id']))  # noqa: E501
          if 'container' in params:
              query_params.append(('Container', params['container']))  # noqa: E501
          if 'audio_codec' in params:
              query_params.append(('AudioCodec', params['audio_codec']))  # noqa: E501
          if 'enable_auto_stream_copy' in params:
              query_params.append(('EnableAutoStreamCopy', params['enable_auto_stream_copy']))  # noqa: E501
          if 'audio_sample_rate' in params:
              query_params.append(('AudioSampleRate', params['audio_sample_rate']))  # noqa: E501
          if 'audio_bit_rate' in params:
              query_params.append(('AudioBitRate', params['audio_bit_rate']))  # noqa: E501
          if 'audio_channels' in params:
              query_params.append(('AudioChannels', params['audio_channels']))  # noqa: E501
          if 'max_audio_channels' in params:
              query_params.append(('MaxAudioChannels', params['max_audio_channels']))  # noqa: E501
          if 'static' in params:
              query_params.append(('Static', params['static']))  # noqa: E501
          if 'profile' in params:
              query_params.append(('Profile', params['profile']))  # noqa: E501
          if 'level' in params:
              query_params.append(('Level', params['level']))  # noqa: E501
          if 'framerate' in params:
              query_params.append(('Framerate', params['framerate']))  # noqa: E501
          if 'max_framerate' in params:
              query_params.append(('MaxFramerate', params['max_framerate']))  # noqa: E501
          if 'copy_timestamps' in params:
              query_params.append(('CopyTimestamps', params['copy_timestamps']))  # noqa: E501
          if 'start_time_ticks' in params:
              query_params.append(('StartTimeTicks', params['start_time_ticks']))  # noqa: E501
          if 'width' in params:
              query_params.append(('Width', params['width']))  # noqa: E501
          if 'height' in params:
              query_params.append(('Height', params['height']))  # noqa: E501
          if 'max_width' in params:
              query_params.append(('MaxWidth', params['max_width']))  # noqa: E501
          if 'max_height' in params:
              query_params.append(('MaxHeight', params['max_height']))  # noqa: E501
          if 'video_bit_rate' in params:
              query_params.append(('VideoBitRate', params['video_bit_rate']))  # noqa: E501
          if 'subtitle_stream_index' in params:
              query_params.append(('SubtitleStreamIndex', params['subtitle_stream_index']))  # noqa: E501
          if 'subtitle_method' in params:
              query_params.append(('SubtitleMethod', params['subtitle_method']))  # noqa: E501
          if 'max_ref_frames' in params:
              query_params.append(('MaxRefFrames', params['max_ref_frames']))  # noqa: E501
          if 'max_video_bit_depth' in params:
              query_params.append(('MaxVideoBitDepth', params['max_video_bit_depth']))  # noqa: E501
          if 'video_codec' in params:
              query_params.append(('VideoCodec', params['video_codec']))  # noqa: E501
          if 'audio_stream_index' in params:
              query_params.append(('AudioStreamIndex', params['audio_stream_index']))  # noqa: E501
          if 'video_stream_index' in params:
              query_params.append(('VideoStreamIndex', params['video_stream_index']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # Authentication setting
          auth_settings = []  # noqa: E501
  
          return self.api_client.call_api(
              '/Audio/{Id}/stream', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type=None,  # noqa: E501
              auth_settings=auth_settings,
              async_req=params.get('async_req'),
              _return_http_data_only=params.get('_return_http_data_only'),
              _preload_content=params.get('_preload_content', True),
              _request_timeout=params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def head_audio_by_id_by_container(self, id, container, **kwargs):  # noqa: E501
          """Gets an audio stream  # noqa: E501
  
          No authentication required  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.head_audio_by_id_by_container(id, container, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str id: Item Id (required)
          :param str container: Container (required)
          :param str device_profile_id: Optional. The dlna device profile id to utilize.
          :param str device_id: The device id of the client requesting. Used to stop encoding processes when needed.
          :param str audio_codec: Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma.
          :param bool enable_auto_stream_copy: Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
          :param int audio_sample_rate: Optional. Specify a specific audio sample rate, e.g. 44100
          :param int audio_bit_rate: Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
          :param int audio_channels: Optional. Specify a specific number of audio channels to encode to, e.g. 2
          :param int max_audio_channels: Optional. Specify a maximum number of audio channels to encode to, e.g. 2
          :param bool static: Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false
          :param str profile: Optional. Specify a specific h264 profile, e.g. main, baseline, high.
          :param str level: Optional. Specify a level for the h264 profile, e.g. 3, 3.1.
          :param float framerate: Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
          :param float max_framerate: Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
          :param bool copy_timestamps: Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
          :param int start_time_ticks: Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms
          :param int width: Optional. The fixed horizontal resolution of the encoded video.
          :param int height: Optional. The fixed vertical resolution of the encoded video.
          :param int max_width: Optional. The maximum horizontal resolution of the encoded video.
          :param int max_height: Optional. The maximum vertical resolution of the encoded video.
          :param int video_bit_rate: Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
          :param int subtitle_stream_index: Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
          :param str subtitle_method: Optional. Specify the subtitle delivery method.
          :param int max_ref_frames: Optional.
          :param int max_video_bit_depth: Optional.
          :param str video_codec: Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h264, mpeg4, theora, vpx, wmv.
          :param int audio_stream_index: Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
          :param int video_stream_index: Optional. The index of the video stream to use. If omitted the first video stream will be used.
          :return: None
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.head_audio_by_id_by_container_with_http_info(id, container, **kwargs)  # noqa: E501
          else:
              (data) = self.head_audio_by_id_by_container_with_http_info(id, container, **kwargs)  # noqa: E501
              return data
  
      def head_audio_by_id_by_container_with_http_info(self, id, container, **kwargs):  # noqa: E501
          """Gets an audio stream  # noqa: E501
  
          No authentication required  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.head_audio_by_id_by_container_with_http_info(id, container, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str id: Item Id (required)
          :param str container: Container (required)
          :param str device_profile_id: Optional. The dlna device profile id to utilize.
          :param str device_id: The device id of the client requesting. Used to stop encoding processes when needed.
          :param str audio_codec: Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma.
          :param bool enable_auto_stream_copy: Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
          :param int audio_sample_rate: Optional. Specify a specific audio sample rate, e.g. 44100
          :param int audio_bit_rate: Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
          :param int audio_channels: Optional. Specify a specific number of audio channels to encode to, e.g. 2
          :param int max_audio_channels: Optional. Specify a maximum number of audio channels to encode to, e.g. 2
          :param bool static: Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false
          :param str profile: Optional. Specify a specific h264 profile, e.g. main, baseline, high.
          :param str level: Optional. Specify a level for the h264 profile, e.g. 3, 3.1.
          :param float framerate: Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
          :param float max_framerate: Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
          :param bool copy_timestamps: Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
          :param int start_time_ticks: Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms
          :param int width: Optional. The fixed horizontal resolution of the encoded video.
          :param int height: Optional. The fixed vertical resolution of the encoded video.
          :param int max_width: Optional. The maximum horizontal resolution of the encoded video.
          :param int max_height: Optional. The maximum vertical resolution of the encoded video.
          :param int video_bit_rate: Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
          :param int subtitle_stream_index: Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
          :param str subtitle_method: Optional. Specify the subtitle delivery method.
          :param int max_ref_frames: Optional.
          :param int max_video_bit_depth: Optional.
          :param str video_codec: Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h264, mpeg4, theora, vpx, wmv.
          :param int audio_stream_index: Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
          :param int video_stream_index: Optional. The index of the video stream to use. If omitted the first video stream will be used.
          :return: None
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          all_params = ['id', 'container', 'device_profile_id', 'device_id', 'audio_codec', 'enable_auto_stream_copy', 'audio_sample_rate', 'audio_bit_rate', 'audio_channels', 'max_audio_channels', 'static', 'profile', 'level', 'framerate', 'max_framerate', 'copy_timestamps', 'start_time_ticks', 'width', 'height', 'max_width', 'max_height', 'video_bit_rate', 'subtitle_stream_index', 'subtitle_method', 'max_ref_frames', 'max_video_bit_depth', 'video_codec', 'audio_stream_index', 'video_stream_index']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          params = locals()
          for key, val in six.iteritems(params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method head_audio_by_id_by_container" % key
                  )
              params[key] = val
          del params['kwargs']
          # verify the required parameter 'id' is set
          if ('id' not in params or
                  params['id'] is None):
              raise ValueError("Missing the required parameter `id` when calling `head_audio_by_id_by_container`")  # noqa: E501
          # verify the required parameter 'container' is set
          if ('container' not in params or
                  params['container'] is None):
              raise ValueError("Missing the required parameter `container` when calling `head_audio_by_id_by_container`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'id' in params:
              path_params['Id'] = params['id']  # noqa: E501
          if 'container' in params:
              path_params['Container'] = params['container']  # noqa: E501
  
          query_params = []
          if 'device_profile_id' in params:
              query_params.append(('DeviceProfileId', params['device_profile_id']))  # noqa: E501
          if 'device_id' in params:
              query_params.append(('DeviceId', params['device_id']))  # noqa: E501
          if 'audio_codec' in params:
              query_params.append(('AudioCodec', params['audio_codec']))  # noqa: E501
          if 'enable_auto_stream_copy' in params:
              query_params.append(('EnableAutoStreamCopy', params['enable_auto_stream_copy']))  # noqa: E501
          if 'audio_sample_rate' in params:
              query_params.append(('AudioSampleRate', params['audio_sample_rate']))  # noqa: E501
          if 'audio_bit_rate' in params:
              query_params.append(('AudioBitRate', params['audio_bit_rate']))  # noqa: E501
          if 'audio_channels' in params:
              query_params.append(('AudioChannels', params['audio_channels']))  # noqa: E501
          if 'max_audio_channels' in params:
              query_params.append(('MaxAudioChannels', params['max_audio_channels']))  # noqa: E501
          if 'static' in params:
              query_params.append(('Static', params['static']))  # noqa: E501
          if 'profile' in params:
              query_params.append(('Profile', params['profile']))  # noqa: E501
          if 'level' in params:
              query_params.append(('Level', params['level']))  # noqa: E501
          if 'framerate' in params:
              query_params.append(('Framerate', params['framerate']))  # noqa: E501
          if 'max_framerate' in params:
              query_params.append(('MaxFramerate', params['max_framerate']))  # noqa: E501
          if 'copy_timestamps' in params:
              query_params.append(('CopyTimestamps', params['copy_timestamps']))  # noqa: E501
          if 'start_time_ticks' in params:
              query_params.append(('StartTimeTicks', params['start_time_ticks']))  # noqa: E501
          if 'width' in params:
              query_params.append(('Width', params['width']))  # noqa: E501
          if 'height' in params:
              query_params.append(('Height', params['height']))  # noqa: E501
          if 'max_width' in params:
              query_params.append(('MaxWidth', params['max_width']))  # noqa: E501
          if 'max_height' in params:
              query_params.append(('MaxHeight', params['max_height']))  # noqa: E501
          if 'video_bit_rate' in params:
              query_params.append(('VideoBitRate', params['video_bit_rate']))  # noqa: E501
          if 'subtitle_stream_index' in params:
              query_params.append(('SubtitleStreamIndex', params['subtitle_stream_index']))  # noqa: E501
          if 'subtitle_method' in params:
              query_params.append(('SubtitleMethod', params['subtitle_method']))  # noqa: E501
          if 'max_ref_frames' in params:
              query_params.append(('MaxRefFrames', params['max_ref_frames']))  # noqa: E501
          if 'max_video_bit_depth' in params:
              query_params.append(('MaxVideoBitDepth', params['max_video_bit_depth']))  # noqa: E501
          if 'video_codec' in params:
              query_params.append(('VideoCodec', params['video_codec']))  # noqa: E501
          if 'audio_stream_index' in params:
              query_params.append(('AudioStreamIndex', params['audio_stream_index']))  # noqa: E501
          if 'video_stream_index' in params:
              query_params.append(('VideoStreamIndex', params['video_stream_index']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # Authentication setting
          auth_settings = []  # noqa: E501
  
          return self.api_client.call_api(
              '/Audio/{Id}/stream.{Container}', 'HEAD',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type=None,  # noqa: E501
              auth_settings=auth_settings,
              async_req=params.get('async_req'),
              _return_http_data_only=params.get('_return_http_data_only'),
              _preload_content=params.get('_preload_content', True),
              _request_timeout=params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def head_audio_by_id_stream(self, id, container, **kwargs):  # noqa: E501
          """Gets an audio stream  # noqa: E501
  
          No authentication required  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.head_audio_by_id_stream(id, container, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str id: Item Id (required)
          :param str container: Container (required)
          :param str device_profile_id: Optional. The dlna device profile id to utilize.
          :param str device_id: The device id of the client requesting. Used to stop encoding processes when needed.
          :param str audio_codec: Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma.
          :param bool enable_auto_stream_copy: Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
          :param int audio_sample_rate: Optional. Specify a specific audio sample rate, e.g. 44100
          :param int audio_bit_rate: Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
          :param int audio_channels: Optional. Specify a specific number of audio channels to encode to, e.g. 2
          :param int max_audio_channels: Optional. Specify a maximum number of audio channels to encode to, e.g. 2
          :param bool static: Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false
          :param str profile: Optional. Specify a specific h264 profile, e.g. main, baseline, high.
          :param str level: Optional. Specify a level for the h264 profile, e.g. 3, 3.1.
          :param float framerate: Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
          :param float max_framerate: Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
          :param bool copy_timestamps: Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
          :param int start_time_ticks: Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms
          :param int width: Optional. The fixed horizontal resolution of the encoded video.
          :param int height: Optional. The fixed vertical resolution of the encoded video.
          :param int max_width: Optional. The maximum horizontal resolution of the encoded video.
          :param int max_height: Optional. The maximum vertical resolution of the encoded video.
          :param int video_bit_rate: Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
          :param int subtitle_stream_index: Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
          :param str subtitle_method: Optional. Specify the subtitle delivery method.
          :param int max_ref_frames: Optional.
          :param int max_video_bit_depth: Optional.
          :param str video_codec: Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h264, mpeg4, theora, vpx, wmv.
          :param int audio_stream_index: Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
          :param int video_stream_index: Optional. The index of the video stream to use. If omitted the first video stream will be used.
          :return: None
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.head_audio_by_id_stream_with_http_info(id, container, **kwargs)  # noqa: E501
          else:
              (data) = self.head_audio_by_id_stream_with_http_info(id, container, **kwargs)  # noqa: E501
              return data
  
      def head_audio_by_id_stream_with_http_info(self, id, container, **kwargs):  # noqa: E501
          """Gets an audio stream  # noqa: E501
  
          No authentication required  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.head_audio_by_id_stream_with_http_info(id, container, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str id: Item Id (required)
          :param str container: Container (required)
          :param str device_profile_id: Optional. The dlna device profile id to utilize.
          :param str device_id: The device id of the client requesting. Used to stop encoding processes when needed.
          :param str audio_codec: Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma.
          :param bool enable_auto_stream_copy: Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
          :param int audio_sample_rate: Optional. Specify a specific audio sample rate, e.g. 44100
          :param int audio_bit_rate: Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
          :param int audio_channels: Optional. Specify a specific number of audio channels to encode to, e.g. 2
          :param int max_audio_channels: Optional. Specify a maximum number of audio channels to encode to, e.g. 2
          :param bool static: Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false
          :param str profile: Optional. Specify a specific h264 profile, e.g. main, baseline, high.
          :param str level: Optional. Specify a level for the h264 profile, e.g. 3, 3.1.
          :param float framerate: Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
          :param float max_framerate: Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
          :param bool copy_timestamps: Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
          :param int start_time_ticks: Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms
          :param int width: Optional. The fixed horizontal resolution of the encoded video.
          :param int height: Optional. The fixed vertical resolution of the encoded video.
          :param int max_width: Optional. The maximum horizontal resolution of the encoded video.
          :param int max_height: Optional. The maximum vertical resolution of the encoded video.
          :param int video_bit_rate: Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
          :param int subtitle_stream_index: Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
          :param str subtitle_method: Optional. Specify the subtitle delivery method.
          :param int max_ref_frames: Optional.
          :param int max_video_bit_depth: Optional.
          :param str video_codec: Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h264, mpeg4, theora, vpx, wmv.
          :param int audio_stream_index: Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
          :param int video_stream_index: Optional. The index of the video stream to use. If omitted the first video stream will be used.
          :return: None
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          all_params = ['id', 'container', 'device_profile_id', 'device_id', 'audio_codec', 'enable_auto_stream_copy', 'audio_sample_rate', 'audio_bit_rate', 'audio_channels', 'max_audio_channels', 'static', 'profile', 'level', 'framerate', 'max_framerate', 'copy_timestamps', 'start_time_ticks', 'width', 'height', 'max_width', 'max_height', 'video_bit_rate', 'subtitle_stream_index', 'subtitle_method', 'max_ref_frames', 'max_video_bit_depth', 'video_codec', 'audio_stream_index', 'video_stream_index']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          params = locals()
          for key, val in six.iteritems(params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method head_audio_by_id_stream" % key
                  )
              params[key] = val
          del params['kwargs']
          # verify the required parameter 'id' is set
          if ('id' not in params or
                  params['id'] is None):
              raise ValueError("Missing the required parameter `id` when calling `head_audio_by_id_stream`")  # noqa: E501
          # verify the required parameter 'container' is set
          if ('container' not in params or
                  params['container'] is None):
              raise ValueError("Missing the required parameter `container` when calling `head_audio_by_id_stream`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'id' in params:
              path_params['Id'] = params['id']  # noqa: E501
  
          query_params = []
          if 'device_profile_id' in params:
              query_params.append(('DeviceProfileId', params['device_profile_id']))  # noqa: E501
          if 'device_id' in params:
              query_params.append(('DeviceId', params['device_id']))  # noqa: E501
          if 'container' in params:
              query_params.append(('Container', params['container']))  # noqa: E501
          if 'audio_codec' in params:
              query_params.append(('AudioCodec', params['audio_codec']))  # noqa: E501
          if 'enable_auto_stream_copy' in params:
              query_params.append(('EnableAutoStreamCopy', params['enable_auto_stream_copy']))  # noqa: E501
          if 'audio_sample_rate' in params:
              query_params.append(('AudioSampleRate', params['audio_sample_rate']))  # noqa: E501
          if 'audio_bit_rate' in params:
              query_params.append(('AudioBitRate', params['audio_bit_rate']))  # noqa: E501
          if 'audio_channels' in params:
              query_params.append(('AudioChannels', params['audio_channels']))  # noqa: E501
          if 'max_audio_channels' in params:
              query_params.append(('MaxAudioChannels', params['max_audio_channels']))  # noqa: E501
          if 'static' in params:
              query_params.append(('Static', params['static']))  # noqa: E501
          if 'profile' in params:
              query_params.append(('Profile', params['profile']))  # noqa: E501
          if 'level' in params:
              query_params.append(('Level', params['level']))  # noqa: E501
          if 'framerate' in params:
              query_params.append(('Framerate', params['framerate']))  # noqa: E501
          if 'max_framerate' in params:
              query_params.append(('MaxFramerate', params['max_framerate']))  # noqa: E501
          if 'copy_timestamps' in params:
              query_params.append(('CopyTimestamps', params['copy_timestamps']))  # noqa: E501
          if 'start_time_ticks' in params:
              query_params.append(('StartTimeTicks', params['start_time_ticks']))  # noqa: E501
          if 'width' in params:
              query_params.append(('Width', params['width']))  # noqa: E501
          if 'height' in params:
              query_params.append(('Height', params['height']))  # noqa: E501
          if 'max_width' in params:
              query_params.append(('MaxWidth', params['max_width']))  # noqa: E501
          if 'max_height' in params:
              query_params.append(('MaxHeight', params['max_height']))  # noqa: E501
          if 'video_bit_rate' in params:
              query_params.append(('VideoBitRate', params['video_bit_rate']))  # noqa: E501
          if 'subtitle_stream_index' in params:
              query_params.append(('SubtitleStreamIndex', params['subtitle_stream_index']))  # noqa: E501
          if 'subtitle_method' in params:
              query_params.append(('SubtitleMethod', params['subtitle_method']))  # noqa: E501
          if 'max_ref_frames' in params:
              query_params.append(('MaxRefFrames', params['max_ref_frames']))  # noqa: E501
          if 'max_video_bit_depth' in params:
              query_params.append(('MaxVideoBitDepth', params['max_video_bit_depth']))  # noqa: E501
          if 'video_codec' in params:
              query_params.append(('VideoCodec', params['video_codec']))  # noqa: E501
          if 'audio_stream_index' in params:
              query_params.append(('AudioStreamIndex', params['audio_stream_index']))  # noqa: E501
          if 'video_stream_index' in params:
              query_params.append(('VideoStreamIndex', params['video_stream_index']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # Authentication setting
          auth_settings = []  # noqa: E501
  
          return self.api_client.call_api(
              '/Audio/{Id}/stream', 'HEAD',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type=None,  # noqa: E501
              auth_settings=auth_settings,
              async_req=params.get('async_req'),
              _return_http_data_only=params.get('_return_http_data_only'),
              _preload_content=params.get('_preload_content', True),
              _request_timeout=params.get('_request_timeout'),
              collection_formats=collection_formats)
  