-
Notifications
You must be signed in to change notification settings - Fork 2
/
directory.go
56 lines (47 loc) · 1.14 KB
/
directory.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
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package shared
import (
"github.com/conductorone/conductorone-sdk-go/pkg/utils"
"time"
)
// Directory - This object indicates that an app is also a directory.
type Directory struct {
// The ID of the app associated with the directory.
AppID *string `json:"appId,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
DeletedAt *time.Time `json:"deletedAt,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}
func (d Directory) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(d, "", false)
}
func (d *Directory) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
return err
}
return nil
}
func (o *Directory) GetAppID() *string {
if o == nil {
return nil
}
return o.AppID
}
func (o *Directory) GetCreatedAt() *time.Time {
if o == nil {
return nil
}
return o.CreatedAt
}
func (o *Directory) GetDeletedAt() *time.Time {
if o == nil {
return nil
}
return o.DeletedAt
}
func (o *Directory) GetUpdatedAt() *time.Time {
if o == nil {
return nil
}
return o.UpdatedAt
}