-
Notifications
You must be signed in to change notification settings - Fork 13
/
knowledgesearchrequest.go
41 lines (27 loc) · 1.08 KB
/
knowledgesearchrequest.go
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
package platformclientv2
import (
"encoding/json"
"strconv"
"strings"
)
// Knowledgesearchrequest
type Knowledgesearchrequest struct {
// Query - Input query to search content in the knowledge base
Query *string `json:"query,omitempty"`
// PageSize - Page size of the returned results
PageSize *int `json:"pageSize,omitempty"`
// PageNumber - Page number of the returned results
PageNumber *int `json:"pageNumber,omitempty"`
// DocumentType - Document type to be used while searching
DocumentType *string `json:"documentType,omitempty"`
// LanguageCode - query search for specific languageCode
LanguageCode *string `json:"languageCode,omitempty"`
// SearchOnDraftDocuments - If true the search query will be executed on draft documents, else it will be on active documents
SearchOnDraftDocuments *bool `json:"searchOnDraftDocuments,omitempty"`
}
// String returns a JSON representation of the model
func (o *Knowledgesearchrequest) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}