waldur-api-client 7.7.6__py3-none-any.whl → 7.7.7__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/booking_resources/booking_resources_count.py +34 -11
- waldur_api_client/api/booking_resources/booking_resources_list.py +34 -11
- waldur_api_client/api/customers/customers_project_metadata_compliance_details_list.py +189 -0
- waldur_api_client/api/customers/customers_project_metadata_compliance_overview_list.py +189 -0
- waldur_api_client/api/customers/customers_project_metadata_compliance_projects_list.py +187 -0
- waldur_api_client/api/customers/customers_project_metadata_question_answers_list.py +187 -0
- waldur_api_client/api/marketplace_integration_statuses/marketplace_integration_statuses_count.py +34 -11
- waldur_api_client/api/marketplace_integration_statuses/marketplace_integration_statuses_list.py +34 -11
- waldur_api_client/api/marketplace_offering_files/marketplace_offering_files_count.py +34 -11
- waldur_api_client/api/marketplace_offering_files/marketplace_offering_files_list.py +34 -11
- waldur_api_client/api/marketplace_offering_terms_of_service/__init__.py +1 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_count.py +274 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_create.py +152 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_destroy.py +89 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_list.py +277 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_partial_update.py +164 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_retrieve.py +142 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_update.py +164 -0
- waldur_api_client/api/marketplace_offering_user_roles/marketplace_offering_user_roles_count.py +34 -11
- waldur_api_client/api/marketplace_offering_user_roles/marketplace_offering_user_roles_list.py +34 -11
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_count.py +34 -11
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_list.py +34 -11
- waldur_api_client/api/marketplace_orders/marketplace_orders_count.py +19 -0
- waldur_api_client/api/marketplace_orders/marketplace_orders_list.py +19 -0
- waldur_api_client/api/marketplace_plans/marketplace_plans_count.py +19 -0
- waldur_api_client/api/marketplace_plans/marketplace_plans_list.py +19 -0
- waldur_api_client/api/marketplace_plans/marketplace_plans_usage_stats_count.py +19 -0
- waldur_api_client/api/marketplace_plans/marketplace_plans_usage_stats_list.py +19 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_count.py +34 -11
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +34 -11
- waldur_api_client/api/marketplace_resources/marketplace_resources_count.py +34 -11
- waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +34 -11
- waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_count.py +34 -11
- waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_list.py +34 -11
- waldur_api_client/api/marketplace_user_offering_consents/__init__.py +1 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_count.py +307 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_create.py +152 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_destroy.py +89 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_list.py +310 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_partial_update.py +164 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_retrieve.py +142 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_revoke.py +146 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_update.py +164 -0
- waldur_api_client/api/remote_waldur_api/remote_waldur_api_remote_resource_order_status_retrieve.py +145 -0
- waldur_api_client/api/remote_waldur_api/remote_waldur_api_remote_resource_status_retrieve.py +147 -0
- waldur_api_client/api/remote_waldur_api/remote_waldur_api_remote_resource_team_status_list.py +188 -0
- waldur_api_client/models/__init__.py +62 -0
- waldur_api_client/models/azure_sql_server_create_order_attributes.py +3 -0
- waldur_api_client/models/azure_virtual_machine_create_order_attributes.py +3 -0
- waldur_api_client/models/booking_offerings_list_field_item.py +0 -2
- waldur_api_client/models/booking_offerings_retrieve_field_item.py +0 -2
- waldur_api_client/models/booking_resource.py +10 -9
- waldur_api_client/models/booking_resources_list_field_item.py +1 -1
- waldur_api_client/models/booking_resources_retrieve_field_item.py +1 -1
- waldur_api_client/models/checklist_info.py +76 -0
- waldur_api_client/models/compliance_overview.py +91 -0
- waldur_api_client/models/customer.py +81 -0
- waldur_api_client/models/customers_list_field_item.py +4 -0
- waldur_api_client/models/customers_retrieve_field_item.py +4 -0
- waldur_api_client/models/generic_order_attributes.py +69 -0
- waldur_api_client/models/google_auth_authorize_retrieve_field_item.py +1 -0
- waldur_api_client/models/google_auth_list_field_item.py +1 -0
- waldur_api_client/models/google_auth_retrieve_field_item.py +1 -0
- waldur_api_client/models/google_credentials.py +9 -0
- waldur_api_client/models/group_invitation.py +24 -0
- waldur_api_client/models/group_invitation_request.py +10 -0
- waldur_api_client/models/maintenance_announcement.py +8 -0
- waldur_api_client/models/marketplace_offering_terms_of_service_count_o_item.py +13 -0
- waldur_api_client/models/marketplace_offering_terms_of_service_list_o_item.py +13 -0
- waldur_api_client/models/marketplace_orders_list_field_item.py +1 -1
- waldur_api_client/models/marketplace_orders_retrieve_field_item.py +1 -1
- waldur_api_client/models/marketplace_provider_offerings_list_customer_service_accounts_retrieve_field_item.py +0 -2
- waldur_api_client/models/marketplace_provider_offerings_list_field_item.py +0 -2
- waldur_api_client/models/marketplace_provider_offerings_list_project_service_accounts_retrieve_field_item.py +0 -2
- waldur_api_client/models/marketplace_provider_offerings_retrieve_field_item.py +0 -2
- waldur_api_client/models/marketplace_provider_offerings_stats_retrieve_field_item.py +0 -2
- waldur_api_client/models/marketplace_provider_offerings_user_has_resource_access_retrieve_field_item.py +0 -2
- waldur_api_client/models/marketplace_provider_resources_details_retrieve_field_item.py +1 -1
- waldur_api_client/models/marketplace_provider_resources_list_field_item.py +1 -1
- waldur_api_client/models/marketplace_provider_resources_retrieve_field_item.py +1 -1
- waldur_api_client/models/marketplace_public_offerings_list_field_item.py +0 -2
- waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +0 -2
- waldur_api_client/models/marketplace_rancher_create_order_attributes.py +3 -0
- waldur_api_client/models/marketplace_resources_details_retrieve_field_item.py +1 -1
- waldur_api_client/models/marketplace_resources_list_field_item.py +1 -1
- waldur_api_client/models/marketplace_resources_retrieve_field_item.py +1 -1
- waldur_api_client/models/marketplace_service_providers_list_field_item.py +1 -0
- waldur_api_client/models/marketplace_service_providers_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_user_offering_consents_count_o_item.py +15 -0
- waldur_api_client/models/marketplace_user_offering_consents_list_o_item.py +15 -0
- waldur_api_client/models/offering.py +0 -18
- waldur_api_client/models/offering_create.py +0 -18
- waldur_api_client/models/offering_create_request.py +0 -18
- waldur_api_client/models/offering_overview_update_request.py +0 -18
- waldur_api_client/models/offering_terms_of_service.py +142 -0
- waldur_api_client/models/offering_terms_of_service_create.py +107 -0
- waldur_api_client/models/offering_terms_of_service_create_request.py +107 -0
- waldur_api_client/models/offering_terms_of_service_request.py +96 -0
- waldur_api_client/models/open_stack_instance_create_order_attributes.py +3 -0
- waldur_api_client/models/open_stack_nested_security_group.py +53 -1
- waldur_api_client/models/open_stack_nested_security_group_rules_item.py +197 -0
- waldur_api_client/models/open_stack_network.py +20 -0
- waldur_api_client/models/open_stack_security_group_rule_update_request.py +4 -4
- waldur_api_client/models/open_stack_tenant.py +38 -0
- waldur_api_client/models/open_stack_tenant_create_order_attributes.py +21 -0
- waldur_api_client/models/open_stack_volume_create_order_attributes.py +3 -0
- waldur_api_client/models/openstack_networks_list_field_item.py +1 -0
- waldur_api_client/models/openstack_networks_retrieve_field_item.py +1 -0
- waldur_api_client/models/openstack_tenants_list_field_item.py +3 -0
- waldur_api_client/models/openstack_tenants_retrieve_field_item.py +3 -0
- waldur_api_client/models/order_create.py +0 -8
- waldur_api_client/models/order_create_request.py +23 -7
- waldur_api_client/models/order_details.py +0 -9
- waldur_api_client/models/patched_offering_terms_of_service_request.py +96 -0
- waldur_api_client/models/patched_user_offering_consent_request.py +59 -0
- waldur_api_client/models/permission_project.py +147 -0
- waldur_api_client/models/project_answer.py +122 -0
- waldur_api_client/models/project_detail.py +133 -0
- waldur_api_client/models/project_details_response.py +115 -0
- waldur_api_client/models/provider_offering_details.py +0 -18
- waldur_api_client/models/provider_offering_details_request.py +0 -18
- waldur_api_client/models/public_offering_details.py +0 -18
- waldur_api_client/models/question_answer.py +176 -0
- waldur_api_client/models/question_answer_project_answers_item.py +44 -0
- waldur_api_client/models/question_answer_question_options_item.py +44 -0
- waldur_api_client/models/remote_resource_order.py +88 -0
- waldur_api_client/models/remote_resource_order_remote_state_enum.py +15 -0
- waldur_api_client/models/remote_resource_sync_status.py +123 -0
- waldur_api_client/models/remote_resource_sync_status_remote_state_enum.py +13 -0
- waldur_api_client/models/remote_resource_team_member.py +85 -0
- waldur_api_client/models/resource.py +10 -9
- waldur_api_client/models/service_provider.py +9 -0
- waldur_api_client/models/slurm_invoices_slurm_package_create_order_attributes.py +3 -0
- waldur_api_client/models/sync_status_enum.py +10 -0
- waldur_api_client/models/user_offering_consent.py +202 -0
- waldur_api_client/models/user_offering_consent_create.py +60 -0
- waldur_api_client/models/user_offering_consent_create_request.py +60 -0
- waldur_api_client/models/user_offering_consent_request.py +59 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes.py +3 -0
- {waldur_api_client-7.7.6.dist-info → waldur_api_client-7.7.7.dist-info}/METADATA +1 -1
- {waldur_api_client-7.7.6.dist-info → waldur_api_client-7.7.7.dist-info}/RECORD +143 -88
- {waldur_api_client-7.7.6.dist-info → waldur_api_client-7.7.7.dist-info}/LICENSE +0 -0
- {waldur_api_client-7.7.6.dist-info → waldur_api_client-7.7.7.dist-info}/WHEEL +0 -0
|
@@ -14,7 +14,8 @@ def _get_kwargs(
|
|
|
14
14
|
*,
|
|
15
15
|
o: Union[Unset, list[MarketplaceOfferingFilesCountOItem]] = UNSET,
|
|
16
16
|
offering: Union[Unset, str] = UNSET,
|
|
17
|
-
|
|
17
|
+
offering_slug: Union[Unset, list[str]] = UNSET,
|
|
18
|
+
offering_uuid: Union[Unset, list[UUID]] = UNSET,
|
|
18
19
|
page: Union[Unset, int] = UNSET,
|
|
19
20
|
page_size: Union[Unset, int] = UNSET,
|
|
20
21
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -32,9 +33,19 @@ def _get_kwargs(
|
|
|
32
33
|
|
|
33
34
|
params["offering"] = offering
|
|
34
35
|
|
|
35
|
-
|
|
36
|
+
json_offering_slug: Union[Unset, list[str]] = UNSET
|
|
37
|
+
if not isinstance(offering_slug, Unset):
|
|
38
|
+
json_offering_slug = offering_slug
|
|
39
|
+
|
|
40
|
+
params["offering_slug"] = json_offering_slug
|
|
41
|
+
|
|
42
|
+
json_offering_uuid: Union[Unset, list[str]] = UNSET
|
|
36
43
|
if not isinstance(offering_uuid, Unset):
|
|
37
|
-
json_offering_uuid =
|
|
44
|
+
json_offering_uuid = []
|
|
45
|
+
for offering_uuid_item_data in offering_uuid:
|
|
46
|
+
offering_uuid_item = str(offering_uuid_item_data)
|
|
47
|
+
json_offering_uuid.append(offering_uuid_item)
|
|
48
|
+
|
|
38
49
|
params["offering_uuid"] = json_offering_uuid
|
|
39
50
|
|
|
40
51
|
params["page"] = page
|
|
@@ -86,7 +97,8 @@ def sync_detailed(
|
|
|
86
97
|
client: AuthenticatedClient,
|
|
87
98
|
o: Union[Unset, list[MarketplaceOfferingFilesCountOItem]] = UNSET,
|
|
88
99
|
offering: Union[Unset, str] = UNSET,
|
|
89
|
-
|
|
100
|
+
offering_slug: Union[Unset, list[str]] = UNSET,
|
|
101
|
+
offering_uuid: Union[Unset, list[UUID]] = UNSET,
|
|
90
102
|
page: Union[Unset, int] = UNSET,
|
|
91
103
|
page_size: Union[Unset, int] = UNSET,
|
|
92
104
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -96,7 +108,8 @@ def sync_detailed(
|
|
|
96
108
|
Args:
|
|
97
109
|
o (Union[Unset, list[MarketplaceOfferingFilesCountOItem]]):
|
|
98
110
|
offering (Union[Unset, str]):
|
|
99
|
-
|
|
111
|
+
offering_slug (Union[Unset, list[str]]):
|
|
112
|
+
offering_uuid (Union[Unset, list[UUID]]):
|
|
100
113
|
page (Union[Unset, int]):
|
|
101
114
|
page_size (Union[Unset, int]):
|
|
102
115
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
@@ -112,6 +125,7 @@ def sync_detailed(
|
|
|
112
125
|
kwargs = _get_kwargs(
|
|
113
126
|
o=o,
|
|
114
127
|
offering=offering,
|
|
128
|
+
offering_slug=offering_slug,
|
|
115
129
|
offering_uuid=offering_uuid,
|
|
116
130
|
page=page,
|
|
117
131
|
page_size=page_size,
|
|
@@ -130,7 +144,8 @@ def sync(
|
|
|
130
144
|
client: AuthenticatedClient,
|
|
131
145
|
o: Union[Unset, list[MarketplaceOfferingFilesCountOItem]] = UNSET,
|
|
132
146
|
offering: Union[Unset, str] = UNSET,
|
|
133
|
-
|
|
147
|
+
offering_slug: Union[Unset, list[str]] = UNSET,
|
|
148
|
+
offering_uuid: Union[Unset, list[UUID]] = UNSET,
|
|
134
149
|
page: Union[Unset, int] = UNSET,
|
|
135
150
|
page_size: Union[Unset, int] = UNSET,
|
|
136
151
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -140,7 +155,8 @@ def sync(
|
|
|
140
155
|
Args:
|
|
141
156
|
o (Union[Unset, list[MarketplaceOfferingFilesCountOItem]]):
|
|
142
157
|
offering (Union[Unset, str]):
|
|
143
|
-
|
|
158
|
+
offering_slug (Union[Unset, list[str]]):
|
|
159
|
+
offering_uuid (Union[Unset, list[UUID]]):
|
|
144
160
|
page (Union[Unset, int]):
|
|
145
161
|
page_size (Union[Unset, int]):
|
|
146
162
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
@@ -157,6 +173,7 @@ def sync(
|
|
|
157
173
|
client=client,
|
|
158
174
|
o=o,
|
|
159
175
|
offering=offering,
|
|
176
|
+
offering_slug=offering_slug,
|
|
160
177
|
offering_uuid=offering_uuid,
|
|
161
178
|
page=page,
|
|
162
179
|
page_size=page_size,
|
|
@@ -169,7 +186,8 @@ async def asyncio_detailed(
|
|
|
169
186
|
client: AuthenticatedClient,
|
|
170
187
|
o: Union[Unset, list[MarketplaceOfferingFilesCountOItem]] = UNSET,
|
|
171
188
|
offering: Union[Unset, str] = UNSET,
|
|
172
|
-
|
|
189
|
+
offering_slug: Union[Unset, list[str]] = UNSET,
|
|
190
|
+
offering_uuid: Union[Unset, list[UUID]] = UNSET,
|
|
173
191
|
page: Union[Unset, int] = UNSET,
|
|
174
192
|
page_size: Union[Unset, int] = UNSET,
|
|
175
193
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -179,7 +197,8 @@ async def asyncio_detailed(
|
|
|
179
197
|
Args:
|
|
180
198
|
o (Union[Unset, list[MarketplaceOfferingFilesCountOItem]]):
|
|
181
199
|
offering (Union[Unset, str]):
|
|
182
|
-
|
|
200
|
+
offering_slug (Union[Unset, list[str]]):
|
|
201
|
+
offering_uuid (Union[Unset, list[UUID]]):
|
|
183
202
|
page (Union[Unset, int]):
|
|
184
203
|
page_size (Union[Unset, int]):
|
|
185
204
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
@@ -195,6 +214,7 @@ async def asyncio_detailed(
|
|
|
195
214
|
kwargs = _get_kwargs(
|
|
196
215
|
o=o,
|
|
197
216
|
offering=offering,
|
|
217
|
+
offering_slug=offering_slug,
|
|
198
218
|
offering_uuid=offering_uuid,
|
|
199
219
|
page=page,
|
|
200
220
|
page_size=page_size,
|
|
@@ -211,7 +231,8 @@ async def asyncio(
|
|
|
211
231
|
client: AuthenticatedClient,
|
|
212
232
|
o: Union[Unset, list[MarketplaceOfferingFilesCountOItem]] = UNSET,
|
|
213
233
|
offering: Union[Unset, str] = UNSET,
|
|
214
|
-
|
|
234
|
+
offering_slug: Union[Unset, list[str]] = UNSET,
|
|
235
|
+
offering_uuid: Union[Unset, list[UUID]] = UNSET,
|
|
215
236
|
page: Union[Unset, int] = UNSET,
|
|
216
237
|
page_size: Union[Unset, int] = UNSET,
|
|
217
238
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -221,7 +242,8 @@ async def asyncio(
|
|
|
221
242
|
Args:
|
|
222
243
|
o (Union[Unset, list[MarketplaceOfferingFilesCountOItem]]):
|
|
223
244
|
offering (Union[Unset, str]):
|
|
224
|
-
|
|
245
|
+
offering_slug (Union[Unset, list[str]]):
|
|
246
|
+
offering_uuid (Union[Unset, list[UUID]]):
|
|
225
247
|
page (Union[Unset, int]):
|
|
226
248
|
page_size (Union[Unset, int]):
|
|
227
249
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
@@ -239,6 +261,7 @@ async def asyncio(
|
|
|
239
261
|
client=client,
|
|
240
262
|
o=o,
|
|
241
263
|
offering=offering,
|
|
264
|
+
offering_slug=offering_slug,
|
|
242
265
|
offering_uuid=offering_uuid,
|
|
243
266
|
page=page,
|
|
244
267
|
page_size=page_size,
|
|
@@ -17,7 +17,8 @@ def _get_kwargs(
|
|
|
17
17
|
field: Union[Unset, list[MarketplaceOfferingFilesListFieldItem]] = UNSET,
|
|
18
18
|
o: Union[Unset, list[MarketplaceOfferingFilesListOItem]] = UNSET,
|
|
19
19
|
offering: Union[Unset, str] = UNSET,
|
|
20
|
-
|
|
20
|
+
offering_slug: Union[Unset, list[str]] = UNSET,
|
|
21
|
+
offering_uuid: Union[Unset, list[UUID]] = UNSET,
|
|
21
22
|
page: Union[Unset, int] = UNSET,
|
|
22
23
|
page_size: Union[Unset, int] = UNSET,
|
|
23
24
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -44,9 +45,19 @@ def _get_kwargs(
|
|
|
44
45
|
|
|
45
46
|
params["offering"] = offering
|
|
46
47
|
|
|
47
|
-
|
|
48
|
+
json_offering_slug: Union[Unset, list[str]] = UNSET
|
|
49
|
+
if not isinstance(offering_slug, Unset):
|
|
50
|
+
json_offering_slug = offering_slug
|
|
51
|
+
|
|
52
|
+
params["offering_slug"] = json_offering_slug
|
|
53
|
+
|
|
54
|
+
json_offering_uuid: Union[Unset, list[str]] = UNSET
|
|
48
55
|
if not isinstance(offering_uuid, Unset):
|
|
49
|
-
json_offering_uuid =
|
|
56
|
+
json_offering_uuid = []
|
|
57
|
+
for offering_uuid_item_data in offering_uuid:
|
|
58
|
+
offering_uuid_item = str(offering_uuid_item_data)
|
|
59
|
+
json_offering_uuid.append(offering_uuid_item)
|
|
60
|
+
|
|
50
61
|
params["offering_uuid"] = json_offering_uuid
|
|
51
62
|
|
|
52
63
|
params["page"] = page
|
|
@@ -99,7 +110,8 @@ def sync_detailed(
|
|
|
99
110
|
field: Union[Unset, list[MarketplaceOfferingFilesListFieldItem]] = UNSET,
|
|
100
111
|
o: Union[Unset, list[MarketplaceOfferingFilesListOItem]] = UNSET,
|
|
101
112
|
offering: Union[Unset, str] = UNSET,
|
|
102
|
-
|
|
113
|
+
offering_slug: Union[Unset, list[str]] = UNSET,
|
|
114
|
+
offering_uuid: Union[Unset, list[UUID]] = UNSET,
|
|
103
115
|
page: Union[Unset, int] = UNSET,
|
|
104
116
|
page_size: Union[Unset, int] = UNSET,
|
|
105
117
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -110,7 +122,8 @@ def sync_detailed(
|
|
|
110
122
|
field (Union[Unset, list[MarketplaceOfferingFilesListFieldItem]]):
|
|
111
123
|
o (Union[Unset, list[MarketplaceOfferingFilesListOItem]]):
|
|
112
124
|
offering (Union[Unset, str]):
|
|
113
|
-
|
|
125
|
+
offering_slug (Union[Unset, list[str]]):
|
|
126
|
+
offering_uuid (Union[Unset, list[UUID]]):
|
|
114
127
|
page (Union[Unset, int]):
|
|
115
128
|
page_size (Union[Unset, int]):
|
|
116
129
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
@@ -127,6 +140,7 @@ def sync_detailed(
|
|
|
127
140
|
field=field,
|
|
128
141
|
o=o,
|
|
129
142
|
offering=offering,
|
|
143
|
+
offering_slug=offering_slug,
|
|
130
144
|
offering_uuid=offering_uuid,
|
|
131
145
|
page=page,
|
|
132
146
|
page_size=page_size,
|
|
@@ -146,7 +160,8 @@ def sync(
|
|
|
146
160
|
field: Union[Unset, list[MarketplaceOfferingFilesListFieldItem]] = UNSET,
|
|
147
161
|
o: Union[Unset, list[MarketplaceOfferingFilesListOItem]] = UNSET,
|
|
148
162
|
offering: Union[Unset, str] = UNSET,
|
|
149
|
-
|
|
163
|
+
offering_slug: Union[Unset, list[str]] = UNSET,
|
|
164
|
+
offering_uuid: Union[Unset, list[UUID]] = UNSET,
|
|
150
165
|
page: Union[Unset, int] = UNSET,
|
|
151
166
|
page_size: Union[Unset, int] = UNSET,
|
|
152
167
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -157,7 +172,8 @@ def sync(
|
|
|
157
172
|
field (Union[Unset, list[MarketplaceOfferingFilesListFieldItem]]):
|
|
158
173
|
o (Union[Unset, list[MarketplaceOfferingFilesListOItem]]):
|
|
159
174
|
offering (Union[Unset, str]):
|
|
160
|
-
|
|
175
|
+
offering_slug (Union[Unset, list[str]]):
|
|
176
|
+
offering_uuid (Union[Unset, list[UUID]]):
|
|
161
177
|
page (Union[Unset, int]):
|
|
162
178
|
page_size (Union[Unset, int]):
|
|
163
179
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
@@ -175,6 +191,7 @@ def sync(
|
|
|
175
191
|
field=field,
|
|
176
192
|
o=o,
|
|
177
193
|
offering=offering,
|
|
194
|
+
offering_slug=offering_slug,
|
|
178
195
|
offering_uuid=offering_uuid,
|
|
179
196
|
page=page,
|
|
180
197
|
page_size=page_size,
|
|
@@ -188,7 +205,8 @@ async def asyncio_detailed(
|
|
|
188
205
|
field: Union[Unset, list[MarketplaceOfferingFilesListFieldItem]] = UNSET,
|
|
189
206
|
o: Union[Unset, list[MarketplaceOfferingFilesListOItem]] = UNSET,
|
|
190
207
|
offering: Union[Unset, str] = UNSET,
|
|
191
|
-
|
|
208
|
+
offering_slug: Union[Unset, list[str]] = UNSET,
|
|
209
|
+
offering_uuid: Union[Unset, list[UUID]] = UNSET,
|
|
192
210
|
page: Union[Unset, int] = UNSET,
|
|
193
211
|
page_size: Union[Unset, int] = UNSET,
|
|
194
212
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -199,7 +217,8 @@ async def asyncio_detailed(
|
|
|
199
217
|
field (Union[Unset, list[MarketplaceOfferingFilesListFieldItem]]):
|
|
200
218
|
o (Union[Unset, list[MarketplaceOfferingFilesListOItem]]):
|
|
201
219
|
offering (Union[Unset, str]):
|
|
202
|
-
|
|
220
|
+
offering_slug (Union[Unset, list[str]]):
|
|
221
|
+
offering_uuid (Union[Unset, list[UUID]]):
|
|
203
222
|
page (Union[Unset, int]):
|
|
204
223
|
page_size (Union[Unset, int]):
|
|
205
224
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
@@ -216,6 +235,7 @@ async def asyncio_detailed(
|
|
|
216
235
|
field=field,
|
|
217
236
|
o=o,
|
|
218
237
|
offering=offering,
|
|
238
|
+
offering_slug=offering_slug,
|
|
219
239
|
offering_uuid=offering_uuid,
|
|
220
240
|
page=page,
|
|
221
241
|
page_size=page_size,
|
|
@@ -233,7 +253,8 @@ async def asyncio(
|
|
|
233
253
|
field: Union[Unset, list[MarketplaceOfferingFilesListFieldItem]] = UNSET,
|
|
234
254
|
o: Union[Unset, list[MarketplaceOfferingFilesListOItem]] = UNSET,
|
|
235
255
|
offering: Union[Unset, str] = UNSET,
|
|
236
|
-
|
|
256
|
+
offering_slug: Union[Unset, list[str]] = UNSET,
|
|
257
|
+
offering_uuid: Union[Unset, list[UUID]] = UNSET,
|
|
237
258
|
page: Union[Unset, int] = UNSET,
|
|
238
259
|
page_size: Union[Unset, int] = UNSET,
|
|
239
260
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -244,7 +265,8 @@ async def asyncio(
|
|
|
244
265
|
field (Union[Unset, list[MarketplaceOfferingFilesListFieldItem]]):
|
|
245
266
|
o (Union[Unset, list[MarketplaceOfferingFilesListOItem]]):
|
|
246
267
|
offering (Union[Unset, str]):
|
|
247
|
-
|
|
268
|
+
offering_slug (Union[Unset, list[str]]):
|
|
269
|
+
offering_uuid (Union[Unset, list[UUID]]):
|
|
248
270
|
page (Union[Unset, int]):
|
|
249
271
|
page_size (Union[Unset, int]):
|
|
250
272
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
@@ -263,6 +285,7 @@ async def asyncio(
|
|
|
263
285
|
field=field,
|
|
264
286
|
o=o,
|
|
265
287
|
offering=offering,
|
|
288
|
+
offering_slug=offering_slug,
|
|
266
289
|
offering_uuid=offering_uuid,
|
|
267
290
|
page=page,
|
|
268
291
|
page_size=page_size,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains endpoint functions for accessing the API"""
|
|
@@ -0,0 +1,274 @@
|
|
|
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 ...models.marketplace_offering_terms_of_service_count_o_item import MarketplaceOfferingTermsOfServiceCountOItem
|
|
10
|
+
from ...types import UNSET, Response, Unset
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
*,
|
|
15
|
+
is_active: Union[Unset, bool] = UNSET,
|
|
16
|
+
o: Union[Unset, list[MarketplaceOfferingTermsOfServiceCountOItem]] = UNSET,
|
|
17
|
+
offering: Union[Unset, str] = UNSET,
|
|
18
|
+
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
19
|
+
page: Union[Unset, int] = UNSET,
|
|
20
|
+
page_size: Union[Unset, int] = UNSET,
|
|
21
|
+
requires_reconsent: Union[Unset, bool] = UNSET,
|
|
22
|
+
version: Union[Unset, str] = UNSET,
|
|
23
|
+
) -> dict[str, Any]:
|
|
24
|
+
params: dict[str, Any] = {}
|
|
25
|
+
|
|
26
|
+
params["is_active"] = is_active
|
|
27
|
+
|
|
28
|
+
json_o: Union[Unset, list[str]] = UNSET
|
|
29
|
+
if not isinstance(o, Unset):
|
|
30
|
+
json_o = []
|
|
31
|
+
for o_item_data in o:
|
|
32
|
+
o_item = o_item_data.value
|
|
33
|
+
json_o.append(o_item)
|
|
34
|
+
|
|
35
|
+
params["o"] = json_o
|
|
36
|
+
|
|
37
|
+
params["offering"] = offering
|
|
38
|
+
|
|
39
|
+
json_offering_uuid: Union[Unset, str] = UNSET
|
|
40
|
+
if not isinstance(offering_uuid, Unset):
|
|
41
|
+
json_offering_uuid = str(offering_uuid)
|
|
42
|
+
params["offering_uuid"] = json_offering_uuid
|
|
43
|
+
|
|
44
|
+
params["page"] = page
|
|
45
|
+
|
|
46
|
+
params["page_size"] = page_size
|
|
47
|
+
|
|
48
|
+
params["requires_reconsent"] = requires_reconsent
|
|
49
|
+
|
|
50
|
+
params["version"] = version
|
|
51
|
+
|
|
52
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
53
|
+
|
|
54
|
+
_kwargs: dict[str, Any] = {
|
|
55
|
+
"method": "head",
|
|
56
|
+
"url": "/api/marketplace-offering-terms-of-service/",
|
|
57
|
+
"params": params,
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return _kwargs
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> int:
|
|
64
|
+
if response.status_code == HTTPStatus.OK:
|
|
65
|
+
try:
|
|
66
|
+
return int(response.headers["x-result-count"])
|
|
67
|
+
except KeyError:
|
|
68
|
+
raise errors.UnexpectedStatus(
|
|
69
|
+
response.status_code, b"Expected 'X-Result-Count' header for HEAD request, but it was not found."
|
|
70
|
+
)
|
|
71
|
+
except ValueError:
|
|
72
|
+
count_val = response.headers.get("x-result-count")
|
|
73
|
+
msg = f"Expected 'X-Result-Count' header to be an integer, but got '{count_val}'."
|
|
74
|
+
raise errors.UnexpectedStatus(response.status_code, msg.encode())
|
|
75
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[int]:
|
|
79
|
+
return Response(
|
|
80
|
+
status_code=HTTPStatus(response.status_code),
|
|
81
|
+
content=response.content,
|
|
82
|
+
headers=response.headers,
|
|
83
|
+
parsed=_parse_response(client=client, response=response),
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def sync_detailed(
|
|
88
|
+
*,
|
|
89
|
+
client: AuthenticatedClient,
|
|
90
|
+
is_active: Union[Unset, bool] = UNSET,
|
|
91
|
+
o: Union[Unset, list[MarketplaceOfferingTermsOfServiceCountOItem]] = UNSET,
|
|
92
|
+
offering: Union[Unset, str] = UNSET,
|
|
93
|
+
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
94
|
+
page: Union[Unset, int] = UNSET,
|
|
95
|
+
page_size: Union[Unset, int] = UNSET,
|
|
96
|
+
requires_reconsent: Union[Unset, bool] = UNSET,
|
|
97
|
+
version: Union[Unset, str] = UNSET,
|
|
98
|
+
) -> Response[int]:
|
|
99
|
+
"""Get number of items in the collection matching the request parameters.
|
|
100
|
+
|
|
101
|
+
Args:
|
|
102
|
+
is_active (Union[Unset, bool]):
|
|
103
|
+
o (Union[Unset, list[MarketplaceOfferingTermsOfServiceCountOItem]]):
|
|
104
|
+
offering (Union[Unset, str]):
|
|
105
|
+
offering_uuid (Union[Unset, UUID]):
|
|
106
|
+
page (Union[Unset, int]):
|
|
107
|
+
page_size (Union[Unset, int]):
|
|
108
|
+
requires_reconsent (Union[Unset, bool]):
|
|
109
|
+
version (Union[Unset, str]):
|
|
110
|
+
|
|
111
|
+
Raises:
|
|
112
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
113
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
114
|
+
|
|
115
|
+
Returns:
|
|
116
|
+
Response[int]
|
|
117
|
+
"""
|
|
118
|
+
|
|
119
|
+
kwargs = _get_kwargs(
|
|
120
|
+
is_active=is_active,
|
|
121
|
+
o=o,
|
|
122
|
+
offering=offering,
|
|
123
|
+
offering_uuid=offering_uuid,
|
|
124
|
+
page=page,
|
|
125
|
+
page_size=page_size,
|
|
126
|
+
requires_reconsent=requires_reconsent,
|
|
127
|
+
version=version,
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
response = client.get_httpx_client().request(
|
|
131
|
+
**kwargs,
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
return _build_response(client=client, response=response)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
def sync(
|
|
138
|
+
*,
|
|
139
|
+
client: AuthenticatedClient,
|
|
140
|
+
is_active: Union[Unset, bool] = UNSET,
|
|
141
|
+
o: Union[Unset, list[MarketplaceOfferingTermsOfServiceCountOItem]] = UNSET,
|
|
142
|
+
offering: Union[Unset, str] = UNSET,
|
|
143
|
+
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
144
|
+
page: Union[Unset, int] = UNSET,
|
|
145
|
+
page_size: Union[Unset, int] = UNSET,
|
|
146
|
+
requires_reconsent: Union[Unset, bool] = UNSET,
|
|
147
|
+
version: Union[Unset, str] = UNSET,
|
|
148
|
+
) -> int:
|
|
149
|
+
"""Get number of items in the collection matching the request parameters.
|
|
150
|
+
|
|
151
|
+
Args:
|
|
152
|
+
is_active (Union[Unset, bool]):
|
|
153
|
+
o (Union[Unset, list[MarketplaceOfferingTermsOfServiceCountOItem]]):
|
|
154
|
+
offering (Union[Unset, str]):
|
|
155
|
+
offering_uuid (Union[Unset, UUID]):
|
|
156
|
+
page (Union[Unset, int]):
|
|
157
|
+
page_size (Union[Unset, int]):
|
|
158
|
+
requires_reconsent (Union[Unset, bool]):
|
|
159
|
+
version (Union[Unset, str]):
|
|
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
|
+
int
|
|
167
|
+
"""
|
|
168
|
+
|
|
169
|
+
return sync_detailed(
|
|
170
|
+
client=client,
|
|
171
|
+
is_active=is_active,
|
|
172
|
+
o=o,
|
|
173
|
+
offering=offering,
|
|
174
|
+
offering_uuid=offering_uuid,
|
|
175
|
+
page=page,
|
|
176
|
+
page_size=page_size,
|
|
177
|
+
requires_reconsent=requires_reconsent,
|
|
178
|
+
version=version,
|
|
179
|
+
).parsed
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
async def asyncio_detailed(
|
|
183
|
+
*,
|
|
184
|
+
client: AuthenticatedClient,
|
|
185
|
+
is_active: Union[Unset, bool] = UNSET,
|
|
186
|
+
o: Union[Unset, list[MarketplaceOfferingTermsOfServiceCountOItem]] = UNSET,
|
|
187
|
+
offering: Union[Unset, str] = UNSET,
|
|
188
|
+
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
189
|
+
page: Union[Unset, int] = UNSET,
|
|
190
|
+
page_size: Union[Unset, int] = UNSET,
|
|
191
|
+
requires_reconsent: Union[Unset, bool] = UNSET,
|
|
192
|
+
version: Union[Unset, str] = UNSET,
|
|
193
|
+
) -> Response[int]:
|
|
194
|
+
"""Get number of items in the collection matching the request parameters.
|
|
195
|
+
|
|
196
|
+
Args:
|
|
197
|
+
is_active (Union[Unset, bool]):
|
|
198
|
+
o (Union[Unset, list[MarketplaceOfferingTermsOfServiceCountOItem]]):
|
|
199
|
+
offering (Union[Unset, str]):
|
|
200
|
+
offering_uuid (Union[Unset, UUID]):
|
|
201
|
+
page (Union[Unset, int]):
|
|
202
|
+
page_size (Union[Unset, int]):
|
|
203
|
+
requires_reconsent (Union[Unset, bool]):
|
|
204
|
+
version (Union[Unset, str]):
|
|
205
|
+
|
|
206
|
+
Raises:
|
|
207
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
208
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
209
|
+
|
|
210
|
+
Returns:
|
|
211
|
+
Response[int]
|
|
212
|
+
"""
|
|
213
|
+
|
|
214
|
+
kwargs = _get_kwargs(
|
|
215
|
+
is_active=is_active,
|
|
216
|
+
o=o,
|
|
217
|
+
offering=offering,
|
|
218
|
+
offering_uuid=offering_uuid,
|
|
219
|
+
page=page,
|
|
220
|
+
page_size=page_size,
|
|
221
|
+
requires_reconsent=requires_reconsent,
|
|
222
|
+
version=version,
|
|
223
|
+
)
|
|
224
|
+
|
|
225
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
226
|
+
|
|
227
|
+
return _build_response(client=client, response=response)
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
async def asyncio(
|
|
231
|
+
*,
|
|
232
|
+
client: AuthenticatedClient,
|
|
233
|
+
is_active: Union[Unset, bool] = UNSET,
|
|
234
|
+
o: Union[Unset, list[MarketplaceOfferingTermsOfServiceCountOItem]] = UNSET,
|
|
235
|
+
offering: Union[Unset, str] = UNSET,
|
|
236
|
+
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
237
|
+
page: Union[Unset, int] = UNSET,
|
|
238
|
+
page_size: Union[Unset, int] = UNSET,
|
|
239
|
+
requires_reconsent: Union[Unset, bool] = UNSET,
|
|
240
|
+
version: Union[Unset, str] = UNSET,
|
|
241
|
+
) -> int:
|
|
242
|
+
"""Get number of items in the collection matching the request parameters.
|
|
243
|
+
|
|
244
|
+
Args:
|
|
245
|
+
is_active (Union[Unset, bool]):
|
|
246
|
+
o (Union[Unset, list[MarketplaceOfferingTermsOfServiceCountOItem]]):
|
|
247
|
+
offering (Union[Unset, str]):
|
|
248
|
+
offering_uuid (Union[Unset, UUID]):
|
|
249
|
+
page (Union[Unset, int]):
|
|
250
|
+
page_size (Union[Unset, int]):
|
|
251
|
+
requires_reconsent (Union[Unset, bool]):
|
|
252
|
+
version (Union[Unset, str]):
|
|
253
|
+
|
|
254
|
+
Raises:
|
|
255
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
256
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
257
|
+
|
|
258
|
+
Returns:
|
|
259
|
+
int
|
|
260
|
+
"""
|
|
261
|
+
|
|
262
|
+
return (
|
|
263
|
+
await asyncio_detailed(
|
|
264
|
+
client=client,
|
|
265
|
+
is_active=is_active,
|
|
266
|
+
o=o,
|
|
267
|
+
offering=offering,
|
|
268
|
+
offering_uuid=offering_uuid,
|
|
269
|
+
page=page,
|
|
270
|
+
page_size=page_size,
|
|
271
|
+
requires_reconsent=requires_reconsent,
|
|
272
|
+
version=version,
|
|
273
|
+
)
|
|
274
|
+
).parsed
|