Skip to content

Commit

Permalink
Merge pull request #30 from tago-io/beta
Browse files Browse the repository at this point in the history
Beta
  • Loading branch information
felipefdl authored Oct 4, 2023
2 parents 3af0fdf + b322172 commit 1546e11
Show file tree
Hide file tree
Showing 54 changed files with 320 additions and 254 deletions.
22 changes: 0 additions & 22 deletions docs/source/Account/Account/index.rst

This file was deleted.

42 changes: 0 additions & 42 deletions docs/source/Account/Buckets/index.rst

This file was deleted.

35 changes: 0 additions & 35 deletions docs/source/Account/index.rst

This file was deleted.

22 changes: 22 additions & 0 deletions docs/source/Resources/Account/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
**Account**
==========

Manage Account.

=========
info
=========

Gets all account information.

**Return:**

| **AccountInfo**: :ref:`AccountInfo`
.. code-block::
:caption: **Example:**
from tagoio_sdk import Resources
resources = Resources()
result = resources.account.info()
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
**Billing**
==========

Manage Billing for the account. Be sure to use an account token with “write” permissions when using functions like create, edit and delete.
Manage Billing for the account.

=========
getPrices
Expand All @@ -12,10 +12,10 @@ Get pricing for plans, services and add-ons.
.. code-block::
:caption: **Example:**
from tagoio_sdk import Account
from tagoio_sdk import Resources
myAccount = Account({ "token": "my_account_token" })
result = myAccount.billing.getPrices()
resources = Resources()
result = resources.billing.getPrices()
===============
getSubscription
Expand All @@ -26,10 +26,10 @@ Get the account subscription information.
.. code-block::
:caption: **Example:**
from tagoio_sdk import Account
from tagoio_sdk import Resources
myAccount = Account({ "token": "my_account_token" })
result = myAccount.billing.getSubscription()
resources = Resources()
result = resources.billing.getSubscription()
================
editSubscription
Expand Down
42 changes: 42 additions & 0 deletions docs/source/Resources/Buckets/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
**Buckets**
============

Manage buckets in account.

====
info
====

Gets information about the bucket

**Parameters:**

| **bucketID**: GenericID: str
| Bucket ID
.. code-block::
:caption: **Example:**
from tagoio_sdk import Resources
resources = Resources()
result = resources.buckets.info("Bucket ID")
======
amount
======

Get Amount of data on the Bucket

**Parameters:**

| **bucketID**: GenericID: str
| Bucket ID
.. code-block::
:caption: **Example:**
from tagoio_sdk import Resources
resources = Resources()
result = resources.buckets.amount("Bucket ID")
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
**Dashboards**
==============

Manage dashboards in account Be sure to use an account token with “write” permissions when using functions like create, edit and delete.
Manage dashboards in account.

=======
create
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
**Devices**
============

Manage devices in account Be sure to use an account token with “write” permissions when using functions like create, edit and delete.
Manage devices in account.

=======
create
Expand Down Expand Up @@ -70,10 +70,10 @@ Get data from all variables in the device.
.. code-block::
:caption: **Example:**
from tagoio_sdk import Account
from tagoio_sdk import Resources
myDevice = Account({ "token": "my_account_token" })
myDevice.devices.getVariablesData("myDeviceId");
resources = Resources()
resources.devices.getDeviceData("myDeviceId");
=====
info
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
**Profile**
============

Manage profiles in account be sure to use an account token with “write” permissions when using functions like create, edit and delete.
Manage profiles in account.

====
info
Expand All @@ -17,10 +17,10 @@ Gets information about the bucket
.. code-block::
:caption: **Example:**
from tagoio_sdk import Account
from tagoio_sdk import Resources
myAccount = Account({ "token": "my_account_token" })
result = myAccount.profile.info("Profile ID")
resources = Resources()
result = resources.profile.info("Profile ID")
====
list
Expand All @@ -31,10 +31,10 @@ Lists all the profiles in your account
.. code-block::
:caption: **Example:**
from tagoio_sdk import Account
from tagoio_sdk import Resources
myAccount = Account({ "token": "my_account_token" })
result = myAccount.profile.list()
resources = Resources()
result = resources.profile.list()
========
Expand All @@ -51,10 +51,10 @@ Gets profile summary
.. code-block::
:caption: **Example:**
from tagoio_sdk import Account
from tagoio_sdk import Resources
myAccount = Account({ "token": "my_account_token" })
result = myAccount.profile.summary("Profile ID")
resources = Resources()
result = resources.profile.summary("Profile ID")
========
Expand All @@ -73,7 +73,7 @@ Gets profile tokenList
.. code-block::
:caption: **Example:**
from tagoio_sdk import Account
from tagoio_sdk import Resources
myAccount = Account({ "token": "my_account_token" })
result = myAccount.profile.tokenList("Profile ID")
resources = Resources()
result = resources.profile.tokenList("Profile ID")
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
**Run**
========

Manage services in account, be sure to use an account token with “write” permissions when using functions like create, edit and delete.
Manage services in account.


============
Expand Down
35 changes: 35 additions & 0 deletions docs/source/Resources/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

**Resources**
==========

To set up an resource object, you need to import the ``Resources`` class from the ``tagoio_sdk`` module.

========
Instance
========

**Parameters:**

| *Optional* **token**: str
| Token is a optional parameter
| *Optional* **region**: str "usa-1" or "env"
| Region is a optional parameter
.. code-block::
:caption: **Example:**
from tagoio_sdk import Resources
resources = Resources()
.. toctree::

Account/index
Billing/index
Buckets/index
Dashboards/index
Devices/index
IntegrationNetwork/index
Profile/index
Run/index
Loading

0 comments on commit 1546e11

Please sign in to comment.