one-msg-sdk 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.
Files changed (85) hide show
  1. one_msg_sdk/__init__.py +189 -0
  2. one_msg_sdk/api/__init__.py +14 -0
  3. one_msg_sdk/api/calling_api.py +901 -0
  4. one_msg_sdk/api/catalog_api.py +607 -0
  5. one_msg_sdk/api/channel_api.py +874 -0
  6. one_msg_sdk/api/flows_api.py +3212 -0
  7. one_msg_sdk/api/groups_api.py +1935 -0
  8. one_msg_sdk/api/messaging_api.py +7419 -0
  9. one_msg_sdk/api/profile_api.py +609 -0
  10. one_msg_sdk/api/templates_api.py +1180 -0
  11. one_msg_sdk/api/users_api.py +903 -0
  12. one_msg_sdk/api/webhooks_api.py +605 -0
  13. one_msg_sdk/api_client.py +805 -0
  14. one_msg_sdk/api_response.py +21 -0
  15. one_msg_sdk/configuration.py +635 -0
  16. one_msg_sdk/exceptions.py +219 -0
  17. one_msg_sdk/models/__init__.py +78 -0
  18. one_msg_sdk/models/add_template_request.py +108 -0
  19. one_msg_sdk/models/block_user_request.py +102 -0
  20. one_msg_sdk/models/conversational_automation.py +115 -0
  21. one_msg_sdk/models/conversational_automation_commands_inner.py +105 -0
  22. one_msg_sdk/models/create_commerce200_response.py +102 -0
  23. one_msg_sdk/models/create_commerce_request.py +106 -0
  24. one_msg_sdk/models/create_commerce_request_params.py +104 -0
  25. one_msg_sdk/models/create_groups200_response.py +107 -0
  26. one_msg_sdk/models/create_read_message200_response.py +102 -0
  27. one_msg_sdk/models/create_read_message401_response.py +89 -0
  28. one_msg_sdk/models/create_read_message_request.py +93 -0
  29. one_msg_sdk/models/delete_flows_flow_id200_response.py +109 -0
  30. one_msg_sdk/models/delete_groups_group_id200_response.py +104 -0
  31. one_msg_sdk/models/delete_media_legacy_request.py +102 -0
  32. one_msg_sdk/models/error_response.py +89 -0
  33. one_msg_sdk/models/get_commerce200_response_inner.py +106 -0
  34. one_msg_sdk/models/get_mm_lite_status200_response.py +106 -0
  35. one_msg_sdk/models/get_webhook200_response.py +102 -0
  36. one_msg_sdk/models/get_whatsapp_business_encryption200_response.py +116 -0
  37. one_msg_sdk/models/list_blocked_users200_response.py +102 -0
  38. one_msg_sdk/models/list_flows200_response.py +115 -0
  39. one_msg_sdk/models/list_messages200_response.py +104 -0
  40. one_msg_sdk/models/list_templates200_response.py +106 -0
  41. one_msg_sdk/models/message_sent_response.py +108 -0
  42. one_msg_sdk/models/patch_flows_flow_id_assets200_response.py +111 -0
  43. one_msg_sdk/models/profile_info.py +126 -0
  44. one_msg_sdk/models/retrieve_media200_response.py +110 -0
  45. one_msg_sdk/models/send_address_message_request.py +126 -0
  46. one_msg_sdk/models/send_button_request.py +103 -0
  47. one_msg_sdk/models/send_button_request_sections_inner.py +95 -0
  48. one_msg_sdk/models/send_button_request_sections_inner_reply.py +91 -0
  49. one_msg_sdk/models/send_carousel_request1.py +97 -0
  50. one_msg_sdk/models/send_contact_request.py +99 -0
  51. one_msg_sdk/models/send_contact_request_contacts_inner.py +117 -0
  52. one_msg_sdk/models/send_contact_request_contacts_inner_name.py +99 -0
  53. one_msg_sdk/models/send_contact_request_contacts_inner_org.py +93 -0
  54. one_msg_sdk/models/send_contact_request_contacts_inner_phones_inner.py +93 -0
  55. one_msg_sdk/models/send_cta_url_request.py +116 -0
  56. one_msg_sdk/models/send_file_request.py +129 -0
  57. one_msg_sdk/models/send_flow_request1.py +141 -0
  58. one_msg_sdk/models/send_flow_request1_header.py +144 -0
  59. one_msg_sdk/models/send_flow_request_header.py +144 -0
  60. one_msg_sdk/models/send_list_request.py +105 -0
  61. one_msg_sdk/models/send_list_request_sections_inner.py +99 -0
  62. one_msg_sdk/models/send_list_request_sections_inner_rows_inner.py +93 -0
  63. one_msg_sdk/models/send_location_request1.py +101 -0
  64. one_msg_sdk/models/send_location_request_request.py +91 -0
  65. one_msg_sdk/models/send_message_request.py +122 -0
  66. one_msg_sdk/models/send_order_details_request.py +128 -0
  67. one_msg_sdk/models/send_order_details_request_language.py +104 -0
  68. one_msg_sdk/models/send_order_details_request_order.py +124 -0
  69. one_msg_sdk/models/send_order_details_request_order_items_inner.py +112 -0
  70. one_msg_sdk/models/send_order_details_request_order_items_inner_amount.py +104 -0
  71. one_msg_sdk/models/send_payment_request_request.py +117 -0
  72. one_msg_sdk/models/send_reaction_request.py +93 -0
  73. one_msg_sdk/models/send_sticker_request.py +110 -0
  74. one_msg_sdk/models/send_template_request.py +107 -0
  75. one_msg_sdk/models/send_template_request_language.py +91 -0
  76. one_msg_sdk/models/set_whatsapp_business_encryption_request.py +89 -0
  77. one_msg_sdk/models/success_response.py +102 -0
  78. one_msg_sdk/models/update_me_request.py +114 -0
  79. one_msg_sdk/py.typed +0 -0
  80. one_msg_sdk/rest.py +264 -0
  81. one_msg_sdk-1.0.0.dist-info/METADATA +19 -0
  82. one_msg_sdk-1.0.0.dist-info/RECORD +85 -0
  83. one_msg_sdk-1.0.0.dist-info/WHEEL +5 -0
  84. one_msg_sdk-1.0.0.dist-info/licenses/LICENSE +21 -0
  85. one_msg_sdk-1.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1935 @@
1
+ """
2
+ 1MSG WhatsApp Business API (Public)
3
+
4
+ Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@1msg.io
8
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
9
+
10
+ Do not edit the class manually.
11
+ """ # noqa: E501
12
+
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 pydantic import Field, StrictStr
20
+ from typing import Any, Dict
21
+ from typing_extensions import Annotated
22
+ from one_msg_sdk.models.create_groups200_response import CreateGroups200Response
23
+ from one_msg_sdk.models.delete_groups_group_id200_response import DeleteGroupsGroupId200Response
24
+
25
+ from one_msg_sdk.api_client import ApiClient, RequestSerialized
26
+ from one_msg_sdk.api_response import ApiResponse
27
+ from one_msg_sdk.rest import RESTResponseType
28
+
29
+
30
+ class GroupsApi:
31
+ """NOTE: This class is auto generated by OpenAPI Generator
32
+ Ref: https://openapi-generator.tech
33
+
34
+ Do not edit the class manually.
35
+ """
36
+
37
+ def __init__(self, api_client=None) -> None:
38
+ if api_client is None:
39
+ api_client = ApiClient.get_default()
40
+ self.api_client = api_client
41
+
42
+
43
+ @validate_call
44
+ def create_groups(
45
+ self,
46
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
47
+ _request_timeout: Union[
48
+ None,
49
+ Annotated[StrictFloat, Field(gt=0)],
50
+ Tuple[
51
+ Annotated[StrictFloat, Field(gt=0)],
52
+ Annotated[StrictFloat, Field(gt=0)]
53
+ ]
54
+ ] = None,
55
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
56
+ _content_type: Optional[StrictStr] = None,
57
+ _headers: Optional[Dict[StrictStr, Any]] = None,
58
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
59
+ ) -> CreateGroups200Response:
60
+ """Create Group
61
+
62
+
63
+ :param token: JWT token or API key for authorization (required)
64
+ :type token: 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._create_groups_serialize(
88
+ token=token,
89
+ _request_auth=_request_auth,
90
+ _content_type=_content_type,
91
+ _headers=_headers,
92
+ _host_index=_host_index
93
+ )
94
+
95
+ _response_types_map: Dict[str, Optional[str]] = {
96
+ '200': "CreateGroups200Response",
97
+ }
98
+ response_data = self.api_client.call_api(
99
+ *_param,
100
+ _request_timeout=_request_timeout
101
+ )
102
+ 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
+ def create_groups_with_http_info(
111
+ self,
112
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
113
+ _request_timeout: Union[
114
+ None,
115
+ Annotated[StrictFloat, Field(gt=0)],
116
+ Tuple[
117
+ Annotated[StrictFloat, Field(gt=0)],
118
+ Annotated[StrictFloat, Field(gt=0)]
119
+ ]
120
+ ] = None,
121
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
122
+ _content_type: Optional[StrictStr] = None,
123
+ _headers: Optional[Dict[StrictStr, Any]] = None,
124
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
125
+ ) -> ApiResponse[CreateGroups200Response]:
126
+ """Create Group
127
+
128
+
129
+ :param token: JWT token or API key for authorization (required)
130
+ :type token: str
131
+ :param _request_timeout: timeout setting for this request. If one
132
+ number provided, it will be total request
133
+ timeout. It can also be a pair (tuple) of
134
+ (connection, read) timeouts.
135
+ :type _request_timeout: int, tuple(int, int), optional
136
+ :param _request_auth: set to override the auth_settings for an a single
137
+ request; this effectively ignores the
138
+ authentication in the spec for a single request.
139
+ :type _request_auth: dict, optional
140
+ :param _content_type: force content-type for the request.
141
+ :type _content_type: str, Optional
142
+ :param _headers: set to override the headers for a single
143
+ request; this effectively ignores the headers
144
+ in the spec for a single request.
145
+ :type _headers: dict, optional
146
+ :param _host_index: set to override the host_index for a single
147
+ request; this effectively ignores the host_index
148
+ in the spec for a single request.
149
+ :type _host_index: int, optional
150
+ :return: Returns the result object.
151
+ """ # noqa: E501
152
+
153
+ _param = self._create_groups_serialize(
154
+ token=token,
155
+ _request_auth=_request_auth,
156
+ _content_type=_content_type,
157
+ _headers=_headers,
158
+ _host_index=_host_index
159
+ )
160
+
161
+ _response_types_map: Dict[str, Optional[str]] = {
162
+ '200': "CreateGroups200Response",
163
+ }
164
+ response_data = self.api_client.call_api(
165
+ *_param,
166
+ _request_timeout=_request_timeout
167
+ )
168
+ response_data.read()
169
+ return self.api_client.response_deserialize(
170
+ response_data=response_data,
171
+ response_types_map=_response_types_map,
172
+ )
173
+
174
+
175
+ @validate_call
176
+ def create_groups_without_preload_content(
177
+ self,
178
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
179
+ _request_timeout: Union[
180
+ None,
181
+ Annotated[StrictFloat, Field(gt=0)],
182
+ Tuple[
183
+ Annotated[StrictFloat, Field(gt=0)],
184
+ Annotated[StrictFloat, Field(gt=0)]
185
+ ]
186
+ ] = None,
187
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
188
+ _content_type: Optional[StrictStr] = None,
189
+ _headers: Optional[Dict[StrictStr, Any]] = None,
190
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
191
+ ) -> RESTResponseType:
192
+ """Create Group
193
+
194
+
195
+ :param token: JWT token or API key for authorization (required)
196
+ :type token: str
197
+ :param _request_timeout: timeout setting for this request. If one
198
+ number provided, it will be total request
199
+ timeout. It can also be a pair (tuple) of
200
+ (connection, read) timeouts.
201
+ :type _request_timeout: int, tuple(int, int), optional
202
+ :param _request_auth: set to override the auth_settings for an a single
203
+ request; this effectively ignores the
204
+ authentication in the spec for a single request.
205
+ :type _request_auth: dict, optional
206
+ :param _content_type: force content-type for the request.
207
+ :type _content_type: str, Optional
208
+ :param _headers: set to override the headers for a single
209
+ request; this effectively ignores the headers
210
+ in the spec for a single request.
211
+ :type _headers: dict, optional
212
+ :param _host_index: set to override the host_index for a single
213
+ request; this effectively ignores the host_index
214
+ in the spec for a single request.
215
+ :type _host_index: int, optional
216
+ :return: Returns the result object.
217
+ """ # noqa: E501
218
+
219
+ _param = self._create_groups_serialize(
220
+ token=token,
221
+ _request_auth=_request_auth,
222
+ _content_type=_content_type,
223
+ _headers=_headers,
224
+ _host_index=_host_index
225
+ )
226
+
227
+ _response_types_map: Dict[str, Optional[str]] = {
228
+ '200': "CreateGroups200Response",
229
+ }
230
+ response_data = self.api_client.call_api(
231
+ *_param,
232
+ _request_timeout=_request_timeout
233
+ )
234
+ return response_data.response
235
+
236
+
237
+ def _create_groups_serialize(
238
+ self,
239
+ token,
240
+ _request_auth,
241
+ _content_type,
242
+ _headers,
243
+ _host_index,
244
+ ) -> RequestSerialized:
245
+
246
+ _host = None
247
+
248
+ _collection_formats: Dict[str, str] = {
249
+ }
250
+
251
+ _path_params: Dict[str, str] = {}
252
+ _query_params: List[Tuple[str, str]] = []
253
+ _header_params: Dict[str, Optional[str]] = _headers or {}
254
+ _form_params: List[Tuple[str, str]] = []
255
+ _files: Dict[
256
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
257
+ ] = {}
258
+ _body_params: Optional[bytes] = None
259
+
260
+ # process the path parameters
261
+ # process the query parameters
262
+ if token is not None:
263
+
264
+ _query_params.append(('token', token))
265
+
266
+ # process the header parameters
267
+ # process the form parameters
268
+ # process the body parameter
269
+
270
+
271
+ # set the HTTP header `Accept`
272
+ if 'Accept' not in _header_params:
273
+ _header_params['Accept'] = self.api_client.select_header_accept(
274
+ [
275
+ 'application/json'
276
+ ]
277
+ )
278
+
279
+
280
+ # authentication setting
281
+ _auth_settings: List[str] = [
282
+ 'tokenAuth'
283
+ ]
284
+
285
+ return self.api_client.param_serialize(
286
+ method='POST',
287
+ resource_path='/groups',
288
+ path_params=_path_params,
289
+ query_params=_query_params,
290
+ header_params=_header_params,
291
+ body=_body_params,
292
+ post_params=_form_params,
293
+ files=_files,
294
+ auth_settings=_auth_settings,
295
+ collection_formats=_collection_formats,
296
+ _host=_host,
297
+ _request_auth=_request_auth
298
+ )
299
+
300
+
301
+
302
+
303
+ @validate_call
304
+ def create_groups_group_id(
305
+ self,
306
+ group_id: StrictStr,
307
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
308
+ _request_timeout: Union[
309
+ None,
310
+ Annotated[StrictFloat, Field(gt=0)],
311
+ Tuple[
312
+ Annotated[StrictFloat, Field(gt=0)],
313
+ Annotated[StrictFloat, Field(gt=0)]
314
+ ]
315
+ ] = None,
316
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
317
+ _content_type: Optional[StrictStr] = None,
318
+ _headers: Optional[Dict[StrictStr, Any]] = None,
319
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
320
+ ) -> Dict[str, object]:
321
+ """Update Group Info
322
+
323
+
324
+ :param group_id: (required)
325
+ :type group_id: str
326
+ :param token: JWT token or API key for authorization (required)
327
+ :type token: str
328
+ :param _request_timeout: timeout setting for this request. If one
329
+ number provided, it will be total request
330
+ timeout. It can also be a pair (tuple) of
331
+ (connection, read) timeouts.
332
+ :type _request_timeout: int, tuple(int, int), optional
333
+ :param _request_auth: set to override the auth_settings for an a single
334
+ request; this effectively ignores the
335
+ authentication in the spec for a single request.
336
+ :type _request_auth: dict, optional
337
+ :param _content_type: force content-type for the request.
338
+ :type _content_type: str, Optional
339
+ :param _headers: set to override the headers for a single
340
+ request; this effectively ignores the headers
341
+ in the spec for a single request.
342
+ :type _headers: dict, optional
343
+ :param _host_index: set to override the host_index for a single
344
+ request; this effectively ignores the host_index
345
+ in the spec for a single request.
346
+ :type _host_index: int, optional
347
+ :return: Returns the result object.
348
+ """ # noqa: E501
349
+
350
+ _param = self._create_groups_group_id_serialize(
351
+ group_id=group_id,
352
+ token=token,
353
+ _request_auth=_request_auth,
354
+ _content_type=_content_type,
355
+ _headers=_headers,
356
+ _host_index=_host_index
357
+ )
358
+
359
+ _response_types_map: Dict[str, Optional[str]] = {
360
+ '200': "Dict[str, object]",
361
+ }
362
+ response_data = self.api_client.call_api(
363
+ *_param,
364
+ _request_timeout=_request_timeout
365
+ )
366
+ response_data.read()
367
+ return self.api_client.response_deserialize(
368
+ response_data=response_data,
369
+ response_types_map=_response_types_map,
370
+ ).data
371
+
372
+
373
+ @validate_call
374
+ def create_groups_group_id_with_http_info(
375
+ self,
376
+ group_id: StrictStr,
377
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
378
+ _request_timeout: Union[
379
+ None,
380
+ Annotated[StrictFloat, Field(gt=0)],
381
+ Tuple[
382
+ Annotated[StrictFloat, Field(gt=0)],
383
+ Annotated[StrictFloat, Field(gt=0)]
384
+ ]
385
+ ] = None,
386
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
387
+ _content_type: Optional[StrictStr] = None,
388
+ _headers: Optional[Dict[StrictStr, Any]] = None,
389
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
390
+ ) -> ApiResponse[Dict[str, object]]:
391
+ """Update Group Info
392
+
393
+
394
+ :param group_id: (required)
395
+ :type group_id: str
396
+ :param token: JWT token or API key for authorization (required)
397
+ :type token: str
398
+ :param _request_timeout: timeout setting for this request. If one
399
+ number provided, it will be total request
400
+ timeout. It can also be a pair (tuple) of
401
+ (connection, read) timeouts.
402
+ :type _request_timeout: int, tuple(int, int), optional
403
+ :param _request_auth: set to override the auth_settings for an a single
404
+ request; this effectively ignores the
405
+ authentication in the spec for a single request.
406
+ :type _request_auth: dict, optional
407
+ :param _content_type: force content-type for the request.
408
+ :type _content_type: str, Optional
409
+ :param _headers: set to override the headers for a single
410
+ request; this effectively ignores the headers
411
+ in the spec for a single request.
412
+ :type _headers: dict, optional
413
+ :param _host_index: set to override the host_index for a single
414
+ request; this effectively ignores the host_index
415
+ in the spec for a single request.
416
+ :type _host_index: int, optional
417
+ :return: Returns the result object.
418
+ """ # noqa: E501
419
+
420
+ _param = self._create_groups_group_id_serialize(
421
+ group_id=group_id,
422
+ token=token,
423
+ _request_auth=_request_auth,
424
+ _content_type=_content_type,
425
+ _headers=_headers,
426
+ _host_index=_host_index
427
+ )
428
+
429
+ _response_types_map: Dict[str, Optional[str]] = {
430
+ '200': "Dict[str, object]",
431
+ }
432
+ response_data = self.api_client.call_api(
433
+ *_param,
434
+ _request_timeout=_request_timeout
435
+ )
436
+ response_data.read()
437
+ return self.api_client.response_deserialize(
438
+ response_data=response_data,
439
+ response_types_map=_response_types_map,
440
+ )
441
+
442
+
443
+ @validate_call
444
+ def create_groups_group_id_without_preload_content(
445
+ self,
446
+ group_id: StrictStr,
447
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
448
+ _request_timeout: Union[
449
+ None,
450
+ Annotated[StrictFloat, Field(gt=0)],
451
+ Tuple[
452
+ Annotated[StrictFloat, Field(gt=0)],
453
+ Annotated[StrictFloat, Field(gt=0)]
454
+ ]
455
+ ] = None,
456
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
457
+ _content_type: Optional[StrictStr] = None,
458
+ _headers: Optional[Dict[StrictStr, Any]] = None,
459
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
460
+ ) -> RESTResponseType:
461
+ """Update Group Info
462
+
463
+
464
+ :param group_id: (required)
465
+ :type group_id: str
466
+ :param token: JWT token or API key for authorization (required)
467
+ :type token: str
468
+ :param _request_timeout: timeout setting for this request. If one
469
+ number provided, it will be total request
470
+ timeout. It can also be a pair (tuple) of
471
+ (connection, read) timeouts.
472
+ :type _request_timeout: int, tuple(int, int), optional
473
+ :param _request_auth: set to override the auth_settings for an a single
474
+ request; this effectively ignores the
475
+ authentication in the spec for a single request.
476
+ :type _request_auth: dict, optional
477
+ :param _content_type: force content-type for the request.
478
+ :type _content_type: str, Optional
479
+ :param _headers: set to override the headers for a single
480
+ request; this effectively ignores the headers
481
+ in the spec for a single request.
482
+ :type _headers: dict, optional
483
+ :param _host_index: set to override the host_index for a single
484
+ request; this effectively ignores the host_index
485
+ in the spec for a single request.
486
+ :type _host_index: int, optional
487
+ :return: Returns the result object.
488
+ """ # noqa: E501
489
+
490
+ _param = self._create_groups_group_id_serialize(
491
+ group_id=group_id,
492
+ token=token,
493
+ _request_auth=_request_auth,
494
+ _content_type=_content_type,
495
+ _headers=_headers,
496
+ _host_index=_host_index
497
+ )
498
+
499
+ _response_types_map: Dict[str, Optional[str]] = {
500
+ '200': "Dict[str, object]",
501
+ }
502
+ response_data = self.api_client.call_api(
503
+ *_param,
504
+ _request_timeout=_request_timeout
505
+ )
506
+ return response_data.response
507
+
508
+
509
+ def _create_groups_group_id_serialize(
510
+ self,
511
+ group_id,
512
+ token,
513
+ _request_auth,
514
+ _content_type,
515
+ _headers,
516
+ _host_index,
517
+ ) -> RequestSerialized:
518
+
519
+ _host = None
520
+
521
+ _collection_formats: Dict[str, str] = {
522
+ }
523
+
524
+ _path_params: Dict[str, str] = {}
525
+ _query_params: List[Tuple[str, str]] = []
526
+ _header_params: Dict[str, Optional[str]] = _headers or {}
527
+ _form_params: List[Tuple[str, str]] = []
528
+ _files: Dict[
529
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
530
+ ] = {}
531
+ _body_params: Optional[bytes] = None
532
+
533
+ # process the path parameters
534
+ if group_id is not None:
535
+ _path_params['groupId'] = group_id
536
+ # process the query parameters
537
+ if token is not None:
538
+
539
+ _query_params.append(('token', token))
540
+
541
+ # process the header parameters
542
+ # process the form parameters
543
+ # process the body parameter
544
+
545
+
546
+ # set the HTTP header `Accept`
547
+ if 'Accept' not in _header_params:
548
+ _header_params['Accept'] = self.api_client.select_header_accept(
549
+ [
550
+ 'application/json'
551
+ ]
552
+ )
553
+
554
+
555
+ # authentication setting
556
+ _auth_settings: List[str] = [
557
+ 'tokenAuth'
558
+ ]
559
+
560
+ return self.api_client.param_serialize(
561
+ method='POST',
562
+ resource_path='/groups/{groupId}',
563
+ path_params=_path_params,
564
+ query_params=_query_params,
565
+ header_params=_header_params,
566
+ body=_body_params,
567
+ post_params=_form_params,
568
+ files=_files,
569
+ auth_settings=_auth_settings,
570
+ collection_formats=_collection_formats,
571
+ _host=_host,
572
+ _request_auth=_request_auth
573
+ )
574
+
575
+
576
+
577
+
578
+ @validate_call
579
+ def create_groups_group_id_invitelink(
580
+ self,
581
+ group_id: StrictStr,
582
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
583
+ _request_timeout: Union[
584
+ None,
585
+ Annotated[StrictFloat, Field(gt=0)],
586
+ Tuple[
587
+ Annotated[StrictFloat, Field(gt=0)],
588
+ Annotated[StrictFloat, Field(gt=0)]
589
+ ]
590
+ ] = None,
591
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
592
+ _content_type: Optional[StrictStr] = None,
593
+ _headers: Optional[Dict[StrictStr, Any]] = None,
594
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
595
+ ) -> Dict[str, object]:
596
+ """Reset Invite Link
597
+
598
+
599
+ :param group_id: (required)
600
+ :type group_id: str
601
+ :param token: JWT token or API key for authorization (required)
602
+ :type token: str
603
+ :param _request_timeout: timeout setting for this request. If one
604
+ number provided, it will be total request
605
+ timeout. It can also be a pair (tuple) of
606
+ (connection, read) timeouts.
607
+ :type _request_timeout: int, tuple(int, int), optional
608
+ :param _request_auth: set to override the auth_settings for an a single
609
+ request; this effectively ignores the
610
+ authentication in the spec for a single request.
611
+ :type _request_auth: dict, optional
612
+ :param _content_type: force content-type for the request.
613
+ :type _content_type: str, Optional
614
+ :param _headers: set to override the headers for a single
615
+ request; this effectively ignores the headers
616
+ in the spec for a single request.
617
+ :type _headers: dict, optional
618
+ :param _host_index: set to override the host_index for a single
619
+ request; this effectively ignores the host_index
620
+ in the spec for a single request.
621
+ :type _host_index: int, optional
622
+ :return: Returns the result object.
623
+ """ # noqa: E501
624
+
625
+ _param = self._create_groups_group_id_invitelink_serialize(
626
+ group_id=group_id,
627
+ token=token,
628
+ _request_auth=_request_auth,
629
+ _content_type=_content_type,
630
+ _headers=_headers,
631
+ _host_index=_host_index
632
+ )
633
+
634
+ _response_types_map: Dict[str, Optional[str]] = {
635
+ '200': "Dict[str, object]",
636
+ }
637
+ response_data = self.api_client.call_api(
638
+ *_param,
639
+ _request_timeout=_request_timeout
640
+ )
641
+ response_data.read()
642
+ return self.api_client.response_deserialize(
643
+ response_data=response_data,
644
+ response_types_map=_response_types_map,
645
+ ).data
646
+
647
+
648
+ @validate_call
649
+ def create_groups_group_id_invitelink_with_http_info(
650
+ self,
651
+ group_id: StrictStr,
652
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
653
+ _request_timeout: Union[
654
+ None,
655
+ Annotated[StrictFloat, Field(gt=0)],
656
+ Tuple[
657
+ Annotated[StrictFloat, Field(gt=0)],
658
+ Annotated[StrictFloat, Field(gt=0)]
659
+ ]
660
+ ] = None,
661
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
662
+ _content_type: Optional[StrictStr] = None,
663
+ _headers: Optional[Dict[StrictStr, Any]] = None,
664
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
665
+ ) -> ApiResponse[Dict[str, object]]:
666
+ """Reset Invite Link
667
+
668
+
669
+ :param group_id: (required)
670
+ :type group_id: str
671
+ :param token: JWT token or API key for authorization (required)
672
+ :type token: str
673
+ :param _request_timeout: timeout setting for this request. If one
674
+ number provided, it will be total request
675
+ timeout. It can also be a pair (tuple) of
676
+ (connection, read) timeouts.
677
+ :type _request_timeout: int, tuple(int, int), optional
678
+ :param _request_auth: set to override the auth_settings for an a single
679
+ request; this effectively ignores the
680
+ authentication in the spec for a single request.
681
+ :type _request_auth: dict, optional
682
+ :param _content_type: force content-type for the request.
683
+ :type _content_type: str, Optional
684
+ :param _headers: set to override the headers for a single
685
+ request; this effectively ignores the headers
686
+ in the spec for a single request.
687
+ :type _headers: dict, optional
688
+ :param _host_index: set to override the host_index for a single
689
+ request; this effectively ignores the host_index
690
+ in the spec for a single request.
691
+ :type _host_index: int, optional
692
+ :return: Returns the result object.
693
+ """ # noqa: E501
694
+
695
+ _param = self._create_groups_group_id_invitelink_serialize(
696
+ group_id=group_id,
697
+ token=token,
698
+ _request_auth=_request_auth,
699
+ _content_type=_content_type,
700
+ _headers=_headers,
701
+ _host_index=_host_index
702
+ )
703
+
704
+ _response_types_map: Dict[str, Optional[str]] = {
705
+ '200': "Dict[str, object]",
706
+ }
707
+ response_data = self.api_client.call_api(
708
+ *_param,
709
+ _request_timeout=_request_timeout
710
+ )
711
+ response_data.read()
712
+ return self.api_client.response_deserialize(
713
+ response_data=response_data,
714
+ response_types_map=_response_types_map,
715
+ )
716
+
717
+
718
+ @validate_call
719
+ def create_groups_group_id_invitelink_without_preload_content(
720
+ self,
721
+ group_id: StrictStr,
722
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
723
+ _request_timeout: Union[
724
+ None,
725
+ Annotated[StrictFloat, Field(gt=0)],
726
+ Tuple[
727
+ Annotated[StrictFloat, Field(gt=0)],
728
+ Annotated[StrictFloat, Field(gt=0)]
729
+ ]
730
+ ] = None,
731
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
732
+ _content_type: Optional[StrictStr] = None,
733
+ _headers: Optional[Dict[StrictStr, Any]] = None,
734
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
735
+ ) -> RESTResponseType:
736
+ """Reset Invite Link
737
+
738
+
739
+ :param group_id: (required)
740
+ :type group_id: str
741
+ :param token: JWT token or API key for authorization (required)
742
+ :type token: str
743
+ :param _request_timeout: timeout setting for this request. If one
744
+ number provided, it will be total request
745
+ timeout. It can also be a pair (tuple) of
746
+ (connection, read) timeouts.
747
+ :type _request_timeout: int, tuple(int, int), optional
748
+ :param _request_auth: set to override the auth_settings for an a single
749
+ request; this effectively ignores the
750
+ authentication in the spec for a single request.
751
+ :type _request_auth: dict, optional
752
+ :param _content_type: force content-type for the request.
753
+ :type _content_type: str, Optional
754
+ :param _headers: set to override the headers for a single
755
+ request; this effectively ignores the headers
756
+ in the spec for a single request.
757
+ :type _headers: dict, optional
758
+ :param _host_index: set to override the host_index for a single
759
+ request; this effectively ignores the host_index
760
+ in the spec for a single request.
761
+ :type _host_index: int, optional
762
+ :return: Returns the result object.
763
+ """ # noqa: E501
764
+
765
+ _param = self._create_groups_group_id_invitelink_serialize(
766
+ group_id=group_id,
767
+ token=token,
768
+ _request_auth=_request_auth,
769
+ _content_type=_content_type,
770
+ _headers=_headers,
771
+ _host_index=_host_index
772
+ )
773
+
774
+ _response_types_map: Dict[str, Optional[str]] = {
775
+ '200': "Dict[str, object]",
776
+ }
777
+ response_data = self.api_client.call_api(
778
+ *_param,
779
+ _request_timeout=_request_timeout
780
+ )
781
+ return response_data.response
782
+
783
+
784
+ def _create_groups_group_id_invitelink_serialize(
785
+ self,
786
+ group_id,
787
+ token,
788
+ _request_auth,
789
+ _content_type,
790
+ _headers,
791
+ _host_index,
792
+ ) -> RequestSerialized:
793
+
794
+ _host = None
795
+
796
+ _collection_formats: Dict[str, str] = {
797
+ }
798
+
799
+ _path_params: Dict[str, str] = {}
800
+ _query_params: List[Tuple[str, str]] = []
801
+ _header_params: Dict[str, Optional[str]] = _headers or {}
802
+ _form_params: List[Tuple[str, str]] = []
803
+ _files: Dict[
804
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
805
+ ] = {}
806
+ _body_params: Optional[bytes] = None
807
+
808
+ # process the path parameters
809
+ if group_id is not None:
810
+ _path_params['groupId'] = group_id
811
+ # process the query parameters
812
+ if token is not None:
813
+
814
+ _query_params.append(('token', token))
815
+
816
+ # process the header parameters
817
+ # process the form parameters
818
+ # process the body parameter
819
+
820
+
821
+ # set the HTTP header `Accept`
822
+ if 'Accept' not in _header_params:
823
+ _header_params['Accept'] = self.api_client.select_header_accept(
824
+ [
825
+ 'application/json'
826
+ ]
827
+ )
828
+
829
+
830
+ # authentication setting
831
+ _auth_settings: List[str] = [
832
+ 'tokenAuth'
833
+ ]
834
+
835
+ return self.api_client.param_serialize(
836
+ method='POST',
837
+ resource_path='/groups/{groupId}/inviteLink',
838
+ path_params=_path_params,
839
+ query_params=_query_params,
840
+ header_params=_header_params,
841
+ body=_body_params,
842
+ post_params=_form_params,
843
+ files=_files,
844
+ auth_settings=_auth_settings,
845
+ collection_formats=_collection_formats,
846
+ _host=_host,
847
+ _request_auth=_request_auth
848
+ )
849
+
850
+
851
+
852
+
853
+ @validate_call
854
+ def delete_groups_group_id(
855
+ self,
856
+ group_id: StrictStr,
857
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
858
+ _request_timeout: Union[
859
+ None,
860
+ Annotated[StrictFloat, Field(gt=0)],
861
+ Tuple[
862
+ Annotated[StrictFloat, Field(gt=0)],
863
+ Annotated[StrictFloat, Field(gt=0)]
864
+ ]
865
+ ] = None,
866
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
867
+ _content_type: Optional[StrictStr] = None,
868
+ _headers: Optional[Dict[StrictStr, Any]] = None,
869
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
870
+ ) -> DeleteGroupsGroupId200Response:
871
+ """Delete Group
872
+
873
+
874
+ :param group_id: (required)
875
+ :type group_id: str
876
+ :param token: JWT token or API key for authorization (required)
877
+ :type token: str
878
+ :param _request_timeout: timeout setting for this request. If one
879
+ number provided, it will be total request
880
+ timeout. It can also be a pair (tuple) of
881
+ (connection, read) timeouts.
882
+ :type _request_timeout: int, tuple(int, int), optional
883
+ :param _request_auth: set to override the auth_settings for an a single
884
+ request; this effectively ignores the
885
+ authentication in the spec for a single request.
886
+ :type _request_auth: dict, optional
887
+ :param _content_type: force content-type for the request.
888
+ :type _content_type: str, Optional
889
+ :param _headers: set to override the headers for a single
890
+ request; this effectively ignores the headers
891
+ in the spec for a single request.
892
+ :type _headers: dict, optional
893
+ :param _host_index: set to override the host_index for a single
894
+ request; this effectively ignores the host_index
895
+ in the spec for a single request.
896
+ :type _host_index: int, optional
897
+ :return: Returns the result object.
898
+ """ # noqa: E501
899
+
900
+ _param = self._delete_groups_group_id_serialize(
901
+ group_id=group_id,
902
+ token=token,
903
+ _request_auth=_request_auth,
904
+ _content_type=_content_type,
905
+ _headers=_headers,
906
+ _host_index=_host_index
907
+ )
908
+
909
+ _response_types_map: Dict[str, Optional[str]] = {
910
+ '200': "DeleteGroupsGroupId200Response",
911
+ }
912
+ response_data = self.api_client.call_api(
913
+ *_param,
914
+ _request_timeout=_request_timeout
915
+ )
916
+ response_data.read()
917
+ return self.api_client.response_deserialize(
918
+ response_data=response_data,
919
+ response_types_map=_response_types_map,
920
+ ).data
921
+
922
+
923
+ @validate_call
924
+ def delete_groups_group_id_with_http_info(
925
+ self,
926
+ group_id: StrictStr,
927
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
928
+ _request_timeout: Union[
929
+ None,
930
+ Annotated[StrictFloat, Field(gt=0)],
931
+ Tuple[
932
+ Annotated[StrictFloat, Field(gt=0)],
933
+ Annotated[StrictFloat, Field(gt=0)]
934
+ ]
935
+ ] = None,
936
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
937
+ _content_type: Optional[StrictStr] = None,
938
+ _headers: Optional[Dict[StrictStr, Any]] = None,
939
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
940
+ ) -> ApiResponse[DeleteGroupsGroupId200Response]:
941
+ """Delete Group
942
+
943
+
944
+ :param group_id: (required)
945
+ :type group_id: str
946
+ :param token: JWT token or API key for authorization (required)
947
+ :type token: str
948
+ :param _request_timeout: timeout setting for this request. If one
949
+ number provided, it will be total request
950
+ timeout. It can also be a pair (tuple) of
951
+ (connection, read) timeouts.
952
+ :type _request_timeout: int, tuple(int, int), optional
953
+ :param _request_auth: set to override the auth_settings for an a single
954
+ request; this effectively ignores the
955
+ authentication in the spec for a single request.
956
+ :type _request_auth: dict, optional
957
+ :param _content_type: force content-type for the request.
958
+ :type _content_type: str, Optional
959
+ :param _headers: set to override the headers for a single
960
+ request; this effectively ignores the headers
961
+ in the spec for a single request.
962
+ :type _headers: dict, optional
963
+ :param _host_index: set to override the host_index for a single
964
+ request; this effectively ignores the host_index
965
+ in the spec for a single request.
966
+ :type _host_index: int, optional
967
+ :return: Returns the result object.
968
+ """ # noqa: E501
969
+
970
+ _param = self._delete_groups_group_id_serialize(
971
+ group_id=group_id,
972
+ token=token,
973
+ _request_auth=_request_auth,
974
+ _content_type=_content_type,
975
+ _headers=_headers,
976
+ _host_index=_host_index
977
+ )
978
+
979
+ _response_types_map: Dict[str, Optional[str]] = {
980
+ '200': "DeleteGroupsGroupId200Response",
981
+ }
982
+ response_data = self.api_client.call_api(
983
+ *_param,
984
+ _request_timeout=_request_timeout
985
+ )
986
+ response_data.read()
987
+ return self.api_client.response_deserialize(
988
+ response_data=response_data,
989
+ response_types_map=_response_types_map,
990
+ )
991
+
992
+
993
+ @validate_call
994
+ def delete_groups_group_id_without_preload_content(
995
+ self,
996
+ group_id: StrictStr,
997
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
998
+ _request_timeout: Union[
999
+ None,
1000
+ Annotated[StrictFloat, Field(gt=0)],
1001
+ Tuple[
1002
+ Annotated[StrictFloat, Field(gt=0)],
1003
+ Annotated[StrictFloat, Field(gt=0)]
1004
+ ]
1005
+ ] = None,
1006
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1007
+ _content_type: Optional[StrictStr] = None,
1008
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1009
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1010
+ ) -> RESTResponseType:
1011
+ """Delete Group
1012
+
1013
+
1014
+ :param group_id: (required)
1015
+ :type group_id: str
1016
+ :param token: JWT token or API key for authorization (required)
1017
+ :type token: str
1018
+ :param _request_timeout: timeout setting for this request. If one
1019
+ number provided, it will be total request
1020
+ timeout. It can also be a pair (tuple) of
1021
+ (connection, read) timeouts.
1022
+ :type _request_timeout: int, tuple(int, int), optional
1023
+ :param _request_auth: set to override the auth_settings for an a single
1024
+ request; this effectively ignores the
1025
+ authentication in the spec for a single request.
1026
+ :type _request_auth: dict, optional
1027
+ :param _content_type: force content-type for the request.
1028
+ :type _content_type: str, Optional
1029
+ :param _headers: set to override the headers for a single
1030
+ request; this effectively ignores the headers
1031
+ in the spec for a single request.
1032
+ :type _headers: dict, optional
1033
+ :param _host_index: set to override the host_index for a single
1034
+ request; this effectively ignores the host_index
1035
+ in the spec for a single request.
1036
+ :type _host_index: int, optional
1037
+ :return: Returns the result object.
1038
+ """ # noqa: E501
1039
+
1040
+ _param = self._delete_groups_group_id_serialize(
1041
+ group_id=group_id,
1042
+ token=token,
1043
+ _request_auth=_request_auth,
1044
+ _content_type=_content_type,
1045
+ _headers=_headers,
1046
+ _host_index=_host_index
1047
+ )
1048
+
1049
+ _response_types_map: Dict[str, Optional[str]] = {
1050
+ '200': "DeleteGroupsGroupId200Response",
1051
+ }
1052
+ response_data = self.api_client.call_api(
1053
+ *_param,
1054
+ _request_timeout=_request_timeout
1055
+ )
1056
+ return response_data.response
1057
+
1058
+
1059
+ def _delete_groups_group_id_serialize(
1060
+ self,
1061
+ group_id,
1062
+ token,
1063
+ _request_auth,
1064
+ _content_type,
1065
+ _headers,
1066
+ _host_index,
1067
+ ) -> RequestSerialized:
1068
+
1069
+ _host = None
1070
+
1071
+ _collection_formats: Dict[str, str] = {
1072
+ }
1073
+
1074
+ _path_params: Dict[str, str] = {}
1075
+ _query_params: List[Tuple[str, str]] = []
1076
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1077
+ _form_params: List[Tuple[str, str]] = []
1078
+ _files: Dict[
1079
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1080
+ ] = {}
1081
+ _body_params: Optional[bytes] = None
1082
+
1083
+ # process the path parameters
1084
+ if group_id is not None:
1085
+ _path_params['groupId'] = group_id
1086
+ # process the query parameters
1087
+ if token is not None:
1088
+
1089
+ _query_params.append(('token', token))
1090
+
1091
+ # process the header parameters
1092
+ # process the form parameters
1093
+ # process the body parameter
1094
+
1095
+
1096
+ # set the HTTP header `Accept`
1097
+ if 'Accept' not in _header_params:
1098
+ _header_params['Accept'] = self.api_client.select_header_accept(
1099
+ [
1100
+ 'application/json'
1101
+ ]
1102
+ )
1103
+
1104
+
1105
+ # authentication setting
1106
+ _auth_settings: List[str] = [
1107
+ 'tokenAuth'
1108
+ ]
1109
+
1110
+ return self.api_client.param_serialize(
1111
+ method='DELETE',
1112
+ resource_path='/groups/{groupId}',
1113
+ path_params=_path_params,
1114
+ query_params=_query_params,
1115
+ header_params=_header_params,
1116
+ body=_body_params,
1117
+ post_params=_form_params,
1118
+ files=_files,
1119
+ auth_settings=_auth_settings,
1120
+ collection_formats=_collection_formats,
1121
+ _host=_host,
1122
+ _request_auth=_request_auth
1123
+ )
1124
+
1125
+
1126
+
1127
+
1128
+ @validate_call
1129
+ def get_groups_group_id(
1130
+ self,
1131
+ group_id: StrictStr,
1132
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
1133
+ _request_timeout: Union[
1134
+ None,
1135
+ Annotated[StrictFloat, Field(gt=0)],
1136
+ Tuple[
1137
+ Annotated[StrictFloat, Field(gt=0)],
1138
+ Annotated[StrictFloat, Field(gt=0)]
1139
+ ]
1140
+ ] = None,
1141
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1142
+ _content_type: Optional[StrictStr] = None,
1143
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1144
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1145
+ ) -> Dict[str, object]:
1146
+ """Get Group Info
1147
+
1148
+
1149
+ :param group_id: (required)
1150
+ :type group_id: str
1151
+ :param token: JWT token or API key for authorization (required)
1152
+ :type token: str
1153
+ :param _request_timeout: timeout setting for this request. If one
1154
+ number provided, it will be total request
1155
+ timeout. It can also be a pair (tuple) of
1156
+ (connection, read) timeouts.
1157
+ :type _request_timeout: int, tuple(int, int), optional
1158
+ :param _request_auth: set to override the auth_settings for an a single
1159
+ request; this effectively ignores the
1160
+ authentication in the spec for a single request.
1161
+ :type _request_auth: dict, optional
1162
+ :param _content_type: force content-type for the request.
1163
+ :type _content_type: str, Optional
1164
+ :param _headers: set to override the headers for a single
1165
+ request; this effectively ignores the headers
1166
+ in the spec for a single request.
1167
+ :type _headers: dict, optional
1168
+ :param _host_index: set to override the host_index for a single
1169
+ request; this effectively ignores the host_index
1170
+ in the spec for a single request.
1171
+ :type _host_index: int, optional
1172
+ :return: Returns the result object.
1173
+ """ # noqa: E501
1174
+
1175
+ _param = self._get_groups_group_id_serialize(
1176
+ group_id=group_id,
1177
+ token=token,
1178
+ _request_auth=_request_auth,
1179
+ _content_type=_content_type,
1180
+ _headers=_headers,
1181
+ _host_index=_host_index
1182
+ )
1183
+
1184
+ _response_types_map: Dict[str, Optional[str]] = {
1185
+ '200': "Dict[str, object]",
1186
+ }
1187
+ response_data = self.api_client.call_api(
1188
+ *_param,
1189
+ _request_timeout=_request_timeout
1190
+ )
1191
+ response_data.read()
1192
+ return self.api_client.response_deserialize(
1193
+ response_data=response_data,
1194
+ response_types_map=_response_types_map,
1195
+ ).data
1196
+
1197
+
1198
+ @validate_call
1199
+ def get_groups_group_id_with_http_info(
1200
+ self,
1201
+ group_id: StrictStr,
1202
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
1203
+ _request_timeout: Union[
1204
+ None,
1205
+ Annotated[StrictFloat, Field(gt=0)],
1206
+ Tuple[
1207
+ Annotated[StrictFloat, Field(gt=0)],
1208
+ Annotated[StrictFloat, Field(gt=0)]
1209
+ ]
1210
+ ] = None,
1211
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1212
+ _content_type: Optional[StrictStr] = None,
1213
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1214
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1215
+ ) -> ApiResponse[Dict[str, object]]:
1216
+ """Get Group Info
1217
+
1218
+
1219
+ :param group_id: (required)
1220
+ :type group_id: str
1221
+ :param token: JWT token or API key for authorization (required)
1222
+ :type token: str
1223
+ :param _request_timeout: timeout setting for this request. If one
1224
+ number provided, it will be total request
1225
+ timeout. It can also be a pair (tuple) of
1226
+ (connection, read) timeouts.
1227
+ :type _request_timeout: int, tuple(int, int), optional
1228
+ :param _request_auth: set to override the auth_settings for an a single
1229
+ request; this effectively ignores the
1230
+ authentication in the spec for a single request.
1231
+ :type _request_auth: dict, optional
1232
+ :param _content_type: force content-type for the request.
1233
+ :type _content_type: str, Optional
1234
+ :param _headers: set to override the headers for a single
1235
+ request; this effectively ignores the headers
1236
+ in the spec for a single request.
1237
+ :type _headers: dict, optional
1238
+ :param _host_index: set to override the host_index for a single
1239
+ request; this effectively ignores the host_index
1240
+ in the spec for a single request.
1241
+ :type _host_index: int, optional
1242
+ :return: Returns the result object.
1243
+ """ # noqa: E501
1244
+
1245
+ _param = self._get_groups_group_id_serialize(
1246
+ group_id=group_id,
1247
+ token=token,
1248
+ _request_auth=_request_auth,
1249
+ _content_type=_content_type,
1250
+ _headers=_headers,
1251
+ _host_index=_host_index
1252
+ )
1253
+
1254
+ _response_types_map: Dict[str, Optional[str]] = {
1255
+ '200': "Dict[str, object]",
1256
+ }
1257
+ response_data = self.api_client.call_api(
1258
+ *_param,
1259
+ _request_timeout=_request_timeout
1260
+ )
1261
+ response_data.read()
1262
+ return self.api_client.response_deserialize(
1263
+ response_data=response_data,
1264
+ response_types_map=_response_types_map,
1265
+ )
1266
+
1267
+
1268
+ @validate_call
1269
+ def get_groups_group_id_without_preload_content(
1270
+ self,
1271
+ group_id: StrictStr,
1272
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
1273
+ _request_timeout: Union[
1274
+ None,
1275
+ Annotated[StrictFloat, Field(gt=0)],
1276
+ Tuple[
1277
+ Annotated[StrictFloat, Field(gt=0)],
1278
+ Annotated[StrictFloat, Field(gt=0)]
1279
+ ]
1280
+ ] = None,
1281
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1282
+ _content_type: Optional[StrictStr] = None,
1283
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1284
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1285
+ ) -> RESTResponseType:
1286
+ """Get Group Info
1287
+
1288
+
1289
+ :param group_id: (required)
1290
+ :type group_id: str
1291
+ :param token: JWT token or API key for authorization (required)
1292
+ :type token: str
1293
+ :param _request_timeout: timeout setting for this request. If one
1294
+ number provided, it will be total request
1295
+ timeout. It can also be a pair (tuple) of
1296
+ (connection, read) timeouts.
1297
+ :type _request_timeout: int, tuple(int, int), optional
1298
+ :param _request_auth: set to override the auth_settings for an a single
1299
+ request; this effectively ignores the
1300
+ authentication in the spec for a single request.
1301
+ :type _request_auth: dict, optional
1302
+ :param _content_type: force content-type for the request.
1303
+ :type _content_type: str, Optional
1304
+ :param _headers: set to override the headers for a single
1305
+ request; this effectively ignores the headers
1306
+ in the spec for a single request.
1307
+ :type _headers: dict, optional
1308
+ :param _host_index: set to override the host_index for a single
1309
+ request; this effectively ignores the host_index
1310
+ in the spec for a single request.
1311
+ :type _host_index: int, optional
1312
+ :return: Returns the result object.
1313
+ """ # noqa: E501
1314
+
1315
+ _param = self._get_groups_group_id_serialize(
1316
+ group_id=group_id,
1317
+ token=token,
1318
+ _request_auth=_request_auth,
1319
+ _content_type=_content_type,
1320
+ _headers=_headers,
1321
+ _host_index=_host_index
1322
+ )
1323
+
1324
+ _response_types_map: Dict[str, Optional[str]] = {
1325
+ '200': "Dict[str, object]",
1326
+ }
1327
+ response_data = self.api_client.call_api(
1328
+ *_param,
1329
+ _request_timeout=_request_timeout
1330
+ )
1331
+ return response_data.response
1332
+
1333
+
1334
+ def _get_groups_group_id_serialize(
1335
+ self,
1336
+ group_id,
1337
+ token,
1338
+ _request_auth,
1339
+ _content_type,
1340
+ _headers,
1341
+ _host_index,
1342
+ ) -> RequestSerialized:
1343
+
1344
+ _host = None
1345
+
1346
+ _collection_formats: Dict[str, str] = {
1347
+ }
1348
+
1349
+ _path_params: Dict[str, str] = {}
1350
+ _query_params: List[Tuple[str, str]] = []
1351
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1352
+ _form_params: List[Tuple[str, str]] = []
1353
+ _files: Dict[
1354
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1355
+ ] = {}
1356
+ _body_params: Optional[bytes] = None
1357
+
1358
+ # process the path parameters
1359
+ if group_id is not None:
1360
+ _path_params['groupId'] = group_id
1361
+ # process the query parameters
1362
+ if token is not None:
1363
+
1364
+ _query_params.append(('token', token))
1365
+
1366
+ # process the header parameters
1367
+ # process the form parameters
1368
+ # process the body parameter
1369
+
1370
+
1371
+ # set the HTTP header `Accept`
1372
+ if 'Accept' not in _header_params:
1373
+ _header_params['Accept'] = self.api_client.select_header_accept(
1374
+ [
1375
+ 'application/json'
1376
+ ]
1377
+ )
1378
+
1379
+
1380
+ # authentication setting
1381
+ _auth_settings: List[str] = [
1382
+ 'tokenAuth'
1383
+ ]
1384
+
1385
+ return self.api_client.param_serialize(
1386
+ method='GET',
1387
+ resource_path='/groups/{groupId}',
1388
+ path_params=_path_params,
1389
+ query_params=_query_params,
1390
+ header_params=_header_params,
1391
+ body=_body_params,
1392
+ post_params=_form_params,
1393
+ files=_files,
1394
+ auth_settings=_auth_settings,
1395
+ collection_formats=_collection_formats,
1396
+ _host=_host,
1397
+ _request_auth=_request_auth
1398
+ )
1399
+
1400
+
1401
+
1402
+
1403
+ @validate_call
1404
+ def get_groups_group_id_invitelink(
1405
+ self,
1406
+ group_id: StrictStr,
1407
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
1408
+ _request_timeout: Union[
1409
+ None,
1410
+ Annotated[StrictFloat, Field(gt=0)],
1411
+ Tuple[
1412
+ Annotated[StrictFloat, Field(gt=0)],
1413
+ Annotated[StrictFloat, Field(gt=0)]
1414
+ ]
1415
+ ] = None,
1416
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1417
+ _content_type: Optional[StrictStr] = None,
1418
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1419
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1420
+ ) -> Dict[str, object]:
1421
+ """Get Invite Link
1422
+
1423
+
1424
+ :param group_id: (required)
1425
+ :type group_id: str
1426
+ :param token: JWT token or API key for authorization (required)
1427
+ :type token: str
1428
+ :param _request_timeout: timeout setting for this request. If one
1429
+ number provided, it will be total request
1430
+ timeout. It can also be a pair (tuple) of
1431
+ (connection, read) timeouts.
1432
+ :type _request_timeout: int, tuple(int, int), optional
1433
+ :param _request_auth: set to override the auth_settings for an a single
1434
+ request; this effectively ignores the
1435
+ authentication in the spec for a single request.
1436
+ :type _request_auth: dict, optional
1437
+ :param _content_type: force content-type for the request.
1438
+ :type _content_type: str, Optional
1439
+ :param _headers: set to override the headers for a single
1440
+ request; this effectively ignores the headers
1441
+ in the spec for a single request.
1442
+ :type _headers: dict, optional
1443
+ :param _host_index: set to override the host_index for a single
1444
+ request; this effectively ignores the host_index
1445
+ in the spec for a single request.
1446
+ :type _host_index: int, optional
1447
+ :return: Returns the result object.
1448
+ """ # noqa: E501
1449
+
1450
+ _param = self._get_groups_group_id_invitelink_serialize(
1451
+ group_id=group_id,
1452
+ token=token,
1453
+ _request_auth=_request_auth,
1454
+ _content_type=_content_type,
1455
+ _headers=_headers,
1456
+ _host_index=_host_index
1457
+ )
1458
+
1459
+ _response_types_map: Dict[str, Optional[str]] = {
1460
+ '200': "Dict[str, object]",
1461
+ }
1462
+ response_data = self.api_client.call_api(
1463
+ *_param,
1464
+ _request_timeout=_request_timeout
1465
+ )
1466
+ response_data.read()
1467
+ return self.api_client.response_deserialize(
1468
+ response_data=response_data,
1469
+ response_types_map=_response_types_map,
1470
+ ).data
1471
+
1472
+
1473
+ @validate_call
1474
+ def get_groups_group_id_invitelink_with_http_info(
1475
+ self,
1476
+ group_id: StrictStr,
1477
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
1478
+ _request_timeout: Union[
1479
+ None,
1480
+ Annotated[StrictFloat, Field(gt=0)],
1481
+ Tuple[
1482
+ Annotated[StrictFloat, Field(gt=0)],
1483
+ Annotated[StrictFloat, Field(gt=0)]
1484
+ ]
1485
+ ] = None,
1486
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1487
+ _content_type: Optional[StrictStr] = None,
1488
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1489
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1490
+ ) -> ApiResponse[Dict[str, object]]:
1491
+ """Get Invite Link
1492
+
1493
+
1494
+ :param group_id: (required)
1495
+ :type group_id: str
1496
+ :param token: JWT token or API key for authorization (required)
1497
+ :type token: str
1498
+ :param _request_timeout: timeout setting for this request. If one
1499
+ number provided, it will be total request
1500
+ timeout. It can also be a pair (tuple) of
1501
+ (connection, read) timeouts.
1502
+ :type _request_timeout: int, tuple(int, int), optional
1503
+ :param _request_auth: set to override the auth_settings for an a single
1504
+ request; this effectively ignores the
1505
+ authentication in the spec for a single request.
1506
+ :type _request_auth: dict, optional
1507
+ :param _content_type: force content-type for the request.
1508
+ :type _content_type: str, Optional
1509
+ :param _headers: set to override the headers for a single
1510
+ request; this effectively ignores the headers
1511
+ in the spec for a single request.
1512
+ :type _headers: dict, optional
1513
+ :param _host_index: set to override the host_index for a single
1514
+ request; this effectively ignores the host_index
1515
+ in the spec for a single request.
1516
+ :type _host_index: int, optional
1517
+ :return: Returns the result object.
1518
+ """ # noqa: E501
1519
+
1520
+ _param = self._get_groups_group_id_invitelink_serialize(
1521
+ group_id=group_id,
1522
+ token=token,
1523
+ _request_auth=_request_auth,
1524
+ _content_type=_content_type,
1525
+ _headers=_headers,
1526
+ _host_index=_host_index
1527
+ )
1528
+
1529
+ _response_types_map: Dict[str, Optional[str]] = {
1530
+ '200': "Dict[str, object]",
1531
+ }
1532
+ response_data = self.api_client.call_api(
1533
+ *_param,
1534
+ _request_timeout=_request_timeout
1535
+ )
1536
+ response_data.read()
1537
+ return self.api_client.response_deserialize(
1538
+ response_data=response_data,
1539
+ response_types_map=_response_types_map,
1540
+ )
1541
+
1542
+
1543
+ @validate_call
1544
+ def get_groups_group_id_invitelink_without_preload_content(
1545
+ self,
1546
+ group_id: StrictStr,
1547
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
1548
+ _request_timeout: Union[
1549
+ None,
1550
+ Annotated[StrictFloat, Field(gt=0)],
1551
+ Tuple[
1552
+ Annotated[StrictFloat, Field(gt=0)],
1553
+ Annotated[StrictFloat, Field(gt=0)]
1554
+ ]
1555
+ ] = None,
1556
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1557
+ _content_type: Optional[StrictStr] = None,
1558
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1559
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1560
+ ) -> RESTResponseType:
1561
+ """Get Invite Link
1562
+
1563
+
1564
+ :param group_id: (required)
1565
+ :type group_id: str
1566
+ :param token: JWT token or API key for authorization (required)
1567
+ :type token: str
1568
+ :param _request_timeout: timeout setting for this request. If one
1569
+ number provided, it will be total request
1570
+ timeout. It can also be a pair (tuple) of
1571
+ (connection, read) timeouts.
1572
+ :type _request_timeout: int, tuple(int, int), optional
1573
+ :param _request_auth: set to override the auth_settings for an a single
1574
+ request; this effectively ignores the
1575
+ authentication in the spec for a single request.
1576
+ :type _request_auth: dict, optional
1577
+ :param _content_type: force content-type for the request.
1578
+ :type _content_type: str, Optional
1579
+ :param _headers: set to override the headers for a single
1580
+ request; this effectively ignores the headers
1581
+ in the spec for a single request.
1582
+ :type _headers: dict, optional
1583
+ :param _host_index: set to override the host_index for a single
1584
+ request; this effectively ignores the host_index
1585
+ in the spec for a single request.
1586
+ :type _host_index: int, optional
1587
+ :return: Returns the result object.
1588
+ """ # noqa: E501
1589
+
1590
+ _param = self._get_groups_group_id_invitelink_serialize(
1591
+ group_id=group_id,
1592
+ token=token,
1593
+ _request_auth=_request_auth,
1594
+ _content_type=_content_type,
1595
+ _headers=_headers,
1596
+ _host_index=_host_index
1597
+ )
1598
+
1599
+ _response_types_map: Dict[str, Optional[str]] = {
1600
+ '200': "Dict[str, object]",
1601
+ }
1602
+ response_data = self.api_client.call_api(
1603
+ *_param,
1604
+ _request_timeout=_request_timeout
1605
+ )
1606
+ return response_data.response
1607
+
1608
+
1609
+ def _get_groups_group_id_invitelink_serialize(
1610
+ self,
1611
+ group_id,
1612
+ token,
1613
+ _request_auth,
1614
+ _content_type,
1615
+ _headers,
1616
+ _host_index,
1617
+ ) -> RequestSerialized:
1618
+
1619
+ _host = None
1620
+
1621
+ _collection_formats: Dict[str, str] = {
1622
+ }
1623
+
1624
+ _path_params: Dict[str, str] = {}
1625
+ _query_params: List[Tuple[str, str]] = []
1626
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1627
+ _form_params: List[Tuple[str, str]] = []
1628
+ _files: Dict[
1629
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1630
+ ] = {}
1631
+ _body_params: Optional[bytes] = None
1632
+
1633
+ # process the path parameters
1634
+ if group_id is not None:
1635
+ _path_params['groupId'] = group_id
1636
+ # process the query parameters
1637
+ if token is not None:
1638
+
1639
+ _query_params.append(('token', token))
1640
+
1641
+ # process the header parameters
1642
+ # process the form parameters
1643
+ # process the body parameter
1644
+
1645
+
1646
+ # set the HTTP header `Accept`
1647
+ if 'Accept' not in _header_params:
1648
+ _header_params['Accept'] = self.api_client.select_header_accept(
1649
+ [
1650
+ 'application/json'
1651
+ ]
1652
+ )
1653
+
1654
+
1655
+ # authentication setting
1656
+ _auth_settings: List[str] = [
1657
+ 'tokenAuth'
1658
+ ]
1659
+
1660
+ return self.api_client.param_serialize(
1661
+ method='GET',
1662
+ resource_path='/groups/{groupId}/inviteLink',
1663
+ path_params=_path_params,
1664
+ query_params=_query_params,
1665
+ header_params=_header_params,
1666
+ body=_body_params,
1667
+ post_params=_form_params,
1668
+ files=_files,
1669
+ auth_settings=_auth_settings,
1670
+ collection_formats=_collection_formats,
1671
+ _host=_host,
1672
+ _request_auth=_request_auth
1673
+ )
1674
+
1675
+
1676
+
1677
+
1678
+ @validate_call
1679
+ def list_groups(
1680
+ self,
1681
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
1682
+ _request_timeout: Union[
1683
+ None,
1684
+ Annotated[StrictFloat, Field(gt=0)],
1685
+ Tuple[
1686
+ Annotated[StrictFloat, Field(gt=0)],
1687
+ Annotated[StrictFloat, Field(gt=0)]
1688
+ ]
1689
+ ] = None,
1690
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1691
+ _content_type: Optional[StrictStr] = None,
1692
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1693
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1694
+ ) -> Dict[str, object]:
1695
+ """Get Groups List
1696
+
1697
+
1698
+ :param token: JWT token or API key for authorization (required)
1699
+ :type token: str
1700
+ :param _request_timeout: timeout setting for this request. If one
1701
+ number provided, it will be total request
1702
+ timeout. It can also be a pair (tuple) of
1703
+ (connection, read) timeouts.
1704
+ :type _request_timeout: int, tuple(int, int), optional
1705
+ :param _request_auth: set to override the auth_settings for an a single
1706
+ request; this effectively ignores the
1707
+ authentication in the spec for a single request.
1708
+ :type _request_auth: dict, optional
1709
+ :param _content_type: force content-type for the request.
1710
+ :type _content_type: str, Optional
1711
+ :param _headers: set to override the headers for a single
1712
+ request; this effectively ignores the headers
1713
+ in the spec for a single request.
1714
+ :type _headers: dict, optional
1715
+ :param _host_index: set to override the host_index for a single
1716
+ request; this effectively ignores the host_index
1717
+ in the spec for a single request.
1718
+ :type _host_index: int, optional
1719
+ :return: Returns the result object.
1720
+ """ # noqa: E501
1721
+
1722
+ _param = self._list_groups_serialize(
1723
+ token=token,
1724
+ _request_auth=_request_auth,
1725
+ _content_type=_content_type,
1726
+ _headers=_headers,
1727
+ _host_index=_host_index
1728
+ )
1729
+
1730
+ _response_types_map: Dict[str, Optional[str]] = {
1731
+ '200': "Dict[str, object]",
1732
+ }
1733
+ response_data = self.api_client.call_api(
1734
+ *_param,
1735
+ _request_timeout=_request_timeout
1736
+ )
1737
+ response_data.read()
1738
+ return self.api_client.response_deserialize(
1739
+ response_data=response_data,
1740
+ response_types_map=_response_types_map,
1741
+ ).data
1742
+
1743
+
1744
+ @validate_call
1745
+ def list_groups_with_http_info(
1746
+ self,
1747
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
1748
+ _request_timeout: Union[
1749
+ None,
1750
+ Annotated[StrictFloat, Field(gt=0)],
1751
+ Tuple[
1752
+ Annotated[StrictFloat, Field(gt=0)],
1753
+ Annotated[StrictFloat, Field(gt=0)]
1754
+ ]
1755
+ ] = None,
1756
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1757
+ _content_type: Optional[StrictStr] = None,
1758
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1759
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1760
+ ) -> ApiResponse[Dict[str, object]]:
1761
+ """Get Groups List
1762
+
1763
+
1764
+ :param token: JWT token or API key for authorization (required)
1765
+ :type token: str
1766
+ :param _request_timeout: timeout setting for this request. If one
1767
+ number provided, it will be total request
1768
+ timeout. It can also be a pair (tuple) of
1769
+ (connection, read) timeouts.
1770
+ :type _request_timeout: int, tuple(int, int), optional
1771
+ :param _request_auth: set to override the auth_settings for an a single
1772
+ request; this effectively ignores the
1773
+ authentication in the spec for a single request.
1774
+ :type _request_auth: dict, optional
1775
+ :param _content_type: force content-type for the request.
1776
+ :type _content_type: str, Optional
1777
+ :param _headers: set to override the headers for a single
1778
+ request; this effectively ignores the headers
1779
+ in the spec for a single request.
1780
+ :type _headers: dict, optional
1781
+ :param _host_index: set to override the host_index for a single
1782
+ request; this effectively ignores the host_index
1783
+ in the spec for a single request.
1784
+ :type _host_index: int, optional
1785
+ :return: Returns the result object.
1786
+ """ # noqa: E501
1787
+
1788
+ _param = self._list_groups_serialize(
1789
+ token=token,
1790
+ _request_auth=_request_auth,
1791
+ _content_type=_content_type,
1792
+ _headers=_headers,
1793
+ _host_index=_host_index
1794
+ )
1795
+
1796
+ _response_types_map: Dict[str, Optional[str]] = {
1797
+ '200': "Dict[str, object]",
1798
+ }
1799
+ response_data = self.api_client.call_api(
1800
+ *_param,
1801
+ _request_timeout=_request_timeout
1802
+ )
1803
+ response_data.read()
1804
+ return self.api_client.response_deserialize(
1805
+ response_data=response_data,
1806
+ response_types_map=_response_types_map,
1807
+ )
1808
+
1809
+
1810
+ @validate_call
1811
+ def list_groups_without_preload_content(
1812
+ self,
1813
+ token: Annotated[StrictStr, Field(description="JWT token or API key for authorization")],
1814
+ _request_timeout: Union[
1815
+ None,
1816
+ Annotated[StrictFloat, Field(gt=0)],
1817
+ Tuple[
1818
+ Annotated[StrictFloat, Field(gt=0)],
1819
+ Annotated[StrictFloat, Field(gt=0)]
1820
+ ]
1821
+ ] = None,
1822
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1823
+ _content_type: Optional[StrictStr] = None,
1824
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1825
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1826
+ ) -> RESTResponseType:
1827
+ """Get Groups List
1828
+
1829
+
1830
+ :param token: JWT token or API key for authorization (required)
1831
+ :type token: str
1832
+ :param _request_timeout: timeout setting for this request. If one
1833
+ number provided, it will be total request
1834
+ timeout. It can also be a pair (tuple) of
1835
+ (connection, read) timeouts.
1836
+ :type _request_timeout: int, tuple(int, int), optional
1837
+ :param _request_auth: set to override the auth_settings for an a single
1838
+ request; this effectively ignores the
1839
+ authentication in the spec for a single request.
1840
+ :type _request_auth: dict, optional
1841
+ :param _content_type: force content-type for the request.
1842
+ :type _content_type: str, Optional
1843
+ :param _headers: set to override the headers for a single
1844
+ request; this effectively ignores the headers
1845
+ in the spec for a single request.
1846
+ :type _headers: dict, optional
1847
+ :param _host_index: set to override the host_index for a single
1848
+ request; this effectively ignores the host_index
1849
+ in the spec for a single request.
1850
+ :type _host_index: int, optional
1851
+ :return: Returns the result object.
1852
+ """ # noqa: E501
1853
+
1854
+ _param = self._list_groups_serialize(
1855
+ token=token,
1856
+ _request_auth=_request_auth,
1857
+ _content_type=_content_type,
1858
+ _headers=_headers,
1859
+ _host_index=_host_index
1860
+ )
1861
+
1862
+ _response_types_map: Dict[str, Optional[str]] = {
1863
+ '200': "Dict[str, object]",
1864
+ }
1865
+ response_data = self.api_client.call_api(
1866
+ *_param,
1867
+ _request_timeout=_request_timeout
1868
+ )
1869
+ return response_data.response
1870
+
1871
+
1872
+ def _list_groups_serialize(
1873
+ self,
1874
+ token,
1875
+ _request_auth,
1876
+ _content_type,
1877
+ _headers,
1878
+ _host_index,
1879
+ ) -> RequestSerialized:
1880
+
1881
+ _host = None
1882
+
1883
+ _collection_formats: Dict[str, str] = {
1884
+ }
1885
+
1886
+ _path_params: Dict[str, str] = {}
1887
+ _query_params: List[Tuple[str, str]] = []
1888
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1889
+ _form_params: List[Tuple[str, str]] = []
1890
+ _files: Dict[
1891
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1892
+ ] = {}
1893
+ _body_params: Optional[bytes] = None
1894
+
1895
+ # process the path parameters
1896
+ # process the query parameters
1897
+ if token is not None:
1898
+
1899
+ _query_params.append(('token', token))
1900
+
1901
+ # process the header parameters
1902
+ # process the form parameters
1903
+ # process the body parameter
1904
+
1905
+
1906
+ # set the HTTP header `Accept`
1907
+ if 'Accept' not in _header_params:
1908
+ _header_params['Accept'] = self.api_client.select_header_accept(
1909
+ [
1910
+ 'application/json'
1911
+ ]
1912
+ )
1913
+
1914
+
1915
+ # authentication setting
1916
+ _auth_settings: List[str] = [
1917
+ 'tokenAuth'
1918
+ ]
1919
+
1920
+ return self.api_client.param_serialize(
1921
+ method='GET',
1922
+ resource_path='/groups',
1923
+ path_params=_path_params,
1924
+ query_params=_query_params,
1925
+ header_params=_header_params,
1926
+ body=_body_params,
1927
+ post_params=_form_params,
1928
+ files=_files,
1929
+ auth_settings=_auth_settings,
1930
+ collection_formats=_collection_formats,
1931
+ _host=_host,
1932
+ _request_auth=_request_auth
1933
+ )
1934
+
1935
+