你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MicrosoftGraphPermission Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphEntity - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphPermission
- com.
- com.
public final class MicrosoftGraphPermission
extends MicrosoftGraphEntity
permission.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphPermission() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
Offset |
expirationDateTime()
Get the expiration |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
Microsoft |
grantedTo()
Get the granted |
List<Microsoft |
grantedToIdentities()
Get the granted |
Boolean |
hasPassword()
Get the has |
Microsoft |
inheritedFrom()
Get the inherited |
Microsoft |
invitation()
Get the invitation property: sharing |
Microsoft |
link()
Get the link property: sharing |
List<String> |
roles()
Get the roles property: The type of permission, e. |
String |
shareId()
Get the share |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withExpirationDateTime(OffsetDateTime expirationDateTime)
Set the expiration |
Microsoft |
withGrantedTo(MicrosoftGraphIdentitySet grantedTo)
Set the granted |
Microsoft |
withGrantedToIdentities(List<MicrosoftGraphIdentitySet> grantedToIdentities)
Set the granted |
Microsoft |
withHasPassword(Boolean hasPassword)
Set the has |
Microsoft |
withId(String id)
Set the id property: Read-only. |
Microsoft |
withInheritedFrom(MicrosoftGraphItemReference inheritedFrom)
Set the inherited |
Microsoft |
withInvitation(MicrosoftGraphSharingInvitation invitation)
Set the invitation property: sharing |
Microsoft |
withLink(MicrosoftGraphSharingLink link)
Set the link property: sharing |
Microsoft |
withRoles(List<String> roles)
Set the roles property: The type of permission, e. |
Microsoft |
withShareId(String shareId)
Set the share |
Methods inherited from MicrosoftGraphEntity
Methods inherited from java.lang.Object
Constructor Details
MicrosoftGraphPermission
public MicrosoftGraphPermission()
Creates an instance of MicrosoftGraphPermission class.
Method Details
additionalProperties
public Map
Get the additionalProperties property: permission.
Overrides:
MicrosoftGraphPermission.additionalProperties()Returns:
expirationDateTime
public OffsetDateTime expirationDateTime()
Get the expirationDateTime property: A format of yyyy-MM-ddTHH:mm:ssZ of DateTimeOffset indicates the expiration time of the permission. DateTime.MinValue indicates there is no expiration set for this permission. Optional.
Returns:
fromJson
public static MicrosoftGraphPermission fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphPermission from the JsonReader.
Parameters:
Returns:
Throws:
grantedTo
public MicrosoftGraphIdentitySet grantedTo()
Get the grantedTo property: identitySet.
Returns:
grantedToIdentities
public List
Get the grantedToIdentities property: For link type permissions, the details of the users to whom permission was granted. Read-only.
Returns:
hasPassword
public Boolean hasPassword()
Get the hasPassword property: This indicates whether password is set for this permission, it's only showing in response. Optional and Read-only and for OneDrive Personal only.
Returns:
inheritedFrom
public MicrosoftGraphItemReference inheritedFrom()
Get the inheritedFrom property: itemReference.
Returns:
invitation
public MicrosoftGraphSharingInvitation invitation()
Get the invitation property: sharingInvitation.
Returns:
link
public MicrosoftGraphSharingLink link()
Get the link property: sharingLink.
Returns:
roles
public List
Get the roles property: The type of permission, e.g. read. See below for the full list of roles. Read-only.
Returns:
shareId
public String shareId()
Get the shareId property: A unique token that can be used to access this shared item via the **shares** API. Read-only.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MicrosoftGraphPermission.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
MicrosoftGraphPermission.validate()withAdditionalProperties
public MicrosoftGraphPermission withAdditionalProperties(Map
Set the additionalProperties property: permission.
Overrides:
MicrosoftGraphPermission.withAdditionalProperties(Map<String,Object> additionalProperties)Parameters:
Returns:
withExpirationDateTime
public MicrosoftGraphPermission withExpirationDateTime(OffsetDateTime expirationDateTime)
Set the expirationDateTime property: A format of yyyy-MM-ddTHH:mm:ssZ of DateTimeOffset indicates the expiration time of the permission. DateTime.MinValue indicates there is no expiration set for this permission. Optional.
Parameters:
Returns:
withGrantedTo
public MicrosoftGraphPermission withGrantedTo(MicrosoftGraphIdentitySet grantedTo)
Set the grantedTo property: identitySet.
Parameters:
Returns:
withGrantedToIdentities
public MicrosoftGraphPermission withGrantedToIdentities(List
Set the grantedToIdentities property: For link type permissions, the details of the users to whom permission was granted. Read-only.
Parameters:
Returns:
withHasPassword
public MicrosoftGraphPermission withHasPassword(Boolean hasPassword)
Set the hasPassword property: This indicates whether password is set for this permission, it's only showing in response. Optional and Read-only and for OneDrive Personal only.
Parameters:
Returns:
withId
public MicrosoftGraphPermission withId(String id)
Set the id property: Read-only.
Overrides:
MicrosoftGraphPermission.withId(String id)Parameters:
withInheritedFrom
public MicrosoftGraphPermission withInheritedFrom(MicrosoftGraphItemReference inheritedFrom)
Set the inheritedFrom property: itemReference.
Parameters:
Returns:
withInvitation
public MicrosoftGraphPermission withInvitation(MicrosoftGraphSharingInvitation invitation)
Set the invitation property: sharingInvitation.
Parameters:
Returns:
withLink
public MicrosoftGraphPermission withLink(MicrosoftGraphSharingLink link)
Set the link property: sharingLink.
Parameters:
Returns:
withRoles
public MicrosoftGraphPermission withRoles(List
Set the roles property: The type of permission, e.g. read. See below for the full list of roles. Read-only.
Parameters:
Returns:
withShareId
public MicrosoftGraphPermission withShareId(String shareId)
Set the shareId property: A unique token that can be used to access this shared item via the **shares** API. Read-only.
Parameters:
Returns: