neurograph-core 1.202508112256__py3-none-any.whl → 1.202508201827__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.
- neurograph/v1/__init__.py +38 -20
- neurograph/v1/api/__init__.py +1 -1
- neurograph/v1/api/authentication_api.py +36 -8
- neurograph/v1/api/client_api.py +62 -56
- neurograph/v1/api/client_metadata_api.py +305 -19
- neurograph/v1/api/dagster_api.py +306 -0
- neurograph/v1/api/lookup_api.py +2 -0
- neurograph/v1/api/organization_api.py +257 -252
- neurograph/v1/api/organization_metadata_api.py +22 -19
- neurograph/v1/api/persona_api.py +1249 -135
- neurograph/v1/api/tasks_api.py +1 -0
- neurograph/v1/api/workbench_api.py +6 -3
- neurograph/v1/models/__init__.py +18 -9
- neurograph/v1/models/auth_test_service_token_request.py +87 -0
- neurograph/v1/models/client_client.py +4 -4
- neurograph/v1/models/client_client_upsert_request.py +95 -0
- neurograph/v1/models/client_client_upsert_response.py +111 -0
- neurograph/v1/models/client_client_url_upsert_request.py +4 -4
- neurograph/v1/models/client_client_url_upsert_response.py +14 -7
- neurograph/v1/models/client_client_urls_response.py +1 -1
- neurograph/v1/models/client_kpi.py +1 -1
- neurograph/v1/models/client_metadata.py +3 -3
- neurograph/v1/models/client_persona.py +4 -4
- neurograph/v1/models/client_persona_factor.py +1 -1
- neurograph/v1/models/client_persona_personality_trait.py +1 -1
- neurograph/v1/models/client_query.py +1 -1
- neurograph/v1/models/dagster_dagster_log_create_request.py +93 -0
- neurograph/v1/models/dagster_dagster_log_create_response.py +91 -0
- neurograph/v1/models/db_client_url.py +14 -7
- neurograph/v1/models/db_persona_factor_create_params.py +1 -1
- neurograph/v1/models/organizations_brand_detail_response.py +2 -2
- neurograph/v1/models/organizations_brand_upsert_request.py +2 -2
- neurograph/v1/models/organizations_metadata.py +3 -3
- neurograph/v1/models/organizations_organization.py +1 -1
- neurograph/v1/models/organizations_organization_detail_response.py +2 -8
- neurograph/v1/models/organizations_organization_set_workbench_request.py +10 -10
- neurograph/v1/models/organizations_organization_set_workbench_response.py +13 -11
- neurograph/v1/models/organizations_organization_update_request.py +4 -4
- neurograph/v1/models/organizations_workbench_config.py +13 -11
- neurograph/v1/models/personas_delete_many_persona_instances_request.py +87 -0
- neurograph/v1/models/personas_kpi.py +93 -0
- neurograph/v1/models/personas_match_criteria_row.py +1 -1
- neurograph/v1/models/personas_match_criteria_row_in.py +2 -2
- neurograph/v1/models/personas_persona.py +171 -0
- neurograph/v1/models/personas_persona_factor.py +2 -4
- neurograph/v1/models/personas_persona_factor_create_response.py +3 -3
- neurograph/v1/models/personas_persona_factor_resp.py +101 -0
- neurograph/v1/models/personas_persona_insight.py +93 -0
- neurograph/v1/models/personas_persona_insight_create_request.py +2 -2
- neurograph/v1/models/personas_persona_insight_create_response.py +1 -1
- neurograph/v1/models/personas_persona_instance_create_request.py +1 -1
- neurograph/v1/models/personas_persona_instance_create_response.py +2 -2
- neurograph/v1/models/personas_persona_instances_delete_response.py +89 -0
- neurograph/v1/models/personas_persona_instances_response.py +103 -0
- neurograph/v1/models/personas_persona_kpi_req.py +2 -2
- neurograph/v1/models/personas_persona_kpi_resp.py +1 -1
- neurograph/v1/models/personas_persona_personality_trait.py +93 -0
- neurograph/v1/models/personas_persona_seed_create_request.py +2 -2
- neurograph/v1/models/personas_persona_seed_create_response.py +3 -3
- neurograph/v1/models/personas_persona_seed_get_many_response.py +105 -0
- neurograph/v1/models/personas_persona_seeds_delete_request.py +87 -0
- neurograph/v1/models/personas_persona_seeds_delete_response.py +89 -0
- neurograph/v1/models/personas_personality_trait_in.py +2 -2
- neurograph/v1/models/personas_personality_trait_out.py +1 -1
- neurograph/v1/models/pgtype_infinity_modifier.py +38 -0
- neurograph/v1/models/pgtype_timestamp.py +92 -0
- neurograph/v1/models/workbench_workbench_version.py +3 -3
- neurograph/v1/models/workbench_workbench_version_response.py +3 -3
- neurograph/v1/models/workbench_workbench_version_upsert_request.py +2 -2
- {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508201827.dist-info}/METADATA +2 -2
- {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508201827.dist-info}/RECORD +73 -54
- {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508201827.dist-info}/WHEEL +0 -0
- {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508201827.dist-info}/top_level.txt +0 -0
|
@@ -16,7 +16,7 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
|
-
from pydantic import Field, StrictInt
|
|
19
|
+
from pydantic import Field, StrictInt, StrictStr
|
|
20
20
|
from typing import Optional
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
22
|
from neurograph.v1.models.organizations_brand_detail_response import OrganizationsBrandDetailResponse
|
|
@@ -24,8 +24,6 @@ from neurograph.v1.models.organizations_brand_upsert_request import Organization
|
|
|
24
24
|
from neurograph.v1.models.organizations_organization_create_request import OrganizationsOrganizationCreateRequest
|
|
25
25
|
from neurograph.v1.models.organizations_organization_detail_response import OrganizationsOrganizationDetailResponse
|
|
26
26
|
from neurograph.v1.models.organizations_organization_get_many_response import OrganizationsOrganizationGetManyResponse
|
|
27
|
-
from neurograph.v1.models.organizations_organization_set_atlas_request import OrganizationsOrganizationSetAtlasRequest
|
|
28
|
-
from neurograph.v1.models.organizations_organization_set_atlas_response import OrganizationsOrganizationSetAtlasResponse
|
|
29
27
|
from neurograph.v1.models.organizations_organization_set_workbench_request import OrganizationsOrganizationSetWorkbenchRequest
|
|
30
28
|
from neurograph.v1.models.organizations_organization_set_workbench_response import OrganizationsOrganizationSetWorkbenchResponse
|
|
31
29
|
from neurograph.v1.models.organizations_organization_update_request import OrganizationsOrganizationUpdateRequest
|
|
@@ -49,9 +47,9 @@ class OrganizationApi:
|
|
|
49
47
|
|
|
50
48
|
|
|
51
49
|
@validate_call
|
|
52
|
-
def
|
|
50
|
+
def api_v1_organizations_branding_post(
|
|
53
51
|
self,
|
|
54
|
-
|
|
52
|
+
payload: Annotated[OrganizationsBrandUpsertRequest, Field(description="Brand details")],
|
|
55
53
|
_request_timeout: Union[
|
|
56
54
|
None,
|
|
57
55
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -64,13 +62,13 @@ class OrganizationApi:
|
|
|
64
62
|
_content_type: Optional[StrictStr] = None,
|
|
65
63
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
66
64
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
67
|
-
) ->
|
|
68
|
-
"""Set Organization's
|
|
65
|
+
) -> OrganizationsBrandDetailResponse:
|
|
66
|
+
"""Set an Organization's Branding
|
|
69
67
|
|
|
70
|
-
Set
|
|
68
|
+
Set branding for a specific organization
|
|
71
69
|
|
|
72
|
-
:param
|
|
73
|
-
:type
|
|
70
|
+
:param payload: Brand details (required)
|
|
71
|
+
:type payload: OrganizationsBrandUpsertRequest
|
|
74
72
|
:param _request_timeout: timeout setting for this request. If one
|
|
75
73
|
number provided, it will be total request
|
|
76
74
|
timeout. It can also be a pair (tuple) of
|
|
@@ -93,8 +91,8 @@ class OrganizationApi:
|
|
|
93
91
|
:return: Returns the result object.
|
|
94
92
|
""" # noqa: E501
|
|
95
93
|
|
|
96
|
-
_param = self.
|
|
97
|
-
|
|
94
|
+
_param = self._api_v1_organizations_branding_post_serialize(
|
|
95
|
+
payload=payload,
|
|
98
96
|
_request_auth=_request_auth,
|
|
99
97
|
_content_type=_content_type,
|
|
100
98
|
_headers=_headers,
|
|
@@ -102,9 +100,9 @@ class OrganizationApi:
|
|
|
102
100
|
)
|
|
103
101
|
|
|
104
102
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
105
|
-
'200': "
|
|
106
|
-
'400': "
|
|
107
|
-
'503': "
|
|
103
|
+
'200': "OrganizationsBrandDetailResponse",
|
|
104
|
+
'400': "OrganizationsBrandDetailResponse",
|
|
105
|
+
'503': "OrganizationsBrandDetailResponse",
|
|
108
106
|
}
|
|
109
107
|
response_data = self.api_client.call_api(
|
|
110
108
|
*_param,
|
|
@@ -118,9 +116,9 @@ class OrganizationApi:
|
|
|
118
116
|
|
|
119
117
|
|
|
120
118
|
@validate_call
|
|
121
|
-
def
|
|
119
|
+
def api_v1_organizations_branding_post_with_http_info(
|
|
122
120
|
self,
|
|
123
|
-
|
|
121
|
+
payload: Annotated[OrganizationsBrandUpsertRequest, Field(description="Brand details")],
|
|
124
122
|
_request_timeout: Union[
|
|
125
123
|
None,
|
|
126
124
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -133,13 +131,13 @@ class OrganizationApi:
|
|
|
133
131
|
_content_type: Optional[StrictStr] = None,
|
|
134
132
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
135
133
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
136
|
-
) -> ApiResponse[
|
|
137
|
-
"""Set Organization's
|
|
134
|
+
) -> ApiResponse[OrganizationsBrandDetailResponse]:
|
|
135
|
+
"""Set an Organization's Branding
|
|
138
136
|
|
|
139
|
-
Set
|
|
137
|
+
Set branding for a specific organization
|
|
140
138
|
|
|
141
|
-
:param
|
|
142
|
-
:type
|
|
139
|
+
:param payload: Brand details (required)
|
|
140
|
+
:type payload: OrganizationsBrandUpsertRequest
|
|
143
141
|
:param _request_timeout: timeout setting for this request. If one
|
|
144
142
|
number provided, it will be total request
|
|
145
143
|
timeout. It can also be a pair (tuple) of
|
|
@@ -162,8 +160,8 @@ class OrganizationApi:
|
|
|
162
160
|
:return: Returns the result object.
|
|
163
161
|
""" # noqa: E501
|
|
164
162
|
|
|
165
|
-
_param = self.
|
|
166
|
-
|
|
163
|
+
_param = self._api_v1_organizations_branding_post_serialize(
|
|
164
|
+
payload=payload,
|
|
167
165
|
_request_auth=_request_auth,
|
|
168
166
|
_content_type=_content_type,
|
|
169
167
|
_headers=_headers,
|
|
@@ -171,9 +169,9 @@ class OrganizationApi:
|
|
|
171
169
|
)
|
|
172
170
|
|
|
173
171
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
174
|
-
'200': "
|
|
175
|
-
'400': "
|
|
176
|
-
'503': "
|
|
172
|
+
'200': "OrganizationsBrandDetailResponse",
|
|
173
|
+
'400': "OrganizationsBrandDetailResponse",
|
|
174
|
+
'503': "OrganizationsBrandDetailResponse",
|
|
177
175
|
}
|
|
178
176
|
response_data = self.api_client.call_api(
|
|
179
177
|
*_param,
|
|
@@ -187,9 +185,9 @@ class OrganizationApi:
|
|
|
187
185
|
|
|
188
186
|
|
|
189
187
|
@validate_call
|
|
190
|
-
def
|
|
188
|
+
def api_v1_organizations_branding_post_without_preload_content(
|
|
191
189
|
self,
|
|
192
|
-
|
|
190
|
+
payload: Annotated[OrganizationsBrandUpsertRequest, Field(description="Brand details")],
|
|
193
191
|
_request_timeout: Union[
|
|
194
192
|
None,
|
|
195
193
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -203,12 +201,12 @@ class OrganizationApi:
|
|
|
203
201
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
204
202
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
205
203
|
) -> RESTResponseType:
|
|
206
|
-
"""Set Organization's
|
|
204
|
+
"""Set an Organization's Branding
|
|
207
205
|
|
|
208
|
-
Set
|
|
206
|
+
Set branding for a specific organization
|
|
209
207
|
|
|
210
|
-
:param
|
|
211
|
-
:type
|
|
208
|
+
:param payload: Brand details (required)
|
|
209
|
+
:type payload: OrganizationsBrandUpsertRequest
|
|
212
210
|
:param _request_timeout: timeout setting for this request. If one
|
|
213
211
|
number provided, it will be total request
|
|
214
212
|
timeout. It can also be a pair (tuple) of
|
|
@@ -231,8 +229,8 @@ class OrganizationApi:
|
|
|
231
229
|
:return: Returns the result object.
|
|
232
230
|
""" # noqa: E501
|
|
233
231
|
|
|
234
|
-
_param = self.
|
|
235
|
-
|
|
232
|
+
_param = self._api_v1_organizations_branding_post_serialize(
|
|
233
|
+
payload=payload,
|
|
236
234
|
_request_auth=_request_auth,
|
|
237
235
|
_content_type=_content_type,
|
|
238
236
|
_headers=_headers,
|
|
@@ -240,9 +238,9 @@ class OrganizationApi:
|
|
|
240
238
|
)
|
|
241
239
|
|
|
242
240
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
243
|
-
'200': "
|
|
244
|
-
'400': "
|
|
245
|
-
'503': "
|
|
241
|
+
'200': "OrganizationsBrandDetailResponse",
|
|
242
|
+
'400': "OrganizationsBrandDetailResponse",
|
|
243
|
+
'503': "OrganizationsBrandDetailResponse",
|
|
246
244
|
}
|
|
247
245
|
response_data = self.api_client.call_api(
|
|
248
246
|
*_param,
|
|
@@ -251,9 +249,9 @@ class OrganizationApi:
|
|
|
251
249
|
return response_data.response
|
|
252
250
|
|
|
253
251
|
|
|
254
|
-
def
|
|
252
|
+
def _api_v1_organizations_branding_post_serialize(
|
|
255
253
|
self,
|
|
256
|
-
|
|
254
|
+
payload,
|
|
257
255
|
_request_auth,
|
|
258
256
|
_content_type,
|
|
259
257
|
_headers,
|
|
@@ -279,8 +277,8 @@ class OrganizationApi:
|
|
|
279
277
|
# process the header parameters
|
|
280
278
|
# process the form parameters
|
|
281
279
|
# process the body parameter
|
|
282
|
-
if
|
|
283
|
-
_body_params =
|
|
280
|
+
if payload is not None:
|
|
281
|
+
_body_params = payload
|
|
284
282
|
|
|
285
283
|
|
|
286
284
|
# set the HTTP header `Accept`
|
|
@@ -291,15 +289,29 @@ class OrganizationApi:
|
|
|
291
289
|
]
|
|
292
290
|
)
|
|
293
291
|
|
|
292
|
+
# set the HTTP header `Content-Type`
|
|
293
|
+
if _content_type:
|
|
294
|
+
_header_params['Content-Type'] = _content_type
|
|
295
|
+
else:
|
|
296
|
+
_default_content_type = (
|
|
297
|
+
self.api_client.select_header_content_type(
|
|
298
|
+
[
|
|
299
|
+
'application/json'
|
|
300
|
+
]
|
|
301
|
+
)
|
|
302
|
+
)
|
|
303
|
+
if _default_content_type is not None:
|
|
304
|
+
_header_params['Content-Type'] = _default_content_type
|
|
294
305
|
|
|
295
306
|
# authentication setting
|
|
296
307
|
_auth_settings: List[str] = [
|
|
308
|
+
'TokenAuth',
|
|
297
309
|
'ApiKeyAuth'
|
|
298
310
|
]
|
|
299
311
|
|
|
300
312
|
return self.api_client.param_serialize(
|
|
301
313
|
method='POST',
|
|
302
|
-
resource_path='/api/v1/organizations/
|
|
314
|
+
resource_path='/api/v1/organizations/branding',
|
|
303
315
|
path_params=_path_params,
|
|
304
316
|
query_params=_query_params,
|
|
305
317
|
header_params=_header_params,
|
|
@@ -316,9 +328,10 @@ class OrganizationApi:
|
|
|
316
328
|
|
|
317
329
|
|
|
318
330
|
@validate_call
|
|
319
|
-
def
|
|
331
|
+
def api_v1_organizations_get(
|
|
320
332
|
self,
|
|
321
|
-
|
|
333
|
+
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of records")] = None,
|
|
334
|
+
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
322
335
|
_request_timeout: Union[
|
|
323
336
|
None,
|
|
324
337
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -331,13 +344,15 @@ class OrganizationApi:
|
|
|
331
344
|
_content_type: Optional[StrictStr] = None,
|
|
332
345
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
333
346
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
334
|
-
) ->
|
|
335
|
-
"""
|
|
347
|
+
) -> OrganizationsOrganizationGetManyResponse:
|
|
348
|
+
"""Get Organizations
|
|
336
349
|
|
|
337
|
-
|
|
350
|
+
Get all Organizations
|
|
338
351
|
|
|
339
|
-
:param
|
|
340
|
-
:type
|
|
352
|
+
:param limit: Maximum number of records
|
|
353
|
+
:type limit: int
|
|
354
|
+
:param offset: Record offset
|
|
355
|
+
:type offset: int
|
|
341
356
|
:param _request_timeout: timeout setting for this request. If one
|
|
342
357
|
number provided, it will be total request
|
|
343
358
|
timeout. It can also be a pair (tuple) of
|
|
@@ -360,8 +375,9 @@ class OrganizationApi:
|
|
|
360
375
|
:return: Returns the result object.
|
|
361
376
|
""" # noqa: E501
|
|
362
377
|
|
|
363
|
-
_param = self.
|
|
364
|
-
|
|
378
|
+
_param = self._api_v1_organizations_get_serialize(
|
|
379
|
+
limit=limit,
|
|
380
|
+
offset=offset,
|
|
365
381
|
_request_auth=_request_auth,
|
|
366
382
|
_content_type=_content_type,
|
|
367
383
|
_headers=_headers,
|
|
@@ -369,9 +385,9 @@ class OrganizationApi:
|
|
|
369
385
|
)
|
|
370
386
|
|
|
371
387
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
372
|
-
'200': "
|
|
373
|
-
'400': "
|
|
374
|
-
'503': "
|
|
388
|
+
'200': "OrganizationsOrganizationGetManyResponse",
|
|
389
|
+
'400': "OrganizationsOrganizationGetManyResponse",
|
|
390
|
+
'503': "OrganizationsOrganizationGetManyResponse",
|
|
375
391
|
}
|
|
376
392
|
response_data = self.api_client.call_api(
|
|
377
393
|
*_param,
|
|
@@ -385,9 +401,10 @@ class OrganizationApi:
|
|
|
385
401
|
|
|
386
402
|
|
|
387
403
|
@validate_call
|
|
388
|
-
def
|
|
404
|
+
def api_v1_organizations_get_with_http_info(
|
|
389
405
|
self,
|
|
390
|
-
|
|
406
|
+
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of records")] = None,
|
|
407
|
+
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
391
408
|
_request_timeout: Union[
|
|
392
409
|
None,
|
|
393
410
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -400,13 +417,15 @@ class OrganizationApi:
|
|
|
400
417
|
_content_type: Optional[StrictStr] = None,
|
|
401
418
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
402
419
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
403
|
-
) -> ApiResponse[
|
|
404
|
-
"""
|
|
420
|
+
) -> ApiResponse[OrganizationsOrganizationGetManyResponse]:
|
|
421
|
+
"""Get Organizations
|
|
405
422
|
|
|
406
|
-
|
|
423
|
+
Get all Organizations
|
|
407
424
|
|
|
408
|
-
:param
|
|
409
|
-
:type
|
|
425
|
+
:param limit: Maximum number of records
|
|
426
|
+
:type limit: int
|
|
427
|
+
:param offset: Record offset
|
|
428
|
+
:type offset: int
|
|
410
429
|
:param _request_timeout: timeout setting for this request. If one
|
|
411
430
|
number provided, it will be total request
|
|
412
431
|
timeout. It can also be a pair (tuple) of
|
|
@@ -429,8 +448,9 @@ class OrganizationApi:
|
|
|
429
448
|
:return: Returns the result object.
|
|
430
449
|
""" # noqa: E501
|
|
431
450
|
|
|
432
|
-
_param = self.
|
|
433
|
-
|
|
451
|
+
_param = self._api_v1_organizations_get_serialize(
|
|
452
|
+
limit=limit,
|
|
453
|
+
offset=offset,
|
|
434
454
|
_request_auth=_request_auth,
|
|
435
455
|
_content_type=_content_type,
|
|
436
456
|
_headers=_headers,
|
|
@@ -438,9 +458,9 @@ class OrganizationApi:
|
|
|
438
458
|
)
|
|
439
459
|
|
|
440
460
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
441
|
-
'200': "
|
|
442
|
-
'400': "
|
|
443
|
-
'503': "
|
|
461
|
+
'200': "OrganizationsOrganizationGetManyResponse",
|
|
462
|
+
'400': "OrganizationsOrganizationGetManyResponse",
|
|
463
|
+
'503': "OrganizationsOrganizationGetManyResponse",
|
|
444
464
|
}
|
|
445
465
|
response_data = self.api_client.call_api(
|
|
446
466
|
*_param,
|
|
@@ -454,9 +474,10 @@ class OrganizationApi:
|
|
|
454
474
|
|
|
455
475
|
|
|
456
476
|
@validate_call
|
|
457
|
-
def
|
|
477
|
+
def api_v1_organizations_get_without_preload_content(
|
|
458
478
|
self,
|
|
459
|
-
|
|
479
|
+
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of records")] = None,
|
|
480
|
+
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
460
481
|
_request_timeout: Union[
|
|
461
482
|
None,
|
|
462
483
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -470,12 +491,14 @@ class OrganizationApi:
|
|
|
470
491
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
471
492
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
472
493
|
) -> RESTResponseType:
|
|
473
|
-
"""
|
|
494
|
+
"""Get Organizations
|
|
474
495
|
|
|
475
|
-
|
|
496
|
+
Get all Organizations
|
|
476
497
|
|
|
477
|
-
:param
|
|
478
|
-
:type
|
|
498
|
+
:param limit: Maximum number of records
|
|
499
|
+
:type limit: int
|
|
500
|
+
:param offset: Record offset
|
|
501
|
+
:type offset: int
|
|
479
502
|
:param _request_timeout: timeout setting for this request. If one
|
|
480
503
|
number provided, it will be total request
|
|
481
504
|
timeout. It can also be a pair (tuple) of
|
|
@@ -498,8 +521,9 @@ class OrganizationApi:
|
|
|
498
521
|
:return: Returns the result object.
|
|
499
522
|
""" # noqa: E501
|
|
500
523
|
|
|
501
|
-
_param = self.
|
|
502
|
-
|
|
524
|
+
_param = self._api_v1_organizations_get_serialize(
|
|
525
|
+
limit=limit,
|
|
526
|
+
offset=offset,
|
|
503
527
|
_request_auth=_request_auth,
|
|
504
528
|
_content_type=_content_type,
|
|
505
529
|
_headers=_headers,
|
|
@@ -507,9 +531,9 @@ class OrganizationApi:
|
|
|
507
531
|
)
|
|
508
532
|
|
|
509
533
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
510
|
-
'200': "
|
|
511
|
-
'400': "
|
|
512
|
-
'503': "
|
|
534
|
+
'200': "OrganizationsOrganizationGetManyResponse",
|
|
535
|
+
'400': "OrganizationsOrganizationGetManyResponse",
|
|
536
|
+
'503': "OrganizationsOrganizationGetManyResponse",
|
|
513
537
|
}
|
|
514
538
|
response_data = self.api_client.call_api(
|
|
515
539
|
*_param,
|
|
@@ -518,9 +542,10 @@ class OrganizationApi:
|
|
|
518
542
|
return response_data.response
|
|
519
543
|
|
|
520
544
|
|
|
521
|
-
def
|
|
545
|
+
def _api_v1_organizations_get_serialize(
|
|
522
546
|
self,
|
|
523
|
-
|
|
547
|
+
limit,
|
|
548
|
+
offset,
|
|
524
549
|
_request_auth,
|
|
525
550
|
_content_type,
|
|
526
551
|
_headers,
|
|
@@ -543,11 +568,17 @@ class OrganizationApi:
|
|
|
543
568
|
|
|
544
569
|
# process the path parameters
|
|
545
570
|
# process the query parameters
|
|
571
|
+
if limit is not None:
|
|
572
|
+
|
|
573
|
+
_query_params.append(('limit', limit))
|
|
574
|
+
|
|
575
|
+
if offset is not None:
|
|
576
|
+
|
|
577
|
+
_query_params.append(('offset', offset))
|
|
578
|
+
|
|
546
579
|
# process the header parameters
|
|
547
580
|
# process the form parameters
|
|
548
581
|
# process the body parameter
|
|
549
|
-
if payload is not None:
|
|
550
|
-
_body_params = payload
|
|
551
582
|
|
|
552
583
|
|
|
553
584
|
# set the HTTP header `Accept`
|
|
@@ -558,28 +589,16 @@ class OrganizationApi:
|
|
|
558
589
|
]
|
|
559
590
|
)
|
|
560
591
|
|
|
561
|
-
# set the HTTP header `Content-Type`
|
|
562
|
-
if _content_type:
|
|
563
|
-
_header_params['Content-Type'] = _content_type
|
|
564
|
-
else:
|
|
565
|
-
_default_content_type = (
|
|
566
|
-
self.api_client.select_header_content_type(
|
|
567
|
-
[
|
|
568
|
-
'application/json'
|
|
569
|
-
]
|
|
570
|
-
)
|
|
571
|
-
)
|
|
572
|
-
if _default_content_type is not None:
|
|
573
|
-
_header_params['Content-Type'] = _default_content_type
|
|
574
592
|
|
|
575
593
|
# authentication setting
|
|
576
594
|
_auth_settings: List[str] = [
|
|
595
|
+
'TokenAuth',
|
|
577
596
|
'ApiKeyAuth'
|
|
578
597
|
]
|
|
579
598
|
|
|
580
599
|
return self.api_client.param_serialize(
|
|
581
|
-
method='
|
|
582
|
-
resource_path='/api/v1/organizations/
|
|
600
|
+
method='GET',
|
|
601
|
+
resource_path='/api/v1/organizations/',
|
|
583
602
|
path_params=_path_params,
|
|
584
603
|
query_params=_query_params,
|
|
585
604
|
header_params=_header_params,
|
|
@@ -596,10 +615,9 @@ class OrganizationApi:
|
|
|
596
615
|
|
|
597
616
|
|
|
598
617
|
@validate_call
|
|
599
|
-
def
|
|
618
|
+
def api_v1_organizations_id_get(
|
|
600
619
|
self,
|
|
601
|
-
|
|
602
|
-
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
620
|
+
id: Annotated[StrictStr, Field(description="Organization's ID")],
|
|
603
621
|
_request_timeout: Union[
|
|
604
622
|
None,
|
|
605
623
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -612,15 +630,13 @@ class OrganizationApi:
|
|
|
612
630
|
_content_type: Optional[StrictStr] = None,
|
|
613
631
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
614
632
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
615
|
-
) ->
|
|
616
|
-
"""Get
|
|
633
|
+
) -> OrganizationsOrganizationDetailResponse:
|
|
634
|
+
"""Get Organization by it's ID
|
|
617
635
|
|
|
618
|
-
Get
|
|
636
|
+
Get Organization by it's ID
|
|
619
637
|
|
|
620
|
-
:param
|
|
621
|
-
:type
|
|
622
|
-
:param offset: Record offset
|
|
623
|
-
:type offset: int
|
|
638
|
+
:param id: Organization's ID (required)
|
|
639
|
+
:type id: str
|
|
624
640
|
:param _request_timeout: timeout setting for this request. If one
|
|
625
641
|
number provided, it will be total request
|
|
626
642
|
timeout. It can also be a pair (tuple) of
|
|
@@ -643,9 +659,8 @@ class OrganizationApi:
|
|
|
643
659
|
:return: Returns the result object.
|
|
644
660
|
""" # noqa: E501
|
|
645
661
|
|
|
646
|
-
_param = self.
|
|
647
|
-
|
|
648
|
-
offset=offset,
|
|
662
|
+
_param = self._api_v1_organizations_id_get_serialize(
|
|
663
|
+
id=id,
|
|
649
664
|
_request_auth=_request_auth,
|
|
650
665
|
_content_type=_content_type,
|
|
651
666
|
_headers=_headers,
|
|
@@ -653,9 +668,9 @@ class OrganizationApi:
|
|
|
653
668
|
)
|
|
654
669
|
|
|
655
670
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
656
|
-
'200': "
|
|
657
|
-
'400': "
|
|
658
|
-
'503': "
|
|
671
|
+
'200': "OrganizationsOrganizationDetailResponse",
|
|
672
|
+
'400': "OrganizationsOrganizationDetailResponse",
|
|
673
|
+
'503': "OrganizationsOrganizationDetailResponse",
|
|
659
674
|
}
|
|
660
675
|
response_data = self.api_client.call_api(
|
|
661
676
|
*_param,
|
|
@@ -669,10 +684,9 @@ class OrganizationApi:
|
|
|
669
684
|
|
|
670
685
|
|
|
671
686
|
@validate_call
|
|
672
|
-
def
|
|
687
|
+
def api_v1_organizations_id_get_with_http_info(
|
|
673
688
|
self,
|
|
674
|
-
|
|
675
|
-
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
689
|
+
id: Annotated[StrictStr, Field(description="Organization's ID")],
|
|
676
690
|
_request_timeout: Union[
|
|
677
691
|
None,
|
|
678
692
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -685,15 +699,13 @@ class OrganizationApi:
|
|
|
685
699
|
_content_type: Optional[StrictStr] = None,
|
|
686
700
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
687
701
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
688
|
-
) -> ApiResponse[
|
|
689
|
-
"""Get
|
|
702
|
+
) -> ApiResponse[OrganizationsOrganizationDetailResponse]:
|
|
703
|
+
"""Get Organization by it's ID
|
|
690
704
|
|
|
691
|
-
Get
|
|
705
|
+
Get Organization by it's ID
|
|
692
706
|
|
|
693
|
-
:param
|
|
694
|
-
:type
|
|
695
|
-
:param offset: Record offset
|
|
696
|
-
:type offset: int
|
|
707
|
+
:param id: Organization's ID (required)
|
|
708
|
+
:type id: str
|
|
697
709
|
:param _request_timeout: timeout setting for this request. If one
|
|
698
710
|
number provided, it will be total request
|
|
699
711
|
timeout. It can also be a pair (tuple) of
|
|
@@ -716,9 +728,8 @@ class OrganizationApi:
|
|
|
716
728
|
:return: Returns the result object.
|
|
717
729
|
""" # noqa: E501
|
|
718
730
|
|
|
719
|
-
_param = self.
|
|
720
|
-
|
|
721
|
-
offset=offset,
|
|
731
|
+
_param = self._api_v1_organizations_id_get_serialize(
|
|
732
|
+
id=id,
|
|
722
733
|
_request_auth=_request_auth,
|
|
723
734
|
_content_type=_content_type,
|
|
724
735
|
_headers=_headers,
|
|
@@ -726,9 +737,9 @@ class OrganizationApi:
|
|
|
726
737
|
)
|
|
727
738
|
|
|
728
739
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
729
|
-
'200': "
|
|
730
|
-
'400': "
|
|
731
|
-
'503': "
|
|
740
|
+
'200': "OrganizationsOrganizationDetailResponse",
|
|
741
|
+
'400': "OrganizationsOrganizationDetailResponse",
|
|
742
|
+
'503': "OrganizationsOrganizationDetailResponse",
|
|
732
743
|
}
|
|
733
744
|
response_data = self.api_client.call_api(
|
|
734
745
|
*_param,
|
|
@@ -742,10 +753,9 @@ class OrganizationApi:
|
|
|
742
753
|
|
|
743
754
|
|
|
744
755
|
@validate_call
|
|
745
|
-
def
|
|
756
|
+
def api_v1_organizations_id_get_without_preload_content(
|
|
746
757
|
self,
|
|
747
|
-
|
|
748
|
-
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
758
|
+
id: Annotated[StrictStr, Field(description="Organization's ID")],
|
|
749
759
|
_request_timeout: Union[
|
|
750
760
|
None,
|
|
751
761
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -759,14 +769,12 @@ class OrganizationApi:
|
|
|
759
769
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
760
770
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
761
771
|
) -> RESTResponseType:
|
|
762
|
-
"""Get
|
|
772
|
+
"""Get Organization by it's ID
|
|
763
773
|
|
|
764
|
-
Get
|
|
774
|
+
Get Organization by it's ID
|
|
765
775
|
|
|
766
|
-
:param
|
|
767
|
-
:type
|
|
768
|
-
:param offset: Record offset
|
|
769
|
-
:type offset: int
|
|
776
|
+
:param id: Organization's ID (required)
|
|
777
|
+
:type id: str
|
|
770
778
|
:param _request_timeout: timeout setting for this request. If one
|
|
771
779
|
number provided, it will be total request
|
|
772
780
|
timeout. It can also be a pair (tuple) of
|
|
@@ -789,9 +797,8 @@ class OrganizationApi:
|
|
|
789
797
|
:return: Returns the result object.
|
|
790
798
|
""" # noqa: E501
|
|
791
799
|
|
|
792
|
-
_param = self.
|
|
793
|
-
|
|
794
|
-
offset=offset,
|
|
800
|
+
_param = self._api_v1_organizations_id_get_serialize(
|
|
801
|
+
id=id,
|
|
795
802
|
_request_auth=_request_auth,
|
|
796
803
|
_content_type=_content_type,
|
|
797
804
|
_headers=_headers,
|
|
@@ -799,9 +806,9 @@ class OrganizationApi:
|
|
|
799
806
|
)
|
|
800
807
|
|
|
801
808
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
802
|
-
'200': "
|
|
803
|
-
'400': "
|
|
804
|
-
'503': "
|
|
809
|
+
'200': "OrganizationsOrganizationDetailResponse",
|
|
810
|
+
'400': "OrganizationsOrganizationDetailResponse",
|
|
811
|
+
'503': "OrganizationsOrganizationDetailResponse",
|
|
805
812
|
}
|
|
806
813
|
response_data = self.api_client.call_api(
|
|
807
814
|
*_param,
|
|
@@ -810,10 +817,9 @@ class OrganizationApi:
|
|
|
810
817
|
return response_data.response
|
|
811
818
|
|
|
812
819
|
|
|
813
|
-
def
|
|
820
|
+
def _api_v1_organizations_id_get_serialize(
|
|
814
821
|
self,
|
|
815
|
-
|
|
816
|
-
offset,
|
|
822
|
+
id,
|
|
817
823
|
_request_auth,
|
|
818
824
|
_content_type,
|
|
819
825
|
_headers,
|
|
@@ -835,15 +841,9 @@ class OrganizationApi:
|
|
|
835
841
|
_body_params: Optional[bytes] = None
|
|
836
842
|
|
|
837
843
|
# process the path parameters
|
|
844
|
+
if id is not None:
|
|
845
|
+
_path_params['id'] = id
|
|
838
846
|
# process the query parameters
|
|
839
|
-
if limit is not None:
|
|
840
|
-
|
|
841
|
-
_query_params.append(('limit', limit))
|
|
842
|
-
|
|
843
|
-
if offset is not None:
|
|
844
|
-
|
|
845
|
-
_query_params.append(('offset', offset))
|
|
846
|
-
|
|
847
847
|
# process the header parameters
|
|
848
848
|
# process the form parameters
|
|
849
849
|
# process the body parameter
|
|
@@ -860,12 +860,13 @@ class OrganizationApi:
|
|
|
860
860
|
|
|
861
861
|
# authentication setting
|
|
862
862
|
_auth_settings: List[str] = [
|
|
863
|
+
'TokenAuth',
|
|
863
864
|
'ApiKeyAuth'
|
|
864
865
|
]
|
|
865
866
|
|
|
866
867
|
return self.api_client.param_serialize(
|
|
867
868
|
method='GET',
|
|
868
|
-
resource_path='/api/v1/organizations/',
|
|
869
|
+
resource_path='/api/v1/organizations/{id}',
|
|
869
870
|
path_params=_path_params,
|
|
870
871
|
query_params=_query_params,
|
|
871
872
|
header_params=_header_params,
|
|
@@ -882,9 +883,9 @@ class OrganizationApi:
|
|
|
882
883
|
|
|
883
884
|
|
|
884
885
|
@validate_call
|
|
885
|
-
def
|
|
886
|
+
def api_v1_organizations_post(
|
|
886
887
|
self,
|
|
887
|
-
|
|
888
|
+
request: Annotated[OrganizationsOrganizationCreateRequest, Field(description="Body")],
|
|
888
889
|
_request_timeout: Union[
|
|
889
890
|
None,
|
|
890
891
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -898,12 +899,12 @@ class OrganizationApi:
|
|
|
898
899
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
899
900
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
900
901
|
) -> OrganizationsOrganizationDetailResponse:
|
|
901
|
-
"""
|
|
902
|
+
"""Create an Organization
|
|
902
903
|
|
|
903
|
-
|
|
904
|
+
Create an Organization
|
|
904
905
|
|
|
905
|
-
:param
|
|
906
|
-
:type
|
|
906
|
+
:param request: Body (required)
|
|
907
|
+
:type request: OrganizationsOrganizationCreateRequest
|
|
907
908
|
:param _request_timeout: timeout setting for this request. If one
|
|
908
909
|
number provided, it will be total request
|
|
909
910
|
timeout. It can also be a pair (tuple) of
|
|
@@ -926,8 +927,8 @@ class OrganizationApi:
|
|
|
926
927
|
:return: Returns the result object.
|
|
927
928
|
""" # noqa: E501
|
|
928
929
|
|
|
929
|
-
_param = self.
|
|
930
|
-
|
|
930
|
+
_param = self._api_v1_organizations_post_serialize(
|
|
931
|
+
request=request,
|
|
931
932
|
_request_auth=_request_auth,
|
|
932
933
|
_content_type=_content_type,
|
|
933
934
|
_headers=_headers,
|
|
@@ -951,9 +952,9 @@ class OrganizationApi:
|
|
|
951
952
|
|
|
952
953
|
|
|
953
954
|
@validate_call
|
|
954
|
-
def
|
|
955
|
+
def api_v1_organizations_post_with_http_info(
|
|
955
956
|
self,
|
|
956
|
-
|
|
957
|
+
request: Annotated[OrganizationsOrganizationCreateRequest, Field(description="Body")],
|
|
957
958
|
_request_timeout: Union[
|
|
958
959
|
None,
|
|
959
960
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -967,12 +968,12 @@ class OrganizationApi:
|
|
|
967
968
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
968
969
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
969
970
|
) -> ApiResponse[OrganizationsOrganizationDetailResponse]:
|
|
970
|
-
"""
|
|
971
|
+
"""Create an Organization
|
|
971
972
|
|
|
972
|
-
|
|
973
|
+
Create an Organization
|
|
973
974
|
|
|
974
|
-
:param
|
|
975
|
-
:type
|
|
975
|
+
:param request: Body (required)
|
|
976
|
+
:type request: OrganizationsOrganizationCreateRequest
|
|
976
977
|
:param _request_timeout: timeout setting for this request. If one
|
|
977
978
|
number provided, it will be total request
|
|
978
979
|
timeout. It can also be a pair (tuple) of
|
|
@@ -995,8 +996,8 @@ class OrganizationApi:
|
|
|
995
996
|
:return: Returns the result object.
|
|
996
997
|
""" # noqa: E501
|
|
997
998
|
|
|
998
|
-
_param = self.
|
|
999
|
-
|
|
999
|
+
_param = self._api_v1_organizations_post_serialize(
|
|
1000
|
+
request=request,
|
|
1000
1001
|
_request_auth=_request_auth,
|
|
1001
1002
|
_content_type=_content_type,
|
|
1002
1003
|
_headers=_headers,
|
|
@@ -1020,9 +1021,9 @@ class OrganizationApi:
|
|
|
1020
1021
|
|
|
1021
1022
|
|
|
1022
1023
|
@validate_call
|
|
1023
|
-
def
|
|
1024
|
+
def api_v1_organizations_post_without_preload_content(
|
|
1024
1025
|
self,
|
|
1025
|
-
|
|
1026
|
+
request: Annotated[OrganizationsOrganizationCreateRequest, Field(description="Body")],
|
|
1026
1027
|
_request_timeout: Union[
|
|
1027
1028
|
None,
|
|
1028
1029
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1036,12 +1037,12 @@ class OrganizationApi:
|
|
|
1036
1037
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1037
1038
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1038
1039
|
) -> RESTResponseType:
|
|
1039
|
-
"""
|
|
1040
|
+
"""Create an Organization
|
|
1040
1041
|
|
|
1041
|
-
|
|
1042
|
+
Create an Organization
|
|
1042
1043
|
|
|
1043
|
-
:param
|
|
1044
|
-
:type
|
|
1044
|
+
:param request: Body (required)
|
|
1045
|
+
:type request: OrganizationsOrganizationCreateRequest
|
|
1045
1046
|
:param _request_timeout: timeout setting for this request. If one
|
|
1046
1047
|
number provided, it will be total request
|
|
1047
1048
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1064,8 +1065,8 @@ class OrganizationApi:
|
|
|
1064
1065
|
:return: Returns the result object.
|
|
1065
1066
|
""" # noqa: E501
|
|
1066
1067
|
|
|
1067
|
-
_param = self.
|
|
1068
|
-
|
|
1068
|
+
_param = self._api_v1_organizations_post_serialize(
|
|
1069
|
+
request=request,
|
|
1069
1070
|
_request_auth=_request_auth,
|
|
1070
1071
|
_content_type=_content_type,
|
|
1071
1072
|
_headers=_headers,
|
|
@@ -1084,9 +1085,9 @@ class OrganizationApi:
|
|
|
1084
1085
|
return response_data.response
|
|
1085
1086
|
|
|
1086
1087
|
|
|
1087
|
-
def
|
|
1088
|
+
def _api_v1_organizations_post_serialize(
|
|
1088
1089
|
self,
|
|
1089
|
-
|
|
1090
|
+
request,
|
|
1090
1091
|
_request_auth,
|
|
1091
1092
|
_content_type,
|
|
1092
1093
|
_headers,
|
|
@@ -1108,12 +1109,12 @@ class OrganizationApi:
|
|
|
1108
1109
|
_body_params: Optional[bytes] = None
|
|
1109
1110
|
|
|
1110
1111
|
# process the path parameters
|
|
1111
|
-
if id is not None:
|
|
1112
|
-
_path_params['id'] = id
|
|
1113
1112
|
# process the query parameters
|
|
1114
1113
|
# process the header parameters
|
|
1115
1114
|
# process the form parameters
|
|
1116
1115
|
# process the body parameter
|
|
1116
|
+
if request is not None:
|
|
1117
|
+
_body_params = request
|
|
1117
1118
|
|
|
1118
1119
|
|
|
1119
1120
|
# set the HTTP header `Accept`
|
|
@@ -1124,15 +1125,29 @@ class OrganizationApi:
|
|
|
1124
1125
|
]
|
|
1125
1126
|
)
|
|
1126
1127
|
|
|
1128
|
+
# set the HTTP header `Content-Type`
|
|
1129
|
+
if _content_type:
|
|
1130
|
+
_header_params['Content-Type'] = _content_type
|
|
1131
|
+
else:
|
|
1132
|
+
_default_content_type = (
|
|
1133
|
+
self.api_client.select_header_content_type(
|
|
1134
|
+
[
|
|
1135
|
+
'application/json'
|
|
1136
|
+
]
|
|
1137
|
+
)
|
|
1138
|
+
)
|
|
1139
|
+
if _default_content_type is not None:
|
|
1140
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1127
1141
|
|
|
1128
1142
|
# authentication setting
|
|
1129
1143
|
_auth_settings: List[str] = [
|
|
1144
|
+
'TokenAuth',
|
|
1130
1145
|
'ApiKeyAuth'
|
|
1131
1146
|
]
|
|
1132
1147
|
|
|
1133
1148
|
return self.api_client.param_serialize(
|
|
1134
|
-
method='
|
|
1135
|
-
resource_path='/api/v1/organizations/
|
|
1149
|
+
method='POST',
|
|
1150
|
+
resource_path='/api/v1/organizations/',
|
|
1136
1151
|
path_params=_path_params,
|
|
1137
1152
|
query_params=_query_params,
|
|
1138
1153
|
header_params=_header_params,
|
|
@@ -1149,9 +1164,9 @@ class OrganizationApi:
|
|
|
1149
1164
|
|
|
1150
1165
|
|
|
1151
1166
|
@validate_call
|
|
1152
|
-
def
|
|
1167
|
+
def api_v1_organizations_put(
|
|
1153
1168
|
self,
|
|
1154
|
-
request: Annotated[
|
|
1169
|
+
request: Annotated[OrganizationsOrganizationUpdateRequest, Field(description="Body")],
|
|
1155
1170
|
_request_timeout: Union[
|
|
1156
1171
|
None,
|
|
1157
1172
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1165,12 +1180,12 @@ class OrganizationApi:
|
|
|
1165
1180
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1166
1181
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1167
1182
|
) -> OrganizationsOrganizationDetailResponse:
|
|
1168
|
-
"""
|
|
1183
|
+
"""Update an Organization
|
|
1169
1184
|
|
|
1170
|
-
|
|
1185
|
+
Update an Organization
|
|
1171
1186
|
|
|
1172
1187
|
:param request: Body (required)
|
|
1173
|
-
:type request:
|
|
1188
|
+
:type request: OrganizationsOrganizationUpdateRequest
|
|
1174
1189
|
:param _request_timeout: timeout setting for this request. If one
|
|
1175
1190
|
number provided, it will be total request
|
|
1176
1191
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1193,7 +1208,7 @@ class OrganizationApi:
|
|
|
1193
1208
|
:return: Returns the result object.
|
|
1194
1209
|
""" # noqa: E501
|
|
1195
1210
|
|
|
1196
|
-
_param = self.
|
|
1211
|
+
_param = self._api_v1_organizations_put_serialize(
|
|
1197
1212
|
request=request,
|
|
1198
1213
|
_request_auth=_request_auth,
|
|
1199
1214
|
_content_type=_content_type,
|
|
@@ -1218,9 +1233,9 @@ class OrganizationApi:
|
|
|
1218
1233
|
|
|
1219
1234
|
|
|
1220
1235
|
@validate_call
|
|
1221
|
-
def
|
|
1236
|
+
def api_v1_organizations_put_with_http_info(
|
|
1222
1237
|
self,
|
|
1223
|
-
request: Annotated[
|
|
1238
|
+
request: Annotated[OrganizationsOrganizationUpdateRequest, Field(description="Body")],
|
|
1224
1239
|
_request_timeout: Union[
|
|
1225
1240
|
None,
|
|
1226
1241
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1234,12 +1249,12 @@ class OrganizationApi:
|
|
|
1234
1249
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1235
1250
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1236
1251
|
) -> ApiResponse[OrganizationsOrganizationDetailResponse]:
|
|
1237
|
-
"""
|
|
1252
|
+
"""Update an Organization
|
|
1238
1253
|
|
|
1239
|
-
|
|
1254
|
+
Update an Organization
|
|
1240
1255
|
|
|
1241
1256
|
:param request: Body (required)
|
|
1242
|
-
:type request:
|
|
1257
|
+
:type request: OrganizationsOrganizationUpdateRequest
|
|
1243
1258
|
:param _request_timeout: timeout setting for this request. If one
|
|
1244
1259
|
number provided, it will be total request
|
|
1245
1260
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1262,7 +1277,7 @@ class OrganizationApi:
|
|
|
1262
1277
|
:return: Returns the result object.
|
|
1263
1278
|
""" # noqa: E501
|
|
1264
1279
|
|
|
1265
|
-
_param = self.
|
|
1280
|
+
_param = self._api_v1_organizations_put_serialize(
|
|
1266
1281
|
request=request,
|
|
1267
1282
|
_request_auth=_request_auth,
|
|
1268
1283
|
_content_type=_content_type,
|
|
@@ -1287,9 +1302,9 @@ class OrganizationApi:
|
|
|
1287
1302
|
|
|
1288
1303
|
|
|
1289
1304
|
@validate_call
|
|
1290
|
-
def
|
|
1305
|
+
def api_v1_organizations_put_without_preload_content(
|
|
1291
1306
|
self,
|
|
1292
|
-
request: Annotated[
|
|
1307
|
+
request: Annotated[OrganizationsOrganizationUpdateRequest, Field(description="Body")],
|
|
1293
1308
|
_request_timeout: Union[
|
|
1294
1309
|
None,
|
|
1295
1310
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1303,12 +1318,12 @@ class OrganizationApi:
|
|
|
1303
1318
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1304
1319
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1305
1320
|
) -> RESTResponseType:
|
|
1306
|
-
"""
|
|
1321
|
+
"""Update an Organization
|
|
1307
1322
|
|
|
1308
|
-
|
|
1323
|
+
Update an Organization
|
|
1309
1324
|
|
|
1310
1325
|
:param request: Body (required)
|
|
1311
|
-
:type request:
|
|
1326
|
+
:type request: OrganizationsOrganizationUpdateRequest
|
|
1312
1327
|
:param _request_timeout: timeout setting for this request. If one
|
|
1313
1328
|
number provided, it will be total request
|
|
1314
1329
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1331,7 +1346,7 @@ class OrganizationApi:
|
|
|
1331
1346
|
:return: Returns the result object.
|
|
1332
1347
|
""" # noqa: E501
|
|
1333
1348
|
|
|
1334
|
-
_param = self.
|
|
1349
|
+
_param = self._api_v1_organizations_put_serialize(
|
|
1335
1350
|
request=request,
|
|
1336
1351
|
_request_auth=_request_auth,
|
|
1337
1352
|
_content_type=_content_type,
|
|
@@ -1351,7 +1366,7 @@ class OrganizationApi:
|
|
|
1351
1366
|
return response_data.response
|
|
1352
1367
|
|
|
1353
1368
|
|
|
1354
|
-
def
|
|
1369
|
+
def _api_v1_organizations_put_serialize(
|
|
1355
1370
|
self,
|
|
1356
1371
|
request,
|
|
1357
1372
|
_request_auth,
|
|
@@ -1407,11 +1422,12 @@ class OrganizationApi:
|
|
|
1407
1422
|
|
|
1408
1423
|
# authentication setting
|
|
1409
1424
|
_auth_settings: List[str] = [
|
|
1425
|
+
'TokenAuth',
|
|
1410
1426
|
'ApiKeyAuth'
|
|
1411
1427
|
]
|
|
1412
1428
|
|
|
1413
1429
|
return self.api_client.param_serialize(
|
|
1414
|
-
method='
|
|
1430
|
+
method='PUT',
|
|
1415
1431
|
resource_path='/api/v1/organizations/',
|
|
1416
1432
|
path_params=_path_params,
|
|
1417
1433
|
query_params=_query_params,
|
|
@@ -1429,9 +1445,9 @@ class OrganizationApi:
|
|
|
1429
1445
|
|
|
1430
1446
|
|
|
1431
1447
|
@validate_call
|
|
1432
|
-
def
|
|
1448
|
+
def api_v1_organizations_uid_organization_uid_get(
|
|
1433
1449
|
self,
|
|
1434
|
-
|
|
1450
|
+
organization_uid: Annotated[StrictStr, Field(description="Organization's UID")],
|
|
1435
1451
|
_request_timeout: Union[
|
|
1436
1452
|
None,
|
|
1437
1453
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1445,12 +1461,12 @@ class OrganizationApi:
|
|
|
1445
1461
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1446
1462
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1447
1463
|
) -> OrganizationsOrganizationDetailResponse:
|
|
1448
|
-
"""
|
|
1464
|
+
"""Get Organization by its UID
|
|
1449
1465
|
|
|
1450
|
-
|
|
1466
|
+
Get Organization by its UID
|
|
1451
1467
|
|
|
1452
|
-
:param
|
|
1453
|
-
:type
|
|
1468
|
+
:param organization_uid: Organization's UID (required)
|
|
1469
|
+
:type organization_uid: str
|
|
1454
1470
|
:param _request_timeout: timeout setting for this request. If one
|
|
1455
1471
|
number provided, it will be total request
|
|
1456
1472
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1473,8 +1489,8 @@ class OrganizationApi:
|
|
|
1473
1489
|
:return: Returns the result object.
|
|
1474
1490
|
""" # noqa: E501
|
|
1475
1491
|
|
|
1476
|
-
_param = self.
|
|
1477
|
-
|
|
1492
|
+
_param = self._api_v1_organizations_uid_organization_uid_get_serialize(
|
|
1493
|
+
organization_uid=organization_uid,
|
|
1478
1494
|
_request_auth=_request_auth,
|
|
1479
1495
|
_content_type=_content_type,
|
|
1480
1496
|
_headers=_headers,
|
|
@@ -1498,9 +1514,9 @@ class OrganizationApi:
|
|
|
1498
1514
|
|
|
1499
1515
|
|
|
1500
1516
|
@validate_call
|
|
1501
|
-
def
|
|
1517
|
+
def api_v1_organizations_uid_organization_uid_get_with_http_info(
|
|
1502
1518
|
self,
|
|
1503
|
-
|
|
1519
|
+
organization_uid: Annotated[StrictStr, Field(description="Organization's UID")],
|
|
1504
1520
|
_request_timeout: Union[
|
|
1505
1521
|
None,
|
|
1506
1522
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1514,12 +1530,12 @@ class OrganizationApi:
|
|
|
1514
1530
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1515
1531
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1516
1532
|
) -> ApiResponse[OrganizationsOrganizationDetailResponse]:
|
|
1517
|
-
"""
|
|
1533
|
+
"""Get Organization by its UID
|
|
1518
1534
|
|
|
1519
|
-
|
|
1535
|
+
Get Organization by its UID
|
|
1520
1536
|
|
|
1521
|
-
:param
|
|
1522
|
-
:type
|
|
1537
|
+
:param organization_uid: Organization's UID (required)
|
|
1538
|
+
:type organization_uid: str
|
|
1523
1539
|
:param _request_timeout: timeout setting for this request. If one
|
|
1524
1540
|
number provided, it will be total request
|
|
1525
1541
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1542,8 +1558,8 @@ class OrganizationApi:
|
|
|
1542
1558
|
:return: Returns the result object.
|
|
1543
1559
|
""" # noqa: E501
|
|
1544
1560
|
|
|
1545
|
-
_param = self.
|
|
1546
|
-
|
|
1561
|
+
_param = self._api_v1_organizations_uid_organization_uid_get_serialize(
|
|
1562
|
+
organization_uid=organization_uid,
|
|
1547
1563
|
_request_auth=_request_auth,
|
|
1548
1564
|
_content_type=_content_type,
|
|
1549
1565
|
_headers=_headers,
|
|
@@ -1567,9 +1583,9 @@ class OrganizationApi:
|
|
|
1567
1583
|
|
|
1568
1584
|
|
|
1569
1585
|
@validate_call
|
|
1570
|
-
def
|
|
1586
|
+
def api_v1_organizations_uid_organization_uid_get_without_preload_content(
|
|
1571
1587
|
self,
|
|
1572
|
-
|
|
1588
|
+
organization_uid: Annotated[StrictStr, Field(description="Organization's UID")],
|
|
1573
1589
|
_request_timeout: Union[
|
|
1574
1590
|
None,
|
|
1575
1591
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1583,12 +1599,12 @@ class OrganizationApi:
|
|
|
1583
1599
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1584
1600
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1585
1601
|
) -> RESTResponseType:
|
|
1586
|
-
"""
|
|
1602
|
+
"""Get Organization by its UID
|
|
1587
1603
|
|
|
1588
|
-
|
|
1604
|
+
Get Organization by its UID
|
|
1589
1605
|
|
|
1590
|
-
:param
|
|
1591
|
-
:type
|
|
1606
|
+
:param organization_uid: Organization's UID (required)
|
|
1607
|
+
:type organization_uid: str
|
|
1592
1608
|
:param _request_timeout: timeout setting for this request. If one
|
|
1593
1609
|
number provided, it will be total request
|
|
1594
1610
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1611,8 +1627,8 @@ class OrganizationApi:
|
|
|
1611
1627
|
:return: Returns the result object.
|
|
1612
1628
|
""" # noqa: E501
|
|
1613
1629
|
|
|
1614
|
-
_param = self.
|
|
1615
|
-
|
|
1630
|
+
_param = self._api_v1_organizations_uid_organization_uid_get_serialize(
|
|
1631
|
+
organization_uid=organization_uid,
|
|
1616
1632
|
_request_auth=_request_auth,
|
|
1617
1633
|
_content_type=_content_type,
|
|
1618
1634
|
_headers=_headers,
|
|
@@ -1631,9 +1647,9 @@ class OrganizationApi:
|
|
|
1631
1647
|
return response_data.response
|
|
1632
1648
|
|
|
1633
1649
|
|
|
1634
|
-
def
|
|
1650
|
+
def _api_v1_organizations_uid_organization_uid_get_serialize(
|
|
1635
1651
|
self,
|
|
1636
|
-
|
|
1652
|
+
organization_uid,
|
|
1637
1653
|
_request_auth,
|
|
1638
1654
|
_content_type,
|
|
1639
1655
|
_headers,
|
|
@@ -1655,12 +1671,12 @@ class OrganizationApi:
|
|
|
1655
1671
|
_body_params: Optional[bytes] = None
|
|
1656
1672
|
|
|
1657
1673
|
# process the path parameters
|
|
1674
|
+
if organization_uid is not None:
|
|
1675
|
+
_path_params['organization_uid'] = organization_uid
|
|
1658
1676
|
# process the query parameters
|
|
1659
1677
|
# process the header parameters
|
|
1660
1678
|
# process the form parameters
|
|
1661
1679
|
# process the body parameter
|
|
1662
|
-
if request is not None:
|
|
1663
|
-
_body_params = request
|
|
1664
1680
|
|
|
1665
1681
|
|
|
1666
1682
|
# set the HTTP header `Accept`
|
|
@@ -1671,28 +1687,16 @@ class OrganizationApi:
|
|
|
1671
1687
|
]
|
|
1672
1688
|
)
|
|
1673
1689
|
|
|
1674
|
-
# set the HTTP header `Content-Type`
|
|
1675
|
-
if _content_type:
|
|
1676
|
-
_header_params['Content-Type'] = _content_type
|
|
1677
|
-
else:
|
|
1678
|
-
_default_content_type = (
|
|
1679
|
-
self.api_client.select_header_content_type(
|
|
1680
|
-
[
|
|
1681
|
-
'application/json'
|
|
1682
|
-
]
|
|
1683
|
-
)
|
|
1684
|
-
)
|
|
1685
|
-
if _default_content_type is not None:
|
|
1686
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1687
1690
|
|
|
1688
1691
|
# authentication setting
|
|
1689
1692
|
_auth_settings: List[str] = [
|
|
1693
|
+
'TokenAuth',
|
|
1690
1694
|
'ApiKeyAuth'
|
|
1691
1695
|
]
|
|
1692
1696
|
|
|
1693
1697
|
return self.api_client.param_serialize(
|
|
1694
|
-
method='
|
|
1695
|
-
resource_path='/api/v1/organizations/',
|
|
1698
|
+
method='GET',
|
|
1699
|
+
resource_path='/api/v1/organizations/uid/{organization_uid}',
|
|
1696
1700
|
path_params=_path_params,
|
|
1697
1701
|
query_params=_query_params,
|
|
1698
1702
|
header_params=_header_params,
|
|
@@ -1727,7 +1731,7 @@ class OrganizationApi:
|
|
|
1727
1731
|
) -> OrganizationsOrganizationSetWorkbenchResponse:
|
|
1728
1732
|
"""Set Organization's Workbench Version
|
|
1729
1733
|
|
|
1730
|
-
Set Organization's Workbench Version
|
|
1734
|
+
Set Organization's Workbench Version.
|
|
1731
1735
|
|
|
1732
1736
|
:param request: Body (required)
|
|
1733
1737
|
:type request: OrganizationsOrganizationSetWorkbenchRequest
|
|
@@ -1796,7 +1800,7 @@ class OrganizationApi:
|
|
|
1796
1800
|
) -> ApiResponse[OrganizationsOrganizationSetWorkbenchResponse]:
|
|
1797
1801
|
"""Set Organization's Workbench Version
|
|
1798
1802
|
|
|
1799
|
-
Set Organization's Workbench Version
|
|
1803
|
+
Set Organization's Workbench Version.
|
|
1800
1804
|
|
|
1801
1805
|
:param request: Body (required)
|
|
1802
1806
|
:type request: OrganizationsOrganizationSetWorkbenchRequest
|
|
@@ -1865,7 +1869,7 @@ class OrganizationApi:
|
|
|
1865
1869
|
) -> RESTResponseType:
|
|
1866
1870
|
"""Set Organization's Workbench Version
|
|
1867
1871
|
|
|
1868
|
-
Set Organization's Workbench Version
|
|
1872
|
+
Set Organization's Workbench Version.
|
|
1869
1873
|
|
|
1870
1874
|
:param request: Body (required)
|
|
1871
1875
|
:type request: OrganizationsOrganizationSetWorkbenchRequest
|
|
@@ -1954,6 +1958,7 @@ class OrganizationApi:
|
|
|
1954
1958
|
|
|
1955
1959
|
# authentication setting
|
|
1956
1960
|
_auth_settings: List[str] = [
|
|
1961
|
+
'TokenAuth',
|
|
1957
1962
|
'ApiKeyAuth'
|
|
1958
1963
|
]
|
|
1959
1964
|
|