/
query_options_py3.py
64 lines (58 loc) · 2.61 KB
/
query_options_py3.py
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
53
54
55
56
57
58
59
60
61
62
63
64
# 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 QueryOptions(Model):
"""Additional parameters for a set of operations.
:param top: Maximum number of records to return.
:type top: int
:param filter: OData filter expression.
:type filter: str
:param order_by: Ordering expression using OData notation. One or more
comma-separated column names with an optional "desc" (the default) or
"asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
:type order_by: str
:param select: Select expression using OData notation. Limits the columns
on each record to just those requested, e.g. "$select=PolicyAssignmentId,
ResourceId".
:type select: str
:param from_property: ISO 8601 formatted timestamp specifying the start
time of the interval to query. When not specified, the service uses ($to -
1-day).
:type from_property: datetime
:param to: ISO 8601 formatted timestamp specifying the end time of the
interval to query. When not specified, the service uses request time.
:type to: datetime
:param apply: OData apply expression for aggregations.
:type apply: str
:param expand: The $expand query parameter. For example, to expand
policyEvaluationDetails, use $expand=policyEvaluationDetails
:type expand: str
"""
_attribute_map = {
'top': {'key': '', 'type': 'int'},
'filter': {'key': '', 'type': 'str'},
'order_by': {'key': '', 'type': 'str'},
'select': {'key': '', 'type': 'str'},
'from_property': {'key': '', 'type': 'iso-8601'},
'to': {'key': '', 'type': 'iso-8601'},
'apply': {'key': '', 'type': 'str'},
'expand': {'key': '', 'type': 'str'},
}
def __init__(self, *, top: int=None, filter: str=None, order_by: str=None, select: str=None, from_property=None, to=None, apply: str=None, expand: str=None, **kwargs) -> None:
super(QueryOptions, self).__init__(**kwargs)
self.top = top
self.filter = filter
self.order_by = order_by
self.select = select
self.from_property = from_property
self.to = to
self.apply = apply
self.expand = expand