def validate_patch_title(a_title)
      if a_title.is_a? JSS::PatchTitle
        @patch_title = a_title
        return a_title.id
      end
      raise JSS::MissingDataError, ':patch_title is required' unless a_title
      title_id = JSS::PatchTitle.valid_id a_title
      return title_id if title_id
      raise JSS::NoSuchItemError, "No Patch Title matches '#{a_title}'"
    end
def validate_patch_title(a_title)
      if a_title.is_a? JSS::PatchTitle
        @patch_title = a_title
        return a_title.id
      end
      raise JSS::MissingDataError, ':patch_title is required' unless a_title
      title_id = JSS::PatchTitle.valid_id a_title
      return title_id if title_id
      raise JSS::NoSuchItemError, "No Patch Title matches '#{a_title}'"
    end
raise an error if the patch title we're trying to use isn't available in
 the jss. If handed a PatchTitle instance, we assume it came from the JSS

 @param new_title[String,Integer,JSS::PatchTitle] the title to validate

 @return [Integer] the id of the valid title