MicrosoftGraphAppRoleAssignment Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphEntity - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphDirectoryObjectInner - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphAppRoleAssignment
- com.
- com.
- com.
public final class MicrosoftGraphAppRoleAssignment
extends MicrosoftGraphDirectoryObjectInner
appRoleAssignment Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphAppRoleAssignment() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
UUID |
appRoleId()
Get the app |
Offset |
createdDateTime()
Get the created |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
String |
principalDisplayName()
Get the principal |
UUID |
principalId()
Get the principal |
String |
principalType()
Get the principal |
String |
resourceDisplayName()
Get the resource |
UUID |
resourceId()
Get the resource |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withAppRoleId(UUID appRoleId)
Set the app |
Microsoft |
withCreatedDateTime(OffsetDateTime createdDateTime)
Set the created |
Microsoft |
withDeletedDateTime(OffsetDateTime deletedDateTime)
Set the deleted |
Microsoft |
withId(String id)
Set the id property: Read-only. |
Microsoft |
withPrincipalDisplayName(String principalDisplayName)
Set the principal |
Microsoft |
withPrincipalId(UUID principalId)
Set the principal |
Microsoft |
withPrincipalType(String principalType)
Set the principal |
Microsoft |
withResourceDisplayName(String resourceDisplayName)
Set the resource |
Microsoft |
withResourceId(UUID resourceId)
Set the resource |
Methods inherited from MicrosoftGraphDirectoryObjectInner
Methods inherited from MicrosoftGraphEntity
Methods inherited from java.lang.Object
Constructor Details
MicrosoftGraphAppRoleAssignment
public MicrosoftGraphAppRoleAssignment()
Creates an instance of MicrosoftGraphAppRoleAssignment class.
Method Details
additionalProperties
public Map
Get the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
Overrides:
MicrosoftGraphAppRoleAssignment.additionalProperties()Returns:
appRoleId
public UUID appRoleId()
Get the appRoleId property: The identifier (id) for the app role which is assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application has not declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create. Does not support $filter.
Returns:
createdDateTime
public OffsetDateTime createdDateTime()
Get the createdDateTime property: The createdDateTime property.
Returns:
fromJson
public static MicrosoftGraphAppRoleAssignment fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphAppRoleAssignment from the JsonReader.
Parameters:
Returns:
Throws:
principalDisplayName
public String principalDisplayName()
Get the principalDisplayName property: The display name of the user, group, or service principal that was granted the app role assignment. Read-only. Supports $filter (eq and startswith).
Returns:
principalId
public UUID principalId()
Get the principalId property: The unique identifier (id) for the user, group or service principal being granted the app role. Required on create. Does not support $filter.
Returns:
principalType
public String principalType()
Get the principalType property: The type of the assigned principal. This can either be 'User', 'Group' or 'ServicePrincipal'. Read-only. Does not support $filter.
Returns:
resourceDisplayName
public String resourceDisplayName()
Get the resourceDisplayName property: The display name of the resource app's service principal to which the assignment is made. Does not support $filter.
Returns:
resourceId
public UUID resourceId()
Get the resourceId property: The unique identifier (id) for the resource service principal for which the assignment is made. Required on create. Supports $filter (eq only).
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MicrosoftGraphAppRoleAssignment.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
MicrosoftGraphAppRoleAssignment.validate()withAdditionalProperties
public MicrosoftGraphAppRoleAssignment withAdditionalProperties(Map
Set the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
Overrides:
MicrosoftGraphAppRoleAssignment.withAdditionalProperties(Map<String,Object> additionalProperties)Parameters:
Returns:
withAppRoleId
public MicrosoftGraphAppRoleAssignment withAppRoleId(UUID appRoleId)
Set the appRoleId property: The identifier (id) for the app role which is assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application has not declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create. Does not support $filter.
Parameters:
Returns:
withCreatedDateTime
public MicrosoftGraphAppRoleAssignment withCreatedDateTime(OffsetDateTime createdDateTime)
Set the createdDateTime property: The createdDateTime property.
Parameters:
Returns:
withDeletedDateTime
public MicrosoftGraphAppRoleAssignment withDeletedDateTime(OffsetDateTime deletedDateTime)
Set the deletedDateTime property: The deletedDateTime property.
Overrides:
MicrosoftGraphAppRoleAssignment.withDeletedDateTime(OffsetDateTime deletedDateTime)Parameters:
withId
public MicrosoftGraphAppRoleAssignment withId(String id)
Set the id property: Read-only.
Overrides:
MicrosoftGraphAppRoleAssignment.withId(String id)Parameters:
withPrincipalDisplayName
public MicrosoftGraphAppRoleAssignment withPrincipalDisplayName(String principalDisplayName)
Set the principalDisplayName property: The display name of the user, group, or service principal that was granted the app role assignment. Read-only. Supports $filter (eq and startswith).
Parameters:
Returns:
withPrincipalId
public MicrosoftGraphAppRoleAssignment withPrincipalId(UUID principalId)
Set the principalId property: The unique identifier (id) for the user, group or service principal being granted the app role. Required on create. Does not support $filter.
Parameters:
Returns:
withPrincipalType
public MicrosoftGraphAppRoleAssignment withPrincipalType(String principalType)
Set the principalType property: The type of the assigned principal. This can either be 'User', 'Group' or 'ServicePrincipal'. Read-only. Does not support $filter.
Parameters:
Returns:
withResourceDisplayName
public MicrosoftGraphAppRoleAssignment withResourceDisplayName(String resourceDisplayName)
Set the resourceDisplayName property: The display name of the resource app's service principal to which the assignment is made. Does not support $filter.
Parameters:
Returns:
withResourceId
public MicrosoftGraphAppRoleAssignment withResourceId(UUID resourceId)
Set the resourceId property: The unique identifier (id) for the resource service principal for which the assignment is made. Required on create. Supports $filter (eq only).
Parameters:
Returns:
Applies to
Azure SDK for Java