Class AppRole

java.lang.Object
com.microsoft.graph.models.AppRole
All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject

public class AppRole extends Object implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the App Role.
  • Field Details

    • oDataType

      @SerializedName("@odata.type") @Expose @Nullable public String oDataType
      the OData type of the object as returned by the service
    • allowedMemberTypes

      @SerializedName(value="allowedMemberTypes", alternate="AllowedMemberTypes") @Expose @Nullable public List<String> allowedMemberTypes
      The 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 description
      The 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 displayName
      The Display Name. Display name for the permission that appears in the app role assignment and consent experiences.
    • id

      @SerializedName(value="id", alternate="Id") @Expose @Nullable public UUID 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 isEnabled
      The 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

      @SerializedName(value="origin", alternate="Origin") @Expose @Nullable public String 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

      @SerializedName(value="value", alternate="Value") @Expose @Nullable public String 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 interface com.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 interface com.microsoft.graph.serializer.IJsonBackedObject
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to