diff --git a/docs/GetReportTypes200ResponseInner.md b/docs/GetReportTypes200ResponseInner.md deleted file mode 100644 index 5abd3d6..0000000 --- a/docs/GetReportTypes200ResponseInner.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetReportTypes200ResponseInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | The machine-readable name of report type | [optional] -**name** | **str** | The human-readable name of report type | [optional] - -## Example - -```python -from ibutsu_client.models.get_report_types200_response_inner import GetReportTypes200ResponseInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetReportTypes200ResponseInner from a JSON string -get_report_types200_response_inner_instance = GetReportTypes200ResponseInner.from_json(json) -# print the JSON string representation of the object -print(GetReportTypes200ResponseInner.to_json()) - -# convert the object into a dict -get_report_types200_response_inner_dict = get_report_types200_response_inner_instance.to_dict() -# create an instance of GetReportTypes200ResponseInner from a dict -get_report_types200_response_inner_from_dict = GetReportTypes200ResponseInner.from_dict(get_report_types200_response_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Report.md b/docs/Report.md deleted file mode 100644 index 9a61846..0000000 --- a/docs/Report.md +++ /dev/null @@ -1,36 +0,0 @@ -# Report - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str** | Unique ID of the report | [optional] -**filename** | **str** | The filename of the report | [optional] -**mimetype** | **str** | The mime type of the downloadable file | [optional] -**url** | **str** | The URL to the downloadable report (deprecated) | [optional] -**download_url** | **str** | The URL to the downloadable report | [optional] -**view_url** | **str** | The URL to the viewable report | [optional] -**parameters** | [**ReportParameters**](ReportParameters.md) | | [optional] -**status** | **str** | The status of the report, one of \"pending\", \"running\", \"done\" | [optional] - -## Example - -```python -from ibutsu_client.models.report import Report - -# TODO update the JSON string below -json = "{}" -# create an instance of Report from a JSON string -report_instance = Report.from_json(json) -# print the JSON string representation of the object -print(Report.to_json()) - -# convert the object into a dict -report_dict = report_instance.to_dict() -# create an instance of Report from a dict -report_from_dict = Report.from_dict(report_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ReportApi.md b/docs/ReportApi.md deleted file mode 100644 index 95d15e6..0000000 --- a/docs/ReportApi.md +++ /dev/null @@ -1,552 +0,0 @@ -# ibutsu_client.ReportApi - -All URIs are relative to */api* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**add_report**](ReportApi.md#add_report) | **POST** /report | Create a new report -[**delete_report**](ReportApi.md#delete_report) | **DELETE** /report/{id} | Delete a report -[**download_report**](ReportApi.md#download_report) | **GET** /report/{id}/download/{filename} | Download a report -[**get_report**](ReportApi.md#get_report) | **GET** /report/{id} | Get a report -[**get_report_list**](ReportApi.md#get_report_list) | **GET** /report | Get a list of reports -[**get_report_types**](ReportApi.md#get_report_types) | **GET** /report/types | Get a list of report types -[**view_report**](ReportApi.md#view_report) | **GET** /report/{id}/view/{filename} | View a report - - -# **add_report** -> Report add_report(report_parameters) - -Create a new report - -### Example - -* Bearer (JWT) Authentication (jwt): - -```python -import ibutsu_client -from ibutsu_client.models.report import Report -from ibutsu_client.models.report_parameters import ReportParameters -from ibutsu_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api -# See configuration.py for a list of all supported configuration parameters. -configuration = ibutsu_client.Configuration( - host = "/api" -) - -# 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 (JWT): jwt -configuration = ibutsu_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with ibutsu_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = ibutsu_client.ReportApi(api_client) - report_parameters = ibutsu_client.ReportParameters() # ReportParameters | The parameters for the report - - try: - # Create a new report - api_response = api_instance.add_report(report_parameters) - print("The response of ReportApi->add_report:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ReportApi->add_report: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **report_parameters** | [**ReportParameters**](ReportParameters.md)| The parameters for the report | - -### Return type - -[**Report**](Report.md) - -### Authorization - -[jwt](../README.md#jwt) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Report created | - | -**400** | Bad request, probably not enough parameters | - | - -[[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) - -# **delete_report** -> delete_report(id) - -Delete a report - -### Example - -* Bearer (JWT) Authentication (jwt): - -```python -import ibutsu_client -from ibutsu_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api -# See configuration.py for a list of all supported configuration parameters. -configuration = ibutsu_client.Configuration( - host = "/api" -) - -# 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 (JWT): jwt -configuration = ibutsu_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with ibutsu_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = ibutsu_client.ReportApi(api_client) - id = 'id_example' # str | ID of report to delete - - try: - # Delete a report - api_instance.delete_report(id) - except Exception as e: - print("Exception when calling ReportApi->delete_report: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| ID of report to delete | - -### Return type - -void (empty response body) - -### Authorization - -[jwt](../README.md#jwt) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | The report was deleted | - | -**404** | The report was not found | - | - -[[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) - -# **download_report** -> bytearray download_report(id, filename) - -Download a report - -### Example - -* Bearer (JWT) Authentication (jwt): - -```python -import ibutsu_client -from ibutsu_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api -# See configuration.py for a list of all supported configuration parameters. -configuration = ibutsu_client.Configuration( - host = "/api" -) - -# 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 (JWT): jwt -configuration = ibutsu_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with ibutsu_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = ibutsu_client.ReportApi(api_client) - id = 'id_example' # str | The ID of the report - filename = 'filename_example' # str | The file name of the downloadable report - - try: - # Download a report - api_response = api_instance.download_report(id, filename) - print("The response of ReportApi->download_report:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ReportApi->download_report: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| The ID of the report | - **filename** | **str**| The file name of the downloadable report | - -### Return type - -**bytearray** - -### Authorization - -[jwt](../README.md#jwt) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: text/plain, application/csv, application/json, text/html, application/zip - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | File contents | - | -**404** | Artifact not found | - | - -[[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_report** -> Report get_report(id) - -Get a report - -### Example - -* Bearer (JWT) Authentication (jwt): - -```python -import ibutsu_client -from ibutsu_client.models.report import Report -from ibutsu_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api -# See configuration.py for a list of all supported configuration parameters. -configuration = ibutsu_client.Configuration( - host = "/api" -) - -# 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 (JWT): jwt -configuration = ibutsu_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with ibutsu_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = ibutsu_client.ReportApi(api_client) - id = 'id_example' # str | The ID of the report - - try: - # Get a report - api_response = api_instance.get_report(id) - print("The response of ReportApi->get_report:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ReportApi->get_report: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| The ID of the report | - -### Return type - -[**Report**](Report.md) - -### Authorization - -[jwt](../README.md#jwt) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Report item | - | -**404** | Report not found | - | - -[[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_report_list** -> ReportList get_report_list(page=page, page_size=page_size, project=project) - -Get a list of reports - -### Example - -* Bearer (JWT) Authentication (jwt): - -```python -import ibutsu_client -from ibutsu_client.models.report_list import ReportList -from ibutsu_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api -# See configuration.py for a list of all supported configuration parameters. -configuration = ibutsu_client.Configuration( - host = "/api" -) - -# 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 (JWT): jwt -configuration = ibutsu_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with ibutsu_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = ibutsu_client.ReportApi(api_client) - page = 56 # int | Set the page of items to return, defaults to 1 (optional) - page_size = 56 # int | Set the number of items per page, defaults to 25 (optional) - project = 'project_example' # str | Filter reports by project ID (optional) - - try: - # Get a list of reports - api_response = api_instance.get_report_list(page=page, page_size=page_size, project=project) - print("The response of ReportApi->get_report_list:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ReportApi->get_report_list: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **page** | **int**| Set the page of items to return, defaults to 1 | [optional] - **page_size** | **int**| Set the number of items per page, defaults to 25 | [optional] - **project** | **str**| Filter reports by project ID | [optional] - -### Return type - -[**ReportList**](ReportList.md) - -### Authorization - -[jwt](../README.md#jwt) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A list of reports | - | - -[[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_report_types** -> List[GetReportTypes200ResponseInner] get_report_types() - -Get a list of report types - -### Example - -* Bearer (JWT) Authentication (jwt): - -```python -import ibutsu_client -from ibutsu_client.models.get_report_types200_response_inner import GetReportTypes200ResponseInner -from ibutsu_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api -# See configuration.py for a list of all supported configuration parameters. -configuration = ibutsu_client.Configuration( - host = "/api" -) - -# 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 (JWT): jwt -configuration = ibutsu_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with ibutsu_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = ibutsu_client.ReportApi(api_client) - - try: - # Get a list of report types - api_response = api_instance.get_report_types() - print("The response of ReportApi->get_report_types:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ReportApi->get_report_types: %s\n" % e) -``` - - - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**List[GetReportTypes200ResponseInner]**](GetReportTypes200ResponseInner.md) - -### Authorization - -[jwt](../README.md#jwt) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A list of types of reports available | - | - -[[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) - -# **view_report** -> bytearray view_report(id, filename) - -View a report - -### Example - -* Bearer (JWT) Authentication (jwt): - -```python -import ibutsu_client -from ibutsu_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api -# See configuration.py for a list of all supported configuration parameters. -configuration = ibutsu_client.Configuration( - host = "/api" -) - -# 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 (JWT): jwt -configuration = ibutsu_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with ibutsu_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = ibutsu_client.ReportApi(api_client) - id = 'id_example' # str | The ID of the report - filename = 'filename_example' # str | The file name of the downloadable report - - try: - # View a report - api_response = api_instance.view_report(id, filename) - print("The response of ReportApi->view_report:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ReportApi->view_report: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| The ID of the report | - **filename** | **str**| The file name of the downloadable report | - -### Return type - -**bytearray** - -### Authorization - -[jwt](../README.md#jwt) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: text/plain, application/csv, application/json, text/html, application/zip - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | File contents | - | -**404** | Artifact not found | - | - -[[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) - diff --git a/docs/ReportList.md b/docs/ReportList.md deleted file mode 100644 index 1579340..0000000 --- a/docs/ReportList.md +++ /dev/null @@ -1,30 +0,0 @@ -# ReportList - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reports** | [**List[Report]**](Report.md) | | [optional] -**pagination** | [**Pagination**](Pagination.md) | | [optional] - -## Example - -```python -from ibutsu_client.models.report_list import ReportList - -# TODO update the JSON string below -json = "{}" -# create an instance of ReportList from a JSON string -report_list_instance = ReportList.from_json(json) -# print the JSON string representation of the object -print(ReportList.to_json()) - -# convert the object into a dict -report_list_dict = report_list_instance.to_dict() -# create an instance of ReportList from a dict -report_list_from_dict = ReportList.from_dict(report_list_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ReportParameters.md b/docs/ReportParameters.md deleted file mode 100644 index e838f82..0000000 --- a/docs/ReportParameters.md +++ /dev/null @@ -1,31 +0,0 @@ -# ReportParameters - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | The type of report to generate | -**filter** | **str** | A regular expression to filter test results by | [optional] -**source** | **str** | The source of the test results | [optional] - -## Example - -```python -from ibutsu_client.models.report_parameters import ReportParameters - -# TODO update the JSON string below -json = "{}" -# create an instance of ReportParameters from a JSON string -report_parameters_instance = ReportParameters.from_json(json) -# print the JSON string representation of the object -print(ReportParameters.to_json()) - -# convert the object into a dict -report_parameters_dict = report_parameters_instance.to_dict() -# create an instance of ReportParameters from a dict -report_parameters_from_dict = ReportParameters.from_dict(report_parameters_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/ibutsu_client/__init__.py b/ibutsu_client/__init__.py index 39ad941..db342db 100644 --- a/ibutsu_client/__init__.py +++ b/ibutsu_client/__init__.py @@ -5,13 +5,13 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 -__version__ = "3.0.0" +__version__ = "3.1.0" # Define package exports __all__ = [ @@ -24,7 +24,6 @@ "ImportApi", "LoginApi", "ProjectApi", - "ReportApi", "ResultApi", "RunApi", "TaskApi", @@ -49,7 +48,6 @@ "Credentials", "Dashboard", "DashboardList", - "GetReportTypes200ResponseInner", "Group", "GroupList", "Health", @@ -62,9 +60,6 @@ "Pagination", "Project", "ProjectList", - "Report", - "ReportList", - "ReportParameters", "Result", "ResultList", "Run", @@ -96,7 +91,6 @@ from ibutsu_client.api.import_api import ImportApi as ImportApi from ibutsu_client.api.login_api import LoginApi as LoginApi from ibutsu_client.api.project_api import ProjectApi as ProjectApi - from ibutsu_client.api.report_api import ReportApi as ReportApi from ibutsu_client.api.result_api import ResultApi as ResultApi from ibutsu_client.api.run_api import RunApi as RunApi from ibutsu_client.api.task_api import TaskApi as TaskApi @@ -127,9 +121,6 @@ from ibutsu_client.models.credentials import Credentials as Credentials from ibutsu_client.models.dashboard import Dashboard as Dashboard from ibutsu_client.models.dashboard_list import DashboardList as DashboardList - from ibutsu_client.models.get_report_types200_response_inner import ( - GetReportTypes200ResponseInner as GetReportTypes200ResponseInner, - ) from ibutsu_client.models.group import Group as Group from ibutsu_client.models.group_list import GroupList as GroupList from ibutsu_client.models.health import Health as Health @@ -142,9 +133,6 @@ from ibutsu_client.models.pagination import Pagination as Pagination from ibutsu_client.models.project import Project as Project from ibutsu_client.models.project_list import ProjectList as ProjectList - from ibutsu_client.models.report import Report as Report - from ibutsu_client.models.report_list import ReportList as ReportList - from ibutsu_client.models.report_parameters import ReportParameters as ReportParameters from ibutsu_client.models.result import Result as Result from ibutsu_client.models.result_list import ResultList as ResultList from ibutsu_client.models.run import Run as Run @@ -178,7 +166,6 @@ from ibutsu_client.api.import_api import ImportApi as ImportApi from ibutsu_client.api.login_api import LoginApi as LoginApi from ibutsu_client.api.project_api import ProjectApi as ProjectApi -from ibutsu_client.api.report_api import ReportApi as ReportApi from ibutsu_client.api.result_api import ResultApi as ResultApi from ibutsu_client.api.run_api import RunApi as RunApi from ibutsu_client.api.task_api import TaskApi as TaskApi @@ -207,7 +194,6 @@ from ibutsu_client.models.credentials import Credentials as Credentials from ibutsu_client.models.dashboard import Dashboard as Dashboard from ibutsu_client.models.dashboard_list import DashboardList as DashboardList -from ibutsu_client.models.get_report_types200_response_inner import GetReportTypes200ResponseInner as GetReportTypes200ResponseInner from ibutsu_client.models.group import Group as Group from ibutsu_client.models.group_list import GroupList as GroupList from ibutsu_client.models.health import Health as Health @@ -220,9 +206,6 @@ from ibutsu_client.models.pagination import Pagination as Pagination from ibutsu_client.models.project import Project as Project from ibutsu_client.models.project_list import ProjectList as ProjectList -from ibutsu_client.models.report import Report as Report -from ibutsu_client.models.report_list import ReportList as ReportList -from ibutsu_client.models.report_parameters import ReportParameters as ReportParameters from ibutsu_client.models.result import Result as Result from ibutsu_client.models.result_list import ResultList as ResultList from ibutsu_client.models.run import Run as Run diff --git a/ibutsu_client/api/__init__.py b/ibutsu_client/api/__init__.py index e5955f4..a49d6d5 100644 --- a/ibutsu_client/api/__init__.py +++ b/ibutsu_client/api/__init__.py @@ -11,7 +11,6 @@ from ibutsu_client.api.import_api import ImportApi from ibutsu_client.api.login_api import LoginApi from ibutsu_client.api.project_api import ProjectApi - from ibutsu_client.api.report_api import ReportApi from ibutsu_client.api.result_api import ResultApi from ibutsu_client.api.run_api import RunApi from ibutsu_client.api.task_api import TaskApi @@ -35,7 +34,6 @@ from ibutsu_client.api.import_api import ImportApi from ibutsu_client.api.login_api import LoginApi from ibutsu_client.api.project_api import ProjectApi -from ibutsu_client.api.report_api import ReportApi from ibutsu_client.api.result_api import ResultApi from ibutsu_client.api.run_api import RunApi from ibutsu_client.api.task_api import TaskApi diff --git a/ibutsu_client/api/admin_project_management_api.py b/ibutsu_client/api/admin_project_management_api.py index 7d5374f..fb98c73 100644 --- a/ibutsu_client/api/admin_project_management_api.py +++ b/ibutsu_client/api/admin_project_management_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/api/admin_user_management_api.py b/ibutsu_client/api/admin_user_management_api.py index 18824fa..0e30c11 100644 --- a/ibutsu_client/api/admin_user_management_api.py +++ b/ibutsu_client/api/admin_user_management_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/api/artifact_api.py b/ibutsu_client/api/artifact_api.py index a9b0a62..9139514 100644 --- a/ibutsu_client/api/artifact_api.py +++ b/ibutsu_client/api/artifact_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/api/dashboard_api.py b/ibutsu_client/api/dashboard_api.py index 3135db3..cf5c264 100644 --- a/ibutsu_client/api/dashboard_api.py +++ b/ibutsu_client/api/dashboard_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/api/group_api.py b/ibutsu_client/api/group_api.py index b63bd01..c13385f 100644 --- a/ibutsu_client/api/group_api.py +++ b/ibutsu_client/api/group_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/api/health_api.py b/ibutsu_client/api/health_api.py index 8488a81..f9756f7 100644 --- a/ibutsu_client/api/health_api.py +++ b/ibutsu_client/api/health_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/api/import_api.py b/ibutsu_client/api/import_api.py index 9c6d0bb..87606b8 100644 --- a/ibutsu_client/api/import_api.py +++ b/ibutsu_client/api/import_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/api/login_api.py b/ibutsu_client/api/login_api.py index 62c213d..09d14fc 100644 --- a/ibutsu_client/api/login_api.py +++ b/ibutsu_client/api/login_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/api/project_api.py b/ibutsu_client/api/project_api.py index 0cfc6d5..7ebbab5 100644 --- a/ibutsu_client/api/project_api.py +++ b/ibutsu_client/api/project_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/api/report_api.py b/ibutsu_client/api/report_api.py deleted file mode 100644 index 6640439..0000000 --- a/ibutsu_client/api/report_api.py +++ /dev/null @@ -1,1672 +0,0 @@ -""" -Ibutsu API - -A system to store and query test results - -The version of the OpenAPI document: 2.7.4 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" - -from typing import Annotated, Any -from uuid import UUID - -from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call - -from ibutsu_client.api_client import ApiClient, RequestSerialized -from ibutsu_client.api_response import ApiResponse -from ibutsu_client.models.get_report_types200_response_inner import GetReportTypes200ResponseInner -from ibutsu_client.models.report import Report -from ibutsu_client.models.report_list import ReportList -from ibutsu_client.models.report_parameters import ReportParameters -from ibutsu_client.rest import RESTResponseType - - -class ReportApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - @validate_call - def add_report( - self, - report_parameters: Annotated[ - ReportParameters, Field(description="The parameters for the report") - ], - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Report: - """Create a new report - - - :param report_parameters: The parameters for the report (required) - :type report_parameters: ReportParameters - :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. - """ - - _param = self._add_report_serialize( - report_parameters=report_parameters, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "201": "Report", - "400": 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 add_report_with_http_info( - self, - report_parameters: Annotated[ - ReportParameters, Field(description="The parameters for the report") - ], - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Report]: - """Create a new report - - - :param report_parameters: The parameters for the report (required) - :type report_parameters: ReportParameters - :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. - """ - - _param = self._add_report_serialize( - report_parameters=report_parameters, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "201": "Report", - "400": 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 add_report_without_preload_content( - self, - report_parameters: Annotated[ - ReportParameters, Field(description="The parameters for the report") - ], - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create a new report - - - :param report_parameters: The parameters for the report (required) - :type report_parameters: ReportParameters - :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. - """ - - _param = self._add_report_serialize( - report_parameters=report_parameters, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "201": "Report", - "400": None, - } - response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) - return response_data.response - - def _add_report_serialize( - self, - report_parameters, - _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, str | None] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]] = {} - _body_params: bytes | None = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if report_parameters is not None: - _body_params = report_parameters - - # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params["Content-Type"] = _content_type - else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] - ) - if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type - - # authentication setting - _auth_settings: list[str] = ["jwt"] - - return self.api_client.param_serialize( - method="POST", - resource_path="/report", - 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 delete_report( - self, - id: Annotated[UUID, Field(description="ID of report to delete")], - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """Delete a report - - - :param id: ID of report to delete (required) - :type id: 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. - """ - - _param = self._delete_report_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "200": None, - "404": 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 delete_report_with_http_info( - self, - id: Annotated[UUID, Field(description="ID of report to delete")], - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """Delete a report - - - :param id: ID of report to delete (required) - :type id: 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. - """ - - _param = self._delete_report_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "200": None, - "404": 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 delete_report_without_preload_content( - self, - id: Annotated[UUID, Field(description="ID of report to delete")], - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete a report - - - :param id: ID of report to delete (required) - :type id: 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. - """ - - _param = self._delete_report_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "200": None, - "404": None, - } - response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) - return response_data.response - - def _delete_report_serialize( - self, - id, - _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, str | None] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]] = {} - _body_params: bytes | None = None - - # process the path parameters - if id is not None: - _path_params["id"] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - # authentication setting - _auth_settings: list[str] = ["jwt"] - - return self.api_client.param_serialize( - method="DELETE", - resource_path="/report/{id}", - 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 download_report( - self, - id: Annotated[UUID, Field(description="The ID of the report")], - filename: Annotated[ - StrictStr, Field(description="The file name of the downloadable report") - ], - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """Download a report - - - :param id: The ID of the report (required) - :type id: str - :param filename: The file name of the downloadable report (required) - :type filename: 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. - """ - - _param = self._download_report_serialize( - id=id, - filename=filename, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "200": "bytearray", - "404": 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 download_report_with_http_info( - self, - id: Annotated[UUID, Field(description="The ID of the report")], - filename: Annotated[ - StrictStr, Field(description="The file name of the downloadable report") - ], - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """Download a report - - - :param id: The ID of the report (required) - :type id: str - :param filename: The file name of the downloadable report (required) - :type filename: 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. - """ - - _param = self._download_report_serialize( - id=id, - filename=filename, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "200": "bytearray", - "404": 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 download_report_without_preload_content( - self, - id: Annotated[UUID, Field(description="The ID of the report")], - filename: Annotated[ - StrictStr, Field(description="The file name of the downloadable report") - ], - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Download a report - - - :param id: The ID of the report (required) - :type id: str - :param filename: The file name of the downloadable report (required) - :type filename: 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. - """ - - _param = self._download_report_serialize( - id=id, - filename=filename, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "200": "bytearray", - "404": None, - } - response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) - return response_data.response - - def _download_report_serialize( - self, - id, - filename, - _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, str | None] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]] = {} - _body_params: bytes | None = None - - # process the path parameters - if id is not None: - _path_params["id"] = id - if filename is not None: - _path_params["filename"] = filename - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - [ - "text/plain", - "application/csv", - "application/json", - "text/html", - "application/zip", - ] - ) - - # authentication setting - _auth_settings: list[str] = ["jwt"] - - return self.api_client.param_serialize( - method="GET", - resource_path="/report/{id}/download/{filename}", - 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_report( - self, - id: Annotated[UUID, Field(description="The ID of the report")], - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Report: - """Get a report - - - :param id: The ID of the report (required) - :type id: 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. - """ - - _param = self._get_report_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "200": "Report", - "404": 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 get_report_with_http_info( - self, - id: Annotated[UUID, Field(description="The ID of the report")], - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Report]: - """Get a report - - - :param id: The ID of the report (required) - :type id: 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. - """ - - _param = self._get_report_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "200": "Report", - "404": 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 get_report_without_preload_content( - self, - id: Annotated[UUID, Field(description="The ID of the report")], - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get a report - - - :param id: The ID of the report (required) - :type id: 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. - """ - - _param = self._get_report_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "200": "Report", - "404": None, - } - response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) - return response_data.response - - def _get_report_serialize( - self, - id, - _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, str | None] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]] = {} - _body_params: bytes | None = None - - # process the path parameters - if id is not None: - _path_params["id"] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) - - # authentication setting - _auth_settings: list[str] = ["jwt"] - - return self.api_client.param_serialize( - method="GET", - resource_path="/report/{id}", - 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_report_list( - self, - page: Annotated[ - StrictInt | None, Field(description="Set the page of items to return, defaults to 1") - ] = None, - page_size: Annotated[ - Annotated[int, Field(strict=True, ge=1)] | None, - Field(description="Set the number of items per page, defaults to 25"), - ] = None, - project: Annotated[ - StrictStr | None, Field(description="Filter reports by project ID") - ] = None, - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ReportList: - """Get a list of reports - - - :param page: Set the page of items to return, defaults to 1 - :type page: int - :param page_size: Set the number of items per page, defaults to 25 - :type page_size: int - :param project: Filter reports by project ID - :type project: 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. - """ - - _param = self._get_report_list_serialize( - page=page, - page_size=page_size, - project=project, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "200": "ReportList", - } - 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 get_report_list_with_http_info( - self, - page: Annotated[ - StrictInt | None, Field(description="Set the page of items to return, defaults to 1") - ] = None, - page_size: Annotated[ - Annotated[int, Field(strict=True, ge=1)] | None, - Field(description="Set the number of items per page, defaults to 25"), - ] = None, - project: Annotated[ - StrictStr | None, Field(description="Filter reports by project ID") - ] = None, - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ReportList]: - """Get a list of reports - - - :param page: Set the page of items to return, defaults to 1 - :type page: int - :param page_size: Set the number of items per page, defaults to 25 - :type page_size: int - :param project: Filter reports by project ID - :type project: 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. - """ - - _param = self._get_report_list_serialize( - page=page, - page_size=page_size, - project=project, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "200": "ReportList", - } - 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 get_report_list_without_preload_content( - self, - page: Annotated[ - StrictInt | None, Field(description="Set the page of items to return, defaults to 1") - ] = None, - page_size: Annotated[ - Annotated[int, Field(strict=True, ge=1)] | None, - Field(description="Set the number of items per page, defaults to 25"), - ] = None, - project: Annotated[ - StrictStr | None, Field(description="Filter reports by project ID") - ] = None, - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get a list of reports - - - :param page: Set the page of items to return, defaults to 1 - :type page: int - :param page_size: Set the number of items per page, defaults to 25 - :type page_size: int - :param project: Filter reports by project ID - :type project: 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. - """ - - _param = self._get_report_list_serialize( - page=page, - page_size=page_size, - project=project, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "200": "ReportList", - } - response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) - return response_data.response - - def _get_report_list_serialize( - self, - page, - page_size, - project, - _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, str | None] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]] = {} - _body_params: bytes | None = None - - # process the path parameters - # process the query parameters - if page is not None: - _query_params.append(("page", page)) - - if page_size is not None: - _query_params.append(("pageSize", page_size)) - - if project is not None: - _query_params.append(("project", project)) - - # process the header parameters - # process the form parameters - # process the body parameter - - # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) - - # authentication setting - _auth_settings: list[str] = ["jwt"] - - return self.api_client.param_serialize( - method="GET", - resource_path="/report", - 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_report_types( - self, - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> list[GetReportTypes200ResponseInner]: - """Get a list of report types - - - :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. - """ - - _param = self._get_report_types_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "200": "List[GetReportTypes200ResponseInner]", - } - 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 get_report_types_with_http_info( - self, - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[list[GetReportTypes200ResponseInner]]: - """Get a list of report types - - - :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. - """ - - _param = self._get_report_types_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "200": "List[GetReportTypes200ResponseInner]", - } - 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 get_report_types_without_preload_content( - self, - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get a list of report types - - - :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. - """ - - _param = self._get_report_types_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "200": "List[GetReportTypes200ResponseInner]", - } - response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) - return response_data.response - - def _get_report_types_serialize( - self, - _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, str | None] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]] = {} - _body_params: bytes | None = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) - - # authentication setting - _auth_settings: list[str] = ["jwt"] - - return self.api_client.param_serialize( - method="GET", - resource_path="/report/types", - 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 view_report( - self, - id: Annotated[UUID, Field(description="The ID of the report")], - filename: Annotated[ - StrictStr, Field(description="The file name of the downloadable report") - ], - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """View a report - - - :param id: The ID of the report (required) - :type id: str - :param filename: The file name of the downloadable report (required) - :type filename: 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. - """ - - _param = self._view_report_serialize( - id=id, - filename=filename, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "200": "bytearray", - "404": 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 view_report_with_http_info( - self, - id: Annotated[UUID, Field(description="The ID of the report")], - filename: Annotated[ - StrictStr, Field(description="The file name of the downloadable report") - ], - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """View a report - - - :param id: The ID of the report (required) - :type id: str - :param filename: The file name of the downloadable report (required) - :type filename: 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. - """ - - _param = self._view_report_serialize( - id=id, - filename=filename, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "200": "bytearray", - "404": 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 view_report_without_preload_content( - self, - id: Annotated[UUID, Field(description="The ID of the report")], - filename: Annotated[ - StrictStr, Field(description="The file name of the downloadable report") - ], - _request_timeout: None - | Annotated[StrictFloat, Field(gt=0)] - | tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]] = None, - _request_auth: dict[StrictStr, Any] | None = None, - _content_type: StrictStr | None = None, - _headers: dict[StrictStr, Any] | None = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """View a report - - - :param id: The ID of the report (required) - :type id: str - :param filename: The file name of the downloadable report (required) - :type filename: 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. - """ - - _param = self._view_report_serialize( - id=id, - filename=filename, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: dict[str, str | None] = { - "200": "bytearray", - "404": None, - } - response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) - return response_data.response - - def _view_report_serialize( - self, - id, - filename, - _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, str | None] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]] = {} - _body_params: bytes | None = None - - # process the path parameters - if id is not None: - _path_params["id"] = id - if filename is not None: - _path_params["filename"] = filename - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - [ - "text/plain", - "application/csv", - "application/json", - "text/html", - "application/zip", - ] - ) - - # authentication setting - _auth_settings: list[str] = ["jwt"] - - return self.api_client.param_serialize( - method="GET", - resource_path="/report/{id}/view/{filename}", - 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, - ) diff --git a/ibutsu_client/api/result_api.py b/ibutsu_client/api/result_api.py index 1b85505..54578ec 100644 --- a/ibutsu_client/api/result_api.py +++ b/ibutsu_client/api/result_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/api/run_api.py b/ibutsu_client/api/run_api.py index 5349b0f..f83090b 100644 --- a/ibutsu_client/api/run_api.py +++ b/ibutsu_client/api/run_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/api/task_api.py b/ibutsu_client/api/task_api.py index 4bd0f56..d255a9c 100644 --- a/ibutsu_client/api/task_api.py +++ b/ibutsu_client/api/task_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/api/user_api.py b/ibutsu_client/api/user_api.py index 9151b6a..67f79d9 100644 --- a/ibutsu_client/api/user_api.py +++ b/ibutsu_client/api/user_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/api/widget_api.py b/ibutsu_client/api/widget_api.py index 4cddd66..2ddaa1b 100644 --- a/ibutsu_client/api/widget_api.py +++ b/ibutsu_client/api/widget_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/api/widget_config_api.py b/ibutsu_client/api/widget_config_api.py index 4fa43da..5e82d9a 100644 --- a/ibutsu_client/api/widget_config_api.py +++ b/ibutsu_client/api/widget_config_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/api_client.py b/ibutsu_client/api_client.py index 92e3b65..32cf6bc 100644 --- a/ibutsu_client/api_client.py +++ b/ibutsu_client/api_client.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -80,7 +80,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "OpenAPI-Generator/3.0.0/python" + self.user_agent = "OpenAPI-Generator/3.1.0/python" self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/ibutsu_client/configuration.py b/ibutsu_client/configuration.py index bcf6220..3fb6c36 100644 --- a/ibutsu_client/configuration.py +++ b/ibutsu_client/configuration.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -505,8 +505,8 @@ def to_debug_report(self) -> str: "Python SDK Debug Report:\n" f"OS: {sys.platform}\n" f"Python Version: {sys.version}\n" - "Version of the API: 2.7.4\n" - "SDK Package Version: 3.0.0" + "Version of the API: 2.8.0\n" + "SDK Package Version: 3.1.0" ) def get_host_settings(self) -> list[HostSetting]: diff --git a/ibutsu_client/exceptions.py b/ibutsu_client/exceptions.py index 5ad5c34..64f9040 100644 --- a/ibutsu_client/exceptions.py +++ b/ibutsu_client/exceptions.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/__init__.py b/ibutsu_client/models/__init__.py index abaec4f..7cfe8c5 100644 --- a/ibutsu_client/models/__init__.py +++ b/ibutsu_client/models/__init__.py @@ -4,7 +4,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,9 +21,6 @@ from ibutsu_client.models.credentials import Credentials from ibutsu_client.models.dashboard import Dashboard from ibutsu_client.models.dashboard_list import DashboardList - from ibutsu_client.models.get_report_types200_response_inner import ( - GetReportTypes200ResponseInner, - ) from ibutsu_client.models.group import Group from ibutsu_client.models.group_list import GroupList from ibutsu_client.models.health import Health @@ -36,9 +33,6 @@ from ibutsu_client.models.pagination import Pagination from ibutsu_client.models.project import Project from ibutsu_client.models.project_list import ProjectList - from ibutsu_client.models.report import Report - from ibutsu_client.models.report_list import ReportList - from ibutsu_client.models.report_parameters import ReportParameters from ibutsu_client.models.result import Result from ibutsu_client.models.result_list import ResultList from ibutsu_client.models.run import Run @@ -70,7 +64,6 @@ from ibutsu_client.models.credentials import Credentials from ibutsu_client.models.dashboard import Dashboard from ibutsu_client.models.dashboard_list import DashboardList -from ibutsu_client.models.get_report_types200_response_inner import GetReportTypes200ResponseInner from ibutsu_client.models.group import Group from ibutsu_client.models.group_list import GroupList from ibutsu_client.models.health import Health @@ -83,9 +76,6 @@ from ibutsu_client.models.pagination import Pagination from ibutsu_client.models.project import Project from ibutsu_client.models.project_list import ProjectList -from ibutsu_client.models.report import Report -from ibutsu_client.models.report_list import ReportList -from ibutsu_client.models.report_parameters import ReportParameters from ibutsu_client.models.result import Result from ibutsu_client.models.result_list import ResultList from ibutsu_client.models.run import Run diff --git a/ibutsu_client/models/account_recovery.py b/ibutsu_client/models/account_recovery.py index f81c60c..3d30c72 100644 --- a/ibutsu_client/models/account_recovery.py +++ b/ibutsu_client/models/account_recovery.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/account_registration.py b/ibutsu_client/models/account_registration.py index 343006a..41103e4 100644 --- a/ibutsu_client/models/account_registration.py +++ b/ibutsu_client/models/account_registration.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/account_reset.py b/ibutsu_client/models/account_reset.py index 96495c5..9d82ed3 100644 --- a/ibutsu_client/models/account_reset.py +++ b/ibutsu_client/models/account_reset.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/artifact.py b/ibutsu_client/models/artifact.py index 9920ab1..7688bd6 100644 --- a/ibutsu_client/models/artifact.py +++ b/ibutsu_client/models/artifact.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/artifact_list.py b/ibutsu_client/models/artifact_list.py index d213a9d..b6fda40 100644 --- a/ibutsu_client/models/artifact_list.py +++ b/ibutsu_client/models/artifact_list.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/create_token.py b/ibutsu_client/models/create_token.py index 8f092dc..4947905 100644 --- a/ibutsu_client/models/create_token.py +++ b/ibutsu_client/models/create_token.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/credentials.py b/ibutsu_client/models/credentials.py index 450419e..417d89a 100644 --- a/ibutsu_client/models/credentials.py +++ b/ibutsu_client/models/credentials.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/dashboard.py b/ibutsu_client/models/dashboard.py index 98afaf0..b8adf29 100644 --- a/ibutsu_client/models/dashboard.py +++ b/ibutsu_client/models/dashboard.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/dashboard_list.py b/ibutsu_client/models/dashboard_list.py index f2d84b0..761204e 100644 --- a/ibutsu_client/models/dashboard_list.py +++ b/ibutsu_client/models/dashboard_list.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/get_report_types200_response_inner.py b/ibutsu_client/models/get_report_types200_response_inner.py deleted file mode 100644 index 732adf4..0000000 --- a/ibutsu_client/models/get_report_types200_response_inner.py +++ /dev/null @@ -1,84 +0,0 @@ -""" -Ibutsu API - -A system to store and query test results - -The version of the OpenAPI document: 2.7.4 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" - -from __future__ import annotations - -import json -import pprint -import re # noqa: F401 -from typing import Any, ClassVar, Self - -from pydantic import BaseModel, ConfigDict, Field, StrictStr - - -class GetReportTypes200ResponseInner(BaseModel): - """ - GetReportTypes200ResponseInner - """ - - type: StrictStr | None = Field( - default=None, description="The machine-readable name of report type" - ) - name: StrictStr | None = Field( - default=None, description="The human-readable name of report type" - ) - __properties: ClassVar[list[str]] = ["type", "name"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self | None: - """Create an instance of GetReportTypes200ResponseInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: set[str] = set() - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: dict[str, Any] | None) -> Self | None: - """Create an instance of GetReportTypes200ResponseInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({"type": obj.get("type"), "name": obj.get("name")}) - return _obj diff --git a/ibutsu_client/models/group.py b/ibutsu_client/models/group.py index b38c33f..ef12e6b 100644 --- a/ibutsu_client/models/group.py +++ b/ibutsu_client/models/group.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/group_list.py b/ibutsu_client/models/group_list.py index 3d9ddb8..5c2ea9f 100644 --- a/ibutsu_client/models/group_list.py +++ b/ibutsu_client/models/group_list.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/health.py b/ibutsu_client/models/health.py index 0629265..e2ef674 100644 --- a/ibutsu_client/models/health.py +++ b/ibutsu_client/models/health.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/health_info.py b/ibutsu_client/models/health_info.py index 4f5c190..68c377d 100644 --- a/ibutsu_client/models/health_info.py +++ b/ibutsu_client/models/health_info.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/login_config.py b/ibutsu_client/models/login_config.py index 8c2a687..2cb98b0 100644 --- a/ibutsu_client/models/login_config.py +++ b/ibutsu_client/models/login_config.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/login_error.py b/ibutsu_client/models/login_error.py index 39bbf5f..b44cca8 100644 --- a/ibutsu_client/models/login_error.py +++ b/ibutsu_client/models/login_error.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/login_support.py b/ibutsu_client/models/login_support.py index e1bf0c0..ac4f2f1 100644 --- a/ibutsu_client/models/login_support.py +++ b/ibutsu_client/models/login_support.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/login_token.py b/ibutsu_client/models/login_token.py index c1884df..b7dd236 100644 --- a/ibutsu_client/models/login_token.py +++ b/ibutsu_client/models/login_token.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/model_import.py b/ibutsu_client/models/model_import.py index 8a9cbf0..8e20d22 100644 --- a/ibutsu_client/models/model_import.py +++ b/ibutsu_client/models/model_import.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/pagination.py b/ibutsu_client/models/pagination.py index abd1f57..2bfdba6 100644 --- a/ibutsu_client/models/pagination.py +++ b/ibutsu_client/models/pagination.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/project.py b/ibutsu_client/models/project.py index 351cb57..4f0a202 100644 --- a/ibutsu_client/models/project.py +++ b/ibutsu_client/models/project.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/project_list.py b/ibutsu_client/models/project_list.py index f35080a..a4491d1 100644 --- a/ibutsu_client/models/project_list.py +++ b/ibutsu_client/models/project_list.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/report.py b/ibutsu_client/models/report.py deleted file mode 100644 index 565cc38..0000000 --- a/ibutsu_client/models/report.py +++ /dev/null @@ -1,122 +0,0 @@ -""" -Ibutsu API - -A system to store and query test results - -The version of the OpenAPI document: 2.7.4 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" - -from __future__ import annotations - -import json -import pprint -import re # noqa: F401 -from typing import Any, ClassVar, Self -from uuid import UUID - -from pydantic import BaseModel, ConfigDict, Field, StrictStr - -from ibutsu_client.models.report_parameters import ReportParameters - - -class Report(BaseModel): - """ - Report - """ - - id: UUID | None = Field(default=None, description="Unique ID of the report") - filename: StrictStr | None = Field(default=None, description="The filename of the report") - mimetype: StrictStr | None = Field( - default=None, description="The mime type of the downloadable file" - ) - url: StrictStr | None = Field( - default=None, description="The URL to the downloadable report (deprecated)" - ) - download_url: StrictStr | None = Field( - default=None, description="The URL to the downloadable report" - ) - view_url: StrictStr | None = Field(default=None, description="The URL to the viewable report") - parameters: ReportParameters | None = None - status: StrictStr | None = Field( - default=None, description='The status of the report, one of "pending", "running", "done"' - ) - __properties: ClassVar[list[str]] = [ - "id", - "filename", - "mimetype", - "url", - "download_url", - "view_url", - "parameters", - "status", - ] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self | None: - """Create an instance of Report from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: set[str] = set() - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of parameters - if self.parameters: - _dict["parameters"] = self.parameters.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: dict[str, Any] | None) -> Self | None: - """Create an instance of Report from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate( - { - "id": obj.get("id"), - "filename": obj.get("filename"), - "mimetype": obj.get("mimetype"), - "url": obj.get("url"), - "download_url": obj.get("download_url"), - "view_url": obj.get("view_url"), - "parameters": ReportParameters.from_dict(obj["parameters"]) - if obj.get("parameters") is not None - else None, - "status": obj.get("status"), - } - ) - return _obj diff --git a/ibutsu_client/models/report_list.py b/ibutsu_client/models/report_list.py deleted file mode 100644 index dd7449a..0000000 --- a/ibutsu_client/models/report_list.py +++ /dev/null @@ -1,102 +0,0 @@ -""" -Ibutsu API - -A system to store and query test results - -The version of the OpenAPI document: 2.7.4 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" - -from __future__ import annotations - -import json -import pprint -import re # noqa: F401 -from typing import Any, ClassVar, Self - -from pydantic import BaseModel, ConfigDict - -from ibutsu_client.models.pagination import Pagination -from ibutsu_client.models.report import Report - - -class ReportList(BaseModel): - """ - ReportList - """ - - reports: list[Report] | None = None - pagination: Pagination | None = None - __properties: ClassVar[list[str]] = ["reports", "pagination"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self | None: - """Create an instance of ReportList from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: set[str] = set() - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in reports (list) - _items = [] - if self.reports: - for _item_reports in self.reports: - if _item_reports: - _items.append(_item_reports.to_dict()) - _dict["reports"] = _items - # override the default output from pydantic by calling `to_dict()` of pagination - if self.pagination: - _dict["pagination"] = self.pagination.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: dict[str, Any] | None) -> Self | None: - """Create an instance of ReportList from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate( - { - "reports": [Report.from_dict(_item) for _item in obj["reports"]] - if obj.get("reports") is not None - else None, - "pagination": Pagination.from_dict(obj["pagination"]) - if obj.get("pagination") is not None - else None, - } - ) - return _obj diff --git a/ibutsu_client/models/report_parameters.py b/ibutsu_client/models/report_parameters.py deleted file mode 100644 index a578ad7..0000000 --- a/ibutsu_client/models/report_parameters.py +++ /dev/null @@ -1,85 +0,0 @@ -""" -Ibutsu API - -A system to store and query test results - -The version of the OpenAPI document: 2.7.4 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" - -from __future__ import annotations - -import json -import pprint -import re # noqa: F401 -from typing import Any, ClassVar, Self - -from pydantic import BaseModel, ConfigDict, Field, StrictStr - - -class ReportParameters(BaseModel): - """ - ReportParameters - """ - - type: StrictStr = Field(description="The type of report to generate") - filter: StrictStr | None = Field( - default=None, description="A regular expression to filter test results by" - ) - source: StrictStr | None = Field(default=None, description="The source of the test results") - __properties: ClassVar[list[str]] = ["type", "filter", "source"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self | None: - """Create an instance of ReportParameters from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: set[str] = set() - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: dict[str, Any] | None) -> Self | None: - """Create an instance of ReportParameters from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate( - {"type": obj.get("type"), "filter": obj.get("filter"), "source": obj.get("source")} - ) - return _obj diff --git a/ibutsu_client/models/result.py b/ibutsu_client/models/result.py index d146688..da7eba0 100644 --- a/ibutsu_client/models/result.py +++ b/ibutsu_client/models/result.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -69,7 +69,6 @@ class Result(BaseModel): ] @field_validator("result") - @classmethod def result_validate_enum(cls, value): """Validates the enum""" if value is None: diff --git a/ibutsu_client/models/result_list.py b/ibutsu_client/models/result_list.py index 4e55783..40066d2 100644 --- a/ibutsu_client/models/result_list.py +++ b/ibutsu_client/models/result_list.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/run.py b/ibutsu_client/models/run.py index 0c8fc5e..2a7092f 100644 --- a/ibutsu_client/models/run.py +++ b/ibutsu_client/models/run.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/run_list.py b/ibutsu_client/models/run_list.py index bf2830d..79278c3 100644 --- a/ibutsu_client/models/run_list.py +++ b/ibutsu_client/models/run_list.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/token.py b/ibutsu_client/models/token.py index 55b2579..cd35c71 100644 --- a/ibutsu_client/models/token.py +++ b/ibutsu_client/models/token.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/token_list.py b/ibutsu_client/models/token_list.py index 36b7203..0bbacca 100644 --- a/ibutsu_client/models/token_list.py +++ b/ibutsu_client/models/token_list.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/update_run.py b/ibutsu_client/models/update_run.py index 2d447aa..d2801ca 100644 --- a/ibutsu_client/models/update_run.py +++ b/ibutsu_client/models/update_run.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/user.py b/ibutsu_client/models/user.py index fc9c07c..cf89886 100644 --- a/ibutsu_client/models/user.py +++ b/ibutsu_client/models/user.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/user_list.py b/ibutsu_client/models/user_list.py index 679b4d8..3016fec 100644 --- a/ibutsu_client/models/user_list.py +++ b/ibutsu_client/models/user_list.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/widget_config.py b/ibutsu_client/models/widget_config.py index 9b6b77e..36ada88 100644 --- a/ibutsu_client/models/widget_config.py +++ b/ibutsu_client/models/widget_config.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/widget_config_list.py b/ibutsu_client/models/widget_config_list.py index 5133563..fa420ed 100644 --- a/ibutsu_client/models/widget_config_list.py +++ b/ibutsu_client/models/widget_config_list.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/widget_param.py b/ibutsu_client/models/widget_param.py index 93b0f9d..53d2ddc 100644 --- a/ibutsu_client/models/widget_param.py +++ b/ibutsu_client/models/widget_param.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/widget_type.py b/ibutsu_client/models/widget_type.py index 29d9fa8..a616874 100644 --- a/ibutsu_client/models/widget_type.py +++ b/ibutsu_client/models/widget_type.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/models/widget_type_list.py b/ibutsu_client/models/widget_type_list.py index 6188410..c549d7f 100644 --- a/ibutsu_client/models/widget_type_list.py +++ b/ibutsu_client/models/widget_type_list.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/ibutsu_client/rest.py b/ibutsu_client/rest.py index 95829a6..f17bb49 100644 --- a/ibutsu_client/rest.py +++ b/ibutsu_client/rest.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/pyproject.toml b/pyproject.toml index f216eb7..f30de30 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -197,6 +197,7 @@ ignore = [ "ibutsu_client/**" = [ "N802", # Function name should be lowercase - generated code "N803", # Argument name should be lowercase - generated code + "N805", # First argument of a method should be named `self` - Pydantic validators use `cls` "N806", # Variable should be lowercase - generated code "N815", # Variable should not be mixedCase - generated code "N816", # Variable should not be mixedCase - generated code diff --git a/test/test_account_recovery.py b/test/test_account_recovery.py index bcfa0f7..c0525c4 100644 --- a/test/test_account_recovery.py +++ b/test/test_account_recovery.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_account_registration.py b/test/test_account_registration.py index 59277b5..e74bdff 100644 --- a/test/test_account_registration.py +++ b/test/test_account_registration.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_account_reset.py b/test/test_account_reset.py index 9bab3f0..4c5a173 100644 --- a/test/test_account_reset.py +++ b/test/test_account_reset.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_admin_project_management_api.py b/test/test_admin_project_management_api.py index badc1dd..99e7f57 100644 --- a/test/test_admin_project_management_api.py +++ b/test/test_admin_project_management_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_admin_user_management_api.py b/test/test_admin_user_management_api.py index 2759a3d..711808e 100644 --- a/test/test_admin_user_management_api.py +++ b/test/test_admin_user_management_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_artifact.py b/test/test_artifact.py index c1f6e7a..840310a 100644 --- a/test/test_artifact.py +++ b/test/test_artifact.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_artifact_api.py b/test/test_artifact_api.py index 7c00da6..642bd60 100644 --- a/test/test_artifact_api.py +++ b/test/test_artifact_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_artifact_list.py b/test/test_artifact_list.py index db2883c..e330907 100644 --- a/test/test_artifact_list.py +++ b/test/test_artifact_list.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_token.py b/test/test_create_token.py index 7bafd62..694436c 100644 --- a/test/test_create_token.py +++ b/test/test_create_token.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_credentials.py b/test/test_credentials.py index 2a7ede4..d48090f 100644 --- a/test/test_credentials.py +++ b/test/test_credentials.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_dashboard.py b/test/test_dashboard.py index e7567c0..c06671d 100644 --- a/test/test_dashboard.py +++ b/test/test_dashboard.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_dashboard_api.py b/test/test_dashboard_api.py index 89511ff..11bb6e4 100644 --- a/test/test_dashboard_api.py +++ b/test/test_dashboard_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_dashboard_list.py b/test/test_dashboard_list.py index de147a5..9431be9 100644 --- a/test/test_dashboard_list.py +++ b/test/test_dashboard_list.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_report_types200_response_inner.py b/test/test_get_report_types200_response_inner.py deleted file mode 100644 index 346799c..0000000 --- a/test/test_get_report_types200_response_inner.py +++ /dev/null @@ -1,51 +0,0 @@ -""" -Ibutsu API - -A system to store and query test results - -The version of the OpenAPI document: 2.7.4 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" - -import unittest - -from ibutsu_client.models.get_report_types200_response_inner import GetReportTypes200ResponseInner - - -class TestGetReportTypes200ResponseInner(unittest.TestCase): - """GetReportTypes200ResponseInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetReportTypes200ResponseInner: - """Test GetReportTypes200ResponseInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" - # uncomment below to create an instance of `GetReportTypes200ResponseInner` - """ - model = GetReportTypes200ResponseInner() - if include_optional: - return GetReportTypes200ResponseInner( - type = 'csv', - name = 'CSV' - ) - else: - return GetReportTypes200ResponseInner( - ) - """ - - def testGetReportTypes200ResponseInner(self): - """Test GetReportTypes200ResponseInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == "__main__": - unittest.main() diff --git a/test/test_group.py b/test/test_group.py index 9a1c861..329c32b 100644 --- a/test/test_group.py +++ b/test/test_group.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_group_api.py b/test/test_group_api.py index 5af5b12..ae0238c 100644 --- a/test/test_group_api.py +++ b/test/test_group_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_group_list.py b/test/test_group_list.py index 040944d..2d0f943 100644 --- a/test/test_group_list.py +++ b/test/test_group_list.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_health.py b/test/test_health.py index 85c18ef..b30962b 100644 --- a/test/test_health.py +++ b/test/test_health.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_health_api.py b/test/test_health_api.py index 9020e90..943d9f0 100644 --- a/test/test_health_api.py +++ b/test/test_health_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_health_info.py b/test/test_health_info.py index cc8dfa6..bf1c8e1 100644 --- a/test/test_health_info.py +++ b/test/test_health_info.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_import_api.py b/test/test_import_api.py index 3f56f57..17bd315 100644 --- a/test/test_import_api.py +++ b/test/test_import_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_login_api.py b/test/test_login_api.py index 5e91f4b..c88f564 100644 --- a/test/test_login_api.py +++ b/test/test_login_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_login_config.py b/test/test_login_config.py index b45a7a7..50dd4e2 100644 --- a/test/test_login_config.py +++ b/test/test_login_config.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_login_error.py b/test/test_login_error.py index b0320cb..f60a03a 100644 --- a/test/test_login_error.py +++ b/test/test_login_error.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_login_support.py b/test/test_login_support.py index c4125e0..c306e88 100644 --- a/test/test_login_support.py +++ b/test/test_login_support.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_login_token.py b/test/test_login_token.py index e9315ff..93bc265 100644 --- a/test/test_login_token.py +++ b/test/test_login_token.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_model_import.py b/test/test_model_import.py index 866b3af..a065eae 100644 --- a/test/test_model_import.py +++ b/test/test_model_import.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_pagination.py b/test/test_pagination.py index 3838c4f..c23ef08 100644 --- a/test/test_pagination.py +++ b/test/test_pagination.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_project.py b/test/test_project.py index 7def128..03de26f 100644 --- a/test/test_project.py +++ b/test/test_project.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_project_api.py b/test/test_project_api.py index 7d9fc96..b0abd2f 100644 --- a/test/test_project_api.py +++ b/test/test_project_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_project_list.py b/test/test_project_list.py index 03862f7..33d7c3a 100644 --- a/test/test_project_list.py +++ b/test/test_project_list.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_report.py b/test/test_report.py deleted file mode 100644 index 82c15fa..0000000 --- a/test/test_report.py +++ /dev/null @@ -1,57 +0,0 @@ -""" -Ibutsu API - -A system to store and query test results - -The version of the OpenAPI document: 2.7.4 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" - -import unittest - -from ibutsu_client.models.report import Report - - -class TestReport(unittest.TestCase): - """Report unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Report: - """Test Report - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" - # uncomment below to create an instance of `Report` - """ - model = Report() - if include_optional: - return Report( - id = 'a9560d7d-dbe4-4a7f-8d09-dde6b5b137ae', - filename = 'myreport.zip', - mimetype = 'application/zip', - url = 'http://ibutsu/reports/download/myreport.zip', - download_url = 'http://ibutsu/reports/download/myreport.zip', - view_url = 'http://ibutsu/reports/view/myreport.html', - parameters = {"type":"dashboard","filter":"test_navigation","source":"iqe-jenkins"}, - status = 'done' - ) - else: - return Report( - ) - """ - - def testReport(self): - """Test Report""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == "__main__": - unittest.main() diff --git a/test/test_report_api.py b/test/test_report_api.py deleted file mode 100644 index 31be8d5..0000000 --- a/test/test_report_api.py +++ /dev/null @@ -1,70 +0,0 @@ -""" -Ibutsu API - -A system to store and query test results - -The version of the OpenAPI document: 2.7.4 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" - -import unittest - -from ibutsu_client.api.report_api import ReportApi - - -class TestReportApi(unittest.TestCase): - """ReportApi unit test stubs""" - - def setUp(self) -> None: - self.api = ReportApi() - - def tearDown(self) -> None: - pass - - def test_add_report(self) -> None: - """Test case for add_report - - Create a new report - """ - - def test_delete_report(self) -> None: - """Test case for delete_report - - Delete a report - """ - - def test_download_report(self) -> None: - """Test case for download_report - - Download a report - """ - - def test_get_report(self) -> None: - """Test case for get_report - - Get a report - """ - - def test_get_report_list(self) -> None: - """Test case for get_report_list - - Get a list of reports - """ - - def test_get_report_types(self) -> None: - """Test case for get_report_types - - Get a list of report types - """ - - def test_view_report(self) -> None: - """Test case for view_report - - View a report - """ - - -if __name__ == "__main__": - unittest.main() diff --git a/test/test_report_list.py b/test/test_report_list.py deleted file mode 100644 index d68eda7..0000000 --- a/test/test_report_list.py +++ /dev/null @@ -1,53 +0,0 @@ -""" -Ibutsu API - -A system to store and query test results - -The version of the OpenAPI document: 2.7.4 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" - -import unittest - -from ibutsu_client.models.report_list import ReportList - - -class TestReportList(unittest.TestCase): - """ReportList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReportList: - """Test ReportList - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" - # uncomment below to create an instance of `ReportList` - """ - model = ReportList() - if include_optional: - return ReportList( - reports = [ - {"id":"a9560d7d-dbe4-4a7f-8d09-dde6b5b137ae","filename":"myreport.zip","mimetype":"application/zip","url":"http://ibutsu/reports/download/myreport.zip","download_url":"http://ibutsu/reports/download/myreport.zip","view_url":"http://ibutsu/reports/view/myreport.zip","parameters":{"type":"dashboard","filter":"test_navigation","source":"iqe-jenkins"},"status":"done"} - ], - pagination = {"page":2,"pageSize":25,"totalPages":10,"totalItems":243} - ) - else: - return ReportList( - ) - """ - - def testReportList(self): - """Test ReportList""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == "__main__": - unittest.main() diff --git a/test/test_report_parameters.py b/test/test_report_parameters.py deleted file mode 100644 index 23f6783..0000000 --- a/test/test_report_parameters.py +++ /dev/null @@ -1,53 +0,0 @@ -""" -Ibutsu API - -A system to store and query test results - -The version of the OpenAPI document: 2.7.4 -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" - -import unittest - -from ibutsu_client.models.report_parameters import ReportParameters - - -class TestReportParameters(unittest.TestCase): - """ReportParameters unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReportParameters: - """Test ReportParameters - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" - # uncomment below to create an instance of `ReportParameters` - """ - model = ReportParameters() - if include_optional: - return ReportParameters( - type = 'dashboard', - filter = 'test_navigation', - source = 'iqe-jenkins' - ) - else: - return ReportParameters( - type = 'dashboard', - ) - """ - - def testReportParameters(self): - """Test ReportParameters""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == "__main__": - unittest.main() diff --git a/test/test_result.py b/test/test_result.py index acb9525..8ba4382 100644 --- a/test/test_result.py +++ b/test/test_result.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_result_api.py b/test/test_result_api.py index 3499633..6fab139 100644 --- a/test/test_result_api.py +++ b/test/test_result_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_result_list.py b/test/test_result_list.py index 69844f6..bf379de 100644 --- a/test/test_result_list.py +++ b/test/test_result_list.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_run.py b/test/test_run.py index 0fd9a4c..9ebcfc7 100644 --- a/test/test_run.py +++ b/test/test_run.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_run_api.py b/test/test_run_api.py index 2d1df4e..e8e7dd0 100644 --- a/test/test_run_api.py +++ b/test/test_run_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_run_list.py b/test/test_run_list.py index a7e452d..25ea833 100644 --- a/test/test_run_list.py +++ b/test/test_run_list.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_task_api.py b/test/test_task_api.py index 658d1a9..68aa4a3 100644 --- a/test/test_task_api.py +++ b/test/test_task_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_token.py b/test/test_token.py index b997691..410cefa 100644 --- a/test/test_token.py +++ b/test/test_token.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_token_list.py b/test/test_token_list.py index 5a30e2c..66af94e 100644 --- a/test/test_token_list.py +++ b/test/test_token_list.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_run.py b/test/test_update_run.py index 821214a..ff42908 100644 --- a/test/test_update_run.py +++ b/test/test_update_run.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_user.py b/test/test_user.py index f425f4f..ee7b73f 100644 --- a/test/test_user.py +++ b/test/test_user.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_user_api.py b/test/test_user_api.py index 27170ed..e5e8f49 100644 --- a/test/test_user_api.py +++ b/test/test_user_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_user_list.py b/test/test_user_list.py index 63e36dc..a7c4157 100644 --- a/test/test_user_list.py +++ b/test/test_user_list.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_widget_api.py b/test/test_widget_api.py index 2b47918..b958709 100644 --- a/test/test_widget_api.py +++ b/test/test_widget_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_widget_config.py b/test/test_widget_config.py index da772e0..06f74ba 100644 --- a/test/test_widget_config.py +++ b/test/test_widget_config.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_widget_config_api.py b/test/test_widget_config_api.py index 4dfd762..ce4b273 100644 --- a/test/test_widget_config_api.py +++ b/test/test_widget_config_api.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_widget_config_list.py b/test/test_widget_config_list.py index 789d258..9e0669a 100644 --- a/test/test_widget_config_list.py +++ b/test/test_widget_config_list.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_widget_param.py b/test/test_widget_param.py index 47ee4ce..2cf08a0 100644 --- a/test/test_widget_param.py +++ b/test/test_widget_param.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_widget_type.py b/test/test_widget_type.py index be5c1b2..e9347e6 100644 --- a/test/test_widget_type.py +++ b/test/test_widget_type.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_widget_type_list.py b/test/test_widget_type_list.py index 25c49df..51dece3 100644 --- a/test/test_widget_type_list.py +++ b/test/test_widget_type_list.py @@ -3,7 +3,7 @@ A system to store and query test results -The version of the OpenAPI document: 2.7.4 +The version of the OpenAPI document: 2.8.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually.