The manager() method instantiates a new SplunkRESTManager instance based on the current SplunkRESTModel instance, which usually represents a unique entity.
results = manager()
|
Object |
A new SplunkRESTManager instance. |
from splunk.models.base import SplunkRESTModel
class MyAppModel(SplunkRESTModel):
def newInstance(owner, namespace):
entity = self.manager()._get_new_entity(namespace, owner)
return entity