pyvcloud.vcd.pvdc module¶
-
class
pyvcloud.vcd.pvdc.
PVDC
(client, href=None, resource=None)¶ Bases:
object
-
get_metadata
()¶ Fetch metadata of the provider vdc.
Returns: an object containing EntityType.METADATA XML data which represents the metadata associated with the provider vdc. Return type: lxml.objectify.ObjectifiedElement
-
get_resource
()¶ Fetches the XML representation of the provider vdc from vCD.
Will serve cached response if possible.
Returns: object containing EntityType.PROVIDER_VDC XML data representing the concerned provider vdc. Return type: lxml.objectify.ObjectifiedElement
-
get_vdc_references
()¶ List all provider vdc references.
Returns: an object containing VMWProviderVdcReference XML element that refers to provider vdcs. Return type: lxml.objectify.StringElement
-
reload
()¶ Reloads the resource representation of the provider vdc.
This method should be called in between two method invocations on the PVDC object, if the former call changes the representation of the provider vdc in vCD.
-
set_metadata
(domain, visibility, key, value, metadata_type='MetadataStringValue')¶ Set metadata of the provider vdc.
Parameters: - domain (str) –
- visibility (str) –
- key (str) –
- value (str) –
- metadata_type (str) –
Returns: an object containing EntityType.METADATA XML data which represents the updated metadata associated with the provider vdc.
Return type: lxml.objectify.ObjectifiedElement
-