foxclient 5.2.4__tar.gz → 5.2.6__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.4 → foxclient-5.2.6}/PKG-INFO +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/README.md +6 -2
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/__init__.py +5 -2
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/api/__init__.py +1 -0
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/api/device_api.py +1 -1
- foxclient-5.2.6/foxclient/api/paste_api.py +587 -0
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/api/release_api.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/api/stats_api.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/api_client.py +2 -2
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/configuration.py +3 -3
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/exceptions.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/models/__init__.py +3 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/models/device_response.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/models/global_stats_aggregation_model.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/models/http_validation_error.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/models/list_response_release_response.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/models/list_response_short_device_response.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/models/list_response_short_release_response.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/models/list_response_str.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/models/maintainer_short_model.py +1 -1
- foxclient-5.2.6/foxclient/models/paste_input.py +111 -0
- foxclient-5.2.6/foxclient/models/paste_output.py +100 -0
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/models/recovery_img_response.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/models/release_groups_response.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/models/release_response.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/models/release_type.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/models/releases_sort.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/models/response_get_releases.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/models/short_device_response.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/models/short_release_response.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/models/validation_error.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/models/validation_error_loc_inner.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/rest.py +2 -2
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient.egg-info/PKG-INFO +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient.egg-info/SOURCES.txt +6 -0
- {foxclient-5.2.4 → foxclient-5.2.6}/pyproject.toml +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/setup.py +2 -2
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_device_api.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_device_response.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_global_stats_aggregation_model.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_http_validation_error.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_list_response_release_response.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_list_response_short_device_response.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_list_response_short_release_response.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_list_response_str.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_maintainer_short_model.py +1 -1
- foxclient-5.2.6/test/test_paste_api.py +46 -0
- foxclient-5.2.6/test/test_paste_input.py +57 -0
- foxclient-5.2.6/test/test_paste_output.py +57 -0
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_recovery_img_response.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_release_api.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_release_groups_response.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_release_response.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_release_type.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_releases_sort.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_response_get_releases.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_short_device_response.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_short_release_response.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_stats_api.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_validation_error.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/test/test_validation_error_loc_inner.py +1 -1
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/api_response.py +0 -0
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient/py.typed +0 -0
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient.egg-info/dependency_links.txt +0 -0
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient.egg-info/requires.txt +0 -0
- {foxclient-5.2.4 → foxclient-5.2.6}/foxclient.egg-info/top_level.txt +0 -0
- {foxclient-5.2.4 → foxclient-5.2.6}/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.2.
|
|
16
|
-
- Package version: 5.2.
|
|
15
|
+
- API version: 5.2.6
|
|
16
|
+
- Package version: 5.2.6
|
|
17
17
|
- Generator version: 7.13.0
|
|
18
18
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
19
19
|
|
|
@@ -100,6 +100,8 @@ Class | Method | HTTP request | Description
|
|
|
100
100
|
*DeviceApi* | [**get_device_deprecated**](docs/DeviceApi.md#get_device_deprecated) | **GET** /devices/{device_id} | Get Device Short
|
|
101
101
|
*DeviceApi* | [**get_devices**](docs/DeviceApi.md#get_devices) | **GET** /devices/ | Get Devices
|
|
102
102
|
*DeviceApi* | [**get_oems**](docs/DeviceApi.md#get_oems) | **GET** /oems/ | Get Oems
|
|
103
|
+
*PasteApi* | [**create_paste_paste_post**](docs/PasteApi.md#create_paste_paste_post) | **POST** /paste/ | Create Paste
|
|
104
|
+
*PasteApi* | [**get_paste_paste_paste_id_get**](docs/PasteApi.md#get_paste_paste_paste_id_get) | **GET** /paste/{paste_id} | Get Paste
|
|
103
105
|
*ReleaseApi* | [**get_release**](docs/ReleaseApi.md#get_release) | **GET** /releases/get | Get Release
|
|
104
106
|
*ReleaseApi* | [**get_release_deprecated**](docs/ReleaseApi.md#get_release_deprecated) | **GET** /releases/{release_id} | Get Release Short
|
|
105
107
|
*ReleaseApi* | [**get_releases**](docs/ReleaseApi.md#get_releases) | **GET** /releases/ | Get Releases
|
|
@@ -117,6 +119,8 @@ Class | Method | HTTP request | Description
|
|
|
117
119
|
- [ListResponseShortReleaseResponse](docs/ListResponseShortReleaseResponse.md)
|
|
118
120
|
- [ListResponseStr](docs/ListResponseStr.md)
|
|
119
121
|
- [MaintainerShortModel](docs/MaintainerShortModel.md)
|
|
122
|
+
- [PasteInput](docs/PasteInput.md)
|
|
123
|
+
- [PasteOutput](docs/PasteOutput.md)
|
|
120
124
|
- [RecoveryImgResponse](docs/RecoveryImgResponse.md)
|
|
121
125
|
- [ReleaseGroupsResponse](docs/ReleaseGroupsResponse.md)
|
|
122
126
|
- [ReleaseResponse](docs/ReleaseResponse.md)
|
|
@@ -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.2.
|
|
10
|
+
The version of the OpenAPI document: 5.2.6
|
|
11
11
|
Contact: admin@orangefox.tech
|
|
12
12
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
13
13
|
|
|
@@ -15,10 +15,11 @@
|
|
|
15
15
|
""" # noqa: E501
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
__version__ = "5.2.
|
|
18
|
+
__version__ = "5.2.6"
|
|
19
19
|
|
|
20
20
|
# import apis into sdk package
|
|
21
21
|
from foxclient.api.device_api import DeviceApi
|
|
22
|
+
from foxclient.api.paste_api import PasteApi
|
|
22
23
|
from foxclient.api.release_api import ReleaseApi
|
|
23
24
|
from foxclient.api.stats_api import StatsApi
|
|
24
25
|
|
|
@@ -42,6 +43,8 @@ from foxclient.models.list_response_short_device_response import ListResponseSho
|
|
|
42
43
|
from foxclient.models.list_response_short_release_response import ListResponseShortReleaseResponse
|
|
43
44
|
from foxclient.models.list_response_str import ListResponseStr
|
|
44
45
|
from foxclient.models.maintainer_short_model import MaintainerShortModel
|
|
46
|
+
from foxclient.models.paste_input import PasteInput
|
|
47
|
+
from foxclient.models.paste_output import PasteOutput
|
|
45
48
|
from foxclient.models.recovery_img_response import RecoveryImgResponse
|
|
46
49
|
from foxclient.models.release_groups_response import ReleaseGroupsResponse
|
|
47
50
|
from foxclient.models.release_response import ReleaseResponse
|
|
@@ -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.2.
|
|
8
|
+
The version of the OpenAPI document: 5.2.6
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -0,0 +1,587 @@
|
|
|
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.6
|
|
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
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from pydantic import StrictStr
|
|
21
|
+
from foxclient.models.paste_input import PasteInput
|
|
22
|
+
from foxclient.models.paste_output import PasteOutput
|
|
23
|
+
|
|
24
|
+
from foxclient.api_client import ApiClient, RequestSerialized
|
|
25
|
+
from foxclient.api_response import ApiResponse
|
|
26
|
+
from foxclient.rest import RESTResponseType
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class PasteApi:
|
|
30
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
31
|
+
Ref: https://openapi-generator.tech
|
|
32
|
+
|
|
33
|
+
Do not edit the class manually.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
def __init__(self, api_client=None) -> None:
|
|
37
|
+
if api_client is None:
|
|
38
|
+
api_client = ApiClient.get_default()
|
|
39
|
+
self.api_client = api_client
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@validate_call
|
|
43
|
+
async def create_paste_paste_post(
|
|
44
|
+
self,
|
|
45
|
+
paste_input: PasteInput,
|
|
46
|
+
_request_timeout: Union[
|
|
47
|
+
None,
|
|
48
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
49
|
+
Tuple[
|
|
50
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
52
|
+
]
|
|
53
|
+
] = None,
|
|
54
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
55
|
+
_content_type: Optional[StrictStr] = None,
|
|
56
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
57
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
58
|
+
) -> PasteOutput:
|
|
59
|
+
"""Create Paste
|
|
60
|
+
|
|
61
|
+
Create a new paste.
|
|
62
|
+
|
|
63
|
+
:param paste_input: (required)
|
|
64
|
+
:type paste_input: PasteInput
|
|
65
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
66
|
+
number provided, it will be total request
|
|
67
|
+
timeout. It can also be a pair (tuple) of
|
|
68
|
+
(connection, read) timeouts.
|
|
69
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
70
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
71
|
+
request; this effectively ignores the
|
|
72
|
+
authentication in the spec for a single request.
|
|
73
|
+
:type _request_auth: dict, optional
|
|
74
|
+
:param _content_type: force content-type for the request.
|
|
75
|
+
:type _content_type: str, Optional
|
|
76
|
+
:param _headers: set to override the headers for a single
|
|
77
|
+
request; this effectively ignores the headers
|
|
78
|
+
in the spec for a single request.
|
|
79
|
+
:type _headers: dict, optional
|
|
80
|
+
:param _host_index: set to override the host_index for a single
|
|
81
|
+
request; this effectively ignores the host_index
|
|
82
|
+
in the spec for a single request.
|
|
83
|
+
:type _host_index: int, optional
|
|
84
|
+
:return: Returns the result object.
|
|
85
|
+
""" # noqa: E501
|
|
86
|
+
|
|
87
|
+
_param = self._create_paste_paste_post_serialize(
|
|
88
|
+
paste_input=paste_input,
|
|
89
|
+
_request_auth=_request_auth,
|
|
90
|
+
_content_type=_content_type,
|
|
91
|
+
_headers=_headers,
|
|
92
|
+
_host_index=_host_index
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
96
|
+
'201': "PasteOutput",
|
|
97
|
+
'429': None,
|
|
98
|
+
'422': "HTTPValidationError",
|
|
99
|
+
}
|
|
100
|
+
response_data = await self.api_client.call_api(
|
|
101
|
+
*_param,
|
|
102
|
+
_request_timeout=_request_timeout
|
|
103
|
+
)
|
|
104
|
+
await response_data.read()
|
|
105
|
+
return self.api_client.response_deserialize(
|
|
106
|
+
response_data=response_data,
|
|
107
|
+
response_types_map=_response_types_map,
|
|
108
|
+
).data
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
@validate_call
|
|
112
|
+
async def create_paste_paste_post_with_http_info(
|
|
113
|
+
self,
|
|
114
|
+
paste_input: PasteInput,
|
|
115
|
+
_request_timeout: Union[
|
|
116
|
+
None,
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
118
|
+
Tuple[
|
|
119
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
120
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
121
|
+
]
|
|
122
|
+
] = None,
|
|
123
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
124
|
+
_content_type: Optional[StrictStr] = None,
|
|
125
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
126
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
127
|
+
) -> ApiResponse[PasteOutput]:
|
|
128
|
+
"""Create Paste
|
|
129
|
+
|
|
130
|
+
Create a new paste.
|
|
131
|
+
|
|
132
|
+
:param paste_input: (required)
|
|
133
|
+
:type paste_input: PasteInput
|
|
134
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
135
|
+
number provided, it will be total request
|
|
136
|
+
timeout. It can also be a pair (tuple) of
|
|
137
|
+
(connection, read) timeouts.
|
|
138
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
139
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
140
|
+
request; this effectively ignores the
|
|
141
|
+
authentication in the spec for a single request.
|
|
142
|
+
:type _request_auth: dict, optional
|
|
143
|
+
:param _content_type: force content-type for the request.
|
|
144
|
+
:type _content_type: str, Optional
|
|
145
|
+
:param _headers: set to override the headers for a single
|
|
146
|
+
request; this effectively ignores the headers
|
|
147
|
+
in the spec for a single request.
|
|
148
|
+
:type _headers: dict, optional
|
|
149
|
+
:param _host_index: set to override the host_index for a single
|
|
150
|
+
request; this effectively ignores the host_index
|
|
151
|
+
in the spec for a single request.
|
|
152
|
+
:type _host_index: int, optional
|
|
153
|
+
:return: Returns the result object.
|
|
154
|
+
""" # noqa: E501
|
|
155
|
+
|
|
156
|
+
_param = self._create_paste_paste_post_serialize(
|
|
157
|
+
paste_input=paste_input,
|
|
158
|
+
_request_auth=_request_auth,
|
|
159
|
+
_content_type=_content_type,
|
|
160
|
+
_headers=_headers,
|
|
161
|
+
_host_index=_host_index
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
165
|
+
'201': "PasteOutput",
|
|
166
|
+
'429': None,
|
|
167
|
+
'422': "HTTPValidationError",
|
|
168
|
+
}
|
|
169
|
+
response_data = await self.api_client.call_api(
|
|
170
|
+
*_param,
|
|
171
|
+
_request_timeout=_request_timeout
|
|
172
|
+
)
|
|
173
|
+
await response_data.read()
|
|
174
|
+
return self.api_client.response_deserialize(
|
|
175
|
+
response_data=response_data,
|
|
176
|
+
response_types_map=_response_types_map,
|
|
177
|
+
)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
@validate_call
|
|
181
|
+
async def create_paste_paste_post_without_preload_content(
|
|
182
|
+
self,
|
|
183
|
+
paste_input: PasteInput,
|
|
184
|
+
_request_timeout: Union[
|
|
185
|
+
None,
|
|
186
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
187
|
+
Tuple[
|
|
188
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
189
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
190
|
+
]
|
|
191
|
+
] = None,
|
|
192
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
193
|
+
_content_type: Optional[StrictStr] = None,
|
|
194
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
195
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
196
|
+
) -> RESTResponseType:
|
|
197
|
+
"""Create Paste
|
|
198
|
+
|
|
199
|
+
Create a new paste.
|
|
200
|
+
|
|
201
|
+
:param paste_input: (required)
|
|
202
|
+
:type paste_input: PasteInput
|
|
203
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
204
|
+
number provided, it will be total request
|
|
205
|
+
timeout. It can also be a pair (tuple) of
|
|
206
|
+
(connection, read) timeouts.
|
|
207
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
208
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
209
|
+
request; this effectively ignores the
|
|
210
|
+
authentication in the spec for a single request.
|
|
211
|
+
:type _request_auth: dict, optional
|
|
212
|
+
:param _content_type: force content-type for the request.
|
|
213
|
+
:type _content_type: str, Optional
|
|
214
|
+
:param _headers: set to override the headers for a single
|
|
215
|
+
request; this effectively ignores the headers
|
|
216
|
+
in the spec for a single request.
|
|
217
|
+
:type _headers: dict, optional
|
|
218
|
+
:param _host_index: set to override the host_index for a single
|
|
219
|
+
request; this effectively ignores the host_index
|
|
220
|
+
in the spec for a single request.
|
|
221
|
+
:type _host_index: int, optional
|
|
222
|
+
:return: Returns the result object.
|
|
223
|
+
""" # noqa: E501
|
|
224
|
+
|
|
225
|
+
_param = self._create_paste_paste_post_serialize(
|
|
226
|
+
paste_input=paste_input,
|
|
227
|
+
_request_auth=_request_auth,
|
|
228
|
+
_content_type=_content_type,
|
|
229
|
+
_headers=_headers,
|
|
230
|
+
_host_index=_host_index
|
|
231
|
+
)
|
|
232
|
+
|
|
233
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
234
|
+
'201': "PasteOutput",
|
|
235
|
+
'429': None,
|
|
236
|
+
'422': "HTTPValidationError",
|
|
237
|
+
}
|
|
238
|
+
response_data = await self.api_client.call_api(
|
|
239
|
+
*_param,
|
|
240
|
+
_request_timeout=_request_timeout
|
|
241
|
+
)
|
|
242
|
+
return response_data.response
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
def _create_paste_paste_post_serialize(
|
|
246
|
+
self,
|
|
247
|
+
paste_input,
|
|
248
|
+
_request_auth,
|
|
249
|
+
_content_type,
|
|
250
|
+
_headers,
|
|
251
|
+
_host_index,
|
|
252
|
+
) -> RequestSerialized:
|
|
253
|
+
|
|
254
|
+
_host = None
|
|
255
|
+
|
|
256
|
+
_collection_formats: Dict[str, str] = {
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
_path_params: Dict[str, str] = {}
|
|
260
|
+
_query_params: List[Tuple[str, str]] = []
|
|
261
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
262
|
+
_form_params: List[Tuple[str, str]] = []
|
|
263
|
+
_files: Dict[
|
|
264
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
265
|
+
] = {}
|
|
266
|
+
_body_params: Optional[bytes] = None
|
|
267
|
+
|
|
268
|
+
# process the path parameters
|
|
269
|
+
# process the query parameters
|
|
270
|
+
# process the header parameters
|
|
271
|
+
# process the form parameters
|
|
272
|
+
# process the body parameter
|
|
273
|
+
if paste_input is not None:
|
|
274
|
+
_body_params = paste_input
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
# set the HTTP header `Accept`
|
|
278
|
+
if 'Accept' not in _header_params:
|
|
279
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
280
|
+
[
|
|
281
|
+
'application/json'
|
|
282
|
+
]
|
|
283
|
+
)
|
|
284
|
+
|
|
285
|
+
# set the HTTP header `Content-Type`
|
|
286
|
+
if _content_type:
|
|
287
|
+
_header_params['Content-Type'] = _content_type
|
|
288
|
+
else:
|
|
289
|
+
_default_content_type = (
|
|
290
|
+
self.api_client.select_header_content_type(
|
|
291
|
+
[
|
|
292
|
+
'application/json'
|
|
293
|
+
]
|
|
294
|
+
)
|
|
295
|
+
)
|
|
296
|
+
if _default_content_type is not None:
|
|
297
|
+
_header_params['Content-Type'] = _default_content_type
|
|
298
|
+
|
|
299
|
+
# authentication setting
|
|
300
|
+
_auth_settings: List[str] = [
|
|
301
|
+
]
|
|
302
|
+
|
|
303
|
+
return self.api_client.param_serialize(
|
|
304
|
+
method='POST',
|
|
305
|
+
resource_path='/paste/',
|
|
306
|
+
path_params=_path_params,
|
|
307
|
+
query_params=_query_params,
|
|
308
|
+
header_params=_header_params,
|
|
309
|
+
body=_body_params,
|
|
310
|
+
post_params=_form_params,
|
|
311
|
+
files=_files,
|
|
312
|
+
auth_settings=_auth_settings,
|
|
313
|
+
collection_formats=_collection_formats,
|
|
314
|
+
_host=_host,
|
|
315
|
+
_request_auth=_request_auth
|
|
316
|
+
)
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
@validate_call
|
|
322
|
+
async def get_paste_paste_paste_id_get(
|
|
323
|
+
self,
|
|
324
|
+
paste_id: StrictStr,
|
|
325
|
+
_request_timeout: Union[
|
|
326
|
+
None,
|
|
327
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
328
|
+
Tuple[
|
|
329
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
330
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
331
|
+
]
|
|
332
|
+
] = None,
|
|
333
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
334
|
+
_content_type: Optional[StrictStr] = None,
|
|
335
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
336
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
337
|
+
) -> PasteOutput:
|
|
338
|
+
"""Get Paste
|
|
339
|
+
|
|
340
|
+
Get a paste by ID.
|
|
341
|
+
|
|
342
|
+
:param paste_id: (required)
|
|
343
|
+
:type paste_id: str
|
|
344
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
345
|
+
number provided, it will be total request
|
|
346
|
+
timeout. It can also be a pair (tuple) of
|
|
347
|
+
(connection, read) timeouts.
|
|
348
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
349
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
350
|
+
request; this effectively ignores the
|
|
351
|
+
authentication in the spec for a single request.
|
|
352
|
+
:type _request_auth: dict, optional
|
|
353
|
+
:param _content_type: force content-type for the request.
|
|
354
|
+
:type _content_type: str, Optional
|
|
355
|
+
:param _headers: set to override the headers for a single
|
|
356
|
+
request; this effectively ignores the headers
|
|
357
|
+
in the spec for a single request.
|
|
358
|
+
:type _headers: dict, optional
|
|
359
|
+
:param _host_index: set to override the host_index for a single
|
|
360
|
+
request; this effectively ignores the host_index
|
|
361
|
+
in the spec for a single request.
|
|
362
|
+
:type _host_index: int, optional
|
|
363
|
+
:return: Returns the result object.
|
|
364
|
+
""" # noqa: E501
|
|
365
|
+
|
|
366
|
+
_param = self._get_paste_paste_paste_id_get_serialize(
|
|
367
|
+
paste_id=paste_id,
|
|
368
|
+
_request_auth=_request_auth,
|
|
369
|
+
_content_type=_content_type,
|
|
370
|
+
_headers=_headers,
|
|
371
|
+
_host_index=_host_index
|
|
372
|
+
)
|
|
373
|
+
|
|
374
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
375
|
+
'200': "PasteOutput",
|
|
376
|
+
'404': None,
|
|
377
|
+
'429': None,
|
|
378
|
+
'422': "HTTPValidationError",
|
|
379
|
+
}
|
|
380
|
+
response_data = await self.api_client.call_api(
|
|
381
|
+
*_param,
|
|
382
|
+
_request_timeout=_request_timeout
|
|
383
|
+
)
|
|
384
|
+
await response_data.read()
|
|
385
|
+
return self.api_client.response_deserialize(
|
|
386
|
+
response_data=response_data,
|
|
387
|
+
response_types_map=_response_types_map,
|
|
388
|
+
).data
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
@validate_call
|
|
392
|
+
async def get_paste_paste_paste_id_get_with_http_info(
|
|
393
|
+
self,
|
|
394
|
+
paste_id: StrictStr,
|
|
395
|
+
_request_timeout: Union[
|
|
396
|
+
None,
|
|
397
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
398
|
+
Tuple[
|
|
399
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
400
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
401
|
+
]
|
|
402
|
+
] = None,
|
|
403
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
404
|
+
_content_type: Optional[StrictStr] = None,
|
|
405
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
406
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
407
|
+
) -> ApiResponse[PasteOutput]:
|
|
408
|
+
"""Get Paste
|
|
409
|
+
|
|
410
|
+
Get a paste by ID.
|
|
411
|
+
|
|
412
|
+
:param paste_id: (required)
|
|
413
|
+
:type paste_id: str
|
|
414
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
415
|
+
number provided, it will be total request
|
|
416
|
+
timeout. It can also be a pair (tuple) of
|
|
417
|
+
(connection, read) timeouts.
|
|
418
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
419
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
420
|
+
request; this effectively ignores the
|
|
421
|
+
authentication in the spec for a single request.
|
|
422
|
+
:type _request_auth: dict, optional
|
|
423
|
+
:param _content_type: force content-type for the request.
|
|
424
|
+
:type _content_type: str, Optional
|
|
425
|
+
:param _headers: set to override the headers for a single
|
|
426
|
+
request; this effectively ignores the headers
|
|
427
|
+
in the spec for a single request.
|
|
428
|
+
:type _headers: dict, optional
|
|
429
|
+
:param _host_index: set to override the host_index for a single
|
|
430
|
+
request; this effectively ignores the host_index
|
|
431
|
+
in the spec for a single request.
|
|
432
|
+
:type _host_index: int, optional
|
|
433
|
+
:return: Returns the result object.
|
|
434
|
+
""" # noqa: E501
|
|
435
|
+
|
|
436
|
+
_param = self._get_paste_paste_paste_id_get_serialize(
|
|
437
|
+
paste_id=paste_id,
|
|
438
|
+
_request_auth=_request_auth,
|
|
439
|
+
_content_type=_content_type,
|
|
440
|
+
_headers=_headers,
|
|
441
|
+
_host_index=_host_index
|
|
442
|
+
)
|
|
443
|
+
|
|
444
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
445
|
+
'200': "PasteOutput",
|
|
446
|
+
'404': None,
|
|
447
|
+
'429': None,
|
|
448
|
+
'422': "HTTPValidationError",
|
|
449
|
+
}
|
|
450
|
+
response_data = await self.api_client.call_api(
|
|
451
|
+
*_param,
|
|
452
|
+
_request_timeout=_request_timeout
|
|
453
|
+
)
|
|
454
|
+
await response_data.read()
|
|
455
|
+
return self.api_client.response_deserialize(
|
|
456
|
+
response_data=response_data,
|
|
457
|
+
response_types_map=_response_types_map,
|
|
458
|
+
)
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
@validate_call
|
|
462
|
+
async def get_paste_paste_paste_id_get_without_preload_content(
|
|
463
|
+
self,
|
|
464
|
+
paste_id: StrictStr,
|
|
465
|
+
_request_timeout: Union[
|
|
466
|
+
None,
|
|
467
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
468
|
+
Tuple[
|
|
469
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
470
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
471
|
+
]
|
|
472
|
+
] = None,
|
|
473
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
474
|
+
_content_type: Optional[StrictStr] = None,
|
|
475
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
476
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
477
|
+
) -> RESTResponseType:
|
|
478
|
+
"""Get Paste
|
|
479
|
+
|
|
480
|
+
Get a paste by ID.
|
|
481
|
+
|
|
482
|
+
:param paste_id: (required)
|
|
483
|
+
:type paste_id: str
|
|
484
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
485
|
+
number provided, it will be total request
|
|
486
|
+
timeout. It can also be a pair (tuple) of
|
|
487
|
+
(connection, read) timeouts.
|
|
488
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
489
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
490
|
+
request; this effectively ignores the
|
|
491
|
+
authentication in the spec for a single request.
|
|
492
|
+
:type _request_auth: dict, optional
|
|
493
|
+
:param _content_type: force content-type for the request.
|
|
494
|
+
:type _content_type: str, Optional
|
|
495
|
+
:param _headers: set to override the headers for a single
|
|
496
|
+
request; this effectively ignores the headers
|
|
497
|
+
in the spec for a single request.
|
|
498
|
+
:type _headers: dict, optional
|
|
499
|
+
:param _host_index: set to override the host_index for a single
|
|
500
|
+
request; this effectively ignores the host_index
|
|
501
|
+
in the spec for a single request.
|
|
502
|
+
:type _host_index: int, optional
|
|
503
|
+
:return: Returns the result object.
|
|
504
|
+
""" # noqa: E501
|
|
505
|
+
|
|
506
|
+
_param = self._get_paste_paste_paste_id_get_serialize(
|
|
507
|
+
paste_id=paste_id,
|
|
508
|
+
_request_auth=_request_auth,
|
|
509
|
+
_content_type=_content_type,
|
|
510
|
+
_headers=_headers,
|
|
511
|
+
_host_index=_host_index
|
|
512
|
+
)
|
|
513
|
+
|
|
514
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
515
|
+
'200': "PasteOutput",
|
|
516
|
+
'404': None,
|
|
517
|
+
'429': None,
|
|
518
|
+
'422': "HTTPValidationError",
|
|
519
|
+
}
|
|
520
|
+
response_data = await self.api_client.call_api(
|
|
521
|
+
*_param,
|
|
522
|
+
_request_timeout=_request_timeout
|
|
523
|
+
)
|
|
524
|
+
return response_data.response
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
def _get_paste_paste_paste_id_get_serialize(
|
|
528
|
+
self,
|
|
529
|
+
paste_id,
|
|
530
|
+
_request_auth,
|
|
531
|
+
_content_type,
|
|
532
|
+
_headers,
|
|
533
|
+
_host_index,
|
|
534
|
+
) -> RequestSerialized:
|
|
535
|
+
|
|
536
|
+
_host = None
|
|
537
|
+
|
|
538
|
+
_collection_formats: Dict[str, str] = {
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
_path_params: Dict[str, str] = {}
|
|
542
|
+
_query_params: List[Tuple[str, str]] = []
|
|
543
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
544
|
+
_form_params: List[Tuple[str, str]] = []
|
|
545
|
+
_files: Dict[
|
|
546
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
547
|
+
] = {}
|
|
548
|
+
_body_params: Optional[bytes] = None
|
|
549
|
+
|
|
550
|
+
# process the path parameters
|
|
551
|
+
if paste_id is not None:
|
|
552
|
+
_path_params['paste_id'] = paste_id
|
|
553
|
+
# process the query parameters
|
|
554
|
+
# process the header parameters
|
|
555
|
+
# process the form parameters
|
|
556
|
+
# process the body parameter
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
# set the HTTP header `Accept`
|
|
560
|
+
if 'Accept' not in _header_params:
|
|
561
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
562
|
+
[
|
|
563
|
+
'application/json'
|
|
564
|
+
]
|
|
565
|
+
)
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
# authentication setting
|
|
569
|
+
_auth_settings: List[str] = [
|
|
570
|
+
]
|
|
571
|
+
|
|
572
|
+
return self.api_client.param_serialize(
|
|
573
|
+
method='GET',
|
|
574
|
+
resource_path='/paste/{paste_id}',
|
|
575
|
+
path_params=_path_params,
|
|
576
|
+
query_params=_query_params,
|
|
577
|
+
header_params=_header_params,
|
|
578
|
+
body=_body_params,
|
|
579
|
+
post_params=_form_params,
|
|
580
|
+
files=_files,
|
|
581
|
+
auth_settings=_auth_settings,
|
|
582
|
+
collection_formats=_collection_formats,
|
|
583
|
+
_host=_host,
|
|
584
|
+
_request_auth=_request_auth
|
|
585
|
+
)
|
|
586
|
+
|
|
587
|
+
|
|
@@ -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.2.
|
|
8
|
+
The version of the OpenAPI document: 5.2.6
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|