From c7f606abff7b4aa4edfe1fc6a433a7cb0c71e287 Mon Sep 17 00:00:00 2001 From: Paige Niedringhaus Date: Thu, 12 Sep 2024 11:10:44 -0400 Subject: [PATCH] chore: regenerate fresh sdk --- src/.openapi-generator/FILES | 96 ++++++++++ src/README.md | 2 +- src/docs/AlertApi.md | 4 +- src/docs/DeviceApi.md | 42 ++++- src/notehub_py/api/alert_api.py | 15 +- src/notehub_py/api/device_api.py | 305 +++++++++++++++++++++++++++++++ 6 files changed, 450 insertions(+), 14 deletions(-) diff --git a/src/.openapi-generator/FILES b/src/.openapi-generator/FILES index 2340727..d32eccb 100644 --- a/src/.openapi-generator/FILES +++ b/src/.openapi-generator/FILES @@ -1,6 +1,7 @@ .github/workflows/python.yml .gitignore .gitlab-ci.yml +.openapi-generator-ignore .travis.yml README.md docs/Alert.md @@ -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 diff --git a/src/README.md b/src/README.md index 9274a8e..e135106 100644 --- a/src/README.md +++ b/src/README.md @@ -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) diff --git a/src/docs/AlertApi.md b/src/docs/AlertApi.md index 686cafc..02524d0 100644 --- a/src/docs/AlertApi.md +++ b/src/docs/AlertApi.md @@ -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) @@ -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 diff --git a/src/docs/DeviceApi.md b/src/docs/DeviceApi.md index dbf72db..378c712 100644 --- a/src/docs/DeviceApi.md +++ b/src/docs/DeviceApi.md @@ -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) @@ -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: @@ -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 @@ -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) @@ -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: @@ -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 diff --git a/src/notehub_py/api/alert_api.py b/src/notehub_py/api/alert_api.py index f97fb4d..b9db5e3 100644 --- a/src/notehub_py/api/alert_api.py +++ b/src/notehub_py/api/alert_api.py @@ -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 @@ -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)], @@ -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 @@ -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)], @@ -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 @@ -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)], @@ -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 @@ -288,6 +288,7 @@ def _get_alerts_serialize( _host = None _collection_formats: Dict[str, str] = { + 'monitorUID': 'multi', } _path_params: Dict[str, str] = {} diff --git a/src/notehub_py/api/device_api.py b/src/notehub_py/api/device_api.py index 7ce2376..196e325 100644 --- a/src/notehub_py/api/device_api.py +++ b/src/notehub_py/api/device_api.py @@ -3970,6 +3970,15 @@ def get_project_devices( 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, + device_uid: Annotated[Optional[List[StrictStr]], Field(description="A Device UID.")] = None, + tag: Annotated[Optional[List[StrictStr]], Field(description="Tag filter")] = None, + serial_number: Annotated[Optional[List[StrictStr]], Field(description="Serial number filter")] = None, + fleet_uid: Optional[StrictStr] = None, + notecard_firmware: Annotated[Optional[List[StrictStr]], Field(description="Firmware version filter")] = None, + location: Annotated[Optional[List[StrictStr]], Field(description="Location filter")] = None, + host_firmware: Annotated[Optional[List[StrictStr]], Field(description="Host firmware filter")] = None, + product_uid: Optional[List[StrictStr]] = None, + sku: Annotated[Optional[List[StrictStr]], Field(description="SKU filter")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3993,6 +4002,24 @@ def get_project_devices( :type page_size: int :param page_num: :type page_num: int + :param device_uid: A Device UID. + :type device_uid: List[str] + :param tag: Tag filter + :type tag: List[str] + :param serial_number: Serial number filter + :type serial_number: List[str] + :param fleet_uid: + :type fleet_uid: str + :param notecard_firmware: Firmware version filter + :type notecard_firmware: List[str] + :param location: Location filter + :type location: List[str] + :param host_firmware: Host firmware filter + :type host_firmware: List[str] + :param product_uid: + :type product_uid: List[str] + :param sku: SKU filter + :type sku: 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 @@ -4019,6 +4046,15 @@ def get_project_devices( project_uid=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, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4045,6 +4081,15 @@ def get_project_devices_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, + device_uid: Annotated[Optional[List[StrictStr]], Field(description="A Device UID.")] = None, + tag: Annotated[Optional[List[StrictStr]], Field(description="Tag filter")] = None, + serial_number: Annotated[Optional[List[StrictStr]], Field(description="Serial number filter")] = None, + fleet_uid: Optional[StrictStr] = None, + notecard_firmware: Annotated[Optional[List[StrictStr]], Field(description="Firmware version filter")] = None, + location: Annotated[Optional[List[StrictStr]], Field(description="Location filter")] = None, + host_firmware: Annotated[Optional[List[StrictStr]], Field(description="Host firmware filter")] = None, + product_uid: Optional[List[StrictStr]] = None, + sku: Annotated[Optional[List[StrictStr]], Field(description="SKU filter")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4068,6 +4113,24 @@ def get_project_devices_with_http_info( :type page_size: int :param page_num: :type page_num: int + :param device_uid: A Device UID. + :type device_uid: List[str] + :param tag: Tag filter + :type tag: List[str] + :param serial_number: Serial number filter + :type serial_number: List[str] + :param fleet_uid: + :type fleet_uid: str + :param notecard_firmware: Firmware version filter + :type notecard_firmware: List[str] + :param location: Location filter + :type location: List[str] + :param host_firmware: Host firmware filter + :type host_firmware: List[str] + :param product_uid: + :type product_uid: List[str] + :param sku: SKU filter + :type sku: 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 @@ -4094,6 +4157,15 @@ def get_project_devices_with_http_info( project_uid=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, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4120,6 +4192,15 @@ def get_project_devices_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, + device_uid: Annotated[Optional[List[StrictStr]], Field(description="A Device UID.")] = None, + tag: Annotated[Optional[List[StrictStr]], Field(description="Tag filter")] = None, + serial_number: Annotated[Optional[List[StrictStr]], Field(description="Serial number filter")] = None, + fleet_uid: Optional[StrictStr] = None, + notecard_firmware: Annotated[Optional[List[StrictStr]], Field(description="Firmware version filter")] = None, + location: Annotated[Optional[List[StrictStr]], Field(description="Location filter")] = None, + host_firmware: Annotated[Optional[List[StrictStr]], Field(description="Host firmware filter")] = None, + product_uid: Optional[List[StrictStr]] = None, + sku: Annotated[Optional[List[StrictStr]], Field(description="SKU filter")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4143,6 +4224,24 @@ def get_project_devices_without_preload_content( :type page_size: int :param page_num: :type page_num: int + :param device_uid: A Device UID. + :type device_uid: List[str] + :param tag: Tag filter + :type tag: List[str] + :param serial_number: Serial number filter + :type serial_number: List[str] + :param fleet_uid: + :type fleet_uid: str + :param notecard_firmware: Firmware version filter + :type notecard_firmware: List[str] + :param location: Location filter + :type location: List[str] + :param host_firmware: Host firmware filter + :type host_firmware: List[str] + :param product_uid: + :type product_uid: List[str] + :param sku: SKU filter + :type sku: 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 @@ -4169,6 +4268,15 @@ def get_project_devices_without_preload_content( project_uid=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, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4190,6 +4298,15 @@ def _get_project_devices_serialize( project_uid, page_size, page_num, + device_uid, + tag, + serial_number, + fleet_uid, + notecard_firmware, + location, + host_firmware, + product_uid, + sku, _request_auth, _content_type, _headers, @@ -4199,6 +4316,14 @@ def _get_project_devices_serialize( _host = None _collection_formats: Dict[str, str] = { + 'deviceUID': 'multi', + 'tag': 'multi', + 'serialNumber': 'multi', + 'notecardFirmware': 'multi', + 'location': 'multi', + 'hostFirmware': 'multi', + 'productUID': 'multi', + 'sku': 'multi', } _path_params: Dict[str, str] = {} @@ -4220,6 +4345,42 @@ def _get_project_devices_serialize( _query_params.append(('pageNum', page_num)) + if device_uid is not None: + + _query_params.append(('deviceUID', device_uid)) + + if tag is not None: + + _query_params.append(('tag', tag)) + + if serial_number is not None: + + _query_params.append(('serialNumber', serial_number)) + + if fleet_uid is not None: + + _query_params.append(('fleetUID', fleet_uid)) + + if notecard_firmware is not None: + + _query_params.append(('notecardFirmware', notecard_firmware)) + + if location is not None: + + _query_params.append(('location', location)) + + if host_firmware is not None: + + _query_params.append(('hostFirmware', host_firmware)) + + if product_uid is not None: + + _query_params.append(('productUID', product_uid)) + + if sku is not None: + + _query_params.append(('sku', sku)) + # process the header parameters # process the form parameters # process the body parameter @@ -4263,6 +4424,14 @@ def get_project_fleet_devices( fleet_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, + device_uid: Annotated[Optional[List[StrictStr]], Field(description="A Device UID.")] = None, + tag: Annotated[Optional[List[StrictStr]], Field(description="Tag filter")] = None, + serial_number: Annotated[Optional[List[StrictStr]], Field(description="Serial number filter")] = None, + notecard_firmware: Annotated[Optional[List[StrictStr]], Field(description="Firmware version filter")] = None, + location: Annotated[Optional[List[StrictStr]], Field(description="Location filter")] = None, + host_firmware: Annotated[Optional[List[StrictStr]], Field(description="Host firmware filter")] = None, + product_uid: Optional[List[StrictStr]] = None, + sku: Annotated[Optional[List[StrictStr]], Field(description="SKU filter")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4288,6 +4457,22 @@ def get_project_fleet_devices( :type page_size: int :param page_num: :type page_num: int + :param device_uid: A Device UID. + :type device_uid: List[str] + :param tag: Tag filter + :type tag: List[str] + :param serial_number: Serial number filter + :type serial_number: List[str] + :param notecard_firmware: Firmware version filter + :type notecard_firmware: List[str] + :param location: Location filter + :type location: List[str] + :param host_firmware: Host firmware filter + :type host_firmware: List[str] + :param product_uid: + :type product_uid: List[str] + :param sku: SKU filter + :type sku: 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 @@ -4315,6 +4500,14 @@ def get_project_fleet_devices( fleet_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, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4342,6 +4535,14 @@ def get_project_fleet_devices_with_http_info( fleet_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, + device_uid: Annotated[Optional[List[StrictStr]], Field(description="A Device UID.")] = None, + tag: Annotated[Optional[List[StrictStr]], Field(description="Tag filter")] = None, + serial_number: Annotated[Optional[List[StrictStr]], Field(description="Serial number filter")] = None, + notecard_firmware: Annotated[Optional[List[StrictStr]], Field(description="Firmware version filter")] = None, + location: Annotated[Optional[List[StrictStr]], Field(description="Location filter")] = None, + host_firmware: Annotated[Optional[List[StrictStr]], Field(description="Host firmware filter")] = None, + product_uid: Optional[List[StrictStr]] = None, + sku: Annotated[Optional[List[StrictStr]], Field(description="SKU filter")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4367,6 +4568,22 @@ def get_project_fleet_devices_with_http_info( :type page_size: int :param page_num: :type page_num: int + :param device_uid: A Device UID. + :type device_uid: List[str] + :param tag: Tag filter + :type tag: List[str] + :param serial_number: Serial number filter + :type serial_number: List[str] + :param notecard_firmware: Firmware version filter + :type notecard_firmware: List[str] + :param location: Location filter + :type location: List[str] + :param host_firmware: Host firmware filter + :type host_firmware: List[str] + :param product_uid: + :type product_uid: List[str] + :param sku: SKU filter + :type sku: 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 @@ -4394,6 +4611,14 @@ def get_project_fleet_devices_with_http_info( fleet_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, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4421,6 +4646,14 @@ def get_project_fleet_devices_without_preload_content( fleet_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, + device_uid: Annotated[Optional[List[StrictStr]], Field(description="A Device UID.")] = None, + tag: Annotated[Optional[List[StrictStr]], Field(description="Tag filter")] = None, + serial_number: Annotated[Optional[List[StrictStr]], Field(description="Serial number filter")] = None, + notecard_firmware: Annotated[Optional[List[StrictStr]], Field(description="Firmware version filter")] = None, + location: Annotated[Optional[List[StrictStr]], Field(description="Location filter")] = None, + host_firmware: Annotated[Optional[List[StrictStr]], Field(description="Host firmware filter")] = None, + product_uid: Optional[List[StrictStr]] = None, + sku: Annotated[Optional[List[StrictStr]], Field(description="SKU filter")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4446,6 +4679,22 @@ def get_project_fleet_devices_without_preload_content( :type page_size: int :param page_num: :type page_num: int + :param device_uid: A Device UID. + :type device_uid: List[str] + :param tag: Tag filter + :type tag: List[str] + :param serial_number: Serial number filter + :type serial_number: List[str] + :param notecard_firmware: Firmware version filter + :type notecard_firmware: List[str] + :param location: Location filter + :type location: List[str] + :param host_firmware: Host firmware filter + :type host_firmware: List[str] + :param product_uid: + :type product_uid: List[str] + :param sku: SKU filter + :type sku: 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 @@ -4473,6 +4722,14 @@ def get_project_fleet_devices_without_preload_content( fleet_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, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4495,6 +4752,14 @@ def _get_project_fleet_devices_serialize( fleet_uid, page_size, page_num, + device_uid, + tag, + serial_number, + notecard_firmware, + location, + host_firmware, + product_uid, + sku, _request_auth, _content_type, _headers, @@ -4504,6 +4769,14 @@ def _get_project_fleet_devices_serialize( _host = None _collection_formats: Dict[str, str] = { + 'deviceUID': 'multi', + 'tag': 'multi', + 'serialNumber': 'multi', + 'notecardFirmware': 'multi', + 'location': 'multi', + 'hostFirmware': 'multi', + 'productUID': 'multi', + 'sku': 'multi', } _path_params: Dict[str, str] = {} @@ -4527,6 +4800,38 @@ def _get_project_fleet_devices_serialize( _query_params.append(('pageNum', page_num)) + if device_uid is not None: + + _query_params.append(('deviceUID', device_uid)) + + if tag is not None: + + _query_params.append(('tag', tag)) + + if serial_number is not None: + + _query_params.append(('serialNumber', serial_number)) + + if notecard_firmware is not None: + + _query_params.append(('notecardFirmware', notecard_firmware)) + + if location is not None: + + _query_params.append(('location', location)) + + if host_firmware is not None: + + _query_params.append(('hostFirmware', host_firmware)) + + if product_uid is not None: + + _query_params.append(('productUID', product_uid)) + + if sku is not None: + + _query_params.append(('sku', sku)) + # process the header parameters # process the form parameters # process the body parameter