1# --------------------------------------------------------------------------------------------
2# Copyright (c) Microsoft Corporation. All rights reserved.
3# Licensed under the MIT License. See License.txt in the project root for license information.
4# --------------------------------------------------------------------------------------------
5# Generated file, DO NOT EDIT
6# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7# --------------------------------------------------------------------------------------------
8
9from msrest.serialization import Model
10
11
12class TfvcChangesetSearchCriteria(Model):
13    """TfvcChangesetSearchCriteria.
14
15    :param author: Alias or display name of user who made the changes
16    :type author: str
17    :param follow_renames: Whether or not to follow renames for the given item being queried
18    :type follow_renames: bool
19    :param from_date: If provided, only include changesets created after this date (string) Think of a better name for this.
20    :type from_date: str
21    :param from_id: If provided, only include changesets after this changesetID
22    :type from_id: int
23    :param include_links: Whether to include the _links field on the shallow references
24    :type include_links: bool
25    :param item_path: Path of item to search under
26    :type item_path: str
27    :param to_date: If provided, only include changesets created before this date (string) Think of a better name for this.
28    :type to_date: str
29    :param to_id: If provided, a version descriptor for the latest change list to include
30    :type to_id: int
31    """
32
33    _attribute_map = {
34        'author': {'key': 'author', 'type': 'str'},
35        'follow_renames': {'key': 'followRenames', 'type': 'bool'},
36        'from_date': {'key': 'fromDate', 'type': 'str'},
37        'from_id': {'key': 'fromId', 'type': 'int'},
38        'include_links': {'key': 'includeLinks', 'type': 'bool'},
39        'item_path': {'key': 'itemPath', 'type': 'str'},
40        'to_date': {'key': 'toDate', 'type': 'str'},
41        'to_id': {'key': 'toId', 'type': 'int'}
42    }
43
44    def __init__(self, author=None, follow_renames=None, from_date=None, from_id=None, include_links=None, item_path=None, to_date=None, to_id=None):
45        super(TfvcChangesetSearchCriteria, self).__init__()
46        self.author = author
47        self.follow_renames = follow_renames
48        self.from_date = from_date
49        self.from_id = from_id
50        self.include_links = include_links
51        self.item_path = item_path
52        self.to_date = to_date
53        self.to_id = to_id
54