Files
deb-python-pyvmomi/docs/vim/ServiceManager.rst
Shawn Hartsock 15f7be9a52 pyVmomi reStructured Text Documentation
This external documentation for pyVmomi was generated using Googly Docs
(aka Google Standard Documentation) which renders very cleanly in
GitHub. Internal documentation for a class should be done in Sphinx
format because tools like pyCharm and Eclipse can use that documentation
as a hint for code completion.

Note: External docs as Googly Docs, internal docs as Sphinx.

Closes bug#15
2014-06-17 14:07:42 -04:00

1.9 KiB

vim.ServiceManager

The ServiceManager managed object is a singleton object that is used to present services that are optional and not necessarily formally defined. This directory makes available a list of such services and provides an easy way to locate them. The service being represented can take arbitrary form here and is thus represented by a generic ManagedObject. The expectation is that the client side is knowledgeable of the instance type of the specific service it is interested in using.

since

VI API 2.5

Attributes

service (vim.ServiceManager.ServiceInfo):
privilege: Global.ServiceManagers

The full list of services available in this directory.

Methods

QueryServiceList(serviceName, location):

A query interface that returns a list of services that match certain criteria. Besides a basic service name entry, an arbitrary list of matching locations can also be specified. The location array is assumed to be a list of AND expressions, ie, all locations must match for an entry to be considered a match. Regular expressions are not allowed in the query service.

Privilege:

Global.ServiceManagers

Args:
serviceName (str, optional):

The name of the service to be located.

location (str, optional):

The list of location information that needs to match for a service to be considered a match.

Returns:

vim.ServiceManager.ServiceInfo:

Raises:

vmodl.fault.InvalidArgument:

if both serviceName and location are not specified.