Package com.microsoft.graph.models
Class OAuth2PermissionGrant
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.OAuth2PermissionGrant
- All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject
public class OAuth2PermissionGrant
extends Entity
implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the OAuth2Permission Grant.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe Client Id.The Consent Type.The Principal Id.The Resource Id.The Scope. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetRawObject(com.microsoft.graph.serializer.ISerializer serializer, com.google.gson.JsonObject json) Sets the raw JSON objectMethods inherited from class com.microsoft.graph.models.Entity
additionalDataManagerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.microsoft.graph.serializer.IJsonBackedObject
additionalDataManager
-
Field Details
-
clientId
The Client Id. The id of the client service principal for the application which is authorized to act on behalf of a signed-in user when accessing an API. Required. Supports $filter (eq only). -
consentType
@SerializedName(value="consentType", alternate="ConsentType") @Expose @Nullable public String consentTypeThe Consent Type. Indicates if authorization is granted for the client application to impersonate all users or only a specific user. AllPrincipals indicates authorization to impersonate all users. Principal indicates authorization to impersonate a specific user. Consent on behalf of all users can be granted by an administrator. Non-admin users may be authorized to consent on behalf of themselves in some cases, for some delegated permissions. Required. Supports $filter (eq only). -
principalId
@SerializedName(value="principalId", alternate="PrincipalId") @Expose @Nullable public String principalIdThe Principal Id. The id of the user on behalf of whom the client is authorized to access the resource, when consentType is Principal. If consentType is AllPrincipals this value is null. Required when consentType is Principal. Supports $filter (eq only). -
resourceId
@SerializedName(value="resourceId", alternate="ResourceId") @Expose @Nullable public String resourceIdThe Resource Id. The id of the resource service principal to which access is authorized. This identifies the API which the client is authorized to attempt to call on behalf of a signed-in user. Supports $filter (eq only). -
scope
The Scope. A space-separated list of the claim values for delegated permissions which should be included in access tokens for the resource application (the API). For example, openid User.Read GroupMember.Read.All. Each claim value should match the value field of one of the delegated permissions defined by the API, listed in the oauth2PermissionScopes property of the resource service principal. Must not exceed 3850 characters in length.
-
-
Constructor Details
-
OAuth2PermissionGrant
public OAuth2PermissionGrant()
-
-
Method Details
-
setRawObject
public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json) Sets the raw JSON object- Specified by:
setRawObjectin interfacecom.microsoft.graph.serializer.IJsonBackedObject- Overrides:
setRawObjectin classEntity- Parameters:
serializer- the serializerjson- the JSON object to set this object to
-