-
Notifications
You must be signed in to change notification settings - Fork 2
/
requestcatalogsearchservicesearchentitlementsresponse.go
72 lines (61 loc) · 2.65 KB
/
requestcatalogsearchservicesearchentitlementsresponse.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"
)
// RequestCatalogSearchServiceSearchEntitlementsResponseExpanded - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.
type RequestCatalogSearchServiceSearchEntitlementsResponseExpanded struct {
// The type of the serialized message.
AtType *string `json:"@type,omitempty"`
AdditionalProperties map[string]interface{} `additionalProperties:"true" json:"-"`
}
func (r RequestCatalogSearchServiceSearchEntitlementsResponseExpanded) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(r, "", false)
}
func (r *RequestCatalogSearchServiceSearchEntitlementsResponseExpanded) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &r, "", false, false); err != nil {
return err
}
return nil
}
func (o *RequestCatalogSearchServiceSearchEntitlementsResponseExpanded) GetAtType() *string {
if o == nil {
return nil
}
return o.AtType
}
func (o *RequestCatalogSearchServiceSearchEntitlementsResponseExpanded) GetAdditionalProperties() map[string]interface{} {
if o == nil {
return nil
}
return o.AdditionalProperties
}
// The RequestCatalogSearchServiceSearchEntitlementsResponse message contains a list of results and a nextPageToken if applicable.
type RequestCatalogSearchServiceSearchEntitlementsResponse struct {
// List of serialized related objects.
Expanded []RequestCatalogSearchServiceSearchEntitlementsResponseExpanded `json:"expanded,omitempty"`
// The list of results containing up to X results, where X is the page size defined in the request.
List []AppEntitlementWithUserBindings `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 *RequestCatalogSearchServiceSearchEntitlementsResponse) GetExpanded() []RequestCatalogSearchServiceSearchEntitlementsResponseExpanded {
if o == nil {
return nil
}
return o.Expanded
}
func (o *RequestCatalogSearchServiceSearchEntitlementsResponse) GetList() []AppEntitlementWithUserBindings {
if o == nil {
return nil
}
return o.List
}
func (o *RequestCatalogSearchServiceSearchEntitlementsResponse) GetNextPageToken() *string {
if o == nil {
return nil
}
return o.NextPageToken
}