Msg.DriveItem
- Subclasses:
Msg.DriveItemFile
, Msg.DriveItemFolder
Class Details
-
class Msg.DriveItem(**kwargs)
- Bases:
GObject.Object
- Abstract:
No
- Structure:
Msg.DriveItemClass
-
classmethod new_from_json(object)
- Parameters:
object (Json.Object
) – The json object to parse
- Raises:
GLib.Error
- Returns:
the newly created MsgDriveItem
- Return type:
Msg.DriveItem
Creates a new MsgDriveItem
from json response object.
-
get_created()
- Returns:
created date time of drive item
- Return type:
int
Get created time of drive item.
-
get_drive_id()
- Returns:
drive id of drive item
- Return type:
str
Gets drive id of drive item.
-
get_etag()
- Returns:
etag of drive item
- Return type:
str
Gets etag of drive item.
-
get_id()
- Returns:
id of drive item
- Return type:
str
Get id of drive item.
-
get_modified()
- Returns:
modified date time of drive item
- Return type:
int
Gets modified time of drive item.
-
get_name()
- Returns:
name of drive item
- Return type:
str
Gets name of drive item.
-
get_parent_id()
- Returns:
parent id of drive item
- Return type:
str
Gets parent id of drive item.
-
get_size()
- Returns:
size of drive item
- Return type:
int
Gets size of drive item.
-
get_user()
- Returns:
user of drive item
- Return type:
str
Gets user of drive item.
-
is_shared()
- Returns:
True
if item is shared, otherwise False
- Return type:
bool
Gets whether item is shared.
-
set_id(id)
- Parameters:
id (str
) – new id of drive item
Sets id of drive item.
-
set_name(name)
- Parameters:
name (str
) – new name of drive item
Sets name of drive item.
-
set_parent_id(parent_id)
- Parameters:
parent_id (str
) – parent id
Set parent id of drive item.