Skip to content

Commit

Permalink
Add 'connector.*' methods for retrieving content from the vSphere host
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaeon committed Mar 27, 2014
1 parent 5e1756f commit c7353cf
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/vpoller/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,37 @@ def reconnect(self):
self.disconnect()
self.connect()

def get_content(self):
"""
Returns the vSphere host contents
"""
return self.si.RetrieveContent()

def get_root_folder(self):
"""
Returns the vSphere host rootFolder
"""
return self.si.content.rootFolder

def get_service_content(self):
"""
Returns the vSphere host service content
"""
return self.si.RetrieveServiceContent()

def get_current_time(self):
"""
Returns the current time of the vSphere host
"""
return si.CurrentTime()

def get_capability(self):
"""
Returns the vSphere host capabilities
"""
return self.capability

0 comments on commit c7353cf

Please sign in to comment.