-
Notifications
You must be signed in to change notification settings - Fork 2
/
tasksearchresponse.go
72 lines (61 loc) · 2.17 KB
/
tasksearchresponse.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
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
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package shared
import (
"github.com/conductorone/conductorone-sdk-go/pkg/utils"
)
// TaskSearchResponseExpanded - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.
type TaskSearchResponseExpanded struct {
// The type of the serialized message.
AtType *string `json:"@type,omitempty"`
AdditionalProperties map[string]interface{} `additionalProperties:"true" json:"-"`
}
func (t TaskSearchResponseExpanded) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(t, "", false)
}
func (t *TaskSearchResponseExpanded) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil {
return err
}
return nil
}
func (o *TaskSearchResponseExpanded) GetAtType() *string {
if o == nil {
return nil
}
return o.AtType
}
func (o *TaskSearchResponseExpanded) GetAdditionalProperties() map[string]interface{} {
if o == nil {
return nil
}
return o.AdditionalProperties
}
// The TaskSearchResponse message contains a list of results and a nextPageToken if applicable.
type TaskSearchResponse struct {
// The list of results containing up to X results, where X is the page size defined in the request.
Expanded []TaskSearchResponseExpanded `json:"expanded,omitempty"`
// List of serialized related objects.
List []TaskView `json:"list,omitempty"`
// The nextPageToken is shown for the next page if the number of results is larger than the max page size.
// The server returns one page of results and the nextPageToken until all results are retreived.
// To retrieve the next page, use the same request and append a pageToken field with the value of nextPageToken shown on the previous page.
NextPageToken *string `json:"nextPageToken,omitempty"`
}
func (o *TaskSearchResponse) GetExpanded() []TaskSearchResponseExpanded {
if o == nil {
return nil
}
return o.Expanded
}
func (o *TaskSearchResponse) GetList() []TaskView {
if o == nil {
return nil
}
return o.List
}
func (o *TaskSearchResponse) GetNextPageToken() *string {
if o == nil {
return nil
}
return o.NextPageToken
}