Msg.Drive

g GObject.Object GObject.Object Msg.Drive Msg.Drive GObject.Object->Msg.Drive

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

class

new_from_json (object)

get_created ()

get_drive_type ()

get_id ()

get_modified ()

get_name ()

get_remaining ()

get_total ()

get_used ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Msg.Drive(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Msg.DriveClass

Msg.DriveService is a subclass of Msg.Service for communicating with the MS Graph API.

Details: https://learn.microsoft.com/en-us/graph/api/resources/drive?view=graph-rest-1.0

classmethod new()
Returns:

the newly created MsgDrive

Return type:

Msg.Drive

Creates a new MsgDrive.

classmethod new_from_json(object)
Parameters:

object (Json.Object) – The json object to parse

Raises:

GLib.Error

Returns:

the newly created MsgDrive

Return type:

Msg.Drive

Creates a new MsgDrive from json response object.

get_created()
Returns:

created time of drive

Return type:

GLib.DateTime

Get created time of drive.

get_drive_type()
Returns:

the drive type of drive

Return type:

Msg.DriveType

Gets the drive type of the drive.

get_id()
Returns:

the id of the drive

Return type:

str

Gets the ID of the drive.

get_modified()
Returns:

modified time of drive

Return type:

GLib.DateTime

Gets the modified time of the drive.

get_name()
Returns:

name of drive

Return type:

str

Gets tthe name of the drive.

get_remaining()
Returns:

remaining size of drive

Return type:

int

Gets the remaining size of the drive.

get_total()
Returns:

total size of drive

Return type:

int

Gets the total size of the drive.

get_used()
Returns:

used size of drive

Return type:

int

Gets the used size of the drive.