foxclient 5.2.7__tar.gz → 5.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {foxclient-5.2.7 → foxclient-5.3.0}/PKG-INFO +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/README.md +2 -2
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/__init__.py +2 -2
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/api/device_api.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/api/paste_api.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/api/release_api.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/api/stats_api.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/api_client.py +2 -2
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/configuration.py +3 -3
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/exceptions.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/__init__.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/device_response.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/global_stats_aggregation_model.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/http_validation_error.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/list_response_release_response.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/list_response_short_device_response.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/list_response_short_release_response.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/list_response_str.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/maintainer_short_model.py +1 -1
- foxclient-5.3.0/foxclient/models/paste_input.py +89 -0
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/paste_output.py +13 -13
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/recovery_img_response.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/release_groups_response.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/release_response.py +2 -2
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/release_type.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/releases_sort.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/response_get_releases.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/short_device_response.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/short_release_response.py +2 -2
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/validation_error.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/validation_error_loc_inner.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/rest.py +2 -2
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient.egg-info/PKG-INFO +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/pyproject.toml +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/setup.py +2 -2
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_device_api.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_device_response.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_global_stats_aggregation_model.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_http_validation_error.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_list_response_release_response.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_list_response_short_device_response.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_list_response_short_release_response.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_list_response_str.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_maintainer_short_model.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_paste_api.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_paste_input.py +3 -7
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_paste_output.py +6 -5
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_recovery_img_response.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_release_api.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_release_groups_response.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_release_response.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_release_type.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_releases_sort.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_response_get_releases.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_short_device_response.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_short_release_response.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_stats_api.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_validation_error.py +1 -1
- {foxclient-5.2.7 → foxclient-5.3.0}/test/test_validation_error_loc_inner.py +1 -1
- foxclient-5.2.7/foxclient/models/paste_input.py +0 -111
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/api/__init__.py +0 -0
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/api_response.py +0 -0
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient/py.typed +0 -0
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient.egg-info/SOURCES.txt +0 -0
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient.egg-info/dependency_links.txt +0 -0
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient.egg-info/requires.txt +0 -0
- {foxclient-5.2.7 → foxclient-5.3.0}/foxclient.egg-info/top_level.txt +0 -0
- {foxclient-5.2.7 → foxclient-5.3.0}/setup.cfg +0 -0
|
@@ -12,8 +12,8 @@ The requests may be logged for analytics and development purposes.
|
|
|
12
12
|
|
|
13
13
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
14
14
|
|
|
15
|
-
- API version: 5.
|
|
16
|
-
- Package version: 5.
|
|
15
|
+
- API version: 5.3.0
|
|
16
|
+
- Package version: 5.3.0
|
|
17
17
|
- Generator version: 7.13.0
|
|
18
18
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
19
19
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
9
9
|
|
|
10
|
-
The version of the OpenAPI document: 5.
|
|
10
|
+
The version of the OpenAPI document: 5.3.0
|
|
11
11
|
Contact: admin@orangefox.tech
|
|
12
12
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
13
13
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
""" # noqa: E501
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
__version__ = "5.
|
|
18
|
+
__version__ = "5.3.0"
|
|
19
19
|
|
|
20
20
|
# import apis into sdk package
|
|
21
21
|
from foxclient.api.device_api import DeviceApi
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -91,7 +91,7 @@ class ApiClient:
|
|
|
91
91
|
self.default_headers[header_name] = header_value
|
|
92
92
|
self.cookie = cookie
|
|
93
93
|
# Set default User-Agent.
|
|
94
|
-
self.user_agent = 'OpenAPI-Generator/5.
|
|
94
|
+
self.user_agent = 'OpenAPI-Generator/5.3.0/python'
|
|
95
95
|
self.client_side_validation = configuration.client_side_validation
|
|
96
96
|
|
|
97
97
|
async def __aenter__(self):
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -515,8 +515,8 @@ class Configuration:
|
|
|
515
515
|
return "Python SDK Debug Report:\n"\
|
|
516
516
|
"OS: {env}\n"\
|
|
517
517
|
"Python Version: {pyversion}\n"\
|
|
518
|
-
"Version of the API: 5.
|
|
519
|
-
"SDK Package Version: 5.
|
|
518
|
+
"Version of the API: 5.3.0\n"\
|
|
519
|
+
"SDK Package Version: 5.3.0".\
|
|
520
520
|
format(env=sys.platform, pyversion=sys.version)
|
|
521
521
|
|
|
522
522
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
8
8
|
|
|
9
|
-
The version of the OpenAPI document: 5.
|
|
9
|
+
The version of the OpenAPI document: 5.3.0
|
|
10
10
|
Contact: admin@orangefox.tech
|
|
11
11
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
12
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
{foxclient-5.2.7 → foxclient-5.3.0}/foxclient/models/list_response_short_release_response.py
RENAMED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Fox API
|
|
5
|
+
|
|
6
|
+
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
|
+
Contact: admin@orangefox.tech
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
|
23
|
+
from typing_extensions import Annotated
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
class PasteInput(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
PasteInput
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
content: Annotated[str, Field(min_length=1, strict=True, max_length=5.3.00)] = Field(description="The text content of the paste")
|
|
32
|
+
__properties: ClassVar[List[str]] = ["content"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of PasteInput from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
67
|
+
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
return _dict
|
|
74
|
+
|
|
75
|
+
@classmethod
|
|
76
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
+
"""Create an instance of PasteInput from a dict"""
|
|
78
|
+
if obj is None:
|
|
79
|
+
return None
|
|
80
|
+
|
|
81
|
+
if not isinstance(obj, dict):
|
|
82
|
+
return cls.model_validate(obj)
|
|
83
|
+
|
|
84
|
+
_obj = cls.model_validate({
|
|
85
|
+
"content": obj.get("content")
|
|
86
|
+
})
|
|
87
|
+
return _obj
|
|
88
|
+
|
|
89
|
+
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -19,7 +19,7 @@ import re # noqa: F401
|
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
21
|
from datetime import datetime
|
|
22
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
|
23
23
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
@@ -28,11 +28,11 @@ class PasteOutput(BaseModel):
|
|
|
28
28
|
"""
|
|
29
29
|
PasteOutput
|
|
30
30
|
""" # noqa: E501
|
|
31
|
-
id:
|
|
32
|
-
content: StrictStr
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
__properties: ClassVar[List[str]] = ["
|
|
31
|
+
id: StrictStr = Field(description="Paste ID")
|
|
32
|
+
content: StrictStr = Field(description="The text content of the paste")
|
|
33
|
+
created_at: datetime = Field(description="When the paste was created")
|
|
34
|
+
is_owner: Optional[StrictBool] = Field(default=None, alias="isOwner")
|
|
35
|
+
__properties: ClassVar[List[str]] = ["id", "content", "created_at", "isOwner"]
|
|
36
36
|
|
|
37
37
|
model_config = ConfigDict(
|
|
38
38
|
populate_by_name=True,
|
|
@@ -73,10 +73,10 @@ class PasteOutput(BaseModel):
|
|
|
73
73
|
exclude=excluded_fields,
|
|
74
74
|
exclude_none=True,
|
|
75
75
|
)
|
|
76
|
-
# set to None if
|
|
76
|
+
# set to None if is_owner (nullable) is None
|
|
77
77
|
# and model_fields_set contains the field
|
|
78
|
-
if self.
|
|
79
|
-
_dict['
|
|
78
|
+
if self.is_owner is None and "is_owner" in self.model_fields_set:
|
|
79
|
+
_dict['isOwner'] = None
|
|
80
80
|
|
|
81
81
|
return _dict
|
|
82
82
|
|
|
@@ -90,10 +90,10 @@ class PasteOutput(BaseModel):
|
|
|
90
90
|
return cls.model_validate(obj)
|
|
91
91
|
|
|
92
92
|
_obj = cls.model_validate({
|
|
93
|
-
"
|
|
93
|
+
"id": obj.get("id"),
|
|
94
94
|
"content": obj.get("content"),
|
|
95
|
-
"
|
|
96
|
-
"
|
|
95
|
+
"created_at": obj.get("created_at"),
|
|
96
|
+
"isOwner": obj.get("isOwner")
|
|
97
97
|
})
|
|
98
98
|
return _obj
|
|
99
99
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -35,7 +35,7 @@ class ReleaseResponse(BaseModel):
|
|
|
35
35
|
filename: StrictStr
|
|
36
36
|
variant: StrictStr
|
|
37
37
|
device_id: StrictStr
|
|
38
|
-
var_date: Union[StrictFloat, StrictInt] = Field(alias="date")
|
|
38
|
+
var_date: Union[StrictFloat, StrictInt] = Field(description="Unix timestamp of the release date", alias="date")
|
|
39
39
|
md5: StrictStr
|
|
40
40
|
version: StrictStr
|
|
41
41
|
type: ReleaseType
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -34,7 +34,7 @@ class ShortReleaseResponse(BaseModel):
|
|
|
34
34
|
filename: StrictStr
|
|
35
35
|
variant: StrictStr
|
|
36
36
|
device_id: StrictStr
|
|
37
|
-
var_date: Union[StrictFloat, StrictInt] = Field(alias="date")
|
|
37
|
+
var_date: Union[StrictFloat, StrictInt] = Field(description="Unix timestamp of the release date", alias="date")
|
|
38
38
|
md5: StrictStr
|
|
39
39
|
version: StrictStr
|
|
40
40
|
type: ReleaseType
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -204,7 +204,7 @@ class RESTClientObject:
|
|
|
204
204
|
attempts=self.retries,
|
|
205
205
|
factor=2.0,
|
|
206
206
|
start_timeout=0.1,
|
|
207
|
-
max_timeout=5.
|
|
207
|
+
max_timeout=5.3.0
|
|
208
208
|
)
|
|
209
209
|
)
|
|
210
210
|
pool_manager = self.retry_client
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -22,7 +22,7 @@ from setuptools import setup, find_packages # noqa: H301
|
|
|
22
22
|
# prerequisite: setuptools
|
|
23
23
|
# http://pypi.python.org/pypi/setuptools
|
|
24
24
|
NAME = "foxclient"
|
|
25
|
-
VERSION = "5.
|
|
25
|
+
VERSION = "5.3.0"
|
|
26
26
|
PYTHON_REQUIRES = ">= 3.9"
|
|
27
27
|
REQUIRES = [
|
|
28
28
|
"urllib3 >= 2.1.0, < 3.0.0",
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -36,15 +36,11 @@ class TestPasteInput(unittest.TestCase):
|
|
|
36
36
|
model = PasteInput()
|
|
37
37
|
if include_optional:
|
|
38
38
|
return PasteInput(
|
|
39
|
-
|
|
40
|
-
content = '',
|
|
41
|
-
ip_address = '',
|
|
42
|
-
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
|
|
39
|
+
content = '0'
|
|
43
40
|
)
|
|
44
41
|
else:
|
|
45
42
|
return PasteInput(
|
|
46
|
-
content = '',
|
|
47
|
-
ip_address = '',
|
|
43
|
+
content = '0',
|
|
48
44
|
)
|
|
49
45
|
"""
|
|
50
46
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -36,15 +36,16 @@ class TestPasteOutput(unittest.TestCase):
|
|
|
36
36
|
model = PasteOutput()
|
|
37
37
|
if include_optional:
|
|
38
38
|
return PasteOutput(
|
|
39
|
-
id = '
|
|
39
|
+
id = '',
|
|
40
40
|
content = '',
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
42
|
+
is_owner = True
|
|
43
43
|
)
|
|
44
44
|
else:
|
|
45
45
|
return PasteOutput(
|
|
46
|
+
id = '',
|
|
46
47
|
content = '',
|
|
47
|
-
|
|
48
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
48
49
|
)
|
|
49
50
|
"""
|
|
50
51
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.3.0
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Fox API
|
|
5
|
-
|
|
6
|
-
Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: 5.2.7
|
|
9
|
-
Contact: admin@orangefox.tech
|
|
10
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
-
|
|
12
|
-
Do not edit the class manually.
|
|
13
|
-
""" # noqa: E501
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
from __future__ import annotations
|
|
17
|
-
import pprint
|
|
18
|
-
import re # noqa: F401
|
|
19
|
-
import json
|
|
20
|
-
|
|
21
|
-
from datetime import datetime
|
|
22
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
23
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
24
|
-
from typing_extensions import Annotated
|
|
25
|
-
from typing import Optional, Set
|
|
26
|
-
from typing_extensions import Self
|
|
27
|
-
|
|
28
|
-
class PasteInput(BaseModel):
|
|
29
|
-
"""
|
|
30
|
-
PasteInput
|
|
31
|
-
""" # noqa: E501
|
|
32
|
-
id: Optional[Annotated[str, Field(min_length=24, strict=True, max_length=24)]] = Field(default=None, alias="_id")
|
|
33
|
-
content: StrictStr
|
|
34
|
-
ip_address: StrictStr
|
|
35
|
-
created_at: Optional[datetime] = None
|
|
36
|
-
__properties: ClassVar[List[str]] = ["_id", "content", "ip_address", "created_at"]
|
|
37
|
-
|
|
38
|
-
@field_validator('id')
|
|
39
|
-
def id_validate_regular_expression(cls, value):
|
|
40
|
-
"""Validates the regular expression"""
|
|
41
|
-
if value is None:
|
|
42
|
-
return value
|
|
43
|
-
|
|
44
|
-
if not re.match(r"^[0-9a-f]{24}$", value):
|
|
45
|
-
raise ValueError(r"must validate the regular expression /^[0-9a-f]{24}$/")
|
|
46
|
-
return value
|
|
47
|
-
|
|
48
|
-
model_config = ConfigDict(
|
|
49
|
-
populate_by_name=True,
|
|
50
|
-
validate_assignment=True,
|
|
51
|
-
protected_namespaces=(),
|
|
52
|
-
)
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
def to_str(self) -> str:
|
|
56
|
-
"""Returns the string representation of the model using alias"""
|
|
57
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
58
|
-
|
|
59
|
-
def to_json(self) -> str:
|
|
60
|
-
"""Returns the JSON representation of the model using alias"""
|
|
61
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
62
|
-
return json.dumps(self.to_dict())
|
|
63
|
-
|
|
64
|
-
@classmethod
|
|
65
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
66
|
-
"""Create an instance of PasteInput from a JSON string"""
|
|
67
|
-
return cls.from_dict(json.loads(json_str))
|
|
68
|
-
|
|
69
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
70
|
-
"""Return the dictionary representation of the model using alias.
|
|
71
|
-
|
|
72
|
-
This has the following differences from calling pydantic's
|
|
73
|
-
`self.model_dump(by_alias=True)`:
|
|
74
|
-
|
|
75
|
-
* `None` is only added to the output dict for nullable fields that
|
|
76
|
-
were set at model initialization. Other fields with value `None`
|
|
77
|
-
are ignored.
|
|
78
|
-
"""
|
|
79
|
-
excluded_fields: Set[str] = set([
|
|
80
|
-
])
|
|
81
|
-
|
|
82
|
-
_dict = self.model_dump(
|
|
83
|
-
by_alias=True,
|
|
84
|
-
exclude=excluded_fields,
|
|
85
|
-
exclude_none=True,
|
|
86
|
-
)
|
|
87
|
-
# set to None if id (nullable) is None
|
|
88
|
-
# and model_fields_set contains the field
|
|
89
|
-
if self.id is None and "id" in self.model_fields_set:
|
|
90
|
-
_dict['_id'] = None
|
|
91
|
-
|
|
92
|
-
return _dict
|
|
93
|
-
|
|
94
|
-
@classmethod
|
|
95
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
96
|
-
"""Create an instance of PasteInput from a dict"""
|
|
97
|
-
if obj is None:
|
|
98
|
-
return None
|
|
99
|
-
|
|
100
|
-
if not isinstance(obj, dict):
|
|
101
|
-
return cls.model_validate(obj)
|
|
102
|
-
|
|
103
|
-
_obj = cls.model_validate({
|
|
104
|
-
"_id": obj.get("_id"),
|
|
105
|
-
"content": obj.get("content"),
|
|
106
|
-
"ip_address": obj.get("ip_address"),
|
|
107
|
-
"created_at": obj.get("created_at")
|
|
108
|
-
})
|
|
109
|
-
return _obj
|
|
110
|
-
|
|
111
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|