Skip to content

Commit

Permalink
fix(openapi): fixed and improved documentation of DevicePackageDownlo…
Browse files Browse the repository at this point in the history
…adRequest

Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
  • Loading branch information
Coduz committed Dec 22, 2023
1 parent 4ae9b92 commit 90b73c1
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ paths:
uri: https://download.eclipse.org/kura/releases/4.1.0/org.eclipse.kura.demo.heater_1.0.500.dp
name: heater
version: 1.0.500
install: true
reboot: false
complete:
summary: Complete
description: A request with all available options used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,36 @@ paths: {}

components:
schemas:
bundleInfo:
type: object
properties:
name:
type: string
description: The bundle name
version:
type: string
description: the bundle version
devicePackage:
type: object
description: A Device Package
properties:
name:
type: string
description: The name of the package
version:
type: string
description: The version of the package
bundleInfos:
type: object
description: The bundles of this package
properties:
bundleInfo:
type: array
items:
$ref: '#/components/schemas/bundleInfo'
installDate:
type: string
description: The installation date of the package
format: 'date-time'
example:
name: org.eclipse.kura.demo.heater
Expand Down Expand Up @@ -61,39 +74,59 @@ components:
properties:
uri:
type: string
description: The URI to download the resource
name:
type: string
description: The name of the downloaded package
version:
type: string
description: The version of the downloaded package
username:
type: string
description: The username to use in the HTTP basic authentication when accessing the URI resource
password:
type: string
description: The password to use in the HTTP basic authentication when accessing the URI resource
fileHash:
type: string
description: The MD5 has to check resource integrity after download
fileType:
type: string
description: The file type of the download (to be fixed when fixing the type of this property)
install:
type: boolean
description: Whether to install or not the package after download
reboot:
type: boolean
description: Whether to reboot the device after installation of the package
rebootDelay:
type: integer
description: The delay in milliseconds to delay the reboot after installation
advancedOptions:
type: object
properties:
restart:
type: boolean
description: Whether or not to resume the partial download of the URI resource. The resource is identified by name and version provided
blockSize:
type: integer
description: The block size in kBi to use while downloading the URI resource
blockDelay:
type: integer
description: The delay in ms to delay each block download of the URI resource
blockTimeout:
type: integer
description: The delay timeout to download each block of the URI resource
notifyBlockSize:
type: integer
description: The amount of kBi to download before sending a new Operation Notification to the platform
installVerifyURI:
type: string
description: The URI to download the script that can verify that the package installation has successfully completed.
required:
- uri
- name
- version
example:
uri: https://download.eclipse.org/kura/releases/4.1.0/org.eclipse.kura.demo.heater_1.0.500.dp
name: heater
Expand All @@ -111,11 +144,4 @@ components:
blockDelay: 0
blockTimeout: 5000
notifyBlockSize: 256
installVerifyURI: https://download.eclipse.org/kura/releases/4.1.0/org.eclipse.kura.demo.heater_1.0.500.verifier.sh
bundleInfo:
type: object
properties:
name:
type: string
version:
type: string
installVerifyURI: https://download.eclipse.org/kura/releases/4.1.0/org.eclipse.kura.demo.heater_1.0.500.verifier.sh

0 comments on commit 90b73c1

Please sign in to comment.