Resource Log

class fabman.resource_log.ResourceLog(requester: Requester, attributes: dict)

Class for interacting with the resource-logs endpoint on the Fabman API

Initialize the Object. Stores the requester method to interact with the API for further calls

Parameters:
  • requester (Requester) – The Requester object to make requests with

  • attributes (dict) – The attributes to initialize this object with

delete(**kwargs) Response

Deletes a resource-log. WARNING: This is irreversible.

Calls:

“DELETE /resource-logs/{resourceLogId}” <https://fabman.io/api/v1/documentation#/resource-logs/deleteResourcelogsId>

Returns:

response information of call

Return type:

requests.Response

update(**kwargs) None

Updates the resource-log. Attributes are updated in place with new information retrieved from the API.

Calls:

“PUT /resource-logs/{resourceLogId}” <https://fabman.io/api/v1/documentation#/resource-logs/putResourcelogsId>

Returns:

None – attributes are updated in place

Return type:

None