across-server-openapi-python 0.0.1__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.
- across/__init__.py +0 -0
- across/sdk/__init__.py +0 -0
- across/sdk/v1/__init__.py +251 -0
- across/sdk/v1/abstract_credential_storage.py +16 -0
- across/sdk/v1/api/__init__.py +20 -0
- across/sdk/v1/api/auth_api.py +1097 -0
- across/sdk/v1/api/filter_api.py +623 -0
- across/sdk/v1/api/group_api.py +586 -0
- across/sdk/v1/api/group_invite_api.py +1165 -0
- across/sdk/v1/api/group_role_api.py +2070 -0
- across/sdk/v1/api/instrument_api.py +633 -0
- across/sdk/v1/api/internal_api.py +571 -0
- across/sdk/v1/api/observation_api.py +940 -0
- across/sdk/v1/api/observatory_api.py +670 -0
- across/sdk/v1/api/permission_api.py +285 -0
- across/sdk/v1/api/role_api.py +552 -0
- across/sdk/v1/api/schedule_api.py +1914 -0
- across/sdk/v1/api/service_account_api.py +2353 -0
- across/sdk/v1/api/telescope_api.py +667 -0
- across/sdk/v1/api/tle_api.py +317 -0
- across/sdk/v1/api/tools_api.py +812 -0
- across/sdk/v1/api/user_api.py +2263 -0
- across/sdk/v1/api_client.py +801 -0
- across/sdk/v1/api_client_wrapper.py +239 -0
- across/sdk/v1/api_response.py +21 -0
- across/sdk/v1/configuration.py +605 -0
- across/sdk/v1/exceptions.py +216 -0
- across/sdk/v1/models/__init__.py +103 -0
- across/sdk/v1/models/access_token_response.py +89 -0
- across/sdk/v1/models/across_server_routes_v1_group_invite_schemas_group_invite.py +104 -0
- across/sdk/v1/models/across_server_routes_v1_group_role_schemas_group_role.py +124 -0
- across/sdk/v1/models/across_server_routes_v1_group_role_schemas_service_account.py +106 -0
- across/sdk/v1/models/across_server_routes_v1_group_role_schemas_user.py +95 -0
- across/sdk/v1/models/across_server_routes_v1_group_schemas_group.py +111 -0
- across/sdk/v1/models/across_server_routes_v1_group_schemas_user.py +105 -0
- across/sdk/v1/models/across_server_routes_v1_role_schemas_user.py +96 -0
- across/sdk/v1/models/across_server_routes_v1_system_service_account_schemas_service_account.py +90 -0
- across/sdk/v1/models/across_server_routes_v1_system_service_account_schemas_service_account_secret.py +92 -0
- across/sdk/v1/models/across_server_routes_v1_user_schemas_group.py +101 -0
- across/sdk/v1/models/across_server_routes_v1_user_schemas_group_invite.py +99 -0
- across/sdk/v1/models/across_server_routes_v1_user_schemas_group_role.py +99 -0
- across/sdk/v1/models/across_server_routes_v1_user_schemas_user.py +135 -0
- across/sdk/v1/models/across_server_routes_v1_user_service_account_schemas_service_account.py +111 -0
- across/sdk/v1/models/across_server_routes_v1_user_service_account_schemas_service_account_secret.py +118 -0
- across/sdk/v1/models/alt_az_constraint.py +130 -0
- across/sdk/v1/models/bandpass.py +149 -0
- across/sdk/v1/models/bandpass_type.py +155 -0
- across/sdk/v1/models/constrained_date.py +93 -0
- across/sdk/v1/models/constraint_reason.py +89 -0
- across/sdk/v1/models/constraint_type.py +43 -0
- across/sdk/v1/models/coordinate.py +100 -0
- across/sdk/v1/models/date_range.py +90 -0
- across/sdk/v1/models/depth_unit.py +39 -0
- across/sdk/v1/models/earth_limb_constraint.py +124 -0
- across/sdk/v1/models/energy_bandpass.py +121 -0
- across/sdk/v1/models/energy_unit.py +40 -0
- across/sdk/v1/models/ephemeris_type.py +39 -0
- across/sdk/v1/models/filter.py +135 -0
- across/sdk/v1/models/frequency_bandpass.py +121 -0
- across/sdk/v1/models/frequency_unit.py +40 -0
- across/sdk/v1/models/grant_type.py +37 -0
- across/sdk/v1/models/ground_parameters.py +91 -0
- across/sdk/v1/models/group_invite_create.py +87 -0
- across/sdk/v1/models/group_invite_group_details.py +94 -0
- across/sdk/v1/models/group_read.py +91 -0
- across/sdk/v1/models/group_role_create.py +89 -0
- across/sdk/v1/models/group_role_read.py +99 -0
- across/sdk/v1/models/http_validation_error.py +95 -0
- across/sdk/v1/models/id_name_schema.py +96 -0
- across/sdk/v1/models/instrument.py +163 -0
- across/sdk/v1/models/instrument_constraints_inner.py +237 -0
- across/sdk/v1/models/ivoa_obs_category.py +39 -0
- across/sdk/v1/models/ivoa_obs_tracking_type.py +38 -0
- across/sdk/v1/models/jpl_parameters.py +87 -0
- across/sdk/v1/models/moon_angle_constraint.py +124 -0
- across/sdk/v1/models/nullable_date_range.py +100 -0
- across/sdk/v1/models/observation.py +248 -0
- across/sdk/v1/models/observation_create.py +249 -0
- across/sdk/v1/models/observation_status.py +40 -0
- across/sdk/v1/models/observation_type.py +39 -0
- across/sdk/v1/models/observatory.py +145 -0
- across/sdk/v1/models/observatory_ephemeris_type.py +96 -0
- across/sdk/v1/models/observatory_type.py +37 -0
- across/sdk/v1/models/page_observation.py +116 -0
- across/sdk/v1/models/page_schedule.py +116 -0
- across/sdk/v1/models/parameters.py +164 -0
- across/sdk/v1/models/permission.py +89 -0
- across/sdk/v1/models/point.py +89 -0
- across/sdk/v1/models/role.py +100 -0
- across/sdk/v1/models/role_base.py +89 -0
- across/sdk/v1/models/saa_polygon_constraint.py +101 -0
- across/sdk/v1/models/schedule.py +144 -0
- across/sdk/v1/models/schedule_cadence.py +99 -0
- across/sdk/v1/models/schedule_create.py +123 -0
- across/sdk/v1/models/schedule_create_many.py +97 -0
- across/sdk/v1/models/schedule_fidelity.py +37 -0
- across/sdk/v1/models/schedule_status.py +38 -0
- across/sdk/v1/models/service_account_create.py +101 -0
- across/sdk/v1/models/service_account_secret.py +103 -0
- across/sdk/v1/models/service_account_update.py +106 -0
- across/sdk/v1/models/spice_parameters.py +89 -0
- across/sdk/v1/models/sun_angle_constraint.py +124 -0
- across/sdk/v1/models/system_service_account.py +121 -0
- across/sdk/v1/models/system_service_account_secret.py +123 -0
- across/sdk/v1/models/telescope.py +135 -0
- across/sdk/v1/models/telescope_instrument.py +163 -0
- across/sdk/v1/models/tle.py +99 -0
- across/sdk/v1/models/tle_create.py +94 -0
- across/sdk/v1/models/tle_parameters.py +89 -0
- across/sdk/v1/models/unit_value.py +94 -0
- across/sdk/v1/models/user_create.py +93 -0
- across/sdk/v1/models/user_info.py +95 -0
- across/sdk/v1/models/user_update.py +106 -0
- across/sdk/v1/models/validation_error.py +99 -0
- across/sdk/v1/models/validation_error_loc_inner.py +138 -0
- across/sdk/v1/models/visibility_result.py +97 -0
- across/sdk/v1/models/visibility_type.py +38 -0
- across/sdk/v1/models/visibility_window.py +99 -0
- across/sdk/v1/models/wavelength_bandpass.py +142 -0
- across/sdk/v1/models/wavelength_unit.py +39 -0
- across/sdk/v1/models/window.py +96 -0
- across/sdk/v1/py.typed +0 -0
- across/sdk/v1/rest.py +258 -0
- across_server_openapi_python-0.0.1.dist-info/METADATA +326 -0
- across_server_openapi_python-0.0.1.dist-info/RECORD +128 -0
- across_server_openapi_python-0.0.1.dist-info/WHEEL +5 -0
- across_server_openapi_python-0.0.1.dist-info/licenses/LICENSE +42 -0
- across_server_openapi_python-0.0.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1165 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
ACROSS Server
|
|
5
|
+
|
|
6
|
+
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.3.2
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import StrictStr
|
|
20
|
+
from typing import List
|
|
21
|
+
from across.sdk.v1.models.across_server_routes_v1_group_invite_schemas_group_invite import AcrossServerRoutesV1GroupInviteSchemasGroupInvite
|
|
22
|
+
from across.sdk.v1.models.group_invite_create import GroupInviteCreate
|
|
23
|
+
|
|
24
|
+
from across.sdk.v1.api_client import ApiClient, RequestSerialized
|
|
25
|
+
from across.sdk.v1.api_response import ApiResponse
|
|
26
|
+
from across.sdk.v1.rest import RESTResponseType
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class GroupInviteApi:
|
|
30
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
31
|
+
Ref: https://openapi-generator.tech
|
|
32
|
+
|
|
33
|
+
Do not edit the class manually.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
def __init__(self, api_client=None) -> None:
|
|
37
|
+
if api_client is None:
|
|
38
|
+
api_client = ApiClient.get_default()
|
|
39
|
+
self.api_client = api_client
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@validate_call
|
|
43
|
+
def delete_invite(
|
|
44
|
+
self,
|
|
45
|
+
invite_id: StrictStr,
|
|
46
|
+
group_id: StrictStr,
|
|
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
|
+
) -> None:
|
|
60
|
+
"""Delete a group invite
|
|
61
|
+
|
|
62
|
+
Delete a group invite by ID
|
|
63
|
+
|
|
64
|
+
:param invite_id: (required)
|
|
65
|
+
:type invite_id: str
|
|
66
|
+
:param group_id: (required)
|
|
67
|
+
:type group_id: str
|
|
68
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
69
|
+
number provided, it will be total request
|
|
70
|
+
timeout. It can also be a pair (tuple) of
|
|
71
|
+
(connection, read) timeouts.
|
|
72
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
73
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
74
|
+
request; this effectively ignores the
|
|
75
|
+
authentication in the spec for a single request.
|
|
76
|
+
:type _request_auth: dict, optional
|
|
77
|
+
:param _content_type: force content-type for the request.
|
|
78
|
+
:type _content_type: str, Optional
|
|
79
|
+
:param _headers: set to override the headers for a single
|
|
80
|
+
request; this effectively ignores the headers
|
|
81
|
+
in the spec for a single request.
|
|
82
|
+
:type _headers: dict, optional
|
|
83
|
+
:param _host_index: set to override the host_index for a single
|
|
84
|
+
request; this effectively ignores the host_index
|
|
85
|
+
in the spec for a single request.
|
|
86
|
+
:type _host_index: int, optional
|
|
87
|
+
:return: Returns the result object.
|
|
88
|
+
""" # noqa: E501
|
|
89
|
+
|
|
90
|
+
_param = self._delete_invite_serialize(
|
|
91
|
+
invite_id=invite_id,
|
|
92
|
+
group_id=group_id,
|
|
93
|
+
_request_auth=_request_auth,
|
|
94
|
+
_content_type=_content_type,
|
|
95
|
+
_headers=_headers,
|
|
96
|
+
_host_index=_host_index
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
100
|
+
'204': None,
|
|
101
|
+
'404': None,
|
|
102
|
+
'422': "HTTPValidationError",
|
|
103
|
+
}
|
|
104
|
+
response_data = self.api_client.call_api(
|
|
105
|
+
*_param,
|
|
106
|
+
_request_timeout=_request_timeout
|
|
107
|
+
)
|
|
108
|
+
response_data.read()
|
|
109
|
+
return self.api_client.response_deserialize(
|
|
110
|
+
response_data=response_data,
|
|
111
|
+
response_types_map=_response_types_map,
|
|
112
|
+
).data
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
@validate_call
|
|
116
|
+
def delete_invite_with_http_info(
|
|
117
|
+
self,
|
|
118
|
+
invite_id: StrictStr,
|
|
119
|
+
group_id: StrictStr,
|
|
120
|
+
_request_timeout: Union[
|
|
121
|
+
None,
|
|
122
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
123
|
+
Tuple[
|
|
124
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
125
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
126
|
+
]
|
|
127
|
+
] = None,
|
|
128
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
129
|
+
_content_type: Optional[StrictStr] = None,
|
|
130
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
131
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
132
|
+
) -> ApiResponse[None]:
|
|
133
|
+
"""Delete a group invite
|
|
134
|
+
|
|
135
|
+
Delete a group invite by ID
|
|
136
|
+
|
|
137
|
+
:param invite_id: (required)
|
|
138
|
+
:type invite_id: str
|
|
139
|
+
:param group_id: (required)
|
|
140
|
+
:type group_id: str
|
|
141
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
142
|
+
number provided, it will be total request
|
|
143
|
+
timeout. It can also be a pair (tuple) of
|
|
144
|
+
(connection, read) timeouts.
|
|
145
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
146
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
147
|
+
request; this effectively ignores the
|
|
148
|
+
authentication in the spec for a single request.
|
|
149
|
+
:type _request_auth: dict, optional
|
|
150
|
+
:param _content_type: force content-type for the request.
|
|
151
|
+
:type _content_type: str, Optional
|
|
152
|
+
:param _headers: set to override the headers for a single
|
|
153
|
+
request; this effectively ignores the headers
|
|
154
|
+
in the spec for a single request.
|
|
155
|
+
:type _headers: dict, optional
|
|
156
|
+
:param _host_index: set to override the host_index for a single
|
|
157
|
+
request; this effectively ignores the host_index
|
|
158
|
+
in the spec for a single request.
|
|
159
|
+
:type _host_index: int, optional
|
|
160
|
+
:return: Returns the result object.
|
|
161
|
+
""" # noqa: E501
|
|
162
|
+
|
|
163
|
+
_param = self._delete_invite_serialize(
|
|
164
|
+
invite_id=invite_id,
|
|
165
|
+
group_id=group_id,
|
|
166
|
+
_request_auth=_request_auth,
|
|
167
|
+
_content_type=_content_type,
|
|
168
|
+
_headers=_headers,
|
|
169
|
+
_host_index=_host_index
|
|
170
|
+
)
|
|
171
|
+
|
|
172
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
173
|
+
'204': None,
|
|
174
|
+
'404': None,
|
|
175
|
+
'422': "HTTPValidationError",
|
|
176
|
+
}
|
|
177
|
+
response_data = self.api_client.call_api(
|
|
178
|
+
*_param,
|
|
179
|
+
_request_timeout=_request_timeout
|
|
180
|
+
)
|
|
181
|
+
response_data.read()
|
|
182
|
+
return self.api_client.response_deserialize(
|
|
183
|
+
response_data=response_data,
|
|
184
|
+
response_types_map=_response_types_map,
|
|
185
|
+
)
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
@validate_call
|
|
189
|
+
def delete_invite_without_preload_content(
|
|
190
|
+
self,
|
|
191
|
+
invite_id: StrictStr,
|
|
192
|
+
group_id: StrictStr,
|
|
193
|
+
_request_timeout: Union[
|
|
194
|
+
None,
|
|
195
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
196
|
+
Tuple[
|
|
197
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
198
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
199
|
+
]
|
|
200
|
+
] = None,
|
|
201
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
202
|
+
_content_type: Optional[StrictStr] = None,
|
|
203
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
204
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
205
|
+
) -> RESTResponseType:
|
|
206
|
+
"""Delete a group invite
|
|
207
|
+
|
|
208
|
+
Delete a group invite by ID
|
|
209
|
+
|
|
210
|
+
:param invite_id: (required)
|
|
211
|
+
:type invite_id: str
|
|
212
|
+
:param group_id: (required)
|
|
213
|
+
:type group_id: str
|
|
214
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
215
|
+
number provided, it will be total request
|
|
216
|
+
timeout. It can also be a pair (tuple) of
|
|
217
|
+
(connection, read) timeouts.
|
|
218
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
219
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
220
|
+
request; this effectively ignores the
|
|
221
|
+
authentication in the spec for a single request.
|
|
222
|
+
:type _request_auth: dict, optional
|
|
223
|
+
:param _content_type: force content-type for the request.
|
|
224
|
+
:type _content_type: str, Optional
|
|
225
|
+
:param _headers: set to override the headers for a single
|
|
226
|
+
request; this effectively ignores the headers
|
|
227
|
+
in the spec for a single request.
|
|
228
|
+
:type _headers: dict, optional
|
|
229
|
+
:param _host_index: set to override the host_index for a single
|
|
230
|
+
request; this effectively ignores the host_index
|
|
231
|
+
in the spec for a single request.
|
|
232
|
+
:type _host_index: int, optional
|
|
233
|
+
:return: Returns the result object.
|
|
234
|
+
""" # noqa: E501
|
|
235
|
+
|
|
236
|
+
_param = self._delete_invite_serialize(
|
|
237
|
+
invite_id=invite_id,
|
|
238
|
+
group_id=group_id,
|
|
239
|
+
_request_auth=_request_auth,
|
|
240
|
+
_content_type=_content_type,
|
|
241
|
+
_headers=_headers,
|
|
242
|
+
_host_index=_host_index
|
|
243
|
+
)
|
|
244
|
+
|
|
245
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
246
|
+
'204': None,
|
|
247
|
+
'404': None,
|
|
248
|
+
'422': "HTTPValidationError",
|
|
249
|
+
}
|
|
250
|
+
response_data = self.api_client.call_api(
|
|
251
|
+
*_param,
|
|
252
|
+
_request_timeout=_request_timeout
|
|
253
|
+
)
|
|
254
|
+
return response_data.response
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
def _delete_invite_serialize(
|
|
258
|
+
self,
|
|
259
|
+
invite_id,
|
|
260
|
+
group_id,
|
|
261
|
+
_request_auth,
|
|
262
|
+
_content_type,
|
|
263
|
+
_headers,
|
|
264
|
+
_host_index,
|
|
265
|
+
) -> RequestSerialized:
|
|
266
|
+
|
|
267
|
+
_host = None
|
|
268
|
+
|
|
269
|
+
_collection_formats: Dict[str, str] = {
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
_path_params: Dict[str, str] = {}
|
|
273
|
+
_query_params: List[Tuple[str, str]] = []
|
|
274
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
275
|
+
_form_params: List[Tuple[str, str]] = []
|
|
276
|
+
_files: Dict[
|
|
277
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
278
|
+
] = {}
|
|
279
|
+
_body_params: Optional[bytes] = None
|
|
280
|
+
|
|
281
|
+
# process the path parameters
|
|
282
|
+
if invite_id is not None:
|
|
283
|
+
_path_params['invite_id'] = invite_id
|
|
284
|
+
if group_id is not None:
|
|
285
|
+
_path_params['group_id'] = group_id
|
|
286
|
+
# process the query parameters
|
|
287
|
+
# process the header parameters
|
|
288
|
+
# process the form parameters
|
|
289
|
+
# process the body parameter
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
# set the HTTP header `Accept`
|
|
293
|
+
if 'Accept' not in _header_params:
|
|
294
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
295
|
+
[
|
|
296
|
+
'application/json'
|
|
297
|
+
]
|
|
298
|
+
)
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
# authentication setting
|
|
302
|
+
_auth_settings: List[str] = [
|
|
303
|
+
'Authorization'
|
|
304
|
+
]
|
|
305
|
+
|
|
306
|
+
return self.api_client.param_serialize(
|
|
307
|
+
method='DELETE',
|
|
308
|
+
resource_path='/group/{group_id}/invite/{invite_id}',
|
|
309
|
+
path_params=_path_params,
|
|
310
|
+
query_params=_query_params,
|
|
311
|
+
header_params=_header_params,
|
|
312
|
+
body=_body_params,
|
|
313
|
+
post_params=_form_params,
|
|
314
|
+
files=_files,
|
|
315
|
+
auth_settings=_auth_settings,
|
|
316
|
+
collection_formats=_collection_formats,
|
|
317
|
+
_host=_host,
|
|
318
|
+
_request_auth=_request_auth
|
|
319
|
+
)
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
@validate_call
|
|
325
|
+
def get_invite(
|
|
326
|
+
self,
|
|
327
|
+
group_id: StrictStr,
|
|
328
|
+
invite_id: StrictStr,
|
|
329
|
+
_request_timeout: Union[
|
|
330
|
+
None,
|
|
331
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
332
|
+
Tuple[
|
|
333
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
334
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
335
|
+
]
|
|
336
|
+
] = None,
|
|
337
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
338
|
+
_content_type: Optional[StrictStr] = None,
|
|
339
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
340
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
341
|
+
) -> AcrossServerRoutesV1GroupInviteSchemasGroupInvite:
|
|
342
|
+
"""Read a group invite
|
|
343
|
+
|
|
344
|
+
Read a single group invite by ID
|
|
345
|
+
|
|
346
|
+
:param group_id: (required)
|
|
347
|
+
:type group_id: str
|
|
348
|
+
:param invite_id: (required)
|
|
349
|
+
:type invite_id: str
|
|
350
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
351
|
+
number provided, it will be total request
|
|
352
|
+
timeout. It can also be a pair (tuple) of
|
|
353
|
+
(connection, read) timeouts.
|
|
354
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
355
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
356
|
+
request; this effectively ignores the
|
|
357
|
+
authentication in the spec for a single request.
|
|
358
|
+
:type _request_auth: dict, optional
|
|
359
|
+
:param _content_type: force content-type for the request.
|
|
360
|
+
:type _content_type: str, Optional
|
|
361
|
+
:param _headers: set to override the headers for a single
|
|
362
|
+
request; this effectively ignores the headers
|
|
363
|
+
in the spec for a single request.
|
|
364
|
+
:type _headers: dict, optional
|
|
365
|
+
:param _host_index: set to override the host_index for a single
|
|
366
|
+
request; this effectively ignores the host_index
|
|
367
|
+
in the spec for a single request.
|
|
368
|
+
:type _host_index: int, optional
|
|
369
|
+
:return: Returns the result object.
|
|
370
|
+
""" # noqa: E501
|
|
371
|
+
|
|
372
|
+
_param = self._get_invite_serialize(
|
|
373
|
+
group_id=group_id,
|
|
374
|
+
invite_id=invite_id,
|
|
375
|
+
_request_auth=_request_auth,
|
|
376
|
+
_content_type=_content_type,
|
|
377
|
+
_headers=_headers,
|
|
378
|
+
_host_index=_host_index
|
|
379
|
+
)
|
|
380
|
+
|
|
381
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
382
|
+
'200': "AcrossServerRoutesV1GroupInviteSchemasGroupInvite",
|
|
383
|
+
'404': None,
|
|
384
|
+
'422': "HTTPValidationError",
|
|
385
|
+
}
|
|
386
|
+
response_data = self.api_client.call_api(
|
|
387
|
+
*_param,
|
|
388
|
+
_request_timeout=_request_timeout
|
|
389
|
+
)
|
|
390
|
+
response_data.read()
|
|
391
|
+
return self.api_client.response_deserialize(
|
|
392
|
+
response_data=response_data,
|
|
393
|
+
response_types_map=_response_types_map,
|
|
394
|
+
).data
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
@validate_call
|
|
398
|
+
def get_invite_with_http_info(
|
|
399
|
+
self,
|
|
400
|
+
group_id: StrictStr,
|
|
401
|
+
invite_id: StrictStr,
|
|
402
|
+
_request_timeout: Union[
|
|
403
|
+
None,
|
|
404
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
405
|
+
Tuple[
|
|
406
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
407
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
408
|
+
]
|
|
409
|
+
] = None,
|
|
410
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
411
|
+
_content_type: Optional[StrictStr] = None,
|
|
412
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
413
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
414
|
+
) -> ApiResponse[AcrossServerRoutesV1GroupInviteSchemasGroupInvite]:
|
|
415
|
+
"""Read a group invite
|
|
416
|
+
|
|
417
|
+
Read a single group invite by ID
|
|
418
|
+
|
|
419
|
+
:param group_id: (required)
|
|
420
|
+
:type group_id: str
|
|
421
|
+
:param invite_id: (required)
|
|
422
|
+
:type invite_id: str
|
|
423
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
424
|
+
number provided, it will be total request
|
|
425
|
+
timeout. It can also be a pair (tuple) of
|
|
426
|
+
(connection, read) timeouts.
|
|
427
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
428
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
429
|
+
request; this effectively ignores the
|
|
430
|
+
authentication in the spec for a single request.
|
|
431
|
+
:type _request_auth: dict, optional
|
|
432
|
+
:param _content_type: force content-type for the request.
|
|
433
|
+
:type _content_type: str, Optional
|
|
434
|
+
:param _headers: set to override the headers for a single
|
|
435
|
+
request; this effectively ignores the headers
|
|
436
|
+
in the spec for a single request.
|
|
437
|
+
:type _headers: dict, optional
|
|
438
|
+
:param _host_index: set to override the host_index for a single
|
|
439
|
+
request; this effectively ignores the host_index
|
|
440
|
+
in the spec for a single request.
|
|
441
|
+
:type _host_index: int, optional
|
|
442
|
+
:return: Returns the result object.
|
|
443
|
+
""" # noqa: E501
|
|
444
|
+
|
|
445
|
+
_param = self._get_invite_serialize(
|
|
446
|
+
group_id=group_id,
|
|
447
|
+
invite_id=invite_id,
|
|
448
|
+
_request_auth=_request_auth,
|
|
449
|
+
_content_type=_content_type,
|
|
450
|
+
_headers=_headers,
|
|
451
|
+
_host_index=_host_index
|
|
452
|
+
)
|
|
453
|
+
|
|
454
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
455
|
+
'200': "AcrossServerRoutesV1GroupInviteSchemasGroupInvite",
|
|
456
|
+
'404': None,
|
|
457
|
+
'422': "HTTPValidationError",
|
|
458
|
+
}
|
|
459
|
+
response_data = self.api_client.call_api(
|
|
460
|
+
*_param,
|
|
461
|
+
_request_timeout=_request_timeout
|
|
462
|
+
)
|
|
463
|
+
response_data.read()
|
|
464
|
+
return self.api_client.response_deserialize(
|
|
465
|
+
response_data=response_data,
|
|
466
|
+
response_types_map=_response_types_map,
|
|
467
|
+
)
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
@validate_call
|
|
471
|
+
def get_invite_without_preload_content(
|
|
472
|
+
self,
|
|
473
|
+
group_id: StrictStr,
|
|
474
|
+
invite_id: StrictStr,
|
|
475
|
+
_request_timeout: Union[
|
|
476
|
+
None,
|
|
477
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
478
|
+
Tuple[
|
|
479
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
480
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
481
|
+
]
|
|
482
|
+
] = None,
|
|
483
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
484
|
+
_content_type: Optional[StrictStr] = None,
|
|
485
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
486
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
487
|
+
) -> RESTResponseType:
|
|
488
|
+
"""Read a group invite
|
|
489
|
+
|
|
490
|
+
Read a single group invite by ID
|
|
491
|
+
|
|
492
|
+
:param group_id: (required)
|
|
493
|
+
:type group_id: str
|
|
494
|
+
:param invite_id: (required)
|
|
495
|
+
:type invite_id: str
|
|
496
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
497
|
+
number provided, it will be total request
|
|
498
|
+
timeout. It can also be a pair (tuple) of
|
|
499
|
+
(connection, read) timeouts.
|
|
500
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
501
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
502
|
+
request; this effectively ignores the
|
|
503
|
+
authentication in the spec for a single request.
|
|
504
|
+
:type _request_auth: dict, optional
|
|
505
|
+
:param _content_type: force content-type for the request.
|
|
506
|
+
:type _content_type: str, Optional
|
|
507
|
+
:param _headers: set to override the headers for a single
|
|
508
|
+
request; this effectively ignores the headers
|
|
509
|
+
in the spec for a single request.
|
|
510
|
+
:type _headers: dict, optional
|
|
511
|
+
:param _host_index: set to override the host_index for a single
|
|
512
|
+
request; this effectively ignores the host_index
|
|
513
|
+
in the spec for a single request.
|
|
514
|
+
:type _host_index: int, optional
|
|
515
|
+
:return: Returns the result object.
|
|
516
|
+
""" # noqa: E501
|
|
517
|
+
|
|
518
|
+
_param = self._get_invite_serialize(
|
|
519
|
+
group_id=group_id,
|
|
520
|
+
invite_id=invite_id,
|
|
521
|
+
_request_auth=_request_auth,
|
|
522
|
+
_content_type=_content_type,
|
|
523
|
+
_headers=_headers,
|
|
524
|
+
_host_index=_host_index
|
|
525
|
+
)
|
|
526
|
+
|
|
527
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
528
|
+
'200': "AcrossServerRoutesV1GroupInviteSchemasGroupInvite",
|
|
529
|
+
'404': None,
|
|
530
|
+
'422': "HTTPValidationError",
|
|
531
|
+
}
|
|
532
|
+
response_data = self.api_client.call_api(
|
|
533
|
+
*_param,
|
|
534
|
+
_request_timeout=_request_timeout
|
|
535
|
+
)
|
|
536
|
+
return response_data.response
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
def _get_invite_serialize(
|
|
540
|
+
self,
|
|
541
|
+
group_id,
|
|
542
|
+
invite_id,
|
|
543
|
+
_request_auth,
|
|
544
|
+
_content_type,
|
|
545
|
+
_headers,
|
|
546
|
+
_host_index,
|
|
547
|
+
) -> RequestSerialized:
|
|
548
|
+
|
|
549
|
+
_host = None
|
|
550
|
+
|
|
551
|
+
_collection_formats: Dict[str, str] = {
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
_path_params: Dict[str, str] = {}
|
|
555
|
+
_query_params: List[Tuple[str, str]] = []
|
|
556
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
557
|
+
_form_params: List[Tuple[str, str]] = []
|
|
558
|
+
_files: Dict[
|
|
559
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
560
|
+
] = {}
|
|
561
|
+
_body_params: Optional[bytes] = None
|
|
562
|
+
|
|
563
|
+
# process the path parameters
|
|
564
|
+
if group_id is not None:
|
|
565
|
+
_path_params['group_id'] = group_id
|
|
566
|
+
if invite_id is not None:
|
|
567
|
+
_path_params['invite_id'] = invite_id
|
|
568
|
+
# process the query parameters
|
|
569
|
+
# process the header parameters
|
|
570
|
+
# process the form parameters
|
|
571
|
+
# process the body parameter
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
# set the HTTP header `Accept`
|
|
575
|
+
if 'Accept' not in _header_params:
|
|
576
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
577
|
+
[
|
|
578
|
+
'application/json'
|
|
579
|
+
]
|
|
580
|
+
)
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
# authentication setting
|
|
584
|
+
_auth_settings: List[str] = [
|
|
585
|
+
'Authorization'
|
|
586
|
+
]
|
|
587
|
+
|
|
588
|
+
return self.api_client.param_serialize(
|
|
589
|
+
method='GET',
|
|
590
|
+
resource_path='/group/{group_id}/invite/{invite_id}',
|
|
591
|
+
path_params=_path_params,
|
|
592
|
+
query_params=_query_params,
|
|
593
|
+
header_params=_header_params,
|
|
594
|
+
body=_body_params,
|
|
595
|
+
post_params=_form_params,
|
|
596
|
+
files=_files,
|
|
597
|
+
auth_settings=_auth_settings,
|
|
598
|
+
collection_formats=_collection_formats,
|
|
599
|
+
_host=_host,
|
|
600
|
+
_request_auth=_request_auth
|
|
601
|
+
)
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
@validate_call
|
|
607
|
+
def get_invites(
|
|
608
|
+
self,
|
|
609
|
+
group_id: StrictStr,
|
|
610
|
+
_request_timeout: Union[
|
|
611
|
+
None,
|
|
612
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
613
|
+
Tuple[
|
|
614
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
615
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
616
|
+
]
|
|
617
|
+
] = None,
|
|
618
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
619
|
+
_content_type: Optional[StrictStr] = None,
|
|
620
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
621
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
622
|
+
) -> List[AcrossServerRoutesV1GroupInviteSchemasGroupInvite]:
|
|
623
|
+
"""Read group invites
|
|
624
|
+
|
|
625
|
+
Read all group invites for a group
|
|
626
|
+
|
|
627
|
+
:param group_id: (required)
|
|
628
|
+
:type group_id: str
|
|
629
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
630
|
+
number provided, it will be total request
|
|
631
|
+
timeout. It can also be a pair (tuple) of
|
|
632
|
+
(connection, read) timeouts.
|
|
633
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
634
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
635
|
+
request; this effectively ignores the
|
|
636
|
+
authentication in the spec for a single request.
|
|
637
|
+
:type _request_auth: dict, optional
|
|
638
|
+
:param _content_type: force content-type for the request.
|
|
639
|
+
:type _content_type: str, Optional
|
|
640
|
+
:param _headers: set to override the headers for a single
|
|
641
|
+
request; this effectively ignores the headers
|
|
642
|
+
in the spec for a single request.
|
|
643
|
+
:type _headers: dict, optional
|
|
644
|
+
:param _host_index: set to override the host_index for a single
|
|
645
|
+
request; this effectively ignores the host_index
|
|
646
|
+
in the spec for a single request.
|
|
647
|
+
:type _host_index: int, optional
|
|
648
|
+
:return: Returns the result object.
|
|
649
|
+
""" # noqa: E501
|
|
650
|
+
|
|
651
|
+
_param = self._get_invites_serialize(
|
|
652
|
+
group_id=group_id,
|
|
653
|
+
_request_auth=_request_auth,
|
|
654
|
+
_content_type=_content_type,
|
|
655
|
+
_headers=_headers,
|
|
656
|
+
_host_index=_host_index
|
|
657
|
+
)
|
|
658
|
+
|
|
659
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
660
|
+
'200': "List[AcrossServerRoutesV1GroupInviteSchemasGroupInvite]",
|
|
661
|
+
'404': None,
|
|
662
|
+
'422': "HTTPValidationError",
|
|
663
|
+
}
|
|
664
|
+
response_data = self.api_client.call_api(
|
|
665
|
+
*_param,
|
|
666
|
+
_request_timeout=_request_timeout
|
|
667
|
+
)
|
|
668
|
+
response_data.read()
|
|
669
|
+
return self.api_client.response_deserialize(
|
|
670
|
+
response_data=response_data,
|
|
671
|
+
response_types_map=_response_types_map,
|
|
672
|
+
).data
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
@validate_call
|
|
676
|
+
def get_invites_with_http_info(
|
|
677
|
+
self,
|
|
678
|
+
group_id: StrictStr,
|
|
679
|
+
_request_timeout: Union[
|
|
680
|
+
None,
|
|
681
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
682
|
+
Tuple[
|
|
683
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
684
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
685
|
+
]
|
|
686
|
+
] = None,
|
|
687
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
688
|
+
_content_type: Optional[StrictStr] = None,
|
|
689
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
690
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
691
|
+
) -> ApiResponse[List[AcrossServerRoutesV1GroupInviteSchemasGroupInvite]]:
|
|
692
|
+
"""Read group invites
|
|
693
|
+
|
|
694
|
+
Read all group invites for a group
|
|
695
|
+
|
|
696
|
+
:param group_id: (required)
|
|
697
|
+
:type group_id: str
|
|
698
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
699
|
+
number provided, it will be total request
|
|
700
|
+
timeout. It can also be a pair (tuple) of
|
|
701
|
+
(connection, read) timeouts.
|
|
702
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
703
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
704
|
+
request; this effectively ignores the
|
|
705
|
+
authentication in the spec for a single request.
|
|
706
|
+
:type _request_auth: dict, optional
|
|
707
|
+
:param _content_type: force content-type for the request.
|
|
708
|
+
:type _content_type: str, Optional
|
|
709
|
+
:param _headers: set to override the headers for a single
|
|
710
|
+
request; this effectively ignores the headers
|
|
711
|
+
in the spec for a single request.
|
|
712
|
+
:type _headers: dict, optional
|
|
713
|
+
:param _host_index: set to override the host_index for a single
|
|
714
|
+
request; this effectively ignores the host_index
|
|
715
|
+
in the spec for a single request.
|
|
716
|
+
:type _host_index: int, optional
|
|
717
|
+
:return: Returns the result object.
|
|
718
|
+
""" # noqa: E501
|
|
719
|
+
|
|
720
|
+
_param = self._get_invites_serialize(
|
|
721
|
+
group_id=group_id,
|
|
722
|
+
_request_auth=_request_auth,
|
|
723
|
+
_content_type=_content_type,
|
|
724
|
+
_headers=_headers,
|
|
725
|
+
_host_index=_host_index
|
|
726
|
+
)
|
|
727
|
+
|
|
728
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
729
|
+
'200': "List[AcrossServerRoutesV1GroupInviteSchemasGroupInvite]",
|
|
730
|
+
'404': None,
|
|
731
|
+
'422': "HTTPValidationError",
|
|
732
|
+
}
|
|
733
|
+
response_data = self.api_client.call_api(
|
|
734
|
+
*_param,
|
|
735
|
+
_request_timeout=_request_timeout
|
|
736
|
+
)
|
|
737
|
+
response_data.read()
|
|
738
|
+
return self.api_client.response_deserialize(
|
|
739
|
+
response_data=response_data,
|
|
740
|
+
response_types_map=_response_types_map,
|
|
741
|
+
)
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
@validate_call
|
|
745
|
+
def get_invites_without_preload_content(
|
|
746
|
+
self,
|
|
747
|
+
group_id: StrictStr,
|
|
748
|
+
_request_timeout: Union[
|
|
749
|
+
None,
|
|
750
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
751
|
+
Tuple[
|
|
752
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
753
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
754
|
+
]
|
|
755
|
+
] = None,
|
|
756
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
757
|
+
_content_type: Optional[StrictStr] = None,
|
|
758
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
759
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
760
|
+
) -> RESTResponseType:
|
|
761
|
+
"""Read group invites
|
|
762
|
+
|
|
763
|
+
Read all group invites for a group
|
|
764
|
+
|
|
765
|
+
:param group_id: (required)
|
|
766
|
+
:type group_id: str
|
|
767
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
768
|
+
number provided, it will be total request
|
|
769
|
+
timeout. It can also be a pair (tuple) of
|
|
770
|
+
(connection, read) timeouts.
|
|
771
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
772
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
773
|
+
request; this effectively ignores the
|
|
774
|
+
authentication in the spec for a single request.
|
|
775
|
+
:type _request_auth: dict, optional
|
|
776
|
+
:param _content_type: force content-type for the request.
|
|
777
|
+
:type _content_type: str, Optional
|
|
778
|
+
:param _headers: set to override the headers for a single
|
|
779
|
+
request; this effectively ignores the headers
|
|
780
|
+
in the spec for a single request.
|
|
781
|
+
:type _headers: dict, optional
|
|
782
|
+
:param _host_index: set to override the host_index for a single
|
|
783
|
+
request; this effectively ignores the host_index
|
|
784
|
+
in the spec for a single request.
|
|
785
|
+
:type _host_index: int, optional
|
|
786
|
+
:return: Returns the result object.
|
|
787
|
+
""" # noqa: E501
|
|
788
|
+
|
|
789
|
+
_param = self._get_invites_serialize(
|
|
790
|
+
group_id=group_id,
|
|
791
|
+
_request_auth=_request_auth,
|
|
792
|
+
_content_type=_content_type,
|
|
793
|
+
_headers=_headers,
|
|
794
|
+
_host_index=_host_index
|
|
795
|
+
)
|
|
796
|
+
|
|
797
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
798
|
+
'200': "List[AcrossServerRoutesV1GroupInviteSchemasGroupInvite]",
|
|
799
|
+
'404': None,
|
|
800
|
+
'422': "HTTPValidationError",
|
|
801
|
+
}
|
|
802
|
+
response_data = self.api_client.call_api(
|
|
803
|
+
*_param,
|
|
804
|
+
_request_timeout=_request_timeout
|
|
805
|
+
)
|
|
806
|
+
return response_data.response
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
def _get_invites_serialize(
|
|
810
|
+
self,
|
|
811
|
+
group_id,
|
|
812
|
+
_request_auth,
|
|
813
|
+
_content_type,
|
|
814
|
+
_headers,
|
|
815
|
+
_host_index,
|
|
816
|
+
) -> RequestSerialized:
|
|
817
|
+
|
|
818
|
+
_host = None
|
|
819
|
+
|
|
820
|
+
_collection_formats: Dict[str, str] = {
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
_path_params: Dict[str, str] = {}
|
|
824
|
+
_query_params: List[Tuple[str, str]] = []
|
|
825
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
826
|
+
_form_params: List[Tuple[str, str]] = []
|
|
827
|
+
_files: Dict[
|
|
828
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
829
|
+
] = {}
|
|
830
|
+
_body_params: Optional[bytes] = None
|
|
831
|
+
|
|
832
|
+
# process the path parameters
|
|
833
|
+
if group_id is not None:
|
|
834
|
+
_path_params['group_id'] = group_id
|
|
835
|
+
# process the query parameters
|
|
836
|
+
# process the header parameters
|
|
837
|
+
# process the form parameters
|
|
838
|
+
# process the body parameter
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
# set the HTTP header `Accept`
|
|
842
|
+
if 'Accept' not in _header_params:
|
|
843
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
844
|
+
[
|
|
845
|
+
'application/json'
|
|
846
|
+
]
|
|
847
|
+
)
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
# authentication setting
|
|
851
|
+
_auth_settings: List[str] = [
|
|
852
|
+
'Authorization'
|
|
853
|
+
]
|
|
854
|
+
|
|
855
|
+
return self.api_client.param_serialize(
|
|
856
|
+
method='GET',
|
|
857
|
+
resource_path='/group/{group_id}/invite',
|
|
858
|
+
path_params=_path_params,
|
|
859
|
+
query_params=_query_params,
|
|
860
|
+
header_params=_header_params,
|
|
861
|
+
body=_body_params,
|
|
862
|
+
post_params=_form_params,
|
|
863
|
+
files=_files,
|
|
864
|
+
auth_settings=_auth_settings,
|
|
865
|
+
collection_formats=_collection_formats,
|
|
866
|
+
_host=_host,
|
|
867
|
+
_request_auth=_request_auth
|
|
868
|
+
)
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
@validate_call
|
|
874
|
+
def send_invite(
|
|
875
|
+
self,
|
|
876
|
+
group_id: StrictStr,
|
|
877
|
+
group_invite_create: GroupInviteCreate,
|
|
878
|
+
_request_timeout: Union[
|
|
879
|
+
None,
|
|
880
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
881
|
+
Tuple[
|
|
882
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
883
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
884
|
+
]
|
|
885
|
+
] = None,
|
|
886
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
887
|
+
_content_type: Optional[StrictStr] = None,
|
|
888
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
889
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
890
|
+
) -> AcrossServerRoutesV1GroupInviteSchemasGroupInvite:
|
|
891
|
+
"""Create and send a group invite
|
|
892
|
+
|
|
893
|
+
Create and send a group invite to a user
|
|
894
|
+
|
|
895
|
+
:param group_id: (required)
|
|
896
|
+
:type group_id: str
|
|
897
|
+
:param group_invite_create: (required)
|
|
898
|
+
:type group_invite_create: GroupInviteCreate
|
|
899
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
900
|
+
number provided, it will be total request
|
|
901
|
+
timeout. It can also be a pair (tuple) of
|
|
902
|
+
(connection, read) timeouts.
|
|
903
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
904
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
905
|
+
request; this effectively ignores the
|
|
906
|
+
authentication in the spec for a single request.
|
|
907
|
+
:type _request_auth: dict, optional
|
|
908
|
+
:param _content_type: force content-type for the request.
|
|
909
|
+
:type _content_type: str, Optional
|
|
910
|
+
:param _headers: set to override the headers for a single
|
|
911
|
+
request; this effectively ignores the headers
|
|
912
|
+
in the spec for a single request.
|
|
913
|
+
:type _headers: dict, optional
|
|
914
|
+
:param _host_index: set to override the host_index for a single
|
|
915
|
+
request; this effectively ignores the host_index
|
|
916
|
+
in the spec for a single request.
|
|
917
|
+
:type _host_index: int, optional
|
|
918
|
+
:return: Returns the result object.
|
|
919
|
+
""" # noqa: E501
|
|
920
|
+
|
|
921
|
+
_param = self._send_invite_serialize(
|
|
922
|
+
group_id=group_id,
|
|
923
|
+
group_invite_create=group_invite_create,
|
|
924
|
+
_request_auth=_request_auth,
|
|
925
|
+
_content_type=_content_type,
|
|
926
|
+
_headers=_headers,
|
|
927
|
+
_host_index=_host_index
|
|
928
|
+
)
|
|
929
|
+
|
|
930
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
931
|
+
'201': "AcrossServerRoutesV1GroupInviteSchemasGroupInvite",
|
|
932
|
+
'404': None,
|
|
933
|
+
'422': "HTTPValidationError",
|
|
934
|
+
}
|
|
935
|
+
response_data = self.api_client.call_api(
|
|
936
|
+
*_param,
|
|
937
|
+
_request_timeout=_request_timeout
|
|
938
|
+
)
|
|
939
|
+
response_data.read()
|
|
940
|
+
return self.api_client.response_deserialize(
|
|
941
|
+
response_data=response_data,
|
|
942
|
+
response_types_map=_response_types_map,
|
|
943
|
+
).data
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
@validate_call
|
|
947
|
+
def send_invite_with_http_info(
|
|
948
|
+
self,
|
|
949
|
+
group_id: StrictStr,
|
|
950
|
+
group_invite_create: GroupInviteCreate,
|
|
951
|
+
_request_timeout: Union[
|
|
952
|
+
None,
|
|
953
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
954
|
+
Tuple[
|
|
955
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
956
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
957
|
+
]
|
|
958
|
+
] = None,
|
|
959
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
960
|
+
_content_type: Optional[StrictStr] = None,
|
|
961
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
962
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
963
|
+
) -> ApiResponse[AcrossServerRoutesV1GroupInviteSchemasGroupInvite]:
|
|
964
|
+
"""Create and send a group invite
|
|
965
|
+
|
|
966
|
+
Create and send a group invite to a user
|
|
967
|
+
|
|
968
|
+
:param group_id: (required)
|
|
969
|
+
:type group_id: str
|
|
970
|
+
:param group_invite_create: (required)
|
|
971
|
+
:type group_invite_create: GroupInviteCreate
|
|
972
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
973
|
+
number provided, it will be total request
|
|
974
|
+
timeout. It can also be a pair (tuple) of
|
|
975
|
+
(connection, read) timeouts.
|
|
976
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
977
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
978
|
+
request; this effectively ignores the
|
|
979
|
+
authentication in the spec for a single request.
|
|
980
|
+
:type _request_auth: dict, optional
|
|
981
|
+
:param _content_type: force content-type for the request.
|
|
982
|
+
:type _content_type: str, Optional
|
|
983
|
+
:param _headers: set to override the headers for a single
|
|
984
|
+
request; this effectively ignores the headers
|
|
985
|
+
in the spec for a single request.
|
|
986
|
+
:type _headers: dict, optional
|
|
987
|
+
:param _host_index: set to override the host_index for a single
|
|
988
|
+
request; this effectively ignores the host_index
|
|
989
|
+
in the spec for a single request.
|
|
990
|
+
:type _host_index: int, optional
|
|
991
|
+
:return: Returns the result object.
|
|
992
|
+
""" # noqa: E501
|
|
993
|
+
|
|
994
|
+
_param = self._send_invite_serialize(
|
|
995
|
+
group_id=group_id,
|
|
996
|
+
group_invite_create=group_invite_create,
|
|
997
|
+
_request_auth=_request_auth,
|
|
998
|
+
_content_type=_content_type,
|
|
999
|
+
_headers=_headers,
|
|
1000
|
+
_host_index=_host_index
|
|
1001
|
+
)
|
|
1002
|
+
|
|
1003
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1004
|
+
'201': "AcrossServerRoutesV1GroupInviteSchemasGroupInvite",
|
|
1005
|
+
'404': None,
|
|
1006
|
+
'422': "HTTPValidationError",
|
|
1007
|
+
}
|
|
1008
|
+
response_data = self.api_client.call_api(
|
|
1009
|
+
*_param,
|
|
1010
|
+
_request_timeout=_request_timeout
|
|
1011
|
+
)
|
|
1012
|
+
response_data.read()
|
|
1013
|
+
return self.api_client.response_deserialize(
|
|
1014
|
+
response_data=response_data,
|
|
1015
|
+
response_types_map=_response_types_map,
|
|
1016
|
+
)
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
@validate_call
|
|
1020
|
+
def send_invite_without_preload_content(
|
|
1021
|
+
self,
|
|
1022
|
+
group_id: StrictStr,
|
|
1023
|
+
group_invite_create: GroupInviteCreate,
|
|
1024
|
+
_request_timeout: Union[
|
|
1025
|
+
None,
|
|
1026
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1027
|
+
Tuple[
|
|
1028
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1029
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1030
|
+
]
|
|
1031
|
+
] = None,
|
|
1032
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1033
|
+
_content_type: Optional[StrictStr] = None,
|
|
1034
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1035
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1036
|
+
) -> RESTResponseType:
|
|
1037
|
+
"""Create and send a group invite
|
|
1038
|
+
|
|
1039
|
+
Create and send a group invite to a user
|
|
1040
|
+
|
|
1041
|
+
:param group_id: (required)
|
|
1042
|
+
:type group_id: str
|
|
1043
|
+
:param group_invite_create: (required)
|
|
1044
|
+
:type group_invite_create: GroupInviteCreate
|
|
1045
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1046
|
+
number provided, it will be total request
|
|
1047
|
+
timeout. It can also be a pair (tuple) of
|
|
1048
|
+
(connection, read) timeouts.
|
|
1049
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1050
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1051
|
+
request; this effectively ignores the
|
|
1052
|
+
authentication in the spec for a single request.
|
|
1053
|
+
:type _request_auth: dict, optional
|
|
1054
|
+
:param _content_type: force content-type for the request.
|
|
1055
|
+
:type _content_type: str, Optional
|
|
1056
|
+
:param _headers: set to override the headers for a single
|
|
1057
|
+
request; this effectively ignores the headers
|
|
1058
|
+
in the spec for a single request.
|
|
1059
|
+
:type _headers: dict, optional
|
|
1060
|
+
:param _host_index: set to override the host_index for a single
|
|
1061
|
+
request; this effectively ignores the host_index
|
|
1062
|
+
in the spec for a single request.
|
|
1063
|
+
:type _host_index: int, optional
|
|
1064
|
+
:return: Returns the result object.
|
|
1065
|
+
""" # noqa: E501
|
|
1066
|
+
|
|
1067
|
+
_param = self._send_invite_serialize(
|
|
1068
|
+
group_id=group_id,
|
|
1069
|
+
group_invite_create=group_invite_create,
|
|
1070
|
+
_request_auth=_request_auth,
|
|
1071
|
+
_content_type=_content_type,
|
|
1072
|
+
_headers=_headers,
|
|
1073
|
+
_host_index=_host_index
|
|
1074
|
+
)
|
|
1075
|
+
|
|
1076
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1077
|
+
'201': "AcrossServerRoutesV1GroupInviteSchemasGroupInvite",
|
|
1078
|
+
'404': None,
|
|
1079
|
+
'422': "HTTPValidationError",
|
|
1080
|
+
}
|
|
1081
|
+
response_data = self.api_client.call_api(
|
|
1082
|
+
*_param,
|
|
1083
|
+
_request_timeout=_request_timeout
|
|
1084
|
+
)
|
|
1085
|
+
return response_data.response
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
def _send_invite_serialize(
|
|
1089
|
+
self,
|
|
1090
|
+
group_id,
|
|
1091
|
+
group_invite_create,
|
|
1092
|
+
_request_auth,
|
|
1093
|
+
_content_type,
|
|
1094
|
+
_headers,
|
|
1095
|
+
_host_index,
|
|
1096
|
+
) -> RequestSerialized:
|
|
1097
|
+
|
|
1098
|
+
_host = None
|
|
1099
|
+
|
|
1100
|
+
_collection_formats: Dict[str, str] = {
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
_path_params: Dict[str, str] = {}
|
|
1104
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1105
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1106
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1107
|
+
_files: Dict[
|
|
1108
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1109
|
+
] = {}
|
|
1110
|
+
_body_params: Optional[bytes] = None
|
|
1111
|
+
|
|
1112
|
+
# process the path parameters
|
|
1113
|
+
if group_id is not None:
|
|
1114
|
+
_path_params['group_id'] = group_id
|
|
1115
|
+
# process the query parameters
|
|
1116
|
+
# process the header parameters
|
|
1117
|
+
# process the form parameters
|
|
1118
|
+
# process the body parameter
|
|
1119
|
+
if group_invite_create is not None:
|
|
1120
|
+
_body_params = group_invite_create
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
# set the HTTP header `Accept`
|
|
1124
|
+
if 'Accept' not in _header_params:
|
|
1125
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1126
|
+
[
|
|
1127
|
+
'application/json'
|
|
1128
|
+
]
|
|
1129
|
+
)
|
|
1130
|
+
|
|
1131
|
+
# set the HTTP header `Content-Type`
|
|
1132
|
+
if _content_type:
|
|
1133
|
+
_header_params['Content-Type'] = _content_type
|
|
1134
|
+
else:
|
|
1135
|
+
_default_content_type = (
|
|
1136
|
+
self.api_client.select_header_content_type(
|
|
1137
|
+
[
|
|
1138
|
+
'application/json'
|
|
1139
|
+
]
|
|
1140
|
+
)
|
|
1141
|
+
)
|
|
1142
|
+
if _default_content_type is not None:
|
|
1143
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1144
|
+
|
|
1145
|
+
# authentication setting
|
|
1146
|
+
_auth_settings: List[str] = [
|
|
1147
|
+
'Authorization'
|
|
1148
|
+
]
|
|
1149
|
+
|
|
1150
|
+
return self.api_client.param_serialize(
|
|
1151
|
+
method='POST',
|
|
1152
|
+
resource_path='/group/{group_id}/invite',
|
|
1153
|
+
path_params=_path_params,
|
|
1154
|
+
query_params=_query_params,
|
|
1155
|
+
header_params=_header_params,
|
|
1156
|
+
body=_body_params,
|
|
1157
|
+
post_params=_form_params,
|
|
1158
|
+
files=_files,
|
|
1159
|
+
auth_settings=_auth_settings,
|
|
1160
|
+
collection_formats=_collection_formats,
|
|
1161
|
+
_host=_host,
|
|
1162
|
+
_request_auth=_request_auth
|
|
1163
|
+
)
|
|
1164
|
+
|
|
1165
|
+
|