cfme.middleware.datasource module¶
-
class
cfme.middleware.datasource.
All
(obj, navigate_obj)[source]¶ Bases:
utils.appliance.implementations.ui.CFMENavigateStep
-
prerequisite
¶ This is a helper descriptor for destinations which are linked to an attribute of the object.
For instance, imagine you have an object that has an attribute(parent) which has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToAttribute as a helper, supplying only the name of the attribute which stores the object to be used in the navigation, and the destination name. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.middleware.datasource.
Details
(obj, navigate_obj)[source]¶ Bases:
utils.appliance.implementations.ui.CFMENavigateStep
-
prerequisite
¶ This is a helper descriptor for navigation destinations which are linked to the same class.
For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.middleware.datasource.
MiddlewareDatasource
(name, server, provider=None, appliance=None, **kwargs)[source]¶ Bases:
cfme.middleware.provider.MiddlewareBase
,cfme.common.Taggable
,utils.appliance.Navigatable
,cfme.common.UtilizationMixin
MiddlewareDatasource class provides details on datasource page. Class methods available to get existing datasources list
Parameters: - name – Name of the datasource
- provider – Provider object (HawkularProvider)
- nativeid – Native id (internal id) of datasource
- server – Server object of the datasource (MiddlewareServer)
- properties – Datasource driver name, connection URL and JNDI name
- db_id – database row id of datasource
Usage:
mydatasource = MiddlewareDatasource(name='FooDS', server=ser_instance, provider=haw_provider, properties='ds-properties') datasources = MiddlewareDatasource.datasources() [or] datasources = MiddlewareDeployment.datasources(provider=haw_provider) [or] datasources = MiddlewareDeployment.datasources(provider=haw_provider,server=ser_instance)
-
datasource
(*args, **kwargs)¶
-
datasource_in_db
= None¶
-
datasource_in_mgmt
= None¶
-
datasource_in_rest
= None¶
-
property_tuples
= [('name', 'Name'), ('nativeid', 'Nativeid'), ('driver_name', 'Driver Name'), ('jndi_name', 'JNDI Name'), ('connection_url', 'Connection URL'), ('enabled', 'Enabled')]¶
-
taggable_type
= 'MiddlewareDatasource'¶