wandelbots-isaacsim-api 2.2.2__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.
- wandelbots_isaacsim_api/__init__.py +50 -0
- wandelbots_isaacsim_api/api/__init__.py +25 -0
- wandelbots_isaacsim_api/api/collision_world_api.py +316 -0
- wandelbots_isaacsim_api/api/default_api.py +800 -0
- wandelbots_isaacsim_api/api/manipulators_motion_group_api.py +1619 -0
- wandelbots_isaacsim_api/api/periphery_camera_api.py +3434 -0
- wandelbots_isaacsim_api/api/prims_api.py +4963 -0
- wandelbots_isaacsim_api/api/stage_api.py +2351 -0
- wandelbots_isaacsim_api/api/teaching_api.py +1312 -0
- wandelbots_isaacsim_api/api/trajectory_api.py +1686 -0
- wandelbots_isaacsim_api/api/ui_api.py +562 -0
- wandelbots_isaacsim_api/api_client.py +800 -0
- wandelbots_isaacsim_api/api_response.py +21 -0
- wandelbots_isaacsim_api/collision/__init__.py +0 -0
- wandelbots_isaacsim_api/collision/utils.py +99 -0
- wandelbots_isaacsim_api/configuration.py +561 -0
- wandelbots_isaacsim_api/exceptions.py +216 -0
- wandelbots_isaacsim_api/models/__init__.py +135 -0
- wandelbots_isaacsim_api/models/auth0_credentials.py +100 -0
- wandelbots_isaacsim_api/models/body_apply_relative_pose.py +99 -0
- wandelbots_isaacsim_api/models/body_assign_default_poses.py +91 -0
- wandelbots_isaacsim_api/models/body_reset_to_default_poses.py +91 -0
- wandelbots_isaacsim_api/models/body_set_joint_state.py +93 -0
- wandelbots_isaacsim_api/models/body_set_prim_metadata.py +97 -0
- wandelbots_isaacsim_api/models/body_set_prim_visibility.py +103 -0
- wandelbots_isaacsim_api/models/body_set_semantic_label.py +93 -0
- wandelbots_isaacsim_api/models/body_update_colliders.py +93 -0
- wandelbots_isaacsim_api/models/body_update_pose.py +97 -0
- wandelbots_isaacsim_api/models/bounding_box2_d.py +98 -0
- wandelbots_isaacsim_api/models/bounding_box3_d.py +100 -0
- wandelbots_isaacsim_api/models/box.py +119 -0
- wandelbots_isaacsim_api/models/box_sweep_parameters.py +111 -0
- wandelbots_isaacsim_api/models/capsule.py +105 -0
- wandelbots_isaacsim_api/models/collider.py +101 -0
- wandelbots_isaacsim_api/models/convex_hull.py +103 -0
- wandelbots_isaacsim_api/models/create_ghost_object.py +102 -0
- wandelbots_isaacsim_api/models/custom_prim.py +100 -0
- wandelbots_isaacsim_api/models/custom_prim_data.py +93 -0
- wandelbots_isaacsim_api/models/cylinder.py +105 -0
- wandelbots_isaacsim_api/models/ghost_object.py +106 -0
- wandelbots_isaacsim_api/models/ghost_object_source.py +93 -0
- wandelbots_isaacsim_api/models/gizmo_prim.py +98 -0
- wandelbots_isaacsim_api/models/http_validation_error.py +108 -0
- wandelbots_isaacsim_api/models/instance_segmentation_data.py +97 -0
- wandelbots_isaacsim_api/models/instance_segmentation_info.py +91 -0
- wandelbots_isaacsim_api/models/motion_group_configuration.py +99 -0
- wandelbots_isaacsim_api/models/motion_stream_configuration.py +101 -0
- wandelbots_isaacsim_api/models/patch_trajectory_data.py +107 -0
- wandelbots_isaacsim_api/models/plane.py +101 -0
- wandelbots_isaacsim_api/models/point_cloud.py +95 -0
- wandelbots_isaacsim_api/models/pose.py +137 -0
- wandelbots_isaacsim_api/models/pose_position_inner.py +138 -0
- wandelbots_isaacsim_api/models/prim.py +165 -0
- wandelbots_isaacsim_api/models/prim_selection.py +91 -0
- wandelbots_isaacsim_api/models/quat_pose.py +92 -0
- wandelbots_isaacsim_api/models/relative_pose_mode.py +39 -0
- wandelbots_isaacsim_api/models/response_get_pose.py +134 -0
- wandelbots_isaacsim_api/models/response_get_relative_pose.py +134 -0
- wandelbots_isaacsim_api/models/response_list_default_poses_value.py +140 -0
- wandelbots_isaacsim_api/models/semantic_segmentation_data.py +97 -0
- wandelbots_isaacsim_api/models/semantic_segmentation_info.py +91 -0
- wandelbots_isaacsim_api/models/shape.py +194 -0
- wandelbots_isaacsim_api/models/simulation_state.py +101 -0
- wandelbots_isaacsim_api/models/sphere.py +103 -0
- wandelbots_isaacsim_api/models/sphere_sweep_parameters.py +107 -0
- wandelbots_isaacsim_api/models/stage_units.py +91 -0
- wandelbots_isaacsim_api/models/sweep_arguments.py +134 -0
- wandelbots_isaacsim_api/models/tcp_source.py +99 -0
- wandelbots_isaacsim_api/models/trajectory_data.py +101 -0
- wandelbots_isaacsim_api/models/trajectory_marker.py +97 -0
- wandelbots_isaacsim_api/models/trajectory_object.py +101 -0
- wandelbots_isaacsim_api/models/trajectory_options.py +94 -0
- wandelbots_isaacsim_api/models/usd_stage_model.py +91 -0
- wandelbots_isaacsim_api/models/validation_error.py +112 -0
- wandelbots_isaacsim_api/models/validation_error_loc_inner.py +138 -0
- wandelbots_isaacsim_api/models/ws_pose.py +92 -0
- wandelbots_isaacsim_api/py.typed +0 -0
- wandelbots_isaacsim_api/rest.py +212 -0
- wandelbots_isaacsim_api/trajectory/__init__.py +17 -0
- wandelbots_isaacsim_api/trajectory/trajectory_viewer.py +111 -0
- wandelbots_isaacsim_api/trajectory/utils.py +154 -0
- wandelbots_isaacsim_api-2.2.2.dist-info/LICENSE +201 -0
- wandelbots_isaacsim_api-2.2.2.dist-info/METADATA +60 -0
- wandelbots_isaacsim_api-2.2.2.dist-info/RECORD +85 -0
- wandelbots_isaacsim_api-2.2.2.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,562 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Wandelbots Omniservice
|
|
5
|
+
|
|
6
|
+
A microservice-based framework for managing Omniverse functionalities
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.2.2
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from furl import furl
|
|
16
|
+
import json
|
|
17
|
+
import humps
|
|
18
|
+
import re
|
|
19
|
+
import warnings
|
|
20
|
+
import websockets
|
|
21
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
22
|
+
from typing import Any, AsyncGenerator, Callable, Dict, List, Optional, Tuple, Union
|
|
23
|
+
from typing_extensions import Annotated
|
|
24
|
+
from urllib.parse import quote
|
|
25
|
+
|
|
26
|
+
from pydantic import StrictBool
|
|
27
|
+
from typing import Optional
|
|
28
|
+
|
|
29
|
+
from wandelbots_isaacsim_api.api_client import ApiClient, RequestSerialized
|
|
30
|
+
from wandelbots_isaacsim_api.api_response import ApiResponse
|
|
31
|
+
from wandelbots_isaacsim_api.rest import RESTResponseType
|
|
32
|
+
|
|
33
|
+
class UIApi:
|
|
34
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
35
|
+
Ref: https://openapi-generator.tech
|
|
36
|
+
|
|
37
|
+
Do not edit the class manually.
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
def __init__(self, api_client=None) -> None:
|
|
41
|
+
if api_client is None:
|
|
42
|
+
api_client = ApiClient.get_default()
|
|
43
|
+
self.api_client = api_client
|
|
44
|
+
|
|
45
|
+
@validate_call
|
|
46
|
+
async def get_visibility(
|
|
47
|
+
self,
|
|
48
|
+
_request_timeout: Union[
|
|
49
|
+
None,
|
|
50
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
51
|
+
Tuple[
|
|
52
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
54
|
+
]
|
|
55
|
+
] = None,
|
|
56
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
57
|
+
_content_type: Optional[StrictStr] = None,
|
|
58
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
59
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
60
|
+
) -> bool:
|
|
61
|
+
"""Get Visibility
|
|
62
|
+
|
|
63
|
+
Fetches if ui is visible and returns a boolean
|
|
64
|
+
|
|
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._get_visibility_serialize(
|
|
88
|
+
_request_auth=_request_auth,
|
|
89
|
+
_content_type=_content_type,
|
|
90
|
+
_headers=_headers,
|
|
91
|
+
_host_index=_host_index
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
95
|
+
'200': "bool",
|
|
96
|
+
'500': None,
|
|
97
|
+
}
|
|
98
|
+
response_data = await self.api_client.call_api(
|
|
99
|
+
*_param,
|
|
100
|
+
_request_timeout=_request_timeout
|
|
101
|
+
)
|
|
102
|
+
await response_data.read()
|
|
103
|
+
return self.api_client.response_deserialize(
|
|
104
|
+
response_data=response_data,
|
|
105
|
+
response_types_map=_response_types_map,
|
|
106
|
+
).data
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
@validate_call
|
|
110
|
+
async def get_visibility_with_http_info(
|
|
111
|
+
self,
|
|
112
|
+
_request_timeout: Union[
|
|
113
|
+
None,
|
|
114
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
115
|
+
Tuple[
|
|
116
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
118
|
+
]
|
|
119
|
+
] = None,
|
|
120
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
121
|
+
_content_type: Optional[StrictStr] = None,
|
|
122
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
123
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
124
|
+
) -> ApiResponse[bool]:
|
|
125
|
+
"""Get Visibility
|
|
126
|
+
|
|
127
|
+
Fetches if ui is visible and returns a boolean
|
|
128
|
+
|
|
129
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
130
|
+
number provided, it will be total request
|
|
131
|
+
timeout. It can also be a pair (tuple) of
|
|
132
|
+
(connection, read) timeouts.
|
|
133
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
134
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
135
|
+
request; this effectively ignores the
|
|
136
|
+
authentication in the spec for a single request.
|
|
137
|
+
:type _request_auth: dict, optional
|
|
138
|
+
:param _content_type: force content-type for the request.
|
|
139
|
+
:type _content_type: str, Optional
|
|
140
|
+
:param _headers: set to override the headers for a single
|
|
141
|
+
request; this effectively ignores the headers
|
|
142
|
+
in the spec for a single request.
|
|
143
|
+
:type _headers: dict, optional
|
|
144
|
+
:param _host_index: set to override the host_index for a single
|
|
145
|
+
request; this effectively ignores the host_index
|
|
146
|
+
in the spec for a single request.
|
|
147
|
+
:type _host_index: int, optional
|
|
148
|
+
:return: Returns the result object.
|
|
149
|
+
""" # noqa: E501
|
|
150
|
+
|
|
151
|
+
_param = self._get_visibility_serialize(
|
|
152
|
+
_request_auth=_request_auth,
|
|
153
|
+
_content_type=_content_type,
|
|
154
|
+
_headers=_headers,
|
|
155
|
+
_host_index=_host_index
|
|
156
|
+
)
|
|
157
|
+
|
|
158
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
159
|
+
'200': "bool",
|
|
160
|
+
'500': None,
|
|
161
|
+
}
|
|
162
|
+
response_data = await self.api_client.call_api(
|
|
163
|
+
*_param,
|
|
164
|
+
_request_timeout=_request_timeout
|
|
165
|
+
)
|
|
166
|
+
await response_data.read()
|
|
167
|
+
return self.api_client.response_deserialize(
|
|
168
|
+
response_data=response_data,
|
|
169
|
+
response_types_map=_response_types_map,
|
|
170
|
+
)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
@validate_call
|
|
174
|
+
async def get_visibility_without_preload_content(
|
|
175
|
+
self,
|
|
176
|
+
_request_timeout: Union[
|
|
177
|
+
None,
|
|
178
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
179
|
+
Tuple[
|
|
180
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
181
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
182
|
+
]
|
|
183
|
+
] = None,
|
|
184
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
185
|
+
_content_type: Optional[StrictStr] = None,
|
|
186
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
187
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
188
|
+
) -> RESTResponseType:
|
|
189
|
+
"""Get Visibility
|
|
190
|
+
|
|
191
|
+
Fetches if ui is visible and returns a boolean
|
|
192
|
+
|
|
193
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
194
|
+
number provided, it will be total request
|
|
195
|
+
timeout. It can also be a pair (tuple) of
|
|
196
|
+
(connection, read) timeouts.
|
|
197
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
198
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
199
|
+
request; this effectively ignores the
|
|
200
|
+
authentication in the spec for a single request.
|
|
201
|
+
:type _request_auth: dict, optional
|
|
202
|
+
:param _content_type: force content-type for the request.
|
|
203
|
+
:type _content_type: str, Optional
|
|
204
|
+
:param _headers: set to override the headers for a single
|
|
205
|
+
request; this effectively ignores the headers
|
|
206
|
+
in the spec for a single request.
|
|
207
|
+
:type _headers: dict, optional
|
|
208
|
+
:param _host_index: set to override the host_index for a single
|
|
209
|
+
request; this effectively ignores the host_index
|
|
210
|
+
in the spec for a single request.
|
|
211
|
+
:type _host_index: int, optional
|
|
212
|
+
:return: Returns the result object.
|
|
213
|
+
""" # noqa: E501
|
|
214
|
+
|
|
215
|
+
_param = self._get_visibility_serialize(
|
|
216
|
+
_request_auth=_request_auth,
|
|
217
|
+
_content_type=_content_type,
|
|
218
|
+
_headers=_headers,
|
|
219
|
+
_host_index=_host_index
|
|
220
|
+
)
|
|
221
|
+
|
|
222
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
223
|
+
'200': "bool",
|
|
224
|
+
'500': None,
|
|
225
|
+
}
|
|
226
|
+
response_data = await self.api_client.call_api(
|
|
227
|
+
*_param,
|
|
228
|
+
_request_timeout=_request_timeout
|
|
229
|
+
)
|
|
230
|
+
return response_data.response
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
def _get_visibility_serialize(
|
|
234
|
+
self,
|
|
235
|
+
_request_auth,
|
|
236
|
+
_content_type,
|
|
237
|
+
_headers,
|
|
238
|
+
_host_index,
|
|
239
|
+
) -> RequestSerialized:
|
|
240
|
+
|
|
241
|
+
_host = None
|
|
242
|
+
|
|
243
|
+
_collection_formats: Dict[str, str] = {
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
_path_params: Dict[str, str] = {}
|
|
247
|
+
_query_params: List[Tuple[str, str]] = []
|
|
248
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
249
|
+
_form_params: List[Tuple[str, str]] = []
|
|
250
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
251
|
+
_body_params: Optional[bytes] = None
|
|
252
|
+
|
|
253
|
+
# process the path parameters
|
|
254
|
+
# process the query parameters
|
|
255
|
+
# process the header parameters
|
|
256
|
+
# process the form parameters
|
|
257
|
+
# process the body parameter
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
# set the HTTP header `Accept`
|
|
261
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
262
|
+
[
|
|
263
|
+
'application/json'
|
|
264
|
+
]
|
|
265
|
+
)
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
# authentication setting
|
|
269
|
+
_auth_settings: List[str] = [
|
|
270
|
+
]
|
|
271
|
+
|
|
272
|
+
return self.api_client.param_serialize(
|
|
273
|
+
method='GET',
|
|
274
|
+
resource_path='/ui/visibility',
|
|
275
|
+
path_params=_path_params,
|
|
276
|
+
query_params=_query_params,
|
|
277
|
+
header_params=_header_params,
|
|
278
|
+
body=_body_params,
|
|
279
|
+
post_params=_form_params,
|
|
280
|
+
files=_files,
|
|
281
|
+
auth_settings=_auth_settings,
|
|
282
|
+
collection_formats=_collection_formats,
|
|
283
|
+
_host=_host,
|
|
284
|
+
_request_auth=_request_auth
|
|
285
|
+
)
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
@validate_call
|
|
290
|
+
async def set_visibility(
|
|
291
|
+
self,
|
|
292
|
+
body: Optional[StrictBool] = None,
|
|
293
|
+
_request_timeout: Union[
|
|
294
|
+
None,
|
|
295
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
296
|
+
Tuple[
|
|
297
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
298
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
299
|
+
]
|
|
300
|
+
] = None,
|
|
301
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
302
|
+
_content_type: Optional[StrictStr] = None,
|
|
303
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
304
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
305
|
+
) -> None:
|
|
306
|
+
"""Set Visibility
|
|
307
|
+
|
|
308
|
+
Updates the UI visibility state. If `hide=True`, the full UI is hidden and only the viewport is shown.
|
|
309
|
+
|
|
310
|
+
:param body:
|
|
311
|
+
:type body: bool
|
|
312
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
313
|
+
number provided, it will be total request
|
|
314
|
+
timeout. It can also be a pair (tuple) of
|
|
315
|
+
(connection, read) timeouts.
|
|
316
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
317
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
318
|
+
request; this effectively ignores the
|
|
319
|
+
authentication in the spec for a single request.
|
|
320
|
+
:type _request_auth: dict, optional
|
|
321
|
+
:param _content_type: force content-type for the request.
|
|
322
|
+
:type _content_type: str, Optional
|
|
323
|
+
:param _headers: set to override the headers for a single
|
|
324
|
+
request; this effectively ignores the headers
|
|
325
|
+
in the spec for a single request.
|
|
326
|
+
:type _headers: dict, optional
|
|
327
|
+
:param _host_index: set to override the host_index for a single
|
|
328
|
+
request; this effectively ignores the host_index
|
|
329
|
+
in the spec for a single request.
|
|
330
|
+
:type _host_index: int, optional
|
|
331
|
+
:return: Returns the result object.
|
|
332
|
+
""" # noqa: E501
|
|
333
|
+
|
|
334
|
+
_param = self._set_visibility_serialize(
|
|
335
|
+
body=body,
|
|
336
|
+
_request_auth=_request_auth,
|
|
337
|
+
_content_type=_content_type,
|
|
338
|
+
_headers=_headers,
|
|
339
|
+
_host_index=_host_index
|
|
340
|
+
)
|
|
341
|
+
|
|
342
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
343
|
+
'204': None,
|
|
344
|
+
'500': None,
|
|
345
|
+
'422': "HTTPValidationError",
|
|
346
|
+
}
|
|
347
|
+
response_data = await self.api_client.call_api(
|
|
348
|
+
*_param,
|
|
349
|
+
_request_timeout=_request_timeout
|
|
350
|
+
)
|
|
351
|
+
await response_data.read()
|
|
352
|
+
return self.api_client.response_deserialize(
|
|
353
|
+
response_data=response_data,
|
|
354
|
+
response_types_map=_response_types_map,
|
|
355
|
+
).data
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
@validate_call
|
|
359
|
+
async def set_visibility_with_http_info(
|
|
360
|
+
self,
|
|
361
|
+
body: Optional[StrictBool] = None,
|
|
362
|
+
_request_timeout: Union[
|
|
363
|
+
None,
|
|
364
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
365
|
+
Tuple[
|
|
366
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
367
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
368
|
+
]
|
|
369
|
+
] = None,
|
|
370
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
371
|
+
_content_type: Optional[StrictStr] = None,
|
|
372
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
373
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
374
|
+
) -> ApiResponse[None]:
|
|
375
|
+
"""Set Visibility
|
|
376
|
+
|
|
377
|
+
Updates the UI visibility state. If `hide=True`, the full UI is hidden and only the viewport is shown.
|
|
378
|
+
|
|
379
|
+
:param body:
|
|
380
|
+
:type body: bool
|
|
381
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
382
|
+
number provided, it will be total request
|
|
383
|
+
timeout. It can also be a pair (tuple) of
|
|
384
|
+
(connection, read) timeouts.
|
|
385
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
386
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
387
|
+
request; this effectively ignores the
|
|
388
|
+
authentication in the spec for a single request.
|
|
389
|
+
:type _request_auth: dict, optional
|
|
390
|
+
:param _content_type: force content-type for the request.
|
|
391
|
+
:type _content_type: str, Optional
|
|
392
|
+
:param _headers: set to override the headers for a single
|
|
393
|
+
request; this effectively ignores the headers
|
|
394
|
+
in the spec for a single request.
|
|
395
|
+
:type _headers: dict, optional
|
|
396
|
+
:param _host_index: set to override the host_index for a single
|
|
397
|
+
request; this effectively ignores the host_index
|
|
398
|
+
in the spec for a single request.
|
|
399
|
+
:type _host_index: int, optional
|
|
400
|
+
:return: Returns the result object.
|
|
401
|
+
""" # noqa: E501
|
|
402
|
+
|
|
403
|
+
_param = self._set_visibility_serialize(
|
|
404
|
+
body=body,
|
|
405
|
+
_request_auth=_request_auth,
|
|
406
|
+
_content_type=_content_type,
|
|
407
|
+
_headers=_headers,
|
|
408
|
+
_host_index=_host_index
|
|
409
|
+
)
|
|
410
|
+
|
|
411
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
412
|
+
'204': None,
|
|
413
|
+
'500': None,
|
|
414
|
+
'422': "HTTPValidationError",
|
|
415
|
+
}
|
|
416
|
+
response_data = await self.api_client.call_api(
|
|
417
|
+
*_param,
|
|
418
|
+
_request_timeout=_request_timeout
|
|
419
|
+
)
|
|
420
|
+
await response_data.read()
|
|
421
|
+
return self.api_client.response_deserialize(
|
|
422
|
+
response_data=response_data,
|
|
423
|
+
response_types_map=_response_types_map,
|
|
424
|
+
)
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
@validate_call
|
|
428
|
+
async def set_visibility_without_preload_content(
|
|
429
|
+
self,
|
|
430
|
+
body: Optional[StrictBool] = None,
|
|
431
|
+
_request_timeout: Union[
|
|
432
|
+
None,
|
|
433
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
434
|
+
Tuple[
|
|
435
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
436
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
437
|
+
]
|
|
438
|
+
] = None,
|
|
439
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
440
|
+
_content_type: Optional[StrictStr] = None,
|
|
441
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
442
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
443
|
+
) -> RESTResponseType:
|
|
444
|
+
"""Set Visibility
|
|
445
|
+
|
|
446
|
+
Updates the UI visibility state. If `hide=True`, the full UI is hidden and only the viewport is shown.
|
|
447
|
+
|
|
448
|
+
:param body:
|
|
449
|
+
:type body: bool
|
|
450
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
451
|
+
number provided, it will be total request
|
|
452
|
+
timeout. It can also be a pair (tuple) of
|
|
453
|
+
(connection, read) timeouts.
|
|
454
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
455
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
456
|
+
request; this effectively ignores the
|
|
457
|
+
authentication in the spec for a single request.
|
|
458
|
+
:type _request_auth: dict, optional
|
|
459
|
+
:param _content_type: force content-type for the request.
|
|
460
|
+
:type _content_type: str, Optional
|
|
461
|
+
:param _headers: set to override the headers for a single
|
|
462
|
+
request; this effectively ignores the headers
|
|
463
|
+
in the spec for a single request.
|
|
464
|
+
:type _headers: dict, optional
|
|
465
|
+
:param _host_index: set to override the host_index for a single
|
|
466
|
+
request; this effectively ignores the host_index
|
|
467
|
+
in the spec for a single request.
|
|
468
|
+
:type _host_index: int, optional
|
|
469
|
+
:return: Returns the result object.
|
|
470
|
+
""" # noqa: E501
|
|
471
|
+
|
|
472
|
+
_param = self._set_visibility_serialize(
|
|
473
|
+
body=body,
|
|
474
|
+
_request_auth=_request_auth,
|
|
475
|
+
_content_type=_content_type,
|
|
476
|
+
_headers=_headers,
|
|
477
|
+
_host_index=_host_index
|
|
478
|
+
)
|
|
479
|
+
|
|
480
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
481
|
+
'204': None,
|
|
482
|
+
'500': None,
|
|
483
|
+
'422': "HTTPValidationError",
|
|
484
|
+
}
|
|
485
|
+
response_data = await self.api_client.call_api(
|
|
486
|
+
*_param,
|
|
487
|
+
_request_timeout=_request_timeout
|
|
488
|
+
)
|
|
489
|
+
return response_data.response
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
def _set_visibility_serialize(
|
|
493
|
+
self,
|
|
494
|
+
body,
|
|
495
|
+
_request_auth,
|
|
496
|
+
_content_type,
|
|
497
|
+
_headers,
|
|
498
|
+
_host_index,
|
|
499
|
+
) -> RequestSerialized:
|
|
500
|
+
|
|
501
|
+
_host = None
|
|
502
|
+
|
|
503
|
+
_collection_formats: Dict[str, str] = {
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
_path_params: Dict[str, str] = {}
|
|
507
|
+
_query_params: List[Tuple[str, str]] = []
|
|
508
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
509
|
+
_form_params: List[Tuple[str, str]] = []
|
|
510
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
511
|
+
_body_params: Optional[bytes] = None
|
|
512
|
+
|
|
513
|
+
# process the path parameters
|
|
514
|
+
# process the query parameters
|
|
515
|
+
# process the header parameters
|
|
516
|
+
# process the form parameters
|
|
517
|
+
# process the body parameter
|
|
518
|
+
if body is not None:
|
|
519
|
+
_body_params = body
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
# set the HTTP header `Accept`
|
|
523
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
524
|
+
[
|
|
525
|
+
'application/json'
|
|
526
|
+
]
|
|
527
|
+
)
|
|
528
|
+
|
|
529
|
+
# set the HTTP header `Content-Type`
|
|
530
|
+
if _content_type:
|
|
531
|
+
_header_params['Content-Type'] = _content_type
|
|
532
|
+
else:
|
|
533
|
+
_default_content_type = (
|
|
534
|
+
self.api_client.select_header_content_type(
|
|
535
|
+
[
|
|
536
|
+
'application/json'
|
|
537
|
+
]
|
|
538
|
+
)
|
|
539
|
+
)
|
|
540
|
+
if _default_content_type is not None:
|
|
541
|
+
_header_params['Content-Type'] = _default_content_type
|
|
542
|
+
|
|
543
|
+
# authentication setting
|
|
544
|
+
_auth_settings: List[str] = [
|
|
545
|
+
]
|
|
546
|
+
|
|
547
|
+
return self.api_client.param_serialize(
|
|
548
|
+
method='PATCH',
|
|
549
|
+
resource_path='/ui/visibility',
|
|
550
|
+
path_params=_path_params,
|
|
551
|
+
query_params=_query_params,
|
|
552
|
+
header_params=_header_params,
|
|
553
|
+
body=_body_params,
|
|
554
|
+
post_params=_form_params,
|
|
555
|
+
files=_files,
|
|
556
|
+
auth_settings=_auth_settings,
|
|
557
|
+
collection_formats=_collection_formats,
|
|
558
|
+
_host=_host,
|
|
559
|
+
_request_auth=_request_auth
|
|
560
|
+
)
|
|
561
|
+
|
|
562
|
+
|