Skip to content

Commit 2961b98

Browse files
authored
Remove the preferences endpoints (#48)
* Remove preferences * Update changelog * Update changelog * Update changelog * Remove model * Update readme
1 parent fd7d94e commit 2961b98

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+68
-730
lines changed

.flake8

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
# W504 is the "line break before binary operator" error and is disabled since we use
44
# the black code formatter.
55
# W503 is disabled by default, but must be disabled explicitly when using `ignore`.
6-
ignore = E501, W503, W504
6+
# F401 is "unused import", which is hard to fix without modifying the templates
7+
ignore = E501, W503, W504, F401

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.16.0] - 2021-12-07
9+
10+
### Removed
11+
12+
- Removes the `preferences` endpoints (deprecated)
13+
814
## [1.15.2] - 2021-11-08
915

1016
### Added

patch_api/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
The core API used to integrate with Patch's service # noqa: E501
99
1010
The version of the OpenAPI document: v1
11-
Contact: developers@usepatch.com
11+
Contact: engineering@usepatch.com
1212
Generated by: https://openapi-generator.tech
1313
"""
1414

1515

1616
from __future__ import absolute_import
1717

18-
__version__ = "1.15.2"
18+
__version__ = "1.16.0"
1919

2020
# import ApiClient
2121
from patch_api.api_client import ApiClient

patch_api/api/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@
55
# import apis into api package
66
from patch_api.api.estimates_api import EstimatesApi
77
from patch_api.api.orders_api import OrdersApi
8-
from patch_api.api.preferences_api import PreferencesApi
98
from patch_api.api.projects_api import ProjectsApi
109
from patch_api.api.technology_types_api import TechnologyTypesApi

patch_api/api/estimates_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The core API used to integrate with Patch's service # noqa: E501
77
88
The version of the OpenAPI document: v1
9-
Contact: developers@usepatch.com
9+
Contact: engineering@usepatch.com
1010
Generated by: https://openapi-generator.tech
1111
"""
1212

patch_api/api/orders_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The core API used to integrate with Patch's service # noqa: E501
77
88
The version of the OpenAPI document: v1
9-
Contact: developers@usepatch.com
9+
Contact: engineering@usepatch.com
1010
Generated by: https://openapi-generator.tech
1111
"""
1212

patch_api/api/projects_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The core API used to integrate with Patch's service # noqa: E501
77
88
The version of the OpenAPI document: v1
9-
Contact: developers@usepatch.com
9+
Contact: engineering@usepatch.com
1010
Generated by: https://openapi-generator.tech
1111
"""
1212

patch_api/api/technology_types_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The core API used to integrate with Patch's service # noqa: E501
77
88
The version of the OpenAPI document: v1
9-
Contact: developers@usepatch.com
9+
Contact: engineering@usepatch.com
1010
Generated by: https://openapi-generator.tech
1111
"""
1212

patch_api/api_client.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
The core API used to integrate with Patch's service # noqa: E501
66
77
The version of the OpenAPI document: v1
8-
Contact: developers@usepatch.com
8+
Contact: engineering@usepatch.com
99
Generated by: https://openapi-generator.tech
1010
"""
1111

@@ -27,7 +27,6 @@
2727
import patch_api.models
2828
from patch_api.api.estimates_api import EstimatesApi
2929
from patch_api.api.orders_api import OrdersApi
30-
from patch_api.api.preferences_api import PreferencesApi
3130
from patch_api.api.projects_api import ProjectsApi
3231
from patch_api.api.technology_types_api import TechnologyTypesApi
3332

@@ -92,7 +91,7 @@ def __init__(
9291
self.default_headers[header_name] = header_value
9392
self.cookie = cookie
9493
# Set default User-Agent.
95-
self.user_agent = "patch-python/1.15.2"
94+
self.user_agent = "patch-python/1.16.0"
9695

9796
def __del__(self):
9897
if self._pool:
@@ -104,7 +103,6 @@ def __getattr__(self, method):
104103
resource = {
105104
"projects": ProjectsApi,
106105
"orders": OrdersApi,
107-
"preferences": PreferencesApi,
108106
"estimates": EstimatesApi,
109107
"technology_types": TechnologyTypesApi,
110108
}[method]

patch_api/configuration.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The core API used to integrate with Patch's service # noqa: E501
77
88
The version of the OpenAPI document: v1
9-
Contact: developers@usepatch.com
9+
Contact: engineering@usepatch.com
1010
Generated by: https://openapi-generator.tech
1111
"""
1212

@@ -341,7 +341,7 @@ def to_debug_report(self):
341341
"OS: {env}\n"
342342
"Python Version: {pyversion}\n"
343343
"Version of the API: v1\n"
344-
"SDK Package Version: 1.15.2".format(
344+
"SDK Package Version: 1.16.0".format(
345345
env=sys.platform, pyversion=sys.version
346346
)
347347
)
@@ -353,12 +353,12 @@ def get_host_settings(self):
353353
"""
354354
return [
355355
{
356-
"url": "https://{defaultHost}",
356+
"url": "{defaultUrl}",
357357
"description": "No description provided",
358358
"variables": {
359-
"defaultHost": {
359+
"defaultUrl": {
360360
"description": "No description provided",
361-
"default_value": "api.patch.io",
361+
"default_value": "https://api.patch.io",
362362
}
363363
},
364364
}

0 commit comments

Comments
 (0)