Package com.microsoft.graph.models
Class PermissionScope
java.lang.Object
com.microsoft.graph.models.PermissionScope
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class PermissionScope
extends Object
implements com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.store.BackedModel, com.microsoft.kiota.serialization.Parsable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.microsoft.kiota.store.BackingStoreStores model information. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PermissionScopecreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the AdditionalData property value.Gets the adminConsentDescription property value.Gets the adminConsentDisplayName property value.com.microsoft.kiota.store.BackingStoreGets the backingStore property value.The deserialization information for the current modelgetId()Gets the id property value.Gets the isEnabled property value.Gets the @odata.type property value.Gets the origin property value.getType()Gets the type property value.Gets the userConsentDescription property value.Gets the userConsentDisplayName property value.getValue()Gets the value property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAdditionalData(Map<String, Object> value) Sets the AdditionalData property value.voidsetAdminConsentDescription(String value) Sets the adminConsentDescription property value.voidsetAdminConsentDisplayName(String value) Sets the adminConsentDisplayName property value.voidsetBackingStore(com.microsoft.kiota.store.BackingStore value) Sets the backingStore property value.voidSets the id property value.voidsetIsEnabled(Boolean value) Sets the isEnabled property value.voidsetOdataType(String value) Sets the @odata.type property value.voidSets the origin property value.voidSets the type property value.voidsetUserConsentDescription(String value) Sets the userConsentDescription property value.voidsetUserConsentDisplayName(String value) Sets the userConsentDisplayName property value.voidSets the value property value.
-
Field Details
-
backingStore
@Nonnull protected com.microsoft.kiota.store.BackingStore backingStoreStores model information.
-
-
Constructor Details
-
PermissionScope
public PermissionScope()Instantiates a newPermissionScopeand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static PermissionScope createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode- The parse node to use to read the discriminator value and create the object- Returns:
- a
PermissionScope
-
getAdditionalData
Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -
getAdminConsentDescription
Gets the adminConsentDescription property value. 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.- Returns:
- a
String
-
getAdminConsentDisplayName
Gets the adminConsentDisplayName property value. The permission's title, intended to be read by an administrator granting the permission on behalf of all users.- Returns:
- a
String
-
getBackingStore
@Nonnull public com.microsoft.kiota.store.BackingStore getBackingStore()Gets the backingStore property value. Stores model information.- Specified by:
getBackingStorein interfacecom.microsoft.kiota.store.BackedModel- Returns:
- a
BackingStore
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model -
getId
Gets the id property value. Unique delegated permission identifier inside the collection of delegated permissions defined for a resource application.- Returns:
- a
UUID
-
getIsEnabled
Gets the isEnabled property value. When you create or update 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.- Returns:
- a
Boolean
-
getOdataType
Gets the @odata.type property value. The OdataType property- Returns:
- a
String
-
getOrigin
Gets the origin property value. The origin property- Returns:
- a
String
-
getType
Gets the type property value. 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.- Returns:
- a
String
-
getUserConsentDescription
Gets the userConsentDescription property value. 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.- Returns:
- a
String
-
getUserConsentDisplayName
Gets the userConsentDisplayName property value. 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.- Returns:
- a
String
-
getValue
Gets the value property value. Specifies the value to include in the scp (scope) claim in access tokens. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , - . / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, aren't allowed. May not begin with ..- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Parameters:
writer- Serialization writer to use to serialize this model
-
setAdditionalData
Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.- Parameters:
value- Value to set for the AdditionalData property.
-
setAdminConsentDescription
Sets the adminConsentDescription property value. 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.- Parameters:
value- Value to set for the adminConsentDescription property.
-
setAdminConsentDisplayName
Sets the adminConsentDisplayName property value. The permission's title, intended to be read by an administrator granting the permission on behalf of all users.- Parameters:
value- Value to set for the adminConsentDisplayName property.
-
setBackingStore
public void setBackingStore(@Nonnull com.microsoft.kiota.store.BackingStore value) Sets the backingStore property value. Stores model information.- Parameters:
value- Value to set for the backingStore property.
-
setId
Sets the id property value. Unique delegated permission identifier inside the collection of delegated permissions defined for a resource application.- Parameters:
value- Value to set for the id property.
-
setIsEnabled
Sets the isEnabled property value. When you create or update 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.- Parameters:
value- Value to set for the isEnabled property.
-
setOdataType
Sets the @odata.type property value. The OdataType property- Parameters:
value- Value to set for the @odata.type property.
-
setOrigin
Sets the origin property value. The origin property- Parameters:
value- Value to set for the origin property.
-
setType
Sets the type property value. 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.- Parameters:
value- Value to set for the type property.
-
setUserConsentDescription
Sets the userConsentDescription property value. 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.- Parameters:
value- Value to set for the userConsentDescription property.
-
setUserConsentDisplayName
Sets the userConsentDisplayName property value. 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.- Parameters:
value- Value to set for the userConsentDisplayName property.
-
setValue
Sets the value property value. Specifies the value to include in the scp (scope) claim in access tokens. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , - . / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, aren't allowed. May not begin with ..- Parameters:
value- Value to set for the value property.
-