Bases: watcher.objects.base.WatcherObject
Create a Strategy record in the DB.
| Parameters: | context – Security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: Strategy(context) |
|---|
Delete the Strategy from the DB.
| Parameters: | context – Security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: Strategy(context) |
|---|
Find a strategy based on its id or uuid
| Parameters: |
|
|---|---|
| Returns: | a Strategy object. |
Find a strategy based on its integer id
| Parameters: |
|
|---|---|
| Returns: | a Strategy object. |
Find a strategy based on name
| Parameters: |
|
|---|---|
| Returns: | a Strategy object. |
Find a strategy based on uuid
| Parameters: |
|
|---|---|
| Returns: | a Strategy object. |
Return a list of Strategy objects.
| Parameters: |
|
|---|---|
| Returns: | a list of Strategy object. |
Loads updates for this Strategy.
Loads a strategy with the same uuid from the database and checks for updated attributes. Updates are applied from the loaded strategy column by column, if there are any updates.
| Parameters: | context – Security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: Strategy(context) |
|---|
Save updates to this Strategy.
Updates will be made column by column based on the result of self.what_changed().
| Parameters: | context – Security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: Strategy(context) |
|---|
Soft Delete the Strategy from the DB.
| Parameters: | context – Security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: Strategy(context) |
|---|