# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
[docs]class SearchHighlight(Model):
"""Highlight details.
:param pre: The string that is put before a matched result.
:type pre: str
:param post: The string that is put after a matched result.
:type post: str
"""
_attribute_map = {
'pre': {'key': 'pre', 'type': 'str'},
'post': {'key': 'post', 'type': 'str'},
}
def __init__(self, *, pre: str=None, post: str=None, **kwargs) -> None:
super(SearchHighlight, self).__init__(**kwargs)
self.pre = pre
self.post = post