Package com.microsoft.graph.models
Class PermissionScope
java.lang.Object
com.microsoft.graph.models.PermissionScope
- All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject
public class PermissionScope
extends Object
implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the Permission Scope.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe Admin Consent Description.The Admin Consent Display Name.The Id.The Is Enabled.the OData type of the object as returned by the serviceThe Origin.The Type.The User Consent Description.The User Consent Display Name.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 -
adminConsentDescription
@SerializedName(value="adminConsentDescription", alternate="AdminConsentDescription") @Expose @Nullable public String adminConsentDescriptionThe Admin Consent Description. A description of the delegated permissions, intended to be read by an administrator granting the permission on behalf of all users. This text appears in tenant-wide admin consent experiences. -
adminConsentDisplayName
@SerializedName(value="adminConsentDisplayName", alternate="AdminConsentDisplayName") @Expose @Nullable public String adminConsentDisplayNameThe Admin Consent Display Name. The permission's title, intended to be read by an administrator granting the permission on behalf of all users. -
id
The Id. Unique delegated permission identifier inside the collection of delegated permissions defined for a resource application. -
isEnabled
@SerializedName(value="isEnabled", alternate="IsEnabled") @Expose @Nullable public Boolean isEnabledThe Is Enabled. When creating or updating a permission, this property must be set to true (which is the default). To delete a permission, this property must first be set to false. At that point, in a subsequent call, the permission may be removed. -
origin
The Origin. -
type
The Type. The possible values are: User and Admin. Specifies whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator consent should always be required. While Microsoft Graph defines the default consent requirement for each permission, the tenant administrator may override the behavior in their organization (by allowing, restricting, or limiting user consent to this delegated permission). For more information, see Configure how users consent to applications. -
userConsentDescription
@SerializedName(value="userConsentDescription", alternate="UserConsentDescription") @Expose @Nullable public String userConsentDescriptionThe User Consent Description. A description of the delegated permissions, intended to be read by a user granting the permission on their own behalf. This text appears in consent experiences where the user is consenting only on behalf of themselves. -
userConsentDisplayName
@SerializedName(value="userConsentDisplayName", alternate="UserConsentDisplayName") @Expose @Nullable public String userConsentDisplayNameThe User Consent Display Name. A title for the permission, intended to be read by a user granting the permission on their own behalf. This text appears in consent experiences where the user is consenting only on behalf of themselves. -
value
The Value. Specifies the value to include in the scp (scope) claim in access tokens. 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
-
PermissionScope
public PermissionScope()
-
-
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
-