-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModelRole.go
87 lines (74 loc) · 2.48 KB
/
ModelRole.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
75
76
77
78
79
80
81
82
83
84
85
86
87
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
// RoleAssignment undocumented
type RoleAssignment struct {
// Entity is the base model of RoleAssignment
Entity
ODataType string `json:"@odata.type,omitempty"`
// Description undocumented
Description *string `json:"description,omitempty"`
// DisplayName undocumented
DisplayName *string `json:"displayName,omitempty"`
// ResourceScopes undocumented
ResourceScopes []string `json:"resourceScopes,omitempty"`
// RoleDefinition undocumented
RoleDefinition *RoleDefinition `json:"roleDefinition,omitempty"`
}
func NewRoleAssignment() (*RoleAssignment, error) {
newRoleAssignment := &RoleAssignment{
ODataType: "#microsoft.graph.RoleAssignment",
}
return newRoleAssignment, nil
}
// RoleDefinition undocumented
type RoleDefinition struct {
// Entity is the base model of RoleDefinition
Entity
ODataType string `json:"@odata.type,omitempty"`
// Description undocumented
Description *string `json:"description,omitempty"`
// DisplayName undocumented
DisplayName *string `json:"displayName,omitempty"`
// IsBuiltIn undocumented
IsBuiltIn *bool `json:"isBuiltIn,omitempty"`
// RolePermissions undocumented
RolePermissions []RolePermission `json:"rolePermissions,omitempty"`
// RoleAssignments undocumented
RoleAssignments []RoleAssignment `json:"roleAssignments,omitempty"`
}
func NewRoleDefinition() (*RoleDefinition, error) {
newRoleDefinition := &RoleDefinition{
ODataType: "#microsoft.graph.RoleDefinition",
}
return newRoleDefinition, nil
}
// RoleManagement undocumented
type RoleManagement struct {
// Object is the base model of RoleManagement
Object
ODataType string `json:"@odata.type,omitempty"`
// Directory undocumented
Directory *RbacApplication `json:"directory,omitempty"`
// EntitlementManagement undocumented
EntitlementManagement *RbacApplication `json:"entitlementManagement,omitempty"`
}
func NewRoleManagement() (*RoleManagement, error) {
newRoleManagement := &RoleManagement{
ODataType: "#microsoft.graph.RoleManagement",
}
return newRoleManagement, nil
}
// RolePermission undocumented
type RolePermission struct {
// Object is the base model of RolePermission
Object
ODataType string `json:"@odata.type,omitempty"`
// ResourceActions undocumented
ResourceActions []ResourceAction `json:"resourceActions,omitempty"`
}
func NewRolePermission() (*RolePermission, error) {
newRolePermission := &RolePermission{
ODataType: "#microsoft.graph.RolePermission",
}
return newRolePermission, nil
}