Msg.DriveItem

g GObject.Object GObject.Object Msg.DriveItem Msg.DriveItem GObject.Object->Msg.DriveItem

Subclasses:

Msg.DriveItemFile, Msg.DriveItemFolder

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new_from_json (object)

get_created ()

get_drive_id ()

get_etag ()

get_id ()

get_modified ()

get_name ()

get_parent_id ()

get_size ()

get_user ()

is_shared ()

set_id (id)

set_name (name)

set_parent_id (parent_id)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

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.