Class MicrosoftGraphPermissionScope
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphPermissionScope
permissionScope.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphPermissionScope class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: permissionScope.Get the adminConsentDescription property: A description of the delegated permissions, intended to be read by an administrator granting the permission on behalf of all users.Get the adminConsentDisplayName property: The permission's title, intended to be read by an administrator granting the permission on behalf of all users.id()Get the id property: Unique delegated permission identifier inside the collection of delegated permissions defined for a resource application.Get the isEnabled property: When creating or updating a permission, this property must be set to true (which is the default).origin()Get the origin property: The origin property.type()Get the type property: Specifies whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator should be required for consent to the permissions.Get the userConsentDescription property: A description of the delegated permissions, intended to be read by a user granting the permission on their own behalf.Get the userConsentDisplayName property: A title for the permission, intended to be read by a user granting the permission on their own behalf.voidvalidate()Validates the instance.value()Get the value property: Specifies the value to include in the scp (scope) claim in access tokens.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: permissionScope.withAdminConsentDescription(String adminConsentDescription) Set the adminConsentDescription property: A description of the delegated permissions, intended to be read by an administrator granting the permission on behalf of all users.withAdminConsentDisplayName(String adminConsentDisplayName) Set the adminConsentDisplayName property: The permission's title, intended to be read by an administrator granting the permission on behalf of all users.Set the id property: Unique delegated permission identifier inside the collection of delegated permissions defined for a resource application.withIsEnabled(Boolean isEnabled) Set the isEnabled property: When creating or updating a permission, this property must be set to true (which is the default).withOrigin(String origin) Set the origin property: The origin property.Set the type property: Specifies whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator should be required for consent to the permissions.withUserConsentDescription(String userConsentDescription) Set the userConsentDescription property: A description of the delegated permissions, intended to be read by a user granting the permission on their own behalf.withUserConsentDisplayName(String userConsentDisplayName) Set the userConsentDisplayName property: A title for the permission, intended to be read by a user granting the permission on their own behalf.Set the value property: Specifies the value to include in the scp (scope) claim in access tokens.
-
Constructor Details
-
MicrosoftGraphPermissionScope
public MicrosoftGraphPermissionScope()Creates an instance of MicrosoftGraphPermissionScope class.
-
-
Method Details
-
adminConsentDescription
Get the adminConsentDescription property: 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:
- the adminConsentDescription value.
-
withAdminConsentDescription
Set the adminConsentDescription property: 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:
adminConsentDescription- the adminConsentDescription value to set.- Returns:
- the MicrosoftGraphPermissionScope object itself.
-
adminConsentDisplayName
Get the adminConsentDisplayName property: The permission's title, intended to be read by an administrator granting the permission on behalf of all users.- Returns:
- the adminConsentDisplayName value.
-
withAdminConsentDisplayName
Set the adminConsentDisplayName property: The permission's title, intended to be read by an administrator granting the permission on behalf of all users.- Parameters:
adminConsentDisplayName- the adminConsentDisplayName value to set.- Returns:
- the MicrosoftGraphPermissionScope object itself.
-
id
Get the id property: Unique delegated permission identifier inside the collection of delegated permissions defined for a resource application.- Returns:
- the id value.
-
withId
Set the id property: Unique delegated permission identifier inside the collection of delegated permissions defined for a resource application.- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphPermissionScope object itself.
-
isEnabled
Get the isEnabled property: 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.- Returns:
- the isEnabled value.
-
withIsEnabled
Set the isEnabled property: 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.- Parameters:
isEnabled- the isEnabled value to set.- Returns:
- the MicrosoftGraphPermissionScope object itself.
-
origin
Get the origin property: The origin property.- Returns:
- the origin value.
-
withOrigin
Set the origin property: The origin property.- Parameters:
origin- the origin value to set.- Returns:
- the MicrosoftGraphPermissionScope object itself.
-
type
Get the type property: Specifies whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator should be required for consent to the permissions. This will be the default behavior, but each customer can choose to customize the behavior in their organization (by allowing, restricting or limiting user consent to this delegated permission.).- Returns:
- the type value.
-
withType
Set the type property: Specifies whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator should be required for consent to the permissions. This will be the default behavior, but each customer can choose to customize the behavior in their organization (by allowing, restricting or limiting user consent to this delegated permission.).- Parameters:
type- the type value to set.- Returns:
- the MicrosoftGraphPermissionScope object itself.
-
userConsentDescription
Get the userConsentDescription property: 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:
- the userConsentDescription value.
-
withUserConsentDescription
Set the userConsentDescription property: 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:
userConsentDescription- the userConsentDescription value to set.- Returns:
- the MicrosoftGraphPermissionScope object itself.
-
userConsentDisplayName
Get the userConsentDisplayName property: 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:
- the userConsentDisplayName value.
-
withUserConsentDisplayName
Set the userConsentDisplayName property: 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:
userConsentDisplayName- the userConsentDisplayName value to set.- Returns:
- the MicrosoftGraphPermissionScope object itself.
-
value
Get the value property: 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.- Returns:
- the value value.
-
withValue
Set the value property: 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.- Parameters:
value- the value value to set.- Returns:
- the MicrosoftGraphPermissionScope object itself.
-
additionalProperties
Get the additionalProperties property: permissionScope.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphPermissionScope withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: permissionScope.- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphPermissionScope object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-