Data model¶
These classes define objects which Maloja uses internally. All of them can be saved to file in a YAML representation.
-
class
maloja.model.
Org
(**kwargs)[source]¶ The Org class represents a VMware organisation.
-
__init__
(**kwargs)¶ Creates a fresh object, or one with attributes set by the kwargs dictionary.
-
_defaults
= [('name', None), ('href', None), ('type', None), ('fullName', None)]¶ A list of (key, value) pairs which define the defaults for a new Org object.
-
feed_xml
(tree, *args, **kwargs)¶ Updates the object by feeding it XML from the VMware API.
-
-
class
maloja.model.
Vdc
(**kwargs)[source]¶ The Vdc class represents a VMware Vdc.
-
__init__
(**kwargs)¶ Creates a fresh object, or one with attributes set by the kwargs dictionary.
-
_defaults
= [('name', None), ('href', None), ('type', None), ('description', None)]¶ A list of (key, value) pairs which define the defaults for a new Vdc object.
-
feed_xml
(tree, *args, **kwargs)¶ Updates the object by feeding it XML from the VMware API.
-
-
class
maloja.model.
Gateway
(**kwargs)[source]¶ The Gateway class represents a VMware Edge Gateway. Here you can find the following:
- Firewall rules
- DNAT rules
- SNAT rules
-
__init__
(**kwargs)[source]¶ Creates a fresh object, or one with attributes set by the kwargs dictionary.
-
_defaults
= [('name', None), ('href', None), ('type', None), ('fw', []), ('dnat', []), ('snat', [])]¶ A list of (key, value) pairs which define the defaults for a new Gateway object.
-
class
maloja.model.
Network
(**kwargs)[source]¶ The Network class represents a VMware network. Here you can find the following:
- DNS rules
- DHCP configuration
-
__init__
(**kwargs)[source]¶ Creates a fresh object, or one with attributes set by the kwargs dictionary.
-
_defaults
= [('name', None), ('href', None), ('type', None), ('defaultGateway', None), ('netmask', None), ('dhcp', None), ('dnsSuffix', None), ('dns', [])]¶ A list of (key, value) pairs which define the defaults for a new Network object.
-
class
maloja.model.
Catalog
(**kwargs)[source]¶ The Catalog class represents a VMware public or private catalog.
-
__init__
(**kwargs)¶ Creates a fresh object, or one with attributes set by the kwargs dictionary.
-
_defaults
= [('name', None), ('href', None), ('type', None), ('dateCreated', None)]¶ A list of (key, value) pairs which define the defaults for a new Catalog object.
-
feed_xml
(tree, *args, **kwargs)¶ Updates the object by feeding it XML from the VMware API.
-
-
class
maloja.model.
Template
(**kwargs)[source]¶ The Template class represents a VMware VAppTemplate.
-
__init__
(**kwargs)¶ Creates a fresh object, or one with attributes set by the kwargs dictionary.
-
_defaults
= [('name', None), ('href', None), ('type', None), ('dateCreated', None)]¶ A list of (key, value) pairs which define the defaults for a new Template object.
-
feed_xml
(tree, *args, **kwargs)¶ Updates the object by feeding it XML from the VMware API.
-
-
class
maloja.model.
VApp
(**kwargs)[source]¶ The VApp class represents a VMware VApp.
-
__init__
(**kwargs)¶ Creates a fresh object, or one with attributes set by the kwargs dictionary.
-
_defaults
= [('name', None), ('href', None), ('type', None)]¶ A list of (key, value) pairs which define the defaults for a new Vapp object.
-
feed_xml
(tree, *args, **kwargs)¶ Updates the object by feeding it XML from the VMware API.
-
-
class
maloja.model.
Vm
(**kwargs)[source]¶ The Vm class represents a VMware Vm.
-
__init__
(**kwargs)[source]¶ Creates a fresh object, or one with attributes set by the kwargs dictionary.
-
_defaults
= [('name', None), ('href', None), ('type', None), ('dateCreated', None), ('guestOs', None), ('hardwareVersion', []), ('cpu', None), ('memoryMB', None), ('networkcards', []), ('harddisks', []), ('scsi', []), ('cd', None), ('floppydisk', None), ('isBusy', None), ('isDeleted', None), ('isDeployed', None), ('isInMaintenanceMode', None), ('isPublished', None), ('status', None), ('storageProfileName', None), ('vmToolsVersion', None), ('networkconnections', []), ('guestcustomization', None)]¶ A list of (key, value) pairs which define the defaults for a new Vm object.
-
-
class
maloja.model.
Task
(**kwargs)[source]¶ The Task class represents a task running against a VMware resource.
-
__init__
(**kwargs)¶ Creates a fresh object, or one with attributes set by the kwargs dictionary.
-
_defaults
= [('name', None), ('href', None), ('type', None), ('operationName', None), ('organization', None), ('startTime', None), ('status', None)]¶ A list of (key, value) pairs which define the defaults for a new Task object.
-