Skip to content

Commit fca555f

Browse files
github-actions[bot]ArduinoBot
andauthored
Regenerate client from commit 28842c9 of spec repo (#72)
Co-authored-by: ArduinoBot <[email protected]>
1 parent 288fadf commit fca555f

9 files changed

+1064
-17
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": "2024-01-31 14:21:03.657126",
8-
"spec_repo_commit": "138c42b"
7+
"regenerated": "2024-04-16 08:15:00.517940",
8+
"spec_repo_commit": "28842c9"
99
}
1010
}
1111
}

.openapi-generator/FILES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ docs/ArduinoDashboardv2template.md
2424
docs/ArduinoDevicev2.md
2525
docs/ArduinoDevicev2Cert.md
2626
docs/ArduinoDevicev2EventProperties.md
27+
docs/ArduinoDevicev2Otaupload.md
2728
docs/ArduinoDevicev2Pass.md
2829
docs/ArduinoDevicev2SimpleProperties.md
2930
docs/ArduinoDevicev2StatusEvent.md
@@ -79,6 +80,7 @@ docs/DevicesV2TagsApi.md
7980
docs/Devicev2.md
8081
docs/Devicev2Cert.md
8182
docs/Devicev2Otabinaryurl.md
83+
docs/Devicev2Otaurlpyalod.md
8284
docs/Devicev2Pass.md
8385
docs/HistoricDataRequest.md
8486
docs/LoraDevicesV1Api.md
@@ -114,6 +116,7 @@ model_arduino_dashboardv2template.go
114116
model_arduino_devicev2.go
115117
model_arduino_devicev2_cert.go
116118
model_arduino_devicev2_event_properties.go
119+
model_arduino_devicev2_otaupload.go
117120
model_arduino_devicev2_pass.go
118121
model_arduino_devicev2_simple_properties.go
119122
model_arduino_devicev2_status_event.go
@@ -163,6 +166,7 @@ model_dashboardv2.go
163166
model_devicev2.go
164167
model_devicev2_cert.go
165168
model_devicev2_otabinaryurl.go
169+
model_devicev2_otaurlpyalod.go
166170
model_devicev2_pass.go
167171
model_error.go
168172
model_historic_data_request.go

api/openapi.yaml

Lines changed: 142 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,6 +1557,101 @@ paths:
15571557
multipart/form-data:
15581558
schema:
15591559
$ref: '#/components/schemas/devices_v2_ota_upload_request'
1560+
responses:
1561+
"200":
1562+
content:
1563+
application/vnd.arduino.devicev2.otaupload+json:
1564+
schema:
1565+
$ref: '#/components/schemas/ArduinoDevicev2Otaupload'
1566+
application/vnd.goa.error+json:
1567+
schema:
1568+
$ref: '#/components/schemas/ArduinoDevicev2Otaupload'
1569+
description: OK
1570+
"202":
1571+
content:
1572+
application/vnd.arduino.devicev2.otaupload+json:
1573+
schema:
1574+
$ref: '#/components/schemas/ArduinoDevicev2Otaupload'
1575+
application/vnd.goa.error+json:
1576+
schema:
1577+
$ref: '#/components/schemas/ArduinoDevicev2Otaupload'
1578+
description: Accepted
1579+
"400":
1580+
content:
1581+
application/vnd.arduino.devicev2.otaupload+json:
1582+
schema:
1583+
$ref: '#/components/schemas/error'
1584+
application/vnd.goa.error+json:
1585+
schema:
1586+
$ref: '#/components/schemas/error'
1587+
description: Bad Request
1588+
"401":
1589+
description: Unauthorized
1590+
"404":
1591+
content:
1592+
application/vnd.arduino.devicev2.otaupload+json:
1593+
schema:
1594+
$ref: '#/components/schemas/error'
1595+
application/vnd.goa.error+json:
1596+
schema:
1597+
$ref: '#/components/schemas/error'
1598+
description: Not Found
1599+
"409":
1600+
description: Conflict
1601+
"410":
1602+
content:
1603+
application/vnd.arduino.devicev2.otaupload+json:
1604+
schema:
1605+
$ref: '#/components/schemas/error'
1606+
application/vnd.goa.error+json:
1607+
schema:
1608+
$ref: '#/components/schemas/error'
1609+
description: Gone
1610+
"412":
1611+
content:
1612+
application/vnd.arduino.devicev2.otaupload+json:
1613+
schema:
1614+
$ref: '#/components/schemas/error'
1615+
application/vnd.goa.error+json:
1616+
schema:
1617+
$ref: '#/components/schemas/error'
1618+
description: Precondition Failed
1619+
"500":
1620+
content:
1621+
application/vnd.arduino.devicev2.otaupload+json:
1622+
schema:
1623+
$ref: '#/components/schemas/error'
1624+
application/vnd.goa.error+json:
1625+
schema:
1626+
$ref: '#/components/schemas/error'
1627+
description: Internal Server Error
1628+
security:
1629+
- oauth2: []
1630+
summary: upload devices_v2_ota
1631+
tags:
1632+
- devices_v2_ota
1633+
put:
1634+
description: Send a binary url to a device
1635+
operationId: devices_v2_ota#send
1636+
parameters:
1637+
- description: The id of the device
1638+
explode: false
1639+
in: path
1640+
name: id
1641+
required: true
1642+
schema:
1643+
type: string
1644+
style: simple
1645+
requestBody:
1646+
content:
1647+
application/json:
1648+
schema:
1649+
$ref: '#/components/schemas/devicev2.otabinaryurl'
1650+
application/x-www-form-urlencoded:
1651+
schema:
1652+
$ref: '#/components/schemas/devicev2.otabinaryurl'
1653+
required: true
1654+
x-originalParamName: payload
15601655
responses:
15611656
"200":
15621657
description: OK
@@ -1611,12 +1706,13 @@ paths:
16111706
description: Internal Server Error
16121707
security:
16131708
- oauth2: []
1614-
summary: upload devices_v2_ota
1709+
summary: send devices_v2_ota
16151710
tags:
16161711
- devices_v2_ota
1617-
put:
1618-
description: Send a binary url to a device
1619-
operationId: devices_v2_ota#send
1712+
/v2/devices/{id}/ota/url:
1713+
post:
1714+
description: Generate a url for downloading a binary
1715+
operationId: devices_v2_ota#url
16201716
parameters:
16211717
- description: The id of the device
16221718
explode: false
@@ -1630,10 +1726,10 @@ paths:
16301726
content:
16311727
application/json:
16321728
schema:
1633-
$ref: '#/components/schemas/devicev2.otabinaryurl'
1729+
$ref: '#/components/schemas/devicev2.otaurlpyalod'
16341730
application/x-www-form-urlencoded:
16351731
schema:
1636-
$ref: '#/components/schemas/devicev2.otabinaryurl'
1732+
$ref: '#/components/schemas/devicev2.otaurlpyalod'
16371733
required: true
16381734
x-originalParamName: payload
16391735
responses:
@@ -1690,7 +1786,7 @@ paths:
16901786
description: Internal Server Error
16911787
security:
16921788
- oauth2: []
1693-
summary: send devices_v2_ota
1789+
summary: url devices_v2_ota
16941790
tags:
16951791
- devices_v2_ota
16961792
/v2/devices/{id}/pass:
@@ -4052,6 +4148,8 @@ components:
40524148
description: Accepted
40534149
BadRequest:
40544150
description: Bad Request
4151+
Conflict:
4152+
description: Conflict
40554153
NotFound:
40564154
description: Not Found
40574155
NotImplemented:
@@ -4404,6 +4502,27 @@ components:
44044502
title: "Mediatype identifier: application/vnd.arduino.devicev2.event.properties+json;\
44054503
\ view=default"
44064504
type: object
4505+
ArduinoDevicev2Otaupload:
4506+
description: ArduinoDevicev2Otaupload media type (default view)
4507+
properties:
4508+
file_sha:
4509+
description: SHA256 of the uploaded file
4510+
type: string
4511+
ota_id:
4512+
description: OTA request id (only available from OTA version 2 and above)
4513+
type: string
4514+
ota_version:
4515+
description: OTA version
4516+
format: int64
4517+
type: integer
4518+
status:
4519+
description: OTA request status (only available from OTA version 2 and above)
4520+
type: string
4521+
required:
4522+
- ota_version
4523+
title: "Mediatype identifier: application/vnd.arduino.devicev2.otaupload+json;\
4524+
\ view=default"
4525+
type: object
44074526
ArduinoDevicev2Pass:
44084527
description: DeviceCertV2 describes a password associated to a device (default
44094528
view)
@@ -6117,6 +6236,22 @@ components:
61176236
- binary_key
61186237
title: devicev2.otabinaryurl
61196238
type: object
6239+
devicev2.otaurlpyalod:
6240+
properties:
6241+
binary_key:
6242+
description: The object key of the binary
6243+
pattern: "^ota/[a-zA-Z0-9_-]+/[a-zA-Z0-9_-]+.ota$"
6244+
type: string
6245+
sha256:
6246+
description: The sha256 of the binary
6247+
pattern: "^[a-fA-F0-9]{64}$"
6248+
type: string
6249+
user_id:
6250+
description: The id of the user who is requesting the url
6251+
format: uuid
6252+
type: string
6253+
title: devicev2.otaurlpyalod
6254+
type: object
61206255
devicev2.pass:
61216256
properties:
61226257
password:

0 commit comments

Comments
 (0)