StubConfiguration factory
Bases: object
Factory class for creating stub configuration objects
Return a stub configuration using the specified connection, with no registered errors.
Parameters: |
|
---|
Return a stub configuration using the specified connection, with the errors reported by the vAPI runtime registered.
Parameters: |
|
---|
Return a stub configuration using the specified connection, with all the standard errors registered.
Parameters: |
|
---|
Introspection services
Bases: object
Helper class for invoking the ‘get’ operation in the service ‘com.vmware.vapi.std.introspection.Operation’
Initialize IntrospectableApiProvider
Parameters: | Connector – Protocol connector to use for operation invocations |
---|
Create an instance of com.vmware.vapi.std.introspection_client.Operation.DataDefinition that represents the standard error specified
Parameters: | error_name (str) – Fully qualified error name of one of the vAPI standard errors |
---|---|
Return type: | com.vmware.vapi.std.introspection_client.Operation.DataDefinition |
Returns: | Error definition instance for the given error name |
Helper classes for client side localization.
Bases: object
Helper class to localize vAPI LocalizableMessages.
Before initializating the MessageLocalizer, locale has to be explicitly set if the user wants a locale other than English (U.S.).
Typically, at the start of the application, the following two lines are required to set the locale.
import locale locale.setlocale(locale.LC_ALL,<locale_type>)
If the locale_type is empty string, locale is set to user’s default setting (typically specified in the LANG environment variable). Otherwise, the specified locale type has to be installed in the system.
Initialize MessageLocalizer
Parameters: |
|
---|
Localize a given LocalizableMessage.
Parameters: | msg (com.vmware.vapi.std_client.LocalizableMessage) – LocalizableMessage |
---|---|
Return type: | str |
Returns: | Localized string |