-
Notifications
You must be signed in to change notification settings - Fork 2
/
requestcatalog.go
119 lines (103 loc) · 2.73 KB
/
requestcatalog.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
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
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package shared
import (
"github.com/conductorone/conductorone-sdk-go/pkg/utils"
"time"
)
// The RequestCatalog is used for managing which entitlements are requestable, and who can request them.
type RequestCatalog struct {
// An array of app entitlements that, if the user has, can view the contents of this catalog.
AccessEntitlements []AppEntitlement `json:"accessEntitlements,omitempty"`
// The Apps contained in this request catalog.
AppIds []string `json:"appIds,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
// The id of the user this request catalog was created by.
CreatedByUserID *string `json:"createdByUserId,omitempty"`
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// The description of the request catalog.
Description *string `json:"description,omitempty"`
// The display name of the request catalog.
DisplayName *string `json:"displayName,omitempty"`
// The id of the request catalog.
ID *string `json:"id,omitempty"`
// Whether or not this catalog is published.
Published *bool `json:"published,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
// If this is true, the access entitlement requirement is ignored.
VisibleToEveryone *bool `json:"visibleToEveryone,omitempty"`
}
func (r RequestCatalog) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(r, "", false)
}
func (r *RequestCatalog) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &r, "", false, false); err != nil {
return err
}
return nil
}
func (o *RequestCatalog) GetAccessEntitlements() []AppEntitlement {
if o == nil {
return nil
}
return o.AccessEntitlements
}
func (o *RequestCatalog) GetAppIds() []string {
if o == nil {
return nil
}
return o.AppIds
}
func (o *RequestCatalog) GetCreatedAt() *time.Time {
if o == nil {
return nil
}
return o.CreatedAt
}
func (o *RequestCatalog) GetCreatedByUserID() *string {
if o == nil {
return nil
}
return o.CreatedByUserID
}
func (o *RequestCatalog) GetDeletedAt() *time.Time {
if o == nil {
return nil
}
return o.DeletedAt
}
func (o *RequestCatalog) GetDescription() *string {
if o == nil {
return nil
}
return o.Description
}
func (o *RequestCatalog) GetDisplayName() *string {
if o == nil {
return nil
}
return o.DisplayName
}
func (o *RequestCatalog) GetID() *string {
if o == nil {
return nil
}
return o.ID
}
func (o *RequestCatalog) GetPublished() *bool {
if o == nil {
return nil
}
return o.Published
}
func (o *RequestCatalog) GetUpdatedAt() *time.Time {
if o == nil {
return nil
}
return o.UpdatedAt
}
func (o *RequestCatalog) GetVisibleToEveryone() *bool {
if o == nil {
return nil
}
return o.VisibleToEveryone
}