Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
9ee2194
Add Actions module and integrate it into Resources and AccountDepreca…
mateuscardosodeveloper May 2, 2025
a8d25e1
Add tests for Actions class methods in test_actions.py
mateuscardosodeveloper May 2, 2025
ffa6c53
Add documentation for Actions Type and update Resources index
mateuscardosodeveloper May 2, 2025
ac4da3a
Update Actions_Type and Common_Type documentation to correct attribut…
mateuscardosodeveloper May 2, 2025
4ab5157
Refactor import statements in Actions module to remove unused types
mateuscardosodeveloper May 2, 2025
2a9b738
Implement caching mechanism and add Dictionaries module with CRUD ope…
mateuscardosodeveloper May 5, 2025
e18a37f
Add unit tests for Dictionaries module methods in test_dictionaries.py
mateuscardosodeveloper May 5, 2025
9c83791
Add Dictionaries documentation and update Resources index
mateuscardosodeveloper May 5, 2025
547357b
Fix parameter filtering in _converter_dict_param_filter method to ens…
mateuscardosodeveloper May 5, 2025
836d327
Remove unused Tuple import from Cache.py
mateuscardosodeveloper May 5, 2025
0def38f
Add Files module and integrate into Resources; update TagoIOModule pa…
mateuscardosodeveloper May 6, 2025
26b4978
Add test suite for Files module with various mock methods and assertions
mateuscardosodeveloper May 6, 2025
dfbecf7
Add Files Type documentation and update Resources index
mateuscardosodeveloper May 6, 2025
feaeda8
Refactor file upload handling in Files module and improve UploadOptio…
mateuscardosodeveloper May 6, 2025
86b02cf
Add IntegrationConnector and IntegrationConnectorType modules with co…
mateuscardosodeveloper May 6, 2025
8ee63cd
Add IntegrationConnector documentation and update Resources index
mateuscardosodeveloper May 6, 2025
060331a
Add tests for Connectors class methods in test_integration_connector.py
mateuscardosodeveloper May 6, 2025
df94233
Remove unused import of Any from IntegrationConnector module
mateuscardosodeveloper May 6, 2025
822b720
Add Notifications module and integrate it into Resources and AccountD…
mateuscardosodeveloper May 8, 2025
a5d2495
Add tests for Notifications class methods in test_notifications.py
mateuscardosodeveloper May 8, 2025
c4cf7af
Add detailed documentation for Notification types and update Resource…
mateuscardosodeveloper May 8, 2025
1123975
Add requests-toolbelt as a dependency in pyproject.toml
mateuscardosodeveloper May 9, 2025
4fa23fb
Refactor multipart upload handling in Files module to use requests-to…
mateuscardosodeveloper May 9, 2025
8773cd8
Refactor dev-dependencies section in pyproject.toml to use group.dev.…
mateuscardosodeveloper May 9, 2025
ae091e0
Add Secrets module and integrate it into Resources and AccountDeprecated
mateuscardosodeveloper May 12, 2025
2ad831f
Add tests for Secrets class methods in test_secrets.py
mateuscardosodeveloper May 12, 2025
f0b5e69
Add documentation for Secrets module and create index entries for Sec…
mateuscardosodeveloper May 12, 2025
8ca0486
Add ServiceAuthorization module and integrate it into Resources and A…
mateuscardosodeveloper May 12, 2025
df59926
Add tests for ServiceAuthorization methods including tokenList, token…
mateuscardosodeveloper May 12, 2025
fc8d45c
Add ServiceAuthorization documentation and integrate into Resources i…
mateuscardosodeveloper May 12, 2025
40dbbb4
Refactor import statement in ServiceAuthorization module to remove un…
mateuscardosodeveloper May 12, 2025
70a13ae
Merge pull request #47 from tago-io/feat/add-service-authorization-cl…
felipefdl Jul 26, 2025
e820d82
Merge pull request #46 from tago-io/feat/add-secrets-class/SDKPY-128
felipefdl Jul 26, 2025
4ef9ffa
Merge pull request #45 from tago-io/feat/add-notifications-class/SDKP…
felipefdl Jul 26, 2025
da446cd
Merge pull request #44 from tago-io/feat/add-connectors-class/SDKPY-126
felipefdl Jul 26, 2025
289550f
Merge pull request #43 from tago-io/feat/add-files-class/SDKPY-125
felipefdl Jul 26, 2025
c7c97fc
Merge pull request #42 from tago-io/feat/add-dictionaries-class/SDKPY…
felipefdl Jul 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
306 changes: 306 additions & 0 deletions docs/source/Resources/Actions/Actions_Type.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,306 @@
**Actions Type**
===============


.. _TriggerGeofenceValueType:

TriggerGeofenceValueType
------------------------

**Attributes:**

| center: Optional[List[float]]
| E.g [longitude, latitude]

| radius: Optional[float]

| coordinates: Optional[List[List[float]]]
| E.g [[longitude, latitude], [longitude, latitude], ...]


.. _ActionTypeScriptParams:

ActionTypeScriptParams
---------------------

**Attributes:**

| script: List[:ref:`GenericID`]

| type: "script"


.. _ActionTypeNotificationParams:

ActionTypeNotificationParams
--------------------------

**Attributes:**

| message: str

| subject: str

| type: "notification"


.. _ActionTypeNotificationRunParams:

ActionTypeNotificationRunParams
-----------------------------

**Attributes:**

| message: str

| subject: str

| run_user: :ref:`GenericID`

| type: "notification_run"


.. _ActionTypeEmailParams:

ActionTypeEmailParams
------------------

**Attributes:**

| message: str

| subject: str

| to: str

| type: "email"


.. _ActionTypeSMSParams:

ActionTypeSMSParams
----------------

**Attributes:**

| message: str

| to: str

| type: "sms"


.. _ActionTypeMQTTParams:

ActionTypeMQTTParams
-----------------

**Attributes:**

| bucket: str

| payload: str

| topic: str

| type: "mqtt"


.. _ActionTypePostParams:

ActionTypePostParams
----------------

**Attributes:**

| headers: Dict

| type: "post"

| url: str


.. _ActionTriggerResourceType:

ActionTriggerResourceType
-----------------------

**Attributes:**

| resource: "device" or "bucket" or "file" or "analysis" or "action" or "am" or "user" or "financial" or "profile"

| when: "create" or "update" or "delete"

| tag_key: str

| tag_value: str


.. _ActionTriggerIntervalType:

ActionTriggerIntervalType
-----------------------

**Attributes:**

| interval: str


.. _ActionTriggerCronType:

ActionTriggerCronType
------------------

**Attributes:**

| timezone: Union[str, datetime]

| cron: str
| The cron expression


.. _ActionTriggerConditionType:

ActionTriggerConditionType
------------------------

**Attributes:**

| device: str

| variable: str

| is: :ref:`Conditionals`

| value: str

| second_value: Optional[str]

| value_type: "string" or "number" or "boolean" or "*"

| unlock: Optional[bool]


.. _ActionTriggerUsageType:

ActionTriggerUsageType
-------------------

**Attributes:**

| service_or_resource: "input" or "output" or "analysis" or "data_records" or "sms" or "email" or "run_users" or "push_notification" or "file_storage" or "device" or "dashboard" or "action" or "tcore" or "team_members" or "am"

| condition: "=" or ">"

| condition_value: float


.. _ActionTriggerGeofenceType:

ActionTriggerGeofenceType
----------------------

**Attributes:**

| device: str

| variable: str

| is: "IN" or "OUT"

| value: :ref:`TriggerGeofenceValueType`

| unlock: Optional[bool]


.. _ActionTriggerType:

ActionTriggerType
--------------

**Attributes:**

ActionTriggerType is a Union of:

| :ref:`ActionTriggerResourceType`
| :ref:`ActionTriggerIntervalType`
| :ref:`ActionTriggerCronType`
| :ref:`ActionTriggerConditionType`
| :ref:`ActionTriggerUsageType`
| :ref:`ActionTriggerGeofenceType`

.. _ActionCreateInfo:

ActionCreateInfo
--------------

**Attributes:**

| name: str
| The name for the action

| profile: Optional[:ref:`GenericID`]
| Profile identification

| active: Optional[bool]
| True if the action is active or not. The default is true

| tags: Optional[List[:ref:`TagsObj`]]
| An array of tags

| description: Optional[str]
| Description of the action

| lock: Optional[bool]

| type: Optional[:ref:`ActionType`]
| Type of action

| trigger: Optional[List[:ref:`ActionTriggerType`]]
| Array of trigger configuration according to type

| action: :ref:`ActionTypeParams`
| Action configuration

| trigger_when_unlock: Optional[bool]
| Trigger the action when unlock condition is met


.. _ActionInfo:

ActionInfo(:ref:`ActionCreateInfo`)
----------

**Attributes:**

| id: :ref:`GenericID`

| last_triggered: :ref:`ExpireTimeOption`

| updated_at: datetime

| created_at: datetime


.. _MQTTResourceAction:

MQTTResourceAction
---------------

**Attributes:**

| client_id: str

| connected_at: str

| disconnect_at: Optional[str]


.. _ActionQuery:

ActionQuery(:ref:`Query`)
----------

**Attributes:**

| fields: Optional[List["name" or "active" or "last_triggered" or "created_at" or "updated_at"]]
Loading