-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
SearchResultValue.cs
183 lines (176 loc) · 9.19 KB
/
SearchResultValue.cs
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
namespace Azure.Analytics.Purview.DataMap
{
/// <summary> The value item of the search result. </summary>
public partial class SearchResultValue
{
/// <summary>
/// Keeps track of any properties unknown to the library.
/// <para>
/// To assign an object to the value of this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>.
/// </para>
/// <para>
/// To assign an already formatted json string to this property use <see cref="BinaryData.FromString(string)"/>.
/// </para>
/// <para>
/// Examples:
/// <list type="bullet">
/// <item>
/// <term>BinaryData.FromObjectAsJson("foo")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("\"foo\"")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("{\"key\": \"value\"}")</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// </list>
/// </para>
/// </summary>
private IDictionary<string, BinaryData> _serializedAdditionalRawData;
/// <summary> Initializes a new instance of <see cref="SearchResultValue"/>. </summary>
internal SearchResultValue()
{
Classification = new ChangeTrackingList<string>();
Label = new ChangeTrackingList<string>();
Term = new ChangeTrackingList<TermSearchResultValue>();
Contact = new ChangeTrackingList<ContactSearchResultValue>();
AssetType = new ChangeTrackingList<string>();
TermTemplate = new ChangeTrackingList<string>();
}
/// <summary> Initializes a new instance of <see cref="SearchResultValue"/>. </summary>
/// <param name="searchScore">
/// The search score calculated by the search engine. The results are ordered by
/// search score by default.
/// </param>
/// <param name="searchHighlights">
/// A highlight list that consists of index fields id ,qualifiedName, name,
/// description, entityType. When the keyword appears in those fields, the value of
/// the field, attached with emphasis mark, is returned as an element of
/// @search.highlights.
/// </param>
/// <param name="objectType">
/// The object type of the record. Object type is the top-level property to
/// distinguish whether a record is an asset or a term.
/// </param>
/// <param name="createTime"> The create time of the record. The Unix epoch format. </param>
/// <param name="updateTime"> The last update time of the record. The Unix epoch format. </param>
/// <param name="id"> The GUID of the record. </param>
/// <param name="name"> The name of the record. </param>
/// <param name="qualifiedName"> The qualified name of the record. </param>
/// <param name="entityType"> The type name of the asset. </param>
/// <param name="description"> The description of the asset. </param>
/// <param name="endorsement"> The endorsement of the asset. </param>
/// <param name="owner"> The owner of the record. </param>
/// <param name="classification"> The classifications of the record. </param>
/// <param name="label"> The labels of the asset. </param>
/// <param name="term"> The terms assigned to the asset. </param>
/// <param name="contact"> The contacts of the asset. </param>
/// <param name="assetType"> The asset types of the asset. </param>
/// <param name="glossaryType">
/// The type name of the term. Could be AtlasGlossary, AtlasGlossaryTerm or
/// AtlasGlossaryCategory.
/// </param>
/// <param name="glossary"> The glossary name of the term. </param>
/// <param name="termStatus"> The status of the term. </param>
/// <param name="termTemplate"> The term template names used by the term. </param>
/// <param name="longDescription"> The definition of the term. </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
internal SearchResultValue(float? searchScore, SearchHighlights searchHighlights, string objectType, long? createTime, long? updateTime, string id, string name, string qualifiedName, string entityType, string description, string endorsement, string owner, IReadOnlyList<string> classification, IReadOnlyList<string> label, IReadOnlyList<TermSearchResultValue> term, IReadOnlyList<ContactSearchResultValue> contact, IReadOnlyList<string> assetType, string glossaryType, string glossary, string termStatus, IReadOnlyList<string> termTemplate, string longDescription, IDictionary<string, BinaryData> serializedAdditionalRawData)
{
SearchScore = searchScore;
SearchHighlights = searchHighlights;
ObjectType = objectType;
CreateTime = createTime;
UpdateTime = updateTime;
Id = id;
Name = name;
QualifiedName = qualifiedName;
EntityType = entityType;
Description = description;
Endorsement = endorsement;
Owner = owner;
Classification = classification;
Label = label;
Term = term;
Contact = contact;
AssetType = assetType;
GlossaryType = glossaryType;
Glossary = glossary;
TermStatus = termStatus;
TermTemplate = termTemplate;
LongDescription = longDescription;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
/// <summary>
/// The search score calculated by the search engine. The results are ordered by
/// search score by default.
/// </summary>
public float? SearchScore { get; }
/// <summary>
/// A highlight list that consists of index fields id ,qualifiedName, name,
/// description, entityType. When the keyword appears in those fields, the value of
/// the field, attached with emphasis mark, is returned as an element of
/// @search.highlights.
/// </summary>
public SearchHighlights SearchHighlights { get; }
/// <summary>
/// The object type of the record. Object type is the top-level property to
/// distinguish whether a record is an asset or a term.
/// </summary>
public string ObjectType { get; }
/// <summary> The create time of the record. The Unix epoch format. </summary>
public long? CreateTime { get; }
/// <summary> The last update time of the record. The Unix epoch format. </summary>
public long? UpdateTime { get; }
/// <summary> The GUID of the record. </summary>
public string Id { get; }
/// <summary> The name of the record. </summary>
public string Name { get; }
/// <summary> The qualified name of the record. </summary>
public string QualifiedName { get; }
/// <summary> The type name of the asset. </summary>
public string EntityType { get; }
/// <summary> The description of the asset. </summary>
public string Description { get; }
/// <summary> The endorsement of the asset. </summary>
public string Endorsement { get; }
/// <summary> The owner of the record. </summary>
public string Owner { get; }
/// <summary> The classifications of the record. </summary>
public IReadOnlyList<string> Classification { get; }
/// <summary> The labels of the asset. </summary>
public IReadOnlyList<string> Label { get; }
/// <summary> The terms assigned to the asset. </summary>
public IReadOnlyList<TermSearchResultValue> Term { get; }
/// <summary> The contacts of the asset. </summary>
public IReadOnlyList<ContactSearchResultValue> Contact { get; }
/// <summary> The asset types of the asset. </summary>
public IReadOnlyList<string> AssetType { get; }
/// <summary>
/// The type name of the term. Could be AtlasGlossary, AtlasGlossaryTerm or
/// AtlasGlossaryCategory.
/// </summary>
public string GlossaryType { get; }
/// <summary> The glossary name of the term. </summary>
public string Glossary { get; }
/// <summary> The status of the term. </summary>
public string TermStatus { get; }
/// <summary> The term template names used by the term. </summary>
public IReadOnlyList<string> TermTemplate { get; }
/// <summary> The definition of the term. </summary>
public string LongDescription { get; }
}
}