Skip to content

Commit

Permalink
chore: regenerate fresh sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
paigen11 committed Sep 12, 2024
1 parent 44c8490 commit c7f606a
Show file tree
Hide file tree
Showing 6 changed files with 450 additions and 14 deletions.
96 changes: 96 additions & 0 deletions src/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.github/workflows/python.yml
.gitignore
.gitlab-ci.yml
.openapi-generator-ignore
.travis.yml
README.md
docs/Alert.md
Expand Down Expand Up @@ -209,4 +210,99 @@ setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_alert.py
test/test_alert_api.py
test/test_alert_data_inner.py
test/test_alert_notifications_inner.py
test/test_authorization_api.py
test/test_aws.py
test/test_azure.py
test/test_billing_account.py
test/test_billing_account_api.py
test/test_billing_account_role.py
test/test_body.py
test/test_clone_project_request.py
test/test_contact.py
test/test_create_fleet_request.py
test/test_create_monitor.py
test/test_create_product_request.py
test/test_create_project_request.py
test/test_delete_device_fleets_request.py
test/test_device.py
test/test_device_api.py
test/test_device_session.py
test/test_device_tower_info.py
test/test_device_usage.py
test/test_dfu_env.py
test/test_dfu_state.py
test/test_email_notification.py
test/test_environment_variables.py
test/test_error.py
test/test_event.py
test/test_event_api.py
test/test_firmware_info.py
test/test_firmware_status.py
test/test_fleet.py
test/test_get_alerts200_response.py
test/test_get_billing_accounts200_response.py
test/test_get_device_environment_variables200_response.py
test/test_get_device_health_log200_response.py
test/test_get_device_health_log200_response_health_log_inner.py
test/test_get_device_latest200_response.py
test/test_get_device_public_key200_response.py
test/test_get_device_sessions200_response.py
test/test_get_project_device_public_keys200_response.py
test/test_get_project_device_public_keys200_response_device_public_keys_inner.py
test/test_get_project_devices200_response.py
test/test_get_project_events200_response.py
test/test_get_project_events_by_cursor200_response.py
test/test_get_project_fleets200_response.py
test/test_get_project_members200_response.py
test/test_get_project_products200_response.py
test/test_get_projects200_response.py
test/test_get_route_logs_by_route200_response_inner.py
test/test_google.py
test/test_handle_note_changes200_response.py
test/test_handle_note_get200_response.py
test/test_handle_note_signal200_response.py
test/test_handle_notefile_changes200_response.py
test/test_handle_notefile_changes_pending200_response.py
test/test_handle_notefile_delete_request.py
test/test_http.py
test/test_http_filter.py
test/test_http_transform.py
test/test_location.py
test/test_login200_response.py
test/test_login_request.py
test/test_monitor.py
test/test_monitor_alert_routes_inner.py
test/test_monitor_api.py
test/test_mqtt.py
test/test_note.py
test/test_ota_status.py
test/test_ota_status_list.py
test/test_ota_update_request.py
test/test_ota_update_status.py
test/test_post_provision_project_device_request.py
test/test_product.py
test/test_project.py
test/test_project_api.py
test/test_project_member.py
test/test_proxy.py
test/test_put_device_fleets_request.py
test/test_radresponder.py
test/test_role.py
test/test_route.py
test/test_route_api.py
test/test_route_schema.py
test/test_slack.py
test/test_slack_bearer_notification.py
test/test_slack_web_hook_notification.py
test/test_snowflake.py
test/test_snowflake_transform.py
test/test_thingworx.py
test/test_tower_location.py
test/test_twilio.py
test/test_update_fleet_request.py
test/test_user_db_route.py
tox.ini
2 changes: 1 addition & 1 deletion src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ with notehub_py.ApiClient(configuration) as api_client:
project_uid = 'app:2606f411-dea6-44a0-9743-1130f57d77d8' # str |
page_size = 50 # int | (optional) (default to 50)
page_num = 1 # int | (optional) (default to 1)
monitor_uid = 'monitor_uid_example' # str | (optional)
monitor_uid = ['monitor_uid_example'] # List[str] | (optional)

try:
api_response = api_instance.get_alerts(project_uid, page_size=page_size, page_num=page_num, monitor_uid=monitor_uid)
Expand Down
4 changes: 2 additions & 2 deletions src/docs/AlertApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ with notehub_py.ApiClient(configuration) as api_client:
project_uid = 'app:2606f411-dea6-44a0-9743-1130f57d77d8' # str |
page_size = 50 # int | (optional) (default to 50)
page_num = 1 # int | (optional) (default to 1)
monitor_uid = 'monitor_uid_example' # str | (optional)
monitor_uid = ['monitor_uid_example'] # List[str] | (optional)

try:
api_response = api_instance.get_alerts(project_uid, page_size=page_size, page_num=page_num, monitor_uid=monitor_uid)
Expand All @@ -68,7 +68,7 @@ Name | Type | Description | Notes
**project_uid** | **str**| |
**page_size** | **int**| | [optional] [default to 50]
**page_num** | **int**| | [optional] [default to 1]
**monitor_uid** | **str**| | [optional]
**monitor_uid** | [**List[str]**](str.md)| | [optional]

### Return type

Expand Down
42 changes: 38 additions & 4 deletions src/docs/DeviceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_project_devices**
> GetProjectDevices200Response get_project_devices(project_uid, page_size=page_size, page_num=page_num)
> GetProjectDevices200Response get_project_devices(project_uid, page_size=page_size, page_num=page_num, device_uid=device_uid, tag=tag, serial_number=serial_number, fleet_uid=fleet_uid, notecard_firmware=notecard_firmware, location=location, host_firmware=host_firmware, product_uid=product_uid, sku=sku)


Expand Down Expand Up @@ -1205,9 +1205,18 @@ with notehub_py.ApiClient(configuration) as api_client:
project_uid = 'app:2606f411-dea6-44a0-9743-1130f57d77d8' # str |
page_size = 50 # int | (optional) (default to 50)
page_num = 1 # int | (optional) (default to 1)
device_uid = ['device_uid_example'] # List[str] | A Device UID. (optional)
tag = ['tag_example'] # List[str] | Tag filter (optional)
serial_number = ['serial_number_example'] # List[str] | Serial number filter (optional)
fleet_uid = 'fleet_uid_example' # str | (optional)
notecard_firmware = ['notecard_firmware_example'] # List[str] | Firmware version filter (optional)
location = ['location_example'] # List[str] | Location filter (optional)
host_firmware = ['host_firmware_example'] # List[str] | Host firmware filter (optional)
product_uid = ['product_uid_example'] # List[str] | (optional)
sku = ['sku_example'] # List[str] | SKU filter (optional)

try:
api_response = api_instance.get_project_devices(project_uid, page_size=page_size, page_num=page_num)
api_response = api_instance.get_project_devices(project_uid, page_size=page_size, page_num=page_num, device_uid=device_uid, tag=tag, serial_number=serial_number, fleet_uid=fleet_uid, notecard_firmware=notecard_firmware, location=location, host_firmware=host_firmware, product_uid=product_uid, sku=sku)
print("The response of DeviceApi->get_project_devices:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -1224,6 +1233,15 @@ Name | Type | Description | Notes
**project_uid** | **str**| |
**page_size** | **int**| | [optional] [default to 50]
**page_num** | **int**| | [optional] [default to 1]
**device_uid** | [**List[str]**](str.md)| A Device UID. | [optional]
**tag** | [**List[str]**](str.md)| Tag filter | [optional]
**serial_number** | [**List[str]**](str.md)| Serial number filter | [optional]
**fleet_uid** | **str**| | [optional]
**notecard_firmware** | [**List[str]**](str.md)| Firmware version filter | [optional]
**location** | [**List[str]**](str.md)| Location filter | [optional]
**host_firmware** | [**List[str]**](str.md)| Host firmware filter | [optional]
**product_uid** | [**List[str]**](str.md)| | [optional]
**sku** | [**List[str]**](str.md)| SKU filter | [optional]

### Return type

Expand All @@ -1248,7 +1266,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_project_fleet_devices**
> GetProjectDevices200Response get_project_fleet_devices(project_uid, fleet_uid, page_size=page_size, page_num=page_num)
> GetProjectDevices200Response get_project_fleet_devices(project_uid, fleet_uid, page_size=page_size, page_num=page_num, device_uid=device_uid, tag=tag, serial_number=serial_number, notecard_firmware=notecard_firmware, location=location, host_firmware=host_firmware, product_uid=product_uid, sku=sku)


Expand Down Expand Up @@ -1289,9 +1307,17 @@ with notehub_py.ApiClient(configuration) as api_client:
fleet_uid = 'fleet_uid_example' # str |
page_size = 50 # int | (optional) (default to 50)
page_num = 1 # int | (optional) (default to 1)
device_uid = ['device_uid_example'] # List[str] | A Device UID. (optional)
tag = ['tag_example'] # List[str] | Tag filter (optional)
serial_number = ['serial_number_example'] # List[str] | Serial number filter (optional)
notecard_firmware = ['notecard_firmware_example'] # List[str] | Firmware version filter (optional)
location = ['location_example'] # List[str] | Location filter (optional)
host_firmware = ['host_firmware_example'] # List[str] | Host firmware filter (optional)
product_uid = ['product_uid_example'] # List[str] | (optional)
sku = ['sku_example'] # List[str] | SKU filter (optional)

try:
api_response = api_instance.get_project_fleet_devices(project_uid, fleet_uid, page_size=page_size, page_num=page_num)
api_response = api_instance.get_project_fleet_devices(project_uid, fleet_uid, page_size=page_size, page_num=page_num, device_uid=device_uid, tag=tag, serial_number=serial_number, notecard_firmware=notecard_firmware, location=location, host_firmware=host_firmware, product_uid=product_uid, sku=sku)
print("The response of DeviceApi->get_project_fleet_devices:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -1309,6 +1335,14 @@ Name | Type | Description | Notes
**fleet_uid** | **str**| |
**page_size** | **int**| | [optional] [default to 50]
**page_num** | **int**| | [optional] [default to 1]
**device_uid** | [**List[str]**](str.md)| A Device UID. | [optional]
**tag** | [**List[str]**](str.md)| Tag filter | [optional]
**serial_number** | [**List[str]**](str.md)| Serial number filter | [optional]
**notecard_firmware** | [**List[str]**](str.md)| Firmware version filter | [optional]
**location** | [**List[str]**](str.md)| Location filter | [optional]
**host_firmware** | [**List[str]**](str.md)| Host firmware filter | [optional]
**product_uid** | [**List[str]**](str.md)| | [optional]
**sku** | [**List[str]**](str.md)| SKU filter | [optional]

### Return type

Expand Down
15 changes: 8 additions & 7 deletions src/notehub_py/api/alert_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from typing_extensions import Annotated

from pydantic import Field, StrictStr
from typing import Optional
from typing import List, Optional
from typing_extensions import Annotated
from notehub_py.models.get_alerts200_response import GetAlerts200Response

Expand Down Expand Up @@ -46,7 +46,7 @@ def get_alerts(
project_uid: StrictStr,
page_size: Optional[Annotated[int, Field(le=10000, strict=True, ge=1)]] = None,
page_num: Optional[Annotated[int, Field(strict=True, ge=1)]] = None,
monitor_uid: Optional[StrictStr] = None,
monitor_uid: Optional[List[StrictStr]] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -71,7 +71,7 @@ def get_alerts(
:param page_num:
:type page_num: int
:param monitor_uid:
:type monitor_uid: str
:type monitor_uid: List[str]
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand Down Expand Up @@ -125,7 +125,7 @@ def get_alerts_with_http_info(
project_uid: StrictStr,
page_size: Optional[Annotated[int, Field(le=10000, strict=True, ge=1)]] = None,
page_num: Optional[Annotated[int, Field(strict=True, ge=1)]] = None,
monitor_uid: Optional[StrictStr] = None,
monitor_uid: Optional[List[StrictStr]] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -150,7 +150,7 @@ def get_alerts_with_http_info(
:param page_num:
:type page_num: int
:param monitor_uid:
:type monitor_uid: str
:type monitor_uid: List[str]
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand Down Expand Up @@ -204,7 +204,7 @@ def get_alerts_without_preload_content(
project_uid: StrictStr,
page_size: Optional[Annotated[int, Field(le=10000, strict=True, ge=1)]] = None,
page_num: Optional[Annotated[int, Field(strict=True, ge=1)]] = None,
monitor_uid: Optional[StrictStr] = None,
monitor_uid: Optional[List[StrictStr]] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -229,7 +229,7 @@ def get_alerts_without_preload_content(
:param page_num:
:type page_num: int
:param monitor_uid:
:type monitor_uid: str
:type monitor_uid: List[str]
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand Down Expand Up @@ -288,6 +288,7 @@ def _get_alerts_serialize(
_host = None

_collection_formats: Dict[str, str] = {
'monitorUID': 'multi',
}

_path_params: Dict[str, str] = {}
Expand Down
Loading

0 comments on commit c7f606a

Please sign in to comment.