code: def get_attachment(self, project, build_id, timeline_id, record_id, type, name, **kwargs):
          
          route_values = {}
          if project is not None:
              route_values['project'] = self._serialize.url('project', project, 'str')
          if build_id is not None:
              route_values['buildId'] = self._serialize.url('build_id', build_id, 'int')
          if timeline_id is not None:
              route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str')
          if record_id is not None:
              route_values['recordId'] = self._serialize.url('record_id', record_id, 'str')
          if type is not None:
              route_values['type'] = self._serialize.url('type', type, 'str')
          if name is not None:
              route_values['name'] = self._serialize.url('name', name, 'str')
          response = self._send(http_method='GET',
                                location_id='af5122d3-3438-485e-a25a-2dbbfde84ee6',
                                version='5.0-preview.2',
                                route_values=route_values,
                                accept_media_type='application/octet-stream')
          if "callback" in kwargs:
              callback = kwargs["callback"]
          else:
              callback = None
          return self._client.stream_download(response, callback=callback)
docs: GetAttachment.
          [Preview API] Gets a specific attachment.
          :param str project: Project ID or project name
          :param int build_id: The ID of the build.
          :param str timeline_id: The ID of the timeline.
          :param str record_id: The ID of the timeline record.
          :param str type: The type of the attachment.
          :param str name: The name of the attachment.
          :rtype: object