Top

ovirtsdk4.writer module

Classes

class Writer

This is the base class for all the writers of the SDK. It contains the utility methods used by all of them.

Ancestors (in MRO)

Static methods

def render_boolean(

value)

Converts the given boolean value to a string.

def render_date(

value)

Converts the given date value to a string.

def render_decimal(

value)

Converts the given decimal value to a string.

def render_integer(

value)

Converts the given integer value to a string.

def write_boolean(

writer, name, value)

Writes an element with the given name and boolean value.

def write_date(

writer, name, value)

Writes an element with the given name and date value.

def write_decimal(

writer, name, value)

Writes an element with the given name and decimal value.

def write_integer(

writer, name, value)

Writes an element with the given name and integer value.

def write_string(

writer, name, value)

Writes an element with the given name and string value.

Methods

def __init__(

self)