aurigma-asset-generator-api-client 1.0.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.
- aurigma/asset_generator/__init__.py +80 -0
- aurigma/asset_generator/api/__init__.py +7 -0
- aurigma/asset_generator/api/build_info_api.py +513 -0
- aurigma/asset_generator/api/mockup_generator_api.py +1816 -0
- aurigma/asset_generator/api/tenants_api.py +1431 -0
- aurigma/asset_generator/api_client.py +807 -0
- aurigma/asset_generator/api_response.py +21 -0
- aurigma/asset_generator/configuration.py +637 -0
- aurigma/asset_generator/exceptions.py +219 -0
- aurigma/asset_generator/models/__init__.py +30 -0
- aurigma/asset_generator/models/bad_request_dto.py +106 -0
- aurigma/asset_generator/models/build_info_model.py +139 -0
- aurigma/asset_generator/models/conflict_dto.py +106 -0
- aurigma/asset_generator/models/mockup_creation_model.py +120 -0
- aurigma/asset_generator/models/mockup_generation_result.py +115 -0
- aurigma/asset_generator/models/mockup_spec_dto.py +104 -0
- aurigma/asset_generator/models/mockup_spec_param_dto.py +138 -0
- aurigma/asset_generator/models/mockup_spec_param_rules_dto.py +127 -0
- aurigma/asset_generator/models/mockup_spec_params_validation_result_dto.py +112 -0
- aurigma/asset_generator/models/problem_details.py +133 -0
- aurigma/asset_generator/models/spec_group_type.py +36 -0
- aurigma/asset_generator/models/tenant_creation_model.py +95 -0
- aurigma/asset_generator/models/tenant_dto.py +95 -0
- aurigma/asset_generator/models/tenant_update_model.py +93 -0
- aurigma/asset_generator/py.typed +0 -0
- aurigma/asset_generator/rest.py +199 -0
- aurigma_asset_generator_api_client-1.0.0.dist-info/METADATA +182 -0
- aurigma_asset_generator_api_client-1.0.0.dist-info/RECORD +30 -0
- aurigma_asset_generator_api_client-1.0.0.dist-info/WHEEL +5 -0
- aurigma_asset_generator_api_client-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
Asset Generator API
|
|
7
|
+
|
|
8
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: v1
|
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
|
+
|
|
13
|
+
Do not edit the class manually.
|
|
14
|
+
""" # noqa: E501
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__version__ = "1.0.0"
|
|
18
|
+
|
|
19
|
+
# Define package exports
|
|
20
|
+
__all__ = [
|
|
21
|
+
"BuildInfoApi",
|
|
22
|
+
"MockupGeneratorApi",
|
|
23
|
+
"TenantsApi",
|
|
24
|
+
"ApiResponse",
|
|
25
|
+
"ApiClient",
|
|
26
|
+
"Configuration",
|
|
27
|
+
"OpenApiException",
|
|
28
|
+
"ApiTypeError",
|
|
29
|
+
"ApiValueError",
|
|
30
|
+
"ApiKeyError",
|
|
31
|
+
"ApiAttributeError",
|
|
32
|
+
"ApiException",
|
|
33
|
+
"BadRequestDto",
|
|
34
|
+
"BuildInfoModel",
|
|
35
|
+
"ConflictDto",
|
|
36
|
+
"MockupCreationModel",
|
|
37
|
+
"MockupGenerationResult",
|
|
38
|
+
"MockupSpecDto",
|
|
39
|
+
"MockupSpecParamDto",
|
|
40
|
+
"MockupSpecParamRulesDto",
|
|
41
|
+
"MockupSpecParamsValidationResultDto",
|
|
42
|
+
"ProblemDetails",
|
|
43
|
+
"SpecGroupType",
|
|
44
|
+
"TenantCreationModel",
|
|
45
|
+
"TenantDto",
|
|
46
|
+
"TenantUpdateModel",
|
|
47
|
+
]
|
|
48
|
+
|
|
49
|
+
# import apis into sdk package
|
|
50
|
+
from aurigma.asset_generator.api.build_info_api import BuildInfoApi as BuildInfoApi
|
|
51
|
+
from aurigma.asset_generator.api.mockup_generator_api import MockupGeneratorApi as MockupGeneratorApi
|
|
52
|
+
from aurigma.asset_generator.api.tenants_api import TenantsApi as TenantsApi
|
|
53
|
+
|
|
54
|
+
# import ApiClient
|
|
55
|
+
from aurigma.asset_generator.api_response import ApiResponse as ApiResponse
|
|
56
|
+
from aurigma.asset_generator.api_client import ApiClient as ApiClient
|
|
57
|
+
from aurigma.asset_generator.configuration import Configuration as Configuration
|
|
58
|
+
from aurigma.asset_generator.exceptions import OpenApiException as OpenApiException
|
|
59
|
+
from aurigma.asset_generator.exceptions import ApiTypeError as ApiTypeError
|
|
60
|
+
from aurigma.asset_generator.exceptions import ApiValueError as ApiValueError
|
|
61
|
+
from aurigma.asset_generator.exceptions import ApiKeyError as ApiKeyError
|
|
62
|
+
from aurigma.asset_generator.exceptions import ApiAttributeError as ApiAttributeError
|
|
63
|
+
from aurigma.asset_generator.exceptions import ApiException as ApiException
|
|
64
|
+
|
|
65
|
+
# import models into sdk package
|
|
66
|
+
from aurigma.asset_generator.models.bad_request_dto import BadRequestDto as BadRequestDto
|
|
67
|
+
from aurigma.asset_generator.models.build_info_model import BuildInfoModel as BuildInfoModel
|
|
68
|
+
from aurigma.asset_generator.models.conflict_dto import ConflictDto as ConflictDto
|
|
69
|
+
from aurigma.asset_generator.models.mockup_creation_model import MockupCreationModel as MockupCreationModel
|
|
70
|
+
from aurigma.asset_generator.models.mockup_generation_result import MockupGenerationResult as MockupGenerationResult
|
|
71
|
+
from aurigma.asset_generator.models.mockup_spec_dto import MockupSpecDto as MockupSpecDto
|
|
72
|
+
from aurigma.asset_generator.models.mockup_spec_param_dto import MockupSpecParamDto as MockupSpecParamDto
|
|
73
|
+
from aurigma.asset_generator.models.mockup_spec_param_rules_dto import MockupSpecParamRulesDto as MockupSpecParamRulesDto
|
|
74
|
+
from aurigma.asset_generator.models.mockup_spec_params_validation_result_dto import MockupSpecParamsValidationResultDto as MockupSpecParamsValidationResultDto
|
|
75
|
+
from aurigma.asset_generator.models.problem_details import ProblemDetails as ProblemDetails
|
|
76
|
+
from aurigma.asset_generator.models.spec_group_type import SpecGroupType as SpecGroupType
|
|
77
|
+
from aurigma.asset_generator.models.tenant_creation_model import TenantCreationModel as TenantCreationModel
|
|
78
|
+
from aurigma.asset_generator.models.tenant_dto import TenantDto as TenantDto
|
|
79
|
+
from aurigma.asset_generator.models.tenant_update_model import TenantUpdateModel as TenantUpdateModel
|
|
80
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
# import apis into api package
|
|
4
|
+
from aurigma.asset_generator.api.build_info_api import BuildInfoApi
|
|
5
|
+
from aurigma.asset_generator.api.mockup_generator_api import MockupGeneratorApi
|
|
6
|
+
from aurigma.asset_generator.api.tenants_api import TenantsApi
|
|
7
|
+
|
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Asset Generator API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from aurigma.asset_generator.models.build_info_model import BuildInfoModel
|
|
20
|
+
|
|
21
|
+
from aurigma.asset_generator.api_client import ApiClient, RequestSerialized
|
|
22
|
+
from aurigma.asset_generator.api_response import ApiResponse
|
|
23
|
+
from aurigma.asset_generator.rest import RESTResponseType
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class BuildInfoApi:
|
|
27
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
28
|
+
Ref: https://openapi-generator.tech
|
|
29
|
+
|
|
30
|
+
Do not edit the class manually.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
def __init__(self, api_client=None) -> None:
|
|
34
|
+
if api_client is None:
|
|
35
|
+
api_client = ApiClient.get_default()
|
|
36
|
+
self.api_client = api_client
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@validate_call
|
|
40
|
+
async def build_info_get_info(
|
|
41
|
+
self,
|
|
42
|
+
_request_timeout: Union[
|
|
43
|
+
None,
|
|
44
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
45
|
+
Tuple[
|
|
46
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
47
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
48
|
+
]
|
|
49
|
+
] = None,
|
|
50
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
51
|
+
_content_type: Optional[StrictStr] = None,
|
|
52
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
53
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
54
|
+
) -> BuildInfoModel:
|
|
55
|
+
"""Returns build info.
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
59
|
+
number provided, it will be total request
|
|
60
|
+
timeout. It can also be a pair (tuple) of
|
|
61
|
+
(connection, read) timeouts.
|
|
62
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
63
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
64
|
+
request; this effectively ignores the
|
|
65
|
+
authentication in the spec for a single request.
|
|
66
|
+
:type _request_auth: dict, optional
|
|
67
|
+
:param _content_type: force content-type for the request.
|
|
68
|
+
:type _content_type: str, Optional
|
|
69
|
+
:param _headers: set to override the headers for a single
|
|
70
|
+
request; this effectively ignores the headers
|
|
71
|
+
in the spec for a single request.
|
|
72
|
+
:type _headers: dict, optional
|
|
73
|
+
:param _host_index: set to override the host_index for a single
|
|
74
|
+
request; this effectively ignores the host_index
|
|
75
|
+
in the spec for a single request.
|
|
76
|
+
:type _host_index: int, optional
|
|
77
|
+
:return: Returns the result object.
|
|
78
|
+
""" # noqa: E501
|
|
79
|
+
|
|
80
|
+
_param = self._build_info_get_info_serialize(
|
|
81
|
+
_request_auth=_request_auth,
|
|
82
|
+
_content_type=_content_type,
|
|
83
|
+
_headers=_headers,
|
|
84
|
+
_host_index=_host_index
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
88
|
+
'200': "BuildInfoModel",
|
|
89
|
+
}
|
|
90
|
+
response_data = await self.api_client.call_api(
|
|
91
|
+
*_param,
|
|
92
|
+
_request_timeout=_request_timeout
|
|
93
|
+
)
|
|
94
|
+
await response_data.read()
|
|
95
|
+
return self.api_client.response_deserialize(
|
|
96
|
+
response_data=response_data,
|
|
97
|
+
response_types_map=_response_types_map,
|
|
98
|
+
).data
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
@validate_call
|
|
102
|
+
async def build_info_get_info_with_http_info(
|
|
103
|
+
self,
|
|
104
|
+
_request_timeout: Union[
|
|
105
|
+
None,
|
|
106
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
107
|
+
Tuple[
|
|
108
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
109
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
110
|
+
]
|
|
111
|
+
] = None,
|
|
112
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
113
|
+
_content_type: Optional[StrictStr] = None,
|
|
114
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
115
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
116
|
+
) -> ApiResponse[BuildInfoModel]:
|
|
117
|
+
"""Returns build info.
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
121
|
+
number provided, it will be total request
|
|
122
|
+
timeout. It can also be a pair (tuple) of
|
|
123
|
+
(connection, read) timeouts.
|
|
124
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
125
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
126
|
+
request; this effectively ignores the
|
|
127
|
+
authentication in the spec for a single request.
|
|
128
|
+
:type _request_auth: dict, optional
|
|
129
|
+
:param _content_type: force content-type for the request.
|
|
130
|
+
:type _content_type: str, Optional
|
|
131
|
+
:param _headers: set to override the headers for a single
|
|
132
|
+
request; this effectively ignores the headers
|
|
133
|
+
in the spec for a single request.
|
|
134
|
+
:type _headers: dict, optional
|
|
135
|
+
:param _host_index: set to override the host_index for a single
|
|
136
|
+
request; this effectively ignores the host_index
|
|
137
|
+
in the spec for a single request.
|
|
138
|
+
:type _host_index: int, optional
|
|
139
|
+
:return: Returns the result object.
|
|
140
|
+
""" # noqa: E501
|
|
141
|
+
|
|
142
|
+
_param = self._build_info_get_info_serialize(
|
|
143
|
+
_request_auth=_request_auth,
|
|
144
|
+
_content_type=_content_type,
|
|
145
|
+
_headers=_headers,
|
|
146
|
+
_host_index=_host_index
|
|
147
|
+
)
|
|
148
|
+
|
|
149
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
150
|
+
'200': "BuildInfoModel",
|
|
151
|
+
}
|
|
152
|
+
response_data = await self.api_client.call_api(
|
|
153
|
+
*_param,
|
|
154
|
+
_request_timeout=_request_timeout
|
|
155
|
+
)
|
|
156
|
+
await response_data.read()
|
|
157
|
+
return self.api_client.response_deserialize(
|
|
158
|
+
response_data=response_data,
|
|
159
|
+
response_types_map=_response_types_map,
|
|
160
|
+
)
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
@validate_call
|
|
164
|
+
async def build_info_get_info_without_preload_content(
|
|
165
|
+
self,
|
|
166
|
+
_request_timeout: Union[
|
|
167
|
+
None,
|
|
168
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
169
|
+
Tuple[
|
|
170
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
171
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
172
|
+
]
|
|
173
|
+
] = None,
|
|
174
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
175
|
+
_content_type: Optional[StrictStr] = None,
|
|
176
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
177
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
178
|
+
) -> RESTResponseType:
|
|
179
|
+
"""Returns build info.
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
183
|
+
number provided, it will be total request
|
|
184
|
+
timeout. It can also be a pair (tuple) of
|
|
185
|
+
(connection, read) timeouts.
|
|
186
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
187
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
188
|
+
request; this effectively ignores the
|
|
189
|
+
authentication in the spec for a single request.
|
|
190
|
+
:type _request_auth: dict, optional
|
|
191
|
+
:param _content_type: force content-type for the request.
|
|
192
|
+
:type _content_type: str, Optional
|
|
193
|
+
:param _headers: set to override the headers for a single
|
|
194
|
+
request; this effectively ignores the headers
|
|
195
|
+
in the spec for a single request.
|
|
196
|
+
:type _headers: dict, optional
|
|
197
|
+
:param _host_index: set to override the host_index for a single
|
|
198
|
+
request; this effectively ignores the host_index
|
|
199
|
+
in the spec for a single request.
|
|
200
|
+
:type _host_index: int, optional
|
|
201
|
+
:return: Returns the result object.
|
|
202
|
+
""" # noqa: E501
|
|
203
|
+
|
|
204
|
+
_param = self._build_info_get_info_serialize(
|
|
205
|
+
_request_auth=_request_auth,
|
|
206
|
+
_content_type=_content_type,
|
|
207
|
+
_headers=_headers,
|
|
208
|
+
_host_index=_host_index
|
|
209
|
+
)
|
|
210
|
+
|
|
211
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
212
|
+
'200': "BuildInfoModel",
|
|
213
|
+
}
|
|
214
|
+
response_data = await self.api_client.call_api(
|
|
215
|
+
*_param,
|
|
216
|
+
_request_timeout=_request_timeout
|
|
217
|
+
)
|
|
218
|
+
return response_data.response
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
def _build_info_get_info_serialize(
|
|
222
|
+
self,
|
|
223
|
+
_request_auth,
|
|
224
|
+
_content_type,
|
|
225
|
+
_headers,
|
|
226
|
+
_host_index,
|
|
227
|
+
) -> RequestSerialized:
|
|
228
|
+
|
|
229
|
+
_host = None
|
|
230
|
+
|
|
231
|
+
_collection_formats: Dict[str, str] = {
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
_path_params: Dict[str, str] = {}
|
|
235
|
+
_query_params: List[Tuple[str, str]] = []
|
|
236
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
237
|
+
_form_params: List[Tuple[str, str]] = []
|
|
238
|
+
_files: Dict[
|
|
239
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
240
|
+
] = {}
|
|
241
|
+
_body_params: Optional[bytes] = None
|
|
242
|
+
|
|
243
|
+
# process the path parameters
|
|
244
|
+
# process the query parameters
|
|
245
|
+
# process the header parameters
|
|
246
|
+
# process the form parameters
|
|
247
|
+
# process the body parameter
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
# set the HTTP header `Accept`
|
|
251
|
+
if 'Accept' not in _header_params:
|
|
252
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
253
|
+
[
|
|
254
|
+
'text/plain'
|
|
255
|
+
]
|
|
256
|
+
)
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
# authentication setting
|
|
260
|
+
_auth_settings: List[str] = [
|
|
261
|
+
]
|
|
262
|
+
|
|
263
|
+
return self.api_client.param_serialize(
|
|
264
|
+
method='GET',
|
|
265
|
+
resource_path='/api/asset-generator/v1/info',
|
|
266
|
+
path_params=_path_params,
|
|
267
|
+
query_params=_query_params,
|
|
268
|
+
header_params=_header_params,
|
|
269
|
+
body=_body_params,
|
|
270
|
+
post_params=_form_params,
|
|
271
|
+
files=_files,
|
|
272
|
+
auth_settings=_auth_settings,
|
|
273
|
+
collection_formats=_collection_formats,
|
|
274
|
+
_host=_host,
|
|
275
|
+
_request_auth=_request_auth
|
|
276
|
+
)
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
@validate_call
|
|
282
|
+
async def build_info_head_info(
|
|
283
|
+
self,
|
|
284
|
+
_request_timeout: Union[
|
|
285
|
+
None,
|
|
286
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
287
|
+
Tuple[
|
|
288
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
289
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
290
|
+
]
|
|
291
|
+
] = None,
|
|
292
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
293
|
+
_content_type: Optional[StrictStr] = None,
|
|
294
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
295
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
296
|
+
) -> None:
|
|
297
|
+
"""Returns build info.
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
301
|
+
number provided, it will be total request
|
|
302
|
+
timeout. It can also be a pair (tuple) of
|
|
303
|
+
(connection, read) timeouts.
|
|
304
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
305
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
306
|
+
request; this effectively ignores the
|
|
307
|
+
authentication in the spec for a single request.
|
|
308
|
+
:type _request_auth: dict, optional
|
|
309
|
+
:param _content_type: force content-type for the request.
|
|
310
|
+
:type _content_type: str, Optional
|
|
311
|
+
:param _headers: set to override the headers for a single
|
|
312
|
+
request; this effectively ignores the headers
|
|
313
|
+
in the spec for a single request.
|
|
314
|
+
:type _headers: dict, optional
|
|
315
|
+
:param _host_index: set to override the host_index for a single
|
|
316
|
+
request; this effectively ignores the host_index
|
|
317
|
+
in the spec for a single request.
|
|
318
|
+
:type _host_index: int, optional
|
|
319
|
+
:return: Returns the result object.
|
|
320
|
+
""" # noqa: E501
|
|
321
|
+
|
|
322
|
+
_param = self._build_info_head_info_serialize(
|
|
323
|
+
_request_auth=_request_auth,
|
|
324
|
+
_content_type=_content_type,
|
|
325
|
+
_headers=_headers,
|
|
326
|
+
_host_index=_host_index
|
|
327
|
+
)
|
|
328
|
+
|
|
329
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
330
|
+
'200': None,
|
|
331
|
+
}
|
|
332
|
+
response_data = await self.api_client.call_api(
|
|
333
|
+
*_param,
|
|
334
|
+
_request_timeout=_request_timeout
|
|
335
|
+
)
|
|
336
|
+
await response_data.read()
|
|
337
|
+
return self.api_client.response_deserialize(
|
|
338
|
+
response_data=response_data,
|
|
339
|
+
response_types_map=_response_types_map,
|
|
340
|
+
).data
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
@validate_call
|
|
344
|
+
async def build_info_head_info_with_http_info(
|
|
345
|
+
self,
|
|
346
|
+
_request_timeout: Union[
|
|
347
|
+
None,
|
|
348
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
349
|
+
Tuple[
|
|
350
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
351
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
352
|
+
]
|
|
353
|
+
] = None,
|
|
354
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
355
|
+
_content_type: Optional[StrictStr] = None,
|
|
356
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
357
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
358
|
+
) -> ApiResponse[None]:
|
|
359
|
+
"""Returns build info.
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
363
|
+
number provided, it will be total request
|
|
364
|
+
timeout. It can also be a pair (tuple) of
|
|
365
|
+
(connection, read) timeouts.
|
|
366
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
367
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
368
|
+
request; this effectively ignores the
|
|
369
|
+
authentication in the spec for a single request.
|
|
370
|
+
:type _request_auth: dict, optional
|
|
371
|
+
:param _content_type: force content-type for the request.
|
|
372
|
+
:type _content_type: str, Optional
|
|
373
|
+
:param _headers: set to override the headers for a single
|
|
374
|
+
request; this effectively ignores the headers
|
|
375
|
+
in the spec for a single request.
|
|
376
|
+
:type _headers: dict, optional
|
|
377
|
+
:param _host_index: set to override the host_index for a single
|
|
378
|
+
request; this effectively ignores the host_index
|
|
379
|
+
in the spec for a single request.
|
|
380
|
+
:type _host_index: int, optional
|
|
381
|
+
:return: Returns the result object.
|
|
382
|
+
""" # noqa: E501
|
|
383
|
+
|
|
384
|
+
_param = self._build_info_head_info_serialize(
|
|
385
|
+
_request_auth=_request_auth,
|
|
386
|
+
_content_type=_content_type,
|
|
387
|
+
_headers=_headers,
|
|
388
|
+
_host_index=_host_index
|
|
389
|
+
)
|
|
390
|
+
|
|
391
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
392
|
+
'200': None,
|
|
393
|
+
}
|
|
394
|
+
response_data = await self.api_client.call_api(
|
|
395
|
+
*_param,
|
|
396
|
+
_request_timeout=_request_timeout
|
|
397
|
+
)
|
|
398
|
+
await response_data.read()
|
|
399
|
+
return self.api_client.response_deserialize(
|
|
400
|
+
response_data=response_data,
|
|
401
|
+
response_types_map=_response_types_map,
|
|
402
|
+
)
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
@validate_call
|
|
406
|
+
async def build_info_head_info_without_preload_content(
|
|
407
|
+
self,
|
|
408
|
+
_request_timeout: Union[
|
|
409
|
+
None,
|
|
410
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
411
|
+
Tuple[
|
|
412
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
413
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
414
|
+
]
|
|
415
|
+
] = None,
|
|
416
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
417
|
+
_content_type: Optional[StrictStr] = None,
|
|
418
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
419
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
420
|
+
) -> RESTResponseType:
|
|
421
|
+
"""Returns build info.
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
425
|
+
number provided, it will be total request
|
|
426
|
+
timeout. It can also be a pair (tuple) of
|
|
427
|
+
(connection, read) timeouts.
|
|
428
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
429
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
430
|
+
request; this effectively ignores the
|
|
431
|
+
authentication in the spec for a single request.
|
|
432
|
+
:type _request_auth: dict, optional
|
|
433
|
+
:param _content_type: force content-type for the request.
|
|
434
|
+
:type _content_type: str, Optional
|
|
435
|
+
:param _headers: set to override the headers for a single
|
|
436
|
+
request; this effectively ignores the headers
|
|
437
|
+
in the spec for a single request.
|
|
438
|
+
:type _headers: dict, optional
|
|
439
|
+
:param _host_index: set to override the host_index for a single
|
|
440
|
+
request; this effectively ignores the host_index
|
|
441
|
+
in the spec for a single request.
|
|
442
|
+
:type _host_index: int, optional
|
|
443
|
+
:return: Returns the result object.
|
|
444
|
+
""" # noqa: E501
|
|
445
|
+
|
|
446
|
+
_param = self._build_info_head_info_serialize(
|
|
447
|
+
_request_auth=_request_auth,
|
|
448
|
+
_content_type=_content_type,
|
|
449
|
+
_headers=_headers,
|
|
450
|
+
_host_index=_host_index
|
|
451
|
+
)
|
|
452
|
+
|
|
453
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
454
|
+
'200': None,
|
|
455
|
+
}
|
|
456
|
+
response_data = await self.api_client.call_api(
|
|
457
|
+
*_param,
|
|
458
|
+
_request_timeout=_request_timeout
|
|
459
|
+
)
|
|
460
|
+
return response_data.response
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
def _build_info_head_info_serialize(
|
|
464
|
+
self,
|
|
465
|
+
_request_auth,
|
|
466
|
+
_content_type,
|
|
467
|
+
_headers,
|
|
468
|
+
_host_index,
|
|
469
|
+
) -> RequestSerialized:
|
|
470
|
+
|
|
471
|
+
_host = None
|
|
472
|
+
|
|
473
|
+
_collection_formats: Dict[str, str] = {
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
_path_params: Dict[str, str] = {}
|
|
477
|
+
_query_params: List[Tuple[str, str]] = []
|
|
478
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
479
|
+
_form_params: List[Tuple[str, str]] = []
|
|
480
|
+
_files: Dict[
|
|
481
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
482
|
+
] = {}
|
|
483
|
+
_body_params: Optional[bytes] = None
|
|
484
|
+
|
|
485
|
+
# process the path parameters
|
|
486
|
+
# process the query parameters
|
|
487
|
+
# process the header parameters
|
|
488
|
+
# process the form parameters
|
|
489
|
+
# process the body parameter
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
# authentication setting
|
|
495
|
+
_auth_settings: List[str] = [
|
|
496
|
+
]
|
|
497
|
+
|
|
498
|
+
return self.api_client.param_serialize(
|
|
499
|
+
method='HEAD',
|
|
500
|
+
resource_path='/api/asset-generator/v1/info',
|
|
501
|
+
path_params=_path_params,
|
|
502
|
+
query_params=_query_params,
|
|
503
|
+
header_params=_header_params,
|
|
504
|
+
body=_body_params,
|
|
505
|
+
post_params=_form_params,
|
|
506
|
+
files=_files,
|
|
507
|
+
auth_settings=_auth_settings,
|
|
508
|
+
collection_formats=_collection_formats,
|
|
509
|
+
_host=_host,
|
|
510
|
+
_request_auth=_request_auth
|
|
511
|
+
)
|
|
512
|
+
|
|
513
|
+
|