你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MicrosoftGraphAppRole Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphAppRole
- com.
Implements
public final class MicrosoftGraphAppRole
implements JsonSerializable<MicrosoftGraphAppRole>
appRole.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphAppRole() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
List<String> |
allowedMemberTypes()
Get the allowed |
String |
description()
Get the description property: The description for the app role. |
String |
displayName()
Get the display |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
UUID |
id()
Get the id property: Unique role identifier inside the app |
Boolean |
isEnabled()
Get the is |
String |
origin()
Get the origin property: Specifies if the app role is defined on the application object or on the service |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
value()
Get the value property: Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withAllowedMemberTypes(List<String> allowedMemberTypes)
Set the allowed |
Microsoft |
withDescription(String description)
Set the description property: The description for the app role. |
Microsoft |
withDisplayName(String displayName)
Set the display |
Microsoft |
withId(UUID id)
Set the id property: Unique role identifier inside the app |
Microsoft |
withIsEnabled(Boolean isEnabled)
Set the is |
Microsoft |
withOrigin(String origin)
Set the origin property: Specifies if the app role is defined on the application object or on the service |
Microsoft |
withValue(String value)
Set the value property: Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. |
Methods inherited from java.lang.Object
Constructor Details
MicrosoftGraphAppRole
public MicrosoftGraphAppRole()
Creates an instance of MicrosoftGraphAppRole class.
Method Details
additionalProperties
public Map
Get the additionalProperties property: appRole.
Returns:
allowedMemberTypes
public List
Get the allowedMemberTypes property: Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']). App roles supporting assignment to other applications' service principals are also known as application permissions. The 'Application' value is only supported for app roles defined on application entities.
Returns:
description
public String description()
Get the description property: The description for the app role. This is displayed when the app role is being assigned and, if the app role functions as an application permission, during consent experiences.
Returns:
displayName
public String displayName()
Get the displayName property: Display name for the permission that appears in the app role assignment and consent experiences.
Returns:
fromJson
public static MicrosoftGraphAppRole fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphAppRole from the JsonReader.
Parameters:
Returns:
Throws:
id
public UUID id()
Get the id property: Unique role identifier inside the appRoles collection. When creating a new app role, a new Guid identifier must be provided.
Returns:
isEnabled
public Boolean isEnabled()
Get the isEnabled property: When creating or updating an app role, this must be set to true (which is the default). To delete a role, this must first be set to false. At that point, in a subsequent call, this role may be removed.
Returns:
origin
public String origin()
Get the origin property: Specifies if the app role is defined on the application object or on the servicePrincipal entity. Must not be included in any POST or PATCH requests. Read-only.
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. 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 MicrosoftGraphAppRole withAdditionalProperties(Map
Set the additionalProperties property: appRole.
Parameters:
Returns:
withAllowedMemberTypes
public MicrosoftGraphAppRole withAllowedMemberTypes(List
Set the allowedMemberTypes property: Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']). App roles supporting assignment to other applications' service principals are also known as application permissions. The 'Application' value is only supported for app roles defined on application entities.
Parameters:
Returns:
withDescription
public MicrosoftGraphAppRole withDescription(String description)
Set the description property: The description for the app role. This is displayed when the app role is being assigned and, if the app role functions as an application permission, during consent experiences.
Parameters:
Returns:
withDisplayName
public MicrosoftGraphAppRole withDisplayName(String displayName)
Set the displayName property: Display name for the permission that appears in the app role assignment and consent experiences.
Parameters:
Returns:
withId
public MicrosoftGraphAppRole withId(UUID id)
Set the id property: Unique role identifier inside the appRoles collection. When creating a new app role, a new Guid identifier must be provided.
Parameters:
Returns:
withIsEnabled
public MicrosoftGraphAppRole withIsEnabled(Boolean isEnabled)
Set the isEnabled property: When creating or updating an app role, this must be set to true (which is the default). To delete a role, this must first be set to false. At that point, in a subsequent call, this role may be removed.
Parameters:
Returns:
withOrigin
public MicrosoftGraphAppRole withOrigin(String origin)
Set the origin property: Specifies if the app role is defined on the application object or on the servicePrincipal entity. Must not be included in any POST or PATCH requests. Read-only.
Parameters:
Returns:
withValue
public MicrosoftGraphAppRole withValue(String value)
Set the value property: Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. 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: