github.com/yaegashi/msgraph.go@v0.1.4/beta/ModelRole.go (about) 1 // Code generated by msgraph.go/gen DO NOT EDIT. 2 3 package msgraph 4 5 // RoleAssignment The Role Assignment resource. Role assignments tie together a role definition with members and scopes. There can be one or more role assignments per role. This applies to custom and built-in roles. 6 type RoleAssignment struct { 7 // Entity is the base model of RoleAssignment 8 Entity 9 // DisplayName The display or friendly name of the role Assignment. 10 DisplayName *string `json:"displayName,omitempty"` 11 // Description Description of the Role Assignment. 12 Description *string `json:"description,omitempty"` 13 // ScopeMembers List of ids of role scope member security groups. These are IDs from Azure Active Directory. 14 ScopeMembers []string `json:"scopeMembers,omitempty"` 15 // ScopeType Specifies the type of scope for a Role Assignment. Default type 'ResourceScope' allows assignment of ResourceScopes. For 'AllDevices', 'AllLicensedUsers', and 'AllDevicesAndLicensedUsers', the ResourceScopes property should be left empty. 16 ScopeType *RoleAssignmentScopeType `json:"scopeType,omitempty"` 17 // ResourceScopes List of ids of role scope member security groups. These are IDs from Azure Active Directory. 18 ResourceScopes []string `json:"resourceScopes,omitempty"` 19 // RoleDefinition undocumented 20 RoleDefinition *RoleDefinition `json:"roleDefinition,omitempty"` 21 } 22 23 // RoleDefinition The Role Definition resource. The role definition is the foundation of role based access in Intune. The role combines an Intune resource such as a Mobile App and associated role permissions such as Create or Read for the resource. There are two types of roles, built-in and custom. Built-in roles cannot be modified. Both built-in roles and custom roles must have assignments to be enforced. Create custom roles if you want to define a role that allows any of the available resources and role permissions to be combined into a single role. 24 type RoleDefinition struct { 25 // Entity is the base model of RoleDefinition 26 Entity 27 // DisplayName Display Name of the Role definition. 28 DisplayName *string `json:"displayName,omitempty"` 29 // Description Description of the Role definition. 30 Description *string `json:"description,omitempty"` 31 // Permissions List of Role Permissions this role is allowed to perform. These must match the actionName that is defined as part of the rolePermission. 32 Permissions []RolePermission `json:"permissions,omitempty"` 33 // RolePermissions List of Role Permissions this role is allowed to perform. These must match the actionName that is defined as part of the rolePermission. 34 RolePermissions []RolePermission `json:"rolePermissions,omitempty"` 35 // IsBuiltInRoleDefinition Type of Role. Set to True if it is built-in, or set to False if it is a custom role definition. 36 IsBuiltInRoleDefinition *bool `json:"isBuiltInRoleDefinition,omitempty"` 37 // IsBuiltIn Type of Role. Set to True if it is built-in, or set to False if it is a custom role definition. 38 IsBuiltIn *bool `json:"isBuiltIn,omitempty"` 39 // RoleScopeTagIDs List of Scope Tags for this Entity instance. 40 RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` 41 // RoleAssignments undocumented 42 RoleAssignments []RoleAssignment `json:"roleAssignments,omitempty"` 43 } 44 45 // RoleManagement undocumented 46 type RoleManagement struct { 47 // Entity is the base model of RoleManagement 48 Entity 49 // Directory undocumented 50 Directory *RbacApplication `json:"directory,omitempty"` 51 } 52 53 // RoleMembershipGovernanceCriteria undocumented 54 type RoleMembershipGovernanceCriteria struct { 55 // GovernanceCriteria is the base model of RoleMembershipGovernanceCriteria 56 GovernanceCriteria 57 // RoleID undocumented 58 RoleID *string `json:"roleId,omitempty"` 59 // RoleTemplateID undocumented 60 RoleTemplateID *string `json:"roleTemplateId,omitempty"` 61 } 62 63 // RolePermission undocumented 64 type RolePermission struct { 65 // Object is the base model of RolePermission 66 Object 67 // Actions Allowed Actions - Deprecated 68 Actions []string `json:"actions,omitempty"` 69 // ResourceActions Resource Actions each containing a set of allowed and not allowed permissions. 70 ResourceActions []ResourceAction `json:"resourceActions,omitempty"` 71 } 72 73 // RoleScopeTag Role Scope Tag 74 type RoleScopeTag struct { 75 // Entity is the base model of RoleScopeTag 76 Entity 77 // DisplayName The display or friendly name of the Role Scope Tag. 78 DisplayName *string `json:"displayName,omitempty"` 79 // Description Description of the Role Scope Tag. 80 Description *string `json:"description,omitempty"` 81 // IsBuiltIn Description of the Role Scope Tag. 82 IsBuiltIn *bool `json:"isBuiltIn,omitempty"` 83 // Assignments undocumented 84 Assignments []RoleScopeTagAutoAssignment `json:"assignments,omitempty"` 85 } 86 87 // RoleScopeTagAutoAssignment Contains the properties for auto-assigning a Role Scope Tag to a group to be applied to Devices. 88 type RoleScopeTagAutoAssignment struct { 89 // Entity is the base model of RoleScopeTagAutoAssignment 90 Entity 91 // Target The auto-assignment target for the specific Role Scope Tag. 92 Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` 93 } 94 95 // RoleScopeTagInfo undocumented 96 type RoleScopeTagInfo struct { 97 // Object is the base model of RoleScopeTagInfo 98 Object 99 // DisplayName Scope Tag Display name. 100 DisplayName *string `json:"displayName,omitempty"` 101 // RoleScopeTagID Scope Tag Id. 102 RoleScopeTagID *string `json:"roleScopeTagId,omitempty"` 103 } 104 105 // RoleSuccessStatistics undocumented 106 type RoleSuccessStatistics struct { 107 // Object is the base model of RoleSuccessStatistics 108 Object 109 // RoleID undocumented 110 RoleID *string `json:"roleId,omitempty"` 111 // RoleName undocumented 112 RoleName *string `json:"roleName,omitempty"` 113 // TemporarySuccess undocumented 114 TemporarySuccess *int `json:"temporarySuccess,omitempty"` 115 // TemporaryFail undocumented 116 TemporaryFail *int `json:"temporaryFail,omitempty"` 117 // PermanentSuccess undocumented 118 PermanentSuccess *int `json:"permanentSuccess,omitempty"` 119 // PermanentFail undocumented 120 PermanentFail *int `json:"permanentFail,omitempty"` 121 // RemoveSuccess undocumented 122 RemoveSuccess *int `json:"removeSuccess,omitempty"` 123 // RemoveFail undocumented 124 RemoveFail *int `json:"removeFail,omitempty"` 125 // UnknownFail undocumented 126 UnknownFail *int `json:"unknownFail,omitempty"` 127 }