@@ -28,7 +28,7 @@ class CodeResult(Model):
28
28
:param repository: Repository of the result file.
29
29
:type repository: :class:`Repository <azure.devops.v5_1.search.models.Repository>`
30
30
:param versions: Versions of the result file.
31
- :type versions: list of :class:`str <azure.devops.v5_1.search.models.str >`
31
+ :type versions: list of :class:`Version <azure.devops.v5_1.search.models.Version >`
32
32
"""
33
33
34
34
_attribute_map = {
@@ -39,7 +39,7 @@ class CodeResult(Model):
39
39
'path' : {'key' : 'path' , 'type' : 'str' },
40
40
'project' : {'key' : 'project' , 'type' : 'Project' },
41
41
'repository' : {'key' : 'repository' , 'type' : 'Repository' },
42
- 'versions' : {'key' : 'versions' , 'type' : '[str ]' }
42
+ 'versions' : {'key' : 'versions' , 'type' : '[Version ]' }
43
43
}
44
44
45
45
def __init__ (self , collection = None , content_id = None , file_name = None , matches = None , path = None , project = None , repository = None , versions = None ):
@@ -427,6 +427,27 @@ def __init__(self, field=None, sort_order=None):
427
427
self .sort_order = sort_order
428
428
429
429
430
+ class Version (Model ):
431
+ """
432
+ Describes the details pertaining to a version of the result file.
433
+
434
+ :param branch_name: Name of the branch.
435
+ :type branch_name: str
436
+ :param change_id: ChangeId in the given branch associated with this match.
437
+ :type change_id: str
438
+ """
439
+
440
+ _attribute_map = {
441
+ 'branch_name' : {'key' : 'branchName' , 'type' : 'str' },
442
+ 'change_id' : {'key' : 'changeId' , 'type' : 'str' }
443
+ }
444
+
445
+ def __init__ (self , branch_name = None , change_id = None ):
446
+ super (Version , self ).__init__ ()
447
+ self .branch_name = branch_name
448
+ self .change_id = change_id
449
+
450
+
430
451
class Wiki (Model ):
431
452
"""
432
453
Defines the details of wiki.
@@ -825,6 +846,7 @@ def __init__(self, filters=None, search_text=None, order_by=None, skip=None, top
825
846
'Repository' ,
826
847
'ScrollSearchRequest' ,
827
848
'SortOption' ,
849
+ 'Version' ,
828
850
'Wiki' ,
829
851
'WikiHit' ,
830
852
'WikiResult' ,
0 commit comments