Skip to content

Commit e049910

Browse files
github-actions[bot]ArduinoBotPaolo Calao
authored
Regenerate client from commit 100c79b of spec repo (#57)
* Regenerate client from commit 100c79b of spec repo * trigger test * Update openapi.yaml Co-authored-by: ArduinoBot <[email protected]> Co-authored-by: Paolo Calao <[email protected]>
1 parent 9d19c7d commit e049910

12 files changed

+77
-5
lines changed

.apigentools-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"spec_versions": {
55
"v2": {
66
"apigentools_version": "1.1.0",
7-
"regenerated": "2021-11-16 17:44:58.623158",
8-
"spec_repo_commit": "3e7ae84"
7+
"regenerated": "2022-03-01 11:20:04.677155",
8+
"spec_repo_commit": "100c79b"
99
}
1010
}
1111
}

api/openapi.yaml

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,6 +1068,12 @@ paths:
10681068
multipart/form-data:
10691069
schema:
10701070
properties:
1071+
async:
1072+
default: true
1073+
description: If false, wait for the full OTA process, until it gets
1074+
a result from the device
1075+
type: boolean
1076+
x-formData-name: async
10711077
expire_in_mins:
10721078
default: 10
10731079
description: Binary expire time in minutes, default 10 mins
@@ -1084,6 +1090,8 @@ paths:
10841090
- ota_file
10851091
type: object
10861092
responses:
1093+
"200":
1094+
description: OK
10871095
"202":
10881096
description: Accepted
10891097
"400":
@@ -2992,6 +3000,7 @@ components:
29923000
thing_timezone:
29933001
offset: 1
29943002
name: name
3003+
until: 2000-01-23T04:56:07.000+00:00
29953004
thing_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
29963005
name: name
29973006
permission: permission
@@ -3004,6 +3013,7 @@ components:
30043013
thing_timezone:
30053014
offset: 1
30063015
name: name
3016+
until: 2000-01-23T04:56:07.000+00:00
30073017
thing_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
30083018
name: name
30093019
permission: permission
@@ -3033,6 +3043,7 @@ components:
30333043
thing_timezone:
30343044
offset: 1
30353045
name: name
3046+
until: 2000-01-23T04:56:07.000+00:00
30363047
thing_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
30373048
name: name
30383049
permission: permission
@@ -3045,6 +3056,7 @@ components:
30453056
thing_timezone:
30463057
offset: 1
30473058
name: name
3059+
until: 2000-01-23T04:56:07.000+00:00
30483060
thing_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
30493061
name: name
30503062
permission: permission
@@ -3139,14 +3151,17 @@ components:
31393151
href: href
31403152
id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
31413153
thing:
3154+
device_fqbn: device_fqbn
31423155
device_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
31433156
timezone: timezone
31443157
webhook_uri: webhook_uri
31453158
sketch_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
31463159
created_at: 2000-01-23T04:56:07.000+00:00
3160+
device_type: device_type
31473161
deleted_at: 2000-01-23T04:56:07.000+00:00
31483162
tags:
31493163
key: '{}'
3164+
device_name: device_name
31503165
properties_count: 5
31513166
updated_at: 2000-01-23T04:56:07.000+00:00
31523167
user_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
@@ -3671,6 +3686,7 @@ components:
36713686
thing_timezone:
36723687
offset: 1
36733688
name: name
3689+
until: 2000-01-23T04:56:07.000+00:00
36743690
thing_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
36753691
name: name
36763692
permission: permission
@@ -4279,14 +4295,17 @@ components:
42794295
ArduinoThing:
42804296
description: ArduinoThing media type (default view)
42814297
example:
4298+
device_fqbn: device_fqbn
42824299
device_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
42834300
timezone: timezone
42844301
webhook_uri: webhook_uri
42854302
sketch_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
42864303
created_at: 2000-01-23T04:56:07.000+00:00
4304+
device_type: device_type
42874305
deleted_at: 2000-01-23T04:56:07.000+00:00
42884306
tags:
42894307
key: '{}'
4308+
device_name: device_name
42904309
properties_count: 5
42914310
updated_at: 2000-01-23T04:56:07.000+00:00
42924311
user_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
@@ -4344,10 +4363,19 @@ components:
43444363
description: Delete date of the thing
43454364
format: date-time
43464365
type: string
4366+
device_fqbn:
4367+
description: The fqbn of the attached device, if any
4368+
type: string
43474369
device_id:
4348-
description: The arn of the device
4370+
description: The id of the device
43494371
format: uuid
43504372
type: string
4373+
device_name:
4374+
description: The name of the attached device, if any
4375+
type: string
4376+
device_type:
4377+
description: The type of the attached device, if any
4378+
type: string
43514379
href:
43524380
description: The api reference of this thing
43534381
type: string
@@ -4434,6 +4462,7 @@ components:
44344462
example:
44354463
offset: 1
44364464
name: name
4465+
until: 2000-01-23T04:56:07.000+00:00
44374466
properties:
44384467
name:
44394468
description: Name of the time zone.
@@ -4442,6 +4471,10 @@ components:
44424471
description: Current UTC DST offset in seconds.
44434472
format: int64
44444473
type: integer
4474+
until:
4475+
description: Date until the offset is valid.
4476+
format: date-time
4477+
type: string
44454478
required:
44464479
- name
44474480
- offset
@@ -4475,6 +4508,7 @@ components:
44754508
thing_timezone:
44764509
offset: 1
44774510
name: name
4511+
until: 2000-01-23T04:56:07.000+00:00
44784512
thing_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
44794513
name: name
44804514
permission: permission
@@ -4487,6 +4521,7 @@ components:
44874521
thing_timezone:
44884522
offset: 1
44894523
name: name
4524+
until: 2000-01-23T04:56:07.000+00:00
44904525
thing_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
44914526
name: name
44924527
permission: permission
@@ -5216,6 +5251,10 @@ components:
52165251
type: object
52175252
propertiesValues:
52185253
properties:
5254+
input:
5255+
default: false
5256+
description: If true, send property values to device's input topic.
5257+
type: boolean
52195258
properties:
52205259
items:
52215260
$ref: '#/components/schemas/propertiesValue'
@@ -5571,6 +5610,12 @@ components:
55715610
type: object
55725611
inline_object:
55735612
properties:
5613+
async:
5614+
default: true
5615+
description: If false, wait for the full OTA process, until it gets a result
5616+
from the device
5617+
type: boolean
5618+
x-formData-name: async
55745619
expire_in_mins:
55755620
default: 10
55765621
description: Binary expire time in minutes, default 10 mins

api_devices_v2_ota.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/ArduinoThing.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**CreatedAt** | [**time.Time**](time.Time.md) | Creation date of the thing | [optional]
88
**DeletedAt** | [**time.Time**](time.Time.md) | Delete date of the thing | [optional]
9-
**DeviceId** | **string** | The arn of the device | [optional]
9+
**DeviceFqbn** | **string** | The fqbn of the attached device, if any | [optional]
10+
**DeviceId** | **string** | The id of the device | [optional]
11+
**DeviceName** | **string** | The name of the attached device, if any | [optional]
12+
**DeviceType** | **string** | The type of the attached device, if any | [optional]
1013
**Href** | **string** | The api reference of this thing |
1114
**Id** | **string** | The id of the thing |
1215
**Name** | **string** | The friendly name of the thing |

docs/ArduinoTimezone.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**Name** | **string** | Name of the time zone. |
88
**Offset** | **int64** | Current UTC DST offset in seconds. |
9+
**Until** | [**time.Time**](time.Time.md) | Date until the offset is valid. | [optional]
910

1011
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1112

docs/DevicesV2OtaApi.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Name | Type | Description | Notes
7171
------------- | ------------- | ------------- | -------------
7272

7373

74+
**async** | **optional.Bool**| If false, wait for the full OTA process, until it gets a result from the device | [default to true]
7475
**expireInMins** | **optional.Int32**| Binary expire time in minutes, default 10 mins | [default to 10]
7576

7677
### Return type

docs/InlineObject.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**Async** | **bool** | If false, wait for the full OTA process, until it gets a result from the device | [optional] [default to true]
78
**ExpireInMins** | **int32** | Binary expire time in minutes, default 10 mins | [optional] [default to 10]
89
**OtaFile** | [***os.File**](*os.File.md) | OTA file |
910

docs/PropertiesValues.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**Input** | **bool** | If true, send property values to device&#39;s input topic. | [optional] [default to false]
78
**Properties** | [**[]PropertiesValue**](propertiesValue.md) | |
89

910
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

model_arduino_thing.go

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

model_arduino_timezone.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

model_inline_object.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

model_properties_values.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)