-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocumentdefinition.go
More file actions
214 lines (189 loc) · 6.14 KB
/
documentdefinition.go
File metadata and controls
214 lines (189 loc) · 6.14 KB
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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package components
// DocumentDefinition - Indexable document structure
type DocumentDefinition struct {
// Document title, in plain text, if present. If not present, the title would be attempted to be extracted from the content.
Title *string `json:"title,omitempty"`
// Source filename, in plain text, for the document. May be used as a fallback title for the document, if the title is not provided and cannot be extracted from the content. Populate this if there is no explicit title for the document and the content is sourced from a file.
Filename *string `json:"filename,omitempty"`
// The container name for the content (Folder for example for file content).
Container *string `json:"container,omitempty"`
// This represents the datasource sepcific id of the container.
ContainerDatasourceID *string `json:"containerDatasourceId,omitempty"`
// This represents the object type of the container. It cannot have spaces or _
ContainerObjectType *string `json:"containerObjectType,omitempty"`
Datasource string `json:"datasource"`
// The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces or _
ObjectType *string `json:"objectType,omitempty"`
// The permalink for viewing the document. **Note: viewURL is a required field for non-entity datasources, but not required if the datasource is used to push custom entities (ie. datasources where isEntityDatasource is false).**'
//
ViewURL *string `json:"viewURL,omitempty"`
// The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. Note: id is a required field for datasources created after 1st March 2025
//
ID *string `json:"id,omitempty"`
// Describes text content or base64 encoded binary content
Summary *ContentDefinition `json:"summary,omitempty"`
// Describes text content or base64 encoded binary content
Body *ContentDefinition `json:"body,omitempty"`
// Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id.
Author *UserReferenceDefinition `json:"author,omitempty"`
// Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id.
Owner *UserReferenceDefinition `json:"owner,omitempty"`
// describes the access control details of the document
Permissions *DocumentPermissionsDefinition `json:"permissions,omitempty"`
// The creation time, in epoch seconds.
CreatedAt *int64 `json:"createdAt,omitempty"`
// The last update time, in epoch seconds.
UpdatedAt *int64 `json:"updatedAt,omitempty"`
// Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id.
UpdatedBy *UserReferenceDefinition `json:"updatedBy,omitempty"`
// Labels associated with the document.
Tags []string `json:"tags,omitempty"`
// describes the interactions on the document
Interactions *DocumentInteractionsDefinition `json:"interactions,omitempty"`
Status *string `json:"status,omitempty"`
// Additional variations of the URL that this document points to.
AdditionalUrls []string `json:"additionalUrls,omitempty"`
// Comments associated with the document.
Comments []CommentDefinition `json:"comments,omitempty"`
// Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets).
CustomProperties []CustomProperty `json:"customProperties,omitempty"`
}
func (o *DocumentDefinition) GetTitle() *string {
if o == nil {
return nil
}
return o.Title
}
func (o *DocumentDefinition) GetFilename() *string {
if o == nil {
return nil
}
return o.Filename
}
func (o *DocumentDefinition) GetContainer() *string {
if o == nil {
return nil
}
return o.Container
}
func (o *DocumentDefinition) GetContainerDatasourceID() *string {
if o == nil {
return nil
}
return o.ContainerDatasourceID
}
func (o *DocumentDefinition) GetContainerObjectType() *string {
if o == nil {
return nil
}
return o.ContainerObjectType
}
func (o *DocumentDefinition) GetDatasource() string {
if o == nil {
return ""
}
return o.Datasource
}
func (o *DocumentDefinition) GetObjectType() *string {
if o == nil {
return nil
}
return o.ObjectType
}
func (o *DocumentDefinition) GetViewURL() *string {
if o == nil {
return nil
}
return o.ViewURL
}
func (o *DocumentDefinition) GetID() *string {
if o == nil {
return nil
}
return o.ID
}
func (o *DocumentDefinition) GetSummary() *ContentDefinition {
if o == nil {
return nil
}
return o.Summary
}
func (o *DocumentDefinition) GetBody() *ContentDefinition {
if o == nil {
return nil
}
return o.Body
}
func (o *DocumentDefinition) GetAuthor() *UserReferenceDefinition {
if o == nil {
return nil
}
return o.Author
}
func (o *DocumentDefinition) GetOwner() *UserReferenceDefinition {
if o == nil {
return nil
}
return o.Owner
}
func (o *DocumentDefinition) GetPermissions() *DocumentPermissionsDefinition {
if o == nil {
return nil
}
return o.Permissions
}
func (o *DocumentDefinition) GetCreatedAt() *int64 {
if o == nil {
return nil
}
return o.CreatedAt
}
func (o *DocumentDefinition) GetUpdatedAt() *int64 {
if o == nil {
return nil
}
return o.UpdatedAt
}
func (o *DocumentDefinition) GetUpdatedBy() *UserReferenceDefinition {
if o == nil {
return nil
}
return o.UpdatedBy
}
func (o *DocumentDefinition) GetTags() []string {
if o == nil {
return nil
}
return o.Tags
}
func (o *DocumentDefinition) GetInteractions() *DocumentInteractionsDefinition {
if o == nil {
return nil
}
return o.Interactions
}
func (o *DocumentDefinition) GetStatus() *string {
if o == nil {
return nil
}
return o.Status
}
func (o *DocumentDefinition) GetAdditionalUrls() []string {
if o == nil {
return nil
}
return o.AdditionalUrls
}
func (o *DocumentDefinition) GetComments() []CommentDefinition {
if o == nil {
return nil
}
return o.Comments
}
func (o *DocumentDefinition) GetCustomProperties() []CustomProperty {
if o == nil {
return nil
}
return o.CustomProperties
}