waldur-api-client 7.6.8__py3-none-any.whl → 7.6.9__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.
- waldur_api_client/api/invoices/invoices_list.py +0 -30
- waldur_api_client/api/invoices/invoices_stats_list.py +0 -30
- waldur_api_client/api/marketplace_maintenance_announcement_offerings/__init__.py +1 -0
- waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_create.py +152 -0
- waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_destroy.py +89 -0
- waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_list.py +175 -0
- waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_partial_update.py +166 -0
- waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_retrieve.py +144 -0
- waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_update.py +166 -0
- waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/__init__.py +1 -0
- waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_create.py +152 -0
- waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_destroy.py +89 -0
- waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_list.py +175 -0
- waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_partial_update.py +168 -0
- waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_retrieve.py +144 -0
- waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_update.py +166 -0
- waldur_api_client/api/marketplace_maintenance_announcements/__init__.py +1 -0
- waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_create.py +150 -0
- waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_destroy.py +89 -0
- waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_list.py +175 -0
- waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_partial_update.py +164 -0
- waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_retrieve.py +142 -0
- waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_update.py +164 -0
- waldur_api_client/api/marketplace_maintenance_announcements_template/__init__.py +1 -0
- waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_create.py +152 -0
- waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_destroy.py +89 -0
- waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_list.py +175 -0
- waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_partial_update.py +166 -0
- waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_retrieve.py +144 -0
- waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_update.py +166 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_offering_component.py +6 -6
- waldur_api_client/api/openstack_volume_types/openstack_volume_types_names_retrieve.py +118 -0
- waldur_api_client/models/__init__.py +34 -0
- waldur_api_client/models/constance_settings.py +22 -0
- waldur_api_client/models/constance_settings_request.py +22 -0
- waldur_api_client/models/impact_level_enum.py +11 -0
- waldur_api_client/models/maintenance_announcement.py +225 -0
- waldur_api_client/models/maintenance_announcement_offering.py +112 -0
- waldur_api_client/models/maintenance_announcement_offering_request.py +95 -0
- waldur_api_client/models/maintenance_announcement_offering_template.py +112 -0
- waldur_api_client/models/maintenance_announcement_offering_template_request.py +95 -0
- waldur_api_client/models/maintenance_announcement_request.py +113 -0
- waldur_api_client/models/maintenance_announcement_state_enum.py +12 -0
- waldur_api_client/models/maintenance_announcement_template.py +134 -0
- waldur_api_client/models/maintenance_announcement_template_request.py +95 -0
- waldur_api_client/models/maintenance_type_enum.py +12 -0
- waldur_api_client/models/merged_plugin_options.py +1 -1
- waldur_api_client/models/merged_plugin_options_request.py +1 -1
- waldur_api_client/models/offering_component.py +15 -4
- waldur_api_client/models/patched_maintenance_announcement_offering_request.py +94 -0
- waldur_api_client/models/patched_maintenance_announcement_offering_template_request.py +94 -0
- waldur_api_client/models/patched_maintenance_announcement_request.py +128 -0
- waldur_api_client/models/patched_maintenance_announcement_template_request.py +94 -0
- waldur_api_client/models/update_offering_component_request.py +274 -0
- {waldur_api_client-7.6.8.dist-info → waldur_api_client-7.6.9.dist-info}/METADATA +1 -1
- {waldur_api_client-7.6.8.dist-info → waldur_api_client-7.6.9.dist-info}/RECORD +58 -13
- {waldur_api_client-7.6.8.dist-info → waldur_api_client-7.6.9.dist-info}/LICENSE +0 -0
- {waldur_api_client-7.6.8.dist-info → waldur_api_client-7.6.9.dist-info}/WHEEL +0 -0
|
@@ -21,8 +21,6 @@ def _get_kwargs(
|
|
|
21
21
|
customer_uuid: Union[Unset, UUID] = UNSET,
|
|
22
22
|
end_date: Union[Unset, datetime.date] = UNSET,
|
|
23
23
|
field: Union[Unset, list[InvoicesListFieldItem]] = UNSET,
|
|
24
|
-
max_sum: Union[Unset, float] = UNSET,
|
|
25
|
-
min_sum: Union[Unset, float] = UNSET,
|
|
26
24
|
month: Union[Unset, int] = UNSET,
|
|
27
25
|
o: Union[Unset, list[InvoicesListOItem]] = UNSET,
|
|
28
26
|
page: Union[Unset, int] = UNSET,
|
|
@@ -59,10 +57,6 @@ def _get_kwargs(
|
|
|
59
57
|
|
|
60
58
|
params["field"] = json_field
|
|
61
59
|
|
|
62
|
-
params["max_sum"] = max_sum
|
|
63
|
-
|
|
64
|
-
params["min_sum"] = min_sum
|
|
65
|
-
|
|
66
60
|
params["month"] = month
|
|
67
61
|
|
|
68
62
|
json_o: Union[Unset, list[str]] = UNSET
|
|
@@ -137,8 +131,6 @@ def sync_detailed(
|
|
|
137
131
|
customer_uuid: Union[Unset, UUID] = UNSET,
|
|
138
132
|
end_date: Union[Unset, datetime.date] = UNSET,
|
|
139
133
|
field: Union[Unset, list[InvoicesListFieldItem]] = UNSET,
|
|
140
|
-
max_sum: Union[Unset, float] = UNSET,
|
|
141
|
-
min_sum: Union[Unset, float] = UNSET,
|
|
142
134
|
month: Union[Unset, int] = UNSET,
|
|
143
135
|
o: Union[Unset, list[InvoicesListOItem]] = UNSET,
|
|
144
136
|
page: Union[Unset, int] = UNSET,
|
|
@@ -155,8 +147,6 @@ def sync_detailed(
|
|
|
155
147
|
customer_uuid (Union[Unset, UUID]):
|
|
156
148
|
end_date (Union[Unset, datetime.date]):
|
|
157
149
|
field (Union[Unset, list[InvoicesListFieldItem]]):
|
|
158
|
-
max_sum (Union[Unset, float]):
|
|
159
|
-
min_sum (Union[Unset, float]):
|
|
160
150
|
month (Union[Unset, int]):
|
|
161
151
|
o (Union[Unset, list[InvoicesListOItem]]):
|
|
162
152
|
page (Union[Unset, int]):
|
|
@@ -179,8 +169,6 @@ def sync_detailed(
|
|
|
179
169
|
customer_uuid=customer_uuid,
|
|
180
170
|
end_date=end_date,
|
|
181
171
|
field=field,
|
|
182
|
-
max_sum=max_sum,
|
|
183
|
-
min_sum=min_sum,
|
|
184
172
|
month=month,
|
|
185
173
|
o=o,
|
|
186
174
|
page=page,
|
|
@@ -205,8 +193,6 @@ def sync(
|
|
|
205
193
|
customer_uuid: Union[Unset, UUID] = UNSET,
|
|
206
194
|
end_date: Union[Unset, datetime.date] = UNSET,
|
|
207
195
|
field: Union[Unset, list[InvoicesListFieldItem]] = UNSET,
|
|
208
|
-
max_sum: Union[Unset, float] = UNSET,
|
|
209
|
-
min_sum: Union[Unset, float] = UNSET,
|
|
210
196
|
month: Union[Unset, int] = UNSET,
|
|
211
197
|
o: Union[Unset, list[InvoicesListOItem]] = UNSET,
|
|
212
198
|
page: Union[Unset, int] = UNSET,
|
|
@@ -223,8 +209,6 @@ def sync(
|
|
|
223
209
|
customer_uuid (Union[Unset, UUID]):
|
|
224
210
|
end_date (Union[Unset, datetime.date]):
|
|
225
211
|
field (Union[Unset, list[InvoicesListFieldItem]]):
|
|
226
|
-
max_sum (Union[Unset, float]):
|
|
227
|
-
min_sum (Union[Unset, float]):
|
|
228
212
|
month (Union[Unset, int]):
|
|
229
213
|
o (Union[Unset, list[InvoicesListOItem]]):
|
|
230
214
|
page (Union[Unset, int]):
|
|
@@ -248,8 +232,6 @@ def sync(
|
|
|
248
232
|
customer_uuid=customer_uuid,
|
|
249
233
|
end_date=end_date,
|
|
250
234
|
field=field,
|
|
251
|
-
max_sum=max_sum,
|
|
252
|
-
min_sum=min_sum,
|
|
253
235
|
month=month,
|
|
254
236
|
o=o,
|
|
255
237
|
page=page,
|
|
@@ -268,8 +250,6 @@ async def asyncio_detailed(
|
|
|
268
250
|
customer_uuid: Union[Unset, UUID] = UNSET,
|
|
269
251
|
end_date: Union[Unset, datetime.date] = UNSET,
|
|
270
252
|
field: Union[Unset, list[InvoicesListFieldItem]] = UNSET,
|
|
271
|
-
max_sum: Union[Unset, float] = UNSET,
|
|
272
|
-
min_sum: Union[Unset, float] = UNSET,
|
|
273
253
|
month: Union[Unset, int] = UNSET,
|
|
274
254
|
o: Union[Unset, list[InvoicesListOItem]] = UNSET,
|
|
275
255
|
page: Union[Unset, int] = UNSET,
|
|
@@ -286,8 +266,6 @@ async def asyncio_detailed(
|
|
|
286
266
|
customer_uuid (Union[Unset, UUID]):
|
|
287
267
|
end_date (Union[Unset, datetime.date]):
|
|
288
268
|
field (Union[Unset, list[InvoicesListFieldItem]]):
|
|
289
|
-
max_sum (Union[Unset, float]):
|
|
290
|
-
min_sum (Union[Unset, float]):
|
|
291
269
|
month (Union[Unset, int]):
|
|
292
270
|
o (Union[Unset, list[InvoicesListOItem]]):
|
|
293
271
|
page (Union[Unset, int]):
|
|
@@ -310,8 +288,6 @@ async def asyncio_detailed(
|
|
|
310
288
|
customer_uuid=customer_uuid,
|
|
311
289
|
end_date=end_date,
|
|
312
290
|
field=field,
|
|
313
|
-
max_sum=max_sum,
|
|
314
|
-
min_sum=min_sum,
|
|
315
291
|
month=month,
|
|
316
292
|
o=o,
|
|
317
293
|
page=page,
|
|
@@ -334,8 +310,6 @@ async def asyncio(
|
|
|
334
310
|
customer_uuid: Union[Unset, UUID] = UNSET,
|
|
335
311
|
end_date: Union[Unset, datetime.date] = UNSET,
|
|
336
312
|
field: Union[Unset, list[InvoicesListFieldItem]] = UNSET,
|
|
337
|
-
max_sum: Union[Unset, float] = UNSET,
|
|
338
|
-
min_sum: Union[Unset, float] = UNSET,
|
|
339
313
|
month: Union[Unset, int] = UNSET,
|
|
340
314
|
o: Union[Unset, list[InvoicesListOItem]] = UNSET,
|
|
341
315
|
page: Union[Unset, int] = UNSET,
|
|
@@ -352,8 +326,6 @@ async def asyncio(
|
|
|
352
326
|
customer_uuid (Union[Unset, UUID]):
|
|
353
327
|
end_date (Union[Unset, datetime.date]):
|
|
354
328
|
field (Union[Unset, list[InvoicesListFieldItem]]):
|
|
355
|
-
max_sum (Union[Unset, float]):
|
|
356
|
-
min_sum (Union[Unset, float]):
|
|
357
329
|
month (Union[Unset, int]):
|
|
358
330
|
o (Union[Unset, list[InvoicesListOItem]]):
|
|
359
331
|
page (Union[Unset, int]):
|
|
@@ -378,8 +350,6 @@ async def asyncio(
|
|
|
378
350
|
customer_uuid=customer_uuid,
|
|
379
351
|
end_date=end_date,
|
|
380
352
|
field=field,
|
|
381
|
-
max_sum=max_sum,
|
|
382
|
-
min_sum=min_sum,
|
|
383
353
|
month=month,
|
|
384
354
|
o=o,
|
|
385
355
|
page=page,
|
|
@@ -20,8 +20,6 @@ def _get_kwargs(
|
|
|
20
20
|
customer: Union[Unset, str] = UNSET,
|
|
21
21
|
customer_uuid: Union[Unset, UUID] = UNSET,
|
|
22
22
|
end_date: Union[Unset, datetime.date] = UNSET,
|
|
23
|
-
max_sum: Union[Unset, float] = UNSET,
|
|
24
|
-
min_sum: Union[Unset, float] = UNSET,
|
|
25
23
|
month: Union[Unset, int] = UNSET,
|
|
26
24
|
o: Union[Unset, list[InvoicesStatsListOItem]] = UNSET,
|
|
27
25
|
page: Union[Unset, int] = UNSET,
|
|
@@ -50,10 +48,6 @@ def _get_kwargs(
|
|
|
50
48
|
json_end_date = end_date.isoformat()
|
|
51
49
|
params["end_date"] = json_end_date
|
|
52
50
|
|
|
53
|
-
params["max_sum"] = max_sum
|
|
54
|
-
|
|
55
|
-
params["min_sum"] = min_sum
|
|
56
|
-
|
|
57
51
|
params["month"] = month
|
|
58
52
|
|
|
59
53
|
json_o: Union[Unset, list[str]] = UNSET
|
|
@@ -132,8 +126,6 @@ def sync_detailed(
|
|
|
132
126
|
customer: Union[Unset, str] = UNSET,
|
|
133
127
|
customer_uuid: Union[Unset, UUID] = UNSET,
|
|
134
128
|
end_date: Union[Unset, datetime.date] = UNSET,
|
|
135
|
-
max_sum: Union[Unset, float] = UNSET,
|
|
136
|
-
min_sum: Union[Unset, float] = UNSET,
|
|
137
129
|
month: Union[Unset, int] = UNSET,
|
|
138
130
|
o: Union[Unset, list[InvoicesStatsListOItem]] = UNSET,
|
|
139
131
|
page: Union[Unset, int] = UNSET,
|
|
@@ -151,8 +143,6 @@ def sync_detailed(
|
|
|
151
143
|
customer (Union[Unset, str]):
|
|
152
144
|
customer_uuid (Union[Unset, UUID]):
|
|
153
145
|
end_date (Union[Unset, datetime.date]):
|
|
154
|
-
max_sum (Union[Unset, float]):
|
|
155
|
-
min_sum (Union[Unset, float]):
|
|
156
146
|
month (Union[Unset, int]):
|
|
157
147
|
o (Union[Unset, list[InvoicesStatsListOItem]]):
|
|
158
148
|
page (Union[Unset, int]):
|
|
@@ -176,8 +166,6 @@ def sync_detailed(
|
|
|
176
166
|
customer=customer,
|
|
177
167
|
customer_uuid=customer_uuid,
|
|
178
168
|
end_date=end_date,
|
|
179
|
-
max_sum=max_sum,
|
|
180
|
-
min_sum=min_sum,
|
|
181
169
|
month=month,
|
|
182
170
|
o=o,
|
|
183
171
|
page=page,
|
|
@@ -203,8 +191,6 @@ def sync(
|
|
|
203
191
|
customer: Union[Unset, str] = UNSET,
|
|
204
192
|
customer_uuid: Union[Unset, UUID] = UNSET,
|
|
205
193
|
end_date: Union[Unset, datetime.date] = UNSET,
|
|
206
|
-
max_sum: Union[Unset, float] = UNSET,
|
|
207
|
-
min_sum: Union[Unset, float] = UNSET,
|
|
208
194
|
month: Union[Unset, int] = UNSET,
|
|
209
195
|
o: Union[Unset, list[InvoicesStatsListOItem]] = UNSET,
|
|
210
196
|
page: Union[Unset, int] = UNSET,
|
|
@@ -222,8 +208,6 @@ def sync(
|
|
|
222
208
|
customer (Union[Unset, str]):
|
|
223
209
|
customer_uuid (Union[Unset, UUID]):
|
|
224
210
|
end_date (Union[Unset, datetime.date]):
|
|
225
|
-
max_sum (Union[Unset, float]):
|
|
226
|
-
min_sum (Union[Unset, float]):
|
|
227
211
|
month (Union[Unset, int]):
|
|
228
212
|
o (Union[Unset, list[InvoicesStatsListOItem]]):
|
|
229
213
|
page (Union[Unset, int]):
|
|
@@ -248,8 +232,6 @@ def sync(
|
|
|
248
232
|
customer=customer,
|
|
249
233
|
customer_uuid=customer_uuid,
|
|
250
234
|
end_date=end_date,
|
|
251
|
-
max_sum=max_sum,
|
|
252
|
-
min_sum=min_sum,
|
|
253
235
|
month=month,
|
|
254
236
|
o=o,
|
|
255
237
|
page=page,
|
|
@@ -269,8 +251,6 @@ async def asyncio_detailed(
|
|
|
269
251
|
customer: Union[Unset, str] = UNSET,
|
|
270
252
|
customer_uuid: Union[Unset, UUID] = UNSET,
|
|
271
253
|
end_date: Union[Unset, datetime.date] = UNSET,
|
|
272
|
-
max_sum: Union[Unset, float] = UNSET,
|
|
273
|
-
min_sum: Union[Unset, float] = UNSET,
|
|
274
254
|
month: Union[Unset, int] = UNSET,
|
|
275
255
|
o: Union[Unset, list[InvoicesStatsListOItem]] = UNSET,
|
|
276
256
|
page: Union[Unset, int] = UNSET,
|
|
@@ -288,8 +268,6 @@ async def asyncio_detailed(
|
|
|
288
268
|
customer (Union[Unset, str]):
|
|
289
269
|
customer_uuid (Union[Unset, UUID]):
|
|
290
270
|
end_date (Union[Unset, datetime.date]):
|
|
291
|
-
max_sum (Union[Unset, float]):
|
|
292
|
-
min_sum (Union[Unset, float]):
|
|
293
271
|
month (Union[Unset, int]):
|
|
294
272
|
o (Union[Unset, list[InvoicesStatsListOItem]]):
|
|
295
273
|
page (Union[Unset, int]):
|
|
@@ -313,8 +291,6 @@ async def asyncio_detailed(
|
|
|
313
291
|
customer=customer,
|
|
314
292
|
customer_uuid=customer_uuid,
|
|
315
293
|
end_date=end_date,
|
|
316
|
-
max_sum=max_sum,
|
|
317
|
-
min_sum=min_sum,
|
|
318
294
|
month=month,
|
|
319
295
|
o=o,
|
|
320
296
|
page=page,
|
|
@@ -338,8 +314,6 @@ async def asyncio(
|
|
|
338
314
|
customer: Union[Unset, str] = UNSET,
|
|
339
315
|
customer_uuid: Union[Unset, UUID] = UNSET,
|
|
340
316
|
end_date: Union[Unset, datetime.date] = UNSET,
|
|
341
|
-
max_sum: Union[Unset, float] = UNSET,
|
|
342
|
-
min_sum: Union[Unset, float] = UNSET,
|
|
343
317
|
month: Union[Unset, int] = UNSET,
|
|
344
318
|
o: Union[Unset, list[InvoicesStatsListOItem]] = UNSET,
|
|
345
319
|
page: Union[Unset, int] = UNSET,
|
|
@@ -357,8 +331,6 @@ async def asyncio(
|
|
|
357
331
|
customer (Union[Unset, str]):
|
|
358
332
|
customer_uuid (Union[Unset, UUID]):
|
|
359
333
|
end_date (Union[Unset, datetime.date]):
|
|
360
|
-
max_sum (Union[Unset, float]):
|
|
361
|
-
min_sum (Union[Unset, float]):
|
|
362
334
|
month (Union[Unset, int]):
|
|
363
335
|
o (Union[Unset, list[InvoicesStatsListOItem]]):
|
|
364
336
|
page (Union[Unset, int]):
|
|
@@ -384,8 +356,6 @@ async def asyncio(
|
|
|
384
356
|
customer=customer,
|
|
385
357
|
customer_uuid=customer_uuid,
|
|
386
358
|
end_date=end_date,
|
|
387
|
-
max_sum=max_sum,
|
|
388
|
-
min_sum=min_sum,
|
|
389
359
|
month=month,
|
|
390
360
|
o=o,
|
|
391
361
|
page=page,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains endpoint functions for accessing the API"""
|
|
@@ -0,0 +1,152 @@
|
|
|
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 ...models.maintenance_announcement_offering import MaintenanceAnnouncementOffering
|
|
9
|
+
from ...models.maintenance_announcement_offering_request import MaintenanceAnnouncementOfferingRequest
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
*,
|
|
15
|
+
body: MaintenanceAnnouncementOfferingRequest,
|
|
16
|
+
) -> dict[str, Any]:
|
|
17
|
+
headers: dict[str, Any] = {}
|
|
18
|
+
|
|
19
|
+
_kwargs: dict[str, Any] = {
|
|
20
|
+
"method": "post",
|
|
21
|
+
"url": "/api/marketplace-maintenance-announcement-offerings/",
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
_kwargs["json"] = body.to_dict()
|
|
25
|
+
|
|
26
|
+
headers["Content-Type"] = "application/json"
|
|
27
|
+
|
|
28
|
+
_kwargs["headers"] = headers
|
|
29
|
+
return _kwargs
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def _parse_response(
|
|
33
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
34
|
+
) -> MaintenanceAnnouncementOffering:
|
|
35
|
+
if response.status_code == 201:
|
|
36
|
+
response_201 = MaintenanceAnnouncementOffering.from_dict(response.json())
|
|
37
|
+
|
|
38
|
+
return response_201
|
|
39
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def _build_response(
|
|
43
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
44
|
+
) -> Response[MaintenanceAnnouncementOffering]:
|
|
45
|
+
return Response(
|
|
46
|
+
status_code=HTTPStatus(response.status_code),
|
|
47
|
+
content=response.content,
|
|
48
|
+
headers=response.headers,
|
|
49
|
+
parsed=_parse_response(client=client, response=response),
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def sync_detailed(
|
|
54
|
+
*,
|
|
55
|
+
client: AuthenticatedClient,
|
|
56
|
+
body: MaintenanceAnnouncementOfferingRequest,
|
|
57
|
+
) -> Response[MaintenanceAnnouncementOffering]:
|
|
58
|
+
"""
|
|
59
|
+
Args:
|
|
60
|
+
body (MaintenanceAnnouncementOfferingRequest):
|
|
61
|
+
|
|
62
|
+
Raises:
|
|
63
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
64
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
65
|
+
|
|
66
|
+
Returns:
|
|
67
|
+
Response[MaintenanceAnnouncementOffering]
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
kwargs = _get_kwargs(
|
|
71
|
+
body=body,
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
response = client.get_httpx_client().request(
|
|
75
|
+
**kwargs,
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
return _build_response(client=client, response=response)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def sync(
|
|
82
|
+
*,
|
|
83
|
+
client: AuthenticatedClient,
|
|
84
|
+
body: MaintenanceAnnouncementOfferingRequest,
|
|
85
|
+
) -> MaintenanceAnnouncementOffering:
|
|
86
|
+
"""
|
|
87
|
+
Args:
|
|
88
|
+
body (MaintenanceAnnouncementOfferingRequest):
|
|
89
|
+
|
|
90
|
+
Raises:
|
|
91
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
92
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
93
|
+
|
|
94
|
+
Returns:
|
|
95
|
+
MaintenanceAnnouncementOffering
|
|
96
|
+
"""
|
|
97
|
+
|
|
98
|
+
return sync_detailed(
|
|
99
|
+
client=client,
|
|
100
|
+
body=body,
|
|
101
|
+
).parsed
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
async def asyncio_detailed(
|
|
105
|
+
*,
|
|
106
|
+
client: AuthenticatedClient,
|
|
107
|
+
body: MaintenanceAnnouncementOfferingRequest,
|
|
108
|
+
) -> Response[MaintenanceAnnouncementOffering]:
|
|
109
|
+
"""
|
|
110
|
+
Args:
|
|
111
|
+
body (MaintenanceAnnouncementOfferingRequest):
|
|
112
|
+
|
|
113
|
+
Raises:
|
|
114
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
115
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
116
|
+
|
|
117
|
+
Returns:
|
|
118
|
+
Response[MaintenanceAnnouncementOffering]
|
|
119
|
+
"""
|
|
120
|
+
|
|
121
|
+
kwargs = _get_kwargs(
|
|
122
|
+
body=body,
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
126
|
+
|
|
127
|
+
return _build_response(client=client, response=response)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
async def asyncio(
|
|
131
|
+
*,
|
|
132
|
+
client: AuthenticatedClient,
|
|
133
|
+
body: MaintenanceAnnouncementOfferingRequest,
|
|
134
|
+
) -> MaintenanceAnnouncementOffering:
|
|
135
|
+
"""
|
|
136
|
+
Args:
|
|
137
|
+
body (MaintenanceAnnouncementOfferingRequest):
|
|
138
|
+
|
|
139
|
+
Raises:
|
|
140
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
141
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
142
|
+
|
|
143
|
+
Returns:
|
|
144
|
+
MaintenanceAnnouncementOffering
|
|
145
|
+
"""
|
|
146
|
+
|
|
147
|
+
return (
|
|
148
|
+
await asyncio_detailed(
|
|
149
|
+
client=client,
|
|
150
|
+
body=body,
|
|
151
|
+
)
|
|
152
|
+
).parsed
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Union
|
|
3
|
+
from uuid import UUID
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
uuid: UUID,
|
|
14
|
+
) -> dict[str, Any]:
|
|
15
|
+
_kwargs: dict[str, Any] = {
|
|
16
|
+
"method": "delete",
|
|
17
|
+
"url": f"/api/marketplace-maintenance-announcement-offerings/{uuid}/",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return _kwargs
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Any:
|
|
24
|
+
if response.status_code == 204:
|
|
25
|
+
return None
|
|
26
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
|
|
30
|
+
return Response(
|
|
31
|
+
status_code=HTTPStatus(response.status_code),
|
|
32
|
+
content=response.content,
|
|
33
|
+
headers=response.headers,
|
|
34
|
+
parsed=_parse_response(client=client, response=response),
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def sync_detailed(
|
|
39
|
+
uuid: UUID,
|
|
40
|
+
*,
|
|
41
|
+
client: AuthenticatedClient,
|
|
42
|
+
) -> Response[Any]:
|
|
43
|
+
"""
|
|
44
|
+
Args:
|
|
45
|
+
uuid (UUID):
|
|
46
|
+
|
|
47
|
+
Raises:
|
|
48
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
49
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
50
|
+
|
|
51
|
+
Returns:
|
|
52
|
+
Response[Any]
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
kwargs = _get_kwargs(
|
|
56
|
+
uuid=uuid,
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
response = client.get_httpx_client().request(
|
|
60
|
+
**kwargs,
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
return _build_response(client=client, response=response)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
async def asyncio_detailed(
|
|
67
|
+
uuid: UUID,
|
|
68
|
+
*,
|
|
69
|
+
client: AuthenticatedClient,
|
|
70
|
+
) -> Response[Any]:
|
|
71
|
+
"""
|
|
72
|
+
Args:
|
|
73
|
+
uuid (UUID):
|
|
74
|
+
|
|
75
|
+
Raises:
|
|
76
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
77
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
78
|
+
|
|
79
|
+
Returns:
|
|
80
|
+
Response[Any]
|
|
81
|
+
"""
|
|
82
|
+
|
|
83
|
+
kwargs = _get_kwargs(
|
|
84
|
+
uuid=uuid,
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
88
|
+
|
|
89
|
+
return _build_response(client=client, response=response)
|
|
@@ -0,0 +1,175 @@
|
|
|
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 ...models.maintenance_announcement_offering import MaintenanceAnnouncementOffering
|
|
9
|
+
from ...types import UNSET, Response, Unset
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
*,
|
|
14
|
+
page: Union[Unset, int] = UNSET,
|
|
15
|
+
page_size: Union[Unset, int] = UNSET,
|
|
16
|
+
) -> dict[str, Any]:
|
|
17
|
+
params: dict[str, Any] = {}
|
|
18
|
+
|
|
19
|
+
params["page"] = page
|
|
20
|
+
|
|
21
|
+
params["page_size"] = page_size
|
|
22
|
+
|
|
23
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
24
|
+
|
|
25
|
+
_kwargs: dict[str, Any] = {
|
|
26
|
+
"method": "get",
|
|
27
|
+
"url": "/api/marketplace-maintenance-announcement-offerings/",
|
|
28
|
+
"params": params,
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return _kwargs
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _parse_response(
|
|
35
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
36
|
+
) -> list["MaintenanceAnnouncementOffering"]:
|
|
37
|
+
if response.status_code == 200:
|
|
38
|
+
response_200 = []
|
|
39
|
+
_response_200 = response.json()
|
|
40
|
+
for response_200_item_data in _response_200:
|
|
41
|
+
response_200_item = MaintenanceAnnouncementOffering.from_dict(response_200_item_data)
|
|
42
|
+
|
|
43
|
+
response_200.append(response_200_item)
|
|
44
|
+
|
|
45
|
+
return response_200
|
|
46
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def _build_response(
|
|
50
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
51
|
+
) -> Response[list["MaintenanceAnnouncementOffering"]]:
|
|
52
|
+
return Response(
|
|
53
|
+
status_code=HTTPStatus(response.status_code),
|
|
54
|
+
content=response.content,
|
|
55
|
+
headers=response.headers,
|
|
56
|
+
parsed=_parse_response(client=client, response=response),
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def sync_detailed(
|
|
61
|
+
*,
|
|
62
|
+
client: AuthenticatedClient,
|
|
63
|
+
page: Union[Unset, int] = UNSET,
|
|
64
|
+
page_size: Union[Unset, int] = UNSET,
|
|
65
|
+
) -> Response[list["MaintenanceAnnouncementOffering"]]:
|
|
66
|
+
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
67
|
+
|
|
68
|
+
Args:
|
|
69
|
+
page (Union[Unset, int]):
|
|
70
|
+
page_size (Union[Unset, int]):
|
|
71
|
+
|
|
72
|
+
Raises:
|
|
73
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
74
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
75
|
+
|
|
76
|
+
Returns:
|
|
77
|
+
Response[list['MaintenanceAnnouncementOffering']]
|
|
78
|
+
"""
|
|
79
|
+
|
|
80
|
+
kwargs = _get_kwargs(
|
|
81
|
+
page=page,
|
|
82
|
+
page_size=page_size,
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
response = client.get_httpx_client().request(
|
|
86
|
+
**kwargs,
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
return _build_response(client=client, response=response)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
def sync(
|
|
93
|
+
*,
|
|
94
|
+
client: AuthenticatedClient,
|
|
95
|
+
page: Union[Unset, int] = UNSET,
|
|
96
|
+
page_size: Union[Unset, int] = UNSET,
|
|
97
|
+
) -> list["MaintenanceAnnouncementOffering"]:
|
|
98
|
+
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
99
|
+
|
|
100
|
+
Args:
|
|
101
|
+
page (Union[Unset, int]):
|
|
102
|
+
page_size (Union[Unset, int]):
|
|
103
|
+
|
|
104
|
+
Raises:
|
|
105
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
106
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
107
|
+
|
|
108
|
+
Returns:
|
|
109
|
+
list['MaintenanceAnnouncementOffering']
|
|
110
|
+
"""
|
|
111
|
+
|
|
112
|
+
return sync_detailed(
|
|
113
|
+
client=client,
|
|
114
|
+
page=page,
|
|
115
|
+
page_size=page_size,
|
|
116
|
+
).parsed
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
async def asyncio_detailed(
|
|
120
|
+
*,
|
|
121
|
+
client: AuthenticatedClient,
|
|
122
|
+
page: Union[Unset, int] = UNSET,
|
|
123
|
+
page_size: Union[Unset, int] = UNSET,
|
|
124
|
+
) -> Response[list["MaintenanceAnnouncementOffering"]]:
|
|
125
|
+
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
126
|
+
|
|
127
|
+
Args:
|
|
128
|
+
page (Union[Unset, int]):
|
|
129
|
+
page_size (Union[Unset, int]):
|
|
130
|
+
|
|
131
|
+
Raises:
|
|
132
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
133
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
134
|
+
|
|
135
|
+
Returns:
|
|
136
|
+
Response[list['MaintenanceAnnouncementOffering']]
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
kwargs = _get_kwargs(
|
|
140
|
+
page=page,
|
|
141
|
+
page_size=page_size,
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
145
|
+
|
|
146
|
+
return _build_response(client=client, response=response)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
async def asyncio(
|
|
150
|
+
*,
|
|
151
|
+
client: AuthenticatedClient,
|
|
152
|
+
page: Union[Unset, int] = UNSET,
|
|
153
|
+
page_size: Union[Unset, int] = UNSET,
|
|
154
|
+
) -> list["MaintenanceAnnouncementOffering"]:
|
|
155
|
+
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
156
|
+
|
|
157
|
+
Args:
|
|
158
|
+
page (Union[Unset, int]):
|
|
159
|
+
page_size (Union[Unset, int]):
|
|
160
|
+
|
|
161
|
+
Raises:
|
|
162
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
163
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
164
|
+
|
|
165
|
+
Returns:
|
|
166
|
+
list['MaintenanceAnnouncementOffering']
|
|
167
|
+
"""
|
|
168
|
+
|
|
169
|
+
return (
|
|
170
|
+
await asyncio_detailed(
|
|
171
|
+
client=client,
|
|
172
|
+
page=page,
|
|
173
|
+
page_size=page_size,
|
|
174
|
+
)
|
|
175
|
+
).parsed
|