1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
# 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
class SearchParameters(Model):
"""Parameters specifying the search query and range.
All required parameters must be populated in order to send to Azure.
:param top: The number to get from the top.
:type top: long
:param highlight: The highlight that looks for all occurences of a string.
:type highlight: ~azure.mgmt.loganalytics.models.SearchHighlight
:param query: Required. The query to search.
:type query: str
:param start: The start date filter, so the only query results returned
are after this date.
:type start: datetime
:param end: The end date filter, so the only query results returned are
before this date.
:type end: datetime
"""
_validation = {
'query': {'required': True},
}
_attribute_map = {
'top': {'key': 'top', 'type': 'long'},
'highlight': {'key': 'highlight', 'type': 'SearchHighlight'},
'query': {'key': 'query', 'type': 'str'},
'start': {'key': 'start', 'type': 'iso-8601'},
'end': {'key': 'end', 'type': 'iso-8601'},
}
def __init__(self, *, query: str, top: int=None, highlight=None, start=None, end=None, **kwargs) -> None:
super(SearchParameters, self).__init__(**kwargs)
self.top = top
self.highlight = highlight
self.query = query
self.start = start
self.end = end
|