Package com.microsoft.graph.models
Class UnifiedRoleAssignment
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.UnifiedRoleAssignment
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class UnifiedRoleAssignment
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UnifiedRoleAssignment
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the appScope property value.Gets the appScopeId property value.Gets the condition property value.Gets the directoryScope property value.Gets the directoryScopeId property value.The deserialization information for the current modelGets the principal property value.Gets the principalId property value.Gets the roleDefinition property value.Gets the roleDefinitionId property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setAppScope
(AppScope value) Sets the appScope property value.void
setAppScopeId
(String value) Sets the appScopeId property value.void
setCondition
(String value) Sets the condition property value.void
setDirectoryScope
(DirectoryObject value) Sets the directoryScope property value.void
setDirectoryScopeId
(String value) Sets the directoryScopeId property value.void
setPrincipal
(DirectoryObject value) Sets the principal property value.void
setPrincipalId
(String value) Sets the principalId property value.void
Sets the roleDefinition property value.void
setRoleDefinitionId
(String value) Sets the roleDefinitionId property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
UnifiedRoleAssignment
public UnifiedRoleAssignment()Instantiates a newUnifiedRoleAssignment
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static UnifiedRoleAssignment createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode
- The parse node to use to read the discriminator value and create the object- Returns:
- a
UnifiedRoleAssignment
-
getAppScope
Gets the appScope property value. Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only.- Returns:
- a
AppScope
-
getAppScopeId
Gets the appScopeId property value. Identifier of the app specific scope when the assignment scope is app specific. The scope of an assignment determines the set of resources for which the principal has been granted access. App scopes are scopes that are defined and understood by a resource application only. For the entitlement management provider, use this property to specify a catalog. For example, /AccessPackageCatalog/beedadfe-01d5-4025-910b-84abb9369997. Supports $filter (eq, in). For example, /roleManagement/entitlementManagement/roleAssignments?$filter=appScopeId eq '/AccessPackageCatalog/{catalog id}'.- Returns:
- a
String
-
getCondition
Gets the condition property value. The condition property- Returns:
- a
String
-
getDirectoryScope
Gets the directoryScope property value. The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider.- Returns:
- a
DirectoryObject
-
getDirectoryScopeId
Gets the directoryScopeId property value. Identifier of the directory object representing the scope of the assignment. The scope of an assignment determines the set of resources for which the principal has been granted access. Directory scopes are shared scopes stored in the directory that are understood by multiple applications, unlike app scopes that are defined and understood by a resource application only. Supports $filter (eq, in).- Returns:
- a
String
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializers
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getPrincipal
Gets the principal property value. Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider.- Returns:
- a
DirectoryObject
-
getPrincipalId
Gets the principalId property value. Identifier of the principal to which the assignment is granted. Supported principals are users, role-assignable groups, and service principals. Supports $filter (eq, in).- Returns:
- a
String
-
getRoleDefinition
Gets the roleDefinition property value. The roleDefinition the assignment is for. Supports $expand.- Returns:
- a
UnifiedRoleDefinition
-
getRoleDefinitionId
Gets the roleDefinitionId property value. Identifier of the unifiedRoleDefinition the assignment is for. Read-only. Supports $filter (eq, in).- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setAppScope
Sets the appScope property value. Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only.- Parameters:
value
- Value to set for the appScope property.
-
setAppScopeId
Sets the appScopeId property value. Identifier of the app specific scope when the assignment scope is app specific. The scope of an assignment determines the set of resources for which the principal has been granted access. App scopes are scopes that are defined and understood by a resource application only. For the entitlement management provider, use this property to specify a catalog. For example, /AccessPackageCatalog/beedadfe-01d5-4025-910b-84abb9369997. Supports $filter (eq, in). For example, /roleManagement/entitlementManagement/roleAssignments?$filter=appScopeId eq '/AccessPackageCatalog/{catalog id}'.- Parameters:
value
- Value to set for the appScopeId property.
-
setCondition
Sets the condition property value. The condition property- Parameters:
value
- Value to set for the condition property.
-
setDirectoryScope
Sets the directoryScope property value. The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider.- Parameters:
value
- Value to set for the directoryScope property.
-
setDirectoryScopeId
Sets the directoryScopeId property value. Identifier of the directory object representing the scope of the assignment. The scope of an assignment determines the set of resources for which the principal has been granted access. Directory scopes are shared scopes stored in the directory that are understood by multiple applications, unlike app scopes that are defined and understood by a resource application only. Supports $filter (eq, in).- Parameters:
value
- Value to set for the directoryScopeId property.
-
setPrincipal
Sets the principal property value. Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider.- Parameters:
value
- Value to set for the principal property.
-
setPrincipalId
Sets the principalId property value. Identifier of the principal to which the assignment is granted. Supported principals are users, role-assignable groups, and service principals. Supports $filter (eq, in).- Parameters:
value
- Value to set for the principalId property.
-
setRoleDefinition
Sets the roleDefinition property value. The roleDefinition the assignment is for. Supports $expand.- Parameters:
value
- Value to set for the roleDefinition property.
-
setRoleDefinitionId
Sets the roleDefinitionId property value. Identifier of the unifiedRoleDefinition the assignment is for. Read-only. Supports $filter (eq, in).- Parameters:
value
- Value to set for the roleDefinitionId property.
-