From c3adaafa1b478e804b37e2c19d3ff115ef2f921c Mon Sep 17 00:00:00 2001 From: Patience Igiraneza Date: Fri, 20 Jun 2025 15:00:42 +0200 Subject: [PATCH 1/3] Feat: change configurations files to generate SDK V1.0.12 --- config.json | 2 +- openapi.yaml | 17 +++++++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/config.json b/config.json index dc0a208..cfd2810 100644 --- a/config.json +++ b/config.json @@ -1,7 +1,7 @@ { "packageName": "workplace_client", "projectName": "truehost-workplace-api-client", - "packageVersion": "1.0.11", + "packageVersion": "1.0.12", "packageUrl": "https://github.com/truehostcloud/workplace-python-client", "packageCompany": "Truehost", "packageAuthor": "Patience Igiraneza", diff --git a/openapi.yaml b/openapi.yaml index 63eccbb..43ea449 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1,8 +1,8 @@ swagger: '2.0' info: - title: Workplace Console API - description: API for managing email and workplace service subscriptions. - termsOfService: https://truehost.com/terms-of-service + title: Truehost Workpace API + description: Truehost Workpace API + termsOfService: https://www.google.com/policies/terms/ contact: email: support@truehost.cloud license: @@ -10,7 +10,7 @@ info: version: v1 host: workplace-console.truehost.cloud schemes: -- https +- http basePath: /api consumes: - application/json @@ -170,6 +170,15 @@ paths: schema: required: - score + - message + - domain + - all_dns_score + - found + - total + - missing_dns + - other_missing_dns + - found_dns + - error type: object properties: score: From 258d65eddad624ee566e9ca47b517cf31881da0c Mon Sep 17 00:00:00 2001 From: Patience Igiraneza Date: Fri, 20 Jun 2025 15:05:25 +0200 Subject: [PATCH 2/3] feat: update openapi project descriptions --- openapi.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 43ea449..c242d03 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1,8 +1,8 @@ swagger: '2.0' info: - title: Truehost Workpace API - description: Truehost Workpace API - termsOfService: https://www.google.com/policies/terms/ + title: Workplace Console API + description: API for managing email and workplace service subscriptions. + termsOfService: https://truehost.com/terms-of-service contact: email: support@truehost.cloud license: @@ -10,7 +10,7 @@ info: version: v1 host: workplace-console.truehost.cloud schemes: -- http +- https basePath: /api consumes: - application/json From b3ec826e6c60c13720aa87dce1a6c33225be0b33 Mon Sep 17 00:00:00 2001 From: Patience Igiraneza Date: Fri, 20 Jun 2025 15:11:24 +0200 Subject: [PATCH 3/3] Feat: generate python SDK --- README.md | 2 +- docs/DnsInfoCreate200Response.md | 18 ++++++++-------- pyproject.toml | 2 +- setup.py | 2 +- workplace_client/.DS_Store | Bin 0 -> 6148 bytes workplace_client/__init__.py | 2 +- workplace_client/api_client.py | 2 +- workplace_client/configuration.py | 2 +- .../models/dns_info_create200_response.py | 20 +++++++++--------- 9 files changed, 25 insertions(+), 25 deletions(-) create mode 100644 workplace_client/.DS_Store diff --git a/README.md b/README.md index ba30b27..a1f0c6b 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ API for managing email and workplace service subscriptions. This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1 -- Package version: 1.0.11 +- Package version: 1.0.12 - Generator version: 7.13.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen diff --git a/docs/DnsInfoCreate200Response.md b/docs/DnsInfoCreate200Response.md index 70e7d6e..dccc77f 100644 --- a/docs/DnsInfoCreate200Response.md +++ b/docs/DnsInfoCreate200Response.md @@ -6,15 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **score** | **float** | | -**message** | **str** | | [optional] -**domain** | **str** | | [optional] -**all_dns_score** | **float** | | [optional] -**found** | **float** | | [optional] -**total** | **float** | | [optional] -**missing_dns** | **List[object]** | | [optional] -**other_missing_dns** | **List[object]** | | [optional] -**found_dns** | **object** | | [optional] -**error** | **List[str]** | | [optional] +**message** | **str** | | +**domain** | **str** | | +**all_dns_score** | **float** | | +**found** | **float** | | +**total** | **float** | | +**missing_dns** | **List[object]** | | +**other_missing_dns** | **List[object]** | | +**found_dns** | **object** | | +**error** | **List[str]** | | ## Example diff --git a/pyproject.toml b/pyproject.toml index f6155b1..05e9cd6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "workplace_client" -version = "1.0.11" +version = "1.0.12" description = "Workplace Console API" authors = ["OpenAPI Generator Community "] license = "BSD License" diff --git a/setup.py b/setup.py index 608b168..eb52846 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "truehost-workplace-api-client" -VERSION = "1.0.11" +VERSION = "1.0.12" PYTHON_REQUIRES = ">= 3.9" REQUIRES = [ "urllib3 >= 2.1.0, < 3.0.0", diff --git a/workplace_client/.DS_Store b/workplace_client/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..390a3d162b0c91b41681f5a4709acf56264108f8 GIT binary patch literal 6148 zcmeHKJ5Izv47J%6ilEt&azsPRN*rKV!U^^Qumk~8qC`UUIRclU=L$5ma2YxZp2uD` z0}CZWU`sP^;?LN5Qf6Wz;@M3#C7KXXfg#AUSRkOTcp@l^w}A32AqL+2IPDQ z7=qETS4>9-rqlue$51E1T6zhI35L(Xdz4aAIpd*fKAh z7f#u+e@O1cQPF2-z!}IHupWIP_x~|InYB%R9^y~VfHUyN7~pX^FK2iuyIViKp4_zo v;{-!Q{CZhHu+Dx0@F3^NPBN-J$Qpjpuve5_M4!Te{v(hG@yQwZ0S4XxZdFJ} literal 0 HcmV?d00001 diff --git a/workplace_client/__init__.py b/workplace_client/__init__.py index 5453871..7ff2826 100644 --- a/workplace_client/__init__.py +++ b/workplace_client/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "1.0.11" +__version__ = "1.0.12" # import apis into sdk package from workplace_client.api.available_packages_api import AvailablePackagesApi diff --git a/workplace_client/api_client.py b/workplace_client/api_client.py index f774893..3cdcbc2 100644 --- a/workplace_client/api_client.py +++ b/workplace_client/api_client.py @@ -91,7 +91,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.0.11/python' + self.user_agent = 'OpenAPI-Generator/1.0.12/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/workplace_client/configuration.py b/workplace_client/configuration.py index 6dde997..8501e6c 100644 --- a/workplace_client/configuration.py +++ b/workplace_client/configuration.py @@ -532,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1\n"\ - "SDK Package Version: 1.0.11".\ + "SDK Package Version: 1.0.12".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/workplace_client/models/dns_info_create200_response.py b/workplace_client/models/dns_info_create200_response.py index 4531715..1347194 100644 --- a/workplace_client/models/dns_info_create200_response.py +++ b/workplace_client/models/dns_info_create200_response.py @@ -19,7 +19,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Any, ClassVar, Dict, List, Union from typing import Optional, Set from typing_extensions import Self @@ -28,15 +28,15 @@ class DnsInfoCreate200Response(BaseModel): DnsInfoCreate200Response """ # noqa: E501 score: Union[StrictFloat, StrictInt] - message: Optional[StrictStr] = None - domain: Optional[StrictStr] = None - all_dns_score: Optional[Union[StrictFloat, StrictInt]] = None - found: Optional[Union[StrictFloat, StrictInt]] = None - total: Optional[Union[StrictFloat, StrictInt]] = None - missing_dns: Optional[List[Dict[str, Any]]] = None - other_missing_dns: Optional[List[Dict[str, Any]]] = None - found_dns: Optional[Dict[str, Any]] = None - error: Optional[List[StrictStr]] = None + message: StrictStr + domain: StrictStr + all_dns_score: Union[StrictFloat, StrictInt] + found: Union[StrictFloat, StrictInt] + total: Union[StrictFloat, StrictInt] + missing_dns: List[Dict[str, Any]] + other_missing_dns: List[Dict[str, Any]] + found_dns: Dict[str, Any] + error: List[StrictStr] __properties: ClassVar[List[str]] = ["score", "message", "domain", "all_dns_score", "found", "total", "missing_dns", "other_missing_dns", "found_dns", "error"] model_config = ConfigDict(