-
Notifications
You must be signed in to change notification settings - Fork 2
/
appentitlementuserview.go
48 lines (40 loc) · 1.49 KB
/
appentitlementuserview.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
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package shared
import (
"github.com/conductorone/conductorone-sdk-go/pkg/utils"
"time"
)
// The AppEntitlementUserView (aka grant view) describes the relationship between an app user and an entitlement. They have more recently been referred to as grants.
type AppEntitlementUserView struct {
// The AppUserView contains an app user as well as paths for apps, identity users, and last usage in expanded arrays.
AppUserView *AppUserView `json:"appUser,omitempty"`
AppEntitlementUserBindingCreatedAt *time.Time `json:"appEntitlementUserBindingCreatedAt,omitempty"`
AppEntitlementUserBindingDeprovisionAt *time.Time `json:"appEntitlementUserBindingDeprovisionAt,omitempty"`
}
func (a AppEntitlementUserView) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(a, "", false)
}
func (a *AppEntitlementUserView) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil {
return err
}
return nil
}
func (o *AppEntitlementUserView) GetAppUserView() *AppUserView {
if o == nil {
return nil
}
return o.AppUserView
}
func (o *AppEntitlementUserView) GetAppEntitlementUserBindingCreatedAt() *time.Time {
if o == nil {
return nil
}
return o.AppEntitlementUserBindingCreatedAt
}
func (o *AppEntitlementUserView) GetAppEntitlementUserBindingDeprovisionAt() *time.Time {
if o == nil {
return nil
}
return o.AppEntitlementUserBindingDeprovisionAt
}