Skip to content

Commit 98e7743

Browse files
authored
docs(iot): revamp (#155)
1 parent d651fee commit 98e7743

File tree

2 files changed

+22
-12
lines changed
  • scaleway-async/scaleway_async/iot/v1
  • scaleway/scaleway/iot/v1

2 files changed

+22
-12
lines changed

scaleway-async/scaleway_async/iot/v1/api.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@
100100

101101
class IotV1API(API):
102102
"""
103-
IoT API.
103+
IoT Hub API.
104104
105105
This API allows you to manage IoT hubs and devices.
106-
IoT API.
106+
IoT Hub API.
107107
"""
108108

109109
async def list_hubs(
@@ -493,6 +493,7 @@ async def get_hub_metrics(
493493
) -> GetHubMetricsResponse:
494494
"""
495495
Get a hub's metrics.
496+
Get the metrics of an existing IoT Hub, specified by its Hub ID.
496497
:param region: Region to target. If none is passed will use default region from the config.
497498
:param hub_id: Hub ID.
498499
:param start_date: Start date used to compute the best scale for returned metrics.
@@ -1061,6 +1062,7 @@ async def get_device_metrics(
10611062
) -> GetDeviceMetricsResponse:
10621063
"""
10631064
Get a device's metrics.
1065+
Get the metrics of an existing device, specified by its device ID.
10641066
:param region: Region to target. If none is passed will use default region from the config.
10651067
:param device_id: Device ID.
10661068
:param start_date: Start date used to compute the best scale for the returned metrics.
@@ -1385,7 +1387,7 @@ async def list_networks(
13851387
topic_prefix: Optional[str] = None,
13861388
) -> ListNetworksResponse:
13871389
"""
1388-
List the Networks.
1390+
List the networks.
13891391
:param region: Region to target. If none is passed will use default region from the config.
13901392
:param page: Page number to return, from the paginated results.
13911393
:param page_size: Number of networks to return. The maximum value is 100.
@@ -1433,7 +1435,7 @@ async def list_networks_all(
14331435
topic_prefix: Optional[str] = None,
14341436
) -> List[Network]:
14351437
"""
1436-
List the Networks.
1438+
List the networks.
14371439
:param region: Region to target. If none is passed will use default region from the config.
14381440
:param page: Page number to return, from the paginated results.
14391441
:param page_size: Number of networks to return. The maximum value is 100.
@@ -1474,7 +1476,8 @@ async def create_network(
14741476
type_: NetworkNetworkType = NetworkNetworkType.UNKNOWN,
14751477
) -> CreateNetworkResponse:
14761478
"""
1477-
Create a new Network.
1479+
Create a new network.
1480+
Create a new network for an existing hub. Beside the default network, you can add networks for different data providers. Possible network types are Sigfox and REST.
14781481
:param region: Region to target. If none is passed will use default region from the config.
14791482
:param name: Network name.
14801483
:param type_: Type of network to connect with.
@@ -1520,7 +1523,8 @@ async def get_network(
15201523
region: Optional[Region] = None,
15211524
) -> Network:
15221525
"""
1523-
Retrieve a specific Network.
1526+
Retrieve a specific network.
1527+
Retrieve an existing network, specified by its network ID. The response returns full details of the network, including its type, the topic prefix and its endpoint.
15241528
:param region: Region to target. If none is passed will use default region from the config.
15251529
:param network_id: Network ID.
15261530
:return: :class:`Network <Network>`
@@ -1552,6 +1556,7 @@ async def delete_network(
15521556
) -> Optional[None]:
15531557
"""
15541558
Delete a Network.
1559+
Delete an existing network, specified by its network ID. Deleting a network is permanent, and cannot be undone.
15551560
:param region: Region to target. If none is passed will use default region from the config.
15561561
:param network_id: Network ID.
15571562

scaleway/scaleway/iot/v1/api.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@
100100

101101
class IotV1API(API):
102102
"""
103-
IoT API.
103+
IoT Hub API.
104104
105105
This API allows you to manage IoT hubs and devices.
106-
IoT API.
106+
IoT Hub API.
107107
"""
108108

109109
def list_hubs(
@@ -493,6 +493,7 @@ def get_hub_metrics(
493493
) -> GetHubMetricsResponse:
494494
"""
495495
Get a hub's metrics.
496+
Get the metrics of an existing IoT Hub, specified by its Hub ID.
496497
:param region: Region to target. If none is passed will use default region from the config.
497498
:param hub_id: Hub ID.
498499
:param start_date: Start date used to compute the best scale for returned metrics.
@@ -1061,6 +1062,7 @@ def get_device_metrics(
10611062
) -> GetDeviceMetricsResponse:
10621063
"""
10631064
Get a device's metrics.
1065+
Get the metrics of an existing device, specified by its device ID.
10641066
:param region: Region to target. If none is passed will use default region from the config.
10651067
:param device_id: Device ID.
10661068
:param start_date: Start date used to compute the best scale for the returned metrics.
@@ -1385,7 +1387,7 @@ def list_networks(
13851387
topic_prefix: Optional[str] = None,
13861388
) -> ListNetworksResponse:
13871389
"""
1388-
List the Networks.
1390+
List the networks.
13891391
:param region: Region to target. If none is passed will use default region from the config.
13901392
:param page: Page number to return, from the paginated results.
13911393
:param page_size: Number of networks to return. The maximum value is 100.
@@ -1433,7 +1435,7 @@ def list_networks_all(
14331435
topic_prefix: Optional[str] = None,
14341436
) -> List[Network]:
14351437
"""
1436-
List the Networks.
1438+
List the networks.
14371439
:param region: Region to target. If none is passed will use default region from the config.
14381440
:param page: Page number to return, from the paginated results.
14391441
:param page_size: Number of networks to return. The maximum value is 100.
@@ -1474,7 +1476,8 @@ def create_network(
14741476
type_: NetworkNetworkType = NetworkNetworkType.UNKNOWN,
14751477
) -> CreateNetworkResponse:
14761478
"""
1477-
Create a new Network.
1479+
Create a new network.
1480+
Create a new network for an existing hub. Beside the default network, you can add networks for different data providers. Possible network types are Sigfox and REST.
14781481
:param region: Region to target. If none is passed will use default region from the config.
14791482
:param name: Network name.
14801483
:param type_: Type of network to connect with.
@@ -1520,7 +1523,8 @@ def get_network(
15201523
region: Optional[Region] = None,
15211524
) -> Network:
15221525
"""
1523-
Retrieve a specific Network.
1526+
Retrieve a specific network.
1527+
Retrieve an existing network, specified by its network ID. The response returns full details of the network, including its type, the topic prefix and its endpoint.
15241528
:param region: Region to target. If none is passed will use default region from the config.
15251529
:param network_id: Network ID.
15261530
:return: :class:`Network <Network>`
@@ -1552,6 +1556,7 @@ def delete_network(
15521556
) -> Optional[None]:
15531557
"""
15541558
Delete a Network.
1559+
Delete an existing network, specified by its network ID. Deleting a network is permanent, and cannot be undone.
15551560
:param region: Region to target. If none is passed will use default region from the config.
15561561
:param network_id: Network ID.
15571562

0 commit comments

Comments
 (0)