Guestfs.AddDrive

g GObject.Object GObject.Object Guestfs.AddDrive Guestfs.AddDrive GObject.Object->Guestfs.AddDrive

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

blocksize

int

r/w/c

A 32-bit integer.

cachemode

str

r/w/c

A string.

copyonread

Guestfs.Tristate

r/w/c

A boolean.

discard

str

r/w/c

A string.

format

str

r/w/c

A string.

iface

str

r/w/c

A string.

label

str

r/w/c

A string.

name

str

r/w/c

A string.

protocol

str

r/w/c

A string.

readonly

Guestfs.Tristate

r/w/c

A boolean.

secret

str

r/w/c

A string.

username

str

r/w/c

A string.

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class Guestfs.AddDrive(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Guestfs.AddDriveClass

An object encapsulating optional arguments for Guestfs.Session.add_drive.

classmethod new()
Returns:

a new Guestfs.AddDrive object

Return type:

Guestfs.AddDrive

Create a new Guestfs.AddDrive object

Property Details

Guestfs.AddDrive.props.blocksize
Name:

blocksize

Type:

int

Default Value:

-1

Flags:

READABLE, WRITABLE, CONSTRUCT

A 32-bit integer.

Guestfs.AddDrive.props.cachemode
Name:

cachemode

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

A string.

Guestfs.AddDrive.props.copyonread
Name:

copyonread

Type:

Guestfs.Tristate

Default Value:

Guestfs.Tristate.NONE

Flags:

READABLE, WRITABLE, CONSTRUCT

A boolean.

Guestfs.AddDrive.props.discard
Name:

discard

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

A string.

Guestfs.AddDrive.props.format
Name:

format

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

A string.

Guestfs.AddDrive.props.iface
Name:

iface

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

A string.

Guestfs.AddDrive.props.label
Name:

label

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

A string.

Guestfs.AddDrive.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

A string.

Guestfs.AddDrive.props.protocol
Name:

protocol

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

A string.

Guestfs.AddDrive.props.readonly
Name:

readonly

Type:

Guestfs.Tristate

Default Value:

Guestfs.Tristate.NONE

Flags:

READABLE, WRITABLE, CONSTRUCT

A boolean.

Guestfs.AddDrive.props.secret
Name:

secret

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

A string.

Guestfs.AddDrive.props.username
Name:

username

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

A string.