Skip to content

Commit

Permalink
Regenerate client from commit 28842c9 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ArduinoBot committed Apr 16, 2024
1 parent 288fadf commit 9edf384
Show file tree
Hide file tree
Showing 9 changed files with 1,064 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"spec_versions": {
"v2": {
"apigentools_version": "1.1.0",
"regenerated": "2024-01-31 14:21:03.657126",
"spec_repo_commit": "138c42b"
"regenerated": "2024-04-16 08:15:00.517940",
"spec_repo_commit": "28842c9"
}
}
}
4 changes: 4 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ docs/ArduinoDashboardv2template.md
docs/ArduinoDevicev2.md
docs/ArduinoDevicev2Cert.md
docs/ArduinoDevicev2EventProperties.md
docs/ArduinoDevicev2Otaupload.md
docs/ArduinoDevicev2Pass.md
docs/ArduinoDevicev2SimpleProperties.md
docs/ArduinoDevicev2StatusEvent.md
Expand Down Expand Up @@ -79,6 +80,7 @@ docs/DevicesV2TagsApi.md
docs/Devicev2.md
docs/Devicev2Cert.md
docs/Devicev2Otabinaryurl.md
docs/Devicev2Otaurlpyalod.md
docs/Devicev2Pass.md
docs/HistoricDataRequest.md
docs/LoraDevicesV1Api.md
Expand Down Expand Up @@ -114,6 +116,7 @@ model_arduino_dashboardv2template.go
model_arduino_devicev2.go
model_arduino_devicev2_cert.go
model_arduino_devicev2_event_properties.go
model_arduino_devicev2_otaupload.go
model_arduino_devicev2_pass.go
model_arduino_devicev2_simple_properties.go
model_arduino_devicev2_status_event.go
Expand Down Expand Up @@ -163,6 +166,7 @@ model_dashboardv2.go
model_devicev2.go
model_devicev2_cert.go
model_devicev2_otabinaryurl.go
model_devicev2_otaurlpyalod.go
model_devicev2_pass.go
model_error.go
model_historic_data_request.go
Expand Down
149 changes: 142 additions & 7 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1557,6 +1557,101 @@ paths:
multipart/form-data:
schema:
$ref: '#/components/schemas/devices_v2_ota_upload_request'
responses:
"200":
content:
application/vnd.arduino.devicev2.otaupload+json:
schema:
$ref: '#/components/schemas/ArduinoDevicev2Otaupload'
application/vnd.goa.error+json:
schema:
$ref: '#/components/schemas/ArduinoDevicev2Otaupload'
description: OK
"202":
content:
application/vnd.arduino.devicev2.otaupload+json:
schema:
$ref: '#/components/schemas/ArduinoDevicev2Otaupload'
application/vnd.goa.error+json:
schema:
$ref: '#/components/schemas/ArduinoDevicev2Otaupload'
description: Accepted
"400":
content:
application/vnd.arduino.devicev2.otaupload+json:
schema:
$ref: '#/components/schemas/error'
application/vnd.goa.error+json:
schema:
$ref: '#/components/schemas/error'
description: Bad Request
"401":
description: Unauthorized
"404":
content:
application/vnd.arduino.devicev2.otaupload+json:
schema:
$ref: '#/components/schemas/error'
application/vnd.goa.error+json:
schema:
$ref: '#/components/schemas/error'
description: Not Found
"409":
description: Conflict
"410":
content:
application/vnd.arduino.devicev2.otaupload+json:
schema:
$ref: '#/components/schemas/error'
application/vnd.goa.error+json:
schema:
$ref: '#/components/schemas/error'
description: Gone
"412":
content:
application/vnd.arduino.devicev2.otaupload+json:
schema:
$ref: '#/components/schemas/error'
application/vnd.goa.error+json:
schema:
$ref: '#/components/schemas/error'
description: Precondition Failed
"500":
content:
application/vnd.arduino.devicev2.otaupload+json:
schema:
$ref: '#/components/schemas/error'
application/vnd.goa.error+json:
schema:
$ref: '#/components/schemas/error'
description: Internal Server Error
security:
- oauth2: []
summary: upload devices_v2_ota
tags:
- devices_v2_ota
put:
description: Send a binary url to a device
operationId: devices_v2_ota#send
parameters:
- description: The id of the device
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/devicev2.otabinaryurl'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/devicev2.otabinaryurl'
required: true
x-originalParamName: payload
responses:
"200":
description: OK
Expand Down Expand Up @@ -1611,12 +1706,13 @@ paths:
description: Internal Server Error
security:
- oauth2: []
summary: upload devices_v2_ota
summary: send devices_v2_ota
tags:
- devices_v2_ota
put:
description: Send a binary url to a device
operationId: devices_v2_ota#send
/v2/devices/{id}/ota/url:
post:
description: Generate a url for downloading a binary
operationId: devices_v2_ota#url
parameters:
- description: The id of the device
explode: false
Expand All @@ -1630,10 +1726,10 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/devicev2.otabinaryurl'
$ref: '#/components/schemas/devicev2.otaurlpyalod'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/devicev2.otabinaryurl'
$ref: '#/components/schemas/devicev2.otaurlpyalod'
required: true
x-originalParamName: payload
responses:
Expand Down Expand Up @@ -1690,7 +1786,7 @@ paths:
description: Internal Server Error
security:
- oauth2: []
summary: send devices_v2_ota
summary: url devices_v2_ota
tags:
- devices_v2_ota
/v2/devices/{id}/pass:
Expand Down Expand Up @@ -4052,6 +4148,8 @@ components:
description: Accepted
BadRequest:
description: Bad Request
Conflict:
description: Conflict
NotFound:
description: Not Found
NotImplemented:
Expand Down Expand Up @@ -4404,6 +4502,27 @@ components:
title: "Mediatype identifier: application/vnd.arduino.devicev2.event.properties+json;\
\ view=default"
type: object
ArduinoDevicev2Otaupload:
description: ArduinoDevicev2Otaupload media type (default view)
properties:
file_sha:
description: SHA256 of the uploaded file
type: string
ota_id:
description: OTA request id (only available from OTA version 2 and above)
type: string
ota_version:
description: OTA version
format: int64
type: integer
status:
description: OTA request status (only available from OTA version 2 and above)
type: string
required:
- ota_version
title: "Mediatype identifier: application/vnd.arduino.devicev2.otaupload+json;\
\ view=default"
type: object
ArduinoDevicev2Pass:
description: DeviceCertV2 describes a password associated to a device (default
view)
Expand Down Expand Up @@ -6117,6 +6236,22 @@ components:
- binary_key
title: devicev2.otabinaryurl
type: object
devicev2.otaurlpyalod:
properties:
binary_key:
description: The object key of the binary
pattern: "^ota/[a-zA-Z0-9_-]+/[a-zA-Z0-9_-]+.ota$"
type: string
sha256:
description: The sha256 of the binary
pattern: "^[a-fA-F0-9]{64}$"
type: string
user_id:
description: The id of the user who is requesting the url
format: uuid
type: string
title: devicev2.otaurlpyalod
type: object
devicev2.pass:
properties:
password:
Expand Down
Loading

0 comments on commit 9edf384

Please sign in to comment.