Resource Type

class fabman.resource_type.ResourceType(requester: Requester, attributes: dict)

Class for interacting with the resource-types endpoint in 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-type. WARNING: This is irreversible and may have unintended consequences. Resource Types are used to group resources and are therefore tied to all resources of that type. Be sure you know what you are doing when using this endpoint. There is no confirmation.

Calls:

“DELETE /resource-types/{resourceTypeId}” <https://fabman.io/api/v1/documentation#/resource-types/deleteResourcetypesId>

Returns:

response information of call

Return type:

requests.Response

update(**kwargs) None

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

Calls:

“PUT /resource-types/{resourceTypeId}” <https://fabman.io/api/v1/documentation#/resource-types/putResourcetypesId>

Returns:

None – attributes are updated in place

Return type:

None