foxclient 5.2.0__tar.gz → 5.2.2__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.0 → foxclient-5.2.2}/PKG-INFO +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/README.md +18 -18
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/__init__.py +4 -4
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/api/device_api.py +58 -58
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/api/release_api.py +97 -97
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/api/stats_api.py +9 -9
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/api_client.py +3 -3
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/configuration.py +4 -4
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/exceptions.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/models/__init__.py +3 -3
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/models/device_response.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/models/global_stats_aggregation_model.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/models/http_validation_error.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/models/list_response_release_response.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/models/list_response_short_device_response.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/models/list_response_short_release_response.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/models/list_response_str.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/models/maintainer_short_model.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/models/recovery_img_response.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/models/release_groups_response.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/models/release_response.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/models/release_type.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/models/releases_sort.py +2 -2
- foxclient-5.2.0/foxclient/models/response_get_releases_releases_get.py → foxclient-5.2.2/foxclient/models/response_get_releases.py +8 -8
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/models/short_device_response.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/models/short_release_response.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/models/validation_error.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/models/validation_error_loc_inner.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/rest.py +3 -3
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient.egg-info/PKG-INFO +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient.egg-info/SOURCES.txt +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/pyproject.toml +1 -1
- {foxclient-5.2.0 → foxclient-5.2.2}/setup.py +4 -4
- {foxclient-5.2.0 → foxclient-5.2.2}/test/test_device_api.py +11 -11
- {foxclient-5.2.0 → foxclient-5.2.2}/test/test_device_response.py +10 -10
- {foxclient-5.2.0 → foxclient-5.2.2}/test/test_global_stats_aggregation_model.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/test/test_http_validation_error.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/test/test_list_response_release_response.py +10 -10
- {foxclient-5.2.0 → foxclient-5.2.2}/test/test_list_response_short_device_response.py +6 -6
- {foxclient-5.2.0 → foxclient-5.2.2}/test/test_list_response_short_release_response.py +10 -10
- {foxclient-5.2.0 → foxclient-5.2.2}/test/test_list_response_str.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/test/test_maintainer_short_model.py +6 -6
- {foxclient-5.2.0 → foxclient-5.2.2}/test/test_recovery_img_response.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/test/test_release_api.py +10 -10
- {foxclient-5.2.0 → foxclient-5.2.2}/test/test_release_groups_response.py +10 -10
- {foxclient-5.2.0 → foxclient-5.2.2}/test/test_release_response.py +9 -9
- {foxclient-5.2.0 → foxclient-5.2.2}/test/test_release_type.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/test/test_releases_sort.py +2 -2
- foxclient-5.2.0/test/test_response_get_releases_releases_get.py → foxclient-5.2.2/test/test_response_get_releases.py +21 -21
- {foxclient-5.2.0 → foxclient-5.2.2}/test/test_short_device_response.py +6 -6
- {foxclient-5.2.0 → foxclient-5.2.2}/test/test_short_release_response.py +9 -9
- {foxclient-5.2.0 → foxclient-5.2.2}/test/test_stats_api.py +4 -4
- {foxclient-5.2.0 → foxclient-5.2.2}/test/test_validation_error.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/test/test_validation_error_loc_inner.py +2 -2
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/api/__init__.py +0 -0
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/api_response.py +0 -0
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient/py.typed +0 -0
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient.egg-info/dependency_links.txt +0 -0
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient.egg-info/requires.txt +0 -0
- {foxclient-5.2.0 → foxclient-5.2.2}/foxclient.egg-info/top_level.txt +0 -0
- {foxclient-5.2.0 → foxclient-5.2.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: foxclient
|
|
3
|
-
Version: 5.2.
|
|
3
|
+
Version: 5.2.2
|
|
4
4
|
Summary: Fox API
|
|
5
5
|
Home-page:
|
|
6
6
|
Author: OpenAPI Generator community
|
|
@@ -21,5 +21,5 @@ Dynamic: keywords
|
|
|
21
21
|
Dynamic: requires-dist
|
|
22
22
|
Dynamic: summary
|
|
23
23
|
|
|
24
|
-
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
|
|
24
|
+
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.
|
|
25
25
|
|
|
@@ -5,15 +5,15 @@ This would help us fighting against DDoS attacks in future, while keeping your a
|
|
|
5
5
|
In future, this may be a mandatory requirement.
|
|
6
6
|
|
|
7
7
|
To reduce the system load, the API endpoints are rate limited.
|
|
8
|
-
The default limit is
|
|
8
|
+
The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit.
|
|
9
9
|
|
|
10
10
|
The requests may be logged for analytics and development purposes.
|
|
11
11
|
|
|
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.2
|
|
16
|
+
- Package version: 5.2.2
|
|
17
17
|
- Generator version: 7.13.0
|
|
18
18
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
19
19
|
|
|
@@ -76,17 +76,17 @@ configuration = foxclient.Configuration(
|
|
|
76
76
|
async with foxclient.ApiClient(configuration) as api_client:
|
|
77
77
|
# Create an instance of the API class
|
|
78
78
|
api_instance = foxclient.DeviceApi(api_client)
|
|
79
|
-
device_id =
|
|
80
|
-
id =
|
|
79
|
+
device_id = '5f7a5c5b5c5b5c5b5c5b5c5b' # str | (optional)
|
|
80
|
+
id = '5f7a5c5b5c5b5c5b5c5b5c5b' # str | Filter by Device ID (deprecated) (optional)
|
|
81
81
|
codename = 'codename_example' # str | Not recommended to use when you can (optional)
|
|
82
82
|
|
|
83
83
|
try:
|
|
84
84
|
# Get Device
|
|
85
|
-
api_response = await api_instance.
|
|
86
|
-
print("The response of DeviceApi->
|
|
85
|
+
api_response = await api_instance.get_device(device_id=device_id, id=id, codename=codename)
|
|
86
|
+
print("The response of DeviceApi->get_device:\n")
|
|
87
87
|
pprint(api_response)
|
|
88
88
|
except ApiException as e:
|
|
89
|
-
print("Exception when calling DeviceApi->
|
|
89
|
+
print("Exception when calling DeviceApi->get_device: %s\n" % e)
|
|
90
90
|
|
|
91
91
|
```
|
|
92
92
|
|
|
@@ -96,15 +96,15 @@ All URIs are relative to *https://api.orangefox.download*
|
|
|
96
96
|
|
|
97
97
|
Class | Method | HTTP request | Description
|
|
98
98
|
------------ | ------------- | ------------- | -------------
|
|
99
|
-
*DeviceApi* | [**
|
|
100
|
-
*DeviceApi* | [**
|
|
101
|
-
*DeviceApi* | [**
|
|
102
|
-
*DeviceApi* | [**
|
|
103
|
-
*ReleaseApi* | [**
|
|
104
|
-
*ReleaseApi* | [**
|
|
105
|
-
*ReleaseApi* | [**
|
|
106
|
-
*ReleaseApi* | [**
|
|
107
|
-
*StatsApi* | [**
|
|
99
|
+
*DeviceApi* | [**get_device**](docs/DeviceApi.md#get_device) | **GET** /devices/get | Get Device
|
|
100
|
+
*DeviceApi* | [**get_device_deprecated**](docs/DeviceApi.md#get_device_deprecated) | **GET** /devices/{device_id} | Get Device Short
|
|
101
|
+
*DeviceApi* | [**get_devices**](docs/DeviceApi.md#get_devices) | **GET** /devices/ | Get Devices
|
|
102
|
+
*DeviceApi* | [**get_oems**](docs/DeviceApi.md#get_oems) | **GET** /oems/ | Get Oems
|
|
103
|
+
*ReleaseApi* | [**get_release**](docs/ReleaseApi.md#get_release) | **GET** /releases/get | Get Release
|
|
104
|
+
*ReleaseApi* | [**get_release_deprecated**](docs/ReleaseApi.md#get_release_deprecated) | **GET** /releases/{release_id} | Get Release Short
|
|
105
|
+
*ReleaseApi* | [**get_releases**](docs/ReleaseApi.md#get_releases) | **GET** /releases/ | Get Releases
|
|
106
|
+
*ReleaseApi* | [**get_updates_deprecated**](docs/ReleaseApi.md#get_updates_deprecated) | **GET** /updates/{last_known_id} | Get Updates
|
|
107
|
+
*StatsApi* | [**get_public_stats**](docs/StatsApi.md#get_public_stats) | **GET** /stats/ | Public Stats
|
|
108
108
|
|
|
109
109
|
|
|
110
110
|
## Documentation For Models
|
|
@@ -122,7 +122,7 @@ Class | Method | HTTP request | Description
|
|
|
122
122
|
- [ReleaseResponse](docs/ReleaseResponse.md)
|
|
123
123
|
- [ReleaseType](docs/ReleaseType.md)
|
|
124
124
|
- [ReleasesSort](docs/ReleasesSort.md)
|
|
125
|
-
- [
|
|
125
|
+
- [ResponseGetReleases](docs/ResponseGetReleases.md)
|
|
126
126
|
- [ShortDeviceResponse](docs/ShortDeviceResponse.md)
|
|
127
127
|
- [ShortReleaseResponse](docs/ShortReleaseResponse.md)
|
|
128
128
|
- [ValidationError](docs/ValidationError.md)
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"""
|
|
6
6
|
Fox API
|
|
7
7
|
|
|
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
|
|
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.2
|
|
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.2.
|
|
18
|
+
__version__ = "5.2.2"
|
|
19
19
|
|
|
20
20
|
# import apis into sdk package
|
|
21
21
|
from foxclient.api.device_api import DeviceApi
|
|
@@ -47,7 +47,7 @@ from foxclient.models.release_groups_response import ReleaseGroupsResponse
|
|
|
47
47
|
from foxclient.models.release_response import ReleaseResponse
|
|
48
48
|
from foxclient.models.release_type import ReleaseType
|
|
49
49
|
from foxclient.models.releases_sort import ReleasesSort
|
|
50
|
-
from foxclient.models.
|
|
50
|
+
from foxclient.models.response_get_releases import ResponseGetReleases
|
|
51
51
|
from foxclient.models.short_device_response import ShortDeviceResponse
|
|
52
52
|
from foxclient.models.short_release_response import ShortReleaseResponse
|
|
53
53
|
from foxclient.models.validation_error import ValidationError
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"""
|
|
4
4
|
Fox API
|
|
5
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
|
|
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.2
|
|
9
9
|
Contact: admin@orangefox.tech
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -18,7 +18,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
|
|
18
18
|
from typing_extensions import Annotated
|
|
19
19
|
|
|
20
20
|
from pydantic import Field, StrictBool, StrictInt, StrictStr
|
|
21
|
-
from typing import
|
|
21
|
+
from typing import List, Optional
|
|
22
22
|
from typing_extensions import Annotated
|
|
23
23
|
from foxclient.models.device_response import DeviceResponse
|
|
24
24
|
from foxclient.models.list_response_short_device_response import ListResponseShortDeviceResponse
|
|
@@ -43,10 +43,10 @@ class DeviceApi:
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
@validate_call
|
|
46
|
-
async def
|
|
46
|
+
async def get_device(
|
|
47
47
|
self,
|
|
48
|
-
device_id: Optional[
|
|
49
|
-
id: Annotated[Optional[
|
|
48
|
+
device_id: Optional[StrictStr] = None,
|
|
49
|
+
id: Annotated[Optional[StrictStr], Field(description="Filter by Device ID (deprecated)")] = None,
|
|
50
50
|
codename: Annotated[Optional[StrictStr], Field(description="Not recommended to use when you can")] = None,
|
|
51
51
|
_request_timeout: Union[
|
|
52
52
|
None,
|
|
@@ -66,9 +66,9 @@ class DeviceApi:
|
|
|
66
66
|
Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
|
|
67
67
|
|
|
68
68
|
:param device_id:
|
|
69
|
-
:type device_id:
|
|
69
|
+
:type device_id: str
|
|
70
70
|
:param id: Filter by Device ID (deprecated)
|
|
71
|
-
:type id:
|
|
71
|
+
:type id: str
|
|
72
72
|
:param codename: Not recommended to use when you can
|
|
73
73
|
:type codename: str
|
|
74
74
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -93,7 +93,7 @@ class DeviceApi:
|
|
|
93
93
|
:return: Returns the result object.
|
|
94
94
|
""" # noqa: E501
|
|
95
95
|
|
|
96
|
-
_param = self.
|
|
96
|
+
_param = self._get_device_serialize(
|
|
97
97
|
device_id=device_id,
|
|
98
98
|
id=id,
|
|
99
99
|
codename=codename,
|
|
@@ -121,10 +121,10 @@ class DeviceApi:
|
|
|
121
121
|
|
|
122
122
|
|
|
123
123
|
@validate_call
|
|
124
|
-
async def
|
|
124
|
+
async def get_device_with_http_info(
|
|
125
125
|
self,
|
|
126
|
-
device_id: Optional[
|
|
127
|
-
id: Annotated[Optional[
|
|
126
|
+
device_id: Optional[StrictStr] = None,
|
|
127
|
+
id: Annotated[Optional[StrictStr], Field(description="Filter by Device ID (deprecated)")] = None,
|
|
128
128
|
codename: Annotated[Optional[StrictStr], Field(description="Not recommended to use when you can")] = None,
|
|
129
129
|
_request_timeout: Union[
|
|
130
130
|
None,
|
|
@@ -144,9 +144,9 @@ class DeviceApi:
|
|
|
144
144
|
Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
|
|
145
145
|
|
|
146
146
|
:param device_id:
|
|
147
|
-
:type device_id:
|
|
147
|
+
:type device_id: str
|
|
148
148
|
:param id: Filter by Device ID (deprecated)
|
|
149
|
-
:type id:
|
|
149
|
+
:type id: str
|
|
150
150
|
:param codename: Not recommended to use when you can
|
|
151
151
|
:type codename: str
|
|
152
152
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -171,7 +171,7 @@ class DeviceApi:
|
|
|
171
171
|
:return: Returns the result object.
|
|
172
172
|
""" # noqa: E501
|
|
173
173
|
|
|
174
|
-
_param = self.
|
|
174
|
+
_param = self._get_device_serialize(
|
|
175
175
|
device_id=device_id,
|
|
176
176
|
id=id,
|
|
177
177
|
codename=codename,
|
|
@@ -199,10 +199,10 @@ class DeviceApi:
|
|
|
199
199
|
|
|
200
200
|
|
|
201
201
|
@validate_call
|
|
202
|
-
async def
|
|
202
|
+
async def get_device_without_preload_content(
|
|
203
203
|
self,
|
|
204
|
-
device_id: Optional[
|
|
205
|
-
id: Annotated[Optional[
|
|
204
|
+
device_id: Optional[StrictStr] = None,
|
|
205
|
+
id: Annotated[Optional[StrictStr], Field(description="Filter by Device ID (deprecated)")] = None,
|
|
206
206
|
codename: Annotated[Optional[StrictStr], Field(description="Not recommended to use when you can")] = None,
|
|
207
207
|
_request_timeout: Union[
|
|
208
208
|
None,
|
|
@@ -222,9 +222,9 @@ class DeviceApi:
|
|
|
222
222
|
Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
|
|
223
223
|
|
|
224
224
|
:param device_id:
|
|
225
|
-
:type device_id:
|
|
225
|
+
:type device_id: str
|
|
226
226
|
:param id: Filter by Device ID (deprecated)
|
|
227
|
-
:type id:
|
|
227
|
+
:type id: str
|
|
228
228
|
:param codename: Not recommended to use when you can
|
|
229
229
|
:type codename: str
|
|
230
230
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -249,7 +249,7 @@ class DeviceApi:
|
|
|
249
249
|
:return: Returns the result object.
|
|
250
250
|
""" # noqa: E501
|
|
251
251
|
|
|
252
|
-
_param = self.
|
|
252
|
+
_param = self._get_device_serialize(
|
|
253
253
|
device_id=device_id,
|
|
254
254
|
id=id,
|
|
255
255
|
codename=codename,
|
|
@@ -272,7 +272,7 @@ class DeviceApi:
|
|
|
272
272
|
return response_data.response
|
|
273
273
|
|
|
274
274
|
|
|
275
|
-
def
|
|
275
|
+
def _get_device_serialize(
|
|
276
276
|
self,
|
|
277
277
|
device_id,
|
|
278
278
|
id,
|
|
@@ -348,7 +348,7 @@ class DeviceApi:
|
|
|
348
348
|
|
|
349
349
|
|
|
350
350
|
@validate_call
|
|
351
|
-
async def
|
|
351
|
+
async def get_device_deprecated(
|
|
352
352
|
self,
|
|
353
353
|
device_id: StrictStr,
|
|
354
354
|
_request_timeout: Union[
|
|
@@ -393,7 +393,7 @@ class DeviceApi:
|
|
|
393
393
|
""" # noqa: E501
|
|
394
394
|
warnings.warn("GET /devices/{device_id} is deprecated.", DeprecationWarning)
|
|
395
395
|
|
|
396
|
-
_param = self.
|
|
396
|
+
_param = self._get_device_deprecated_serialize(
|
|
397
397
|
device_id=device_id,
|
|
398
398
|
_request_auth=_request_auth,
|
|
399
399
|
_content_type=_content_type,
|
|
@@ -418,7 +418,7 @@ class DeviceApi:
|
|
|
418
418
|
|
|
419
419
|
|
|
420
420
|
@validate_call
|
|
421
|
-
async def
|
|
421
|
+
async def get_device_deprecated_with_http_info(
|
|
422
422
|
self,
|
|
423
423
|
device_id: StrictStr,
|
|
424
424
|
_request_timeout: Union[
|
|
@@ -463,7 +463,7 @@ class DeviceApi:
|
|
|
463
463
|
""" # noqa: E501
|
|
464
464
|
warnings.warn("GET /devices/{device_id} is deprecated.", DeprecationWarning)
|
|
465
465
|
|
|
466
|
-
_param = self.
|
|
466
|
+
_param = self._get_device_deprecated_serialize(
|
|
467
467
|
device_id=device_id,
|
|
468
468
|
_request_auth=_request_auth,
|
|
469
469
|
_content_type=_content_type,
|
|
@@ -488,7 +488,7 @@ class DeviceApi:
|
|
|
488
488
|
|
|
489
489
|
|
|
490
490
|
@validate_call
|
|
491
|
-
async def
|
|
491
|
+
async def get_device_deprecated_without_preload_content(
|
|
492
492
|
self,
|
|
493
493
|
device_id: StrictStr,
|
|
494
494
|
_request_timeout: Union[
|
|
@@ -533,7 +533,7 @@ class DeviceApi:
|
|
|
533
533
|
""" # noqa: E501
|
|
534
534
|
warnings.warn("GET /devices/{device_id} is deprecated.", DeprecationWarning)
|
|
535
535
|
|
|
536
|
-
_param = self.
|
|
536
|
+
_param = self._get_device_deprecated_serialize(
|
|
537
537
|
device_id=device_id,
|
|
538
538
|
_request_auth=_request_auth,
|
|
539
539
|
_content_type=_content_type,
|
|
@@ -553,7 +553,7 @@ class DeviceApi:
|
|
|
553
553
|
return response_data.response
|
|
554
554
|
|
|
555
555
|
|
|
556
|
-
def
|
|
556
|
+
def _get_device_deprecated_serialize(
|
|
557
557
|
self,
|
|
558
558
|
device_id,
|
|
559
559
|
_request_auth,
|
|
@@ -617,10 +617,10 @@ class DeviceApi:
|
|
|
617
617
|
|
|
618
618
|
|
|
619
619
|
@validate_call
|
|
620
|
-
async def
|
|
620
|
+
async def get_devices(
|
|
621
621
|
self,
|
|
622
|
-
id: Annotated[Optional[List[
|
|
623
|
-
id2: Annotated[Optional[List[
|
|
622
|
+
id: Annotated[Optional[List[StrictStr]], Field(description="Filter by Device IDs")] = None,
|
|
623
|
+
id2: Annotated[Optional[List[Optional[StrictStr]]], Field(description="Filter by Device IDs (deprecated)")] = None,
|
|
624
624
|
oem_name: Annotated[Optional[List[StrictStr]], Field(description="Filter by OEM names")] = None,
|
|
625
625
|
codename: Annotated[Optional[List[Optional[StrictStr]]], Field(description="Filter by device codenames")] = None,
|
|
626
626
|
model_name: Annotated[Optional[List[Optional[StrictStr]]], Field(description="Filter by model names")] = None,
|
|
@@ -648,9 +648,9 @@ class DeviceApi:
|
|
|
648
648
|
Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it's possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it's very inconsistent around some OEMs that play with the names around. As of the current moment, the API won't support unified model names at all! In short, do not use model_name as device's identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn't support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
|
|
649
649
|
|
|
650
650
|
:param id: Filter by Device IDs
|
|
651
|
-
:type id: List[
|
|
651
|
+
:type id: List[str]
|
|
652
652
|
:param id2: Filter by Device IDs (deprecated)
|
|
653
|
-
:type id2: List[
|
|
653
|
+
:type id2: List[Optional[str]]
|
|
654
654
|
:param oem_name: Filter by OEM names
|
|
655
655
|
:type oem_name: List[str]
|
|
656
656
|
:param codename: Filter by device codenames
|
|
@@ -691,7 +691,7 @@ class DeviceApi:
|
|
|
691
691
|
:return: Returns the result object.
|
|
692
692
|
""" # noqa: E501
|
|
693
693
|
|
|
694
|
-
_param = self.
|
|
694
|
+
_param = self._get_devices_serialize(
|
|
695
695
|
id=id,
|
|
696
696
|
id2=id2,
|
|
697
697
|
oem_name=oem_name,
|
|
@@ -726,10 +726,10 @@ class DeviceApi:
|
|
|
726
726
|
|
|
727
727
|
|
|
728
728
|
@validate_call
|
|
729
|
-
async def
|
|
729
|
+
async def get_devices_with_http_info(
|
|
730
730
|
self,
|
|
731
|
-
id: Annotated[Optional[List[
|
|
732
|
-
id2: Annotated[Optional[List[
|
|
731
|
+
id: Annotated[Optional[List[StrictStr]], Field(description="Filter by Device IDs")] = None,
|
|
732
|
+
id2: Annotated[Optional[List[Optional[StrictStr]]], Field(description="Filter by Device IDs (deprecated)")] = None,
|
|
733
733
|
oem_name: Annotated[Optional[List[StrictStr]], Field(description="Filter by OEM names")] = None,
|
|
734
734
|
codename: Annotated[Optional[List[Optional[StrictStr]]], Field(description="Filter by device codenames")] = None,
|
|
735
735
|
model_name: Annotated[Optional[List[Optional[StrictStr]]], Field(description="Filter by model names")] = None,
|
|
@@ -757,9 +757,9 @@ class DeviceApi:
|
|
|
757
757
|
Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it's possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it's very inconsistent around some OEMs that play with the names around. As of the current moment, the API won't support unified model names at all! In short, do not use model_name as device's identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn't support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
|
|
758
758
|
|
|
759
759
|
:param id: Filter by Device IDs
|
|
760
|
-
:type id: List[
|
|
760
|
+
:type id: List[str]
|
|
761
761
|
:param id2: Filter by Device IDs (deprecated)
|
|
762
|
-
:type id2: List[
|
|
762
|
+
:type id2: List[Optional[str]]
|
|
763
763
|
:param oem_name: Filter by OEM names
|
|
764
764
|
:type oem_name: List[str]
|
|
765
765
|
:param codename: Filter by device codenames
|
|
@@ -800,7 +800,7 @@ class DeviceApi:
|
|
|
800
800
|
:return: Returns the result object.
|
|
801
801
|
""" # noqa: E501
|
|
802
802
|
|
|
803
|
-
_param = self.
|
|
803
|
+
_param = self._get_devices_serialize(
|
|
804
804
|
id=id,
|
|
805
805
|
id2=id2,
|
|
806
806
|
oem_name=oem_name,
|
|
@@ -835,10 +835,10 @@ class DeviceApi:
|
|
|
835
835
|
|
|
836
836
|
|
|
837
837
|
@validate_call
|
|
838
|
-
async def
|
|
838
|
+
async def get_devices_without_preload_content(
|
|
839
839
|
self,
|
|
840
|
-
id: Annotated[Optional[List[
|
|
841
|
-
id2: Annotated[Optional[List[
|
|
840
|
+
id: Annotated[Optional[List[StrictStr]], Field(description="Filter by Device IDs")] = None,
|
|
841
|
+
id2: Annotated[Optional[List[Optional[StrictStr]]], Field(description="Filter by Device IDs (deprecated)")] = None,
|
|
842
842
|
oem_name: Annotated[Optional[List[StrictStr]], Field(description="Filter by OEM names")] = None,
|
|
843
843
|
codename: Annotated[Optional[List[Optional[StrictStr]]], Field(description="Filter by device codenames")] = None,
|
|
844
844
|
model_name: Annotated[Optional[List[Optional[StrictStr]]], Field(description="Filter by model names")] = None,
|
|
@@ -866,9 +866,9 @@ class DeviceApi:
|
|
|
866
866
|
Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it's possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it's very inconsistent around some OEMs that play with the names around. As of the current moment, the API won't support unified model names at all! In short, do not use model_name as device's identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn't support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
|
|
867
867
|
|
|
868
868
|
:param id: Filter by Device IDs
|
|
869
|
-
:type id: List[
|
|
869
|
+
:type id: List[str]
|
|
870
870
|
:param id2: Filter by Device IDs (deprecated)
|
|
871
|
-
:type id2: List[
|
|
871
|
+
:type id2: List[Optional[str]]
|
|
872
872
|
:param oem_name: Filter by OEM names
|
|
873
873
|
:type oem_name: List[str]
|
|
874
874
|
:param codename: Filter by device codenames
|
|
@@ -909,7 +909,7 @@ class DeviceApi:
|
|
|
909
909
|
:return: Returns the result object.
|
|
910
910
|
""" # noqa: E501
|
|
911
911
|
|
|
912
|
-
_param = self.
|
|
912
|
+
_param = self._get_devices_serialize(
|
|
913
913
|
id=id,
|
|
914
914
|
id2=id2,
|
|
915
915
|
oem_name=oem_name,
|
|
@@ -939,7 +939,7 @@ class DeviceApi:
|
|
|
939
939
|
return response_data.response
|
|
940
940
|
|
|
941
941
|
|
|
942
|
-
def
|
|
942
|
+
def _get_devices_serialize(
|
|
943
943
|
self,
|
|
944
944
|
id,
|
|
945
945
|
id2,
|
|
@@ -1061,7 +1061,7 @@ class DeviceApi:
|
|
|
1061
1061
|
|
|
1062
1062
|
|
|
1063
1063
|
@validate_call
|
|
1064
|
-
async def
|
|
1064
|
+
async def get_oems(
|
|
1065
1065
|
self,
|
|
1066
1066
|
_request_timeout: Union[
|
|
1067
1067
|
None,
|
|
@@ -1076,7 +1076,7 @@ class DeviceApi:
|
|
|
1076
1076
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1077
1077
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1078
1078
|
) -> ListResponseStr:
|
|
1079
|
-
"""Get Oems
|
|
1079
|
+
"""Get Oems
|
|
1080
1080
|
|
|
1081
1081
|
Lists all OEM names
|
|
1082
1082
|
|
|
@@ -1102,7 +1102,7 @@ class DeviceApi:
|
|
|
1102
1102
|
:return: Returns the result object.
|
|
1103
1103
|
""" # noqa: E501
|
|
1104
1104
|
|
|
1105
|
-
_param = self.
|
|
1105
|
+
_param = self._get_oems_serialize(
|
|
1106
1106
|
_request_auth=_request_auth,
|
|
1107
1107
|
_content_type=_content_type,
|
|
1108
1108
|
_headers=_headers,
|
|
@@ -1124,7 +1124,7 @@ class DeviceApi:
|
|
|
1124
1124
|
|
|
1125
1125
|
|
|
1126
1126
|
@validate_call
|
|
1127
|
-
async def
|
|
1127
|
+
async def get_oems_with_http_info(
|
|
1128
1128
|
self,
|
|
1129
1129
|
_request_timeout: Union[
|
|
1130
1130
|
None,
|
|
@@ -1139,7 +1139,7 @@ class DeviceApi:
|
|
|
1139
1139
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1140
1140
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1141
1141
|
) -> ApiResponse[ListResponseStr]:
|
|
1142
|
-
"""Get Oems
|
|
1142
|
+
"""Get Oems
|
|
1143
1143
|
|
|
1144
1144
|
Lists all OEM names
|
|
1145
1145
|
|
|
@@ -1165,7 +1165,7 @@ class DeviceApi:
|
|
|
1165
1165
|
:return: Returns the result object.
|
|
1166
1166
|
""" # noqa: E501
|
|
1167
1167
|
|
|
1168
|
-
_param = self.
|
|
1168
|
+
_param = self._get_oems_serialize(
|
|
1169
1169
|
_request_auth=_request_auth,
|
|
1170
1170
|
_content_type=_content_type,
|
|
1171
1171
|
_headers=_headers,
|
|
@@ -1187,7 +1187,7 @@ class DeviceApi:
|
|
|
1187
1187
|
|
|
1188
1188
|
|
|
1189
1189
|
@validate_call
|
|
1190
|
-
async def
|
|
1190
|
+
async def get_oems_without_preload_content(
|
|
1191
1191
|
self,
|
|
1192
1192
|
_request_timeout: Union[
|
|
1193
1193
|
None,
|
|
@@ -1202,7 +1202,7 @@ class DeviceApi:
|
|
|
1202
1202
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1203
1203
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1204
1204
|
) -> RESTResponseType:
|
|
1205
|
-
"""Get Oems
|
|
1205
|
+
"""Get Oems
|
|
1206
1206
|
|
|
1207
1207
|
Lists all OEM names
|
|
1208
1208
|
|
|
@@ -1228,7 +1228,7 @@ class DeviceApi:
|
|
|
1228
1228
|
:return: Returns the result object.
|
|
1229
1229
|
""" # noqa: E501
|
|
1230
1230
|
|
|
1231
|
-
_param = self.
|
|
1231
|
+
_param = self._get_oems_serialize(
|
|
1232
1232
|
_request_auth=_request_auth,
|
|
1233
1233
|
_content_type=_content_type,
|
|
1234
1234
|
_headers=_headers,
|
|
@@ -1245,7 +1245,7 @@ class DeviceApi:
|
|
|
1245
1245
|
return response_data.response
|
|
1246
1246
|
|
|
1247
1247
|
|
|
1248
|
-
def
|
|
1248
|
+
def _get_oems_serialize(
|
|
1249
1249
|
self,
|
|
1250
1250
|
_request_auth,
|
|
1251
1251
|
_content_type,
|