-
Notifications
You must be signed in to change notification settings - Fork 2
/
deniedaction.go
40 lines (33 loc) · 897 Bytes
/
deniedaction.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
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package shared
import (
"github.com/conductorone/conductorone-sdk-go/pkg/utils"
"time"
)
// DeniedAction - The denied action indicates that the c1.api.policy.v1.ApprovalInstance had an outcome of denied.
type DeniedAction struct {
DeniedAt *time.Time `json:"deniedAt,omitempty"`
// The UserID that denied this step.
UserID *string `json:"userId,omitempty"`
}
func (d DeniedAction) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(d, "", false)
}
func (d *DeniedAction) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
return err
}
return nil
}
func (o *DeniedAction) GetDeniedAt() *time.Time {
if o == nil {
return nil
}
return o.DeniedAt
}
func (o *DeniedAction) GetUserID() *string {
if o == nil {
return nil
}
return o.UserID
}