IPWorks Cloud 2020 Python Edition

Questions / Feedback?

on_drive_list Event

Fires once for each drive returned when listing drives.

Syntax

class OneDriveDriveListEventParams(object):
  @property
  def id() -> str: ...
  @property
  def name() -> str: ...
  @property
  def description() -> str: ...
  @property
  def drive_type() -> int: ...
  @property
  def owner_id() -> str: ...
  @property
  def owner_name() -> str: ...

# In class OneDrive:
@property
def on_drive_list() -> Callable[[OneDriveDriveListEventParams], None]: ...
@on_drive_list.setter
def on_drive_list(event_hook: Callable[[OneDriveDriveListEventParams], None]) -> None: ...

Remarks

This event fires once for each drives returned when list_drives or get_drive_info is called.

Id is the Id of the drive.

Name is the name of the drive.

Description holds the description of the drive.

DriveType reflects the drive's type. Possible values are:

0 (oddtPersonal) A OneDrive Personal drive.
1 (oddtBusiness) A OneDrive for Business drive.
2 (oddtDocumentLibrary) A SharePoint Online document library.

OwnerId is the Id of the drive's owner.

OwnerName is the name of the drive's owner.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Python Edition - Version 20.0 [Build 8265]