diff --git a/config.json b/config.json index 07b31ef..dfd50e8 100644 --- a/config.json +++ b/config.json @@ -2,5 +2,5 @@ "packageName": "notehub_py", "packageUrl": "https://github.com/blues/notehub-py", "projectName": "notehub-py", - "packageVersion": "1.0.1" + "packageVersion": "1.0.2" } \ No newline at end of file diff --git a/openapi.yaml b/openapi.yaml index 32549c7..b65aa9d 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -730,6 +730,15 @@ paths: - $ref: "#/components/parameters/projectUIDParam" - $ref: "#/components/parameters/pageSizeParam" - $ref: "#/components/parameters/pageNumParam" + - $ref: "#/components/parameters/deviceUIDParamQuery" + - $ref: "#/components/parameters/tagParam" + - $ref: "#/components/parameters/serialNumberParam" + - $ref: "#/components/parameters/fleetUIDQueryParam" + - $ref: "#/components/parameters/notecardFirmwareParam" + - $ref: "#/components/parameters/locationParam" + - $ref: "#/components/parameters/hostFirmwareParam" + - $ref: "#/components/parameters/productUIDQueryParam" + - $ref: "#/components/parameters/skuParam" responses: "200": description: Successful operation @@ -799,6 +808,14 @@ paths: - $ref: "#/components/parameters/fleetUIDParam" - $ref: "#/components/parameters/pageSizeParam" - $ref: "#/components/parameters/pageNumParam" + - $ref: "#/components/parameters/deviceUIDParamQuery" + - $ref: "#/components/parameters/tagParam" + - $ref: "#/components/parameters/serialNumberParam" + - $ref: "#/components/parameters/notecardFirmwareParam" + - $ref: "#/components/parameters/locationParam" + - $ref: "#/components/parameters/hostFirmwareParam" + - $ref: "#/components/parameters/productUIDQueryParam" + - $ref: "#/components/parameters/skuParam" responses: "200": description: Successful operation @@ -2476,8 +2493,12 @@ components: name: productUID in: query required: false + style: form + explode: true schema: - type: string + type: array + items: + type: string productQueryParam: name: product @@ -2490,8 +2511,86 @@ components: name: monitorUID in: query required: false + style: form + explode: true schema: - type: string + type: array + items: + type: string + + tagParam: + name: tag + in: query + description: Tag filter + required: false + style: form + explode: true + schema: + type: array + items: + type: string + + serialNumberParam: + name: serialNumber + in: query + description: Serial number filter + required: false + style: form + explode: true + schema: + type: array + items: + type: string + + notecardFirmwareParam: + name: notecardFirmware + in: query + description: Firmware version filter + required: false + style: form + explode: true + schema: + type: array + items: + type: string + + locationParam: + name: location + in: query + description: Location filter + required: false + style: form + explode: true + schema: + type: array + items: + type: string + + hostFirmwareParam: + name: hostFirmware + in: query + description: Host firmware filter + required: false + style: form + explode: true + schema: + type: array + items: + type: string + + skuParam: + name: sku + in: query + description: SKU filter + required: false + style: form + explode: true + schema: + type: array + items: + type: string + + responses: ErrorResponse: diff --git a/src/README.md b/src/README.md index 9274a8e..eaf671f 100644 --- a/src/README.md +++ b/src/README.md @@ -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.1.0 -- Package version: 1.0.1 +- Package version: 1.0.2 - 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/) @@ -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/__init__.py b/src/notehub_py/__init__.py index 98248ec..286daa2 100644 --- a/src/notehub_py/__init__.py +++ b/src/notehub_py/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "1.0.1" +__version__ = "1.0.2" # import apis into sdk package from notehub_py.api.alert_api import AlertApi 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 diff --git a/src/notehub_py/api_client.py b/src/notehub_py/api_client.py index f0067ec..163ac05 100644 --- a/src/notehub_py/api_client.py +++ b/src/notehub_py/api_client.py @@ -89,7 +89,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.0.1/python' + self.user_agent = 'OpenAPI-Generator/1.0.2/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/src/notehub_py/configuration.py b/src/notehub_py/configuration.py index e193153..4d55370 100644 --- a/src/notehub_py/configuration.py +++ b/src/notehub_py/configuration.py @@ -409,7 +409,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.1.0\n"\ - "SDK Package Version: 1.0.1".\ + "SDK Package Version: 1.0.2".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/src/pyproject.toml b/src/pyproject.toml index 020b518..1bb3587 100644 --- a/src/pyproject.toml +++ b/src/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "notehub_py" -version = "1.0.1" +version = "1.0.2" description = "Notehub API" authors = ["Blues Engineering "] license = "MIT" diff --git a/src/setup.py b/src/setup.py index 84f7ff8..79b688f 100644 --- a/src/setup.py +++ b/src/setup.py @@ -25,7 +25,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "notehub-py" -VERSION = "1.0.1" +VERSION = "1.0.2" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0",