waldur-api-client 7.7.7__py3-none-any.whl → 7.7.8__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 waldur-api-client might be problematic. Click here for more details.

Files changed (131) hide show
  1. waldur_api_client/api/customer_permissions_reviews/customer_permissions_reviews_count.py +19 -0
  2. waldur_api_client/api/customer_permissions_reviews/customer_permissions_reviews_list.py +19 -0
  3. waldur_api_client/api/customers/customers_users_list.py +141 -53
  4. waldur_api_client/api/invoices/invoices_items_retrieve.py +20 -0
  5. waldur_api_client/api/managed_rancher_cluster_resources/__init__.py +1 -0
  6. waldur_api_client/api/managed_rancher_cluster_resources/managed_rancher_cluster_resources_add_node.py +162 -0
  7. waldur_api_client/api/managed_rancher_cluster_resources/managed_rancher_cluster_resources_count.py +172 -0
  8. waldur_api_client/api/managed_rancher_cluster_resources/managed_rancher_cluster_resources_list.py +196 -0
  9. waldur_api_client/api/managed_rancher_cluster_resources/managed_rancher_cluster_resources_retrieve.py +171 -0
  10. waldur_api_client/api/marketplace_course_accounts/__init__.py +1 -0
  11. waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_count.py +244 -0
  12. waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_create.py +148 -0
  13. waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_create_bulk.py +152 -0
  14. waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_destroy.py +89 -0
  15. waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_list.py +245 -0
  16. waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_retrieve.py +140 -0
  17. waldur_api_client/api/marketplace_customer_service_accounts/marketplace_customer_service_accounts_count.py +25 -0
  18. waldur_api_client/api/marketplace_customer_service_accounts/marketplace_customer_service_accounts_list.py +25 -0
  19. waldur_api_client/api/marketplace_project_service_accounts/marketplace_project_service_accounts_count.py +25 -0
  20. waldur_api_client/api/marketplace_project_service_accounts/marketplace_project_service_accounts_list.py +25 -0
  21. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_course_accounts_list.py +284 -0
  22. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_project_service_accounts_list.py +29 -0
  23. waldur_api_client/api/project_permissions_reviews/__init__.py +1 -0
  24. waldur_api_client/api/project_permissions_reviews/project_permissions_reviews_close.py +91 -0
  25. waldur_api_client/api/project_permissions_reviews/project_permissions_reviews_count.py +266 -0
  26. waldur_api_client/api/project_permissions_reviews/project_permissions_reviews_list.py +269 -0
  27. waldur_api_client/api/project_permissions_reviews/project_permissions_reviews_retrieve.py +142 -0
  28. waldur_api_client/api/projects/projects_other_users_list.py +98 -23
  29. waldur_api_client/api/projects/projects_sync_user_roles.py +10 -9
  30. waldur_api_client/api/support_issue_statuses/__init__.py +1 -0
  31. waldur_api_client/api/support_issue_statuses/support_issue_statuses_count.py +172 -0
  32. waldur_api_client/api/support_issue_statuses/support_issue_statuses_create.py +148 -0
  33. waldur_api_client/api/support_issue_statuses/support_issue_statuses_destroy.py +89 -0
  34. waldur_api_client/api/support_issue_statuses/support_issue_statuses_list.py +173 -0
  35. waldur_api_client/api/support_issue_statuses/support_issue_statuses_partial_update.py +162 -0
  36. waldur_api_client/api/support_issue_statuses/support_issue_statuses_retrieve.py +140 -0
  37. waldur_api_client/api/support_issue_statuses/support_issue_statuses_update.py +162 -0
  38. waldur_api_client/api/user_group_invitations/user_group_invitations_submit_request.py +12 -12
  39. waldur_api_client/api/user_invitations/user_invitations_count.py +30 -0
  40. waldur_api_client/api/user_invitations/user_invitations_list.py +30 -0
  41. waldur_api_client/api/user_permission_requests/user_permission_requests_cancel_request.py +146 -0
  42. waldur_api_client/models/__init__.py +76 -4
  43. waldur_api_client/models/cancel_request_response.py +75 -0
  44. waldur_api_client/models/constance_settings.py +9 -0
  45. waldur_api_client/models/constance_settings_request.py +9 -0
  46. waldur_api_client/models/course_account.py +188 -0
  47. waldur_api_client/models/course_account_create_nested.py +68 -0
  48. waldur_api_client/models/course_account_create_nested_request.py +68 -0
  49. waldur_api_client/models/course_account_request.py +89 -0
  50. waldur_api_client/models/course_accounts_bulk_create.py +82 -0
  51. waldur_api_client/models/course_accounts_bulk_create_request.py +82 -0
  52. waldur_api_client/models/customer.py +9 -0
  53. waldur_api_client/models/customer_permission_review.py +16 -16
  54. waldur_api_client/models/customer_request.py +9 -0
  55. waldur_api_client/models/customer_service_account.py +9 -0
  56. waldur_api_client/models/customers_list_field_item.py +1 -0
  57. waldur_api_client/models/customers_retrieve_field_item.py +1 -0
  58. waldur_api_client/models/customers_users_list_o.py +9 -0
  59. waldur_api_client/models/customers_users_list_organization_role_item_type_0.py +10 -0
  60. waldur_api_client/models/customers_users_list_project_role_item_type_0.py +10 -0
  61. waldur_api_client/models/dependency_logic_operator_enum.py +9 -0
  62. waldur_api_client/models/event_subscription.py +1 -1
  63. waldur_api_client/models/event_types_enum.py +4 -0
  64. waldur_api_client/models/group_invitation.py +9 -0
  65. waldur_api_client/models/invitation.py +9 -0
  66. waldur_api_client/models/invoices_items_retrieve_o.py +15 -0
  67. waldur_api_client/models/issue_status.py +103 -0
  68. waldur_api_client/models/issue_status_request.py +78 -0
  69. waldur_api_client/models/issue_status_type_enum.py +9 -0
  70. waldur_api_client/models/kind_enum.py +10 -0
  71. waldur_api_client/models/managed_rancher_cluster_resources_list_field_item.py +82 -0
  72. waldur_api_client/models/managed_rancher_cluster_resources_retrieve_field_item.py +82 -0
  73. waldur_api_client/models/managed_rancher_create_node_request.py +186 -0
  74. waldur_api_client/models/marketplace_course_accounts_count_state_item.py +10 -0
  75. waldur_api_client/models/marketplace_course_accounts_list_state_item.py +10 -0
  76. waldur_api_client/models/marketplace_customer_service_accounts_count_state_item.py +10 -0
  77. waldur_api_client/models/marketplace_customer_service_accounts_list_state_item.py +10 -0
  78. waldur_api_client/models/marketplace_project_service_accounts_count_state_item.py +10 -0
  79. waldur_api_client/models/marketplace_project_service_accounts_list_state_item.py +10 -0
  80. waldur_api_client/models/marketplace_service_providers_course_accounts_list_state_item.py +10 -0
  81. waldur_api_client/models/marketplace_service_providers_project_service_accounts_list_state_item.py +10 -0
  82. waldur_api_client/models/marketplace_service_providers_projects_list_field_item.py +1 -0
  83. waldur_api_client/models/nested_security_group_rule.py +223 -0
  84. waldur_api_client/models/{open_stack_nested_security_group_rules_item.py → nested_security_group_rule_request.py} +67 -76
  85. waldur_api_client/models/open_stack_backup_restoration_request.py +0 -22
  86. waldur_api_client/models/open_stack_fixed_ip.py +13 -3
  87. waldur_api_client/models/open_stack_fixed_ip_request.py +7 -2
  88. waldur_api_client/models/open_stack_instance_create_order_attributes.py +20 -20
  89. waldur_api_client/models/open_stack_nested_security_group.py +16 -16
  90. waldur_api_client/models/open_stack_port_ip_update_request.py +6 -2
  91. waldur_api_client/models/open_stack_static_route.py +13 -4
  92. waldur_api_client/models/open_stack_static_route_request.py +7 -3
  93. waldur_api_client/models/open_stack_sub_net.py +15 -2
  94. waldur_api_client/models/open_stack_sub_net_allocation_pool.py +27 -8
  95. waldur_api_client/models/open_stack_sub_net_allocation_pool_request.py +14 -5
  96. waldur_api_client/models/open_stack_sub_net_request.py +15 -2
  97. waldur_api_client/models/patched_customer_request.py +9 -0
  98. waldur_api_client/models/patched_issue_status_request.py +76 -0
  99. waldur_api_client/models/patched_open_stack_sub_net_request.py +15 -2
  100. waldur_api_client/models/patched_project_request.py +17 -0
  101. waldur_api_client/models/patched_question_admin_request.py +17 -0
  102. waldur_api_client/models/patched_rancher_service_request.py +1 -1
  103. waldur_api_client/models/permission_request.py +16 -0
  104. waldur_api_client/models/project.py +17 -0
  105. waldur_api_client/models/project_permission_review.py +166 -0
  106. waldur_api_client/models/project_permissions_reviews_count_o_item.py +11 -0
  107. waldur_api_client/models/project_permissions_reviews_list_o_item.py +11 -0
  108. waldur_api_client/models/project_request.py +17 -0
  109. waldur_api_client/models/project_service_account.py +9 -0
  110. waldur_api_client/models/projects_list_field_item.py +1 -0
  111. waldur_api_client/models/projects_other_users_list_o.py +9 -0
  112. waldur_api_client/models/projects_retrieve_field_item.py +1 -0
  113. waldur_api_client/models/proposal.py +8 -0
  114. waldur_api_client/models/proposal_review.py +8 -0
  115. waldur_api_client/models/question_admin.py +17 -0
  116. waldur_api_client/models/question_admin_request.py +17 -0
  117. waldur_api_client/models/rancher_nested_public_ip.py +25 -7
  118. waldur_api_client/models/rancher_service.py +1 -1
  119. waldur_api_client/models/rancher_service_request.py +1 -1
  120. waldur_api_client/models/rmq_connection.py +8 -3
  121. waldur_api_client/models/rmq_subscription.py +7 -3
  122. waldur_api_client/models/robot_account.py +9 -17
  123. waldur_api_client/models/robot_account_details.py +9 -17
  124. waldur_api_client/models/service_account_state.py +10 -0
  125. waldur_api_client/models/submit_request_response.py +75 -0
  126. waldur_api_client/models/visible_invitation_details.py +9 -0
  127. {waldur_api_client-7.7.7.dist-info → waldur_api_client-7.7.8.dist-info}/METADATA +1 -1
  128. {waldur_api_client-7.7.7.dist-info → waldur_api_client-7.7.8.dist-info}/RECORD +130 -69
  129. waldur_api_client/models/robot_account_states.py +0 -13
  130. {waldur_api_client-7.7.7.dist-info → waldur_api_client-7.7.8.dist-info}/LICENSE +0 -0
  131. {waldur_api_client-7.7.7.dist-info → waldur_api_client-7.7.8.dist-info}/WHEEL +0 -0
@@ -1,3 +1,4 @@
1
+ import datetime
1
2
  from http import HTTPStatus
2
3
  from typing import Any, Union
3
4
  from uuid import UUID
@@ -7,19 +8,24 @@ import httpx
7
8
  from ... import errors
8
9
  from ...client import AuthenticatedClient, Client
9
10
  from ...models.basic_user import BasicUser
11
+ from ...models.projects_other_users_list_o import ProjectsOtherUsersListO
10
12
  from ...types import UNSET, Response, Unset
11
13
 
12
14
 
13
15
  def _get_kwargs(
14
- uuid: UUID,
16
+ project_uuid: UUID,
15
17
  *,
18
+ agreement_date: Union[Unset, datetime.datetime] = UNSET,
16
19
  civil_number: Union[Unset, str] = UNSET,
20
+ date_joined: Union[Unset, datetime.datetime] = UNSET,
17
21
  description: Union[Unset, str] = UNSET,
18
22
  email: Union[Unset, str] = UNSET,
19
23
  full_name: Union[Unset, str] = UNSET,
20
- is_active: Union[Unset, str] = UNSET,
24
+ is_active: Union[Unset, bool] = UNSET,
21
25
  job_title: Union[Unset, str] = UNSET,
26
+ modified: Union[Unset, datetime.datetime] = UNSET,
22
27
  native_name: Union[Unset, str] = UNSET,
28
+ o: Union[Unset, ProjectsOtherUsersListO] = UNSET,
23
29
  organization: Union[Unset, str] = UNSET,
24
30
  page: Union[Unset, int] = UNSET,
25
31
  page_size: Union[Unset, int] = UNSET,
@@ -30,8 +36,18 @@ def _get_kwargs(
30
36
  ) -> dict[str, Any]:
31
37
  params: dict[str, Any] = {}
32
38
 
39
+ json_agreement_date: Union[Unset, str] = UNSET
40
+ if not isinstance(agreement_date, Unset):
41
+ json_agreement_date = agreement_date.isoformat()
42
+ params["agreement_date"] = json_agreement_date
43
+
33
44
  params["civil_number"] = civil_number
34
45
 
46
+ json_date_joined: Union[Unset, str] = UNSET
47
+ if not isinstance(date_joined, Unset):
48
+ json_date_joined = date_joined.isoformat()
49
+ params["date_joined"] = json_date_joined
50
+
35
51
  params["description"] = description
36
52
 
37
53
  params["email"] = email
@@ -42,8 +58,19 @@ def _get_kwargs(
42
58
 
43
59
  params["job_title"] = job_title
44
60
 
61
+ json_modified: Union[Unset, str] = UNSET
62
+ if not isinstance(modified, Unset):
63
+ json_modified = modified.isoformat()
64
+ params["modified"] = json_modified
65
+
45
66
  params["native_name"] = native_name
46
67
 
68
+ json_o: Union[Unset, str] = UNSET
69
+ if not isinstance(o, Unset):
70
+ json_o = o.value
71
+
72
+ params["o"] = json_o
73
+
47
74
  params["organization"] = organization
48
75
 
49
76
  params["page"] = page
@@ -62,7 +89,7 @@ def _get_kwargs(
62
89
 
63
90
  _kwargs: dict[str, Any] = {
64
91
  "method": "get",
65
- "url": f"/api/projects/{uuid}/other_users/",
92
+ "url": f"/api/projects/{project_uuid}/other_users/",
66
93
  "params": params,
67
94
  }
68
95
 
@@ -94,16 +121,20 @@ def _build_response(
94
121
 
95
122
 
96
123
  def sync_detailed(
97
- uuid: UUID,
124
+ project_uuid: UUID,
98
125
  *,
99
126
  client: AuthenticatedClient,
127
+ agreement_date: Union[Unset, datetime.datetime] = UNSET,
100
128
  civil_number: Union[Unset, str] = UNSET,
129
+ date_joined: Union[Unset, datetime.datetime] = UNSET,
101
130
  description: Union[Unset, str] = UNSET,
102
131
  email: Union[Unset, str] = UNSET,
103
132
  full_name: Union[Unset, str] = UNSET,
104
- is_active: Union[Unset, str] = UNSET,
133
+ is_active: Union[Unset, bool] = UNSET,
105
134
  job_title: Union[Unset, str] = UNSET,
135
+ modified: Union[Unset, datetime.datetime] = UNSET,
106
136
  native_name: Union[Unset, str] = UNSET,
137
+ o: Union[Unset, ProjectsOtherUsersListO] = UNSET,
107
138
  organization: Union[Unset, str] = UNSET,
108
139
  page: Union[Unset, int] = UNSET,
109
140
  page_size: Union[Unset, int] = UNSET,
@@ -115,14 +146,18 @@ def sync_detailed(
115
146
  """A list of users which can be added to the current project from other projects of the same customer.
116
147
 
117
148
  Args:
118
- uuid (UUID):
149
+ project_uuid (UUID):
150
+ agreement_date (Union[Unset, datetime.datetime]):
119
151
  civil_number (Union[Unset, str]):
152
+ date_joined (Union[Unset, datetime.datetime]):
120
153
  description (Union[Unset, str]):
121
154
  email (Union[Unset, str]):
122
155
  full_name (Union[Unset, str]):
123
- is_active (Union[Unset, str]):
156
+ is_active (Union[Unset, bool]):
124
157
  job_title (Union[Unset, str]):
158
+ modified (Union[Unset, datetime.datetime]):
125
159
  native_name (Union[Unset, str]):
160
+ o (Union[Unset, ProjectsOtherUsersListO]):
126
161
  organization (Union[Unset, str]):
127
162
  page (Union[Unset, int]):
128
163
  page_size (Union[Unset, int]):
@@ -140,14 +175,18 @@ def sync_detailed(
140
175
  """
141
176
 
142
177
  kwargs = _get_kwargs(
143
- uuid=uuid,
178
+ project_uuid=project_uuid,
179
+ agreement_date=agreement_date,
144
180
  civil_number=civil_number,
181
+ date_joined=date_joined,
145
182
  description=description,
146
183
  email=email,
147
184
  full_name=full_name,
148
185
  is_active=is_active,
149
186
  job_title=job_title,
187
+ modified=modified,
150
188
  native_name=native_name,
189
+ o=o,
151
190
  organization=organization,
152
191
  page=page,
153
192
  page_size=page_size,
@@ -165,16 +204,20 @@ def sync_detailed(
165
204
 
166
205
 
167
206
  def sync(
168
- uuid: UUID,
207
+ project_uuid: UUID,
169
208
  *,
170
209
  client: AuthenticatedClient,
210
+ agreement_date: Union[Unset, datetime.datetime] = UNSET,
171
211
  civil_number: Union[Unset, str] = UNSET,
212
+ date_joined: Union[Unset, datetime.datetime] = UNSET,
172
213
  description: Union[Unset, str] = UNSET,
173
214
  email: Union[Unset, str] = UNSET,
174
215
  full_name: Union[Unset, str] = UNSET,
175
- is_active: Union[Unset, str] = UNSET,
216
+ is_active: Union[Unset, bool] = UNSET,
176
217
  job_title: Union[Unset, str] = UNSET,
218
+ modified: Union[Unset, datetime.datetime] = UNSET,
177
219
  native_name: Union[Unset, str] = UNSET,
220
+ o: Union[Unset, ProjectsOtherUsersListO] = UNSET,
178
221
  organization: Union[Unset, str] = UNSET,
179
222
  page: Union[Unset, int] = UNSET,
180
223
  page_size: Union[Unset, int] = UNSET,
@@ -186,14 +229,18 @@ def sync(
186
229
  """A list of users which can be added to the current project from other projects of the same customer.
187
230
 
188
231
  Args:
189
- uuid (UUID):
232
+ project_uuid (UUID):
233
+ agreement_date (Union[Unset, datetime.datetime]):
190
234
  civil_number (Union[Unset, str]):
235
+ date_joined (Union[Unset, datetime.datetime]):
191
236
  description (Union[Unset, str]):
192
237
  email (Union[Unset, str]):
193
238
  full_name (Union[Unset, str]):
194
- is_active (Union[Unset, str]):
239
+ is_active (Union[Unset, bool]):
195
240
  job_title (Union[Unset, str]):
241
+ modified (Union[Unset, datetime.datetime]):
196
242
  native_name (Union[Unset, str]):
243
+ o (Union[Unset, ProjectsOtherUsersListO]):
197
244
  organization (Union[Unset, str]):
198
245
  page (Union[Unset, int]):
199
246
  page_size (Union[Unset, int]):
@@ -211,15 +258,19 @@ def sync(
211
258
  """
212
259
 
213
260
  return sync_detailed(
214
- uuid=uuid,
261
+ project_uuid=project_uuid,
215
262
  client=client,
263
+ agreement_date=agreement_date,
216
264
  civil_number=civil_number,
265
+ date_joined=date_joined,
217
266
  description=description,
218
267
  email=email,
219
268
  full_name=full_name,
220
269
  is_active=is_active,
221
270
  job_title=job_title,
271
+ modified=modified,
222
272
  native_name=native_name,
273
+ o=o,
223
274
  organization=organization,
224
275
  page=page,
225
276
  page_size=page_size,
@@ -231,16 +282,20 @@ def sync(
231
282
 
232
283
 
233
284
  async def asyncio_detailed(
234
- uuid: UUID,
285
+ project_uuid: UUID,
235
286
  *,
236
287
  client: AuthenticatedClient,
288
+ agreement_date: Union[Unset, datetime.datetime] = UNSET,
237
289
  civil_number: Union[Unset, str] = UNSET,
290
+ date_joined: Union[Unset, datetime.datetime] = UNSET,
238
291
  description: Union[Unset, str] = UNSET,
239
292
  email: Union[Unset, str] = UNSET,
240
293
  full_name: Union[Unset, str] = UNSET,
241
- is_active: Union[Unset, str] = UNSET,
294
+ is_active: Union[Unset, bool] = UNSET,
242
295
  job_title: Union[Unset, str] = UNSET,
296
+ modified: Union[Unset, datetime.datetime] = UNSET,
243
297
  native_name: Union[Unset, str] = UNSET,
298
+ o: Union[Unset, ProjectsOtherUsersListO] = UNSET,
244
299
  organization: Union[Unset, str] = UNSET,
245
300
  page: Union[Unset, int] = UNSET,
246
301
  page_size: Union[Unset, int] = UNSET,
@@ -252,14 +307,18 @@ async def asyncio_detailed(
252
307
  """A list of users which can be added to the current project from other projects of the same customer.
253
308
 
254
309
  Args:
255
- uuid (UUID):
310
+ project_uuid (UUID):
311
+ agreement_date (Union[Unset, datetime.datetime]):
256
312
  civil_number (Union[Unset, str]):
313
+ date_joined (Union[Unset, datetime.datetime]):
257
314
  description (Union[Unset, str]):
258
315
  email (Union[Unset, str]):
259
316
  full_name (Union[Unset, str]):
260
- is_active (Union[Unset, str]):
317
+ is_active (Union[Unset, bool]):
261
318
  job_title (Union[Unset, str]):
319
+ modified (Union[Unset, datetime.datetime]):
262
320
  native_name (Union[Unset, str]):
321
+ o (Union[Unset, ProjectsOtherUsersListO]):
263
322
  organization (Union[Unset, str]):
264
323
  page (Union[Unset, int]):
265
324
  page_size (Union[Unset, int]):
@@ -277,14 +336,18 @@ async def asyncio_detailed(
277
336
  """
278
337
 
279
338
  kwargs = _get_kwargs(
280
- uuid=uuid,
339
+ project_uuid=project_uuid,
340
+ agreement_date=agreement_date,
281
341
  civil_number=civil_number,
342
+ date_joined=date_joined,
282
343
  description=description,
283
344
  email=email,
284
345
  full_name=full_name,
285
346
  is_active=is_active,
286
347
  job_title=job_title,
348
+ modified=modified,
287
349
  native_name=native_name,
350
+ o=o,
288
351
  organization=organization,
289
352
  page=page,
290
353
  page_size=page_size,
@@ -300,16 +363,20 @@ async def asyncio_detailed(
300
363
 
301
364
 
302
365
  async def asyncio(
303
- uuid: UUID,
366
+ project_uuid: UUID,
304
367
  *,
305
368
  client: AuthenticatedClient,
369
+ agreement_date: Union[Unset, datetime.datetime] = UNSET,
306
370
  civil_number: Union[Unset, str] = UNSET,
371
+ date_joined: Union[Unset, datetime.datetime] = UNSET,
307
372
  description: Union[Unset, str] = UNSET,
308
373
  email: Union[Unset, str] = UNSET,
309
374
  full_name: Union[Unset, str] = UNSET,
310
- is_active: Union[Unset, str] = UNSET,
375
+ is_active: Union[Unset, bool] = UNSET,
311
376
  job_title: Union[Unset, str] = UNSET,
377
+ modified: Union[Unset, datetime.datetime] = UNSET,
312
378
  native_name: Union[Unset, str] = UNSET,
379
+ o: Union[Unset, ProjectsOtherUsersListO] = UNSET,
313
380
  organization: Union[Unset, str] = UNSET,
314
381
  page: Union[Unset, int] = UNSET,
315
382
  page_size: Union[Unset, int] = UNSET,
@@ -321,14 +388,18 @@ async def asyncio(
321
388
  """A list of users which can be added to the current project from other projects of the same customer.
322
389
 
323
390
  Args:
324
- uuid (UUID):
391
+ project_uuid (UUID):
392
+ agreement_date (Union[Unset, datetime.datetime]):
325
393
  civil_number (Union[Unset, str]):
394
+ date_joined (Union[Unset, datetime.datetime]):
326
395
  description (Union[Unset, str]):
327
396
  email (Union[Unset, str]):
328
397
  full_name (Union[Unset, str]):
329
- is_active (Union[Unset, str]):
398
+ is_active (Union[Unset, bool]):
330
399
  job_title (Union[Unset, str]):
400
+ modified (Union[Unset, datetime.datetime]):
331
401
  native_name (Union[Unset, str]):
402
+ o (Union[Unset, ProjectsOtherUsersListO]):
332
403
  organization (Union[Unset, str]):
333
404
  page (Union[Unset, int]):
334
405
  page_size (Union[Unset, int]):
@@ -347,15 +418,19 @@ async def asyncio(
347
418
 
348
419
  return (
349
420
  await asyncio_detailed(
350
- uuid=uuid,
421
+ project_uuid=project_uuid,
351
422
  client=client,
423
+ agreement_date=agreement_date,
352
424
  civil_number=civil_number,
425
+ date_joined=date_joined,
353
426
  description=description,
354
427
  email=email,
355
428
  full_name=full_name,
356
429
  is_active=is_active,
357
430
  job_title=job_title,
431
+ modified=modified,
358
432
  native_name=native_name,
433
+ o=o,
359
434
  organization=organization,
360
435
  page=page,
361
436
  page_size=page_size,
@@ -1,6 +1,5 @@
1
1
  from http import HTTPStatus
2
2
  from typing import Any, Union
3
- from uuid import UUID
4
3
 
5
4
  import httpx
6
5
 
@@ -10,11 +9,11 @@ from ...types import Response
10
9
 
11
10
 
12
11
  def _get_kwargs(
13
- uuid: UUID,
12
+ uuid: str,
14
13
  ) -> dict[str, Any]:
15
14
  _kwargs: dict[str, Any] = {
16
15
  "method": "post",
17
- "url": f"/api/projects/{uuid}/sync_user_roles/",
16
+ "url": f"/projects/{uuid}/sync_user_roles/",
18
17
  }
19
18
 
20
19
  return _kwargs
@@ -36,14 +35,15 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
36
35
 
37
36
 
38
37
  def sync_detailed(
39
- uuid: UUID,
38
+ uuid: str,
40
39
  *,
41
40
  client: AuthenticatedClient,
42
41
  ) -> Response[Any]:
43
- """Trigger user role sync for this project
42
+ """Trigger user role sync for this project. Sends a notification to RabbitMQ that this project needs
43
+ user role synchronization.
44
44
 
45
45
  Args:
46
- uuid (UUID):
46
+ uuid (str):
47
47
 
48
48
  Raises:
49
49
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -65,14 +65,15 @@ def sync_detailed(
65
65
 
66
66
 
67
67
  async def asyncio_detailed(
68
- uuid: UUID,
68
+ uuid: str,
69
69
  *,
70
70
  client: AuthenticatedClient,
71
71
  ) -> Response[Any]:
72
- """Trigger user role sync for this project
72
+ """Trigger user role sync for this project. Sends a notification to RabbitMQ that this project needs
73
+ user role synchronization.
73
74
 
74
75
  Args:
75
- uuid (UUID):
76
+ uuid (str):
76
77
 
77
78
  Raises:
78
79
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -0,0 +1 @@
1
+ """Contains endpoint functions for accessing the API"""
@@ -0,0 +1,172 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...types import UNSET, Response, Unset
9
+
10
+
11
+ def _get_kwargs(
12
+ *,
13
+ page: Union[Unset, int] = UNSET,
14
+ page_size: Union[Unset, int] = UNSET,
15
+ ) -> dict[str, Any]:
16
+ params: dict[str, Any] = {}
17
+
18
+ params["page"] = page
19
+
20
+ params["page_size"] = page_size
21
+
22
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
23
+
24
+ _kwargs: dict[str, Any] = {
25
+ "method": "head",
26
+ "url": "/api/support-issue-statuses/",
27
+ "params": params,
28
+ }
29
+
30
+ return _kwargs
31
+
32
+
33
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> int:
34
+ if response.status_code == HTTPStatus.OK:
35
+ try:
36
+ return int(response.headers["x-result-count"])
37
+ except KeyError:
38
+ raise errors.UnexpectedStatus(
39
+ response.status_code, b"Expected 'X-Result-Count' header for HEAD request, but it was not found."
40
+ )
41
+ except ValueError:
42
+ count_val = response.headers.get("x-result-count")
43
+ msg = f"Expected 'X-Result-Count' header to be an integer, but got '{count_val}'."
44
+ raise errors.UnexpectedStatus(response.status_code, msg.encode())
45
+ raise errors.UnexpectedStatus(response.status_code, response.content)
46
+
47
+
48
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[int]:
49
+ return Response(
50
+ status_code=HTTPStatus(response.status_code),
51
+ content=response.content,
52
+ headers=response.headers,
53
+ parsed=_parse_response(client=client, response=response),
54
+ )
55
+
56
+
57
+ def sync_detailed(
58
+ *,
59
+ client: AuthenticatedClient,
60
+ page: Union[Unset, int] = UNSET,
61
+ page_size: Union[Unset, int] = UNSET,
62
+ ) -> Response[int]:
63
+ """Get number of items in the collection matching the request parameters.
64
+
65
+ Args:
66
+ page (Union[Unset, int]):
67
+ page_size (Union[Unset, int]):
68
+
69
+ Raises:
70
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
71
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
72
+
73
+ Returns:
74
+ Response[int]
75
+ """
76
+
77
+ kwargs = _get_kwargs(
78
+ page=page,
79
+ page_size=page_size,
80
+ )
81
+
82
+ response = client.get_httpx_client().request(
83
+ **kwargs,
84
+ )
85
+
86
+ return _build_response(client=client, response=response)
87
+
88
+
89
+ def sync(
90
+ *,
91
+ client: AuthenticatedClient,
92
+ page: Union[Unset, int] = UNSET,
93
+ page_size: Union[Unset, int] = UNSET,
94
+ ) -> int:
95
+ """Get number of items in the collection matching the request parameters.
96
+
97
+ Args:
98
+ page (Union[Unset, int]):
99
+ page_size (Union[Unset, int]):
100
+
101
+ Raises:
102
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
103
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
104
+
105
+ Returns:
106
+ int
107
+ """
108
+
109
+ return sync_detailed(
110
+ client=client,
111
+ page=page,
112
+ page_size=page_size,
113
+ ).parsed
114
+
115
+
116
+ async def asyncio_detailed(
117
+ *,
118
+ client: AuthenticatedClient,
119
+ page: Union[Unset, int] = UNSET,
120
+ page_size: Union[Unset, int] = UNSET,
121
+ ) -> Response[int]:
122
+ """Get number of items in the collection matching the request parameters.
123
+
124
+ Args:
125
+ page (Union[Unset, int]):
126
+ page_size (Union[Unset, int]):
127
+
128
+ Raises:
129
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
130
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
131
+
132
+ Returns:
133
+ Response[int]
134
+ """
135
+
136
+ kwargs = _get_kwargs(
137
+ page=page,
138
+ page_size=page_size,
139
+ )
140
+
141
+ response = await client.get_async_httpx_client().request(**kwargs)
142
+
143
+ return _build_response(client=client, response=response)
144
+
145
+
146
+ async def asyncio(
147
+ *,
148
+ client: AuthenticatedClient,
149
+ page: Union[Unset, int] = UNSET,
150
+ page_size: Union[Unset, int] = UNSET,
151
+ ) -> int:
152
+ """Get number of items in the collection matching the request parameters.
153
+
154
+ Args:
155
+ page (Union[Unset, int]):
156
+ page_size (Union[Unset, int]):
157
+
158
+ Raises:
159
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
160
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
161
+
162
+ Returns:
163
+ int
164
+ """
165
+
166
+ return (
167
+ await asyncio_detailed(
168
+ client=client,
169
+ page=page,
170
+ page_size=page_size,
171
+ )
172
+ ).parsed