pyvcloud.vcd.amqp module

class pyvcloud.vcd.amqp.AmqpService(client)

Bases: object

get_settings()

Fetches the XML representation of the AMQP service setting.

Returns:an object containing EntityType.AMQP_SETTINGS XML data.
Return type:lxml.objectify.ObjectifiedElement
set_config(config, password)

Updates the configuration of the AMQP service.

Parameters:
  • config (dict) – dictionary representation of AMQP service configuration.
  • password (str) – password of the user for the amqp service.
Returns:

an object containing EntityType.AMQP_SETTINGS XML data representing the configuration of the AMQP service.

Return type:

lxml.objectify.ObjectifiedElement

test_config(config, password)

Tests the validity of configuration on the AMQP service.

Parameters:
  • config (dict) – dictionary representation of AMQP service configuration.
  • password (str) – password of the user for the AMQP service.
Returns:

an object containing vmext:AmqpSettingsTest XML element representing the result of the test performed on the AMQP service.

Return type:

lxml.objectify.ObjectifiedElement