From 12a70cd254faac451b2a91d10f8579f7a600a00a Mon Sep 17 00:00:00 2001 From: TJ VanToll Date: Fri, 13 Feb 2026 08:44:59 -0500 Subject: [PATCH 1/2] fix: regen 6.0 properly --- src/README.md | 4 +- src/docs/DeviceApi.md | 208 ++----------- src/notehub_py/__init__.py | 2 +- src/notehub_py/api/device_api.py | 508 ------------------------------- src/notehub_py/api_client.py | 2 +- src/notehub_py/configuration.py | 2 +- src/pyproject.toml | 2 +- src/setup.py | 2 +- 8 files changed, 36 insertions(+), 694 deletions(-) diff --git a/src/README.md b/src/README.md index 3ef5fbf..4bc5ceb 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.2.0 -- Package version: 5.0.0 +- Package version: 6.0.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/) @@ -116,9 +116,7 @@ Class | Method | HTTP request | Description *DeviceApi* | [**delete_note**](docs/DeviceApi.md#delete_note) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} | *DeviceApi* | [**delete_notefiles**](docs/DeviceApi.md#delete_notefiles) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files | *DeviceApi* | [**disable_device**](docs/DeviceApi.md#disable_device) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable | -*DeviceApi* | [**disable_device_connectivity_assurance**](docs/DeviceApi.md#disable_device_connectivity_assurance) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance | *DeviceApi* | [**enable_device**](docs/DeviceApi.md#enable_device) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable | -*DeviceApi* | [**enable_device_connectivity_assurance**](docs/DeviceApi.md#enable_device_connectivity_assurance) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance | *DeviceApi* | [**get_db_note**](docs/DeviceApi.md#get_db_note) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} | *DeviceApi* | [**get_device**](docs/DeviceApi.md#get_device) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID} | *DeviceApi* | [**get_device_environment_hierarchy**](docs/DeviceApi.md#get_device_environment_hierarchy) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy | Get environment variable hierarchy for a device diff --git a/src/docs/DeviceApi.md b/src/docs/DeviceApi.md index fe3eaf3..45613e0 100644 --- a/src/docs/DeviceApi.md +++ b/src/docs/DeviceApi.md @@ -2,38 +2,36 @@ All URIs are relative to *https://api.notefile.net* -| Method | HTTP request | Description | -| --------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ----------------------------------------------- | -| [**add_db_note**](DeviceApi.md#add_db_note) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} | -| [**add_qi_note**](DeviceApi.md#add_qi_note) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID} | -| [**delete_device**](DeviceApi.md#delete_device) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID} | -| [**delete_device_environment_variable**](DeviceApi.md#delete_device_environment_variable) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key} | -| [**delete_note**](DeviceApi.md#delete_note) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} | -| [**delete_notefiles**](DeviceApi.md#delete_notefiles) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files | -| [**disable_device**](DeviceApi.md#disable_device) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable | -| [**disable_device_connectivity_assurance**](DeviceApi.md#disable_device_connectivity_assurance) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance | -| [**enable_device**](DeviceApi.md#enable_device) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable | -| [**enable_device_connectivity_assurance**](DeviceApi.md#enable_device_connectivity_assurance) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance | -| [**get_db_note**](DeviceApi.md#get_db_note) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} | -| [**get_device**](DeviceApi.md#get_device) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID} | -| [**get_device_environment_hierarchy**](DeviceApi.md#get_device_environment_hierarchy) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy | Get environment variable hierarchy for a device | -| [**get_device_environment_variables**](DeviceApi.md#get_device_environment_variables) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables | -| [**get_device_environment_variables_by_pin**](DeviceApi.md#get_device_environment_variables_by_pin) | **GET** /v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin | -| [**get_device_health_log**](DeviceApi.md#get_device_health_log) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log | -| [**get_device_latest_events**](DeviceApi.md#get_device_latest_events) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest | -| [**get_device_plans**](DeviceApi.md#get_device_plans) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans | -| [**get_device_public_key**](DeviceApi.md#get_device_public_key) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key | -| [**get_device_public_keys**](DeviceApi.md#get_device_public_keys) | **GET** /v1/projects/{projectOrProductUID}/devices/public-keys | -| [**get_device_sessions**](DeviceApi.md#get_device_sessions) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions | -| [**get_devices**](DeviceApi.md#get_devices) | **GET** /v1/projects/{projectOrProductUID}/devices | -| [**get_fleet_devices**](DeviceApi.md#get_fleet_devices) | **GET** /v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices | -| [**get_notefile**](DeviceApi.md#get_notefile) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID} | -| [**list_notefiles**](DeviceApi.md#list_notefiles) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files | -| [**provision_device**](DeviceApi.md#provision_device) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision | -| [**set_device_environment_variables**](DeviceApi.md#set_device_environment_variables) | **PUT** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables | -| [**set_device_environment_variables_by_pin**](DeviceApi.md#set_device_environment_variables_by_pin) | **PUT** /v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin | -| [**signal_device**](DeviceApi.md#signal_device) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal | -| [**update_db_note**](DeviceApi.md#update_db_note) | **PUT** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} | +| Method | HTTP request | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | ----------------------------------------------- | +| [**add_db_note**](DeviceApi.md#add_db_note) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} | +| [**add_qi_note**](DeviceApi.md#add_qi_note) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID} | +| [**delete_device**](DeviceApi.md#delete_device) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID} | +| [**delete_device_environment_variable**](DeviceApi.md#delete_device_environment_variable) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key} | +| [**delete_note**](DeviceApi.md#delete_note) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} | +| [**delete_notefiles**](DeviceApi.md#delete_notefiles) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files | +| [**disable_device**](DeviceApi.md#disable_device) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable | +| [**enable_device**](DeviceApi.md#enable_device) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable | +| [**get_db_note**](DeviceApi.md#get_db_note) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} | +| [**get_device**](DeviceApi.md#get_device) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID} | +| [**get_device_environment_hierarchy**](DeviceApi.md#get_device_environment_hierarchy) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy | Get environment variable hierarchy for a device | +| [**get_device_environment_variables**](DeviceApi.md#get_device_environment_variables) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables | +| [**get_device_environment_variables_by_pin**](DeviceApi.md#get_device_environment_variables_by_pin) | **GET** /v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin | +| [**get_device_health_log**](DeviceApi.md#get_device_health_log) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log | +| [**get_device_latest_events**](DeviceApi.md#get_device_latest_events) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest | +| [**get_device_plans**](DeviceApi.md#get_device_plans) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans | +| [**get_device_public_key**](DeviceApi.md#get_device_public_key) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key | +| [**get_device_public_keys**](DeviceApi.md#get_device_public_keys) | **GET** /v1/projects/{projectOrProductUID}/devices/public-keys | +| [**get_device_sessions**](DeviceApi.md#get_device_sessions) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions | +| [**get_devices**](DeviceApi.md#get_devices) | **GET** /v1/projects/{projectOrProductUID}/devices | +| [**get_fleet_devices**](DeviceApi.md#get_fleet_devices) | **GET** /v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices | +| [**get_notefile**](DeviceApi.md#get_notefile) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID} | +| [**list_notefiles**](DeviceApi.md#list_notefiles) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files | +| [**provision_device**](DeviceApi.md#provision_device) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision | +| [**set_device_environment_variables**](DeviceApi.md#set_device_environment_variables) | **PUT** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables | +| [**set_device_environment_variables_by_pin**](DeviceApi.md#set_device_environment_variables_by_pin) | **PUT** /v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin | +| [**signal_device**](DeviceApi.md#signal_device) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal | +| [**update_db_note**](DeviceApi.md#update_db_note) | **PUT** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} | # **add_db_note** @@ -570,79 +568,6 @@ void (empty response body) [[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) -# **disable_device_connectivity_assurance** - -> disable_device_connectivity_assurance(project_or_product_uid, device_uid) - -Disable Connectivity Assurance - -### Example - -- Bearer Authentication (personalAccessToken): - -```python -import notehub_py -from notehub_py.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.notefile.net -# See configuration.py for a list of all supported configuration parameters. -configuration = notehub_py.Configuration( - host = "https://api.notefile.net" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: personalAccessToken -configuration = notehub_py.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with notehub_py.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = notehub_py.DeviceApi(api_client) - project_or_product_uid = 'app:2606f411-dea6-44a0-9743-1130f57d77d8' # str | - device_uid = 'dev:000000000000000' # str | - - try: - api_instance.disable_device_connectivity_assurance(project_or_product_uid, device_uid) - except Exception as e: - print("Exception when calling DeviceApi->disable_device_connectivity_assurance: %s\n" % e) -``` - -### Parameters - -| Name | Type | Description | Notes | -| -------------------------- | ------- | ----------- | ----- | -| **project_or_product_uid** | **str** | | -| **device_uid** | **str** | | - -### Return type - -void (empty response body) - -### Authorization - -[personalAccessToken](../README.md#personalAccessToken) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------------------------------------ | ---------------- | -| **200** | Successful operation | - | -| **0** | The response body in case of an API error. | - | - -[[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) - # **enable_device** > enable_device(project_or_product_uid, device_uid) @@ -716,79 +641,6 @@ void (empty response body) [[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) -# **enable_device_connectivity_assurance** - -> enable_device_connectivity_assurance(project_or_product_uid, device_uid) - -Enable Connectivity Assurance - -### Example - -- Bearer Authentication (personalAccessToken): - -```python -import notehub_py -from notehub_py.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.notefile.net -# See configuration.py for a list of all supported configuration parameters. -configuration = notehub_py.Configuration( - host = "https://api.notefile.net" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: personalAccessToken -configuration = notehub_py.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with notehub_py.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = notehub_py.DeviceApi(api_client) - project_or_product_uid = 'app:2606f411-dea6-44a0-9743-1130f57d77d8' # str | - device_uid = 'dev:000000000000000' # str | - - try: - api_instance.enable_device_connectivity_assurance(project_or_product_uid, device_uid) - except Exception as e: - print("Exception when calling DeviceApi->enable_device_connectivity_assurance: %s\n" % e) -``` - -### Parameters - -| Name | Type | Description | Notes | -| -------------------------- | ------- | ----------- | ----- | -| **project_or_product_uid** | **str** | | -| **device_uid** | **str** | | - -### Return type - -void (empty response body) - -### Authorization - -[personalAccessToken](../README.md#personalAccessToken) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -| ----------- | ------------------------------------------ | ---------------- | -| **200** | Successful operation | - | -| **0** | The response body in case of an API error. | - | - -[[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_db_note** > GetDbNote200Response get_db_note(project_or_product_uid, device_uid, notefile_id, note_id, delete=delete, deleted=deleted) diff --git a/src/notehub_py/__init__.py b/src/notehub_py/__init__.py index 5e8b7f7..2158389 100644 --- a/src/notehub_py/__init__.py +++ b/src/notehub_py/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "5.0.0" +__version__ = "6.0.0" # import apis into sdk package from notehub_py.api.alert_api import AlertApi diff --git a/src/notehub_py/api/device_api.py b/src/notehub_py/api/device_api.py index 058cd98..efb15bd 100644 --- a/src/notehub_py/api/device_api.py +++ b/src/notehub_py/api/device_api.py @@ -2036,260 +2036,6 @@ def _disable_device_serialize( _request_auth=_request_auth, ) - @validate_call - def disable_device_connectivity_assurance( - self, - project_or_product_uid: StrictStr, - device_uid: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """disable_device_connectivity_assurance - - Disable Connectivity Assurance - - :param project_or_product_uid: (required) - :type project_or_product_uid: str - :param device_uid: (required) - :type device_uid: 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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._disable_device_connectivity_assurance_serialize( - project_or_product_uid=project_or_product_uid, - device_uid=device_uid, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: Dict[str, Optional[str]] = { - "200": None, - } - response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - @validate_call - def disable_device_connectivity_assurance_with_http_info( - self, - project_or_product_uid: StrictStr, - device_uid: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """disable_device_connectivity_assurance - - Disable Connectivity Assurance - - :param project_or_product_uid: (required) - :type project_or_product_uid: str - :param device_uid: (required) - :type device_uid: 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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._disable_device_connectivity_assurance_serialize( - project_or_product_uid=project_or_product_uid, - device_uid=device_uid, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: Dict[str, Optional[str]] = { - "200": None, - } - response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - @validate_call - def disable_device_connectivity_assurance_without_preload_content( - self, - project_or_product_uid: StrictStr, - device_uid: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """disable_device_connectivity_assurance - - Disable Connectivity Assurance - - :param project_or_product_uid: (required) - :type project_or_product_uid: str - :param device_uid: (required) - :type device_uid: 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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._disable_device_connectivity_assurance_serialize( - project_or_product_uid=project_or_product_uid, - device_uid=device_uid, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: Dict[str, Optional[str]] = { - "200": None, - } - response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout - ) - return response_data.response - - def _disable_device_connectivity_assurance_serialize( - self, - project_or_product_uid, - device_uid, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = {} - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if project_or_product_uid is not None: - _path_params["projectOrProductUID"] = project_or_product_uid - if device_uid is not None: - _path_params["deviceUID"] = device_uid - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - # set the HTTP header `Accept` - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) - - # authentication setting - _auth_settings: List[str] = ["personalAccessToken"] - - return self.api_client.param_serialize( - method="POST", - resource_path="/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance", - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth, - ) - @validate_call def enable_device( self, @@ -2544,260 +2290,6 @@ def _enable_device_serialize( _request_auth=_request_auth, ) - @validate_call - def enable_device_connectivity_assurance( - self, - project_or_product_uid: StrictStr, - device_uid: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """enable_device_connectivity_assurance - - Enable Connectivity Assurance - - :param project_or_product_uid: (required) - :type project_or_product_uid: str - :param device_uid: (required) - :type device_uid: 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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._enable_device_connectivity_assurance_serialize( - project_or_product_uid=project_or_product_uid, - device_uid=device_uid, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: Dict[str, Optional[str]] = { - "200": None, - } - response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - @validate_call - def enable_device_connectivity_assurance_with_http_info( - self, - project_or_product_uid: StrictStr, - device_uid: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """enable_device_connectivity_assurance - - Enable Connectivity Assurance - - :param project_or_product_uid: (required) - :type project_or_product_uid: str - :param device_uid: (required) - :type device_uid: 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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._enable_device_connectivity_assurance_serialize( - project_or_product_uid=project_or_product_uid, - device_uid=device_uid, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: Dict[str, Optional[str]] = { - "200": None, - } - response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - @validate_call - def enable_device_connectivity_assurance_without_preload_content( - self, - project_or_product_uid: StrictStr, - device_uid: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """enable_device_connectivity_assurance - - Enable Connectivity Assurance - - :param project_or_product_uid: (required) - :type project_or_product_uid: str - :param device_uid: (required) - :type device_uid: 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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._enable_device_connectivity_assurance_serialize( - project_or_product_uid=project_or_product_uid, - device_uid=device_uid, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: Dict[str, Optional[str]] = { - "200": None, - } - response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout - ) - return response_data.response - - def _enable_device_connectivity_assurance_serialize( - self, - project_or_product_uid, - device_uid, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = {} - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if project_or_product_uid is not None: - _path_params["projectOrProductUID"] = project_or_product_uid - if device_uid is not None: - _path_params["deviceUID"] = device_uid - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - # set the HTTP header `Accept` - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) - - # authentication setting - _auth_settings: List[str] = ["personalAccessToken"] - - return self.api_client.param_serialize( - method="POST", - resource_path="/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance", - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth, - ) - @validate_call def get_db_note( self, diff --git a/src/notehub_py/api_client.py b/src/notehub_py/api_client.py index 5f54c11..fa680dd 100644 --- a/src/notehub_py/api_client.py +++ b/src/notehub_py/api_client.py @@ -86,7 +86,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "OpenAPI-Generator/5.0.0/python" + self.user_agent = "OpenAPI-Generator/6.0.0/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 92c6fe9..22a4e52 100644 --- a/src/notehub_py/configuration.py +++ b/src/notehub_py/configuration.py @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n" "Python Version: {pyversion}\n" "Version of the API: 1.2.0\n" - "SDK Package Version: 5.0.0".format(env=sys.platform, pyversion=sys.version) + "SDK Package Version: 6.0.0".format(env=sys.platform, pyversion=sys.version) ) def get_host_settings(self): diff --git a/src/pyproject.toml b/src/pyproject.toml index 4448162..85d032a 100644 --- a/src/pyproject.toml +++ b/src/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "notehub_py" -version = "5.0.0" +version = "6.0.0" description = "Notehub API" authors = ["Blues Engineering "] license = "MIT" diff --git a/src/setup.py b/src/setup.py index fad5830..84982ae 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 = "5.0.0" +VERSION = "6.0.0" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 2.5.0", From 3c04828d666b0f00d71553875fe59efcf41686ea Mon Sep 17 00:00:00 2001 From: TJ VanToll Date: Fri, 13 Feb 2026 08:45:35 -0500 Subject: [PATCH 2/2] 6.0.1 --- config.json | 2 +- src/README.md | 2 +- src/notehub_py/__init__.py | 2 +- src/notehub_py/api_client.py | 2 +- src/notehub_py/configuration.py | 2 +- src/pyproject.toml | 2 +- src/setup.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config.json b/config.json index feec4e9..34d6534 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": "6.0.0" + "packageVersion": "6.0.1" } diff --git a/src/README.md b/src/README.md index 4bc5ceb..5be1ae3 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.2.0 -- Package version: 6.0.0 +- Package version: 6.0.1 - 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/) diff --git a/src/notehub_py/__init__.py b/src/notehub_py/__init__.py index 2158389..c4c485e 100644 --- a/src/notehub_py/__init__.py +++ b/src/notehub_py/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "6.0.0" +__version__ = "6.0.1" # import apis into sdk package from notehub_py.api.alert_api import AlertApi diff --git a/src/notehub_py/api_client.py b/src/notehub_py/api_client.py index fa680dd..99a41b7 100644 --- a/src/notehub_py/api_client.py +++ b/src/notehub_py/api_client.py @@ -86,7 +86,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "OpenAPI-Generator/6.0.0/python" + self.user_agent = "OpenAPI-Generator/6.0.1/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 22a4e52..9331975 100644 --- a/src/notehub_py/configuration.py +++ b/src/notehub_py/configuration.py @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n" "Python Version: {pyversion}\n" "Version of the API: 1.2.0\n" - "SDK Package Version: 6.0.0".format(env=sys.platform, pyversion=sys.version) + "SDK Package Version: 6.0.1".format(env=sys.platform, pyversion=sys.version) ) def get_host_settings(self): diff --git a/src/pyproject.toml b/src/pyproject.toml index 85d032a..2246e90 100644 --- a/src/pyproject.toml +++ b/src/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "notehub_py" -version = "6.0.0" +version = "6.0.1" description = "Notehub API" authors = ["Blues Engineering "] license = "MIT" diff --git a/src/setup.py b/src/setup.py index 84982ae..c8bbcc8 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 = "6.0.0" +VERSION = "6.0.1" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 2.5.0",