diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index a831624..a592dac 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -5,6 +5,7 @@ README.md docs/ArduinoAction.md docs/ArduinoActionTemplate.md +docs/ArduinoArduinoconnectionsV1.md docs/ArduinoCompressedv2.md docs/ArduinoCredentialsv1.md docs/ArduinoDashboardowner.md @@ -73,6 +74,7 @@ docs/BodyExpression.md docs/CheckDevicesV2PassPayload.md docs/Clone.md docs/CreateAction.md +docs/CreateClaimedDevicesV2Payload.md docs/CreateDevicesV2CertsPayload.md docs/CreateDevicesV2Payload.md docs/CreateLoraDevicesV1Payload.md @@ -125,6 +127,7 @@ docs/TriggersV1Api.md docs/UpdateAction.md docs/UpdateSketch.md docs/UserRecipient.md +docs/Usershare.md docs/Variable.md docs/Widget.md docs/Widgetlink.md @@ -154,6 +157,7 @@ iot_api_client/exceptions.py iot_api_client/models/__init__.py iot_api_client/models/arduino_action.py iot_api_client/models/arduino_action_template.py +iot_api_client/models/arduino_arduinoconnections_v1.py iot_api_client/models/arduino_compressedv2.py iot_api_client/models/arduino_credentialsv1.py iot_api_client/models/arduino_dashboardowner.py @@ -222,6 +226,7 @@ iot_api_client/models/body_expression.py iot_api_client/models/check_devices_v2_pass_payload.py iot_api_client/models/clone.py iot_api_client/models/create_action.py +iot_api_client/models/create_claimed_devices_v2_payload.py iot_api_client/models/create_devices_v2_certs_payload.py iot_api_client/models/create_devices_v2_payload.py iot_api_client/models/create_lora_devices_v1_payload.py @@ -258,6 +263,7 @@ iot_api_client/models/trigger.py iot_api_client/models/update_action.py iot_api_client/models/update_sketch.py iot_api_client/models/user_recipient.py +iot_api_client/models/usershare.py iot_api_client/models/variable.py iot_api_client/models/widget.py iot_api_client/models/widgetlink.py @@ -269,27 +275,7 @@ setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_arduino_action.py -test/test_arduino_action_template.py -test/test_arduino_linked_device.py -test/test_arduino_linked_device_template.py -test/test_arduino_linked_property.py -test/test_arduino_linked_property_template.py -test/test_arduino_trigger.py -test/test_arduino_trigger_template.py -test/test_arduino_trigger_with_linked_entities.py -test/test_body_expression.py -test/test_create_action.py -test/test_device_status_source.py -test/test_device_status_source_with_linked_devices.py -test/test_email_action.py -test/test_email_delivery_opts.py -test/test_push_action.py -test/test_push_delivery_opts.py -test/test_title_expression.py -test/test_trigger.py -test/test_triggers_v1_api.py -test/test_update_action.py -test/test_user_recipient.py -test/test_variable.py +test/test_arduino_arduinoconnections_v1.py +test/test_create_claimed_devices_v2_payload.py +test/test_usershare.py tox.ini diff --git a/docs/ArduinoArduinoconnectionsV1.md b/docs/ArduinoArduinoconnectionsV1.md new file mode 100644 index 0000000..d7ae463 --- /dev/null +++ b/docs/ArduinoArduinoconnectionsV1.md @@ -0,0 +1,37 @@ +# ArduinoArduinoconnectionsV1 + +ArduinoArduinoconnectionsV1 media type (default view) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**catm1** | [**List[ArduinoCredentialsv1]**](ArduinoCredentialsv1.md) | ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view) | [optional] +**cellular** | [**List[ArduinoCredentialsv1]**](ArduinoCredentialsv1.md) | ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view) | [optional] +**eth** | [**List[ArduinoCredentialsv1]**](ArduinoCredentialsv1.md) | ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view) | [optional] +**gsm** | [**List[ArduinoCredentialsv1]**](ArduinoCredentialsv1.md) | ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view) | [optional] +**lora** | [**List[ArduinoCredentialsv1]**](ArduinoCredentialsv1.md) | ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view) | [optional] +**nb** | [**List[ArduinoCredentialsv1]**](ArduinoCredentialsv1.md) | ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view) | [optional] +**wifi** | [**List[ArduinoCredentialsv1]**](ArduinoCredentialsv1.md) | ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view) | [optional] +**wifiandsecret** | [**List[ArduinoCredentialsv1]**](ArduinoCredentialsv1.md) | ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view) | [optional] + +## Example + +```python +from iot_api_client.models.arduino_arduinoconnections_v1 import ArduinoArduinoconnectionsV1 + +# TODO update the JSON string below +json = "{}" +# create an instance of ArduinoArduinoconnectionsV1 from a JSON string +arduino_arduinoconnections_v1_instance = ArduinoArduinoconnectionsV1.from_json(json) +# print the JSON string representation of the object +print(ArduinoArduinoconnectionsV1.to_json()) + +# convert the object into a dict +arduino_arduinoconnections_v1_dict = arduino_arduinoconnections_v1_instance.to_dict() +# create an instance of ArduinoArduinoconnectionsV1 from a dict +arduino_arduinoconnections_v1_from_dict = ArduinoArduinoconnectionsV1.from_dict(arduino_arduinoconnections_v1_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ArduinoDevicev2.md b/docs/ArduinoDevicev2.md index 0672c53..d308eb3 100644 --- a/docs/ArduinoDevicev2.md +++ b/docs/ArduinoDevicev2.md @@ -6,6 +6,7 @@ ArduinoDevicev2 media type (default view) Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**ble_mac** | **str** | | [optional] **connection_type** | **str** | The type of the connections selected by the user when multiple connections are available | [optional] **created_at** | **datetime** | Creation date of the device | [optional] **deleted_at** | **datetime** | Deletion date of the trigger | [optional] @@ -14,9 +15,11 @@ Name | Type | Description | Notes **fqbn** | **str** | The fully qualified board name | [optional] **href** | **str** | The api reference of this device | **id** | **str** | The arn of the device | +**issuer_ca** | **str** | | [optional] **label** | **str** | The label of the device | **last_activity_at** | **datetime** | Last activity date | [optional] **latest_wifi_fw_version** | **str** | The latest version of the NINA/WIFI101 firmware available for this device | [optional] +**lib_version** | **str** | | [optional] **metadata** | **Dict[str, object]** | The metadata of the device | [optional] **name** | **str** | The friendly name of the device | **no_sketch** | **bool** | True if the device type can not have an associated sketch | [optional] @@ -28,6 +31,7 @@ Name | Type | Description | Notes **tags** | **Dict[str, object]** | Tags belonging to the device | [optional] **thing** | [**ArduinoThing**](ArduinoThing.md) | | [optional] **type** | **str** | The type of the device | +**unique_hardware_id** | **str** | The unique hardware id of the device | [optional] **updated_at** | **datetime** | Update date of the trigger | [optional] **user_id** | **str** | The id of the user | **webhooks** | [**List[ArduinoDevicev2Webhook]**](ArduinoDevicev2Webhook.md) | ArduinoDevicev2WebhookCollection is the media type for an array of ArduinoDevicev2Webhook (default view) | [optional] diff --git a/docs/Clone.md b/docs/Clone.md index ac964ed..af8b131 100644 --- a/docs/Clone.md +++ b/docs/Clone.md @@ -1,6 +1,5 @@ # Clone -Add overrides used when performing a clone of a dashboard ## Properties diff --git a/docs/CreateClaimedDevicesV2Payload.md b/docs/CreateClaimedDevicesV2Payload.md new file mode 100644 index 0000000..f558df8 --- /dev/null +++ b/docs/CreateClaimedDevicesV2Payload.md @@ -0,0 +1,39 @@ +# CreateClaimedDevicesV2Payload + +DeviceV2 describes a device. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The id of the device | [optional] +**ble_mac** | **str** | | [optional] +**connection_type** | **str** | The type of the connections selected by the user when multiple connections are available | [optional] +**fqbn** | **str** | The fully qualified board name | [optional] +**name** | **str** | The friendly name of the device | [optional] +**serial** | **str** | The serial uuid of the device | [optional] +**type** | **str** | The type of the device | +**unique_hardware_id** | **str** | The unique hardware id of the device | +**user_id** | **str** | The user_id associated to the device. If absent it will be inferred from the authentication header | +**wifi_fw_version** | **str** | The version of the NINA/WIFI101 firmware running on the device | [optional] + +## Example + +```python +from iot_api_client.models.create_claimed_devices_v2_payload import CreateClaimedDevicesV2Payload + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateClaimedDevicesV2Payload from a JSON string +create_claimed_devices_v2_payload_instance = CreateClaimedDevicesV2Payload.from_json(json) +# print the JSON string representation of the object +print(CreateClaimedDevicesV2Payload.to_json()) + +# convert the object into a dict +create_claimed_devices_v2_payload_dict = create_claimed_devices_v2_payload_instance.to_dict() +# create an instance of CreateClaimedDevicesV2Payload from a dict +create_claimed_devices_v2_payload_from_dict = CreateClaimedDevicesV2Payload.from_dict(create_claimed_devices_v2_payload_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateDevicesV2Payload.md b/docs/CreateDevicesV2Payload.md index c615d29..beeb1be 100644 --- a/docs/CreateDevicesV2Payload.md +++ b/docs/CreateDevicesV2Payload.md @@ -6,12 +6,14 @@ DeviceV2 describes a device. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**ble_mac** | **str** | | [optional] **connection_type** | **str** | The type of the connections selected by the user when multiple connections are available | [optional] **fqbn** | **str** | The fully qualified board name | [optional] **name** | **str** | The friendly name of the device | [optional] **serial** | **str** | The serial uuid of the device | [optional] **soft_deleted** | **bool** | If false, restore the thing from the soft deletion | [optional] [default to False] **type** | **str** | The type of the device | +**unique_hardware_id** | **str** | | [optional] **user_id** | **str** | The user_id associated to the device. If absent it will be inferred from the authentication header | [optional] **wifi_fw_version** | **str** | The version of the NINA/WIFI101 firmware running on the device | [optional] diff --git a/docs/DashboardsV2Api.md b/docs/DashboardsV2Api.md index 87ca71c..0b58d64 100644 --- a/docs/DashboardsV2Api.md +++ b/docs/DashboardsV2Api.md @@ -55,8 +55,8 @@ with iot_api_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = iot_api_client.DashboardsV2Api(api_client) id = 'id_example' # str | The id of the dashboard - clone = iot_api_client.Clone() # Clone | Add overrides used when performing a clone of a dashboard - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + clone = iot_api_client.Clone() # Clone | + x_organization = 'x_organization_example' # str | (optional) try: # clone dashboards_v2 @@ -75,8 +75,8 @@ with iot_api_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the dashboard | - **clone** | [**Clone**](Clone.md)| Add overrides used when performing a clone of a dashboard | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **clone** | [**Clone**](Clone.md)| | + **x_organization** | **str**| | [optional] ### Return type @@ -139,8 +139,8 @@ configuration.access_token = os.environ["ACCESS_TOKEN"] with iot_api_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = iot_api_client.DashboardsV2Api(api_client) - dashboardv2 = iot_api_client.Dashboardv2() # Dashboardv2 | Describes a dashboard - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + dashboardv2 = iot_api_client.Dashboardv2() # Dashboardv2 | DashboardV2Payload describes a dashboard + x_organization = 'x_organization_example' # str | (optional) try: # create dashboards_v2 @@ -158,8 +158,8 @@ with iot_api_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **dashboardv2** | [**Dashboardv2**](Dashboardv2.md)| Describes a dashboard | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **dashboardv2** | [**Dashboardv2**](Dashboardv2.md)| DashboardV2Payload describes a dashboard | + **x_organization** | **str**| | [optional] ### Return type @@ -221,7 +221,7 @@ with iot_api_client.ApiClient(configuration) as api_client: api_instance = iot_api_client.DashboardsV2Api(api_client) id = 'id_example' # str | The id of the dashboard force = False # bool | If true, hard delete the thing (optional) (default to False) - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # delete dashboards_v2 @@ -239,7 +239,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the dashboard | **force** | **bool**| If true, hard delete the thing | [optional] [default to False] - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -302,7 +302,7 @@ with iot_api_client.ApiClient(configuration) as api_client: api_instance = iot_api_client.DashboardsV2Api(api_client) id = 'id_example' # str | The id of the dashboard user_id = 'user_id_example' # str | The id of the user - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # deleteShare dashboards_v2 @@ -320,7 +320,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the dashboard | **user_id** | **str**| The id of the user | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -386,7 +386,7 @@ with iot_api_client.ApiClient(configuration) as api_client: id = 'id_example' # str | The id of the dashboard widget_id = 'widget_id_example' # str | The id of the widget widgetlink = iot_api_client.Widgetlink() # Widgetlink | - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # link dashboards_v2 @@ -407,7 +407,7 @@ Name | Type | Description | Notes **id** | **str**| The id of the dashboard | **widget_id** | **str**| The id of the widget | **widgetlink** | [**Widgetlink**](Widgetlink.md)| | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -469,9 +469,9 @@ configuration.access_token = os.environ["ACCESS_TOKEN"] with iot_api_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = iot_api_client.DashboardsV2Api(api_client) - name = 'name_example' # str | Filter by name of the dashboard. It support like matching. (optional) - user_id = 'user_id_example' # str | Filter by user_id of the dashboard's owner (optional) - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + name = 'name_example' # str | The name of the dashboard (optional) + user_id = 'user_id_example' # str | The user_id of the dashboard's owner (optional) + x_organization = 'x_organization_example' # str | (optional) try: # list dashboards_v2 @@ -489,9 +489,9 @@ with iot_api_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| Filter by name of the dashboard. It support like matching. | [optional] - **user_id** | **str**| Filter by user_id of the dashboard's owner | [optional] - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **name** | **str**| The name of the dashboard | [optional] + **user_id** | **str**| The user_id of the dashboard's owner | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -553,7 +553,7 @@ with iot_api_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = iot_api_client.DashboardsV2Api(api_client) id = 'id_example' # str | The id of the dashboard - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # listShares dashboards_v2 @@ -572,7 +572,7 @@ with iot_api_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the dashboard | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -636,8 +636,8 @@ with iot_api_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = iot_api_client.DashboardsV2Api(api_client) id = 'id_example' # str | The id of the dashboard - dashboardv2 = iot_api_client.Dashboardv2() # Dashboardv2 | Describes a dashboard - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + dashboardv2 = iot_api_client.Dashboardv2() # Dashboardv2 | DashboardV2Payload describes a dashboard + x_organization = 'x_organization_example' # str | (optional) try: # patch dashboards_v2 @@ -656,8 +656,8 @@ with iot_api_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the dashboard | - **dashboardv2** | [**Dashboardv2**](Dashboardv2.md)| Describes a dashboard | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **dashboardv2** | [**Dashboardv2**](Dashboardv2.md)| DashboardV2Payload describes a dashboard | + **x_organization** | **str**| | [optional] ### Return type @@ -721,7 +721,7 @@ with iot_api_client.ApiClient(configuration) as api_client: api_instance = iot_api_client.DashboardsV2Api(api_client) id = 'id_example' # str | The id of the dashboard sharerequest = iot_api_client.Sharerequest() # Sharerequest | - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # requestAccess dashboards_v2 @@ -739,7 +739,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the dashboard | **sharerequest** | [**Sharerequest**](Sharerequest.md)| | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -803,7 +803,7 @@ with iot_api_client.ApiClient(configuration) as api_client: api_instance = iot_api_client.DashboardsV2Api(api_client) id = 'id_example' # str | The id of the dashboard dashboardshare = iot_api_client.Dashboardshare() # Dashboardshare | - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # share dashboards_v2 @@ -821,7 +821,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the dashboard | **dashboardshare** | [**Dashboardshare**](Dashboardshare.md)| | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -854,7 +854,7 @@ void (empty response body) show dashboards_v2 -Show a dashboard by id +Show a dashboard ### Example @@ -884,7 +884,7 @@ with iot_api_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = iot_api_client.DashboardsV2Api(api_client) id = 'id_example' # str | The id of the dashboard - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # show dashboards_v2 @@ -903,7 +903,7 @@ with iot_api_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the dashboard | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -965,7 +965,7 @@ with iot_api_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = iot_api_client.DashboardsV2Api(api_client) id = 'id_example' # str | The id of the dashboard - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # template dashboards_v2 @@ -984,7 +984,7 @@ with iot_api_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the dashboard | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -1048,8 +1048,8 @@ with iot_api_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = iot_api_client.DashboardsV2Api(api_client) id = 'id_example' # str | The id of the dashboard - dashboardv2 = iot_api_client.Dashboardv2() # Dashboardv2 | Describes a dashboard - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + dashboardv2 = iot_api_client.Dashboardv2() # Dashboardv2 | DashboardV2Payload describes a dashboard + x_organization = 'x_organization_example' # str | (optional) try: # update dashboards_v2 @@ -1068,8 +1068,8 @@ with iot_api_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the dashboard | - **dashboardv2** | [**Dashboardv2**](Dashboardv2.md)| Describes a dashboard | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **dashboardv2** | [**Dashboardv2**](Dashboardv2.md)| DashboardV2Payload describes a dashboard | + **x_organization** | **str**| | [optional] ### Return type diff --git a/docs/Dashboardshare.md b/docs/Dashboardshare.md index 10c8386..efad800 100644 --- a/docs/Dashboardshare.md +++ b/docs/Dashboardshare.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **user_id** | **str** | The userID of the user you want to share the dashboard with | [optional] **username** | **str** | The username of the user you want to share the dashboard with | [optional] +**users** | [**List[Usershare]**](Usershare.md) | The list of users you want to share the dashboard with | [optional] ## Example diff --git a/docs/Dashboardv2.md b/docs/Dashboardv2.md index c274ca9..2185ef2 100644 --- a/docs/Dashboardv2.md +++ b/docs/Dashboardv2.md @@ -1,6 +1,6 @@ # Dashboardv2 -Describes a dashboard +DashboardV2Payload describes a dashboard ## Properties diff --git a/docs/DevicesV2Api.md b/docs/DevicesV2Api.md index e3570c6..614eed0 100644 --- a/docs/DevicesV2Api.md +++ b/docs/DevicesV2Api.md @@ -5,6 +5,7 @@ All URIs are relative to *https://api2.arduino.cc* Method | HTTP request | Description ------------- | ------------- | ------------- [**devices_v2_create**](DevicesV2Api.md#devices_v2_create) | **PUT** /iot/v2/devices | create devices_v2 +[**devices_v2_create_claimed**](DevicesV2Api.md#devices_v2_create_claimed) | **PUT** /iot/v2/devices/claim | createClaimed devices_v2 [**devices_v2_delete**](DevicesV2Api.md#devices_v2_delete) | **DELETE** /iot/v2/devices/{id} | delete devices_v2 [**devices_v2_get_events**](DevicesV2Api.md#devices_v2_get_events) | **GET** /iot/v2/devices/{id}/events | getEvents devices_v2 [**devices_v2_get_properties**](DevicesV2Api.md#devices_v2_get_properties) | **GET** /iot/v2/devices/{id}/properties | getProperties devices_v2 @@ -52,7 +53,7 @@ with iot_api_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = iot_api_client.DevicesV2Api(api_client) create_devices_v2_payload = iot_api_client.CreateDevicesV2Payload() # CreateDevicesV2Payload | DeviceV2 describes a device. - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # create devices_v2 @@ -71,7 +72,89 @@ with iot_api_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **create_devices_v2_payload** | [**CreateDevicesV2Payload**](CreateDevicesV2Payload.md)| DeviceV2 describes a device. | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] + +### Return type + +[**ArduinoDevicev2**](ArduinoDevicev2.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/vnd.arduino.devicev2+json, application/vnd.goa.error+json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Created | - | +**401** | Unauthorized | - | +**403** | Forbidden | - | +**412** | Precondition Failed | - | +**500** | Internal Server Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **devices_v2_create_claimed** +> ArduinoDevicev2 devices_v2_create_claimed(create_claimed_devices_v2_payload, x_organization=x_organization) + +createClaimed devices_v2 + +Creates a new device associated to the user. + +### Example + +* OAuth Authentication (oauth2): + +```python +import iot_api_client +from iot_api_client.models.arduino_devicev2 import ArduinoDevicev2 +from iot_api_client.models.create_claimed_devices_v2_payload import CreateClaimedDevicesV2Payload +from iot_api_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api2.arduino.cc +# See configuration.py for a list of all supported configuration parameters. +configuration = iot_api_client.Configuration( + host = "https://api2.arduino.cc" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Enter a context with an instance of the API client +with iot_api_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = iot_api_client.DevicesV2Api(api_client) + create_claimed_devices_v2_payload = iot_api_client.CreateClaimedDevicesV2Payload() # CreateClaimedDevicesV2Payload | DeviceV2 describes a device. + x_organization = 'x_organization_example' # str | (optional) + + try: + # createClaimed devices_v2 + api_response = api_instance.devices_v2_create_claimed(create_claimed_devices_v2_payload, x_organization=x_organization) + print("The response of DevicesV2Api->devices_v2_create_claimed:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DevicesV2Api->devices_v2_create_claimed: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **create_claimed_devices_v2_payload** | [**CreateClaimedDevicesV2Payload**](CreateClaimedDevicesV2Payload.md)| DeviceV2 describes a device. | + **x_organization** | **str**| | [optional] ### Return type @@ -133,7 +216,7 @@ with iot_api_client.ApiClient(configuration) as api_client: api_instance = iot_api_client.DevicesV2Api(api_client) id = 'id_example' # str | The id of the device force = False # bool | If true, hard delete the device (optional) (default to False) - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # delete devices_v2 @@ -151,7 +234,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the device | **force** | **bool**| If true, hard delete the device | [optional] [default to False] - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -215,7 +298,7 @@ with iot_api_client.ApiClient(configuration) as api_client: id = 'id_example' # str | The id of the device limit = 56 # int | The number of events to select (optional) start = 'start_example' # str | The time at which to start selecting events (optional) - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # getEvents devices_v2 @@ -236,7 +319,7 @@ Name | Type | Description | Notes **id** | **str**| The id of the device | **limit** | **int**| The number of events to select | [optional] **start** | **str**| The time at which to start selecting events | [optional] - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -300,7 +383,7 @@ with iot_api_client.ApiClient(configuration) as api_client: api_instance = iot_api_client.DevicesV2Api(api_client) id = 'id_example' # str | The id of the device show_deleted = False # bool | If true, shows the soft deleted properties (optional) (default to False) - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # getProperties devices_v2 @@ -320,7 +403,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the device | **show_deleted** | **bool**| If true, shows the soft deleted properties | [optional] [default to False] - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -384,7 +467,7 @@ with iot_api_client.ApiClient(configuration) as api_client: id = 'id_example' # str | The id of the device limit = 30 # int | The number of events to select (optional) (default to 30) start = 'start_example' # str | The time at which to start selecting events (optional) - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # GetStatusEvents devices_v2 @@ -405,7 +488,7 @@ Name | Type | Description | Notes **id** | **str**| The id of the device | **limit** | **int**| The number of events to select | [optional] [default to 30] **start** | **str**| The time at which to start selecting events | [optional] - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -435,7 +518,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **devices_v2_list** -> List[ArduinoDevicev2] devices_v2_list(across_user_ids=across_user_ids, serial=serial, show_deleted=show_deleted, tags=tags, x_organization=x_organization) +> List[ArduinoDevicev2] devices_v2_list(across_user_ids=across_user_ids, serial=serial, show_deleted=show_deleted, tags=tags, unique_hardware_id=unique_hardware_id, x_organization=x_organization) list devices_v2 @@ -472,11 +555,12 @@ with iot_api_client.ApiClient(configuration) as api_client: serial = 'serial_example' # str | Filter by device serial number (optional) show_deleted = False # bool | If true, shows the soft deleted devices (optional) (default to False) tags = ['tags_example'] # List[str] | Filter by tags (optional) - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + unique_hardware_id = 'unique_hardware_id_example' # str | Filter by device unique hardware id (optional) + x_organization = 'x_organization_example' # str | (optional) try: # list devices_v2 - api_response = api_instance.devices_v2_list(across_user_ids=across_user_ids, serial=serial, show_deleted=show_deleted, tags=tags, x_organization=x_organization) + api_response = api_instance.devices_v2_list(across_user_ids=across_user_ids, serial=serial, show_deleted=show_deleted, tags=tags, unique_hardware_id=unique_hardware_id, x_organization=x_organization) print("The response of DevicesV2Api->devices_v2_list:\n") pprint(api_response) except Exception as e: @@ -494,7 +578,8 @@ Name | Type | Description | Notes **serial** | **str**| Filter by device serial number | [optional] **show_deleted** | **bool**| If true, shows the soft deleted devices | [optional] [default to False] **tags** | [**List[str]**](str.md)| Filter by tags | [optional] - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **unique_hardware_id** | **str**| Filter by device unique hardware id | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -556,7 +641,7 @@ with iot_api_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = iot_api_client.DevicesV2Api(api_client) id = 'id_example' # str | The id of the device - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # show devices_v2 @@ -575,7 +660,7 @@ with iot_api_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the device | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -640,7 +725,7 @@ with iot_api_client.ApiClient(configuration) as api_client: pid = 'pid_example' # str | The id of the property limit = 56 # int | The number of properties to select (optional) start = 'start_example' # str | The time at which to start selecting properties (optional) - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # timeseries devices_v2 @@ -662,7 +747,7 @@ Name | Type | Description | Notes **pid** | **str**| The id of the property | **limit** | **int**| The number of properties to select | [optional] **start** | **str**| The time at which to start selecting properties | [optional] - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -727,7 +812,7 @@ with iot_api_client.ApiClient(configuration) as api_client: api_instance = iot_api_client.DevicesV2Api(api_client) id = 'id_example' # str | The id of the device devicev2 = iot_api_client.Devicev2() # Devicev2 | DeviceV2 describes a device. - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # update devices_v2 @@ -747,7 +832,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the device | **devicev2** | [**Devicev2**](Devicev2.md)| DeviceV2 describes a device. | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -811,7 +896,7 @@ with iot_api_client.ApiClient(configuration) as api_client: api_instance = iot_api_client.DevicesV2Api(api_client) id = 'id_example' # str | The id of the device properties_values = iot_api_client.PropertiesValues() # PropertiesValues | - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # updateProperties devices_v2 @@ -829,7 +914,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the device | **properties_values** | [**PropertiesValues**](PropertiesValues.md)| | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type diff --git a/docs/Devicev2.md b/docs/Devicev2.md index bde474c..95ea5a0 100644 --- a/docs/Devicev2.md +++ b/docs/Devicev2.md @@ -6,12 +6,14 @@ DeviceV2 describes a device. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**ble_mac** | **str** | | [optional] **connection_type** | **str** | The type of the connections selected by the user when multiple connections are available | [optional] **fqbn** | **str** | The fully qualified board name | [optional] **name** | **str** | The friendly name of the device | [optional] **serial** | **str** | The serial uuid of the device | [optional] **soft_deleted** | **bool** | If false, restore the thing from the soft deletion | [optional] [default to False] **type** | **str** | The type of the device | [optional] +**unique_hardware_id** | **str** | | [optional] **user_id** | **str** | The user_id associated to the device. If absent it will be inferred from the authentication header | [optional] **wifi_fw_version** | **str** | The version of the NINA/WIFI101 firmware running on the device | [optional] diff --git a/docs/LoraDevicesV1Api.md b/docs/LoraDevicesV1Api.md index 5d60b52..1dd6ac6 100644 --- a/docs/LoraDevicesV1Api.md +++ b/docs/LoraDevicesV1Api.md @@ -43,7 +43,7 @@ with iot_api_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = iot_api_client.LoraDevicesV1Api(api_client) create_lora_devices_v1_payload = iot_api_client.CreateLoraDevicesV1Payload() # CreateLoraDevicesV1Payload | - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # create lora_devices_v1 @@ -62,7 +62,7 @@ with iot_api_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **create_lora_devices_v1_payload** | [**CreateLoraDevicesV1Payload**](CreateLoraDevicesV1Payload.md)| | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type diff --git a/docs/NetworkCredentialsV1Api.md b/docs/NetworkCredentialsV1Api.md index 10c1a0a..843ef7e 100644 --- a/docs/NetworkCredentialsV1Api.md +++ b/docs/NetworkCredentialsV1Api.md @@ -88,7 +88,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **network_credentials_v1_show_by_device** -> network_credentials_v1_show_by_device(type) +> ArduinoArduinoconnectionsV1 network_credentials_v1_show_by_device(type) showByDevice network_credentials_v1 @@ -100,6 +100,7 @@ Show available connection types depending on device type ```python import iot_api_client +from iot_api_client.models.arduino_arduinoconnections_v1 import ArduinoArduinoconnectionsV1 from iot_api_client.rest import ApiException from pprint import pprint @@ -124,7 +125,9 @@ with iot_api_client.ApiClient(configuration) as api_client: try: # showByDevice network_credentials_v1 - api_instance.network_credentials_v1_show_by_device(type) + api_response = api_instance.network_credentials_v1_show_by_device(type) + print("The response of NetworkCredentialsV1Api->network_credentials_v1_show_by_device:\n") + pprint(api_response) except Exception as e: print("Exception when calling NetworkCredentialsV1Api->network_credentials_v1_show_by_device: %s\n" % e) ``` @@ -140,7 +143,7 @@ Name | Type | Description | Notes ### Return type -void (empty response body) +[**ArduinoArduinoconnectionsV1**](ArduinoArduinoconnectionsV1.md) ### Authorization @@ -149,7 +152,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/vnd.goa.error+json + - **Accept**: application/vnd.arduino.arduinoconnections.v1+json, application/vnd.goa.error+json ### HTTP response details diff --git a/docs/PropertiesV2Api.md b/docs/PropertiesV2Api.md index 54a7d06..b42b7fa 100644 --- a/docs/PropertiesV2Api.md +++ b/docs/PropertiesV2Api.md @@ -50,7 +50,7 @@ with iot_api_client.ApiClient(configuration) as api_client: api_instance = iot_api_client.PropertiesV2Api(api_client) id = 'id_example' # str | The id of the thing model_property = iot_api_client.ModelProperty() # ModelProperty | PropertyPayload describes a property of a thing. No field is mandatory - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | The id of the organization (optional) try: # create properties_v2 @@ -70,7 +70,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the thing | **model_property** | [**ModelProperty**](ModelProperty.md)| PropertyPayload describes a property of a thing. No field is mandatory | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| The id of the organization | [optional] ### Return type @@ -134,7 +134,7 @@ with iot_api_client.ApiClient(configuration) as api_client: id = 'id_example' # str | The id of the thing pid = 'pid_example' # str | The id of the property force = False # bool | If true, hard delete the property (optional) (default to False) - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | The id of the organization (optional) try: # delete properties_v2 @@ -153,7 +153,7 @@ Name | Type | Description | Notes **id** | **str**| The id of the thing | **pid** | **str**| The id of the property | **force** | **bool**| If true, hard delete the property | [optional] [default to False] - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| The id of the organization | [optional] ### Return type @@ -215,7 +215,7 @@ with iot_api_client.ApiClient(configuration) as api_client: api_instance = iot_api_client.PropertiesV2Api(api_client) id = 'id_example' # str | The id of the thing show_deleted = False # bool | If true, shows the soft deleted properties (optional) (default to False) - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | The id of the organization (optional) try: # list properties_v2 @@ -235,7 +235,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the thing | **show_deleted** | **bool**| If true, shows the soft deleted properties | [optional] [default to False] - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| The id of the organization | [optional] ### Return type @@ -298,7 +298,7 @@ with iot_api_client.ApiClient(configuration) as api_client: id = 'id_example' # str | The id of the thing pid = 'pid_example' # str | The id of the property property_value = iot_api_client.PropertyValue() # PropertyValue | PropertyValuePayload describes a property value - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | The id of the organization (optional) try: # publish properties_v2 @@ -317,7 +317,7 @@ Name | Type | Description | Notes **id** | **str**| The id of the thing | **pid** | **str**| The id of the property | **property_value** | [**PropertyValue**](PropertyValue.md)| PropertyValuePayload describes a property value | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| The id of the organization | [optional] ### Return type @@ -381,7 +381,7 @@ with iot_api_client.ApiClient(configuration) as api_client: id = 'id_example' # str | The id of the thing pid = 'pid_example' # str | The id of the property show_deleted = False # bool | If true, shows the soft deleted properties (optional) (default to False) - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | The id of the organization (optional) try: # show properties_v2 @@ -402,7 +402,7 @@ Name | Type | Description | Notes **id** | **str**| The id of the thing | **pid** | **str**| The id of the property | **show_deleted** | **bool**| If true, shows the soft deleted properties | [optional] [default to False] - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| The id of the organization | [optional] ### Return type @@ -469,7 +469,7 @@ with iot_api_client.ApiClient(configuration) as api_client: var_from = 'var_from_example' # str | Get data with a timestamp >= to this date (default: 2 weeks ago, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z) (optional) interval = 56 # int | Binning interval in seconds (defaut: the smallest possible value compatibly with the limit of 1000 data points in the response) (optional) to = 'to_example' # str | Get data with a timestamp < to this date (default: now, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z) (optional) - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | The id of the organization (optional) try: # timeseries properties_v2 @@ -494,7 +494,7 @@ Name | Type | Description | Notes **var_from** | **str**| Get data with a timestamp >= to this date (default: 2 weeks ago, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z) | [optional] **interval** | **int**| Binning interval in seconds (defaut: the smallest possible value compatibly with the limit of 1000 data points in the response) | [optional] **to** | **str**| Get data with a timestamp < to this date (default: now, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z) | [optional] - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| The id of the organization | [optional] ### Return type @@ -559,7 +559,7 @@ with iot_api_client.ApiClient(configuration) as api_client: id = 'id_example' # str | The id of the thing pid = 'pid_example' # str | The id of the property model_property = iot_api_client.ModelProperty() # ModelProperty | PropertyPayload describes a property of a thing. No field is mandatory - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | The id of the organization (optional) try: # update properties_v2 @@ -580,7 +580,7 @@ Name | Type | Description | Notes **id** | **str**| The id of the thing | **pid** | **str**| The id of the property | **model_property** | [**ModelProperty**](ModelProperty.md)| PropertyPayload describes a property of a thing. No field is mandatory | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| The id of the organization | [optional] ### Return type diff --git a/docs/SeriesV2Api.md b/docs/SeriesV2Api.md index 2045456..3dcdc7f 100644 --- a/docs/SeriesV2Api.md +++ b/docs/SeriesV2Api.md @@ -47,7 +47,7 @@ with iot_api_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = iot_api_client.SeriesV2Api(api_client) batch_query_requests_media_v1 = iot_api_client.BatchQueryRequestsMediaV1() # BatchQueryRequestsMediaV1 | - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # batch_query series_v2 @@ -66,7 +66,7 @@ with iot_api_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **batch_query_requests_media_v1** | [**BatchQueryRequestsMediaV1**](BatchQueryRequestsMediaV1.md)| | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -131,7 +131,7 @@ with iot_api_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = iot_api_client.SeriesV2Api(api_client) batch_query_raw_requests_media_v1 = iot_api_client.BatchQueryRawRequestsMediaV1() # BatchQueryRawRequestsMediaV1 | - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # batch_query_raw series_v2 @@ -150,7 +150,7 @@ with iot_api_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **batch_query_raw_requests_media_v1** | [**BatchQueryRawRequestsMediaV1**](BatchQueryRawRequestsMediaV1.md)| | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -215,7 +215,7 @@ with iot_api_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = iot_api_client.SeriesV2Api(api_client) batch_last_value_requests_media_v1 = iot_api_client.BatchLastValueRequestsMediaV1() # BatchLastValueRequestsMediaV1 | - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # batch_query_raw_last_value series_v2 @@ -234,7 +234,7 @@ with iot_api_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **batch_last_value_requests_media_v1** | [**BatchLastValueRequestsMediaV1**](BatchLastValueRequestsMediaV1.md)| | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -298,7 +298,7 @@ with iot_api_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = iot_api_client.SeriesV2Api(api_client) batch_query_sampled_requests_media_v1 = iot_api_client.BatchQuerySampledRequestsMediaV1() # BatchQuerySampledRequestsMediaV1 | - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # batch_query_sampling series_v2 @@ -317,7 +317,7 @@ with iot_api_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **batch_query_sampled_requests_media_v1** | [**BatchQuerySampledRequestsMediaV1**](BatchQuerySampledRequestsMediaV1.md)| | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -381,7 +381,7 @@ with iot_api_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = iot_api_client.SeriesV2Api(api_client) historic_data_request = iot_api_client.HistoricDataRequest() # HistoricDataRequest | - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # historic_data series_v2 @@ -398,7 +398,7 @@ with iot_api_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **historic_data_request** | [**HistoricDataRequest**](HistoricDataRequest.md)| | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type diff --git a/docs/TemplatesApi.md b/docs/TemplatesApi.md index 30997e8..cf3086b 100644 --- a/docs/TemplatesApi.md +++ b/docs/TemplatesApi.md @@ -43,7 +43,7 @@ with iot_api_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = iot_api_client.TemplatesApi(api_client) template = iot_api_client.Template() # Template | TemplatePayload describes the needed attribute to apply a template - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # apply templates @@ -62,7 +62,7 @@ with iot_api_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **template** | [**Template**](Template.md)| TemplatePayload describes the needed attribute to apply a template | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type diff --git a/docs/ThingsV2Api.md b/docs/ThingsV2Api.md index 175cfb1..12f9220 100644 --- a/docs/ThingsV2Api.md +++ b/docs/ThingsV2Api.md @@ -53,7 +53,7 @@ with iot_api_client.ApiClient(configuration) as api_client: api_instance = iot_api_client.ThingsV2Api(api_client) id = 'id_example' # str | The id of the thing thing_clone = iot_api_client.ThingClone() # ThingClone | Payload to clone a new thing from an existing one - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # clone things_v2 @@ -73,7 +73,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the thing | **thing_clone** | [**ThingClone**](ThingClone.md)| Payload to clone a new thing from an existing one | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -138,7 +138,7 @@ with iot_api_client.ApiClient(configuration) as api_client: api_instance = iot_api_client.ThingsV2Api(api_client) thing_create = iot_api_client.ThingCreate() # ThingCreate | Payload to create a new thing force = False # bool | If true, detach device from the other thing, and attach to this thing (optional) (default to False) - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # create things_v2 @@ -158,7 +158,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **thing_create** | [**ThingCreate**](ThingCreate.md)| Payload to create a new thing | **force** | **bool**| If true, detach device from the other thing, and attach to this thing | [optional] [default to False] - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -224,7 +224,7 @@ with iot_api_client.ApiClient(configuration) as api_client: api_instance = iot_api_client.ThingsV2Api(api_client) id = 'id_example' # str | The id of the thing thing_sketch = iot_api_client.ThingSketch() # ThingSketch | ThingSketchPayload describes a sketch of a thing - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # createSketch things_v2 @@ -244,7 +244,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the thing | **thing_sketch** | [**ThingSketch**](ThingSketch.md)| ThingSketchPayload describes a sketch of a thing | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -308,7 +308,7 @@ with iot_api_client.ApiClient(configuration) as api_client: api_instance = iot_api_client.ThingsV2Api(api_client) id = 'id_example' # str | The id of the thing force = False # bool | If true, hard delete the thing (optional) (default to False) - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # delete things_v2 @@ -326,7 +326,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the thing | **force** | **bool**| If true, hard delete the thing | [optional] [default to False] - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -387,7 +387,7 @@ with iot_api_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = iot_api_client.ThingsV2Api(api_client) id = 'id_example' # str | The id of the thing - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # deleteSketch things_v2 @@ -406,7 +406,7 @@ with iot_api_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the thing | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -473,7 +473,7 @@ with iot_api_client.ApiClient(configuration) as api_client: show_deleted = False # bool | If true, shows the soft deleted things (optional) (default to False) show_properties = False # bool | If true, returns things with their properties, and last values (optional) (default to False) tags = ['tags_example'] # List[str] | Filter by tags (optional) - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # list things_v2 @@ -497,7 +497,7 @@ Name | Type | Description | Notes **show_deleted** | **bool**| If true, shows the soft deleted things | [optional] [default to False] **show_properties** | **bool**| If true, returns things with their properties, and last values | [optional] [default to False] **tags** | [**List[str]**](str.md)| Filter by tags | [optional] - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -560,7 +560,7 @@ with iot_api_client.ApiClient(configuration) as api_client: api_instance = iot_api_client.ThingsV2Api(api_client) id = 'id_example' # str | The id of the thing show_deleted = False # bool | If true, shows the soft deleted thing (optional) (default to False) - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # show things_v2 @@ -580,7 +580,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the thing | **show_deleted** | **bool**| If true, shows the soft deleted thing | [optional] [default to False] - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -642,7 +642,7 @@ with iot_api_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = iot_api_client.ThingsV2Api(api_client) id = 'id_example' # str | The id of the thing - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # template things_v2 @@ -661,7 +661,7 @@ with iot_api_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the thing | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -727,7 +727,7 @@ with iot_api_client.ApiClient(configuration) as api_client: id = 'id_example' # str | The id of the thing thing_update = iot_api_client.ThingUpdate() # ThingUpdate | Payload to update an existing thing force = False # bool | If true, detach device from the other thing, and attach to this thing (optional) (default to False) - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) try: # update things_v2 @@ -748,7 +748,7 @@ Name | Type | Description | Notes **id** | **str**| The id of the thing | **thing_update** | [**ThingUpdate**](ThingUpdate.md)| Payload to update an existing thing | **force** | **bool**| If true, detach device from the other thing, and attach to this thing | [optional] [default to False] - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] ### Return type @@ -815,7 +815,7 @@ with iot_api_client.ApiClient(configuration) as api_client: api_instance = iot_api_client.ThingsV2Api(api_client) id = 'id_example' # str | The id of the thing sketch_id = 'sketch_id_example' # str | The id of the sketch - x_organization = 'x_organization_example' # str | Organization space identifer (optional) (optional) + x_organization = 'x_organization_example' # str | (optional) update_sketch = iot_api_client.UpdateSketch() # UpdateSketch | (optional) try: @@ -836,7 +836,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The id of the thing | **sketch_id** | **str**| The id of the sketch | - **x_organization** | **str**| Organization space identifer (optional) | [optional] + **x_organization** | **str**| | [optional] **update_sketch** | [**UpdateSketch**](UpdateSketch.md)| | [optional] ### Return type diff --git a/docs/Usershare.md b/docs/Usershare.md new file mode 100644 index 0000000..6a36a08 --- /dev/null +++ b/docs/Usershare.md @@ -0,0 +1,30 @@ +# Usershare + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_id** | **str** | The userID of the user you want to share the dashboard with | [optional] +**username** | **str** | The username of the user you want to share the dashboard with | [optional] + +## Example + +```python +from iot_api_client.models.usershare import Usershare + +# TODO update the JSON string below +json = "{}" +# create an instance of Usershare from a JSON string +usershare_instance = Usershare.from_json(json) +# print the JSON string representation of the object +print(Usershare.to_json()) + +# convert the object into a dict +usershare_dict = usershare_instance.to_dict() +# create an instance of Usershare from a dict +usershare_from_dict = Usershare.from_dict(usershare_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/iot_api_client/__init__.py b/iot_api_client/__init__.py index a2ca6b8..1a38311 100644 --- a/iot_api_client/__init__.py +++ b/iot_api_client/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "3.0.0" +__version__ = "3.1.0" # import apis into sdk package from iot_api_client.api.dashboards_v2_api import DashboardsV2Api @@ -48,6 +48,7 @@ # import models into sdk package from iot_api_client.models.arduino_action import ArduinoAction from iot_api_client.models.arduino_action_template import ArduinoActionTemplate +from iot_api_client.models.arduino_arduinoconnections_v1 import ArduinoArduinoconnectionsV1 from iot_api_client.models.arduino_compressedv2 import ArduinoCompressedv2 from iot_api_client.models.arduino_credentialsv1 import ArduinoCredentialsv1 from iot_api_client.models.arduino_dashboardowner import ArduinoDashboardowner @@ -116,6 +117,7 @@ from iot_api_client.models.check_devices_v2_pass_payload import CheckDevicesV2PassPayload from iot_api_client.models.clone import Clone from iot_api_client.models.create_action import CreateAction +from iot_api_client.models.create_claimed_devices_v2_payload import CreateClaimedDevicesV2Payload from iot_api_client.models.create_devices_v2_certs_payload import CreateDevicesV2CertsPayload from iot_api_client.models.create_devices_v2_payload import CreateDevicesV2Payload from iot_api_client.models.create_lora_devices_v1_payload import CreateLoraDevicesV1Payload @@ -152,6 +154,7 @@ from iot_api_client.models.update_action import UpdateAction from iot_api_client.models.update_sketch import UpdateSketch from iot_api_client.models.user_recipient import UserRecipient +from iot_api_client.models.usershare import Usershare from iot_api_client.models.variable import Variable from iot_api_client.models.widget import Widget from iot_api_client.models.widgetlink import Widgetlink diff --git a/iot_api_client/api/dashboards_v2_api.py b/iot_api_client/api/dashboards_v2_api.py index 99a0fa3..7eae78d 100644 --- a/iot_api_client/api/dashboards_v2_api.py +++ b/iot_api_client/api/dashboards_v2_api.py @@ -51,8 +51,8 @@ def __init__(self, api_client=None) -> None: def dashboards_v2_clone( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], - clone: Annotated[Clone, Field(description="Add overrides used when performing a clone of a dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + clone: Clone, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -72,9 +72,9 @@ def dashboards_v2_clone( :param id: The id of the dashboard (required) :type id: str - :param clone: Add overrides used when performing a clone of a dashboard (required) + :param clone: (required) :type clone: Clone - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -131,8 +131,8 @@ def dashboards_v2_clone( def dashboards_v2_clone_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], - clone: Annotated[Clone, Field(description="Add overrides used when performing a clone of a dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + clone: Clone, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -152,9 +152,9 @@ def dashboards_v2_clone_with_http_info( :param id: The id of the dashboard (required) :type id: str - :param clone: Add overrides used when performing a clone of a dashboard (required) + :param clone: (required) :type clone: Clone - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -211,8 +211,8 @@ def dashboards_v2_clone_with_http_info( def dashboards_v2_clone_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], - clone: Annotated[Clone, Field(description="Add overrides used when performing a clone of a dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + clone: Clone, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -232,9 +232,9 @@ def dashboards_v2_clone_without_preload_content( :param id: The id of the dashboard (required) :type id: str - :param clone: Add overrides used when performing a clone of a dashboard (required) + :param clone: (required) :type clone: Clone - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -370,8 +370,8 @@ def _dashboards_v2_clone_serialize( @validate_call def dashboards_v2_create( self, - dashboardv2: Annotated[Dashboardv2, Field(description="Describes a dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + dashboardv2: Annotated[Dashboardv2, Field(description="DashboardV2Payload describes a dashboard")], + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -389,9 +389,9 @@ def dashboards_v2_create( Create a new dashboard - :param dashboardv2: Describes a dashboard (required) + :param dashboardv2: DashboardV2Payload describes a dashboard (required) :type dashboardv2: Dashboardv2 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -445,8 +445,8 @@ def dashboards_v2_create( @validate_call def dashboards_v2_create_with_http_info( self, - dashboardv2: Annotated[Dashboardv2, Field(description="Describes a dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + dashboardv2: Annotated[Dashboardv2, Field(description="DashboardV2Payload describes a dashboard")], + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -464,9 +464,9 @@ def dashboards_v2_create_with_http_info( Create a new dashboard - :param dashboardv2: Describes a dashboard (required) + :param dashboardv2: DashboardV2Payload describes a dashboard (required) :type dashboardv2: Dashboardv2 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -520,8 +520,8 @@ def dashboards_v2_create_with_http_info( @validate_call def dashboards_v2_create_without_preload_content( self, - dashboardv2: Annotated[Dashboardv2, Field(description="Describes a dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + dashboardv2: Annotated[Dashboardv2, Field(description="DashboardV2Payload describes a dashboard")], + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -539,9 +539,9 @@ def dashboards_v2_create_without_preload_content( Create a new dashboard - :param dashboardv2: Describes a dashboard (required) + :param dashboardv2: DashboardV2Payload describes a dashboard (required) :type dashboardv2: Dashboardv2 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -674,7 +674,7 @@ def dashboards_v2_delete( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], force: Annotated[Optional[StrictBool], Field(description="If true, hard delete the thing")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -696,7 +696,7 @@ def dashboards_v2_delete( :type id: str :param force: If true, hard delete the thing :type force: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -754,7 +754,7 @@ def dashboards_v2_delete_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], force: Annotated[Optional[StrictBool], Field(description="If true, hard delete the thing")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -776,7 +776,7 @@ def dashboards_v2_delete_with_http_info( :type id: str :param force: If true, hard delete the thing :type force: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -834,7 +834,7 @@ def dashboards_v2_delete_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], force: Annotated[Optional[StrictBool], Field(description="If true, hard delete the thing")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -856,7 +856,7 @@ def dashboards_v2_delete_without_preload_content( :type id: str :param force: If true, hard delete the thing :type force: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -983,7 +983,7 @@ def dashboards_v2_delete_share( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], user_id: Annotated[StrictStr, Field(description="The id of the user")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1005,7 +1005,7 @@ def dashboards_v2_delete_share( :type id: str :param user_id: The id of the user (required) :type user_id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1063,7 +1063,7 @@ def dashboards_v2_delete_share_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], user_id: Annotated[StrictStr, Field(description="The id of the user")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1085,7 +1085,7 @@ def dashboards_v2_delete_share_with_http_info( :type id: str :param user_id: The id of the user (required) :type user_id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1143,7 +1143,7 @@ def dashboards_v2_delete_share_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], user_id: Annotated[StrictStr, Field(description="The id of the user")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1165,7 +1165,7 @@ def dashboards_v2_delete_share_without_preload_content( :type id: str :param user_id: The id of the user (required) :type user_id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1291,7 +1291,7 @@ def dashboards_v2_link( id: Annotated[StrictStr, Field(description="The id of the dashboard")], widget_id: Annotated[StrictStr, Field(description="The id of the widget")], widgetlink: Widgetlink, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1315,7 +1315,7 @@ def dashboards_v2_link( :type widget_id: str :param widgetlink: (required) :type widgetlink: Widgetlink - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1375,7 +1375,7 @@ def dashboards_v2_link_with_http_info( id: Annotated[StrictStr, Field(description="The id of the dashboard")], widget_id: Annotated[StrictStr, Field(description="The id of the widget")], widgetlink: Widgetlink, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1399,7 +1399,7 @@ def dashboards_v2_link_with_http_info( :type widget_id: str :param widgetlink: (required) :type widgetlink: Widgetlink - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1459,7 +1459,7 @@ def dashboards_v2_link_without_preload_content( id: Annotated[StrictStr, Field(description="The id of the dashboard")], widget_id: Annotated[StrictStr, Field(description="The id of the widget")], widgetlink: Widgetlink, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1483,7 +1483,7 @@ def dashboards_v2_link_without_preload_content( :type widget_id: str :param widgetlink: (required) :type widgetlink: Widgetlink - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1623,9 +1623,9 @@ def _dashboards_v2_link_serialize( @validate_call def dashboards_v2_list( self, - name: Annotated[Optional[Annotated[str, Field(strict=True, max_length=64)]], Field(description="Filter by name of the dashboard. It support like matching.")] = None, - user_id: Annotated[Optional[StrictStr], Field(description="Filter by user_id of the dashboard's owner")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + name: Annotated[Optional[Annotated[str, Field(strict=True, max_length=64)]], Field(description="The name of the dashboard")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="The user_id of the dashboard's owner")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1643,11 +1643,11 @@ def dashboards_v2_list( Returns the list of dashboards - :param name: Filter by name of the dashboard. It support like matching. + :param name: The name of the dashboard :type name: str - :param user_id: Filter by user_id of the dashboard's owner + :param user_id: The user_id of the dashboard's owner :type user_id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1702,9 +1702,9 @@ def dashboards_v2_list( @validate_call def dashboards_v2_list_with_http_info( self, - name: Annotated[Optional[Annotated[str, Field(strict=True, max_length=64)]], Field(description="Filter by name of the dashboard. It support like matching.")] = None, - user_id: Annotated[Optional[StrictStr], Field(description="Filter by user_id of the dashboard's owner")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + name: Annotated[Optional[Annotated[str, Field(strict=True, max_length=64)]], Field(description="The name of the dashboard")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="The user_id of the dashboard's owner")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1722,11 +1722,11 @@ def dashboards_v2_list_with_http_info( Returns the list of dashboards - :param name: Filter by name of the dashboard. It support like matching. + :param name: The name of the dashboard :type name: str - :param user_id: Filter by user_id of the dashboard's owner + :param user_id: The user_id of the dashboard's owner :type user_id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1781,9 +1781,9 @@ def dashboards_v2_list_with_http_info( @validate_call def dashboards_v2_list_without_preload_content( self, - name: Annotated[Optional[Annotated[str, Field(strict=True, max_length=64)]], Field(description="Filter by name of the dashboard. It support like matching.")] = None, - user_id: Annotated[Optional[StrictStr], Field(description="Filter by user_id of the dashboard's owner")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + name: Annotated[Optional[Annotated[str, Field(strict=True, max_length=64)]], Field(description="The name of the dashboard")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="The user_id of the dashboard's owner")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1801,11 +1801,11 @@ def dashboards_v2_list_without_preload_content( Returns the list of dashboards - :param name: Filter by name of the dashboard. It support like matching. + :param name: The name of the dashboard :type name: str - :param user_id: Filter by user_id of the dashboard's owner + :param user_id: The user_id of the dashboard's owner :type user_id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1932,7 +1932,7 @@ def _dashboards_v2_list_serialize( def dashboards_v2_list_shares( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1952,7 +1952,7 @@ def dashboards_v2_list_shares( :param id: The id of the dashboard (required) :type id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2008,7 +2008,7 @@ def dashboards_v2_list_shares( def dashboards_v2_list_shares_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2028,7 +2028,7 @@ def dashboards_v2_list_shares_with_http_info( :param id: The id of the dashboard (required) :type id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2084,7 +2084,7 @@ def dashboards_v2_list_shares_with_http_info( def dashboards_v2_list_shares_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2104,7 +2104,7 @@ def dashboards_v2_list_shares_without_preload_content( :param id: The id of the dashboard (required) :type id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2224,8 +2224,8 @@ def _dashboards_v2_list_shares_serialize( def dashboards_v2_patch( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], - dashboardv2: Annotated[Dashboardv2, Field(description="Describes a dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + dashboardv2: Annotated[Dashboardv2, Field(description="DashboardV2Payload describes a dashboard")], + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2245,9 +2245,9 @@ def dashboards_v2_patch( :param id: The id of the dashboard (required) :type id: str - :param dashboardv2: Describes a dashboard (required) + :param dashboardv2: DashboardV2Payload describes a dashboard (required) :type dashboardv2: Dashboardv2 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2304,8 +2304,8 @@ def dashboards_v2_patch( def dashboards_v2_patch_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], - dashboardv2: Annotated[Dashboardv2, Field(description="Describes a dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + dashboardv2: Annotated[Dashboardv2, Field(description="DashboardV2Payload describes a dashboard")], + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2325,9 +2325,9 @@ def dashboards_v2_patch_with_http_info( :param id: The id of the dashboard (required) :type id: str - :param dashboardv2: Describes a dashboard (required) + :param dashboardv2: DashboardV2Payload describes a dashboard (required) :type dashboardv2: Dashboardv2 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2384,8 +2384,8 @@ def dashboards_v2_patch_with_http_info( def dashboards_v2_patch_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], - dashboardv2: Annotated[Dashboardv2, Field(description="Describes a dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + dashboardv2: Annotated[Dashboardv2, Field(description="DashboardV2Payload describes a dashboard")], + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2405,9 +2405,9 @@ def dashboards_v2_patch_without_preload_content( :param id: The id of the dashboard (required) :type id: str - :param dashboardv2: Describes a dashboard (required) + :param dashboardv2: DashboardV2Payload describes a dashboard (required) :type dashboardv2: Dashboardv2 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2545,7 +2545,7 @@ def dashboards_v2_request_access( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], sharerequest: Sharerequest, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2567,7 +2567,7 @@ def dashboards_v2_request_access( :type id: str :param sharerequest: (required) :type sharerequest: Sharerequest - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2625,7 +2625,7 @@ def dashboards_v2_request_access_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], sharerequest: Sharerequest, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2647,7 +2647,7 @@ def dashboards_v2_request_access_with_http_info( :type id: str :param sharerequest: (required) :type sharerequest: Sharerequest - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2705,7 +2705,7 @@ def dashboards_v2_request_access_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], sharerequest: Sharerequest, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2727,7 +2727,7 @@ def dashboards_v2_request_access_without_preload_content( :type id: str :param sharerequest: (required) :type sharerequest: Sharerequest - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2865,7 +2865,7 @@ def dashboards_v2_share( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], dashboardshare: Dashboardshare, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2887,7 +2887,7 @@ def dashboards_v2_share( :type id: str :param dashboardshare: (required) :type dashboardshare: Dashboardshare - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2945,7 +2945,7 @@ def dashboards_v2_share_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], dashboardshare: Dashboardshare, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2967,7 +2967,7 @@ def dashboards_v2_share_with_http_info( :type id: str :param dashboardshare: (required) :type dashboardshare: Dashboardshare - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3025,7 +3025,7 @@ def dashboards_v2_share_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], dashboardshare: Dashboardshare, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3047,7 +3047,7 @@ def dashboards_v2_share_without_preload_content( :type id: str :param dashboardshare: (required) :type dashboardshare: Dashboardshare - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3184,7 +3184,7 @@ def _dashboards_v2_share_serialize( def dashboards_v2_show( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3200,11 +3200,11 @@ def dashboards_v2_show( ) -> ArduinoDashboardv2: """show dashboards_v2 - Show a dashboard by id + Show a dashboard :param id: The id of the dashboard (required) :type id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3259,7 +3259,7 @@ def dashboards_v2_show( def dashboards_v2_show_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3275,11 +3275,11 @@ def dashboards_v2_show_with_http_info( ) -> ApiResponse[ArduinoDashboardv2]: """show dashboards_v2 - Show a dashboard by id + Show a dashboard :param id: The id of the dashboard (required) :type id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3334,7 +3334,7 @@ def dashboards_v2_show_with_http_info( def dashboards_v2_show_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3350,11 +3350,11 @@ def dashboards_v2_show_without_preload_content( ) -> RESTResponseType: """show dashboards_v2 - Show a dashboard by id + Show a dashboard :param id: The id of the dashboard (required) :type id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3473,7 +3473,7 @@ def _dashboards_v2_show_serialize( def dashboards_v2_template( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3493,7 +3493,7 @@ def dashboards_v2_template( :param id: The id of the dashboard (required) :type id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3549,7 +3549,7 @@ def dashboards_v2_template( def dashboards_v2_template_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3569,7 +3569,7 @@ def dashboards_v2_template_with_http_info( :param id: The id of the dashboard (required) :type id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3625,7 +3625,7 @@ def dashboards_v2_template_with_http_info( def dashboards_v2_template_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3645,7 +3645,7 @@ def dashboards_v2_template_without_preload_content( :param id: The id of the dashboard (required) :type id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3765,8 +3765,8 @@ def _dashboards_v2_template_serialize( def dashboards_v2_update( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], - dashboardv2: Annotated[Dashboardv2, Field(description="Describes a dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + dashboardv2: Annotated[Dashboardv2, Field(description="DashboardV2Payload describes a dashboard")], + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3786,9 +3786,9 @@ def dashboards_v2_update( :param id: The id of the dashboard (required) :type id: str - :param dashboardv2: Describes a dashboard (required) + :param dashboardv2: DashboardV2Payload describes a dashboard (required) :type dashboardv2: Dashboardv2 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3845,8 +3845,8 @@ def dashboards_v2_update( def dashboards_v2_update_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], - dashboardv2: Annotated[Dashboardv2, Field(description="Describes a dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + dashboardv2: Annotated[Dashboardv2, Field(description="DashboardV2Payload describes a dashboard")], + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3866,9 +3866,9 @@ def dashboards_v2_update_with_http_info( :param id: The id of the dashboard (required) :type id: str - :param dashboardv2: Describes a dashboard (required) + :param dashboardv2: DashboardV2Payload describes a dashboard (required) :type dashboardv2: Dashboardv2 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3925,8 +3925,8 @@ def dashboards_v2_update_with_http_info( def dashboards_v2_update_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the dashboard")], - dashboardv2: Annotated[Dashboardv2, Field(description="Describes a dashboard")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + dashboardv2: Annotated[Dashboardv2, Field(description="DashboardV2Payload describes a dashboard")], + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3946,9 +3946,9 @@ def dashboards_v2_update_without_preload_content( :param id: The id of the dashboard (required) :type id: str - :param dashboardv2: Describes a dashboard (required) + :param dashboardv2: DashboardV2Payload describes a dashboard (required) :type dashboardv2: Dashboardv2 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request diff --git a/iot_api_client/api/devices_v2_api.py b/iot_api_client/api/devices_v2_api.py index 97f1075..590fbce 100644 --- a/iot_api_client/api/devices_v2_api.py +++ b/iot_api_client/api/devices_v2_api.py @@ -24,6 +24,7 @@ from iot_api_client.models.arduino_devicev2_status_events import ArduinoDevicev2StatusEvents from iot_api_client.models.arduino_devicev2properties import ArduinoDevicev2properties from iot_api_client.models.arduino_devicev2propertyvalues import ArduinoDevicev2propertyvalues +from iot_api_client.models.create_claimed_devices_v2_payload import CreateClaimedDevicesV2Payload from iot_api_client.models.create_devices_v2_payload import CreateDevicesV2Payload from iot_api_client.models.devicev2 import Devicev2 from iot_api_client.models.properties_values import PropertiesValues @@ -50,7 +51,7 @@ def __init__(self, api_client=None) -> None: def devices_v2_create( self, create_devices_v2_payload: Annotated[CreateDevicesV2Payload, Field(description="DeviceV2 describes a device.")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -70,7 +71,7 @@ def devices_v2_create( :param create_devices_v2_payload: DeviceV2 describes a device. (required) :type create_devices_v2_payload: CreateDevicesV2Payload - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -125,7 +126,7 @@ def devices_v2_create( def devices_v2_create_with_http_info( self, create_devices_v2_payload: Annotated[CreateDevicesV2Payload, Field(description="DeviceV2 describes a device.")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -145,7 +146,7 @@ def devices_v2_create_with_http_info( :param create_devices_v2_payload: DeviceV2 describes a device. (required) :type create_devices_v2_payload: CreateDevicesV2Payload - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -200,7 +201,7 @@ def devices_v2_create_with_http_info( def devices_v2_create_without_preload_content( self, create_devices_v2_payload: Annotated[CreateDevicesV2Payload, Field(description="DeviceV2 describes a device.")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -220,7 +221,7 @@ def devices_v2_create_without_preload_content( :param create_devices_v2_payload: DeviceV2 describes a device. (required) :type create_devices_v2_payload: CreateDevicesV2Payload - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -348,12 +349,314 @@ def _devices_v2_create_serialize( + @validate_call + def devices_v2_create_claimed( + self, + create_claimed_devices_v2_payload: Annotated[CreateClaimedDevicesV2Payload, Field(description="DeviceV2 describes a device.")], + x_organization: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ArduinoDevicev2: + """createClaimed devices_v2 + + Creates a new device associated to the user. + + :param create_claimed_devices_v2_payload: DeviceV2 describes a device. (required) + :type create_claimed_devices_v2_payload: CreateClaimedDevicesV2Payload + :param x_organization: + :type x_organization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._devices_v2_create_claimed_serialize( + create_claimed_devices_v2_payload=create_claimed_devices_v2_payload, + x_organization=x_organization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "ArduinoDevicev2", + '401': "Error", + '403': "Error", + '412': "Error", + '500': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def devices_v2_create_claimed_with_http_info( + self, + create_claimed_devices_v2_payload: Annotated[CreateClaimedDevicesV2Payload, Field(description="DeviceV2 describes a device.")], + x_organization: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ArduinoDevicev2]: + """createClaimed devices_v2 + + Creates a new device associated to the user. + + :param create_claimed_devices_v2_payload: DeviceV2 describes a device. (required) + :type create_claimed_devices_v2_payload: CreateClaimedDevicesV2Payload + :param x_organization: + :type x_organization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._devices_v2_create_claimed_serialize( + create_claimed_devices_v2_payload=create_claimed_devices_v2_payload, + x_organization=x_organization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "ArduinoDevicev2", + '401': "Error", + '403': "Error", + '412': "Error", + '500': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def devices_v2_create_claimed_without_preload_content( + self, + create_claimed_devices_v2_payload: Annotated[CreateClaimedDevicesV2Payload, Field(description="DeviceV2 describes a device.")], + x_organization: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """createClaimed devices_v2 + + Creates a new device associated to the user. + + :param create_claimed_devices_v2_payload: DeviceV2 describes a device. (required) + :type create_claimed_devices_v2_payload: CreateClaimedDevicesV2Payload + :param x_organization: + :type x_organization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._devices_v2_create_claimed_serialize( + create_claimed_devices_v2_payload=create_claimed_devices_v2_payload, + x_organization=x_organization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "ArduinoDevicev2", + '401': "Error", + '403': "Error", + '412': "Error", + '500': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _devices_v2_create_claimed_serialize( + self, + create_claimed_devices_v2_payload, + x_organization, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if x_organization is not None: + _header_params['X-Organization'] = x_organization + # process the form parameters + # process the body parameter + if create_claimed_devices_v2_payload is not None: + _body_params = create_claimed_devices_v2_payload + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.arduino.devicev2+json', + 'application/vnd.goa.error+json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'oauth2' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/iot/v2/devices/claim', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def devices_v2_delete( self, id: Annotated[StrictStr, Field(description="The id of the device")], force: Annotated[Optional[StrictBool], Field(description="If true, hard delete the device")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -375,7 +678,7 @@ def devices_v2_delete( :type id: str :param force: If true, hard delete the device :type force: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -432,7 +735,7 @@ def devices_v2_delete_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the device")], force: Annotated[Optional[StrictBool], Field(description="If true, hard delete the device")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -454,7 +757,7 @@ def devices_v2_delete_with_http_info( :type id: str :param force: If true, hard delete the device :type force: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -511,7 +814,7 @@ def devices_v2_delete_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the device")], force: Annotated[Optional[StrictBool], Field(description="If true, hard delete the device")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -533,7 +836,7 @@ def devices_v2_delete_without_preload_content( :type id: str :param force: If true, hard delete the device :type force: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -660,7 +963,7 @@ def devices_v2_get_events( id: Annotated[StrictStr, Field(description="The id of the device")], limit: Annotated[Optional[StrictInt], Field(description="The number of events to select")] = None, start: Annotated[Optional[StrictStr], Field(description="The time at which to start selecting events")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -684,7 +987,7 @@ def devices_v2_get_events( :type limit: int :param start: The time at which to start selecting events :type start: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -744,7 +1047,7 @@ def devices_v2_get_events_with_http_info( id: Annotated[StrictStr, Field(description="The id of the device")], limit: Annotated[Optional[StrictInt], Field(description="The number of events to select")] = None, start: Annotated[Optional[StrictStr], Field(description="The time at which to start selecting events")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -768,7 +1071,7 @@ def devices_v2_get_events_with_http_info( :type limit: int :param start: The time at which to start selecting events :type start: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -828,7 +1131,7 @@ def devices_v2_get_events_without_preload_content( id: Annotated[StrictStr, Field(description="The id of the device")], limit: Annotated[Optional[StrictInt], Field(description="The number of events to select")] = None, start: Annotated[Optional[StrictStr], Field(description="The time at which to start selecting events")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -852,7 +1155,7 @@ def devices_v2_get_events_without_preload_content( :type limit: int :param start: The time at which to start selecting events :type start: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -985,7 +1288,7 @@ def devices_v2_get_properties( self, id: Annotated[StrictStr, Field(description="The id of the device")], show_deleted: Annotated[Optional[StrictBool], Field(description="If true, shows the soft deleted properties")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1007,7 +1310,7 @@ def devices_v2_get_properties( :type id: str :param show_deleted: If true, shows the soft deleted properties :type show_deleted: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1064,7 +1367,7 @@ def devices_v2_get_properties_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the device")], show_deleted: Annotated[Optional[StrictBool], Field(description="If true, shows the soft deleted properties")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1086,7 +1389,7 @@ def devices_v2_get_properties_with_http_info( :type id: str :param show_deleted: If true, shows the soft deleted properties :type show_deleted: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1143,7 +1446,7 @@ def devices_v2_get_properties_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the device")], show_deleted: Annotated[Optional[StrictBool], Field(description="If true, shows the soft deleted properties")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1165,7 +1468,7 @@ def devices_v2_get_properties_without_preload_content( :type id: str :param show_deleted: If true, shows the soft deleted properties :type show_deleted: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1292,7 +1595,7 @@ def devices_v2_get_status_events( id: Annotated[StrictStr, Field(description="The id of the device")], limit: Annotated[Optional[StrictInt], Field(description="The number of events to select")] = None, start: Annotated[Optional[StrictStr], Field(description="The time at which to start selecting events")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1316,7 +1619,7 @@ def devices_v2_get_status_events( :type limit: int :param start: The time at which to start selecting events :type start: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1377,7 +1680,7 @@ def devices_v2_get_status_events_with_http_info( id: Annotated[StrictStr, Field(description="The id of the device")], limit: Annotated[Optional[StrictInt], Field(description="The number of events to select")] = None, start: Annotated[Optional[StrictStr], Field(description="The time at which to start selecting events")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1401,7 +1704,7 @@ def devices_v2_get_status_events_with_http_info( :type limit: int :param start: The time at which to start selecting events :type start: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1462,7 +1765,7 @@ def devices_v2_get_status_events_without_preload_content( id: Annotated[StrictStr, Field(description="The id of the device")], limit: Annotated[Optional[StrictInt], Field(description="The number of events to select")] = None, start: Annotated[Optional[StrictStr], Field(description="The time at which to start selecting events")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1486,7 +1789,7 @@ def devices_v2_get_status_events_without_preload_content( :type limit: int :param start: The time at which to start selecting events :type start: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1622,7 +1925,8 @@ def devices_v2_list( serial: Annotated[Optional[StrictStr], Field(description="Filter by device serial number")] = None, show_deleted: Annotated[Optional[StrictBool], Field(description="If true, shows the soft deleted devices")] = None, tags: Annotated[Optional[List[Annotated[str, Field(strict=True, max_length=129)]]], Field(description="Filter by tags")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + unique_hardware_id: Annotated[Optional[StrictStr], Field(description="Filter by device unique hardware id")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1648,7 +1952,9 @@ def devices_v2_list( :type show_deleted: bool :param tags: Filter by tags :type tags: List[str] - :param x_organization: Organization space identifer (optional) + :param unique_hardware_id: Filter by device unique hardware id + :type unique_hardware_id: str + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1677,6 +1983,7 @@ def devices_v2_list( serial=serial, show_deleted=show_deleted, tags=tags, + unique_hardware_id=unique_hardware_id, x_organization=x_organization, _request_auth=_request_auth, _content_type=_content_type, @@ -1709,7 +2016,8 @@ def devices_v2_list_with_http_info( serial: Annotated[Optional[StrictStr], Field(description="Filter by device serial number")] = None, show_deleted: Annotated[Optional[StrictBool], Field(description="If true, shows the soft deleted devices")] = None, tags: Annotated[Optional[List[Annotated[str, Field(strict=True, max_length=129)]]], Field(description="Filter by tags")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + unique_hardware_id: Annotated[Optional[StrictStr], Field(description="Filter by device unique hardware id")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1735,7 +2043,9 @@ def devices_v2_list_with_http_info( :type show_deleted: bool :param tags: Filter by tags :type tags: List[str] - :param x_organization: Organization space identifer (optional) + :param unique_hardware_id: Filter by device unique hardware id + :type unique_hardware_id: str + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1764,6 +2074,7 @@ def devices_v2_list_with_http_info( serial=serial, show_deleted=show_deleted, tags=tags, + unique_hardware_id=unique_hardware_id, x_organization=x_organization, _request_auth=_request_auth, _content_type=_content_type, @@ -1796,7 +2107,8 @@ def devices_v2_list_without_preload_content( serial: Annotated[Optional[StrictStr], Field(description="Filter by device serial number")] = None, show_deleted: Annotated[Optional[StrictBool], Field(description="If true, shows the soft deleted devices")] = None, tags: Annotated[Optional[List[Annotated[str, Field(strict=True, max_length=129)]]], Field(description="Filter by tags")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + unique_hardware_id: Annotated[Optional[StrictStr], Field(description="Filter by device unique hardware id")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1822,7 +2134,9 @@ def devices_v2_list_without_preload_content( :type show_deleted: bool :param tags: Filter by tags :type tags: List[str] - :param x_organization: Organization space identifer (optional) + :param unique_hardware_id: Filter by device unique hardware id + :type unique_hardware_id: str + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1851,6 +2165,7 @@ def devices_v2_list_without_preload_content( serial=serial, show_deleted=show_deleted, tags=tags, + unique_hardware_id=unique_hardware_id, x_organization=x_organization, _request_auth=_request_auth, _content_type=_content_type, @@ -1878,6 +2193,7 @@ def _devices_v2_list_serialize( serial, show_deleted, tags, + unique_hardware_id, x_organization, _request_auth, _content_type, @@ -1918,6 +2234,10 @@ def _devices_v2_list_serialize( _query_params.append(('tags', tags)) + if unique_hardware_id is not None: + + _query_params.append(('unique_hardware_id', unique_hardware_id)) + # process the header parameters if x_organization is not None: _header_params['X-Organization'] = x_organization @@ -1962,7 +2282,7 @@ def _devices_v2_list_serialize( def devices_v2_show( self, id: Annotated[StrictStr, Field(description="The id of the device")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1982,7 +2302,7 @@ def devices_v2_show( :param id: The id of the device (required) :type id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2037,7 +2357,7 @@ def devices_v2_show( def devices_v2_show_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the device")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2057,7 +2377,7 @@ def devices_v2_show_with_http_info( :param id: The id of the device (required) :type id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2112,7 +2432,7 @@ def devices_v2_show_with_http_info( def devices_v2_show_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the device")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2132,7 +2452,7 @@ def devices_v2_show_without_preload_content( :param id: The id of the device (required) :type id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2254,7 +2574,7 @@ def devices_v2_timeseries( pid: Annotated[StrictStr, Field(description="The id of the property")], limit: Annotated[Optional[StrictInt], Field(description="The number of properties to select")] = None, start: Annotated[Optional[StrictStr], Field(description="The time at which to start selecting properties")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2280,7 +2600,7 @@ def devices_v2_timeseries( :type limit: int :param start: The time at which to start selecting properties :type start: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2342,7 +2662,7 @@ def devices_v2_timeseries_with_http_info( pid: Annotated[StrictStr, Field(description="The id of the property")], limit: Annotated[Optional[StrictInt], Field(description="The number of properties to select")] = None, start: Annotated[Optional[StrictStr], Field(description="The time at which to start selecting properties")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2368,7 +2688,7 @@ def devices_v2_timeseries_with_http_info( :type limit: int :param start: The time at which to start selecting properties :type start: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2430,7 +2750,7 @@ def devices_v2_timeseries_without_preload_content( pid: Annotated[StrictStr, Field(description="The id of the property")], limit: Annotated[Optional[StrictInt], Field(description="The number of properties to select")] = None, start: Annotated[Optional[StrictStr], Field(description="The time at which to start selecting properties")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2456,7 +2776,7 @@ def devices_v2_timeseries_without_preload_content( :type limit: int :param start: The time at which to start selecting properties :type start: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2593,7 +2913,7 @@ def devices_v2_update( self, id: Annotated[StrictStr, Field(description="The id of the device")], devicev2: Annotated[Devicev2, Field(description="DeviceV2 describes a device.")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2615,7 +2935,7 @@ def devices_v2_update( :type id: str :param devicev2: DeviceV2 describes a device. (required) :type devicev2: Devicev2 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2673,7 +2993,7 @@ def devices_v2_update_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the device")], devicev2: Annotated[Devicev2, Field(description="DeviceV2 describes a device.")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2695,7 +3015,7 @@ def devices_v2_update_with_http_info( :type id: str :param devicev2: DeviceV2 describes a device. (required) :type devicev2: Devicev2 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2753,7 +3073,7 @@ def devices_v2_update_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the device")], devicev2: Annotated[Devicev2, Field(description="DeviceV2 describes a device.")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2775,7 +3095,7 @@ def devices_v2_update_without_preload_content( :type id: str :param devicev2: DeviceV2 describes a device. (required) :type devicev2: Devicev2 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2913,7 +3233,7 @@ def devices_v2_update_properties( self, id: Annotated[StrictStr, Field(description="The id of the device")], properties_values: PropertiesValues, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2935,7 +3255,7 @@ def devices_v2_update_properties( :type id: str :param properties_values: (required) :type properties_values: PropertiesValues - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2992,7 +3312,7 @@ def devices_v2_update_properties_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the device")], properties_values: PropertiesValues, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3014,7 +3334,7 @@ def devices_v2_update_properties_with_http_info( :type id: str :param properties_values: (required) :type properties_values: PropertiesValues - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3071,7 +3391,7 @@ def devices_v2_update_properties_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the device")], properties_values: PropertiesValues, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3093,7 +3413,7 @@ def devices_v2_update_properties_without_preload_content( :type id: str :param properties_values: (required) :type properties_values: PropertiesValues - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request diff --git a/iot_api_client/api/lora_devices_v1_api.py b/iot_api_client/api/lora_devices_v1_api.py index eaa05ad..afe38be 100644 --- a/iot_api_client/api/lora_devices_v1_api.py +++ b/iot_api_client/api/lora_devices_v1_api.py @@ -16,9 +16,8 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictStr +from pydantic import StrictStr from typing import Optional -from typing_extensions import Annotated from iot_api_client.models.arduino_loradevicev1 import ArduinoLoradevicev1 from iot_api_client.models.create_lora_devices_v1_payload import CreateLoraDevicesV1Payload @@ -44,7 +43,7 @@ def __init__(self, api_client=None) -> None: def lora_devices_v1_create( self, create_lora_devices_v1_payload: CreateLoraDevicesV1Payload, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -64,7 +63,7 @@ def lora_devices_v1_create( :param create_lora_devices_v1_payload: (required) :type create_lora_devices_v1_payload: CreateLoraDevicesV1Payload - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -115,7 +114,7 @@ def lora_devices_v1_create( def lora_devices_v1_create_with_http_info( self, create_lora_devices_v1_payload: CreateLoraDevicesV1Payload, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -135,7 +134,7 @@ def lora_devices_v1_create_with_http_info( :param create_lora_devices_v1_payload: (required) :type create_lora_devices_v1_payload: CreateLoraDevicesV1Payload - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -186,7 +185,7 @@ def lora_devices_v1_create_with_http_info( def lora_devices_v1_create_without_preload_content( self, create_lora_devices_v1_payload: CreateLoraDevicesV1Payload, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -206,7 +205,7 @@ def lora_devices_v1_create_without_preload_content( :param create_lora_devices_v1_payload: (required) :type create_lora_devices_v1_payload: CreateLoraDevicesV1Payload - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request diff --git a/iot_api_client/api/network_credentials_v1_api.py b/iot_api_client/api/network_credentials_v1_api.py index dfa0fc7..9489383 100644 --- a/iot_api_client/api/network_credentials_v1_api.py +++ b/iot_api_client/api/network_credentials_v1_api.py @@ -19,6 +19,7 @@ from pydantic import Field, StrictStr, field_validator from typing import List, Optional from typing_extensions import Annotated +from iot_api_client.models.arduino_arduinoconnections_v1 import ArduinoArduinoconnectionsV1 from iot_api_client.models.arduino_credentialsv1 import ArduinoCredentialsv1 from iot_api_client.api_client import ApiClient, RequestSerialized @@ -340,7 +341,7 @@ def network_credentials_v1_show_by_device( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: + ) -> ArduinoArduinoconnectionsV1: """showByDevice network_credentials_v1 Show available connection types depending on device type @@ -378,7 +379,7 @@ def network_credentials_v1_show_by_device( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "ArduinoArduinoconnectionsV1", '401': "Error", '404': None, } @@ -409,7 +410,7 @@ def network_credentials_v1_show_by_device_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: + ) -> ApiResponse[ArduinoArduinoconnectionsV1]: """showByDevice network_credentials_v1 Show available connection types depending on device type @@ -447,7 +448,7 @@ def network_credentials_v1_show_by_device_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "ArduinoArduinoconnectionsV1", '401': "Error", '404': None, } @@ -516,7 +517,7 @@ def network_credentials_v1_show_by_device_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "ArduinoArduinoconnectionsV1", '401': "Error", '404': None, } @@ -563,7 +564,7 @@ def _network_credentials_v1_show_by_device_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json', + 'application/vnd.arduino.arduinoconnections.v1+json', 'application/vnd.goa.error+json' ] ) diff --git a/iot_api_client/api/properties_v2_api.py b/iot_api_client/api/properties_v2_api.py index da25c53..dc6d4f6 100644 --- a/iot_api_client/api/properties_v2_api.py +++ b/iot_api_client/api/properties_v2_api.py @@ -47,7 +47,7 @@ def properties_v2_create( self, id: Annotated[StrictStr, Field(description="The id of the thing")], model_property: Annotated[ModelProperty, Field(description="PropertyPayload describes a property of a thing. No field is mandatory")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -69,7 +69,7 @@ def properties_v2_create( :type id: str :param model_property: PropertyPayload describes a property of a thing. No field is mandatory (required) :type model_property: ModelProperty - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -127,7 +127,7 @@ def properties_v2_create_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the thing")], model_property: Annotated[ModelProperty, Field(description="PropertyPayload describes a property of a thing. No field is mandatory")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -149,7 +149,7 @@ def properties_v2_create_with_http_info( :type id: str :param model_property: PropertyPayload describes a property of a thing. No field is mandatory (required) :type model_property: ModelProperty - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -207,7 +207,7 @@ def properties_v2_create_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the thing")], model_property: Annotated[ModelProperty, Field(description="PropertyPayload describes a property of a thing. No field is mandatory")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -229,7 +229,7 @@ def properties_v2_create_without_preload_content( :type id: str :param model_property: PropertyPayload describes a property of a thing. No field is mandatory (required) :type model_property: ModelProperty - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -368,7 +368,7 @@ def properties_v2_delete( id: Annotated[StrictStr, Field(description="The id of the thing")], pid: Annotated[StrictStr, Field(description="The id of the property")], force: Annotated[Optional[StrictBool], Field(description="If true, hard delete the property")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -392,7 +392,7 @@ def properties_v2_delete( :type pid: str :param force: If true, hard delete the property :type force: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -450,7 +450,7 @@ def properties_v2_delete_with_http_info( id: Annotated[StrictStr, Field(description="The id of the thing")], pid: Annotated[StrictStr, Field(description="The id of the property")], force: Annotated[Optional[StrictBool], Field(description="If true, hard delete the property")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -474,7 +474,7 @@ def properties_v2_delete_with_http_info( :type pid: str :param force: If true, hard delete the property :type force: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -532,7 +532,7 @@ def properties_v2_delete_without_preload_content( id: Annotated[StrictStr, Field(description="The id of the thing")], pid: Annotated[StrictStr, Field(description="The id of the property")], force: Annotated[Optional[StrictBool], Field(description="If true, hard delete the property")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -556,7 +556,7 @@ def properties_v2_delete_without_preload_content( :type pid: str :param force: If true, hard delete the property :type force: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -685,7 +685,7 @@ def properties_v2_list( self, id: Annotated[StrictStr, Field(description="The id of the thing")], show_deleted: Annotated[Optional[StrictBool], Field(description="If true, shows the soft deleted properties")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -707,7 +707,7 @@ def properties_v2_list( :type id: str :param show_deleted: If true, shows the soft deleted properties :type show_deleted: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -763,7 +763,7 @@ def properties_v2_list_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the thing")], show_deleted: Annotated[Optional[StrictBool], Field(description="If true, shows the soft deleted properties")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -785,7 +785,7 @@ def properties_v2_list_with_http_info( :type id: str :param show_deleted: If true, shows the soft deleted properties :type show_deleted: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -841,7 +841,7 @@ def properties_v2_list_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the thing")], show_deleted: Annotated[Optional[StrictBool], Field(description="If true, shows the soft deleted properties")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -863,7 +863,7 @@ def properties_v2_list_without_preload_content( :type id: str :param show_deleted: If true, shows the soft deleted properties :type show_deleted: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -989,7 +989,7 @@ def properties_v2_publish( id: Annotated[StrictStr, Field(description="The id of the thing")], pid: Annotated[StrictStr, Field(description="The id of the property")], property_value: Annotated[PropertyValue, Field(description="PropertyValuePayload describes a property value")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1013,7 +1013,7 @@ def properties_v2_publish( :type pid: str :param property_value: PropertyValuePayload describes a property value (required) :type property_value: PropertyValue - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1072,7 +1072,7 @@ def properties_v2_publish_with_http_info( id: Annotated[StrictStr, Field(description="The id of the thing")], pid: Annotated[StrictStr, Field(description="The id of the property")], property_value: Annotated[PropertyValue, Field(description="PropertyValuePayload describes a property value")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1096,7 +1096,7 @@ def properties_v2_publish_with_http_info( :type pid: str :param property_value: PropertyValuePayload describes a property value (required) :type property_value: PropertyValue - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1155,7 +1155,7 @@ def properties_v2_publish_without_preload_content( id: Annotated[StrictStr, Field(description="The id of the thing")], pid: Annotated[StrictStr, Field(description="The id of the property")], property_value: Annotated[PropertyValue, Field(description="PropertyValuePayload describes a property value")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1179,7 +1179,7 @@ def properties_v2_publish_without_preload_content( :type pid: str :param property_value: PropertyValuePayload describes a property value (required) :type property_value: PropertyValue - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1321,7 +1321,7 @@ def properties_v2_show( id: Annotated[StrictStr, Field(description="The id of the thing")], pid: Annotated[StrictStr, Field(description="The id of the property")], show_deleted: Annotated[Optional[StrictBool], Field(description="If true, shows the soft deleted properties")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1345,7 +1345,7 @@ def properties_v2_show( :type pid: str :param show_deleted: If true, shows the soft deleted properties :type show_deleted: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1403,7 +1403,7 @@ def properties_v2_show_with_http_info( id: Annotated[StrictStr, Field(description="The id of the thing")], pid: Annotated[StrictStr, Field(description="The id of the property")], show_deleted: Annotated[Optional[StrictBool], Field(description="If true, shows the soft deleted properties")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1427,7 +1427,7 @@ def properties_v2_show_with_http_info( :type pid: str :param show_deleted: If true, shows the soft deleted properties :type show_deleted: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1485,7 +1485,7 @@ def properties_v2_show_without_preload_content( id: Annotated[StrictStr, Field(description="The id of the thing")], pid: Annotated[StrictStr, Field(description="The id of the property")], show_deleted: Annotated[Optional[StrictBool], Field(description="If true, shows the soft deleted properties")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1509,7 +1509,7 @@ def properties_v2_show_without_preload_content( :type pid: str :param show_deleted: If true, shows the soft deleted properties :type show_deleted: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1643,7 +1643,7 @@ def properties_v2_timeseries( var_from: Annotated[Optional[StrictStr], Field(description="Get data with a timestamp >= to this date (default: 2 weeks ago, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z)")] = None, interval: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Binning interval in seconds (defaut: the smallest possible value compatibly with the limit of 1000 data points in the response)")] = None, to: Annotated[Optional[StrictStr], Field(description="Get data with a timestamp < to this date (default: now, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z)")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1675,7 +1675,7 @@ def properties_v2_timeseries( :type interval: int :param to: Get data with a timestamp < to this date (default: now, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z) :type to: str - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1742,7 +1742,7 @@ def properties_v2_timeseries_with_http_info( var_from: Annotated[Optional[StrictStr], Field(description="Get data with a timestamp >= to this date (default: 2 weeks ago, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z)")] = None, interval: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Binning interval in seconds (defaut: the smallest possible value compatibly with the limit of 1000 data points in the response)")] = None, to: Annotated[Optional[StrictStr], Field(description="Get data with a timestamp < to this date (default: now, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z)")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1774,7 +1774,7 @@ def properties_v2_timeseries_with_http_info( :type interval: int :param to: Get data with a timestamp < to this date (default: now, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z) :type to: str - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1841,7 +1841,7 @@ def properties_v2_timeseries_without_preload_content( var_from: Annotated[Optional[StrictStr], Field(description="Get data with a timestamp >= to this date (default: 2 weeks ago, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z)")] = None, interval: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Binning interval in seconds (defaut: the smallest possible value compatibly with the limit of 1000 data points in the response)")] = None, to: Annotated[Optional[StrictStr], Field(description="Get data with a timestamp < to this date (default: now, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z)")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1873,7 +1873,7 @@ def properties_v2_timeseries_without_preload_content( :type interval: int :param to: Get data with a timestamp < to this date (default: now, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z) :type to: str - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2028,7 +2028,7 @@ def properties_v2_update( id: Annotated[StrictStr, Field(description="The id of the thing")], pid: Annotated[StrictStr, Field(description="The id of the property")], model_property: Annotated[ModelProperty, Field(description="PropertyPayload describes a property of a thing. No field is mandatory")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2052,7 +2052,7 @@ def properties_v2_update( :type pid: str :param model_property: PropertyPayload describes a property of a thing. No field is mandatory (required) :type model_property: ModelProperty - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2111,7 +2111,7 @@ def properties_v2_update_with_http_info( id: Annotated[StrictStr, Field(description="The id of the thing")], pid: Annotated[StrictStr, Field(description="The id of the property")], model_property: Annotated[ModelProperty, Field(description="PropertyPayload describes a property of a thing. No field is mandatory")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2135,7 +2135,7 @@ def properties_v2_update_with_http_info( :type pid: str :param model_property: PropertyPayload describes a property of a thing. No field is mandatory (required) :type model_property: ModelProperty - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2194,7 +2194,7 @@ def properties_v2_update_without_preload_content( id: Annotated[StrictStr, Field(description="The id of the thing")], pid: Annotated[StrictStr, Field(description="The id of the property")], model_property: Annotated[ModelProperty, Field(description="PropertyPayload describes a property of a thing. No field is mandatory")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Annotated[Optional[StrictStr], Field(description="The id of the organization")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2218,7 +2218,7 @@ def properties_v2_update_without_preload_content( :type pid: str :param model_property: PropertyPayload describes a property of a thing. No field is mandatory (required) :type model_property: ModelProperty - :param x_organization: Organization space identifer (optional) + :param x_organization: The id of the organization :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request diff --git a/iot_api_client/api/series_v2_api.py b/iot_api_client/api/series_v2_api.py index 5d7a01d..3e154ef 100644 --- a/iot_api_client/api/series_v2_api.py +++ b/iot_api_client/api/series_v2_api.py @@ -16,9 +16,8 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictStr +from pydantic import StrictStr from typing import Optional -from typing_extensions import Annotated from iot_api_client.models.arduino_series_batch import ArduinoSeriesBatch from iot_api_client.models.arduino_series_batch_sampled import ArduinoSeriesBatchSampled from iot_api_client.models.arduino_series_raw_batch import ArduinoSeriesRawBatch @@ -51,7 +50,7 @@ def __init__(self, api_client=None) -> None: def series_v2_batch_query( self, batch_query_requests_media_v1: BatchQueryRequestsMediaV1, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -71,7 +70,7 @@ def series_v2_batch_query( :param batch_query_requests_media_v1: (required) :type batch_query_requests_media_v1: BatchQueryRequestsMediaV1 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -128,7 +127,7 @@ def series_v2_batch_query( def series_v2_batch_query_with_http_info( self, batch_query_requests_media_v1: BatchQueryRequestsMediaV1, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -148,7 +147,7 @@ def series_v2_batch_query_with_http_info( :param batch_query_requests_media_v1: (required) :type batch_query_requests_media_v1: BatchQueryRequestsMediaV1 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -205,7 +204,7 @@ def series_v2_batch_query_with_http_info( def series_v2_batch_query_without_preload_content( self, batch_query_requests_media_v1: BatchQueryRequestsMediaV1, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -225,7 +224,7 @@ def series_v2_batch_query_without_preload_content( :param batch_query_requests_media_v1: (required) :type batch_query_requests_media_v1: BatchQueryRequestsMediaV1 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -359,7 +358,7 @@ def _series_v2_batch_query_serialize( def series_v2_batch_query_raw( self, batch_query_raw_requests_media_v1: BatchQueryRawRequestsMediaV1, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -379,7 +378,7 @@ def series_v2_batch_query_raw( :param batch_query_raw_requests_media_v1: (required) :type batch_query_raw_requests_media_v1: BatchQueryRawRequestsMediaV1 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -436,7 +435,7 @@ def series_v2_batch_query_raw( def series_v2_batch_query_raw_with_http_info( self, batch_query_raw_requests_media_v1: BatchQueryRawRequestsMediaV1, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -456,7 +455,7 @@ def series_v2_batch_query_raw_with_http_info( :param batch_query_raw_requests_media_v1: (required) :type batch_query_raw_requests_media_v1: BatchQueryRawRequestsMediaV1 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -513,7 +512,7 @@ def series_v2_batch_query_raw_with_http_info( def series_v2_batch_query_raw_without_preload_content( self, batch_query_raw_requests_media_v1: BatchQueryRawRequestsMediaV1, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -533,7 +532,7 @@ def series_v2_batch_query_raw_without_preload_content( :param batch_query_raw_requests_media_v1: (required) :type batch_query_raw_requests_media_v1: BatchQueryRawRequestsMediaV1 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -667,7 +666,7 @@ def _series_v2_batch_query_raw_serialize( def series_v2_batch_query_raw_last_value( self, batch_last_value_requests_media_v1: BatchLastValueRequestsMediaV1, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -687,7 +686,7 @@ def series_v2_batch_query_raw_last_value( :param batch_last_value_requests_media_v1: (required) :type batch_last_value_requests_media_v1: BatchLastValueRequestsMediaV1 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -743,7 +742,7 @@ def series_v2_batch_query_raw_last_value( def series_v2_batch_query_raw_last_value_with_http_info( self, batch_last_value_requests_media_v1: BatchLastValueRequestsMediaV1, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -763,7 +762,7 @@ def series_v2_batch_query_raw_last_value_with_http_info( :param batch_last_value_requests_media_v1: (required) :type batch_last_value_requests_media_v1: BatchLastValueRequestsMediaV1 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -819,7 +818,7 @@ def series_v2_batch_query_raw_last_value_with_http_info( def series_v2_batch_query_raw_last_value_without_preload_content( self, batch_last_value_requests_media_v1: BatchLastValueRequestsMediaV1, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -839,7 +838,7 @@ def series_v2_batch_query_raw_last_value_without_preload_content( :param batch_last_value_requests_media_v1: (required) :type batch_last_value_requests_media_v1: BatchLastValueRequestsMediaV1 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -972,7 +971,7 @@ def _series_v2_batch_query_raw_last_value_serialize( def series_v2_batch_query_sampling( self, batch_query_sampled_requests_media_v1: BatchQuerySampledRequestsMediaV1, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -992,7 +991,7 @@ def series_v2_batch_query_sampling( :param batch_query_sampled_requests_media_v1: (required) :type batch_query_sampled_requests_media_v1: BatchQuerySampledRequestsMediaV1 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1049,7 +1048,7 @@ def series_v2_batch_query_sampling( def series_v2_batch_query_sampling_with_http_info( self, batch_query_sampled_requests_media_v1: BatchQuerySampledRequestsMediaV1, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1069,7 +1068,7 @@ def series_v2_batch_query_sampling_with_http_info( :param batch_query_sampled_requests_media_v1: (required) :type batch_query_sampled_requests_media_v1: BatchQuerySampledRequestsMediaV1 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1126,7 +1125,7 @@ def series_v2_batch_query_sampling_with_http_info( def series_v2_batch_query_sampling_without_preload_content( self, batch_query_sampled_requests_media_v1: BatchQuerySampledRequestsMediaV1, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1146,7 +1145,7 @@ def series_v2_batch_query_sampling_without_preload_content( :param batch_query_sampled_requests_media_v1: (required) :type batch_query_sampled_requests_media_v1: BatchQuerySampledRequestsMediaV1 - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1280,7 +1279,7 @@ def _series_v2_batch_query_sampling_serialize( def series_v2_historic_data( self, historic_data_request: HistoricDataRequest, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1300,7 +1299,7 @@ def series_v2_historic_data( :param historic_data_request: (required) :type historic_data_request: HistoricDataRequest - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1356,7 +1355,7 @@ def series_v2_historic_data( def series_v2_historic_data_with_http_info( self, historic_data_request: HistoricDataRequest, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1376,7 +1375,7 @@ def series_v2_historic_data_with_http_info( :param historic_data_request: (required) :type historic_data_request: HistoricDataRequest - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1432,7 +1431,7 @@ def series_v2_historic_data_with_http_info( def series_v2_historic_data_without_preload_content( self, historic_data_request: HistoricDataRequest, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1452,7 +1451,7 @@ def series_v2_historic_data_without_preload_content( :param historic_data_request: (required) :type historic_data_request: HistoricDataRequest - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request diff --git a/iot_api_client/api/templates_api.py b/iot_api_client/api/templates_api.py index 43c57c5..d678463 100644 --- a/iot_api_client/api/templates_api.py +++ b/iot_api_client/api/templates_api.py @@ -44,7 +44,7 @@ def __init__(self, api_client=None) -> None: def templates_apply( self, template: Annotated[Template, Field(description="TemplatePayload describes the needed attribute to apply a template")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -64,7 +64,7 @@ def templates_apply( :param template: TemplatePayload describes the needed attribute to apply a template (required) :type template: Template - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -120,7 +120,7 @@ def templates_apply( def templates_apply_with_http_info( self, template: Annotated[Template, Field(description="TemplatePayload describes the needed attribute to apply a template")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -140,7 +140,7 @@ def templates_apply_with_http_info( :param template: TemplatePayload describes the needed attribute to apply a template (required) :type template: Template - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -196,7 +196,7 @@ def templates_apply_with_http_info( def templates_apply_without_preload_content( self, template: Annotated[Template, Field(description="TemplatePayload describes the needed attribute to apply a template")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -216,7 +216,7 @@ def templates_apply_without_preload_content( :param template: TemplatePayload describes the needed attribute to apply a template (required) :type template: Template - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request diff --git a/iot_api_client/api/things_v2_api.py b/iot_api_client/api/things_v2_api.py index 5198a87..1a7fffe 100644 --- a/iot_api_client/api/things_v2_api.py +++ b/iot_api_client/api/things_v2_api.py @@ -50,7 +50,7 @@ def things_v2_clone( self, id: Annotated[StrictStr, Field(description="The id of the thing")], thing_clone: Annotated[ThingClone, Field(description="Payload to clone a new thing from an existing one")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -72,7 +72,7 @@ def things_v2_clone( :type id: str :param thing_clone: Payload to clone a new thing from an existing one (required) :type thing_clone: ThingClone - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -130,7 +130,7 @@ def things_v2_clone_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the thing")], thing_clone: Annotated[ThingClone, Field(description="Payload to clone a new thing from an existing one")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -152,7 +152,7 @@ def things_v2_clone_with_http_info( :type id: str :param thing_clone: Payload to clone a new thing from an existing one (required) :type thing_clone: ThingClone - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -210,7 +210,7 @@ def things_v2_clone_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the thing")], thing_clone: Annotated[ThingClone, Field(description="Payload to clone a new thing from an existing one")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -232,7 +232,7 @@ def things_v2_clone_without_preload_content( :type id: str :param thing_clone: Payload to clone a new thing from an existing one (required) :type thing_clone: ThingClone - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -370,7 +370,7 @@ def things_v2_create( self, thing_create: Annotated[ThingCreate, Field(description="Payload to create a new thing")], force: Annotated[Optional[StrictBool], Field(description="If true, detach device from the other thing, and attach to this thing")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -392,7 +392,7 @@ def things_v2_create( :type thing_create: ThingCreate :param force: If true, detach device from the other thing, and attach to this thing :type force: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -451,7 +451,7 @@ def things_v2_create_with_http_info( self, thing_create: Annotated[ThingCreate, Field(description="Payload to create a new thing")], force: Annotated[Optional[StrictBool], Field(description="If true, detach device from the other thing, and attach to this thing")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -473,7 +473,7 @@ def things_v2_create_with_http_info( :type thing_create: ThingCreate :param force: If true, detach device from the other thing, and attach to this thing :type force: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -532,7 +532,7 @@ def things_v2_create_without_preload_content( self, thing_create: Annotated[ThingCreate, Field(description="Payload to create a new thing")], force: Annotated[Optional[StrictBool], Field(description="If true, detach device from the other thing, and attach to this thing")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -554,7 +554,7 @@ def things_v2_create_without_preload_content( :type thing_create: ThingCreate :param force: If true, detach device from the other thing, and attach to this thing :type force: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -695,7 +695,7 @@ def things_v2_create_sketch( self, id: Annotated[StrictStr, Field(description="The id of the thing")], thing_sketch: Annotated[ThingSketch, Field(description="ThingSketchPayload describes a sketch of a thing")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -717,7 +717,7 @@ def things_v2_create_sketch( :type id: str :param thing_sketch: ThingSketchPayload describes a sketch of a thing (required) :type thing_sketch: ThingSketch - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -776,7 +776,7 @@ def things_v2_create_sketch_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the thing")], thing_sketch: Annotated[ThingSketch, Field(description="ThingSketchPayload describes a sketch of a thing")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -798,7 +798,7 @@ def things_v2_create_sketch_with_http_info( :type id: str :param thing_sketch: ThingSketchPayload describes a sketch of a thing (required) :type thing_sketch: ThingSketch - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -857,7 +857,7 @@ def things_v2_create_sketch_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the thing")], thing_sketch: Annotated[ThingSketch, Field(description="ThingSketchPayload describes a sketch of a thing")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -879,7 +879,7 @@ def things_v2_create_sketch_without_preload_content( :type id: str :param thing_sketch: ThingSketchPayload describes a sketch of a thing (required) :type thing_sketch: ThingSketch - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1018,7 +1018,7 @@ def things_v2_delete( self, id: Annotated[StrictStr, Field(description="The id of the thing")], force: Annotated[Optional[StrictBool], Field(description="If true, hard delete the thing")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1040,7 +1040,7 @@ def things_v2_delete( :type id: str :param force: If true, hard delete the thing :type force: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1098,7 +1098,7 @@ def things_v2_delete_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the thing")], force: Annotated[Optional[StrictBool], Field(description="If true, hard delete the thing")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1120,7 +1120,7 @@ def things_v2_delete_with_http_info( :type id: str :param force: If true, hard delete the thing :type force: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1178,7 +1178,7 @@ def things_v2_delete_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the thing")], force: Annotated[Optional[StrictBool], Field(description="If true, hard delete the thing")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1200,7 +1200,7 @@ def things_v2_delete_without_preload_content( :type id: str :param force: If true, hard delete the thing :type force: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1326,7 +1326,7 @@ def _things_v2_delete_serialize( def things_v2_delete_sketch( self, id: Annotated[StrictStr, Field(description="The id of the thing")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1345,7 +1345,7 @@ def things_v2_delete_sketch( :param id: The id of the thing (required) :type id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1400,7 +1400,7 @@ def things_v2_delete_sketch( def things_v2_delete_sketch_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the thing")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1419,7 +1419,7 @@ def things_v2_delete_sketch_with_http_info( :param id: The id of the thing (required) :type id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1474,7 +1474,7 @@ def things_v2_delete_sketch_with_http_info( def things_v2_delete_sketch_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the thing")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1493,7 +1493,7 @@ def things_v2_delete_sketch_without_preload_content( :param id: The id of the thing (required) :type id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1617,7 +1617,7 @@ def things_v2_list( show_deleted: Annotated[Optional[StrictBool], Field(description="If true, shows the soft deleted things")] = None, show_properties: Annotated[Optional[StrictBool], Field(description="If true, returns things with their properties, and last values")] = None, tags: Annotated[Optional[List[Annotated[str, Field(strict=True, max_length=129)]]], Field(description="Filter by tags")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1647,7 +1647,7 @@ def things_v2_list( :type show_properties: bool :param tags: Filter by tags :type tags: List[str] - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1712,7 +1712,7 @@ def things_v2_list_with_http_info( show_deleted: Annotated[Optional[StrictBool], Field(description="If true, shows the soft deleted things")] = None, show_properties: Annotated[Optional[StrictBool], Field(description="If true, returns things with their properties, and last values")] = None, tags: Annotated[Optional[List[Annotated[str, Field(strict=True, max_length=129)]]], Field(description="Filter by tags")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1742,7 +1742,7 @@ def things_v2_list_with_http_info( :type show_properties: bool :param tags: Filter by tags :type tags: List[str] - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1807,7 +1807,7 @@ def things_v2_list_without_preload_content( show_deleted: Annotated[Optional[StrictBool], Field(description="If true, shows the soft deleted things")] = None, show_properties: Annotated[Optional[StrictBool], Field(description="If true, returns things with their properties, and last values")] = None, tags: Annotated[Optional[List[Annotated[str, Field(strict=True, max_length=129)]]], Field(description="Filter by tags")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1837,7 +1837,7 @@ def things_v2_list_without_preload_content( :type show_properties: bool :param tags: Filter by tags :type tags: List[str] - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1991,7 +1991,7 @@ def things_v2_show( self, id: Annotated[StrictStr, Field(description="The id of the thing")], show_deleted: Annotated[Optional[StrictBool], Field(description="If true, shows the soft deleted thing")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2013,7 +2013,7 @@ def things_v2_show( :type id: str :param show_deleted: If true, shows the soft deleted thing :type show_deleted: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2070,7 +2070,7 @@ def things_v2_show_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the thing")], show_deleted: Annotated[Optional[StrictBool], Field(description="If true, shows the soft deleted thing")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2092,7 +2092,7 @@ def things_v2_show_with_http_info( :type id: str :param show_deleted: If true, shows the soft deleted thing :type show_deleted: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2149,7 +2149,7 @@ def things_v2_show_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the thing")], show_deleted: Annotated[Optional[StrictBool], Field(description="If true, shows the soft deleted thing")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2171,7 +2171,7 @@ def things_v2_show_without_preload_content( :type id: str :param show_deleted: If true, shows the soft deleted thing :type show_deleted: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2296,7 +2296,7 @@ def _things_v2_show_serialize( def things_v2_template( self, id: Annotated[StrictStr, Field(description="The id of the thing")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2316,7 +2316,7 @@ def things_v2_template( :param id: The id of the thing (required) :type id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2372,7 +2372,7 @@ def things_v2_template( def things_v2_template_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the thing")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2392,7 +2392,7 @@ def things_v2_template_with_http_info( :param id: The id of the thing (required) :type id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2448,7 +2448,7 @@ def things_v2_template_with_http_info( def things_v2_template_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the thing")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2468,7 +2468,7 @@ def things_v2_template_without_preload_content( :param id: The id of the thing (required) :type id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2590,7 +2590,7 @@ def things_v2_update( id: Annotated[StrictStr, Field(description="The id of the thing")], thing_update: Annotated[ThingUpdate, Field(description="Payload to update an existing thing")], force: Annotated[Optional[StrictBool], Field(description="If true, detach device from the other thing, and attach to this thing")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2614,7 +2614,7 @@ def things_v2_update( :type thing_update: ThingUpdate :param force: If true, detach device from the other thing, and attach to this thing :type force: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2676,7 +2676,7 @@ def things_v2_update_with_http_info( id: Annotated[StrictStr, Field(description="The id of the thing")], thing_update: Annotated[ThingUpdate, Field(description="Payload to update an existing thing")], force: Annotated[Optional[StrictBool], Field(description="If true, detach device from the other thing, and attach to this thing")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2700,7 +2700,7 @@ def things_v2_update_with_http_info( :type thing_update: ThingUpdate :param force: If true, detach device from the other thing, and attach to this thing :type force: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2762,7 +2762,7 @@ def things_v2_update_without_preload_content( id: Annotated[StrictStr, Field(description="The id of the thing")], thing_update: Annotated[ThingUpdate, Field(description="Payload to update an existing thing")], force: Annotated[Optional[StrictBool], Field(description="If true, detach device from the other thing, and attach to this thing")] = None, - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2786,7 +2786,7 @@ def things_v2_update_without_preload_content( :type thing_update: ThingUpdate :param force: If true, detach device from the other thing, and attach to this thing :type force: bool - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2932,7 +2932,7 @@ def things_v2_update_sketch( self, id: Annotated[StrictStr, Field(description="The id of the thing")], sketch_id: Annotated[StrictStr, Field(description="The id of the sketch")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, update_sketch: Optional[UpdateSketch] = None, _request_timeout: Union[ None, @@ -2955,7 +2955,7 @@ def things_v2_update_sketch( :type id: str :param sketch_id: The id of the sketch (required) :type sketch_id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param update_sketch: :type update_sketch: UpdateSketch @@ -3017,7 +3017,7 @@ def things_v2_update_sketch_with_http_info( self, id: Annotated[StrictStr, Field(description="The id of the thing")], sketch_id: Annotated[StrictStr, Field(description="The id of the sketch")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, update_sketch: Optional[UpdateSketch] = None, _request_timeout: Union[ None, @@ -3040,7 +3040,7 @@ def things_v2_update_sketch_with_http_info( :type id: str :param sketch_id: The id of the sketch (required) :type sketch_id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param update_sketch: :type update_sketch: UpdateSketch @@ -3102,7 +3102,7 @@ def things_v2_update_sketch_without_preload_content( self, id: Annotated[StrictStr, Field(description="The id of the thing")], sketch_id: Annotated[StrictStr, Field(description="The id of the sketch")], - x_organization: Annotated[Optional[StrictStr], Field(description="Organization space identifer (optional)")] = None, + x_organization: Optional[StrictStr] = None, update_sketch: Optional[UpdateSketch] = None, _request_timeout: Union[ None, @@ -3125,7 +3125,7 @@ def things_v2_update_sketch_without_preload_content( :type id: str :param sketch_id: The id of the sketch (required) :type sketch_id: str - :param x_organization: Organization space identifer (optional) + :param x_organization: :type x_organization: str :param update_sketch: :type update_sketch: UpdateSketch diff --git a/iot_api_client/api_client.py b/iot_api_client/api_client.py index 262ea7f..c60b578 100644 --- a/iot_api_client/api_client.py +++ b/iot_api_client/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/3.0.0/python' + self.user_agent = 'OpenAPI-Generator/3.1.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/iot_api_client/configuration.py b/iot_api_client/configuration.py index 1edee5e..2ece1b3 100644 --- a/iot_api_client/configuration.py +++ b/iot_api_client/configuration.py @@ -392,7 +392,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2.0\n"\ - "SDK Package Version: 3.0.0".\ + "SDK Package Version: 3.1.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/iot_api_client/models/__init__.py b/iot_api_client/models/__init__.py index 8a2f0fc..f3a7ec0 100644 --- a/iot_api_client/models/__init__.py +++ b/iot_api_client/models/__init__.py @@ -16,6 +16,7 @@ # import models into model package from iot_api_client.models.arduino_action import ArduinoAction from iot_api_client.models.arduino_action_template import ArduinoActionTemplate +from iot_api_client.models.arduino_arduinoconnections_v1 import ArduinoArduinoconnectionsV1 from iot_api_client.models.arduino_compressedv2 import ArduinoCompressedv2 from iot_api_client.models.arduino_credentialsv1 import ArduinoCredentialsv1 from iot_api_client.models.arduino_dashboardowner import ArduinoDashboardowner @@ -84,6 +85,7 @@ from iot_api_client.models.check_devices_v2_pass_payload import CheckDevicesV2PassPayload from iot_api_client.models.clone import Clone from iot_api_client.models.create_action import CreateAction +from iot_api_client.models.create_claimed_devices_v2_payload import CreateClaimedDevicesV2Payload from iot_api_client.models.create_devices_v2_certs_payload import CreateDevicesV2CertsPayload from iot_api_client.models.create_devices_v2_payload import CreateDevicesV2Payload from iot_api_client.models.create_lora_devices_v1_payload import CreateLoraDevicesV1Payload @@ -120,6 +122,7 @@ from iot_api_client.models.update_action import UpdateAction from iot_api_client.models.update_sketch import UpdateSketch from iot_api_client.models.user_recipient import UserRecipient +from iot_api_client.models.usershare import Usershare from iot_api_client.models.variable import Variable from iot_api_client.models.widget import Widget from iot_api_client.models.widgetlink import Widgetlink diff --git a/iot_api_client/models/arduino_arduinoconnections_v1.py b/iot_api_client/models/arduino_arduinoconnections_v1.py new file mode 100644 index 0000000..48392a4 --- /dev/null +++ b/iot_api_client/models/arduino_arduinoconnections_v1.py @@ -0,0 +1,158 @@ +# coding: utf-8 + +""" + Arduino IoT Cloud API + + Provides a set of endpoints to manage Arduino IoT Cloud **Devices**, **Things**, **Properties** and **Timeseries**. This API can be called just with any HTTP Client, or using one of these clients: * [Javascript NPM package](https://www.npmjs.com/package/@arduino/arduino-iot-client) * [Python PYPI Package](https://pypi.org/project/arduino-iot-client/) * [Golang Module](https://github.com/arduino/iot-client-go) + + The version of the OpenAPI document: 2.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from iot_api_client.models.arduino_credentialsv1 import ArduinoCredentialsv1 +from typing import Optional, Set +from typing_extensions import Self + +class ArduinoArduinoconnectionsV1(BaseModel): + """ + ArduinoArduinoconnectionsV1 media type (default view) + """ # noqa: E501 + catm1: Optional[List[ArduinoCredentialsv1]] = Field(default=None, description="ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view)") + cellular: Optional[List[ArduinoCredentialsv1]] = Field(default=None, description="ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view)") + eth: Optional[List[ArduinoCredentialsv1]] = Field(default=None, description="ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view)") + gsm: Optional[List[ArduinoCredentialsv1]] = Field(default=None, description="ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view)") + lora: Optional[List[ArduinoCredentialsv1]] = Field(default=None, description="ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view)") + nb: Optional[List[ArduinoCredentialsv1]] = Field(default=None, description="ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view)") + wifi: Optional[List[ArduinoCredentialsv1]] = Field(default=None, description="ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view)") + wifiandsecret: Optional[List[ArduinoCredentialsv1]] = Field(default=None, description="ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view)") + __properties: ClassVar[List[str]] = ["catm1", "cellular", "eth", "gsm", "lora", "nb", "wifi", "wifiandsecret"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ArduinoArduinoconnectionsV1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in catm1 (list) + _items = [] + if self.catm1: + for _item_catm1 in self.catm1: + if _item_catm1: + _items.append(_item_catm1.to_dict()) + _dict['catm1'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in cellular (list) + _items = [] + if self.cellular: + for _item_cellular in self.cellular: + if _item_cellular: + _items.append(_item_cellular.to_dict()) + _dict['cellular'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in eth (list) + _items = [] + if self.eth: + for _item_eth in self.eth: + if _item_eth: + _items.append(_item_eth.to_dict()) + _dict['eth'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in gsm (list) + _items = [] + if self.gsm: + for _item_gsm in self.gsm: + if _item_gsm: + _items.append(_item_gsm.to_dict()) + _dict['gsm'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in lora (list) + _items = [] + if self.lora: + for _item_lora in self.lora: + if _item_lora: + _items.append(_item_lora.to_dict()) + _dict['lora'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in nb (list) + _items = [] + if self.nb: + for _item_nb in self.nb: + if _item_nb: + _items.append(_item_nb.to_dict()) + _dict['nb'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in wifi (list) + _items = [] + if self.wifi: + for _item_wifi in self.wifi: + if _item_wifi: + _items.append(_item_wifi.to_dict()) + _dict['wifi'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in wifiandsecret (list) + _items = [] + if self.wifiandsecret: + for _item_wifiandsecret in self.wifiandsecret: + if _item_wifiandsecret: + _items.append(_item_wifiandsecret.to_dict()) + _dict['wifiandsecret'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ArduinoArduinoconnectionsV1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "catm1": [ArduinoCredentialsv1.from_dict(_item) for _item in obj["catm1"]] if obj.get("catm1") is not None else None, + "cellular": [ArduinoCredentialsv1.from_dict(_item) for _item in obj["cellular"]] if obj.get("cellular") is not None else None, + "eth": [ArduinoCredentialsv1.from_dict(_item) for _item in obj["eth"]] if obj.get("eth") is not None else None, + "gsm": [ArduinoCredentialsv1.from_dict(_item) for _item in obj["gsm"]] if obj.get("gsm") is not None else None, + "lora": [ArduinoCredentialsv1.from_dict(_item) for _item in obj["lora"]] if obj.get("lora") is not None else None, + "nb": [ArduinoCredentialsv1.from_dict(_item) for _item in obj["nb"]] if obj.get("nb") is not None else None, + "wifi": [ArduinoCredentialsv1.from_dict(_item) for _item in obj["wifi"]] if obj.get("wifi") is not None else None, + "wifiandsecret": [ArduinoCredentialsv1.from_dict(_item) for _item in obj["wifiandsecret"]] if obj.get("wifiandsecret") is not None else None + }) + return _obj + + diff --git a/iot_api_client/models/arduino_devicev2.py b/iot_api_client/models/arduino_devicev2.py index dc61eb6..93b3a89 100644 --- a/iot_api_client/models/arduino_devicev2.py +++ b/iot_api_client/models/arduino_devicev2.py @@ -20,6 +20,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from iot_api_client.models.arduino_devicev2_simple_properties import ArduinoDevicev2SimpleProperties from iot_api_client.models.arduino_devicev2_webhook import ArduinoDevicev2Webhook from iot_api_client.models.arduino_thing import ArduinoThing @@ -30,6 +31,7 @@ class ArduinoDevicev2(BaseModel): """ ArduinoDevicev2 media type (default view) """ # noqa: E501 + ble_mac: Optional[Annotated[str, Field(min_length=17, strict=True, max_length=17)]] = None connection_type: Optional[StrictStr] = Field(default=None, description="The type of the connections selected by the user when multiple connections are available") created_at: Optional[datetime] = Field(default=None, description="Creation date of the device") deleted_at: Optional[datetime] = Field(default=None, description="Deletion date of the trigger") @@ -38,9 +40,11 @@ class ArduinoDevicev2(BaseModel): fqbn: Optional[StrictStr] = Field(default=None, description="The fully qualified board name") href: StrictStr = Field(description="The api reference of this device") id: StrictStr = Field(description="The arn of the device") + issuer_ca: Optional[StrictStr] = None label: StrictStr = Field(description="The label of the device") last_activity_at: Optional[datetime] = Field(default=None, description="Last activity date") latest_wifi_fw_version: Optional[StrictStr] = Field(default=None, description="The latest version of the NINA/WIFI101 firmware available for this device") + lib_version: Optional[StrictStr] = None metadata: Optional[Dict[str, Any]] = Field(default=None, description="The metadata of the device") name: StrictStr = Field(description="The friendly name of the device") no_sketch: Optional[StrictBool] = Field(default=None, description="True if the device type can not have an associated sketch") @@ -52,11 +56,22 @@ class ArduinoDevicev2(BaseModel): tags: Optional[Dict[str, Any]] = Field(default=None, description="Tags belonging to the device") thing: Optional[ArduinoThing] = None type: StrictStr = Field(description="The type of the device") + unique_hardware_id: Optional[Annotated[str, Field(min_length=64, strict=True, max_length=64)]] = Field(default=None, description="The unique hardware id of the device") updated_at: Optional[datetime] = Field(default=None, description="Update date of the trigger") user_id: StrictStr = Field(description="The id of the user") webhooks: Optional[List[ArduinoDevicev2Webhook]] = Field(default=None, description="ArduinoDevicev2WebhookCollection is the media type for an array of ArduinoDevicev2Webhook (default view)") wifi_fw_version: Optional[StrictStr] = Field(default=None, description="The version of the NINA/WIFI101 firmware running on the device") - __properties: ClassVar[List[str]] = ["connection_type", "created_at", "deleted_at", "device_status", "events", "fqbn", "href", "id", "label", "last_activity_at", "latest_wifi_fw_version", "metadata", "name", "no_sketch", "organization_id", "ota_available", "ota_compatible", "required_wifi_fw_version", "serial", "tags", "thing", "type", "updated_at", "user_id", "webhooks", "wifi_fw_version"] + __properties: ClassVar[List[str]] = ["ble_mac", "connection_type", "created_at", "deleted_at", "device_status", "events", "fqbn", "href", "id", "issuer_ca", "label", "last_activity_at", "latest_wifi_fw_version", "lib_version", "metadata", "name", "no_sketch", "organization_id", "ota_available", "ota_compatible", "required_wifi_fw_version", "serial", "tags", "thing", "type", "unique_hardware_id", "updated_at", "user_id", "webhooks", "wifi_fw_version"] + + @field_validator('ble_mac') + def ble_mac_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^(?:[0-9A-Fa-f]{2}[:]){5}(?:[0-9A-Fa-f]{2})", value): + raise ValueError(r"must validate the regular expression /^(?:[0-9A-Fa-f]{2}[:]){5}(?:[0-9A-Fa-f]{2})/") + return value @field_validator('connection_type') def connection_type_validate_enum(cls, value): @@ -146,6 +161,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "ble_mac": obj.get("ble_mac"), "connection_type": obj.get("connection_type"), "created_at": obj.get("created_at"), "deleted_at": obj.get("deleted_at"), @@ -154,9 +170,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "fqbn": obj.get("fqbn"), "href": obj.get("href"), "id": obj.get("id"), + "issuer_ca": obj.get("issuer_ca"), "label": obj.get("label"), "last_activity_at": obj.get("last_activity_at"), "latest_wifi_fw_version": obj.get("latest_wifi_fw_version"), + "lib_version": obj.get("lib_version"), "metadata": obj.get("metadata"), "name": obj.get("name"), "no_sketch": obj.get("no_sketch"), @@ -168,6 +186,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "tags": obj.get("tags"), "thing": ArduinoThing.from_dict(obj["thing"]) if obj.get("thing") is not None else None, "type": obj.get("type"), + "unique_hardware_id": obj.get("unique_hardware_id"), "updated_at": obj.get("updated_at"), "user_id": obj.get("user_id"), "webhooks": [ArduinoDevicev2Webhook.from_dict(_item) for _item in obj["webhooks"]] if obj.get("webhooks") is not None else None, diff --git a/iot_api_client/models/clone.py b/iot_api_client/models/clone.py index 2205761..0f01d0c 100644 --- a/iot_api_client/models/clone.py +++ b/iot_api_client/models/clone.py @@ -25,7 +25,7 @@ class Clone(BaseModel): """ - Add overrides used when performing a clone of a dashboard + Clone """ # noqa: E501 overrides: Optional[List[Override]] = Field(default=None, description="The overrides to apply to the cloned dashboard. An override is a tuple of ids: the id of the thing to override and the id of the new thing to link") __properties: ClassVar[List[str]] = ["overrides"] diff --git a/iot_api_client/models/create_claimed_devices_v2_payload.py b/iot_api_client/models/create_claimed_devices_v2_payload.py new file mode 100644 index 0000000..db694c6 --- /dev/null +++ b/iot_api_client/models/create_claimed_devices_v2_payload.py @@ -0,0 +1,163 @@ +# coding: utf-8 + +""" + Arduino IoT Cloud API + + Provides a set of endpoints to manage Arduino IoT Cloud **Devices**, **Things**, **Properties** and **Timeseries**. This API can be called just with any HTTP Client, or using one of these clients: * [Javascript NPM package](https://www.npmjs.com/package/@arduino/arduino-iot-client) * [Python PYPI Package](https://pypi.org/project/arduino-iot-client/) * [Golang Module](https://github.com/arduino/iot-client-go) + + The version of the OpenAPI document: 2.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class CreateClaimedDevicesV2Payload(BaseModel): + """ + DeviceV2 describes a device. + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="The id of the device", alias="ID") + ble_mac: Optional[Annotated[str, Field(min_length=17, strict=True, max_length=17)]] = None + connection_type: Optional[StrictStr] = Field(default=None, description="The type of the connections selected by the user when multiple connections are available") + fqbn: Optional[StrictStr] = Field(default=None, description="The fully qualified board name") + name: Optional[Annotated[str, Field(strict=True, max_length=64)]] = Field(default=None, description="The friendly name of the device") + serial: Optional[Annotated[str, Field(strict=True, max_length=64)]] = Field(default=None, description="The serial uuid of the device") + type: StrictStr = Field(description="The type of the device") + unique_hardware_id: Annotated[str, Field(min_length=64, strict=True, max_length=64)] = Field(description="The unique hardware id of the device") + user_id: StrictStr = Field(description="The user_id associated to the device. If absent it will be inferred from the authentication header") + wifi_fw_version: Optional[Annotated[str, Field(strict=True, max_length=10)]] = Field(default=None, description="The version of the NINA/WIFI101 firmware running on the device") + __properties: ClassVar[List[str]] = ["ID", "ble_mac", "connection_type", "fqbn", "name", "serial", "type", "unique_hardware_id", "user_id", "wifi_fw_version"] + + @field_validator('ble_mac') + def ble_mac_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^(?:[0-9A-Fa-f]{2}[:]){5}(?:[0-9A-Fa-f]{2})", value): + raise ValueError(r"must validate the regular expression /^(?:[0-9A-Fa-f]{2}[:]){5}(?:[0-9A-Fa-f]{2})/") + return value + + @field_validator('connection_type') + def connection_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['wifi', 'eth', 'wifiandsecret', 'gsm', 'nb', 'lora', 'catm1', 'cellular']): + raise ValueError("must be one of enum values ('wifi', 'eth', 'wifiandsecret', 'gsm', 'nb', 'lora', 'catm1', 'cellular')") + return value + + @field_validator('name') + def name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"[a-zA-Z0-9_.@-]+", value): + raise ValueError(r"must validate the regular expression /[a-zA-Z0-9_.@-]+/") + return value + + @field_validator('serial') + def serial_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"[a-zA-Z0-9_.@-]+", value): + raise ValueError(r"must validate the regular expression /[a-zA-Z0-9_.@-]+/") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['mkrwifi1010', 'mkr1000', 'nano_33_iot', 'mkrgsm1400', 'mkrnb1500', 'login_and_secretkey_wifi', 'envie_m7', 'nanorp2040connect', 'nicla_vision', 'phone', 'portenta_x8', 'opta', 'giga', 'generic_device_secretkey', 'portenta_c33', 'unor4wifi', 'nano_nora']): + raise ValueError("must be one of enum values ('mkrwifi1010', 'mkr1000', 'nano_33_iot', 'mkrgsm1400', 'mkrnb1500', 'login_and_secretkey_wifi', 'envie_m7', 'nanorp2040connect', 'nicla_vision', 'phone', 'portenta_x8', 'opta', 'giga', 'generic_device_secretkey', 'portenta_c33', 'unor4wifi', 'nano_nora')") + return value + + @field_validator('wifi_fw_version') + def wifi_fw_version_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$", value): + raise ValueError(r"must validate the regular expression /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateClaimedDevicesV2Payload from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateClaimedDevicesV2Payload from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ID": obj.get("ID"), + "ble_mac": obj.get("ble_mac"), + "connection_type": obj.get("connection_type"), + "fqbn": obj.get("fqbn"), + "name": obj.get("name"), + "serial": obj.get("serial"), + "type": obj.get("type"), + "unique_hardware_id": obj.get("unique_hardware_id"), + "user_id": obj.get("user_id"), + "wifi_fw_version": obj.get("wifi_fw_version") + }) + return _obj + + diff --git a/iot_api_client/models/create_devices_v2_payload.py b/iot_api_client/models/create_devices_v2_payload.py index f8fd2eb..dc0e17d 100644 --- a/iot_api_client/models/create_devices_v2_payload.py +++ b/iot_api_client/models/create_devices_v2_payload.py @@ -27,15 +27,27 @@ class CreateDevicesV2Payload(BaseModel): """ DeviceV2 describes a device. """ # noqa: E501 + ble_mac: Optional[Annotated[str, Field(min_length=17, strict=True, max_length=17)]] = None connection_type: Optional[StrictStr] = Field(default=None, description="The type of the connections selected by the user when multiple connections are available") fqbn: Optional[StrictStr] = Field(default=None, description="The fully qualified board name") name: Optional[Annotated[str, Field(strict=True, max_length=64)]] = Field(default=None, description="The friendly name of the device") serial: Optional[Annotated[str, Field(strict=True, max_length=64)]] = Field(default=None, description="The serial uuid of the device") soft_deleted: Optional[StrictBool] = Field(default=False, description="If false, restore the thing from the soft deletion") type: StrictStr = Field(description="The type of the device") + unique_hardware_id: Optional[Annotated[str, Field(min_length=64, strict=True, max_length=64)]] = None user_id: Optional[StrictStr] = Field(default=None, description="The user_id associated to the device. If absent it will be inferred from the authentication header") wifi_fw_version: Optional[Annotated[str, Field(strict=True, max_length=10)]] = Field(default=None, description="The version of the NINA/WIFI101 firmware running on the device") - __properties: ClassVar[List[str]] = ["connection_type", "fqbn", "name", "serial", "soft_deleted", "type", "user_id", "wifi_fw_version"] + __properties: ClassVar[List[str]] = ["ble_mac", "connection_type", "fqbn", "name", "serial", "soft_deleted", "type", "unique_hardware_id", "user_id", "wifi_fw_version"] + + @field_validator('ble_mac') + def ble_mac_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^(?:[0-9A-Fa-f]{2}[:]){5}(?:[0-9A-Fa-f]{2})", value): + raise ValueError(r"must validate the regular expression /^(?:[0-9A-Fa-f]{2}[:]){5}(?:[0-9A-Fa-f]{2})/") + return value @field_validator('connection_type') def connection_type_validate_enum(cls, value): @@ -135,12 +147,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "ble_mac": obj.get("ble_mac"), "connection_type": obj.get("connection_type"), "fqbn": obj.get("fqbn"), "name": obj.get("name"), "serial": obj.get("serial"), "soft_deleted": obj.get("soft_deleted") if obj.get("soft_deleted") is not None else False, "type": obj.get("type"), + "unique_hardware_id": obj.get("unique_hardware_id"), "user_id": obj.get("user_id"), "wifi_fw_version": obj.get("wifi_fw_version") }) diff --git a/iot_api_client/models/dashboardshare.py b/iot_api_client/models/dashboardshare.py index de6e090..c9f68a5 100644 --- a/iot_api_client/models/dashboardshare.py +++ b/iot_api_client/models/dashboardshare.py @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from iot_api_client.models.usershare import Usershare from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,8 @@ class Dashboardshare(BaseModel): """ # noqa: E501 user_id: Optional[StrictStr] = Field(default=None, description="The userID of the user you want to share the dashboard with") username: Optional[StrictStr] = Field(default=None, description="The username of the user you want to share the dashboard with") - __properties: ClassVar[List[str]] = ["user_id", "username"] + users: Optional[List[Usershare]] = Field(default=None, description="The list of users you want to share the dashboard with") + __properties: ClassVar[List[str]] = ["user_id", "username", "users"] model_config = ConfigDict( populate_by_name=True, @@ -69,6 +71,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items return _dict @classmethod @@ -82,7 +91,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "user_id": obj.get("user_id"), - "username": obj.get("username") + "username": obj.get("username"), + "users": [Usershare.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None }) return _obj diff --git a/iot_api_client/models/dashboardv2.py b/iot_api_client/models/dashboardv2.py index 23c257a..9396e9b 100644 --- a/iot_api_client/models/dashboardv2.py +++ b/iot_api_client/models/dashboardv2.py @@ -26,7 +26,7 @@ class Dashboardv2(BaseModel): """ - Describes a dashboard + DashboardV2Payload describes a dashboard """ # noqa: E501 cover_image: Optional[Annotated[str, Field(strict=True, max_length=1024)]] = Field(default=None, description="The cover image of the dashboard") name: Optional[Annotated[str, Field(strict=True, max_length=64)]] = Field(default=None, description="The friendly name of the dashboard") diff --git a/iot_api_client/models/devicev2.py b/iot_api_client/models/devicev2.py index 2eb8539..44ab8b7 100644 --- a/iot_api_client/models/devicev2.py +++ b/iot_api_client/models/devicev2.py @@ -27,15 +27,27 @@ class Devicev2(BaseModel): """ DeviceV2 describes a device. """ # noqa: E501 + ble_mac: Optional[Annotated[str, Field(min_length=17, strict=True, max_length=17)]] = None connection_type: Optional[StrictStr] = Field(default=None, description="The type of the connections selected by the user when multiple connections are available") fqbn: Optional[StrictStr] = Field(default=None, description="The fully qualified board name") name: Optional[Annotated[str, Field(strict=True, max_length=64)]] = Field(default=None, description="The friendly name of the device") serial: Optional[Annotated[str, Field(strict=True, max_length=64)]] = Field(default=None, description="The serial uuid of the device") soft_deleted: Optional[StrictBool] = Field(default=False, description="If false, restore the thing from the soft deletion") type: Optional[StrictStr] = Field(default=None, description="The type of the device") + unique_hardware_id: Optional[Annotated[str, Field(min_length=64, strict=True, max_length=64)]] = None user_id: Optional[StrictStr] = Field(default=None, description="The user_id associated to the device. If absent it will be inferred from the authentication header") wifi_fw_version: Optional[Annotated[str, Field(strict=True, max_length=10)]] = Field(default=None, description="The version of the NINA/WIFI101 firmware running on the device") - __properties: ClassVar[List[str]] = ["connection_type", "fqbn", "name", "serial", "soft_deleted", "type", "user_id", "wifi_fw_version"] + __properties: ClassVar[List[str]] = ["ble_mac", "connection_type", "fqbn", "name", "serial", "soft_deleted", "type", "unique_hardware_id", "user_id", "wifi_fw_version"] + + @field_validator('ble_mac') + def ble_mac_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^(?:[0-9A-Fa-f]{2}[:]){5}(?:[0-9A-Fa-f]{2})", value): + raise ValueError(r"must validate the regular expression /^(?:[0-9A-Fa-f]{2}[:]){5}(?:[0-9A-Fa-f]{2})/") + return value @field_validator('connection_type') def connection_type_validate_enum(cls, value): @@ -138,12 +150,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "ble_mac": obj.get("ble_mac"), "connection_type": obj.get("connection_type"), "fqbn": obj.get("fqbn"), "name": obj.get("name"), "serial": obj.get("serial"), "soft_deleted": obj.get("soft_deleted") if obj.get("soft_deleted") is not None else False, "type": obj.get("type"), + "unique_hardware_id": obj.get("unique_hardware_id"), "user_id": obj.get("user_id"), "wifi_fw_version": obj.get("wifi_fw_version") }) diff --git a/iot_api_client/models/usershare.py b/iot_api_client/models/usershare.py new file mode 100644 index 0000000..f83a032 --- /dev/null +++ b/iot_api_client/models/usershare.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Arduino IoT Cloud API + + Provides a set of endpoints to manage Arduino IoT Cloud **Devices**, **Things**, **Properties** and **Timeseries**. This API can be called just with any HTTP Client, or using one of these clients: * [Javascript NPM package](https://www.npmjs.com/package/@arduino/arduino-iot-client) * [Python PYPI Package](https://pypi.org/project/arduino-iot-client/) * [Golang Module](https://github.com/arduino/iot-client-go) + + The version of the OpenAPI document: 2.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class Usershare(BaseModel): + """ + Usershare + """ # noqa: E501 + user_id: Optional[StrictStr] = Field(default=None, description="The userID of the user you want to share the dashboard with") + username: Optional[StrictStr] = Field(default=None, description="The username of the user you want to share the dashboard with") + __properties: ClassVar[List[str]] = ["user_id", "username"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Usershare from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Usershare from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "user_id": obj.get("user_id"), + "username": obj.get("username") + }) + return _obj + + diff --git a/test/test_arduino_arduinoconnections_v1.py b/test/test_arduino_arduinoconnections_v1.py new file mode 100644 index 0000000..d2ad216 --- /dev/null +++ b/test/test_arduino_arduinoconnections_v1.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Arduino IoT Cloud API + + Provides a set of endpoints to manage Arduino IoT Cloud **Devices**, **Things**, **Properties** and **Timeseries**. This API can be called just with any HTTP Client, or using one of these clients: * [Javascript NPM package](https://www.npmjs.com/package/@arduino/arduino-iot-client) * [Python PYPI Package](https://pypi.org/project/arduino-iot-client/) * [Golang Module](https://github.com/arduino/iot-client-go) + + The version of the OpenAPI document: 2.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from iot_api_client.models.arduino_arduinoconnections_v1 import ArduinoArduinoconnectionsV1 + +class TestArduinoArduinoconnectionsV1(unittest.TestCase): + """ArduinoArduinoconnectionsV1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ArduinoArduinoconnectionsV1: + """Test ArduinoArduinoconnectionsV1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ArduinoArduinoconnectionsV1` + """ + model = ArduinoArduinoconnectionsV1() + if include_optional: + return ArduinoArduinoconnectionsV1( + catm1 = [ + iot_api_client.models.mediatype_identifier:_application/vnd/arduino/credentialsv1+json;_view=default.Mediatype identifier: application/vnd.arduino.credentialsv1+json; view=default( + friendly_name = '', + required = True, + secret_name = '', + sensitive = True, ) + ], + cellular = [ + iot_api_client.models.mediatype_identifier:_application/vnd/arduino/credentialsv1+json;_view=default.Mediatype identifier: application/vnd.arduino.credentialsv1+json; view=default( + friendly_name = '', + required = True, + secret_name = '', + sensitive = True, ) + ], + eth = [ + iot_api_client.models.mediatype_identifier:_application/vnd/arduino/credentialsv1+json;_view=default.Mediatype identifier: application/vnd.arduino.credentialsv1+json; view=default( + friendly_name = '', + required = True, + secret_name = '', + sensitive = True, ) + ], + gsm = [ + iot_api_client.models.mediatype_identifier:_application/vnd/arduino/credentialsv1+json;_view=default.Mediatype identifier: application/vnd.arduino.credentialsv1+json; view=default( + friendly_name = '', + required = True, + secret_name = '', + sensitive = True, ) + ], + lora = [ + iot_api_client.models.mediatype_identifier:_application/vnd/arduino/credentialsv1+json;_view=default.Mediatype identifier: application/vnd.arduino.credentialsv1+json; view=default( + friendly_name = '', + required = True, + secret_name = '', + sensitive = True, ) + ], + nb = [ + iot_api_client.models.mediatype_identifier:_application/vnd/arduino/credentialsv1+json;_view=default.Mediatype identifier: application/vnd.arduino.credentialsv1+json; view=default( + friendly_name = '', + required = True, + secret_name = '', + sensitive = True, ) + ], + wifi = [ + iot_api_client.models.mediatype_identifier:_application/vnd/arduino/credentialsv1+json;_view=default.Mediatype identifier: application/vnd.arduino.credentialsv1+json; view=default( + friendly_name = '', + required = True, + secret_name = '', + sensitive = True, ) + ], + wifiandsecret = [ + iot_api_client.models.mediatype_identifier:_application/vnd/arduino/credentialsv1+json;_view=default.Mediatype identifier: application/vnd.arduino.credentialsv1+json; view=default( + friendly_name = '', + required = True, + secret_name = '', + sensitive = True, ) + ] + ) + else: + return ArduinoArduinoconnectionsV1( + ) + """ + + def testArduinoArduinoconnectionsV1(self): + """Test ArduinoArduinoconnectionsV1""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_claimed_devices_v2_payload.py b/test/test_create_claimed_devices_v2_payload.py new file mode 100644 index 0000000..1c3ff72 --- /dev/null +++ b/test/test_create_claimed_devices_v2_payload.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Arduino IoT Cloud API + + Provides a set of endpoints to manage Arduino IoT Cloud **Devices**, **Things**, **Properties** and **Timeseries**. This API can be called just with any HTTP Client, or using one of these clients: * [Javascript NPM package](https://www.npmjs.com/package/@arduino/arduino-iot-client) * [Python PYPI Package](https://pypi.org/project/arduino-iot-client/) * [Golang Module](https://github.com/arduino/iot-client-go) + + The version of the OpenAPI document: 2.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from iot_api_client.models.create_claimed_devices_v2_payload import CreateClaimedDevicesV2Payload + +class TestCreateClaimedDevicesV2Payload(unittest.TestCase): + """CreateClaimedDevicesV2Payload unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateClaimedDevicesV2Payload: + """Test CreateClaimedDevicesV2Payload + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CreateClaimedDevicesV2Payload` + """ + model = CreateClaimedDevicesV2Payload() + if include_optional: + return CreateClaimedDevicesV2Payload( + id = '', + ble_mac = '62:CB:20:42:30:c0012345678910111213141516', + connection_type = 'wifi', + fqbn = '', + name = '0', + serial = '0', + type = 'mkrwifi1010', + unique_hardware_id = '0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263', + user_id = '', + wifi_fw_version = '9072888001528021798096225500850762068629339333975650685139102691291.0.0+RjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohR8p.ziKqEde8fXg9wdpfxa2-zRi2iAxU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9RmauFxv71lRsCjOv6MeuvKG.DRGKUIQ8yNXhXoEdbZpGptfI4pvLXGuLk-kwwO2jcMEEkIa.W5ApNaDi5ackLaR2kw9-zmvqRnM-dar09VaHCQz0TlT4b42Jml4PJXMbVMO8G0e5q9Z4WMWovY63Gk6ixTd5NxR.25mQYd6VBLRGkQ5H9-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2ymMVY.YsFBx8OyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-c9WhD1h649MeAEDz67NG9dihNlL1.PO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPtVfykpnotMPK4.qhv7VjToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPB5iVX1lhmY7Gh2I3pT2S.uv6.tyxEBpX6RQusWUzrY2Ial.FJfz8Zwx6YGCNhQCndVdQ8Zqh8o9Fu3-luW1PzrlptgIbB7lMjnQXJdim087U4e00bXYP.263P2Qk0LGzQ-Q5b8qpf900OPrJ7NsXeu0SeHiC.or8kJwu9CQe1tTxWk3GoxqObZMXxUrU.PuO24.6xCEEGYs5NZ9BhURG1p1vKPKEsa.a3pD3hXM15Q-LQUOofFYT6wb4OCgvTgDaAqbKuYurrDjTDCxu.ecKtov6lMCwqpGvF10AyNzlABWKNXeFooO85mDfPdkPvuMP4UItRxglXsbfmNlQ5dxg25oBYSAJH9pP2AsvJ1ScQkpdOFo.b48VqkgYNMd7LrDcYKGedFO0HBfI81yv9G-D76SNMcY0UPPPdI22mRwN8gXBGGp92k53.1KEc7ag0ak9ETa6LnPl34V.5Jc4YC3r.ILhaa6Jcc4hzAqllACM9319wGio4p44OFkGlPpgNlbtJZS0AaW9X3CHj-n2hyQAB8SPpfju.1nTBPTJPb-Hj0L.cV6H860Rpwn8zGLfibFlAiPGyvhU8Ye52iQcNh1XhyIjU5N0a56m2ONPCsy2yJE2MQH9Vtj3dWmBLqET.auRy5wUhGt7xNZoWfe9JGrar3ZeHRc4dSsd0RIlQ1YUo31fGOwi1Xfgv.he4JPG5EYj9qSsH3icZps5aXdx--TYsRRGn8p-Q2t9ufMVk0G3LCRAkC2MHGjLeFDChVzm1sl-Bu5nHUPV3JcSLLtzHgWd203hy.cgItmozD9jSoTmmDlQzmeuMjs4cmyHkc7OcK.a5ZkmXKIhuWWL1PB8JQFInAlUihvIRKWmd74vVNVouUUq7lr13izMpQeXTwCX7eZR4diuBp12rqic.-pO1cprK6eZP-b1SuInOS2bPzpLsEcDg9JOefS2IKCBgZkZN1VM5iisCMqqvZJfQbTm0l8TqUvVVYQzBM3pTF3YFunJjn79r.X76dFbUfrQdC.CsMXdVXhXKWhK7aKxfLZMGV1t5ZLSwBhCBeSp3g1WqnxFKTMlmqL5kYD0D-.lZnDQWB6CfFrfdWw.lB5yxG2ZsNwUTxPepPDck0MHjx1bWWkthueuyZwIYJFC-DP.pDz0q9BcSZ9lSO3Fm1Aw-wm4asDrqk8Aqw1gHodBjUGpKTy8xuN4TvW3wydnv61CL6-Ma55v-.ci4bPbKvnn4ON1zDx0RE5Nx-CnGmqNNhQQuMJYkjplO3Qdqu9Y32Xmk.ws1aTVFSrXW-Cc3Zlfh6YwbO-wd61ok6dkgj3fNOb.daoZA1F02Pi3WxdBRfK7kZq-foRRQUAGEMz-biz--psyEvzi6C8Y89wwxrOADQYuRsYgAFe.Oz26sXflDj3ZKPbb.5LwwjHM1Zfj0bJ3cHAnEwK3LXdBrD99XSqFR6aV9uyoVGq.EJe-wvWZmWi.Ihctr-seZcIsU78A-6.6uPNyWu.as5q7-lfce9-8Do101kYW1tCLjm3EPHhKxm.hBJAlXkoQZqOkDB7wcPWkqotc6fQJs52.QKpgtkhgJP2pCWDIqetgTZsY7xlN3E7zxLDrXBGblu1s7At6U2M5I0H33HhkJRPicrz91Mnqr4yUQy3nOCQv4yqY.M8d7UUXqQdz8ORLX7PhYoA5ITVLr1rCs1.daEl0tG5if.npOOAVHva9i7wKGIOmsYkpwPB08qBqbgiKD8h-jhgoAD6oEaEIg9hqdBk87piJu2fHTHWNw1WGbDvKMClEM0pWG7gx2yb.AuT6q1dUrLCN6NPK0brTSwMFavOBDfYh6SWUkJ7XO32vfW9YRga.03cIqVgnG7dDviEQYeYsVp6bNv9XqJoDDSwcwkJvnEdiYdDcVLlRMsgGfQl-tGvdMnDqnxRe7EAipxSvUxD6lhGX0wQGc87.OhmM3dQkRuht7pIqysrRPSNqVg2qV7yPxS6zN1jFxe9RVYcK-J.hbgms67HfNYbVp9oaT6x-W9PX5eTeltcxj.VBajOnyD0pkOF1WFBnF.mcWC6Ggb7ozlleM8QgTjBaA9mfSMCxZLogapWzy373M4zkkTNr-J5dkUMXZbHzFcOhyLEEaimeL.3YKjuAetlS3KzQ3re5yyNydVmSrcU07T2IefMatN.9EwBjoSdfp0qUZT9ZEikdceGh-PrN5eZiRnbnxhaAGJdNWy8YuT1nhbdHhnszeIEGYoiOAz3w8t8JeOqP.8wcdt3n9Q18SKzea-IlLBLRzcEhoqVuUCEMQ93-aK7kTUKwGpNFs6oxf4rK2c2cqKr6NdT0mVcCzXpEYgd4j2pfz2OhgwjH.7.TeTNn-kC1tWGTwvSe04Vuj8uQ5FMrHjWbBFGHMprQcHDQ9X.R45mJyb0kvP09gLqmLT2ZBctrFe4rKz49D.bgU2rmVhxKQwKj2CvvcelO-a4qXa3zFRMnF0L.Tb2XXgfhZnLhogeg-lX38MmIJ9H8.woZJXltyMySvaJ2YVjDcbdQ3VQQRHJW1zsoJEJN7qLewjxfK3R3vVJYDnMtqbnX0dYax2JyQF6TkCgEBc.KhM4sm4rjZsdx7lu4l53pRPPb8XS149u1VRYFMhW1wn.rzgV53Dpcj0YE965xb8tPZiBI' + ) + else: + return CreateClaimedDevicesV2Payload( + type = 'mkrwifi1010', + unique_hardware_id = '0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263', + user_id = '', + ) + """ + + def testCreateClaimedDevicesV2Payload(self): + """Test CreateClaimedDevicesV2Payload""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_usershare.py b/test/test_usershare.py new file mode 100644 index 0000000..7b1b848 --- /dev/null +++ b/test/test_usershare.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Arduino IoT Cloud API + + Provides a set of endpoints to manage Arduino IoT Cloud **Devices**, **Things**, **Properties** and **Timeseries**. This API can be called just with any HTTP Client, or using one of these clients: * [Javascript NPM package](https://www.npmjs.com/package/@arduino/arduino-iot-client) * [Python PYPI Package](https://pypi.org/project/arduino-iot-client/) * [Golang Module](https://github.com/arduino/iot-client-go) + + The version of the OpenAPI document: 2.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from iot_api_client.models.usershare import Usershare + +class TestUsershare(unittest.TestCase): + """Usershare unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Usershare: + """Test Usershare + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Usershare` + """ + model = Usershare() + if include_optional: + return Usershare( + user_id = '', + username = '' + ) + else: + return Usershare( + ) + """ + + def testUsershare(self): + """Test Usershare""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main()