-
Notifications
You must be signed in to change notification settings - Fork 2
/
listappentitlementusersresponse.go
70 lines (59 loc) · 2.34 KB
/
listappentitlementusersresponse.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
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package shared
import (
"github.com/conductorone/conductorone-sdk-go/pkg/utils"
)
// ListAppEntitlementUsersResponseExpanded - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.
type ListAppEntitlementUsersResponseExpanded struct {
// The type of the serialized message.
AtType *string `json:"@type,omitempty"`
AdditionalProperties map[string]interface{} `additionalProperties:"true" json:"-"`
}
func (l ListAppEntitlementUsersResponseExpanded) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(l, "", false)
}
func (l *ListAppEntitlementUsersResponseExpanded) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &l, "", false, false); err != nil {
return err
}
return nil
}
func (o *ListAppEntitlementUsersResponseExpanded) GetAtType() *string {
if o == nil {
return nil
}
return o.AtType
}
func (o *ListAppEntitlementUsersResponseExpanded) GetAdditionalProperties() map[string]interface{} {
if o == nil {
return nil
}
return o.AdditionalProperties
}
// The ListAppEntitlementUsersResponse message contains a list of results and a nextPageToken if applicable.
type ListAppEntitlementUsersResponse struct {
// List of related objects
Expanded []ListAppEntitlementUsersResponseExpanded `json:"expanded,omitempty"`
// The list of results containing up to X results, where X is the page size defined in the request.
List []AppEntitlementUserView `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 *ListAppEntitlementUsersResponse) GetExpanded() []ListAppEntitlementUsersResponseExpanded {
if o == nil {
return nil
}
return o.Expanded
}
func (o *ListAppEntitlementUsersResponse) GetList() []AppEntitlementUserView {
if o == nil {
return nil
}
return o.List
}
func (o *ListAppEntitlementUsersResponse) GetNextPageToken() *string {
if o == nil {
return nil
}
return o.NextPageToken
}