你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MicrosoftGraphDrive Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphEntity - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphBaseItemInner - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphDrive
- com.
- com.
- com.
public final class MicrosoftGraphDrive
extends MicrosoftGraphBaseItemInner
drive.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphDrive() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
String |
driveType()
Get the drive |
List<Microsoft |
following()
Get the following property: The list of items the user is following. |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
List<Microsoft |
items()
Get the items property: All items contained in the drive. |
Microsoft |
list()
Get the list property: list. |
Microsoft |
owner()
Get the owner property: identity |
Microsoft |
quota()
Get the quota property: quota. |
Microsoft |
root()
Get the root property: drive |
Microsoft |
sharePointIds()
Get the share |
List<Microsoft |
special()
Get the special property: Collection of common folders available in One |
Map<String,Object> |
system()
Get the system property: system |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withCreatedBy(MicrosoftGraphIdentitySet createdBy)
Set the created |
Microsoft |
withCreatedByUser(MicrosoftGraphUserInner createdByUser)
Set the created |
Microsoft |
withCreatedDateTime(OffsetDateTime createdDateTime)
Set the created |
Microsoft |
withDescription(String description)
Set the description property: Provides a user-visible description of the item. |
Microsoft |
withDriveType(String driveType)
Set the drive |
Microsoft |
withEtag(String etag)
Set the etag property: ETag for the item. |
Microsoft |
withFollowing(List<MicrosoftGraphDriveItem> following)
Set the following property: The list of items the user is following. |
Microsoft |
withId(String id)
Set the id property: Read-only. |
Microsoft |
withItems(List<MicrosoftGraphDriveItem> items)
Set the items property: All items contained in the drive. |
Microsoft |
withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
Set the last |
Microsoft |
withLastModifiedByUser(MicrosoftGraphUserInner lastModifiedByUser)
Set the last |
Microsoft |
withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Set the last |
Microsoft |
withList(MicrosoftGraphList list)
Set the list property: list. |
Microsoft |
withName(String name)
Set the name property: The name of the item. |
Microsoft |
withOwner(MicrosoftGraphIdentitySet owner)
Set the owner property: identity |
Microsoft |
withParentReference(MicrosoftGraphItemReference parentReference)
Set the parent |
Microsoft |
withQuota(MicrosoftGraphQuota quota)
Set the quota property: quota. |
Microsoft |
withRoot(MicrosoftGraphDriveItem root)
Set the root property: drive |
Microsoft |
withSharePointIds(MicrosoftGraphSharepointIds sharePointIds)
Set the share |
Microsoft |
withSpecial(List<MicrosoftGraphDriveItem> special)
Set the special property: Collection of common folders available in One |
Microsoft |
withSystem(Map<String,Object> system)
Set the system property: system |
Microsoft |
withWebUrl(String webUrl)
Set the web |
Methods inherited from MicrosoftGraphBaseItemInner
Methods inherited from MicrosoftGraphEntity
Methods inherited from java.lang.Object
Constructor Details
MicrosoftGraphDrive
public MicrosoftGraphDrive()
Creates an instance of MicrosoftGraphDrive class.
Method Details
additionalProperties
public Map
Get the additionalProperties property: drive.
Overrides:
MicrosoftGraphDrive.additionalProperties()Returns:
driveType
public String driveType()
Get the driveType property: Describes the type of drive represented by this resource. OneDrive personal drives will return personal. OneDrive for Business will return business. SharePoint document libraries will return documentLibrary. Read-only.
Returns:
following
public List
Get the following property: The list of items the user is following. Only in OneDrive for Business.
Returns:
fromJson
public static MicrosoftGraphDrive fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphDrive from the JsonReader.
Parameters:
Returns:
Throws:
items
public List
Get the items property: All items contained in the drive. Read-only. Nullable.
Returns:
list
public MicrosoftGraphList list()
Get the list property: list.
Returns:
owner
public MicrosoftGraphIdentitySet owner()
Get the owner property: identitySet.
Returns:
quota
public MicrosoftGraphQuota quota()
Get the quota property: quota.
Returns:
root
public MicrosoftGraphDriveItem root()
Get the root property: driveItem.
Returns:
sharePointIds
public MicrosoftGraphSharepointIds sharePointIds()
Get the sharePointIds property: sharepointIds.
Returns:
special
public List
Get the special property: Collection of common folders available in OneDrive. Read-only. Nullable.
Returns:
system
public Map
Get the system property: systemFacet.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MicrosoftGraphDrive.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
MicrosoftGraphDrive.validate()withAdditionalProperties
public MicrosoftGraphDrive withAdditionalProperties(Map
Set the additionalProperties property: drive.
Overrides:
MicrosoftGraphDrive.withAdditionalProperties(Map<String,Object> additionalProperties)Parameters:
Returns:
withCreatedBy
public MicrosoftGraphDrive withCreatedBy(MicrosoftGraphIdentitySet createdBy)
Set the createdBy property: identitySet.
Overrides:
MicrosoftGraphDrive.withCreatedBy(MicrosoftGraphIdentitySet createdBy)Parameters:
withCreatedByUser
public MicrosoftGraphDrive withCreatedByUser(MicrosoftGraphUserInner createdByUser)
Set the createdByUser property: Represents an Azure Active Directory user object.
Overrides:
MicrosoftGraphDrive.withCreatedByUser(MicrosoftGraphUserInner createdByUser)Parameters:
withCreatedDateTime
public MicrosoftGraphDrive withCreatedDateTime(OffsetDateTime createdDateTime)
Set the createdDateTime property: Date and time of item creation. Read-only.
Overrides:
MicrosoftGraphDrive.withCreatedDateTime(OffsetDateTime createdDateTime)Parameters:
withDescription
public MicrosoftGraphDrive withDescription(String description)
Set the description property: Provides a user-visible description of the item. Optional.
Overrides:
MicrosoftGraphDrive.withDescription(String description)Parameters:
withDriveType
public MicrosoftGraphDrive withDriveType(String driveType)
Set the driveType property: Describes the type of drive represented by this resource. OneDrive personal drives will return personal. OneDrive for Business will return business. SharePoint document libraries will return documentLibrary. Read-only.
Parameters:
Returns:
withEtag
public MicrosoftGraphDrive withEtag(String etag)
Set the etag property: ETag for the item. Read-only.
Overrides:
MicrosoftGraphDrive.withEtag(String etag)Parameters:
withFollowing
public MicrosoftGraphDrive withFollowing(List
Set the following property: The list of items the user is following. Only in OneDrive for Business.
Parameters:
Returns:
withId
public MicrosoftGraphDrive withId(String id)
Set the id property: Read-only.
Overrides:
MicrosoftGraphDrive.withId(String id)Parameters:
withItems
public MicrosoftGraphDrive withItems(List
Set the items property: All items contained in the drive. Read-only. Nullable.
Parameters:
Returns:
withLastModifiedBy
public MicrosoftGraphDrive withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
Set the lastModifiedBy property: identitySet.
Overrides:
MicrosoftGraphDrive.withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)Parameters:
withLastModifiedByUser
public MicrosoftGraphDrive withLastModifiedByUser(MicrosoftGraphUserInner lastModifiedByUser)
Set the lastModifiedByUser property: Represents an Azure Active Directory user object.
Overrides:
MicrosoftGraphDrive.withLastModifiedByUser(MicrosoftGraphUserInner lastModifiedByUser)Parameters:
withLastModifiedDateTime
public MicrosoftGraphDrive withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Set the lastModifiedDateTime property: Date and time the item was last modified. Read-only.
Overrides:
MicrosoftGraphDrive.withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Parameters:
withList
public MicrosoftGraphDrive withList(MicrosoftGraphList list)
Set the list property: list.
Parameters:
Returns:
withName
public MicrosoftGraphDrive withName(String name)
Set the name property: The name of the item. Read-write.
Overrides:
MicrosoftGraphDrive.withName(String name)Parameters:
withOwner
public MicrosoftGraphDrive withOwner(MicrosoftGraphIdentitySet owner)
Set the owner property: identitySet.
Parameters:
Returns:
withParentReference
public MicrosoftGraphDrive withParentReference(MicrosoftGraphItemReference parentReference)
Set the parentReference property: itemReference.
Overrides:
MicrosoftGraphDrive.withParentReference(MicrosoftGraphItemReference parentReference)Parameters:
withQuota
public MicrosoftGraphDrive withQuota(MicrosoftGraphQuota quota)
Set the quota property: quota.
Parameters:
Returns:
withRoot
public MicrosoftGraphDrive withRoot(MicrosoftGraphDriveItem root)
Set the root property: driveItem.
Parameters:
Returns:
withSharePointIds
public MicrosoftGraphDrive withSharePointIds(MicrosoftGraphSharepointIds sharePointIds)
Set the sharePointIds property: sharepointIds.
Parameters:
Returns:
withSpecial
public MicrosoftGraphDrive withSpecial(List
Set the special property: Collection of common folders available in OneDrive. Read-only. Nullable.
Parameters:
Returns:
withSystem
public MicrosoftGraphDrive withSystem(Map
Set the system property: systemFacet.
Parameters:
Returns:
withWebUrl
public MicrosoftGraphDrive withWebUrl(String webUrl)
Set the webUrl property: URL that displays the resource in the browser. Read-only.
Overrides:
MicrosoftGraphDrive.withWebUrl(String webUrl)Parameters: