waldur-api-client 7.7.5__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_checklist_retrieve.py +154 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_checklist_review_retrieve.py +154 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_completion_review_status_retrieve.py +154 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_completion_status_retrieve.py +154 -0
- 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_offering_users/marketplace_offering_users_submit_answers.py +179 -0
- 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_robot_accounts/marketplace_robot_accounts_list.py +23 -0
- waldur_api_client/api/marketplace_robot_accounts/marketplace_robot_accounts_retrieve.py +30 -1
- 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_service_providers/marketplace_service_providers_project_service_accounts_list.py +276 -0
- waldur_api_client/api/marketplace_service_providers/service_provider_compliance_overview.py +189 -0
- waldur_api_client/api/marketplace_service_providers/service_provider_offering_users_compliance.py +222 -0
- 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/public_maintenance_announcements/__init__.py +1 -0
- waldur_api_client/api/public_maintenance_announcements/public_maintenance_announcements_count.py +325 -0
- waldur_api_client/api/public_maintenance_announcements/public_maintenance_announcements_list.py +328 -0
- waldur_api_client/api/public_maintenance_announcements/public_maintenance_announcements_retrieve.py +144 -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 +118 -4
- waldur_api_client/models/admin_announcement.py +109 -1
- waldur_api_client/models/admin_announcement_maintenance_affected_offerings_item.py +103 -0
- waldur_api_client/models/admin_announcements_list_field_item.py +8 -0
- waldur_api_client/models/admin_announcements_retrieve_field_item.py +8 -0
- waldur_api_client/models/azure_sql_server_create_order_attributes.py +83 -0
- waldur_api_client/models/azure_virtual_machine_create_order_attributes.py +99 -0
- waldur_api_client/models/basic_user.py +30 -21
- waldur_api_client/models/booking_offerings_list_field_item.py +1 -2
- waldur_api_client/models/booking_offerings_retrieve_field_item.py +1 -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/create_router.py +1 -1
- waldur_api_client/models/create_router_request.py +1 -1
- waldur_api_client/models/customer.py +51 -0
- waldur_api_client/models/customers_list_field_item.py +2 -0
- waldur_api_client/models/customers_retrieve_field_item.py +2 -0
- waldur_api_client/models/fingerprint.py +19 -17
- 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/instance_flavor_change_request.py +1 -1
- waldur_api_client/models/maintenance_announcement.py +8 -0
- waldur_api_client/models/marketplace_managed_rancher_create_order_attributes.py +144 -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 +1 -2
- waldur_api_client/models/marketplace_provider_offerings_list_field_item.py +1 -2
- waldur_api_client/models/marketplace_provider_offerings_list_project_service_accounts_retrieve_field_item.py +1 -2
- waldur_api_client/models/marketplace_provider_offerings_retrieve_field_item.py +1 -2
- waldur_api_client/models/marketplace_provider_offerings_stats_retrieve_field_item.py +1 -2
- waldur_api_client/models/marketplace_provider_offerings_user_has_resource_access_retrieve_field_item.py +1 -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 +1 -2
- waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +1 -2
- waldur_api_client/models/marketplace_rancher_create_order_attributes.py +145 -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_robot_accounts_list_field_item.py +32 -0
- waldur_api_client/models/marketplace_robot_accounts_retrieve_field_item.py +32 -0
- 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 +9 -18
- waldur_api_client/models/offering_create.py +8 -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_backend_instance.py +2 -2
- waldur_api_client/models/open_stack_backend_volumes.py +3 -3
- waldur_api_client/models/open_stack_backup.py +1 -1
- waldur_api_client/models/open_stack_backup_restoration.py +8 -5
- waldur_api_client/models/open_stack_backup_restoration_request.py +28 -3
- waldur_api_client/models/open_stack_fixed_ip.py +2 -2
- waldur_api_client/models/open_stack_fixed_ip_request.py +2 -2
- waldur_api_client/models/open_stack_floating_ip.py +5 -4
- waldur_api_client/models/open_stack_instance.py +17 -15
- waldur_api_client/models/open_stack_instance_allowed_address_pairs_update_request.py +3 -2
- waldur_api_client/models/open_stack_instance_availability_zone.py +1 -1
- waldur_api_client/models/open_stack_instance_create_order_attributes.py +283 -0
- waldur_api_client/models/open_stack_instance_request.py +4 -3
- waldur_api_client/models/open_stack_instance_security_groups_update_request.py +1 -1
- waldur_api_client/models/open_stack_nested_floating_ip.py +3 -3
- waldur_api_client/models/open_stack_nested_instance.py +1 -1
- waldur_api_client/models/open_stack_nested_port.py +5 -5
- waldur_api_client/models/open_stack_nested_port_request.py +1 -1
- waldur_api_client/models/open_stack_nested_security_group.py +16 -16
- waldur_api_client/models/open_stack_nested_security_group_request.py +59 -0
- waldur_api_client/models/{nested_security_group_rule_request.py → open_stack_nested_security_group_rules_item.py} +73 -63
- waldur_api_client/models/open_stack_nested_sub_net.py +4 -4
- waldur_api_client/models/open_stack_nested_sub_net_request.py +4 -4
- waldur_api_client/models/open_stack_nested_volume.py +3 -3
- waldur_api_client/models/open_stack_nested_volume_request.py +3 -3
- waldur_api_client/models/open_stack_network.py +23 -3
- waldur_api_client/models/open_stack_port.py +10 -9
- waldur_api_client/models/open_stack_port_ip_update_request.py +2 -2
- waldur_api_client/models/open_stack_port_request.py +3 -3
- waldur_api_client/models/open_stack_router.py +2 -2
- waldur_api_client/models/open_stack_router_interface_request.py +4 -2
- waldur_api_client/models/open_stack_security_group_rule_create.py +6 -5
- waldur_api_client/models/open_stack_security_group_rule_create_request.py +6 -5
- waldur_api_client/models/open_stack_security_group_rule_update_request.py +10 -9
- waldur_api_client/models/open_stack_server_group.py +2 -1
- waldur_api_client/models/open_stack_server_group_request.py +2 -1
- waldur_api_client/models/open_stack_snapshot.py +2 -2
- waldur_api_client/models/open_stack_snapshot_restoration.py +1 -1
- waldur_api_client/models/open_stack_sub_net.py +5 -5
- waldur_api_client/models/open_stack_sub_net_request.py +2 -2
- waldur_api_client/models/open_stack_tenant.py +41 -3
- waldur_api_client/models/open_stack_tenant_create_order_attributes.py +130 -0
- waldur_api_client/models/open_stack_volume.py +9 -9
- waldur_api_client/models/open_stack_volume_create_order_attributes.py +155 -0
- waldur_api_client/models/open_stack_volume_request.py +1 -1
- 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 +181 -4
- 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_open_stack_instance_request.py +4 -3
- waldur_api_client/models/patched_open_stack_server_group_request.py +2 -1
- waldur_api_client/models/patched_open_stack_sub_net_request.py +2 -2
- waldur_api_client/models/patched_open_stack_volume_request.py +1 -1
- 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/permission_request.py +2 -2
- 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 +9 -18
- waldur_api_client/models/provider_offering_details_request.py +0 -18
- waldur_api_client/models/public_maintenance_announcement.py +217 -0
- waldur_api_client/models/public_maintenance_announcement_state_enum.py +10 -0
- waldur_api_client/models/public_maintenance_announcements_count_o_item.py +15 -0
- waldur_api_client/models/public_maintenance_announcements_count_state_item.py +12 -0
- waldur_api_client/models/public_maintenance_announcements_list_o_item.py +15 -0
- waldur_api_client/models/public_maintenance_announcements_list_state_item.py +12 -0
- waldur_api_client/models/public_offering_details.py +9 -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/rancher_cluster_security_group_rule.py +5 -4
- waldur_api_client/models/rancher_cluster_security_group_rule_request.py +5 -4
- waldur_api_client/models/remote_project_update_request.py +2 -2
- 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/robot_account_details.py +226 -144
- waldur_api_client/models/service_provider.py +9 -0
- waldur_api_client/models/service_provider_compliance_overview.py +122 -0
- waldur_api_client/models/service_provider_offering_user_compliance.py +179 -0
- waldur_api_client/models/service_provider_offering_user_compliance_state_enum.py +17 -0
- waldur_api_client/models/slurm_invoices_slurm_package_create_order_attributes.py +75 -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 +228 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes_guest_os_type_1.py +155 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes_guest_os_type_2_type_1.py +155 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes_guest_os_type_3_type_1.py +155 -0
- waldur_api_client/models/volume_attach_request.py +1 -1
- {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.7.dist-info}/METADATA +1 -1
- {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.7.dist-info}/RECORD +228 -138
- waldur_api_client/models/nested_security_group_rule.py +0 -222
- {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.7.dist-info}/LICENSE +0 -0
- {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.7.dist-info}/WHEEL +0 -0
|
@@ -30,8 +30,9 @@ def _get_kwargs(
|
|
|
30
30
|
offering: Union[Unset, str] = UNSET,
|
|
31
31
|
offering_billable: Union[Unset, UUID] = UNSET,
|
|
32
32
|
offering_shared: Union[Unset, bool] = UNSET,
|
|
33
|
+
offering_slug: Union[Unset, list[str]] = UNSET,
|
|
33
34
|
offering_type: Union[Unset, str] = UNSET,
|
|
34
|
-
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
35
|
+
offering_uuid: Union[Unset, list[UUID]] = UNSET,
|
|
35
36
|
page: Union[Unset, int] = UNSET,
|
|
36
37
|
page_size: Union[Unset, int] = UNSET,
|
|
37
38
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -105,11 +106,21 @@ def _get_kwargs(
|
|
|
105
106
|
|
|
106
107
|
params["offering_shared"] = offering_shared
|
|
107
108
|
|
|
109
|
+
json_offering_slug: Union[Unset, list[str]] = UNSET
|
|
110
|
+
if not isinstance(offering_slug, Unset):
|
|
111
|
+
json_offering_slug = offering_slug
|
|
112
|
+
|
|
113
|
+
params["offering_slug"] = json_offering_slug
|
|
114
|
+
|
|
108
115
|
params["offering_type"] = offering_type
|
|
109
116
|
|
|
110
|
-
json_offering_uuid: Union[Unset, str] = UNSET
|
|
117
|
+
json_offering_uuid: Union[Unset, list[str]] = UNSET
|
|
111
118
|
if not isinstance(offering_uuid, Unset):
|
|
112
|
-
json_offering_uuid =
|
|
119
|
+
json_offering_uuid = []
|
|
120
|
+
for offering_uuid_item_data in offering_uuid:
|
|
121
|
+
offering_uuid_item = str(offering_uuid_item_data)
|
|
122
|
+
json_offering_uuid.append(offering_uuid_item)
|
|
123
|
+
|
|
113
124
|
params["offering_uuid"] = json_offering_uuid
|
|
114
125
|
|
|
115
126
|
params["page"] = page
|
|
@@ -211,8 +222,9 @@ def sync_detailed(
|
|
|
211
222
|
offering: Union[Unset, str] = UNSET,
|
|
212
223
|
offering_billable: Union[Unset, UUID] = UNSET,
|
|
213
224
|
offering_shared: Union[Unset, bool] = UNSET,
|
|
225
|
+
offering_slug: Union[Unset, list[str]] = UNSET,
|
|
214
226
|
offering_type: Union[Unset, str] = UNSET,
|
|
215
|
-
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
227
|
+
offering_uuid: Union[Unset, list[UUID]] = UNSET,
|
|
216
228
|
page: Union[Unset, int] = UNSET,
|
|
217
229
|
page_size: Union[Unset, int] = UNSET,
|
|
218
230
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -246,8 +258,9 @@ def sync_detailed(
|
|
|
246
258
|
offering (Union[Unset, str]):
|
|
247
259
|
offering_billable (Union[Unset, UUID]):
|
|
248
260
|
offering_shared (Union[Unset, bool]):
|
|
261
|
+
offering_slug (Union[Unset, list[str]]):
|
|
249
262
|
offering_type (Union[Unset, str]):
|
|
250
|
-
offering_uuid (Union[Unset, UUID]):
|
|
263
|
+
offering_uuid (Union[Unset, list[UUID]]):
|
|
251
264
|
page (Union[Unset, int]):
|
|
252
265
|
page_size (Union[Unset, int]):
|
|
253
266
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
@@ -287,6 +300,7 @@ def sync_detailed(
|
|
|
287
300
|
offering=offering,
|
|
288
301
|
offering_billable=offering_billable,
|
|
289
302
|
offering_shared=offering_shared,
|
|
303
|
+
offering_slug=offering_slug,
|
|
290
304
|
offering_type=offering_type,
|
|
291
305
|
offering_uuid=offering_uuid,
|
|
292
306
|
page=page,
|
|
@@ -330,8 +344,9 @@ def sync(
|
|
|
330
344
|
offering: Union[Unset, str] = UNSET,
|
|
331
345
|
offering_billable: Union[Unset, UUID] = UNSET,
|
|
332
346
|
offering_shared: Union[Unset, bool] = UNSET,
|
|
347
|
+
offering_slug: Union[Unset, list[str]] = UNSET,
|
|
333
348
|
offering_type: Union[Unset, str] = UNSET,
|
|
334
|
-
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
349
|
+
offering_uuid: Union[Unset, list[UUID]] = UNSET,
|
|
335
350
|
page: Union[Unset, int] = UNSET,
|
|
336
351
|
page_size: Union[Unset, int] = UNSET,
|
|
337
352
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -365,8 +380,9 @@ def sync(
|
|
|
365
380
|
offering (Union[Unset, str]):
|
|
366
381
|
offering_billable (Union[Unset, UUID]):
|
|
367
382
|
offering_shared (Union[Unset, bool]):
|
|
383
|
+
offering_slug (Union[Unset, list[str]]):
|
|
368
384
|
offering_type (Union[Unset, str]):
|
|
369
|
-
offering_uuid (Union[Unset, UUID]):
|
|
385
|
+
offering_uuid (Union[Unset, list[UUID]]):
|
|
370
386
|
page (Union[Unset, int]):
|
|
371
387
|
page_size (Union[Unset, int]):
|
|
372
388
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
@@ -407,6 +423,7 @@ def sync(
|
|
|
407
423
|
offering=offering,
|
|
408
424
|
offering_billable=offering_billable,
|
|
409
425
|
offering_shared=offering_shared,
|
|
426
|
+
offering_slug=offering_slug,
|
|
410
427
|
offering_type=offering_type,
|
|
411
428
|
offering_uuid=offering_uuid,
|
|
412
429
|
page=page,
|
|
@@ -444,8 +461,9 @@ async def asyncio_detailed(
|
|
|
444
461
|
offering: Union[Unset, str] = UNSET,
|
|
445
462
|
offering_billable: Union[Unset, UUID] = UNSET,
|
|
446
463
|
offering_shared: Union[Unset, bool] = UNSET,
|
|
464
|
+
offering_slug: Union[Unset, list[str]] = UNSET,
|
|
447
465
|
offering_type: Union[Unset, str] = UNSET,
|
|
448
|
-
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
466
|
+
offering_uuid: Union[Unset, list[UUID]] = UNSET,
|
|
449
467
|
page: Union[Unset, int] = UNSET,
|
|
450
468
|
page_size: Union[Unset, int] = UNSET,
|
|
451
469
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -479,8 +497,9 @@ async def asyncio_detailed(
|
|
|
479
497
|
offering (Union[Unset, str]):
|
|
480
498
|
offering_billable (Union[Unset, UUID]):
|
|
481
499
|
offering_shared (Union[Unset, bool]):
|
|
500
|
+
offering_slug (Union[Unset, list[str]]):
|
|
482
501
|
offering_type (Union[Unset, str]):
|
|
483
|
-
offering_uuid (Union[Unset, UUID]):
|
|
502
|
+
offering_uuid (Union[Unset, list[UUID]]):
|
|
484
503
|
page (Union[Unset, int]):
|
|
485
504
|
page_size (Union[Unset, int]):
|
|
486
505
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
@@ -520,6 +539,7 @@ async def asyncio_detailed(
|
|
|
520
539
|
offering=offering,
|
|
521
540
|
offering_billable=offering_billable,
|
|
522
541
|
offering_shared=offering_shared,
|
|
542
|
+
offering_slug=offering_slug,
|
|
523
543
|
offering_type=offering_type,
|
|
524
544
|
offering_uuid=offering_uuid,
|
|
525
545
|
page=page,
|
|
@@ -561,8 +581,9 @@ async def asyncio(
|
|
|
561
581
|
offering: Union[Unset, str] = UNSET,
|
|
562
582
|
offering_billable: Union[Unset, UUID] = UNSET,
|
|
563
583
|
offering_shared: Union[Unset, bool] = UNSET,
|
|
584
|
+
offering_slug: Union[Unset, list[str]] = UNSET,
|
|
564
585
|
offering_type: Union[Unset, str] = UNSET,
|
|
565
|
-
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
586
|
+
offering_uuid: Union[Unset, list[UUID]] = UNSET,
|
|
566
587
|
page: Union[Unset, int] = UNSET,
|
|
567
588
|
page_size: Union[Unset, int] = UNSET,
|
|
568
589
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -596,8 +617,9 @@ async def asyncio(
|
|
|
596
617
|
offering (Union[Unset, str]):
|
|
597
618
|
offering_billable (Union[Unset, UUID]):
|
|
598
619
|
offering_shared (Union[Unset, bool]):
|
|
620
|
+
offering_slug (Union[Unset, list[str]]):
|
|
599
621
|
offering_type (Union[Unset, str]):
|
|
600
|
-
offering_uuid (Union[Unset, UUID]):
|
|
622
|
+
offering_uuid (Union[Unset, list[UUID]]):
|
|
601
623
|
page (Union[Unset, int]):
|
|
602
624
|
page_size (Union[Unset, int]):
|
|
603
625
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
@@ -639,6 +661,7 @@ async def asyncio(
|
|
|
639
661
|
offering=offering,
|
|
640
662
|
offering_billable=offering_billable,
|
|
641
663
|
offering_shared=offering_shared,
|
|
664
|
+
offering_slug=offering_slug,
|
|
642
665
|
offering_type=offering_type,
|
|
643
666
|
offering_uuid=offering_uuid,
|
|
644
667
|
page=page,
|
|
@@ -33,8 +33,9 @@ def _get_kwargs(
|
|
|
33
33
|
offering: Union[Unset, str] = UNSET,
|
|
34
34
|
offering_billable: Union[Unset, UUID] = UNSET,
|
|
35
35
|
offering_shared: Union[Unset, bool] = UNSET,
|
|
36
|
+
offering_slug: Union[Unset, list[str]] = UNSET,
|
|
36
37
|
offering_type: Union[Unset, str] = UNSET,
|
|
37
|
-
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
38
|
+
offering_uuid: Union[Unset, list[UUID]] = UNSET,
|
|
38
39
|
page: Union[Unset, int] = UNSET,
|
|
39
40
|
page_size: Union[Unset, int] = UNSET,
|
|
40
41
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -117,11 +118,21 @@ def _get_kwargs(
|
|
|
117
118
|
|
|
118
119
|
params["offering_shared"] = offering_shared
|
|
119
120
|
|
|
121
|
+
json_offering_slug: Union[Unset, list[str]] = UNSET
|
|
122
|
+
if not isinstance(offering_slug, Unset):
|
|
123
|
+
json_offering_slug = offering_slug
|
|
124
|
+
|
|
125
|
+
params["offering_slug"] = json_offering_slug
|
|
126
|
+
|
|
120
127
|
params["offering_type"] = offering_type
|
|
121
128
|
|
|
122
|
-
json_offering_uuid: Union[Unset, str] = UNSET
|
|
129
|
+
json_offering_uuid: Union[Unset, list[str]] = UNSET
|
|
123
130
|
if not isinstance(offering_uuid, Unset):
|
|
124
|
-
json_offering_uuid =
|
|
131
|
+
json_offering_uuid = []
|
|
132
|
+
for offering_uuid_item_data in offering_uuid:
|
|
133
|
+
offering_uuid_item = str(offering_uuid_item_data)
|
|
134
|
+
json_offering_uuid.append(offering_uuid_item)
|
|
135
|
+
|
|
125
136
|
params["offering_uuid"] = json_offering_uuid
|
|
126
137
|
|
|
127
138
|
params["page"] = page
|
|
@@ -224,8 +235,9 @@ def sync_detailed(
|
|
|
224
235
|
offering: Union[Unset, str] = UNSET,
|
|
225
236
|
offering_billable: Union[Unset, UUID] = UNSET,
|
|
226
237
|
offering_shared: Union[Unset, bool] = UNSET,
|
|
238
|
+
offering_slug: Union[Unset, list[str]] = UNSET,
|
|
227
239
|
offering_type: Union[Unset, str] = UNSET,
|
|
228
|
-
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
240
|
+
offering_uuid: Union[Unset, list[UUID]] = UNSET,
|
|
229
241
|
page: Union[Unset, int] = UNSET,
|
|
230
242
|
page_size: Union[Unset, int] = UNSET,
|
|
231
243
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -260,8 +272,9 @@ def sync_detailed(
|
|
|
260
272
|
offering (Union[Unset, str]):
|
|
261
273
|
offering_billable (Union[Unset, UUID]):
|
|
262
274
|
offering_shared (Union[Unset, bool]):
|
|
275
|
+
offering_slug (Union[Unset, list[str]]):
|
|
263
276
|
offering_type (Union[Unset, str]):
|
|
264
|
-
offering_uuid (Union[Unset, UUID]):
|
|
277
|
+
offering_uuid (Union[Unset, list[UUID]]):
|
|
265
278
|
page (Union[Unset, int]):
|
|
266
279
|
page_size (Union[Unset, int]):
|
|
267
280
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
@@ -302,6 +315,7 @@ def sync_detailed(
|
|
|
302
315
|
offering=offering,
|
|
303
316
|
offering_billable=offering_billable,
|
|
304
317
|
offering_shared=offering_shared,
|
|
318
|
+
offering_slug=offering_slug,
|
|
305
319
|
offering_type=offering_type,
|
|
306
320
|
offering_uuid=offering_uuid,
|
|
307
321
|
page=page,
|
|
@@ -346,8 +360,9 @@ def sync(
|
|
|
346
360
|
offering: Union[Unset, str] = UNSET,
|
|
347
361
|
offering_billable: Union[Unset, UUID] = UNSET,
|
|
348
362
|
offering_shared: Union[Unset, bool] = UNSET,
|
|
363
|
+
offering_slug: Union[Unset, list[str]] = UNSET,
|
|
349
364
|
offering_type: Union[Unset, str] = UNSET,
|
|
350
|
-
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
365
|
+
offering_uuid: Union[Unset, list[UUID]] = UNSET,
|
|
351
366
|
page: Union[Unset, int] = UNSET,
|
|
352
367
|
page_size: Union[Unset, int] = UNSET,
|
|
353
368
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -382,8 +397,9 @@ def sync(
|
|
|
382
397
|
offering (Union[Unset, str]):
|
|
383
398
|
offering_billable (Union[Unset, UUID]):
|
|
384
399
|
offering_shared (Union[Unset, bool]):
|
|
400
|
+
offering_slug (Union[Unset, list[str]]):
|
|
385
401
|
offering_type (Union[Unset, str]):
|
|
386
|
-
offering_uuid (Union[Unset, UUID]):
|
|
402
|
+
offering_uuid (Union[Unset, list[UUID]]):
|
|
387
403
|
page (Union[Unset, int]):
|
|
388
404
|
page_size (Union[Unset, int]):
|
|
389
405
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
@@ -425,6 +441,7 @@ def sync(
|
|
|
425
441
|
offering=offering,
|
|
426
442
|
offering_billable=offering_billable,
|
|
427
443
|
offering_shared=offering_shared,
|
|
444
|
+
offering_slug=offering_slug,
|
|
428
445
|
offering_type=offering_type,
|
|
429
446
|
offering_uuid=offering_uuid,
|
|
430
447
|
page=page,
|
|
@@ -463,8 +480,9 @@ async def asyncio_detailed(
|
|
|
463
480
|
offering: Union[Unset, str] = UNSET,
|
|
464
481
|
offering_billable: Union[Unset, UUID] = UNSET,
|
|
465
482
|
offering_shared: Union[Unset, bool] = UNSET,
|
|
483
|
+
offering_slug: Union[Unset, list[str]] = UNSET,
|
|
466
484
|
offering_type: Union[Unset, str] = UNSET,
|
|
467
|
-
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
485
|
+
offering_uuid: Union[Unset, list[UUID]] = UNSET,
|
|
468
486
|
page: Union[Unset, int] = UNSET,
|
|
469
487
|
page_size: Union[Unset, int] = UNSET,
|
|
470
488
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -499,8 +517,9 @@ async def asyncio_detailed(
|
|
|
499
517
|
offering (Union[Unset, str]):
|
|
500
518
|
offering_billable (Union[Unset, UUID]):
|
|
501
519
|
offering_shared (Union[Unset, bool]):
|
|
520
|
+
offering_slug (Union[Unset, list[str]]):
|
|
502
521
|
offering_type (Union[Unset, str]):
|
|
503
|
-
offering_uuid (Union[Unset, UUID]):
|
|
522
|
+
offering_uuid (Union[Unset, list[UUID]]):
|
|
504
523
|
page (Union[Unset, int]):
|
|
505
524
|
page_size (Union[Unset, int]):
|
|
506
525
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
@@ -541,6 +560,7 @@ async def asyncio_detailed(
|
|
|
541
560
|
offering=offering,
|
|
542
561
|
offering_billable=offering_billable,
|
|
543
562
|
offering_shared=offering_shared,
|
|
563
|
+
offering_slug=offering_slug,
|
|
544
564
|
offering_type=offering_type,
|
|
545
565
|
offering_uuid=offering_uuid,
|
|
546
566
|
page=page,
|
|
@@ -583,8 +603,9 @@ async def asyncio(
|
|
|
583
603
|
offering: Union[Unset, str] = UNSET,
|
|
584
604
|
offering_billable: Union[Unset, UUID] = UNSET,
|
|
585
605
|
offering_shared: Union[Unset, bool] = UNSET,
|
|
606
|
+
offering_slug: Union[Unset, list[str]] = UNSET,
|
|
586
607
|
offering_type: Union[Unset, str] = UNSET,
|
|
587
|
-
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
608
|
+
offering_uuid: Union[Unset, list[UUID]] = UNSET,
|
|
588
609
|
page: Union[Unset, int] = UNSET,
|
|
589
610
|
page_size: Union[Unset, int] = UNSET,
|
|
590
611
|
parent_offering_uuid: Union[Unset, UUID] = UNSET,
|
|
@@ -619,8 +640,9 @@ async def asyncio(
|
|
|
619
640
|
offering (Union[Unset, str]):
|
|
620
641
|
offering_billable (Union[Unset, UUID]):
|
|
621
642
|
offering_shared (Union[Unset, bool]):
|
|
643
|
+
offering_slug (Union[Unset, list[str]]):
|
|
622
644
|
offering_type (Union[Unset, str]):
|
|
623
|
-
offering_uuid (Union[Unset, UUID]):
|
|
645
|
+
offering_uuid (Union[Unset, list[UUID]]):
|
|
624
646
|
page (Union[Unset, int]):
|
|
625
647
|
page_size (Union[Unset, int]):
|
|
626
648
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
@@ -663,6 +685,7 @@ async def asyncio(
|
|
|
663
685
|
offering=offering,
|
|
664
686
|
offering_billable=offering_billable,
|
|
665
687
|
offering_shared=offering_shared,
|
|
688
|
+
offering_slug=offering_slug,
|
|
666
689
|
offering_type=offering_type,
|
|
667
690
|
offering_uuid=offering_uuid,
|
|
668
691
|
page=page,
|
|
@@ -0,0 +1,189 @@
|
|
|
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.project_details_response import ProjectDetailsResponse
|
|
10
|
+
from ...types import UNSET, Response, Unset
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
customer_uuid: UUID,
|
|
15
|
+
*,
|
|
16
|
+
page: Union[Unset, int] = UNSET,
|
|
17
|
+
page_size: Union[Unset, int] = UNSET,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
params: dict[str, Any] = {}
|
|
20
|
+
|
|
21
|
+
params["page"] = page
|
|
22
|
+
|
|
23
|
+
params["page_size"] = page_size
|
|
24
|
+
|
|
25
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
26
|
+
|
|
27
|
+
_kwargs: dict[str, Any] = {
|
|
28
|
+
"method": "get",
|
|
29
|
+
"url": f"/api/customers/{customer_uuid}/project-metadata-compliance-details/",
|
|
30
|
+
"params": params,
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return _kwargs
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def _parse_response(
|
|
37
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
38
|
+
) -> list["ProjectDetailsResponse"]:
|
|
39
|
+
if response.status_code == 200:
|
|
40
|
+
response_200 = []
|
|
41
|
+
_response_200 = response.json()
|
|
42
|
+
for response_200_item_data in _response_200:
|
|
43
|
+
response_200_item = ProjectDetailsResponse.from_dict(response_200_item_data)
|
|
44
|
+
|
|
45
|
+
response_200.append(response_200_item)
|
|
46
|
+
|
|
47
|
+
return response_200
|
|
48
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def _build_response(
|
|
52
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
53
|
+
) -> Response[list["ProjectDetailsResponse"]]:
|
|
54
|
+
return Response(
|
|
55
|
+
status_code=HTTPStatus(response.status_code),
|
|
56
|
+
content=response.content,
|
|
57
|
+
headers=response.headers,
|
|
58
|
+
parsed=_parse_response(client=client, response=response),
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def sync_detailed(
|
|
63
|
+
customer_uuid: UUID,
|
|
64
|
+
*,
|
|
65
|
+
client: AuthenticatedClient,
|
|
66
|
+
page: Union[Unset, int] = UNSET,
|
|
67
|
+
page_size: Union[Unset, int] = UNSET,
|
|
68
|
+
) -> Response[list["ProjectDetailsResponse"]]:
|
|
69
|
+
"""Get detailed project compliance information with database-level pagination.
|
|
70
|
+
|
|
71
|
+
Args:
|
|
72
|
+
customer_uuid (UUID):
|
|
73
|
+
page (Union[Unset, int]):
|
|
74
|
+
page_size (Union[Unset, int]):
|
|
75
|
+
|
|
76
|
+
Raises:
|
|
77
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
78
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
79
|
+
|
|
80
|
+
Returns:
|
|
81
|
+
Response[list['ProjectDetailsResponse']]
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
kwargs = _get_kwargs(
|
|
85
|
+
customer_uuid=customer_uuid,
|
|
86
|
+
page=page,
|
|
87
|
+
page_size=page_size,
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
response = client.get_httpx_client().request(
|
|
91
|
+
**kwargs,
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
return _build_response(client=client, response=response)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
def sync(
|
|
98
|
+
customer_uuid: UUID,
|
|
99
|
+
*,
|
|
100
|
+
client: AuthenticatedClient,
|
|
101
|
+
page: Union[Unset, int] = UNSET,
|
|
102
|
+
page_size: Union[Unset, int] = UNSET,
|
|
103
|
+
) -> list["ProjectDetailsResponse"]:
|
|
104
|
+
"""Get detailed project compliance information with database-level pagination.
|
|
105
|
+
|
|
106
|
+
Args:
|
|
107
|
+
customer_uuid (UUID):
|
|
108
|
+
page (Union[Unset, int]):
|
|
109
|
+
page_size (Union[Unset, int]):
|
|
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
|
+
list['ProjectDetailsResponse']
|
|
117
|
+
"""
|
|
118
|
+
|
|
119
|
+
return sync_detailed(
|
|
120
|
+
customer_uuid=customer_uuid,
|
|
121
|
+
client=client,
|
|
122
|
+
page=page,
|
|
123
|
+
page_size=page_size,
|
|
124
|
+
).parsed
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
async def asyncio_detailed(
|
|
128
|
+
customer_uuid: UUID,
|
|
129
|
+
*,
|
|
130
|
+
client: AuthenticatedClient,
|
|
131
|
+
page: Union[Unset, int] = UNSET,
|
|
132
|
+
page_size: Union[Unset, int] = UNSET,
|
|
133
|
+
) -> Response[list["ProjectDetailsResponse"]]:
|
|
134
|
+
"""Get detailed project compliance information with database-level pagination.
|
|
135
|
+
|
|
136
|
+
Args:
|
|
137
|
+
customer_uuid (UUID):
|
|
138
|
+
page (Union[Unset, int]):
|
|
139
|
+
page_size (Union[Unset, int]):
|
|
140
|
+
|
|
141
|
+
Raises:
|
|
142
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
143
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
144
|
+
|
|
145
|
+
Returns:
|
|
146
|
+
Response[list['ProjectDetailsResponse']]
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
kwargs = _get_kwargs(
|
|
150
|
+
customer_uuid=customer_uuid,
|
|
151
|
+
page=page,
|
|
152
|
+
page_size=page_size,
|
|
153
|
+
)
|
|
154
|
+
|
|
155
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
156
|
+
|
|
157
|
+
return _build_response(client=client, response=response)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
async def asyncio(
|
|
161
|
+
customer_uuid: UUID,
|
|
162
|
+
*,
|
|
163
|
+
client: AuthenticatedClient,
|
|
164
|
+
page: Union[Unset, int] = UNSET,
|
|
165
|
+
page_size: Union[Unset, int] = UNSET,
|
|
166
|
+
) -> list["ProjectDetailsResponse"]:
|
|
167
|
+
"""Get detailed project compliance information with database-level pagination.
|
|
168
|
+
|
|
169
|
+
Args:
|
|
170
|
+
customer_uuid (UUID):
|
|
171
|
+
page (Union[Unset, int]):
|
|
172
|
+
page_size (Union[Unset, int]):
|
|
173
|
+
|
|
174
|
+
Raises:
|
|
175
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
176
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
177
|
+
|
|
178
|
+
Returns:
|
|
179
|
+
list['ProjectDetailsResponse']
|
|
180
|
+
"""
|
|
181
|
+
|
|
182
|
+
return (
|
|
183
|
+
await asyncio_detailed(
|
|
184
|
+
customer_uuid=customer_uuid,
|
|
185
|
+
client=client,
|
|
186
|
+
page=page,
|
|
187
|
+
page_size=page_size,
|
|
188
|
+
)
|
|
189
|
+
).parsed
|
|
@@ -0,0 +1,189 @@
|
|
|
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.compliance_overview import ComplianceOverview
|
|
10
|
+
from ...types import UNSET, Response, Unset
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
customer_uuid: UUID,
|
|
15
|
+
*,
|
|
16
|
+
page: Union[Unset, int] = UNSET,
|
|
17
|
+
page_size: Union[Unset, int] = UNSET,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
params: dict[str, Any] = {}
|
|
20
|
+
|
|
21
|
+
params["page"] = page
|
|
22
|
+
|
|
23
|
+
params["page_size"] = page_size
|
|
24
|
+
|
|
25
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
26
|
+
|
|
27
|
+
_kwargs: dict[str, Any] = {
|
|
28
|
+
"method": "get",
|
|
29
|
+
"url": f"/api/customers/{customer_uuid}/project-metadata-compliance-overview/",
|
|
30
|
+
"params": params,
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return _kwargs
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def _parse_response(
|
|
37
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
38
|
+
) -> list["ComplianceOverview"]:
|
|
39
|
+
if response.status_code == 200:
|
|
40
|
+
response_200 = []
|
|
41
|
+
_response_200 = response.json()
|
|
42
|
+
for response_200_item_data in _response_200:
|
|
43
|
+
response_200_item = ComplianceOverview.from_dict(response_200_item_data)
|
|
44
|
+
|
|
45
|
+
response_200.append(response_200_item)
|
|
46
|
+
|
|
47
|
+
return response_200
|
|
48
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def _build_response(
|
|
52
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
53
|
+
) -> Response[list["ComplianceOverview"]]:
|
|
54
|
+
return Response(
|
|
55
|
+
status_code=HTTPStatus(response.status_code),
|
|
56
|
+
content=response.content,
|
|
57
|
+
headers=response.headers,
|
|
58
|
+
parsed=_parse_response(client=client, response=response),
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def sync_detailed(
|
|
63
|
+
customer_uuid: UUID,
|
|
64
|
+
*,
|
|
65
|
+
client: AuthenticatedClient,
|
|
66
|
+
page: Union[Unset, int] = UNSET,
|
|
67
|
+
page_size: Union[Unset, int] = UNSET,
|
|
68
|
+
) -> Response[list["ComplianceOverview"]]:
|
|
69
|
+
"""Get compliance overview statistics for all projects.
|
|
70
|
+
|
|
71
|
+
Args:
|
|
72
|
+
customer_uuid (UUID):
|
|
73
|
+
page (Union[Unset, int]):
|
|
74
|
+
page_size (Union[Unset, int]):
|
|
75
|
+
|
|
76
|
+
Raises:
|
|
77
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
78
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
79
|
+
|
|
80
|
+
Returns:
|
|
81
|
+
Response[list['ComplianceOverview']]
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
kwargs = _get_kwargs(
|
|
85
|
+
customer_uuid=customer_uuid,
|
|
86
|
+
page=page,
|
|
87
|
+
page_size=page_size,
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
response = client.get_httpx_client().request(
|
|
91
|
+
**kwargs,
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
return _build_response(client=client, response=response)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
def sync(
|
|
98
|
+
customer_uuid: UUID,
|
|
99
|
+
*,
|
|
100
|
+
client: AuthenticatedClient,
|
|
101
|
+
page: Union[Unset, int] = UNSET,
|
|
102
|
+
page_size: Union[Unset, int] = UNSET,
|
|
103
|
+
) -> list["ComplianceOverview"]:
|
|
104
|
+
"""Get compliance overview statistics for all projects.
|
|
105
|
+
|
|
106
|
+
Args:
|
|
107
|
+
customer_uuid (UUID):
|
|
108
|
+
page (Union[Unset, int]):
|
|
109
|
+
page_size (Union[Unset, int]):
|
|
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
|
+
list['ComplianceOverview']
|
|
117
|
+
"""
|
|
118
|
+
|
|
119
|
+
return sync_detailed(
|
|
120
|
+
customer_uuid=customer_uuid,
|
|
121
|
+
client=client,
|
|
122
|
+
page=page,
|
|
123
|
+
page_size=page_size,
|
|
124
|
+
).parsed
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
async def asyncio_detailed(
|
|
128
|
+
customer_uuid: UUID,
|
|
129
|
+
*,
|
|
130
|
+
client: AuthenticatedClient,
|
|
131
|
+
page: Union[Unset, int] = UNSET,
|
|
132
|
+
page_size: Union[Unset, int] = UNSET,
|
|
133
|
+
) -> Response[list["ComplianceOverview"]]:
|
|
134
|
+
"""Get compliance overview statistics for all projects.
|
|
135
|
+
|
|
136
|
+
Args:
|
|
137
|
+
customer_uuid (UUID):
|
|
138
|
+
page (Union[Unset, int]):
|
|
139
|
+
page_size (Union[Unset, int]):
|
|
140
|
+
|
|
141
|
+
Raises:
|
|
142
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
143
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
144
|
+
|
|
145
|
+
Returns:
|
|
146
|
+
Response[list['ComplianceOverview']]
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
kwargs = _get_kwargs(
|
|
150
|
+
customer_uuid=customer_uuid,
|
|
151
|
+
page=page,
|
|
152
|
+
page_size=page_size,
|
|
153
|
+
)
|
|
154
|
+
|
|
155
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
156
|
+
|
|
157
|
+
return _build_response(client=client, response=response)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
async def asyncio(
|
|
161
|
+
customer_uuid: UUID,
|
|
162
|
+
*,
|
|
163
|
+
client: AuthenticatedClient,
|
|
164
|
+
page: Union[Unset, int] = UNSET,
|
|
165
|
+
page_size: Union[Unset, int] = UNSET,
|
|
166
|
+
) -> list["ComplianceOverview"]:
|
|
167
|
+
"""Get compliance overview statistics for all projects.
|
|
168
|
+
|
|
169
|
+
Args:
|
|
170
|
+
customer_uuid (UUID):
|
|
171
|
+
page (Union[Unset, int]):
|
|
172
|
+
page_size (Union[Unset, int]):
|
|
173
|
+
|
|
174
|
+
Raises:
|
|
175
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
176
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
177
|
+
|
|
178
|
+
Returns:
|
|
179
|
+
list['ComplianceOverview']
|
|
180
|
+
"""
|
|
181
|
+
|
|
182
|
+
return (
|
|
183
|
+
await asyncio_detailed(
|
|
184
|
+
customer_uuid=customer_uuid,
|
|
185
|
+
client=client,
|
|
186
|
+
page=page,
|
|
187
|
+
page_size=page_size,
|
|
188
|
+
)
|
|
189
|
+
).parsed
|