-
Notifications
You must be signed in to change notification settings - Fork 2
/
appresourcetype.go
74 lines (63 loc) · 1.63 KB
/
appresourcetype.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
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package shared
import (
"github.com/conductorone/conductorone-sdk-go/pkg/utils"
"time"
)
// The AppResourceType is referenced by an app entitlement defining its resource types. Commonly things like Group or Role.
type AppResourceType struct {
// The ID of the app that is associated with the app resource type
AppID *string `json:"appId,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// The display name of the app resource type.
DisplayName *string `json:"displayName,omitempty"`
// The unique ID for the app resource type.
ID *string `json:"id,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}
func (a AppResourceType) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(a, "", false)
}
func (a *AppResourceType) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil {
return err
}
return nil
}
func (o *AppResourceType) GetAppID() *string {
if o == nil {
return nil
}
return o.AppID
}
func (o *AppResourceType) GetCreatedAt() *time.Time {
if o == nil {
return nil
}
return o.CreatedAt
}
func (o *AppResourceType) GetDeletedAt() *time.Time {
if o == nil {
return nil
}
return o.DeletedAt
}
func (o *AppResourceType) GetDisplayName() *string {
if o == nil {
return nil
}
return o.DisplayName
}
func (o *AppResourceType) GetID() *string {
if o == nil {
return nil
}
return o.ID
}
func (o *AppResourceType) GetUpdatedAt() *time.Time {
if o == nil {
return nil
}
return o.UpdatedAt
}