Skip to content

Commit

Permalink
Regenerate client from commit 6a8984f of spec repo (#35)
Browse files Browse the repository at this point in the history
Co-authored-by: ArduinoBot <[email protected]>
  • Loading branch information
github-actions[bot] and ArduinoBot authored May 12, 2020
1 parent d126d6d commit 72c8eaa
Show file tree
Hide file tree
Showing 59 changed files with 3,224 additions and 399 deletions.
13 changes: 8 additions & 5 deletions .apigentools-info
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"additional_stamps": [],
"apigentools_version": "0.9.2",
"codegen_version": "4.2.2",
"info_version": "1",
"image": null,
"spec_repo_commit": "164fde2"
"info_version": "2",
"spec_versions": {
"v2": {
"apigentools_version": "1.0.0",
"regenerated": "2020-05-12 10:32:44.111747",
"spec_repo_commit": "6a8984f"
}
}
}
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.2.2
4.3.1
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ token = oauth.fetch_token(
token_url=token_url,
client_id=YOUR_CLIENT_ID,
client_secret=YOUR_CLIENT_SECRET,
include_client_id=True,
audience="https://api2.arduino.cc/iot",
)

Expand All @@ -52,7 +53,7 @@ from iot_api_client.rest import ApiException
from iot_api_client.configuration import Configuration

# configure and instance the API client
client_config = Configuration(host="https://api2.arduino.cc/iot")
client_config = Configuration(host="http://api2.arduino.cc/iot")
client_config.access_token = YOUR_ACCESS_TOKEN
client = iot.ApiClient(client_config)

Expand Down
15 changes: 12 additions & 3 deletions arduino_iot_rest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# flake8: noqa

"""
Iot API
Arduino IoT Cloud API
Collection of all public API endpoints. # noqa: E501
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) # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
Expand All @@ -14,10 +14,12 @@

from __future__ import absolute_import

__version__ = "1.2.0"
__version__ = "1.3.0"

# import apis into sdk package
from arduino_iot_rest.api.devices_v2_api import DevicesV2Api
from arduino_iot_rest.api.devices_v2_certs_api import DevicesV2CertsApi
from arduino_iot_rest.api.devices_v2_pass_api import DevicesV2PassApi
from arduino_iot_rest.api.properties_v2_api import PropertiesV2Api
from arduino_iot_rest.api.series_v2_api import SeriesV2Api
from arduino_iot_rest.api.things_v2_api import ThingsV2Api
Expand All @@ -31,8 +33,11 @@
from arduino_iot_rest.exceptions import ApiKeyError
from arduino_iot_rest.exceptions import ApiException
# import models into sdk package
from arduino_iot_rest.models.arduino_compressedv2 import ArduinoCompressedv2
from arduino_iot_rest.models.arduino_devicev2 import ArduinoDevicev2
from arduino_iot_rest.models.arduino_devicev2_cert import ArduinoDevicev2Cert
from arduino_iot_rest.models.arduino_devicev2_event_properties import ArduinoDevicev2EventProperties
from arduino_iot_rest.models.arduino_devicev2_pass import ArduinoDevicev2Pass
from arduino_iot_rest.models.arduino_devicev2_simple_properties import ArduinoDevicev2SimpleProperties
from arduino_iot_rest.models.arduino_devicev2_webhook import ArduinoDevicev2Webhook
from arduino_iot_rest.models.arduino_devicev2properties import ArduinoDevicev2properties
Expand All @@ -56,9 +61,13 @@
from arduino_iot_rest.models.batch_query_raw_response_series_media_v1 import BatchQueryRawResponseSeriesMediaV1
from arduino_iot_rest.models.batch_query_request_media_v1 import BatchQueryRequestMediaV1
from arduino_iot_rest.models.batch_query_requests_media_v1 import BatchQueryRequestsMediaV1
from arduino_iot_rest.models.check_devices_v2_pass_payload import CheckDevicesV2PassPayload
from arduino_iot_rest.models.create_devices_v2_certs_payload import CreateDevicesV2CertsPayload
from arduino_iot_rest.models.create_devices_v2_payload import CreateDevicesV2Payload
from arduino_iot_rest.models.create_things_v2_payload import CreateThingsV2Payload
from arduino_iot_rest.models.devicev2 import Devicev2
from arduino_iot_rest.models.devicev2_cert import Devicev2Cert
from arduino_iot_rest.models.devicev2_pass import Devicev2Pass
from arduino_iot_rest.models.error import Error
from arduino_iot_rest.models.model_property import ModelProperty
from arduino_iot_rest.models.properties_value import PropertiesValue
Expand Down
2 changes: 2 additions & 0 deletions arduino_iot_rest/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

# import apis into api package
from arduino_iot_rest.api.devices_v2_api import DevicesV2Api
from arduino_iot_rest.api.devices_v2_certs_api import DevicesV2CertsApi
from arduino_iot_rest.api.devices_v2_pass_api import DevicesV2PassApi
from arduino_iot_rest.api.properties_v2_api import PropertiesV2Api
from arduino_iot_rest.api.series_v2_api import SeriesV2Api
from arduino_iot_rest.api.things_v2_api import ThingsV2Api
166 changes: 118 additions & 48 deletions arduino_iot_rest/api/devices_v2_api.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
Iot API
Arduino IoT Cloud API
Collection of all public API endpoints. # noqa: E501
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) # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
Expand All @@ -18,7 +18,7 @@
import six

from arduino_iot_rest.api_client import ApiClient
from arduino_iot_rest.exceptions import (
from arduino_iot_rest.exceptions import ( # noqa: F401
ApiTypeError,
ApiValueError
)
Expand Down Expand Up @@ -88,11 +88,17 @@ def devices_v2_create_with_http_info(self, create_devices_v2_payload, **kwargs):

local_var_params = locals()

all_params = ['create_devices_v2_payload'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
all_params = [
'create_devices_v2_payload'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)

for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
Expand Down Expand Up @@ -200,11 +206,17 @@ def devices_v2_delete_with_http_info(self, id, **kwargs): # noqa: E501

local_var_params = locals()

all_params = ['id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
all_params = [
'id'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)

for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
Expand Down Expand Up @@ -233,6 +245,10 @@ def devices_v2_delete_with_http_info(self, id, **kwargs): # noqa: E501
local_var_files = {}

body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501

# Authentication setting
auth_settings = ['oauth2'] # noqa: E501

Expand Down Expand Up @@ -308,11 +324,19 @@ def devices_v2_get_events_with_http_info(self, id, **kwargs): # noqa: E501

local_var_params = locals()

all_params = ['id', 'limit', 'start'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
all_params = [
'id',
'limit',
'start'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)

for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
Expand Down Expand Up @@ -422,11 +446,18 @@ def devices_v2_get_properties_with_http_info(self, id, **kwargs): # noqa: E501

local_var_params = locals()

all_params = ['id', 'show_deleted'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
all_params = [
'id',
'show_deleted'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)

for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
Expand Down Expand Up @@ -532,11 +563,17 @@ def devices_v2_list_with_http_info(self, **kwargs): # noqa: E501

local_var_params = locals()

all_params = ['across_user_ids'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
all_params = [
'across_user_ids'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)

for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
Expand Down Expand Up @@ -636,11 +673,17 @@ def devices_v2_show_with_http_info(self, id, **kwargs): # noqa: E501

local_var_params = locals()

all_params = ['id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
all_params = [
'id'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)

for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
Expand Down Expand Up @@ -750,11 +793,20 @@ def devices_v2_timeseries_with_http_info(self, id, pid, **kwargs): # noqa: E501

local_var_params = locals()

all_params = ['id', 'pid', 'limit', 'start'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
all_params = [
'id',
'pid',
'limit',
'start'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)

for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
Expand Down Expand Up @@ -870,11 +922,18 @@ def devices_v2_update_with_http_info(self, id, devicev2, **kwargs): # noqa: E50

local_var_params = locals()

all_params = ['id', 'devicev2'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
all_params = [
'id',
'devicev2'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)

for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
Expand Down Expand Up @@ -990,11 +1049,18 @@ def devices_v2_update_properties_with_http_info(self, id, properties_values, **k

local_var_params = locals()

all_params = ['id', 'properties_values'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
all_params = [
'id',
'properties_values'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)

for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
Expand Down Expand Up @@ -1029,6 +1095,10 @@ def devices_v2_update_properties_with_http_info(self, id, properties_values, **k
body_params = None
if 'properties_values' in local_var_params:
body_params = local_var_params['properties_values']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501

# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
Expand Down
Loading

0 comments on commit 72c8eaa

Please sign in to comment.