qi-compute-api-client 0.4.0__py3-none-any.whl → 0.17.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.
Potentially problematic release.
This version of qi-compute-api-client might be problematic. Click here for more details.
- compute_api_client/__init__.py +23 -20
- compute_api_client/api/__init__.py +5 -6
- compute_api_client/api/algorithms_api.py +1334 -554
- compute_api_client/api/backend_api.py +1501 -0
- compute_api_client/api/backend_types_api.py +684 -0
- compute_api_client/api/batch_jobs_api.py +1937 -0
- compute_api_client/api/commits_api.py +1069 -436
- compute_api_client/api/files_api.py +1076 -436
- compute_api_client/api/final_results_api.py +737 -339
- compute_api_client/api/jobs_api.py +1653 -0
- compute_api_client/api/languages_api.py +557 -218
- compute_api_client/api/members_api.py +1058 -436
- compute_api_client/api/metadata_api.py +737 -338
- compute_api_client/api/permissions_api.py +1056 -422
- compute_api_client/api/projects_api.py +1605 -677
- compute_api_client/api/reservations_api.py +1125 -428
- compute_api_client/api/results_api.py +739 -338
- compute_api_client/api/teams_api.py +568 -221
- compute_api_client/api/transactions_api.py +680 -219
- compute_api_client/api/users_api.py +1091 -436
- compute_api_client/api_client.py +347 -305
- compute_api_client/api_response.py +21 -0
- compute_api_client/configuration.py +55 -68
- compute_api_client/docs/Algorithm.md +20 -3
- compute_api_client/docs/AlgorithmIn.md +20 -3
- compute_api_client/docs/AlgorithmType.md +0 -1
- compute_api_client/docs/AlgorithmsApi.md +78 -77
- compute_api_client/docs/Backend.md +33 -0
- compute_api_client/docs/BackendApi.md +419 -0
- compute_api_client/docs/BackendPatch.md +29 -0
- compute_api_client/docs/{RunStatus.md → BackendStatus.md} +1 -2
- compute_api_client/docs/BackendType.md +36 -0
- compute_api_client/docs/{RuntimeTypesApi.md → BackendTypesApi.md} +58 -31
- compute_api_client/docs/BackendWithAuthentication.md +34 -0
- compute_api_client/docs/BatchJob.md +38 -0
- compute_api_client/docs/BatchJobIn.md +29 -0
- compute_api_client/docs/{RuntimeStatus.md → BatchJobStatus.md} +1 -2
- compute_api_client/docs/BatchJobsApi.md +524 -0
- compute_api_client/docs/Commit.md +18 -1
- compute_api_client/docs/CommitIn.md +17 -0
- compute_api_client/docs/CommitsApi.md +62 -71
- compute_api_client/docs/CompileStage.md +0 -1
- compute_api_client/docs/Domain.md +0 -1
- compute_api_client/docs/File.md +21 -4
- compute_api_client/docs/FileIn.md +21 -4
- compute_api_client/docs/FilesApi.md +65 -71
- compute_api_client/docs/FinalResult.md +20 -3
- compute_api_client/docs/FinalResultIn.md +19 -2
- compute_api_client/docs/FinalResultsApi.md +44 -71
- compute_api_client/docs/HTTPNotFoundError.md +17 -0
- compute_api_client/docs/HTTPValidationError.md +18 -1
- compute_api_client/docs/Job.md +36 -0
- compute_api_client/docs/JobIn.md +31 -0
- compute_api_client/docs/JobPatch.md +28 -0
- compute_api_client/docs/{BatchRunStatus.md → JobStatus.md} +1 -2
- compute_api_client/docs/{RunsApi.md → JobsApi.md} +137 -122
- compute_api_client/docs/Language.md +17 -0
- compute_api_client/docs/LanguagesApi.md +30 -12
- compute_api_client/docs/LocationInner.md +17 -0
- compute_api_client/docs/Member.md +19 -2
- compute_api_client/docs/MemberIn.md +19 -2
- compute_api_client/docs/MembersApi.md +59 -24
- compute_api_client/docs/Metadata.md +20 -3
- compute_api_client/docs/MetadataApi.md +49 -33
- compute_api_client/docs/MetadataIn.md +19 -2
- compute_api_client/docs/Permission.md +17 -0
- compute_api_client/docs/PermissionGroup.md +17 -0
- compute_api_client/docs/PermissionsApi.md +68 -28
- compute_api_client/docs/Project.md +20 -3
- compute_api_client/docs/ProjectIn.md +18 -1
- compute_api_client/docs/ProjectPatch.md +19 -2
- compute_api_client/docs/ProjectsApi.md +84 -36
- compute_api_client/docs/Reservation.md +21 -4
- compute_api_client/docs/ReservationIn.md +19 -2
- compute_api_client/docs/ReservationsApi.md +66 -24
- compute_api_client/docs/Result.md +23 -6
- compute_api_client/docs/ResultIn.md +19 -2
- compute_api_client/docs/ResultsApi.md +40 -74
- compute_api_client/docs/Role.md +0 -1
- compute_api_client/docs/ShareType.md +0 -1
- compute_api_client/docs/Team.md +18 -1
- compute_api_client/docs/TeamsApi.md +37 -14
- compute_api_client/docs/Transaction.md +21 -4
- compute_api_client/docs/TransactionsApi.md +50 -14
- compute_api_client/docs/User.md +21 -4
- compute_api_client/docs/UserIn.md +17 -0
- compute_api_client/docs/UsersApi.md +62 -24
- compute_api_client/docs/ValidationError.md +18 -1
- compute_api_client/exceptions.py +20 -17
- compute_api_client/models/__init__.py +17 -15
- compute_api_client/models/algorithm.py +79 -238
- compute_api_client/models/algorithm_in.py +77 -205
- compute_api_client/models/algorithm_type.py +22 -88
- compute_api_client/models/backend.py +100 -0
- compute_api_client/models/backend_patch.py +90 -0
- compute_api_client/models/backend_status.py +47 -0
- compute_api_client/models/backend_type.py +105 -0
- compute_api_client/models/backend_with_authentication.py +102 -0
- compute_api_client/models/batch_job.py +129 -0
- compute_api_client/models/batch_job_in.py +89 -0
- compute_api_client/models/batch_job_status.py +48 -0
- compute_api_client/models/commit.py +73 -231
- compute_api_client/models/commit_in.py +68 -170
- compute_api_client/models/compile_stage.py +24 -90
- compute_api_client/models/domain.py +23 -89
- compute_api_client/models/file.py +75 -289
- compute_api_client/models/file_in.py +73 -255
- compute_api_client/models/final_result.py +69 -199
- compute_api_client/models/final_result_in.py +64 -138
- compute_api_client/models/http_not_found_error.py +61 -106
- compute_api_client/models/http_validation_error.py +70 -106
- compute_api_client/models/job.py +120 -0
- compute_api_client/models/job_in.py +99 -0
- compute_api_client/models/job_patch.py +88 -0
- compute_api_client/models/job_status.py +48 -0
- compute_api_client/models/language.py +68 -173
- compute_api_client/models/location_inner.py +126 -85
- compute_api_client/models/member.py +71 -237
- compute_api_client/models/member_in.py +69 -204
- compute_api_client/models/metadata.py +69 -199
- compute_api_client/models/metadata_in.py +69 -138
- compute_api_client/models/permission.py +68 -173
- compute_api_client/models/permission_group.py +66 -143
- compute_api_client/models/project.py +75 -257
- compute_api_client/models/project_in.py +70 -196
- compute_api_client/models/project_patch.py +90 -193
- compute_api_client/models/reservation.py +80 -291
- compute_api_client/models/reservation_in.py +69 -201
- compute_api_client/models/result.py +102 -360
- compute_api_client/models/result_in.py +96 -293
- compute_api_client/models/role.py +22 -88
- compute_api_client/models/share_type.py +23 -89
- compute_api_client/models/team.py +70 -199
- compute_api_client/models/transaction.py +94 -300
- compute_api_client/models/user.py +76 -277
- compute_api_client/models/user_in.py +74 -244
- compute_api_client/models/validation_error.py +74 -161
- compute_api_client/rest.py +56 -115
- {qi_compute_api_client-0.4.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/METADATA +47 -40
- qi_compute_api_client-0.17.0.dist-info/RECORD +142 -0
- compute_api_client/api/batch_runs_api.py +0 -862
- compute_api_client/api/runs_api.py +0 -723
- compute_api_client/api/runtime_api.py +0 -449
- compute_api_client/api/runtime_types_api.py +0 -303
- compute_api_client/docs/BatchRun.md +0 -21
- compute_api_client/docs/BatchRunIn.md +0 -12
- compute_api_client/docs/BatchRunsApi.md +0 -600
- compute_api_client/docs/Run.md +0 -18
- compute_api_client/docs/RunIn.md +0 -13
- compute_api_client/docs/Runtime.md +0 -16
- compute_api_client/docs/RuntimeApi.md +0 -229
- compute_api_client/docs/RuntimeType.md +0 -19
- compute_api_client/docs/RuntimeWithAuthentication.md +0 -17
- compute_api_client/models/batch_run.py +0 -423
- compute_api_client/models/batch_run_in.py +0 -171
- compute_api_client/models/batch_run_status.py +0 -114
- compute_api_client/models/run.py +0 -345
- compute_api_client/models/run_in.py +0 -202
- compute_api_client/models/run_status.py +0 -114
- compute_api_client/models/runtime.py +0 -290
- compute_api_client/models/runtime_status.py +0 -113
- compute_api_client/models/runtime_type.py +0 -357
- compute_api_client/models/runtime_with_authentication.py +0 -320
- qi_compute_api_client-0.4.0.dist-info/RECORD +0 -137
- {qi_compute_api_client-0.4.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/LICENSE.md +0 -0
- {qi_compute_api_client-0.4.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/WHEEL +0 -0
|
@@ -1,584 +1,1206 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
Quantum Inspire 2
|
|
5
5
|
|
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
|
|
8
8
|
The version of the OpenAPI document: 0.1.0
|
|
9
|
-
Generated by
|
|
10
|
-
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import io
|
|
16
|
+
import warnings
|
|
17
|
+
|
|
18
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
19
|
+
from typing import Dict, List, Optional, Tuple, Union, Any
|
|
11
20
|
|
|
21
|
+
try:
|
|
22
|
+
from typing import Annotated
|
|
23
|
+
except ImportError:
|
|
24
|
+
from typing_extensions import Annotated
|
|
12
25
|
|
|
13
|
-
from
|
|
26
|
+
from pydantic import StrictBool, StrictInt
|
|
14
27
|
|
|
15
|
-
import
|
|
28
|
+
from typing import List, Optional
|
|
16
29
|
|
|
17
|
-
|
|
18
|
-
import
|
|
30
|
+
from compute_api_client.models.member import Member
|
|
31
|
+
from compute_api_client.models.member_in import MemberIn
|
|
32
|
+
from compute_api_client.models.role import Role
|
|
19
33
|
|
|
20
34
|
from compute_api_client.api_client import ApiClient
|
|
21
|
-
from compute_api_client.
|
|
22
|
-
|
|
23
|
-
ApiValueError
|
|
24
|
-
)
|
|
35
|
+
from compute_api_client.api_response import ApiResponse
|
|
36
|
+
from compute_api_client.rest import RESTResponseType
|
|
25
37
|
|
|
26
38
|
|
|
27
|
-
class MembersApi
|
|
39
|
+
class MembersApi:
|
|
28
40
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
29
41
|
Ref: https://openapi-generator.tech
|
|
30
42
|
|
|
31
43
|
Do not edit the class manually.
|
|
32
44
|
"""
|
|
33
45
|
|
|
34
|
-
def __init__(self, api_client=None):
|
|
46
|
+
def __init__(self, api_client=None) -> None:
|
|
35
47
|
if api_client is None:
|
|
36
|
-
api_client = ApiClient()
|
|
48
|
+
api_client = ApiClient.get_default()
|
|
37
49
|
self.api_client = api_client
|
|
38
50
|
|
|
39
|
-
def create_member_members_post(self, member_in, **kwargs): # noqa: E501
|
|
40
|
-
"""Create member # noqa: E501
|
|
41
51
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
52
|
+
@validate_call
|
|
53
|
+
async def create_member_members_post(
|
|
54
|
+
self,
|
|
55
|
+
member_in: MemberIn,
|
|
56
|
+
_request_timeout: Union[
|
|
57
|
+
None,
|
|
58
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
59
|
+
Tuple[
|
|
60
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
61
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
62
|
+
]
|
|
63
|
+
] = None,
|
|
64
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
65
|
+
_content_type: Optional[StrictStr] = None,
|
|
66
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
67
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
68
|
+
) -> Member:
|
|
69
|
+
"""Create member
|
|
70
|
+
|
|
71
|
+
Create new member.
|
|
72
|
+
|
|
73
|
+
:param member_in: (required)
|
|
74
|
+
:type member_in: MemberIn
|
|
75
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
76
|
+
number provided, it will be total request
|
|
77
|
+
timeout. It can also be a pair (tuple) of
|
|
78
|
+
(connection, read) timeouts.
|
|
79
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
80
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
81
|
+
request; this effectively ignores the
|
|
82
|
+
authentication in the spec for a single request.
|
|
83
|
+
:type _request_auth: dict, optional
|
|
84
|
+
:param _content_type: force content-type for the request.
|
|
85
|
+
:type _content_type: str, Optional
|
|
86
|
+
:param _headers: set to override the headers for a single
|
|
87
|
+
request; this effectively ignores the headers
|
|
88
|
+
in the spec for a single request.
|
|
89
|
+
:type _headers: dict, optional
|
|
90
|
+
:param _host_index: set to override the host_index for a single
|
|
91
|
+
request; this effectively ignores the host_index
|
|
92
|
+
in the spec for a single request.
|
|
93
|
+
:type _host_index: int, optional
|
|
94
|
+
:return: Returns the result object.
|
|
95
|
+
""" # noqa: E501
|
|
96
|
+
|
|
97
|
+
_param = self._create_member_members_post_serialize(
|
|
98
|
+
member_in=member_in,
|
|
99
|
+
_request_auth=_request_auth,
|
|
100
|
+
_content_type=_content_type,
|
|
101
|
+
_headers=_headers,
|
|
102
|
+
_host_index=_host_index
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
106
|
+
'201': "Member",
|
|
107
|
+
'422': "HTTPValidationError"
|
|
108
|
+
|
|
109
|
+
}
|
|
110
|
+
response_data = await self.api_client.call_api(
|
|
111
|
+
*_param,
|
|
112
|
+
_request_timeout=_request_timeout
|
|
113
|
+
)
|
|
114
|
+
await response_data.read()
|
|
115
|
+
return self.api_client.response_deserialize(
|
|
116
|
+
response_data=response_data,
|
|
117
|
+
response_types_map=_response_types_map,
|
|
118
|
+
).data
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
@validate_call
|
|
122
|
+
async def create_member_members_post_with_http_info(
|
|
123
|
+
self,
|
|
124
|
+
member_in: MemberIn,
|
|
125
|
+
_request_timeout: Union[
|
|
126
|
+
None,
|
|
127
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
128
|
+
Tuple[
|
|
129
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
130
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
131
|
+
]
|
|
132
|
+
] = None,
|
|
133
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
134
|
+
_content_type: Optional[StrictStr] = None,
|
|
135
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
136
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
137
|
+
) -> ApiResponse[Member]:
|
|
138
|
+
"""Create member
|
|
45
139
|
|
|
46
|
-
|
|
47
|
-
>>> result = thread.get()
|
|
140
|
+
Create new member.
|
|
48
141
|
|
|
49
142
|
:param member_in: (required)
|
|
50
143
|
:type member_in: MemberIn
|
|
51
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
52
|
-
:type async_req: bool, optional
|
|
53
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
54
|
-
be returned without reading/decoding response
|
|
55
|
-
data. Default is True.
|
|
56
|
-
:type _preload_content: bool, optional
|
|
57
144
|
:param _request_timeout: timeout setting for this request. If one
|
|
58
145
|
number provided, it will be total request
|
|
59
146
|
timeout. It can also be a pair (tuple) of
|
|
60
147
|
(connection, read) timeouts.
|
|
148
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
149
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
150
|
+
request; this effectively ignores the
|
|
151
|
+
authentication in the spec for a single request.
|
|
152
|
+
:type _request_auth: dict, optional
|
|
153
|
+
:param _content_type: force content-type for the request.
|
|
154
|
+
:type _content_type: str, Optional
|
|
155
|
+
:param _headers: set to override the headers for a single
|
|
156
|
+
request; this effectively ignores the headers
|
|
157
|
+
in the spec for a single request.
|
|
158
|
+
:type _headers: dict, optional
|
|
159
|
+
:param _host_index: set to override the host_index for a single
|
|
160
|
+
request; this effectively ignores the host_index
|
|
161
|
+
in the spec for a single request.
|
|
162
|
+
:type _host_index: int, optional
|
|
61
163
|
:return: Returns the result object.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
164
|
+
""" # noqa: E501
|
|
165
|
+
|
|
166
|
+
_param = self._create_member_members_post_serialize(
|
|
167
|
+
member_in=member_in,
|
|
168
|
+
_request_auth=_request_auth,
|
|
169
|
+
_content_type=_content_type,
|
|
170
|
+
_headers=_headers,
|
|
171
|
+
_host_index=_host_index
|
|
172
|
+
)
|
|
68
173
|
|
|
69
|
-
|
|
70
|
-
|
|
174
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
175
|
+
'201': "Member",
|
|
176
|
+
'422': "HTTPValidationError"
|
|
177
|
+
|
|
178
|
+
}
|
|
179
|
+
response_data = await self.api_client.call_api(
|
|
180
|
+
*_param,
|
|
181
|
+
_request_timeout=_request_timeout
|
|
182
|
+
)
|
|
183
|
+
await response_data.read()
|
|
184
|
+
return self.api_client.response_deserialize(
|
|
185
|
+
response_data=response_data,
|
|
186
|
+
response_types_map=_response_types_map,
|
|
187
|
+
)
|
|
71
188
|
|
|
72
|
-
Create new member. # noqa: E501
|
|
73
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
74
|
-
asynchronous HTTP request, please pass async_req=True
|
|
75
189
|
|
|
76
|
-
|
|
77
|
-
|
|
190
|
+
@validate_call
|
|
191
|
+
async def create_member_members_post_without_preload_content(
|
|
192
|
+
self,
|
|
193
|
+
member_in: MemberIn,
|
|
194
|
+
_request_timeout: Union[
|
|
195
|
+
None,
|
|
196
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
197
|
+
Tuple[
|
|
198
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
199
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
200
|
+
]
|
|
201
|
+
] = None,
|
|
202
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
203
|
+
_content_type: Optional[StrictStr] = None,
|
|
204
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
205
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
206
|
+
) -> RESTResponseType:
|
|
207
|
+
"""Create member
|
|
208
|
+
|
|
209
|
+
Create new member.
|
|
78
210
|
|
|
79
211
|
:param member_in: (required)
|
|
80
212
|
:type member_in: MemberIn
|
|
81
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
82
|
-
:type async_req: bool, optional
|
|
83
|
-
:param _return_http_data_only: response data without head status code
|
|
84
|
-
and headers
|
|
85
|
-
:type _return_http_data_only: bool, optional
|
|
86
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
87
|
-
be returned without reading/decoding response
|
|
88
|
-
data. Default is True.
|
|
89
|
-
:type _preload_content: bool, optional
|
|
90
213
|
:param _request_timeout: timeout setting for this request. If one
|
|
91
214
|
number provided, it will be total request
|
|
92
215
|
timeout. It can also be a pair (tuple) of
|
|
93
216
|
(connection, read) timeouts.
|
|
217
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
94
218
|
:param _request_auth: set to override the auth_settings for an a single
|
|
95
|
-
request; this effectively ignores the
|
|
96
|
-
in the spec for a single request.
|
|
219
|
+
request; this effectively ignores the
|
|
220
|
+
authentication in the spec for a single request.
|
|
97
221
|
:type _request_auth: dict, optional
|
|
98
|
-
:
|
|
222
|
+
:param _content_type: force content-type for the request.
|
|
223
|
+
:type _content_type: str, Optional
|
|
224
|
+
:param _headers: set to override the headers for a single
|
|
225
|
+
request; this effectively ignores the headers
|
|
226
|
+
in the spec for a single request.
|
|
227
|
+
:type _headers: dict, optional
|
|
228
|
+
:param _host_index: set to override the host_index for a single
|
|
229
|
+
request; this effectively ignores the host_index
|
|
230
|
+
in the spec for a single request.
|
|
231
|
+
:type _host_index: int, optional
|
|
99
232
|
:return: Returns the result object.
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
233
|
+
""" # noqa: E501
|
|
234
|
+
|
|
235
|
+
_param = self._create_member_members_post_serialize(
|
|
236
|
+
member_in=member_in,
|
|
237
|
+
_request_auth=_request_auth,
|
|
238
|
+
_content_type=_content_type,
|
|
239
|
+
_headers=_headers,
|
|
240
|
+
_host_index=_host_index
|
|
241
|
+
)
|
|
104
242
|
|
|
105
|
-
|
|
243
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
244
|
+
'201': "Member",
|
|
245
|
+
'422': "HTTPValidationError"
|
|
246
|
+
|
|
247
|
+
}
|
|
248
|
+
response_data = await self.api_client.call_api(
|
|
249
|
+
*_param,
|
|
250
|
+
_request_timeout=_request_timeout
|
|
251
|
+
)
|
|
252
|
+
return response_data.response
|
|
106
253
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
254
|
+
|
|
255
|
+
def _create_member_members_post_serialize(
|
|
256
|
+
self,
|
|
257
|
+
member_in,
|
|
258
|
+
_request_auth,
|
|
259
|
+
_content_type,
|
|
260
|
+
_headers,
|
|
261
|
+
_host_index,
|
|
262
|
+
) -> Tuple:
|
|
263
|
+
|
|
264
|
+
_host = None
|
|
265
|
+
|
|
266
|
+
_collection_formats: Dict[str, str] = {
|
|
267
|
+
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
_path_params: Dict[str, str] = {}
|
|
271
|
+
_query_params: List[Tuple[str, str]] = []
|
|
272
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
273
|
+
_form_params: List[Tuple[str, str]] = []
|
|
274
|
+
_files: Dict[str, str] = {}
|
|
275
|
+
_body_params: Optional[bytes] = None
|
|
276
|
+
|
|
277
|
+
# process the path parameters
|
|
278
|
+
# process the query parameters
|
|
279
|
+
# process the header parameters
|
|
280
|
+
# process the form parameters
|
|
281
|
+
# process the body parameter
|
|
282
|
+
if member_in is not None:
|
|
283
|
+
_body_params = member_in
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
# set the HTTP header `Accept`
|
|
287
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
111
288
|
[
|
|
112
|
-
'
|
|
113
|
-
'_return_http_data_only',
|
|
114
|
-
'_preload_content',
|
|
115
|
-
'_request_timeout',
|
|
116
|
-
'_request_auth',
|
|
117
|
-
'_content_type',
|
|
118
|
-
'_headers'
|
|
289
|
+
'application/json'
|
|
119
290
|
]
|
|
120
291
|
)
|
|
121
292
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
293
|
+
# set the HTTP header `Content-Type`
|
|
294
|
+
if _content_type:
|
|
295
|
+
_header_params['Content-Type'] = _content_type
|
|
296
|
+
else:
|
|
297
|
+
_default_content_type = (
|
|
298
|
+
self.api_client.select_header_content_type(
|
|
299
|
+
[
|
|
300
|
+
'application/json'
|
|
301
|
+
]
|
|
127
302
|
)
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
if self.api_client.client_side_validation and local_var_params.get('member_in') is None: # noqa: E501
|
|
132
|
-
raise ApiValueError("Missing the required parameter `member_in` when calling `create_member_members_post`") # noqa: E501
|
|
303
|
+
)
|
|
304
|
+
if _default_content_type is not None:
|
|
305
|
+
_header_params['Content-Type'] = _default_content_type
|
|
133
306
|
|
|
134
|
-
|
|
307
|
+
# authentication setting
|
|
308
|
+
_auth_settings: List[str] = [
|
|
309
|
+
'user'
|
|
310
|
+
]
|
|
135
311
|
|
|
136
|
-
|
|
312
|
+
return self.api_client.param_serialize(
|
|
313
|
+
method='POST',
|
|
314
|
+
resource_path='/members',
|
|
315
|
+
path_params=_path_params,
|
|
316
|
+
query_params=_query_params,
|
|
317
|
+
header_params=_header_params,
|
|
318
|
+
body=_body_params,
|
|
319
|
+
post_params=_form_params,
|
|
320
|
+
files=_files,
|
|
321
|
+
auth_settings=_auth_settings,
|
|
322
|
+
collection_formats=_collection_formats,
|
|
323
|
+
_host=_host,
|
|
324
|
+
_request_auth=_request_auth
|
|
325
|
+
)
|
|
137
326
|
|
|
138
|
-
query_params = []
|
|
139
327
|
|
|
140
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
141
328
|
|
|
142
|
-
form_params = []
|
|
143
|
-
local_var_files = {}
|
|
144
329
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
330
|
+
@validate_call
|
|
331
|
+
async def delete_member_members_id_delete(
|
|
332
|
+
self,
|
|
333
|
+
id: StrictInt,
|
|
334
|
+
_request_timeout: Union[
|
|
335
|
+
None,
|
|
336
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
337
|
+
Tuple[
|
|
338
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
339
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
340
|
+
]
|
|
341
|
+
] = None,
|
|
342
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
343
|
+
_content_type: Optional[StrictStr] = None,
|
|
344
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
345
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
346
|
+
) -> None:
|
|
347
|
+
"""Destroy member
|
|
151
348
|
|
|
152
|
-
|
|
153
|
-
content_types_list = local_var_params.get('_content_type',
|
|
154
|
-
self.api_client.select_header_content_type(
|
|
155
|
-
['application/json'],
|
|
156
|
-
'POST', body_params)) # noqa: E501
|
|
157
|
-
if content_types_list:
|
|
158
|
-
header_params['Content-Type'] = content_types_list
|
|
349
|
+
Delete a member.
|
|
159
350
|
|
|
160
|
-
|
|
161
|
-
|
|
351
|
+
:param id: (required)
|
|
352
|
+
:type id: int
|
|
353
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
354
|
+
number provided, it will be total request
|
|
355
|
+
timeout. It can also be a pair (tuple) of
|
|
356
|
+
(connection, read) timeouts.
|
|
357
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
358
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
359
|
+
request; this effectively ignores the
|
|
360
|
+
authentication in the spec for a single request.
|
|
361
|
+
:type _request_auth: dict, optional
|
|
362
|
+
:param _content_type: force content-type for the request.
|
|
363
|
+
:type _content_type: str, Optional
|
|
364
|
+
:param _headers: set to override the headers for a single
|
|
365
|
+
request; this effectively ignores the headers
|
|
366
|
+
in the spec for a single request.
|
|
367
|
+
:type _headers: dict, optional
|
|
368
|
+
:param _host_index: set to override the host_index for a single
|
|
369
|
+
request; this effectively ignores the host_index
|
|
370
|
+
in the spec for a single request.
|
|
371
|
+
:type _host_index: int, optional
|
|
372
|
+
:return: Returns the result object.
|
|
373
|
+
""" # noqa: E501
|
|
374
|
+
|
|
375
|
+
_param = self._delete_member_members_id_delete_serialize(
|
|
376
|
+
id=id,
|
|
377
|
+
_request_auth=_request_auth,
|
|
378
|
+
_content_type=_content_type,
|
|
379
|
+
_headers=_headers,
|
|
380
|
+
_host_index=_host_index
|
|
381
|
+
)
|
|
162
382
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
422: "HTTPValidationError",
|
|
383
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
384
|
+
|
|
166
385
|
}
|
|
386
|
+
response_data = await self.api_client.call_api(
|
|
387
|
+
*_param,
|
|
388
|
+
_request_timeout=_request_timeout
|
|
389
|
+
)
|
|
390
|
+
await 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
|
+
async def delete_member_members_id_delete_with_http_info(
|
|
399
|
+
self,
|
|
400
|
+
id: StrictInt,
|
|
401
|
+
_request_timeout: Union[
|
|
402
|
+
None,
|
|
403
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
404
|
+
Tuple[
|
|
405
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
406
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
407
|
+
]
|
|
408
|
+
] = None,
|
|
409
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
410
|
+
_content_type: Optional[StrictStr] = None,
|
|
411
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
412
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
413
|
+
) -> ApiResponse[None]:
|
|
414
|
+
"""Destroy member
|
|
167
415
|
|
|
168
|
-
|
|
169
|
-
'/members', 'POST',
|
|
170
|
-
path_params,
|
|
171
|
-
query_params,
|
|
172
|
-
header_params,
|
|
173
|
-
body=body_params,
|
|
174
|
-
post_params=form_params,
|
|
175
|
-
files=local_var_files,
|
|
176
|
-
response_types_map=response_types_map,
|
|
177
|
-
auth_settings=auth_settings,
|
|
178
|
-
async_req=local_var_params.get('async_req'),
|
|
179
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
180
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
181
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
182
|
-
collection_formats=collection_formats,
|
|
183
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
184
|
-
|
|
185
|
-
def delete_member_members_id_delete(self, id, **kwargs): # noqa: E501
|
|
186
|
-
"""Destroy member # noqa: E501
|
|
187
|
-
|
|
188
|
-
Delete a member. # noqa: E501
|
|
189
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
190
|
-
asynchronous HTTP request, please pass async_req=True
|
|
191
|
-
|
|
192
|
-
>>> thread = api.delete_member_members_id_delete(id, async_req=True)
|
|
193
|
-
>>> result = thread.get()
|
|
416
|
+
Delete a member.
|
|
194
417
|
|
|
195
418
|
:param id: (required)
|
|
196
419
|
:type id: int
|
|
197
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
198
|
-
:type async_req: bool, optional
|
|
199
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
200
|
-
be returned without reading/decoding response
|
|
201
|
-
data. Default is True.
|
|
202
|
-
:type _preload_content: bool, optional
|
|
203
420
|
:param _request_timeout: timeout setting for this request. If one
|
|
204
421
|
number provided, it will be total request
|
|
205
422
|
timeout. It can also be a pair (tuple) of
|
|
206
423
|
(connection, read) timeouts.
|
|
424
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
425
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
426
|
+
request; this effectively ignores the
|
|
427
|
+
authentication in the spec for a single request.
|
|
428
|
+
:type _request_auth: dict, optional
|
|
429
|
+
:param _content_type: force content-type for the request.
|
|
430
|
+
:type _content_type: str, Optional
|
|
431
|
+
:param _headers: set to override the headers for a single
|
|
432
|
+
request; this effectively ignores the headers
|
|
433
|
+
in the spec for a single request.
|
|
434
|
+
:type _headers: dict, optional
|
|
435
|
+
:param _host_index: set to override the host_index for a single
|
|
436
|
+
request; this effectively ignores the host_index
|
|
437
|
+
in the spec for a single request.
|
|
438
|
+
:type _host_index: int, optional
|
|
207
439
|
:return: Returns the result object.
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
440
|
+
""" # noqa: E501
|
|
441
|
+
|
|
442
|
+
_param = self._delete_member_members_id_delete_serialize(
|
|
443
|
+
id=id,
|
|
444
|
+
_request_auth=_request_auth,
|
|
445
|
+
_content_type=_content_type,
|
|
446
|
+
_headers=_headers,
|
|
447
|
+
_host_index=_host_index
|
|
448
|
+
)
|
|
449
|
+
|
|
450
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
451
|
+
|
|
452
|
+
}
|
|
453
|
+
response_data = await self.api_client.call_api(
|
|
454
|
+
*_param,
|
|
455
|
+
_request_timeout=_request_timeout
|
|
456
|
+
)
|
|
457
|
+
await response_data.read()
|
|
458
|
+
return self.api_client.response_deserialize(
|
|
459
|
+
response_data=response_data,
|
|
460
|
+
response_types_map=_response_types_map,
|
|
461
|
+
)
|
|
214
462
|
|
|
215
|
-
def delete_member_members_id_delete_with_http_info(self, id, **kwargs): # noqa: E501
|
|
216
|
-
"""Destroy member # noqa: E501
|
|
217
463
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
464
|
+
@validate_call
|
|
465
|
+
async def delete_member_members_id_delete_without_preload_content(
|
|
466
|
+
self,
|
|
467
|
+
id: StrictInt,
|
|
468
|
+
_request_timeout: Union[
|
|
469
|
+
None,
|
|
470
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
471
|
+
Tuple[
|
|
472
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
473
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
474
|
+
]
|
|
475
|
+
] = None,
|
|
476
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
477
|
+
_content_type: Optional[StrictStr] = None,
|
|
478
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
479
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
480
|
+
) -> RESTResponseType:
|
|
481
|
+
"""Destroy member
|
|
221
482
|
|
|
222
|
-
|
|
223
|
-
>>> result = thread.get()
|
|
483
|
+
Delete a member.
|
|
224
484
|
|
|
225
485
|
:param id: (required)
|
|
226
486
|
:type id: int
|
|
227
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
228
|
-
:type async_req: bool, optional
|
|
229
|
-
:param _return_http_data_only: response data without head status code
|
|
230
|
-
and headers
|
|
231
|
-
:type _return_http_data_only: bool, optional
|
|
232
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
233
|
-
be returned without reading/decoding response
|
|
234
|
-
data. Default is True.
|
|
235
|
-
:type _preload_content: bool, optional
|
|
236
487
|
:param _request_timeout: timeout setting for this request. If one
|
|
237
488
|
number provided, it will be total request
|
|
238
489
|
timeout. It can also be a pair (tuple) of
|
|
239
490
|
(connection, read) timeouts.
|
|
491
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
240
492
|
:param _request_auth: set to override the auth_settings for an a single
|
|
241
|
-
request; this effectively ignores the
|
|
242
|
-
in the spec for a single request.
|
|
493
|
+
request; this effectively ignores the
|
|
494
|
+
authentication in the spec for a single request.
|
|
243
495
|
:type _request_auth: dict, optional
|
|
244
|
-
:
|
|
496
|
+
:param _content_type: force content-type for the request.
|
|
497
|
+
:type _content_type: str, Optional
|
|
498
|
+
:param _headers: set to override the headers for a single
|
|
499
|
+
request; this effectively ignores the headers
|
|
500
|
+
in the spec for a single request.
|
|
501
|
+
:type _headers: dict, optional
|
|
502
|
+
:param _host_index: set to override the host_index for a single
|
|
503
|
+
request; this effectively ignores the host_index
|
|
504
|
+
in the spec for a single request.
|
|
505
|
+
:type _host_index: int, optional
|
|
245
506
|
:return: Returns the result object.
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
507
|
+
""" # noqa: E501
|
|
508
|
+
|
|
509
|
+
_param = self._delete_member_members_id_delete_serialize(
|
|
510
|
+
id=id,
|
|
511
|
+
_request_auth=_request_auth,
|
|
512
|
+
_content_type=_content_type,
|
|
513
|
+
_headers=_headers,
|
|
514
|
+
_host_index=_host_index
|
|
515
|
+
)
|
|
250
516
|
|
|
251
|
-
|
|
517
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
518
|
+
|
|
519
|
+
}
|
|
520
|
+
response_data = await self.api_client.call_api(
|
|
521
|
+
*_param,
|
|
522
|
+
_request_timeout=_request_timeout
|
|
523
|
+
)
|
|
524
|
+
return response_data.response
|
|
252
525
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
526
|
+
|
|
527
|
+
def _delete_member_members_id_delete_serialize(
|
|
528
|
+
self,
|
|
529
|
+
id,
|
|
530
|
+
_request_auth,
|
|
531
|
+
_content_type,
|
|
532
|
+
_headers,
|
|
533
|
+
_host_index,
|
|
534
|
+
) -> Tuple:
|
|
535
|
+
|
|
536
|
+
_host = None
|
|
537
|
+
|
|
538
|
+
_collection_formats: Dict[str, str] = {
|
|
539
|
+
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
_path_params: Dict[str, str] = {}
|
|
543
|
+
_query_params: List[Tuple[str, str]] = []
|
|
544
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
545
|
+
_form_params: List[Tuple[str, str]] = []
|
|
546
|
+
_files: Dict[str, str] = {}
|
|
547
|
+
_body_params: Optional[bytes] = None
|
|
548
|
+
|
|
549
|
+
# process the path parameters
|
|
550
|
+
if id is not None:
|
|
551
|
+
_path_params['id'] = id
|
|
552
|
+
# process the query parameters
|
|
553
|
+
# process the header parameters
|
|
554
|
+
# process the form parameters
|
|
555
|
+
# process the body parameter
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
# set the HTTP header `Accept`
|
|
559
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
257
560
|
[
|
|
258
|
-
'
|
|
259
|
-
'_return_http_data_only',
|
|
260
|
-
'_preload_content',
|
|
261
|
-
'_request_timeout',
|
|
262
|
-
'_request_auth',
|
|
263
|
-
'_content_type',
|
|
264
|
-
'_headers'
|
|
561
|
+
'application/json'
|
|
265
562
|
]
|
|
266
563
|
)
|
|
267
564
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
auth_settings=auth_settings,
|
|
313
|
-
async_req=local_var_params.get('async_req'),
|
|
314
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
315
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
316
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
317
|
-
collection_formats=collection_formats,
|
|
318
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
319
|
-
|
|
320
|
-
def read_member_members_id_get(self, id, **kwargs): # noqa: E501
|
|
321
|
-
"""Retrieve member # noqa: E501
|
|
322
|
-
|
|
323
|
-
Get member by ID. # noqa: E501
|
|
324
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
325
|
-
asynchronous HTTP request, please pass async_req=True
|
|
326
|
-
|
|
327
|
-
>>> thread = api.read_member_members_id_get(id, async_req=True)
|
|
328
|
-
>>> result = thread.get()
|
|
565
|
+
|
|
566
|
+
# authentication setting
|
|
567
|
+
_auth_settings: List[str] = [
|
|
568
|
+
'user'
|
|
569
|
+
]
|
|
570
|
+
|
|
571
|
+
return self.api_client.param_serialize(
|
|
572
|
+
method='DELETE',
|
|
573
|
+
resource_path='/members/{id}',
|
|
574
|
+
path_params=_path_params,
|
|
575
|
+
query_params=_query_params,
|
|
576
|
+
header_params=_header_params,
|
|
577
|
+
body=_body_params,
|
|
578
|
+
post_params=_form_params,
|
|
579
|
+
files=_files,
|
|
580
|
+
auth_settings=_auth_settings,
|
|
581
|
+
collection_formats=_collection_formats,
|
|
582
|
+
_host=_host,
|
|
583
|
+
_request_auth=_request_auth
|
|
584
|
+
)
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
@validate_call
|
|
590
|
+
async def read_member_members_id_get(
|
|
591
|
+
self,
|
|
592
|
+
id: StrictInt,
|
|
593
|
+
_request_timeout: Union[
|
|
594
|
+
None,
|
|
595
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
596
|
+
Tuple[
|
|
597
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
598
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
599
|
+
]
|
|
600
|
+
] = None,
|
|
601
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
602
|
+
_content_type: Optional[StrictStr] = None,
|
|
603
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
604
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
605
|
+
) -> Member:
|
|
606
|
+
"""Retrieve member
|
|
607
|
+
|
|
608
|
+
Get member by ID.
|
|
329
609
|
|
|
330
610
|
:param id: (required)
|
|
331
611
|
:type id: int
|
|
332
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
333
|
-
:type async_req: bool, optional
|
|
334
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
335
|
-
be returned without reading/decoding response
|
|
336
|
-
data. Default is True.
|
|
337
|
-
:type _preload_content: bool, optional
|
|
338
612
|
:param _request_timeout: timeout setting for this request. If one
|
|
339
613
|
number provided, it will be total request
|
|
340
614
|
timeout. It can also be a pair (tuple) of
|
|
341
615
|
(connection, read) timeouts.
|
|
616
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
617
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
618
|
+
request; this effectively ignores the
|
|
619
|
+
authentication in the spec for a single request.
|
|
620
|
+
:type _request_auth: dict, optional
|
|
621
|
+
:param _content_type: force content-type for the request.
|
|
622
|
+
:type _content_type: str, Optional
|
|
623
|
+
:param _headers: set to override the headers for a single
|
|
624
|
+
request; this effectively ignores the headers
|
|
625
|
+
in the spec for a single request.
|
|
626
|
+
:type _headers: dict, optional
|
|
627
|
+
:param _host_index: set to override the host_index for a single
|
|
628
|
+
request; this effectively ignores the host_index
|
|
629
|
+
in the spec for a single request.
|
|
630
|
+
:type _host_index: int, optional
|
|
342
631
|
:return: Returns the result object.
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
632
|
+
""" # noqa: E501
|
|
633
|
+
|
|
634
|
+
_param = self._read_member_members_id_get_serialize(
|
|
635
|
+
id=id,
|
|
636
|
+
_request_auth=_request_auth,
|
|
637
|
+
_content_type=_content_type,
|
|
638
|
+
_headers=_headers,
|
|
639
|
+
_host_index=_host_index
|
|
640
|
+
)
|
|
352
641
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
642
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
643
|
+
'200': "Member",
|
|
644
|
+
'404': "HTTPNotFoundError",
|
|
645
|
+
'422': "HTTPValidationError"
|
|
646
|
+
|
|
647
|
+
}
|
|
648
|
+
response_data = await self.api_client.call_api(
|
|
649
|
+
*_param,
|
|
650
|
+
_request_timeout=_request_timeout
|
|
651
|
+
)
|
|
652
|
+
await response_data.read()
|
|
653
|
+
return self.api_client.response_deserialize(
|
|
654
|
+
response_data=response_data,
|
|
655
|
+
response_types_map=_response_types_map,
|
|
656
|
+
).data
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
@validate_call
|
|
660
|
+
async def read_member_members_id_get_with_http_info(
|
|
661
|
+
self,
|
|
662
|
+
id: StrictInt,
|
|
663
|
+
_request_timeout: Union[
|
|
664
|
+
None,
|
|
665
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
666
|
+
Tuple[
|
|
667
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
668
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
669
|
+
]
|
|
670
|
+
] = None,
|
|
671
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
672
|
+
_content_type: Optional[StrictStr] = None,
|
|
673
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
674
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
675
|
+
) -> ApiResponse[Member]:
|
|
676
|
+
"""Retrieve member
|
|
356
677
|
|
|
357
|
-
|
|
358
|
-
>>> result = thread.get()
|
|
678
|
+
Get member by ID.
|
|
359
679
|
|
|
360
680
|
:param id: (required)
|
|
361
681
|
:type id: int
|
|
362
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
363
|
-
:type async_req: bool, optional
|
|
364
|
-
:param _return_http_data_only: response data without head status code
|
|
365
|
-
and headers
|
|
366
|
-
:type _return_http_data_only: bool, optional
|
|
367
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
368
|
-
be returned without reading/decoding response
|
|
369
|
-
data. Default is True.
|
|
370
|
-
:type _preload_content: bool, optional
|
|
371
682
|
:param _request_timeout: timeout setting for this request. If one
|
|
372
683
|
number provided, it will be total request
|
|
373
684
|
timeout. It can also be a pair (tuple) of
|
|
374
685
|
(connection, read) timeouts.
|
|
686
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
375
687
|
:param _request_auth: set to override the auth_settings for an a single
|
|
376
|
-
request; this effectively ignores the
|
|
377
|
-
in the spec for a single request.
|
|
688
|
+
request; this effectively ignores the
|
|
689
|
+
authentication in the spec for a single request.
|
|
378
690
|
:type _request_auth: dict, optional
|
|
379
|
-
:
|
|
691
|
+
:param _content_type: force content-type for the request.
|
|
692
|
+
:type _content_type: str, Optional
|
|
693
|
+
:param _headers: set to override the headers for a single
|
|
694
|
+
request; this effectively ignores the headers
|
|
695
|
+
in the spec for a single request.
|
|
696
|
+
:type _headers: dict, optional
|
|
697
|
+
:param _host_index: set to override the host_index for a single
|
|
698
|
+
request; this effectively ignores the host_index
|
|
699
|
+
in the spec for a single request.
|
|
700
|
+
:type _host_index: int, optional
|
|
380
701
|
:return: Returns the result object.
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
702
|
+
""" # noqa: E501
|
|
703
|
+
|
|
704
|
+
_param = self._read_member_members_id_get_serialize(
|
|
705
|
+
id=id,
|
|
706
|
+
_request_auth=_request_auth,
|
|
707
|
+
_content_type=_content_type,
|
|
708
|
+
_headers=_headers,
|
|
709
|
+
_host_index=_host_index
|
|
710
|
+
)
|
|
711
|
+
|
|
712
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
713
|
+
'200': "Member",
|
|
714
|
+
'404': "HTTPNotFoundError",
|
|
715
|
+
'422': "HTTPValidationError"
|
|
716
|
+
|
|
717
|
+
}
|
|
718
|
+
response_data = await self.api_client.call_api(
|
|
719
|
+
*_param,
|
|
720
|
+
_request_timeout=_request_timeout
|
|
721
|
+
)
|
|
722
|
+
await response_data.read()
|
|
723
|
+
return self.api_client.response_deserialize(
|
|
724
|
+
response_data=response_data,
|
|
725
|
+
response_types_map=_response_types_map,
|
|
726
|
+
)
|
|
385
727
|
|
|
386
|
-
local_var_params = locals()
|
|
387
728
|
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
'_content_type',
|
|
399
|
-
'_headers'
|
|
729
|
+
@validate_call
|
|
730
|
+
async def read_member_members_id_get_without_preload_content(
|
|
731
|
+
self,
|
|
732
|
+
id: StrictInt,
|
|
733
|
+
_request_timeout: Union[
|
|
734
|
+
None,
|
|
735
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
736
|
+
Tuple[
|
|
737
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
738
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
400
739
|
]
|
|
740
|
+
] = None,
|
|
741
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
742
|
+
_content_type: Optional[StrictStr] = None,
|
|
743
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
744
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
745
|
+
) -> RESTResponseType:
|
|
746
|
+
"""Retrieve member
|
|
747
|
+
|
|
748
|
+
Get member by ID.
|
|
749
|
+
|
|
750
|
+
:param id: (required)
|
|
751
|
+
:type id: int
|
|
752
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
753
|
+
number provided, it will be total request
|
|
754
|
+
timeout. It can also be a pair (tuple) of
|
|
755
|
+
(connection, read) timeouts.
|
|
756
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
757
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
758
|
+
request; this effectively ignores the
|
|
759
|
+
authentication in the spec for a single request.
|
|
760
|
+
:type _request_auth: dict, optional
|
|
761
|
+
:param _content_type: force content-type for the request.
|
|
762
|
+
:type _content_type: str, Optional
|
|
763
|
+
:param _headers: set to override the headers for a single
|
|
764
|
+
request; this effectively ignores the headers
|
|
765
|
+
in the spec for a single request.
|
|
766
|
+
:type _headers: dict, optional
|
|
767
|
+
:param _host_index: set to override the host_index for a single
|
|
768
|
+
request; this effectively ignores the host_index
|
|
769
|
+
in the spec for a single request.
|
|
770
|
+
:type _host_index: int, optional
|
|
771
|
+
:return: Returns the result object.
|
|
772
|
+
""" # noqa: E501
|
|
773
|
+
|
|
774
|
+
_param = self._read_member_members_id_get_serialize(
|
|
775
|
+
id=id,
|
|
776
|
+
_request_auth=_request_auth,
|
|
777
|
+
_content_type=_content_type,
|
|
778
|
+
_headers=_headers,
|
|
779
|
+
_host_index=_host_index
|
|
401
780
|
)
|
|
402
781
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
782
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
783
|
+
'200': "Member",
|
|
784
|
+
'404': "HTTPNotFoundError",
|
|
785
|
+
'422': "HTTPValidationError"
|
|
786
|
+
|
|
787
|
+
}
|
|
788
|
+
response_data = await self.api_client.call_api(
|
|
789
|
+
*_param,
|
|
790
|
+
_request_timeout=_request_timeout
|
|
791
|
+
)
|
|
792
|
+
return response_data.response
|
|
414
793
|
|
|
415
|
-
collection_formats = {}
|
|
416
794
|
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
795
|
+
def _read_member_members_id_get_serialize(
|
|
796
|
+
self,
|
|
797
|
+
id,
|
|
798
|
+
_request_auth,
|
|
799
|
+
_content_type,
|
|
800
|
+
_headers,
|
|
801
|
+
_host_index,
|
|
802
|
+
) -> Tuple:
|
|
420
803
|
|
|
421
|
-
|
|
804
|
+
_host = None
|
|
422
805
|
|
|
423
|
-
|
|
806
|
+
_collection_formats: Dict[str, str] = {
|
|
807
|
+
|
|
808
|
+
}
|
|
424
809
|
|
|
425
|
-
|
|
426
|
-
|
|
810
|
+
_path_params: Dict[str, str] = {}
|
|
811
|
+
_query_params: List[Tuple[str, str]] = []
|
|
812
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
813
|
+
_form_params: List[Tuple[str, str]] = []
|
|
814
|
+
_files: Dict[str, str] = {}
|
|
815
|
+
_body_params: Optional[bytes] = None
|
|
427
816
|
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
817
|
+
# process the path parameters
|
|
818
|
+
if id is not None:
|
|
819
|
+
_path_params['id'] = id
|
|
820
|
+
# process the query parameters
|
|
821
|
+
# process the header parameters
|
|
822
|
+
# process the form parameters
|
|
823
|
+
# process the body parameter
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
# set the HTTP header `Accept`
|
|
827
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
828
|
+
[
|
|
829
|
+
'application/json'
|
|
830
|
+
]
|
|
831
|
+
)
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
# authentication setting
|
|
835
|
+
_auth_settings: List[str] = [
|
|
836
|
+
'user'
|
|
837
|
+
]
|
|
838
|
+
|
|
839
|
+
return self.api_client.param_serialize(
|
|
840
|
+
method='GET',
|
|
841
|
+
resource_path='/members/{id}',
|
|
842
|
+
path_params=_path_params,
|
|
843
|
+
query_params=_query_params,
|
|
844
|
+
header_params=_header_params,
|
|
845
|
+
body=_body_params,
|
|
846
|
+
post_params=_form_params,
|
|
847
|
+
files=_files,
|
|
848
|
+
auth_settings=_auth_settings,
|
|
849
|
+
collection_formats=_collection_formats,
|
|
850
|
+
_host=_host,
|
|
851
|
+
_request_auth=_request_auth
|
|
852
|
+
)
|
|
432
853
|
|
|
433
|
-
# Authentication setting
|
|
434
|
-
auth_settings = ['user'] # noqa: E501
|
|
435
854
|
|
|
436
|
-
response_types_map = {
|
|
437
|
-
200: "Member",
|
|
438
|
-
404: "HTTPNotFoundError",
|
|
439
|
-
422: "HTTPValidationError",
|
|
440
|
-
}
|
|
441
855
|
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
:param
|
|
470
|
-
:type
|
|
471
|
-
:param
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
:type
|
|
856
|
+
|
|
857
|
+
@validate_call
|
|
858
|
+
async def read_members_members_get(
|
|
859
|
+
self,
|
|
860
|
+
latest: Optional[StrictBool] = None,
|
|
861
|
+
id: Optional[StrictInt] = None,
|
|
862
|
+
team_id: Optional[StrictInt] = None,
|
|
863
|
+
user_id: Optional[StrictInt] = None,
|
|
864
|
+
role: Optional[Role] = None,
|
|
865
|
+
is_active: Optional[StrictBool] = None,
|
|
866
|
+
_request_timeout: Union[
|
|
867
|
+
None,
|
|
868
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
869
|
+
Tuple[
|
|
870
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
871
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
872
|
+
]
|
|
873
|
+
] = None,
|
|
874
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
875
|
+
_content_type: Optional[StrictStr] = None,
|
|
876
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
877
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
878
|
+
) -> List[Member]:
|
|
879
|
+
"""List members
|
|
880
|
+
|
|
881
|
+
Read members.
|
|
882
|
+
|
|
883
|
+
:param latest:
|
|
884
|
+
:type latest: bool
|
|
885
|
+
:param id:
|
|
886
|
+
:type id: int
|
|
887
|
+
:param team_id:
|
|
888
|
+
:type team_id: int
|
|
889
|
+
:param user_id:
|
|
890
|
+
:type user_id: int
|
|
891
|
+
:param role:
|
|
892
|
+
:type role: Role
|
|
893
|
+
:param is_active:
|
|
894
|
+
:type is_active: bool
|
|
475
895
|
:param _request_timeout: timeout setting for this request. If one
|
|
476
896
|
number provided, it will be total request
|
|
477
897
|
timeout. It can also be a pair (tuple) of
|
|
478
898
|
(connection, read) timeouts.
|
|
899
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
900
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
901
|
+
request; this effectively ignores the
|
|
902
|
+
authentication in the spec for a single request.
|
|
903
|
+
:type _request_auth: dict, optional
|
|
904
|
+
:param _content_type: force content-type for the request.
|
|
905
|
+
:type _content_type: str, Optional
|
|
906
|
+
:param _headers: set to override the headers for a single
|
|
907
|
+
request; this effectively ignores the headers
|
|
908
|
+
in the spec for a single request.
|
|
909
|
+
:type _headers: dict, optional
|
|
910
|
+
:param _host_index: set to override the host_index for a single
|
|
911
|
+
request; this effectively ignores the host_index
|
|
912
|
+
in the spec for a single request.
|
|
913
|
+
:type _host_index: int, optional
|
|
479
914
|
:return: Returns the result object.
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
915
|
+
""" # noqa: E501
|
|
916
|
+
|
|
917
|
+
_param = self._read_members_members_get_serialize(
|
|
918
|
+
latest=latest,
|
|
919
|
+
id=id,
|
|
920
|
+
team_id=team_id,
|
|
921
|
+
user_id=user_id,
|
|
922
|
+
role=role,
|
|
923
|
+
is_active=is_active,
|
|
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
|
+
'200': "List[Member]",
|
|
932
|
+
'422': "HTTPValidationError"
|
|
933
|
+
|
|
934
|
+
}
|
|
935
|
+
response_data = await self.api_client.call_api(
|
|
936
|
+
*_param,
|
|
937
|
+
_request_timeout=_request_timeout
|
|
938
|
+
)
|
|
939
|
+
await 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
|
+
async def read_members_members_get_with_http_info(
|
|
948
|
+
self,
|
|
949
|
+
latest: Optional[StrictBool] = None,
|
|
950
|
+
id: Optional[StrictInt] = None,
|
|
951
|
+
team_id: Optional[StrictInt] = None,
|
|
952
|
+
user_id: Optional[StrictInt] = None,
|
|
953
|
+
role: Optional[Role] = None,
|
|
954
|
+
is_active: Optional[StrictBool] = None,
|
|
955
|
+
_request_timeout: Union[
|
|
956
|
+
None,
|
|
957
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
958
|
+
Tuple[
|
|
959
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
960
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
961
|
+
]
|
|
962
|
+
] = None,
|
|
963
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
964
|
+
_content_type: Optional[StrictStr] = None,
|
|
965
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
966
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
967
|
+
) -> ApiResponse[List[Member]]:
|
|
968
|
+
"""List members
|
|
969
|
+
|
|
970
|
+
Read members.
|
|
971
|
+
|
|
972
|
+
:param latest:
|
|
973
|
+
:type latest: bool
|
|
974
|
+
:param id:
|
|
975
|
+
:type id: int
|
|
976
|
+
:param team_id:
|
|
977
|
+
:type team_id: int
|
|
978
|
+
:param user_id:
|
|
979
|
+
:type user_id: int
|
|
980
|
+
:param role:
|
|
981
|
+
:type role: Role
|
|
982
|
+
:param is_active:
|
|
983
|
+
:type is_active: bool
|
|
506
984
|
:param _request_timeout: timeout setting for this request. If one
|
|
507
985
|
number provided, it will be total request
|
|
508
986
|
timeout. It can also be a pair (tuple) of
|
|
509
987
|
(connection, read) timeouts.
|
|
988
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
510
989
|
:param _request_auth: set to override the auth_settings for an a single
|
|
511
|
-
request; this effectively ignores the
|
|
512
|
-
in the spec for a single request.
|
|
990
|
+
request; this effectively ignores the
|
|
991
|
+
authentication in the spec for a single request.
|
|
513
992
|
:type _request_auth: dict, optional
|
|
514
|
-
:
|
|
993
|
+
:param _content_type: force content-type for the request.
|
|
994
|
+
:type _content_type: str, Optional
|
|
995
|
+
:param _headers: set to override the headers for a single
|
|
996
|
+
request; this effectively ignores the headers
|
|
997
|
+
in the spec for a single request.
|
|
998
|
+
:type _headers: dict, optional
|
|
999
|
+
:param _host_index: set to override the host_index for a single
|
|
1000
|
+
request; this effectively ignores the host_index
|
|
1001
|
+
in the spec for a single request.
|
|
1002
|
+
:type _host_index: int, optional
|
|
515
1003
|
:return: Returns the result object.
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
'_preload_content',
|
|
530
|
-
'_request_timeout',
|
|
531
|
-
'_request_auth',
|
|
532
|
-
'_content_type',
|
|
533
|
-
'_headers'
|
|
534
|
-
]
|
|
1004
|
+
""" # noqa: E501
|
|
1005
|
+
|
|
1006
|
+
_param = self._read_members_members_get_serialize(
|
|
1007
|
+
latest=latest,
|
|
1008
|
+
id=id,
|
|
1009
|
+
team_id=team_id,
|
|
1010
|
+
user_id=user_id,
|
|
1011
|
+
role=role,
|
|
1012
|
+
is_active=is_active,
|
|
1013
|
+
_request_auth=_request_auth,
|
|
1014
|
+
_content_type=_content_type,
|
|
1015
|
+
_headers=_headers,
|
|
1016
|
+
_host_index=_host_index
|
|
535
1017
|
)
|
|
536
1018
|
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
1019
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1020
|
+
'200': "List[Member]",
|
|
1021
|
+
'422': "HTTPValidationError"
|
|
1022
|
+
|
|
1023
|
+
}
|
|
1024
|
+
response_data = await self.api_client.call_api(
|
|
1025
|
+
*_param,
|
|
1026
|
+
_request_timeout=_request_timeout
|
|
1027
|
+
)
|
|
1028
|
+
await response_data.read()
|
|
1029
|
+
return self.api_client.response_deserialize(
|
|
1030
|
+
response_data=response_data,
|
|
1031
|
+
response_types_map=_response_types_map,
|
|
1032
|
+
)
|
|
545
1033
|
|
|
546
|
-
collection_formats = {}
|
|
547
1034
|
|
|
548
|
-
|
|
1035
|
+
@validate_call
|
|
1036
|
+
async def read_members_members_get_without_preload_content(
|
|
1037
|
+
self,
|
|
1038
|
+
latest: Optional[StrictBool] = None,
|
|
1039
|
+
id: Optional[StrictInt] = None,
|
|
1040
|
+
team_id: Optional[StrictInt] = None,
|
|
1041
|
+
user_id: Optional[StrictInt] = None,
|
|
1042
|
+
role: Optional[Role] = None,
|
|
1043
|
+
is_active: Optional[StrictBool] = None,
|
|
1044
|
+
_request_timeout: Union[
|
|
1045
|
+
None,
|
|
1046
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1047
|
+
Tuple[
|
|
1048
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1049
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1050
|
+
]
|
|
1051
|
+
] = None,
|
|
1052
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1053
|
+
_content_type: Optional[StrictStr] = None,
|
|
1054
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1055
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1056
|
+
) -> RESTResponseType:
|
|
1057
|
+
"""List members
|
|
1058
|
+
|
|
1059
|
+
Read members.
|
|
1060
|
+
|
|
1061
|
+
:param latest:
|
|
1062
|
+
:type latest: bool
|
|
1063
|
+
:param id:
|
|
1064
|
+
:type id: int
|
|
1065
|
+
:param team_id:
|
|
1066
|
+
:type team_id: int
|
|
1067
|
+
:param user_id:
|
|
1068
|
+
:type user_id: int
|
|
1069
|
+
:param role:
|
|
1070
|
+
:type role: Role
|
|
1071
|
+
:param is_active:
|
|
1072
|
+
:type is_active: bool
|
|
1073
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1074
|
+
number provided, it will be total request
|
|
1075
|
+
timeout. It can also be a pair (tuple) of
|
|
1076
|
+
(connection, read) timeouts.
|
|
1077
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1078
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1079
|
+
request; this effectively ignores the
|
|
1080
|
+
authentication in the spec for a single request.
|
|
1081
|
+
:type _request_auth: dict, optional
|
|
1082
|
+
:param _content_type: force content-type for the request.
|
|
1083
|
+
:type _content_type: str, Optional
|
|
1084
|
+
:param _headers: set to override the headers for a single
|
|
1085
|
+
request; this effectively ignores the headers
|
|
1086
|
+
in the spec for a single request.
|
|
1087
|
+
:type _headers: dict, optional
|
|
1088
|
+
:param _host_index: set to override the host_index for a single
|
|
1089
|
+
request; this effectively ignores the host_index
|
|
1090
|
+
in the spec for a single request.
|
|
1091
|
+
:type _host_index: int, optional
|
|
1092
|
+
:return: Returns the result object.
|
|
1093
|
+
""" # noqa: E501
|
|
1094
|
+
|
|
1095
|
+
_param = self._read_members_members_get_serialize(
|
|
1096
|
+
latest=latest,
|
|
1097
|
+
id=id,
|
|
1098
|
+
team_id=team_id,
|
|
1099
|
+
user_id=user_id,
|
|
1100
|
+
role=role,
|
|
1101
|
+
is_active=is_active,
|
|
1102
|
+
_request_auth=_request_auth,
|
|
1103
|
+
_content_type=_content_type,
|
|
1104
|
+
_headers=_headers,
|
|
1105
|
+
_host_index=_host_index
|
|
1106
|
+
)
|
|
549
1107
|
|
|
550
|
-
|
|
1108
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1109
|
+
'200': "List[Member]",
|
|
1110
|
+
'422': "HTTPValidationError"
|
|
1111
|
+
|
|
1112
|
+
}
|
|
1113
|
+
response_data = await self.api_client.call_api(
|
|
1114
|
+
*_param,
|
|
1115
|
+
_request_timeout=_request_timeout
|
|
1116
|
+
)
|
|
1117
|
+
return response_data.response
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
def _read_members_members_get_serialize(
|
|
1121
|
+
self,
|
|
1122
|
+
latest,
|
|
1123
|
+
id,
|
|
1124
|
+
team_id,
|
|
1125
|
+
user_id,
|
|
1126
|
+
role,
|
|
1127
|
+
is_active,
|
|
1128
|
+
_request_auth,
|
|
1129
|
+
_content_type,
|
|
1130
|
+
_headers,
|
|
1131
|
+
_host_index,
|
|
1132
|
+
) -> Tuple:
|
|
1133
|
+
|
|
1134
|
+
_host = None
|
|
1135
|
+
|
|
1136
|
+
_collection_formats: Dict[str, str] = {
|
|
1137
|
+
|
|
1138
|
+
}
|
|
551
1139
|
|
|
552
|
-
|
|
1140
|
+
_path_params: Dict[str, str] = {}
|
|
1141
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1142
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1143
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1144
|
+
_files: Dict[str, str] = {}
|
|
1145
|
+
_body_params: Optional[bytes] = None
|
|
1146
|
+
|
|
1147
|
+
# process the path parameters
|
|
1148
|
+
# process the query parameters
|
|
1149
|
+
if latest is not None:
|
|
1150
|
+
|
|
1151
|
+
_query_params.append(('latest', latest))
|
|
1152
|
+
|
|
1153
|
+
if id is not None:
|
|
1154
|
+
|
|
1155
|
+
_query_params.append(('id', id))
|
|
1156
|
+
|
|
1157
|
+
if team_id is not None:
|
|
1158
|
+
|
|
1159
|
+
_query_params.append(('team_id', team_id))
|
|
1160
|
+
|
|
1161
|
+
if user_id is not None:
|
|
1162
|
+
|
|
1163
|
+
_query_params.append(('user_id', user_id))
|
|
1164
|
+
|
|
1165
|
+
if role is not None:
|
|
1166
|
+
|
|
1167
|
+
_query_params.append(('role', role.value))
|
|
1168
|
+
|
|
1169
|
+
if is_active is not None:
|
|
1170
|
+
|
|
1171
|
+
_query_params.append(('is_active', is_active))
|
|
1172
|
+
|
|
1173
|
+
# process the header parameters
|
|
1174
|
+
# process the form parameters
|
|
1175
|
+
# process the body parameter
|
|
1176
|
+
|
|
1177
|
+
|
|
1178
|
+
# set the HTTP header `Accept`
|
|
1179
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1180
|
+
[
|
|
1181
|
+
'application/json'
|
|
1182
|
+
]
|
|
1183
|
+
)
|
|
553
1184
|
|
|
554
|
-
form_params = []
|
|
555
|
-
local_var_files = {}
|
|
556
1185
|
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
1186
|
+
# authentication setting
|
|
1187
|
+
_auth_settings: List[str] = [
|
|
1188
|
+
'user'
|
|
1189
|
+
]
|
|
561
1190
|
|
|
562
|
-
|
|
563
|
-
|
|
1191
|
+
return self.api_client.param_serialize(
|
|
1192
|
+
method='GET',
|
|
1193
|
+
resource_path='/members',
|
|
1194
|
+
path_params=_path_params,
|
|
1195
|
+
query_params=_query_params,
|
|
1196
|
+
header_params=_header_params,
|
|
1197
|
+
body=_body_params,
|
|
1198
|
+
post_params=_form_params,
|
|
1199
|
+
files=_files,
|
|
1200
|
+
auth_settings=_auth_settings,
|
|
1201
|
+
collection_formats=_collection_formats,
|
|
1202
|
+
_host=_host,
|
|
1203
|
+
_request_auth=_request_auth
|
|
1204
|
+
)
|
|
564
1205
|
|
|
565
|
-
response_types_map = {
|
|
566
|
-
200: "list[Member]",
|
|
567
|
-
}
|
|
568
1206
|
|
|
569
|
-
return self.api_client.call_api(
|
|
570
|
-
'/members', 'GET',
|
|
571
|
-
path_params,
|
|
572
|
-
query_params,
|
|
573
|
-
header_params,
|
|
574
|
-
body=body_params,
|
|
575
|
-
post_params=form_params,
|
|
576
|
-
files=local_var_files,
|
|
577
|
-
response_types_map=response_types_map,
|
|
578
|
-
auth_settings=auth_settings,
|
|
579
|
-
async_req=local_var_params.get('async_req'),
|
|
580
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
581
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
582
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
583
|
-
collection_formats=collection_formats,
|
|
584
|
-
_request_auth=local_var_params.get('_request_auth'))
|