neurograph-core 1.202508152055__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.
Files changed (64) hide show
  1. neurograph/v1/__init__.py +14 -4
  2. neurograph/v1/api/__init__.py +1 -0
  3. neurograph/v1/api/client_api.py +53 -53
  4. neurograph/v1/api/client_metadata_api.py +19 -19
  5. neurograph/v1/api/dagster_api.py +306 -0
  6. neurograph/v1/api/organization_api.py +281 -13
  7. neurograph/v1/api/organization_metadata_api.py +19 -19
  8. neurograph/v1/api/workbench_api.py +3 -3
  9. neurograph/v1/models/__init__.py +6 -2
  10. neurograph/v1/models/client_client.py +4 -4
  11. neurograph/v1/models/client_client_upsert_request.py +95 -0
  12. neurograph/v1/models/client_client_upsert_response.py +111 -0
  13. neurograph/v1/models/client_client_url_upsert_request.py +4 -4
  14. neurograph/v1/models/client_client_url_upsert_response.py +14 -7
  15. neurograph/v1/models/client_client_urls_response.py +1 -1
  16. neurograph/v1/models/client_kpi.py +1 -1
  17. neurograph/v1/models/client_metadata.py +3 -3
  18. neurograph/v1/models/client_persona.py +4 -4
  19. neurograph/v1/models/client_persona_factor.py +1 -1
  20. neurograph/v1/models/client_persona_personality_trait.py +1 -1
  21. neurograph/v1/models/client_query.py +1 -1
  22. neurograph/v1/models/dagster_dagster_log_create_request.py +93 -0
  23. neurograph/v1/models/dagster_dagster_log_create_response.py +91 -0
  24. neurograph/v1/models/db_client_url.py +14 -7
  25. neurograph/v1/models/db_persona_factor_create_params.py +1 -1
  26. neurograph/v1/models/organizations_brand_detail_response.py +2 -2
  27. neurograph/v1/models/organizations_brand_upsert_request.py +2 -2
  28. neurograph/v1/models/organizations_metadata.py +3 -3
  29. neurograph/v1/models/organizations_organization.py +1 -1
  30. neurograph/v1/models/organizations_organization_detail_response.py +1 -1
  31. neurograph/v1/models/organizations_organization_set_workbench_request.py +2 -2
  32. neurograph/v1/models/organizations_organization_set_workbench_response.py +2 -2
  33. neurograph/v1/models/organizations_organization_update_request.py +4 -4
  34. neurograph/v1/models/organizations_workbench_config.py +2 -2
  35. neurograph/v1/models/personas_delete_many_persona_instances_request.py +2 -2
  36. neurograph/v1/models/personas_kpi.py +1 -1
  37. neurograph/v1/models/personas_match_criteria_row.py +1 -1
  38. neurograph/v1/models/personas_match_criteria_row_in.py +2 -2
  39. neurograph/v1/models/personas_persona.py +4 -4
  40. neurograph/v1/models/personas_persona_factor.py +1 -1
  41. neurograph/v1/models/personas_persona_factor_resp.py +1 -1
  42. neurograph/v1/models/personas_persona_insight_create_request.py +2 -2
  43. neurograph/v1/models/personas_persona_insight_create_response.py +1 -1
  44. neurograph/v1/models/personas_persona_instance_create_request.py +1 -1
  45. neurograph/v1/models/personas_persona_instance_create_response.py +2 -2
  46. neurograph/v1/models/personas_persona_instances_delete_response.py +2 -2
  47. neurograph/v1/models/personas_persona_kpi_req.py +2 -2
  48. neurograph/v1/models/personas_persona_kpi_resp.py +1 -1
  49. neurograph/v1/models/personas_persona_personality_trait.py +1 -1
  50. neurograph/v1/models/personas_persona_seed_create_request.py +2 -2
  51. neurograph/v1/models/personas_persona_seed_create_response.py +3 -3
  52. neurograph/v1/models/personas_persona_seeds_delete_request.py +2 -2
  53. neurograph/v1/models/personas_persona_seeds_delete_response.py +2 -2
  54. neurograph/v1/models/personas_personality_trait_in.py +2 -2
  55. neurograph/v1/models/personas_personality_trait_out.py +1 -1
  56. neurograph/v1/models/pgtype_infinity_modifier.py +38 -0
  57. neurograph/v1/models/pgtype_timestamp.py +92 -0
  58. neurograph/v1/models/workbench_workbench_version.py +3 -3
  59. neurograph/v1/models/workbench_workbench_version_response.py +3 -3
  60. neurograph/v1/models/workbench_workbench_version_upsert_request.py +2 -2
  61. {neurograph_core-1.202508152055.dist-info → neurograph_core-1.202508201827.dist-info}/METADATA +1 -1
  62. {neurograph_core-1.202508152055.dist-info → neurograph_core-1.202508201827.dist-info}/RECORD +64 -57
  63. {neurograph_core-1.202508152055.dist-info → neurograph_core-1.202508201827.dist-info}/WHEEL +0 -0
  64. {neurograph_core-1.202508152055.dist-info → neurograph_core-1.202508201827.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,306 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Neurograph Core
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field
20
+ from typing_extensions import Annotated
21
+ from neurograph.v1.models.dagster_dagster_log_create_request import DagsterDagsterLogCreateRequest
22
+ from neurograph.v1.models.dagster_dagster_log_create_response import DagsterDagsterLogCreateResponse
23
+
24
+ from neurograph.v1.api_client import ApiClient, RequestSerialized
25
+ from neurograph.v1.api_response import ApiResponse
26
+ from neurograph.v1.rest import RESTResponseType
27
+
28
+
29
+ class DagsterApi:
30
+ """NOTE: This class is auto generated by OpenAPI Generator
31
+ Ref: https://openapi-generator.tech
32
+
33
+ Do not edit the class manually.
34
+ """
35
+
36
+ def __init__(self, api_client=None) -> None:
37
+ if api_client is None:
38
+ api_client = ApiClient.get_default()
39
+ self.api_client = api_client
40
+
41
+
42
+ @validate_call
43
+ def api_v1_dagster_log_post(
44
+ self,
45
+ request: Annotated[DagsterDagsterLogCreateRequest, Field(description="Body")],
46
+ _request_timeout: Union[
47
+ None,
48
+ Annotated[StrictFloat, Field(gt=0)],
49
+ Tuple[
50
+ Annotated[StrictFloat, Field(gt=0)],
51
+ Annotated[StrictFloat, Field(gt=0)]
52
+ ]
53
+ ] = None,
54
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
55
+ _content_type: Optional[StrictStr] = None,
56
+ _headers: Optional[Dict[StrictStr, Any]] = None,
57
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
58
+ ) -> DagsterDagsterLogCreateResponse:
59
+ """Log a Dagster Event
60
+
61
+ Log a Dagster Event
62
+
63
+ :param request: Body (required)
64
+ :type request: DagsterDagsterLogCreateRequest
65
+ :param _request_timeout: timeout setting for this request. If one
66
+ number provided, it will be total request
67
+ timeout. It can also be a pair (tuple) of
68
+ (connection, read) timeouts.
69
+ :type _request_timeout: int, tuple(int, int), optional
70
+ :param _request_auth: set to override the auth_settings for an a single
71
+ request; this effectively ignores the
72
+ authentication in the spec for a single request.
73
+ :type _request_auth: dict, optional
74
+ :param _content_type: force content-type for the request.
75
+ :type _content_type: str, Optional
76
+ :param _headers: set to override the headers for a single
77
+ request; this effectively ignores the headers
78
+ in the spec for a single request.
79
+ :type _headers: dict, optional
80
+ :param _host_index: set to override the host_index for a single
81
+ request; this effectively ignores the host_index
82
+ in the spec for a single request.
83
+ :type _host_index: int, optional
84
+ :return: Returns the result object.
85
+ """ # noqa: E501
86
+
87
+ _param = self._api_v1_dagster_log_post_serialize(
88
+ request=request,
89
+ _request_auth=_request_auth,
90
+ _content_type=_content_type,
91
+ _headers=_headers,
92
+ _host_index=_host_index
93
+ )
94
+
95
+ _response_types_map: Dict[str, Optional[str]] = {
96
+ '200': "DagsterDagsterLogCreateResponse",
97
+ '400': "DagsterDagsterLogCreateResponse",
98
+ '503': "DagsterDagsterLogCreateResponse",
99
+ }
100
+ response_data = self.api_client.call_api(
101
+ *_param,
102
+ _request_timeout=_request_timeout
103
+ )
104
+ response_data.read()
105
+ return self.api_client.response_deserialize(
106
+ response_data=response_data,
107
+ response_types_map=_response_types_map,
108
+ ).data
109
+
110
+
111
+ @validate_call
112
+ def api_v1_dagster_log_post_with_http_info(
113
+ self,
114
+ request: Annotated[DagsterDagsterLogCreateRequest, Field(description="Body")],
115
+ _request_timeout: Union[
116
+ None,
117
+ Annotated[StrictFloat, Field(gt=0)],
118
+ Tuple[
119
+ Annotated[StrictFloat, Field(gt=0)],
120
+ Annotated[StrictFloat, Field(gt=0)]
121
+ ]
122
+ ] = None,
123
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
124
+ _content_type: Optional[StrictStr] = None,
125
+ _headers: Optional[Dict[StrictStr, Any]] = None,
126
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
127
+ ) -> ApiResponse[DagsterDagsterLogCreateResponse]:
128
+ """Log a Dagster Event
129
+
130
+ Log a Dagster Event
131
+
132
+ :param request: Body (required)
133
+ :type request: DagsterDagsterLogCreateRequest
134
+ :param _request_timeout: timeout setting for this request. If one
135
+ number provided, it will be total request
136
+ timeout. It can also be a pair (tuple) of
137
+ (connection, read) timeouts.
138
+ :type _request_timeout: int, tuple(int, int), optional
139
+ :param _request_auth: set to override the auth_settings for an a single
140
+ request; this effectively ignores the
141
+ authentication in the spec for a single request.
142
+ :type _request_auth: dict, optional
143
+ :param _content_type: force content-type for the request.
144
+ :type _content_type: str, Optional
145
+ :param _headers: set to override the headers for a single
146
+ request; this effectively ignores the headers
147
+ in the spec for a single request.
148
+ :type _headers: dict, optional
149
+ :param _host_index: set to override the host_index for a single
150
+ request; this effectively ignores the host_index
151
+ in the spec for a single request.
152
+ :type _host_index: int, optional
153
+ :return: Returns the result object.
154
+ """ # noqa: E501
155
+
156
+ _param = self._api_v1_dagster_log_post_serialize(
157
+ request=request,
158
+ _request_auth=_request_auth,
159
+ _content_type=_content_type,
160
+ _headers=_headers,
161
+ _host_index=_host_index
162
+ )
163
+
164
+ _response_types_map: Dict[str, Optional[str]] = {
165
+ '200': "DagsterDagsterLogCreateResponse",
166
+ '400': "DagsterDagsterLogCreateResponse",
167
+ '503': "DagsterDagsterLogCreateResponse",
168
+ }
169
+ response_data = self.api_client.call_api(
170
+ *_param,
171
+ _request_timeout=_request_timeout
172
+ )
173
+ response_data.read()
174
+ return self.api_client.response_deserialize(
175
+ response_data=response_data,
176
+ response_types_map=_response_types_map,
177
+ )
178
+
179
+
180
+ @validate_call
181
+ def api_v1_dagster_log_post_without_preload_content(
182
+ self,
183
+ request: Annotated[DagsterDagsterLogCreateRequest, Field(description="Body")],
184
+ _request_timeout: Union[
185
+ None,
186
+ Annotated[StrictFloat, Field(gt=0)],
187
+ Tuple[
188
+ Annotated[StrictFloat, Field(gt=0)],
189
+ Annotated[StrictFloat, Field(gt=0)]
190
+ ]
191
+ ] = None,
192
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
193
+ _content_type: Optional[StrictStr] = None,
194
+ _headers: Optional[Dict[StrictStr, Any]] = None,
195
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
196
+ ) -> RESTResponseType:
197
+ """Log a Dagster Event
198
+
199
+ Log a Dagster Event
200
+
201
+ :param request: Body (required)
202
+ :type request: DagsterDagsterLogCreateRequest
203
+ :param _request_timeout: timeout setting for this request. If one
204
+ number provided, it will be total request
205
+ timeout. It can also be a pair (tuple) of
206
+ (connection, read) timeouts.
207
+ :type _request_timeout: int, tuple(int, int), optional
208
+ :param _request_auth: set to override the auth_settings for an a single
209
+ request; this effectively ignores the
210
+ authentication in the spec for a single request.
211
+ :type _request_auth: dict, optional
212
+ :param _content_type: force content-type for the request.
213
+ :type _content_type: str, Optional
214
+ :param _headers: set to override the headers for a single
215
+ request; this effectively ignores the headers
216
+ in the spec for a single request.
217
+ :type _headers: dict, optional
218
+ :param _host_index: set to override the host_index for a single
219
+ request; this effectively ignores the host_index
220
+ in the spec for a single request.
221
+ :type _host_index: int, optional
222
+ :return: Returns the result object.
223
+ """ # noqa: E501
224
+
225
+ _param = self._api_v1_dagster_log_post_serialize(
226
+ request=request,
227
+ _request_auth=_request_auth,
228
+ _content_type=_content_type,
229
+ _headers=_headers,
230
+ _host_index=_host_index
231
+ )
232
+
233
+ _response_types_map: Dict[str, Optional[str]] = {
234
+ '200': "DagsterDagsterLogCreateResponse",
235
+ '400': "DagsterDagsterLogCreateResponse",
236
+ '503': "DagsterDagsterLogCreateResponse",
237
+ }
238
+ response_data = self.api_client.call_api(
239
+ *_param,
240
+ _request_timeout=_request_timeout
241
+ )
242
+ return response_data.response
243
+
244
+
245
+ def _api_v1_dagster_log_post_serialize(
246
+ self,
247
+ request,
248
+ _request_auth,
249
+ _content_type,
250
+ _headers,
251
+ _host_index,
252
+ ) -> RequestSerialized:
253
+
254
+ _host = None
255
+
256
+ _collection_formats: Dict[str, str] = {
257
+ }
258
+
259
+ _path_params: Dict[str, str] = {}
260
+ _query_params: List[Tuple[str, str]] = []
261
+ _header_params: Dict[str, Optional[str]] = _headers or {}
262
+ _form_params: List[Tuple[str, str]] = []
263
+ _files: Dict[
264
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
265
+ ] = {}
266
+ _body_params: Optional[bytes] = None
267
+
268
+ # process the path parameters
269
+ # process the query parameters
270
+ # process the header parameters
271
+ # process the form parameters
272
+ # process the body parameter
273
+ if request is not None:
274
+ _body_params = request
275
+
276
+
277
+ # set the HTTP header `Accept`
278
+ if 'Accept' not in _header_params:
279
+ _header_params['Accept'] = self.api_client.select_header_accept(
280
+ [
281
+ 'application/json'
282
+ ]
283
+ )
284
+
285
+
286
+ # authentication setting
287
+ _auth_settings: List[str] = [
288
+ 'TokenAuth'
289
+ ]
290
+
291
+ return self.api_client.param_serialize(
292
+ method='POST',
293
+ resource_path='/api/v1/dagster/log',
294
+ path_params=_path_params,
295
+ query_params=_query_params,
296
+ header_params=_header_params,
297
+ body=_body_params,
298
+ post_params=_form_params,
299
+ files=_files,
300
+ auth_settings=_auth_settings,
301
+ collection_formats=_collection_formats,
302
+ _host=_host,
303
+ _request_auth=_request_auth
304
+ )
305
+
306
+
@@ -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
@@ -63,9 +63,9 @@ class OrganizationApi:
63
63
  _headers: Optional[Dict[StrictStr, Any]] = None,
64
64
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
65
65
  ) -> OrganizationsBrandDetailResponse:
66
- """Set Organization's Branding
66
+ """Set an Organization's Branding
67
67
 
68
- UpsertCustomer branding for a specific organization
68
+ Set branding for a specific organization
69
69
 
70
70
  :param payload: Brand details (required)
71
71
  :type payload: OrganizationsBrandUpsertRequest
@@ -132,9 +132,9 @@ class OrganizationApi:
132
132
  _headers: Optional[Dict[StrictStr, Any]] = None,
133
133
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
134
134
  ) -> ApiResponse[OrganizationsBrandDetailResponse]:
135
- """Set Organization's Branding
135
+ """Set an Organization's Branding
136
136
 
137
- UpsertCustomer branding for a specific organization
137
+ Set branding for a specific organization
138
138
 
139
139
  :param payload: Brand details (required)
140
140
  :type payload: OrganizationsBrandUpsertRequest
@@ -201,9 +201,9 @@ class OrganizationApi:
201
201
  _headers: Optional[Dict[StrictStr, Any]] = None,
202
202
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
203
203
  ) -> RESTResponseType:
204
- """Set Organization's Branding
204
+ """Set an Organization's Branding
205
205
 
206
- UpsertCustomer branding for a specific organization
206
+ Set branding for a specific organization
207
207
 
208
208
  :param payload: Brand details (required)
209
209
  :type payload: OrganizationsBrandUpsertRequest
@@ -617,7 +617,7 @@ class OrganizationApi:
617
617
  @validate_call
618
618
  def api_v1_organizations_id_get(
619
619
  self,
620
- id: Annotated[StrictInt, Field(description="Organization's ID")],
620
+ id: Annotated[StrictStr, Field(description="Organization's ID")],
621
621
  _request_timeout: Union[
622
622
  None,
623
623
  Annotated[StrictFloat, Field(gt=0)],
@@ -636,7 +636,7 @@ class OrganizationApi:
636
636
  Get Organization by it's ID
637
637
 
638
638
  :param id: Organization's ID (required)
639
- :type id: int
639
+ :type id: str
640
640
  :param _request_timeout: timeout setting for this request. If one
641
641
  number provided, it will be total request
642
642
  timeout. It can also be a pair (tuple) of
@@ -686,7 +686,7 @@ class OrganizationApi:
686
686
  @validate_call
687
687
  def api_v1_organizations_id_get_with_http_info(
688
688
  self,
689
- id: Annotated[StrictInt, Field(description="Organization's ID")],
689
+ id: Annotated[StrictStr, Field(description="Organization's ID")],
690
690
  _request_timeout: Union[
691
691
  None,
692
692
  Annotated[StrictFloat, Field(gt=0)],
@@ -705,7 +705,7 @@ class OrganizationApi:
705
705
  Get Organization by it's ID
706
706
 
707
707
  :param id: Organization's ID (required)
708
- :type id: int
708
+ :type id: str
709
709
  :param _request_timeout: timeout setting for this request. If one
710
710
  number provided, it will be total request
711
711
  timeout. It can also be a pair (tuple) of
@@ -755,7 +755,7 @@ class OrganizationApi:
755
755
  @validate_call
756
756
  def api_v1_organizations_id_get_without_preload_content(
757
757
  self,
758
- id: Annotated[StrictInt, Field(description="Organization's ID")],
758
+ id: Annotated[StrictStr, Field(description="Organization's ID")],
759
759
  _request_timeout: Union[
760
760
  None,
761
761
  Annotated[StrictFloat, Field(gt=0)],
@@ -774,7 +774,7 @@ class OrganizationApi:
774
774
  Get Organization by it's ID
775
775
 
776
776
  :param id: Organization's ID (required)
777
- :type id: int
777
+ :type id: str
778
778
  :param _request_timeout: timeout setting for this request. If one
779
779
  number provided, it will be total request
780
780
  timeout. It can also be a pair (tuple) of
@@ -1444,6 +1444,274 @@ class OrganizationApi:
1444
1444
 
1445
1445
 
1446
1446
 
1447
+ @validate_call
1448
+ def api_v1_organizations_uid_organization_uid_get(
1449
+ self,
1450
+ organization_uid: Annotated[StrictStr, Field(description="Organization's UID")],
1451
+ _request_timeout: Union[
1452
+ None,
1453
+ Annotated[StrictFloat, Field(gt=0)],
1454
+ Tuple[
1455
+ Annotated[StrictFloat, Field(gt=0)],
1456
+ Annotated[StrictFloat, Field(gt=0)]
1457
+ ]
1458
+ ] = None,
1459
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1460
+ _content_type: Optional[StrictStr] = None,
1461
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1462
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1463
+ ) -> OrganizationsOrganizationDetailResponse:
1464
+ """Get Organization by its UID
1465
+
1466
+ Get Organization by its UID
1467
+
1468
+ :param organization_uid: Organization's UID (required)
1469
+ :type organization_uid: str
1470
+ :param _request_timeout: timeout setting for this request. If one
1471
+ number provided, it will be total request
1472
+ timeout. It can also be a pair (tuple) of
1473
+ (connection, read) timeouts.
1474
+ :type _request_timeout: int, tuple(int, int), optional
1475
+ :param _request_auth: set to override the auth_settings for an a single
1476
+ request; this effectively ignores the
1477
+ authentication in the spec for a single request.
1478
+ :type _request_auth: dict, optional
1479
+ :param _content_type: force content-type for the request.
1480
+ :type _content_type: str, Optional
1481
+ :param _headers: set to override the headers for a single
1482
+ request; this effectively ignores the headers
1483
+ in the spec for a single request.
1484
+ :type _headers: dict, optional
1485
+ :param _host_index: set to override the host_index for a single
1486
+ request; this effectively ignores the host_index
1487
+ in the spec for a single request.
1488
+ :type _host_index: int, optional
1489
+ :return: Returns the result object.
1490
+ """ # noqa: E501
1491
+
1492
+ _param = self._api_v1_organizations_uid_organization_uid_get_serialize(
1493
+ organization_uid=organization_uid,
1494
+ _request_auth=_request_auth,
1495
+ _content_type=_content_type,
1496
+ _headers=_headers,
1497
+ _host_index=_host_index
1498
+ )
1499
+
1500
+ _response_types_map: Dict[str, Optional[str]] = {
1501
+ '200': "OrganizationsOrganizationDetailResponse",
1502
+ '400': "OrganizationsOrganizationDetailResponse",
1503
+ '503': "OrganizationsOrganizationDetailResponse",
1504
+ }
1505
+ response_data = self.api_client.call_api(
1506
+ *_param,
1507
+ _request_timeout=_request_timeout
1508
+ )
1509
+ response_data.read()
1510
+ return self.api_client.response_deserialize(
1511
+ response_data=response_data,
1512
+ response_types_map=_response_types_map,
1513
+ ).data
1514
+
1515
+
1516
+ @validate_call
1517
+ def api_v1_organizations_uid_organization_uid_get_with_http_info(
1518
+ self,
1519
+ organization_uid: Annotated[StrictStr, Field(description="Organization's UID")],
1520
+ _request_timeout: Union[
1521
+ None,
1522
+ Annotated[StrictFloat, Field(gt=0)],
1523
+ Tuple[
1524
+ Annotated[StrictFloat, Field(gt=0)],
1525
+ Annotated[StrictFloat, Field(gt=0)]
1526
+ ]
1527
+ ] = None,
1528
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1529
+ _content_type: Optional[StrictStr] = None,
1530
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1531
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1532
+ ) -> ApiResponse[OrganizationsOrganizationDetailResponse]:
1533
+ """Get Organization by its UID
1534
+
1535
+ Get Organization by its UID
1536
+
1537
+ :param organization_uid: Organization's UID (required)
1538
+ :type organization_uid: str
1539
+ :param _request_timeout: timeout setting for this request. If one
1540
+ number provided, it will be total request
1541
+ timeout. It can also be a pair (tuple) of
1542
+ (connection, read) timeouts.
1543
+ :type _request_timeout: int, tuple(int, int), optional
1544
+ :param _request_auth: set to override the auth_settings for an a single
1545
+ request; this effectively ignores the
1546
+ authentication in the spec for a single request.
1547
+ :type _request_auth: dict, optional
1548
+ :param _content_type: force content-type for the request.
1549
+ :type _content_type: str, Optional
1550
+ :param _headers: set to override the headers for a single
1551
+ request; this effectively ignores the headers
1552
+ in the spec for a single request.
1553
+ :type _headers: dict, optional
1554
+ :param _host_index: set to override the host_index for a single
1555
+ request; this effectively ignores the host_index
1556
+ in the spec for a single request.
1557
+ :type _host_index: int, optional
1558
+ :return: Returns the result object.
1559
+ """ # noqa: E501
1560
+
1561
+ _param = self._api_v1_organizations_uid_organization_uid_get_serialize(
1562
+ organization_uid=organization_uid,
1563
+ _request_auth=_request_auth,
1564
+ _content_type=_content_type,
1565
+ _headers=_headers,
1566
+ _host_index=_host_index
1567
+ )
1568
+
1569
+ _response_types_map: Dict[str, Optional[str]] = {
1570
+ '200': "OrganizationsOrganizationDetailResponse",
1571
+ '400': "OrganizationsOrganizationDetailResponse",
1572
+ '503': "OrganizationsOrganizationDetailResponse",
1573
+ }
1574
+ response_data = self.api_client.call_api(
1575
+ *_param,
1576
+ _request_timeout=_request_timeout
1577
+ )
1578
+ response_data.read()
1579
+ return self.api_client.response_deserialize(
1580
+ response_data=response_data,
1581
+ response_types_map=_response_types_map,
1582
+ )
1583
+
1584
+
1585
+ @validate_call
1586
+ def api_v1_organizations_uid_organization_uid_get_without_preload_content(
1587
+ self,
1588
+ organization_uid: Annotated[StrictStr, Field(description="Organization's UID")],
1589
+ _request_timeout: Union[
1590
+ None,
1591
+ Annotated[StrictFloat, Field(gt=0)],
1592
+ Tuple[
1593
+ Annotated[StrictFloat, Field(gt=0)],
1594
+ Annotated[StrictFloat, Field(gt=0)]
1595
+ ]
1596
+ ] = None,
1597
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1598
+ _content_type: Optional[StrictStr] = None,
1599
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1600
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1601
+ ) -> RESTResponseType:
1602
+ """Get Organization by its UID
1603
+
1604
+ Get Organization by its UID
1605
+
1606
+ :param organization_uid: Organization's UID (required)
1607
+ :type organization_uid: str
1608
+ :param _request_timeout: timeout setting for this request. If one
1609
+ number provided, it will be total request
1610
+ timeout. It can also be a pair (tuple) of
1611
+ (connection, read) timeouts.
1612
+ :type _request_timeout: int, tuple(int, int), optional
1613
+ :param _request_auth: set to override the auth_settings for an a single
1614
+ request; this effectively ignores the
1615
+ authentication in the spec for a single request.
1616
+ :type _request_auth: dict, optional
1617
+ :param _content_type: force content-type for the request.
1618
+ :type _content_type: str, Optional
1619
+ :param _headers: set to override the headers for a single
1620
+ request; this effectively ignores the headers
1621
+ in the spec for a single request.
1622
+ :type _headers: dict, optional
1623
+ :param _host_index: set to override the host_index for a single
1624
+ request; this effectively ignores the host_index
1625
+ in the spec for a single request.
1626
+ :type _host_index: int, optional
1627
+ :return: Returns the result object.
1628
+ """ # noqa: E501
1629
+
1630
+ _param = self._api_v1_organizations_uid_organization_uid_get_serialize(
1631
+ organization_uid=organization_uid,
1632
+ _request_auth=_request_auth,
1633
+ _content_type=_content_type,
1634
+ _headers=_headers,
1635
+ _host_index=_host_index
1636
+ )
1637
+
1638
+ _response_types_map: Dict[str, Optional[str]] = {
1639
+ '200': "OrganizationsOrganizationDetailResponse",
1640
+ '400': "OrganizationsOrganizationDetailResponse",
1641
+ '503': "OrganizationsOrganizationDetailResponse",
1642
+ }
1643
+ response_data = self.api_client.call_api(
1644
+ *_param,
1645
+ _request_timeout=_request_timeout
1646
+ )
1647
+ return response_data.response
1648
+
1649
+
1650
+ def _api_v1_organizations_uid_organization_uid_get_serialize(
1651
+ self,
1652
+ organization_uid,
1653
+ _request_auth,
1654
+ _content_type,
1655
+ _headers,
1656
+ _host_index,
1657
+ ) -> RequestSerialized:
1658
+
1659
+ _host = None
1660
+
1661
+ _collection_formats: Dict[str, str] = {
1662
+ }
1663
+
1664
+ _path_params: Dict[str, str] = {}
1665
+ _query_params: List[Tuple[str, str]] = []
1666
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1667
+ _form_params: List[Tuple[str, str]] = []
1668
+ _files: Dict[
1669
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1670
+ ] = {}
1671
+ _body_params: Optional[bytes] = None
1672
+
1673
+ # process the path parameters
1674
+ if organization_uid is not None:
1675
+ _path_params['organization_uid'] = organization_uid
1676
+ # process the query parameters
1677
+ # process the header parameters
1678
+ # process the form parameters
1679
+ # process the body parameter
1680
+
1681
+
1682
+ # set the HTTP header `Accept`
1683
+ if 'Accept' not in _header_params:
1684
+ _header_params['Accept'] = self.api_client.select_header_accept(
1685
+ [
1686
+ 'application/json'
1687
+ ]
1688
+ )
1689
+
1690
+
1691
+ # authentication setting
1692
+ _auth_settings: List[str] = [
1693
+ 'TokenAuth',
1694
+ 'ApiKeyAuth'
1695
+ ]
1696
+
1697
+ return self.api_client.param_serialize(
1698
+ method='GET',
1699
+ resource_path='/api/v1/organizations/uid/{organization_uid}',
1700
+ path_params=_path_params,
1701
+ query_params=_query_params,
1702
+ header_params=_header_params,
1703
+ body=_body_params,
1704
+ post_params=_form_params,
1705
+ files=_files,
1706
+ auth_settings=_auth_settings,
1707
+ collection_formats=_collection_formats,
1708
+ _host=_host,
1709
+ _request_auth=_request_auth
1710
+ )
1711
+
1712
+
1713
+
1714
+
1447
1715
  @validate_call
1448
1716
  def api_v1_organizations_workbench_post(
1449
1717
  self,