-
Notifications
You must be signed in to change notification settings - Fork 2
/
approvedaction.go
49 lines (41 loc) · 1.17 KB
/
approvedaction.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
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package shared
import (
"github.com/conductorone/conductorone-sdk-go/pkg/utils"
"time"
)
// ApprovedAction - The approved action indicates that the approvalinstance had an outcome of approved.
type ApprovedAction struct {
ApprovedAt *time.Time `json:"approvedAt,omitempty"`
// The entitlements that were approved. This will only ever be a list of one entitlement.
Entitlements []AppEntitlementReference `json:"entitlements,omitempty"`
// The UserID that approved this step.
UserID *string `json:"userId,omitempty"`
}
func (a ApprovedAction) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(a, "", false)
}
func (a *ApprovedAction) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil {
return err
}
return nil
}
func (o *ApprovedAction) GetApprovedAt() *time.Time {
if o == nil {
return nil
}
return o.ApprovedAt
}
func (o *ApprovedAction) GetEntitlements() []AppEntitlementReference {
if o == nil {
return nil
}
return o.Entitlements
}
func (o *ApprovedAction) GetUserID() *string {
if o == nil {
return nil
}
return o.UserID
}