foxinternalclient 5.2.0__py3-none-any.whl

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.
Files changed (63) hide show
  1. foxinternalclient/__init__.py +83 -0
  2. foxinternalclient/api/__init__.py +10 -0
  3. foxinternalclient/api/device_api.py +1305 -0
  4. foxinternalclient/api/fox_factory_api.py +1906 -0
  5. foxinternalclient/api/gitlab_api.py +314 -0
  6. foxinternalclient/api/internal_api.py +4956 -0
  7. foxinternalclient/api/release_api.py +1511 -0
  8. foxinternalclient/api/stats_api.py +285 -0
  9. foxinternalclient/api_client.py +801 -0
  10. foxinternalclient/api_response.py +21 -0
  11. foxinternalclient/configuration.py +591 -0
  12. foxinternalclient/exceptions.py +217 -0
  13. foxinternalclient/models/__init__.py +61 -0
  14. foxinternalclient/models/body_change_password_profile_change_password_post.py +90 -0
  15. foxinternalclient/models/build_status_enum.py +42 -0
  16. foxinternalclient/models/build_task_response.py +116 -0
  17. foxinternalclient/models/build_task_short_response.py +107 -0
  18. foxinternalclient/models/device_internal_response.py +143 -0
  19. foxinternalclient/models/device_response.py +130 -0
  20. foxinternalclient/models/device_stats_response.py +92 -0
  21. foxinternalclient/models/device_update_body.py +128 -0
  22. foxinternalclient/models/ff_status_enum.py +39 -0
  23. foxinternalclient/models/ff_status_response.py +89 -0
  24. foxinternalclient/models/global_stats_aggregation_model.py +94 -0
  25. foxinternalclient/models/http_validation_error.py +96 -0
  26. foxinternalclient/models/list_response_release_response.py +100 -0
  27. foxinternalclient/models/list_response_short_device_response.py +100 -0
  28. foxinternalclient/models/list_response_short_release_response.py +100 -0
  29. foxinternalclient/models/list_response_str.py +92 -0
  30. foxinternalclient/models/list_response_user_short_response.py +100 -0
  31. foxinternalclient/models/log_list_response.py +102 -0
  32. foxinternalclient/models/log_response.py +134 -0
  33. foxinternalclient/models/maintainer_short_model.py +94 -0
  34. foxinternalclient/models/new_build_task_body.py +112 -0
  35. foxinternalclient/models/new_device_body.py +99 -0
  36. foxinternalclient/models/recovery_img_response.py +90 -0
  37. foxinternalclient/models/release_groups_response.py +105 -0
  38. foxinternalclient/models/release_internal_response.py +191 -0
  39. foxinternalclient/models/release_internal_response_prop_value.py +156 -0
  40. foxinternalclient/models/release_response.py +154 -0
  41. foxinternalclient/models/release_stats_response.py +92 -0
  42. foxinternalclient/models/release_type.py +39 -0
  43. foxinternalclient/models/release_update_body.py +114 -0
  44. foxinternalclient/models/releases_sort.py +38 -0
  45. foxinternalclient/models/response_get_releases_releases_get.py +135 -0
  46. foxinternalclient/models/short_device_response.py +110 -0
  47. foxinternalclient/models/short_release_response.py +124 -0
  48. foxinternalclient/models/task_update_body.py +101 -0
  49. foxinternalclient/models/token_response.py +90 -0
  50. foxinternalclient/models/user_gitlab.py +88 -0
  51. foxinternalclient/models/user_internal_response.py +146 -0
  52. foxinternalclient/models/user_mail.py +88 -0
  53. foxinternalclient/models/user_short_response.py +94 -0
  54. foxinternalclient/models/user_telegram.py +88 -0
  55. foxinternalclient/models/user_update_body.py +121 -0
  56. foxinternalclient/models/validation_error.py +100 -0
  57. foxinternalclient/models/validation_error_loc_inner.py +139 -0
  58. foxinternalclient/py.typed +0 -0
  59. foxinternalclient/rest.py +214 -0
  60. foxinternalclient-5.2.0.dist-info/METADATA +25 -0
  61. foxinternalclient-5.2.0.dist-info/RECORD +63 -0
  62. foxinternalclient-5.2.0.dist-info/WHEEL +5 -0
  63. foxinternalclient-5.2.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,314 @@
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 20 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.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
+ 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 StrictBool, StrictStr
21
+
22
+ from foxinternalclient.api_client import ApiClient, RequestSerialized
23
+ from foxinternalclient.api_response import ApiResponse
24
+ from foxinternalclient.rest import RESTResponseType
25
+
26
+
27
+ class GitlabApi:
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None) -> None:
35
+ if api_client is None:
36
+ api_client = ApiClient.get_default()
37
+ self.api_client = api_client
38
+
39
+
40
+ @validate_call
41
+ async def device_add_gitlab_repo_gitlab_device_device_id_gitlab_post(
42
+ self,
43
+ device_id: StrictStr,
44
+ gl_project_url: StrictStr,
45
+ _request_timeout: Union[
46
+ None,
47
+ Annotated[StrictFloat, Field(gt=0)],
48
+ Tuple[
49
+ Annotated[StrictFloat, Field(gt=0)],
50
+ Annotated[StrictFloat, Field(gt=0)]
51
+ ]
52
+ ] = None,
53
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
54
+ _content_type: Optional[StrictStr] = None,
55
+ _headers: Optional[Dict[StrictStr, Any]] = None,
56
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
57
+ ) -> bool:
58
+ """Device Add Gitlab Repo
59
+
60
+
61
+ :param device_id: (required)
62
+ :type device_id: str
63
+ :param gl_project_url: (required)
64
+ :type gl_project_url: str
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._device_add_gitlab_repo_gitlab_device_device_id_gitlab_post_serialize(
88
+ device_id=device_id,
89
+ gl_project_url=gl_project_url,
90
+ _request_auth=_request_auth,
91
+ _content_type=_content_type,
92
+ _headers=_headers,
93
+ _host_index=_host_index
94
+ )
95
+
96
+ _response_types_map: Dict[str, Optional[str]] = {
97
+ '200': "bool",
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 device_add_gitlab_repo_gitlab_device_device_id_gitlab_post_with_http_info(
113
+ self,
114
+ device_id: StrictStr,
115
+ gl_project_url: StrictStr,
116
+ _request_timeout: Union[
117
+ None,
118
+ Annotated[StrictFloat, Field(gt=0)],
119
+ Tuple[
120
+ Annotated[StrictFloat, Field(gt=0)],
121
+ Annotated[StrictFloat, Field(gt=0)]
122
+ ]
123
+ ] = None,
124
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
125
+ _content_type: Optional[StrictStr] = None,
126
+ _headers: Optional[Dict[StrictStr, Any]] = None,
127
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
128
+ ) -> ApiResponse[bool]:
129
+ """Device Add Gitlab Repo
130
+
131
+
132
+ :param device_id: (required)
133
+ :type device_id: str
134
+ :param gl_project_url: (required)
135
+ :type gl_project_url: str
136
+ :param _request_timeout: timeout setting for this request. If one
137
+ number provided, it will be total request
138
+ timeout. It can also be a pair (tuple) of
139
+ (connection, read) timeouts.
140
+ :type _request_timeout: int, tuple(int, int), optional
141
+ :param _request_auth: set to override the auth_settings for an a single
142
+ request; this effectively ignores the
143
+ authentication in the spec for a single request.
144
+ :type _request_auth: dict, optional
145
+ :param _content_type: force content-type for the request.
146
+ :type _content_type: str, Optional
147
+ :param _headers: set to override the headers for a single
148
+ request; this effectively ignores the headers
149
+ in the spec for a single request.
150
+ :type _headers: dict, optional
151
+ :param _host_index: set to override the host_index for a single
152
+ request; this effectively ignores the host_index
153
+ in the spec for a single request.
154
+ :type _host_index: int, optional
155
+ :return: Returns the result object.
156
+ """ # noqa: E501
157
+
158
+ _param = self._device_add_gitlab_repo_gitlab_device_device_id_gitlab_post_serialize(
159
+ device_id=device_id,
160
+ gl_project_url=gl_project_url,
161
+ _request_auth=_request_auth,
162
+ _content_type=_content_type,
163
+ _headers=_headers,
164
+ _host_index=_host_index
165
+ )
166
+
167
+ _response_types_map: Dict[str, Optional[str]] = {
168
+ '200': "bool",
169
+ '422': "HTTPValidationError",
170
+ }
171
+ response_data = await self.api_client.call_api(
172
+ *_param,
173
+ _request_timeout=_request_timeout
174
+ )
175
+ await response_data.read()
176
+ return self.api_client.response_deserialize(
177
+ response_data=response_data,
178
+ response_types_map=_response_types_map,
179
+ )
180
+
181
+
182
+ @validate_call
183
+ async def device_add_gitlab_repo_gitlab_device_device_id_gitlab_post_without_preload_content(
184
+ self,
185
+ device_id: StrictStr,
186
+ gl_project_url: StrictStr,
187
+ _request_timeout: Union[
188
+ None,
189
+ Annotated[StrictFloat, Field(gt=0)],
190
+ Tuple[
191
+ Annotated[StrictFloat, Field(gt=0)],
192
+ Annotated[StrictFloat, Field(gt=0)]
193
+ ]
194
+ ] = None,
195
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
196
+ _content_type: Optional[StrictStr] = None,
197
+ _headers: Optional[Dict[StrictStr, Any]] = None,
198
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
199
+ ) -> RESTResponseType:
200
+ """Device Add Gitlab Repo
201
+
202
+
203
+ :param device_id: (required)
204
+ :type device_id: str
205
+ :param gl_project_url: (required)
206
+ :type gl_project_url: str
207
+ :param _request_timeout: timeout setting for this request. If one
208
+ number provided, it will be total request
209
+ timeout. It can also be a pair (tuple) of
210
+ (connection, read) timeouts.
211
+ :type _request_timeout: int, tuple(int, int), optional
212
+ :param _request_auth: set to override the auth_settings for an a single
213
+ request; this effectively ignores the
214
+ authentication in the spec for a single request.
215
+ :type _request_auth: dict, optional
216
+ :param _content_type: force content-type for the request.
217
+ :type _content_type: str, Optional
218
+ :param _headers: set to override the headers for a single
219
+ request; this effectively ignores the headers
220
+ in the spec for a single request.
221
+ :type _headers: dict, optional
222
+ :param _host_index: set to override the host_index for a single
223
+ request; this effectively ignores the host_index
224
+ in the spec for a single request.
225
+ :type _host_index: int, optional
226
+ :return: Returns the result object.
227
+ """ # noqa: E501
228
+
229
+ _param = self._device_add_gitlab_repo_gitlab_device_device_id_gitlab_post_serialize(
230
+ device_id=device_id,
231
+ gl_project_url=gl_project_url,
232
+ _request_auth=_request_auth,
233
+ _content_type=_content_type,
234
+ _headers=_headers,
235
+ _host_index=_host_index
236
+ )
237
+
238
+ _response_types_map: Dict[str, Optional[str]] = {
239
+ '200': "bool",
240
+ '422': "HTTPValidationError",
241
+ }
242
+ response_data = await self.api_client.call_api(
243
+ *_param,
244
+ _request_timeout=_request_timeout
245
+ )
246
+ return response_data.response
247
+
248
+
249
+ def _device_add_gitlab_repo_gitlab_device_device_id_gitlab_post_serialize(
250
+ self,
251
+ device_id,
252
+ gl_project_url,
253
+ _request_auth,
254
+ _content_type,
255
+ _headers,
256
+ _host_index,
257
+ ) -> RequestSerialized:
258
+
259
+ _host = None
260
+
261
+ _collection_formats: Dict[str, str] = {
262
+ }
263
+
264
+ _path_params: Dict[str, str] = {}
265
+ _query_params: List[Tuple[str, str]] = []
266
+ _header_params: Dict[str, Optional[str]] = _headers or {}
267
+ _form_params: List[Tuple[str, str]] = []
268
+ _files: Dict[
269
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
270
+ ] = {}
271
+ _body_params: Optional[bytes] = None
272
+
273
+ # process the path parameters
274
+ if device_id is not None:
275
+ _path_params['device_id'] = device_id
276
+ # process the query parameters
277
+ if gl_project_url is not None:
278
+
279
+ _query_params.append(('gl_project_url', gl_project_url))
280
+
281
+ # process the header parameters
282
+ # process the form parameters
283
+ # process the body parameter
284
+
285
+
286
+ # set the HTTP header `Accept`
287
+ if 'Accept' not in _header_params:
288
+ _header_params['Accept'] = self.api_client.select_header_accept(
289
+ [
290
+ 'application/json'
291
+ ]
292
+ )
293
+
294
+
295
+ # authentication setting
296
+ _auth_settings: List[str] = [
297
+ ]
298
+
299
+ return self.api_client.param_serialize(
300
+ method='POST',
301
+ resource_path='/gitlab/device/{device_id}/gitlab',
302
+ path_params=_path_params,
303
+ query_params=_query_params,
304
+ header_params=_header_params,
305
+ body=_body_params,
306
+ post_params=_form_params,
307
+ files=_files,
308
+ auth_settings=_auth_settings,
309
+ collection_formats=_collection_formats,
310
+ _host=_host,
311
+ _request_auth=_request_auth
312
+ )
313
+
314
+