Package com.microsoft.graph.models
Class AppRole
java.lang.Object
com.microsoft.graph.models.AppRole
- All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject
The class for the App Role.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe Allowed Member Types.The Description.The Display Name.The Id.The Is Enabled.the OData type of the object as returned by the serviceThe Origin.The Value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal com.microsoft.graph.serializer.AdditionalDataManager
void
setRawObject
(com.microsoft.graph.serializer.ISerializer serializer, com.google.gson.JsonObject json) Sets the raw JSON object
-
Field Details
-
oDataType
the OData type of the object as returned by the service -
allowedMemberTypes
@SerializedName(value="allowedMemberTypes", alternate="AllowedMemberTypes") @Expose @Nullable public List<String> allowedMemberTypesThe Allowed Member Types. Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']). App roles supporting assignment to other applications' service principals are also known as application permissions. The 'Application' value is only supported for app roles defined on application entities. -
description
@SerializedName(value="description", alternate="Description") @Expose @Nullable public String descriptionThe Description. The description for the app role. This is displayed when the app role is being assigned and, if the app role functions as an application permission, during consent experiences. -
displayName
@SerializedName(value="displayName", alternate="DisplayName") @Expose @Nullable public String displayNameThe Display Name. Display name for the permission that appears in the app role assignment and consent experiences. -
id
The Id. Unique role identifier inside the appRoles collection. When creating a new app role, a new GUID identifier must be provided. -
isEnabled
@SerializedName(value="isEnabled", alternate="IsEnabled") @Expose @Nullable public Boolean isEnabledThe Is Enabled. When creating or updating an app role, this must be set to true (which is the default). To delete a role, this must first be set to false. At that point, in a subsequent call, this role may be removed. -
origin
The Origin. Specifies if the app role is defined on the application object or on the servicePrincipal entity. Must not be included in any POST or PATCH requests. Read-only. -
value
The Value. Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , - . / : ; = ? @ [ ] ^ + _ { } ~, as well as characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, are not allowed. May not begin with ..
-
-
Constructor Details
-
AppRole
public AppRole()
-
-
Method Details
-
additionalDataManager
@Nonnull public final com.microsoft.graph.serializer.AdditionalDataManager additionalDataManager()- Specified by:
additionalDataManager
in interfacecom.microsoft.graph.serializer.IJsonBackedObject
-
setRawObject
public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json) Sets the raw JSON object- Specified by:
setRawObject
in interfacecom.microsoft.graph.serializer.IJsonBackedObject
- Parameters:
serializer
- the serializerjson
- the JSON object to set this object to
-