MicrosoftGraphPermissionScope Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphPermissionScope
- com.
Implements
public final class MicrosoftGraphPermissionScope
implements JsonSerializable<MicrosoftGraphPermissionScope>
permissionScope.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphPermissionScope() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
String |
adminConsentDescription()
Get the admin |
String |
adminConsentDisplayName()
Get the admin |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
UUID |
id()
Get the id property: Unique delegated permission identifier inside the collection of delegated permissions defined for a resource application. |
Boolean |
isEnabled()
Get the is |
String |
origin()
Get the origin property: The origin property. |
Json |
toJson(JsonWriter jsonWriter) |
String |
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. |
String |
userConsentDescription()
Get the user |
String |
userConsentDisplayName()
Get the user |
void |
validate()
Validates the instance. |
String |
value()
Get the value property: Specifies the value to include in the scp (scope) claim in access tokens. |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withAdminConsentDescription(String adminConsentDescription)
Set the admin |
Microsoft |
withAdminConsentDisplayName(String adminConsentDisplayName)
Set the admin |
Microsoft |
withId(UUID id)
Set the id property: Unique delegated permission identifier inside the collection of delegated permissions defined for a resource application. |
Microsoft |
withIsEnabled(Boolean isEnabled)
Set the is |
Microsoft |
withOrigin(String origin)
Set the origin property: The origin property. |
Microsoft |
withType(String type)
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. |
Microsoft |
withUserConsentDescription(String userConsentDescription)
Set the user |
Microsoft |
withUserConsentDisplayName(String userConsentDisplayName)
Set the user |
Microsoft |
withValue(String value)
Set the value property: Specifies the value to include in the scp (scope) claim in access tokens. |
Methods inherited from java.lang.Object
Constructor Details
MicrosoftGraphPermissionScope
public MicrosoftGraphPermissionScope()
Creates an instance of MicrosoftGraphPermissionScope class.
Method Details
additionalProperties
public Map
Get the additionalProperties property: permissionScope.
Returns:
adminConsentDescription
public String 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:
adminConsentDisplayName
public String 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:
fromJson
public static MicrosoftGraphPermissionScope fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphPermissionScope from the JsonReader.
Parameters:
Returns:
Throws:
id
public UUID id()
Get the id property: Unique delegated permission identifier inside the collection of delegated permissions defined for a resource application.
Returns:
isEnabled
public Boolean 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:
origin
public String origin()
Get the origin property: The origin property.
Returns:
toJson
type
public String 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:
userConsentDescription
public String 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:
userConsentDisplayName
public String 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:
validate
public void validate()
Validates the instance.
value
public String 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:
withAdditionalProperties
public MicrosoftGraphPermissionScope withAdditionalProperties(Map
Set the additionalProperties property: permissionScope.
Parameters:
Returns:
withAdminConsentDescription
public MicrosoftGraphPermissionScope 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. This text appears in tenant-wide admin consent experiences.
Parameters:
Returns:
withAdminConsentDisplayName
public MicrosoftGraphPermissionScope 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.
Parameters:
Returns:
withId
public MicrosoftGraphPermissionScope withId(UUID id)
Set the id property: Unique delegated permission identifier inside the collection of delegated permissions defined for a resource application.
Parameters:
Returns:
withIsEnabled
public MicrosoftGraphPermissionScope withIsEnabled(Boolean isEnabled)
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:
Returns:
withOrigin
public MicrosoftGraphPermissionScope withOrigin(String origin)
Set the origin property: The origin property.
Parameters:
Returns:
withType
public MicrosoftGraphPermissionScope withType(String type)
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:
Returns:
withUserConsentDescription
public MicrosoftGraphPermissionScope 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. This text appears in consent experiences where the user is consenting only on behalf of themselves.
Parameters:
Returns:
withUserConsentDisplayName
public MicrosoftGraphPermissionScope 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. This text appears in consent experiences where the user is consenting only on behalf of themselves.
Parameters:
Returns:
withValue
public MicrosoftGraphPermissionScope withValue(String value)
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:
Returns:
Applies to
Azure SDK for Java