Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"packageName": "notehub_py",
"packageUrl": "https://github.com/blues/notehub-py",
"projectName": "notehub-py",
"packageVersion": "6.1.0"
"packageVersion": "6.2.0"
}
82 changes: 81 additions & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ paths:
'/v1/billing-accounts/{billingAccountUID}/balance-history':
get:
operationId: GetBillingAccountBalanceHistory
description: 'Get Billing Account Balance history, only enterprise supported'
description: Get Billing Account Balance history
parameters:
- $ref: '#/components/parameters/billingAccountUIDParam'
- $ref: '#/components/parameters/startDateParam'
Expand Down Expand Up @@ -1607,6 +1607,33 @@ paths:
tags:
- project
'/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}':
delete:
operationId: DeleteFirmware
description: |
Delete a host firmware binary. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
parameters:
- $ref: '#/components/parameters/projectOrProductUIDParam'
- name: firmwareType
in: path
required: true
schema:
type: string
enum:
- host
- name: filename
in: path
required: true
schema:
type: string
responses:
'204':
description: Firmware deleted successfully
default:
$ref: '#/components/responses/ErrorResponse'
security:
- personalAccessToken: []
tags:
- project
get:
operationId: DownloadFirmware
description: Download firmware binary
Expand All @@ -1632,6 +1659,44 @@ paths:
- personalAccessToken: []
tags:
- project
post:
operationId: UpdateFirmware
description: |
Update the metadata of an existing host firmware entry. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
parameters:
- $ref: '#/components/parameters/projectOrProductUIDParam'
- name: firmwareType
in: path
required: true
schema:
type: string
enum:
- host
- name: filename
in: path
required: true
schema:
type: string
requestBody:
description: Firmware metadata fields to update. All fields are optional; only provided fields will be updated.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateHostFirmwareRequest'
responses:
'200':
description: Update successful
content:
application/json:
schema:
$ref: '#/components/schemas/FirmwareInfo'
default:
$ref: '#/components/responses/ErrorResponse'
security:
- personalAccessToken: []
tags:
- project
put:
operationId: UploadFirmware
description: Upload firmware binary
Expand Down Expand Up @@ -5994,6 +6059,21 @@ components:
to:
type: string
additionalProperties: false
UpdateHostFirmwareRequest:
description: |
Request body for updating host firmware metadata. All fields are optional; only provided fields will be updated.
type: object
properties:
info:
description: Arbitrary JSON metadata associated with this firmware entry.
type: object
additionalProperties: true
notes:
description: Notes describing this firmware version.
type: string
version:
description: The firmware version string.
type: string
UploadMetadata:
type: object
properties:
Expand Down
92 changes: 91 additions & 1 deletion openapi_filtered.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ paths:
/v1/billing-accounts/{billingAccountUID}/balance-history:
get:
operationId: GetBillingAccountBalanceHistory
description: Get Billing Account Balance history, only enterprise supported
description: Get Billing Account Balance history
parameters:
- $ref: '#/components/parameters/billingAccountUIDParam'
- $ref: '#/components/parameters/startDateParam'
Expand Down Expand Up @@ -1632,6 +1632,36 @@ paths:
tags:
- project
/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}:
delete:
operationId: DeleteFirmware
description: 'Delete a host firmware binary. The filename must be the full stored
filename including the timestamp suffix (e.g. test$20260324190911.bin) as
returned by the firmware upload or list endpoints.

'
parameters:
- $ref: '#/components/parameters/projectOrProductUIDParam'
- name: firmwareType
in: path
required: true
schema:
type: string
enum:
- host
- name: filename
in: path
required: true
schema:
type: string
responses:
'204':
description: Firmware deleted successfully
default:
$ref: '#/components/responses/ErrorResponse'
security:
- personalAccessToken: []
tags:
- project
get:
operationId: DownloadFirmware
description: Download firmware binary
Expand All @@ -1657,6 +1687,49 @@ paths:
- personalAccessToken: []
tags:
- project
post:
operationId: UpdateFirmware
description: 'Update the metadata of an existing host firmware entry. The filename
must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin)
as returned by the firmware upload or list endpoints.

'
parameters:
- $ref: '#/components/parameters/projectOrProductUIDParam'
- name: firmwareType
in: path
required: true
schema:
type: string
enum:
- host
- name: filename
in: path
required: true
schema:
type: string
requestBody:
description: Firmware metadata fields to update. All fields are optional;
only provided fields will be updated.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateHostFirmwareRequest'
properties: {}
responses:
'200':
description: Update successful
content:
application/json:
schema:
$ref: '#/components/schemas/FirmwareInfo'
default:
$ref: '#/components/responses/ErrorResponse'
security:
- personalAccessToken: []
tags:
- project
put:
operationId: UploadFirmware
description: Upload firmware binary
Expand Down Expand Up @@ -6074,6 +6147,23 @@ components:
to:
type: string
additionalProperties: false
UpdateHostFirmwareRequest:
description: 'Request body for updating host firmware metadata. All fields are
optional; only provided fields will be updated.

'
type: object
properties:
info:
description: Arbitrary JSON metadata associated with this firmware entry.
type: object
additionalProperties: true
notes:
description: Notes describing this firmware version.
type: string
version:
description: The firmware version string.
type: string
UploadMetadata:
type: object
properties:
Expand Down
3 changes: 3 additions & 0 deletions src/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ docs/ThingworxRoute.md
docs/TowerLocation.md
docs/TwilioRoute.md
docs/UpdateFleetRequest.md
docs/UpdateHostFirmwareRequest.md
docs/UploadMetadata.md
docs/UsageApi.md
docs/UsageData.md
Expand Down Expand Up @@ -313,6 +314,7 @@ notehub_py/models/thingworx_route.py
notehub_py/models/tower_location.py
notehub_py/models/twilio_route.py
notehub_py/models/update_fleet_request.py
notehub_py/models/update_host_firmware_request.py
notehub_py/models/upload_metadata.py
notehub_py/models/usage_data.py
notehub_py/models/usage_events_data.py
Expand All @@ -331,4 +333,5 @@ setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_update_host_firmware_request.py
tox.ini
5 changes: 4 additions & 1 deletion src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The OpenAPI definition for the Notehub.io API.
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.2.0
- Package version: 6.1.0
- Package version: 6.2.0
- Generator version: 7.5.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://dev.blues.io/support/](https://dev.blues.io/support/)
Expand Down Expand Up @@ -155,6 +155,7 @@ Class | Method | HTTP request | Description
*ProjectApi* | [**create_product**](docs/ProjectApi.md#create_product) | **POST** /v1/projects/{projectOrProductUID}/products |
*ProjectApi* | [**create_project**](docs/ProjectApi.md#create_project) | **POST** /v1/projects |
*ProjectApi* | [**delete_device_from_fleets**](docs/ProjectApi.md#delete_device_from_fleets) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets |
*ProjectApi* | [**delete_firmware**](docs/ProjectApi.md#delete_firmware) | **DELETE** /v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename} |
*ProjectApi* | [**delete_fleet**](docs/ProjectApi.md#delete_fleet) | **DELETE** /v1/projects/{projectOrProductUID}/fleets/{fleetUID} |
*ProjectApi* | [**delete_fleet_environment_variable**](docs/ProjectApi.md#delete_fleet_environment_variable) | **DELETE** /v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables/{key} |
*ProjectApi* | [**delete_product**](docs/ProjectApi.md#delete_product) | **DELETE** /v1/projects/{projectOrProductUID}/products/{productUID} |
Expand Down Expand Up @@ -186,6 +187,7 @@ Class | Method | HTTP request | Description
*ProjectApi* | [**set_fleet_environment_variables**](docs/ProjectApi.md#set_fleet_environment_variables) | **PUT** /v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables |
*ProjectApi* | [**set_global_event_transformation**](docs/ProjectApi.md#set_global_event_transformation) | **POST** /v1/projects/{projectOrProductUID}/global-transformation |
*ProjectApi* | [**set_project_environment_variables**](docs/ProjectApi.md#set_project_environment_variables) | **PUT** /v1/projects/{projectOrProductUID}/environment_variables |
*ProjectApi* | [**update_firmware**](docs/ProjectApi.md#update_firmware) | **POST** /v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename} |
*ProjectApi* | [**update_fleet**](docs/ProjectApi.md#update_fleet) | **PUT** /v1/projects/{projectOrProductUID}/fleets/{fleetUID} |
*ProjectApi* | [**upload_firmware**](docs/ProjectApi.md#upload_firmware) | **PUT** /v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename} |
*RouteApi* | [**create_route**](docs/RouteApi.md#create_route) | **POST** /v1/projects/{projectOrProductUID}/routes |
Expand Down Expand Up @@ -341,6 +343,7 @@ Class | Method | HTTP request | Description
- [TowerLocation](docs/TowerLocation.md)
- [TwilioRoute](docs/TwilioRoute.md)
- [UpdateFleetRequest](docs/UpdateFleetRequest.md)
- [UpdateHostFirmwareRequest](docs/UpdateHostFirmwareRequest.md)
- [UploadMetadata](docs/UploadMetadata.md)
- [UsageData](docs/UsageData.md)
- [UsageEventsData](docs/UsageEventsData.md)
Expand Down
2 changes: 1 addition & 1 deletion src/docs/BillingAccountApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ with notehub_py.ApiClient(configuration) as api_client:

> GetBillingAccountBalanceHistory200Response get_billing_account_balance_history(billing_account_uid, start_date=start_date, end_date=end_date)

Get Billing Account Balance history, only enterprise supported
Get Billing Account Balance history

### Example

Expand Down
Loading
Loading