waldur-api-client 7.8.1__py3-none-any.whl → 7.8.3__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 +10 -13
- waldur_api_client/api/booking_resources/booking_resources_list.py +10 -13
- waldur_api_client/api/call_managing_organisations/call_managing_organisations_create.py +44 -7
- waldur_api_client/api/call_managing_organisations/call_managing_organisations_partial_update.py +46 -7
- waldur_api_client/api/call_managing_organisations/call_managing_organisations_update.py +44 -7
- waldur_api_client/api/checklists_admin/checklists_admin_checklist_questions.py +49 -0
- waldur_api_client/api/checklists_admin/checklists_admin_count.py +43 -0
- waldur_api_client/api/checklists_admin/checklists_admin_list.py +43 -0
- waldur_api_client/api/checklists_admin_categories/checklists_admin_categories_create.py +44 -7
- waldur_api_client/api/checklists_admin_categories/checklists_admin_categories_partial_update.py +44 -7
- waldur_api_client/api/checklists_admin_categories/checklists_admin_categories_update.py +44 -7
- waldur_api_client/api/customers/customers_create.py +44 -7
- waldur_api_client/api/customers/customers_partial_update.py +44 -7
- waldur_api_client/api/customers/customers_update.py +44 -7
- waldur_api_client/api/external_links/external_links_create.py +44 -7
- waldur_api_client/api/external_links/external_links_partial_update.py +44 -7
- waldur_api_client/api/external_links/external_links_update.py +44 -7
- waldur_api_client/api/invoices/invoices_paid.py +44 -7
- waldur_api_client/api/marketplace_categories/marketplace_categories_create.py +44 -7
- waldur_api_client/api/marketplace_categories/marketplace_categories_partial_update.py +44 -7
- waldur_api_client/api/marketplace_categories/marketplace_categories_update.py +44 -7
- waldur_api_client/api/marketplace_category_groups/marketplace_category_groups_create.py +44 -7
- waldur_api_client/api/marketplace_category_groups/marketplace_category_groups_partial_update.py +44 -7
- waldur_api_client/api/marketplace_category_groups/marketplace_category_groups_update.py +44 -7
- waldur_api_client/api/marketplace_offering_files/marketplace_offering_files_create.py +44 -7
- waldur_api_client/api/marketplace_orders/marketplace_orders_update_attachment.py +44 -7
- waldur_api_client/api/marketplace_project_update_requests/marketplace_project_update_requests_count.py +18 -18
- waldur_api_client/api/marketplace_project_update_requests/marketplace_project_update_requests_list.py +18 -18
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_create.py +44 -7
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_image.py +44 -7
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_thumbnail.py +30 -5
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_count.py +10 -13
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +10 -13
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_move_resource.py +22 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_count.py +10 -13
- waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +10 -13
- waldur_api_client/api/marketplace_resources/marketplace_resources_move_resource.py +22 -0
- waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_create.py +44 -7
- waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_update.py +44 -7
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_create.py +44 -7
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_partial_update.py +44 -7
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_update.py +44 -7
- waldur_api_client/api/openstack_backups/openstack_backups_restore.py +10 -10
- waldur_api_client/api/override_settings/override_settings.py +30 -5
- waldur_api_client/api/payments/payments_create.py +44 -7
- waldur_api_client/api/payments/payments_partial_update.py +44 -7
- waldur_api_client/api/payments/payments_update.py +44 -7
- waldur_api_client/api/projects/projects_create.py +44 -7
- waldur_api_client/api/projects/projects_partial_update.py +44 -7
- waldur_api_client/api/projects/projects_update.py +44 -7
- waldur_api_client/api/proposal_proposals/proposal_proposals_attach_document.py +30 -5
- waldur_api_client/api/rancher_services/rancher_services_create.py +22 -22
- waldur_api_client/api/slurm_jobs/slurm_jobs_create.py +44 -7
- waldur_api_client/api/slurm_jobs/slurm_jobs_update.py +44 -7
- waldur_api_client/api/support_attachments/support_attachments_create.py +44 -7
- waldur_api_client/api/user_group_invitations/user_group_invitations_count.py +15 -0
- waldur_api_client/api/user_group_invitations/user_group_invitations_list.py +15 -0
- waldur_api_client/api/users/users_create.py +44 -7
- waldur_api_client/api/users/users_partial_update.py +44 -7
- waldur_api_client/api/users/users_update.py +44 -7
- waldur_api_client/models/__init__.py +172 -8
- waldur_api_client/models/agent_type_enum.py +13 -0
- waldur_api_client/models/attachment_request_form.py +70 -0
- waldur_api_client/models/attachment_request_multipart.py +83 -0
- waldur_api_client/models/azure_sql_server_create_order_attributes.py +5 -10
- waldur_api_client/models/azure_virtual_machine_create_order_attributes.py +7 -12
- waldur_api_client/models/booking_offerings_list_field_item.py +1 -0
- waldur_api_client/models/booking_offerings_retrieve_field_item.py +1 -0
- waldur_api_client/models/booking_resource.py +16 -34
- waldur_api_client/models/booking_resources_list_field_item.py +1 -3
- waldur_api_client/models/booking_resources_retrieve_field_item.py +1 -3
- waldur_api_client/models/call_managing_organisation_request_form.py +103 -0
- waldur_api_client/models/call_managing_organisation_request_multipart.py +122 -0
- waldur_api_client/models/call_round.py +11 -1
- waldur_api_client/models/category_group_request_form.py +103 -0
- waldur_api_client/models/category_group_request_multipart.py +122 -0
- waldur_api_client/models/checklist_category_request_form.py +103 -0
- waldur_api_client/models/checklist_category_request_multipart.py +122 -0
- waldur_api_client/models/checklists_admin_checklist_questions_checklist_type.py +11 -0
- waldur_api_client/models/checklists_admin_checklist_questions_checklist_type_in_item.py +11 -0
- waldur_api_client/models/checklists_admin_count_checklist_type.py +11 -0
- waldur_api_client/models/checklists_admin_count_checklist_type_in_item.py +11 -0
- waldur_api_client/models/checklists_admin_list_checklist_type.py +11 -0
- waldur_api_client/models/checklists_admin_list_checklist_type_in_item.py +11 -0
- waldur_api_client/models/constance_settings.py +18 -0
- waldur_api_client/models/constance_settings_request.py +18 -0
- waldur_api_client/models/constance_settings_request_form.py +1556 -0
- waldur_api_client/models/constance_settings_request_multipart.py +2187 -0
- waldur_api_client/models/customer.py +9 -0
- waldur_api_client/models/customer_request.py +9 -0
- waldur_api_client/models/customer_request_form.py +312 -0
- waldur_api_client/models/customer_request_multipart.py +394 -0
- waldur_api_client/models/customers_list_field_item.py +1 -0
- waldur_api_client/models/customers_retrieve_field_item.py +1 -0
- waldur_api_client/models/event_groups_enum.py +1 -0
- waldur_api_client/models/event_types_enum.py +2 -0
- waldur_api_client/models/external_link_request_form.py +111 -0
- waldur_api_client/models/external_link_request_multipart.py +132 -0
- waldur_api_client/models/firecrest_job_request_form.py +104 -0
- waldur_api_client/models/firecrest_job_request_multipart.py +127 -0
- waldur_api_client/models/generic_order_attributes.py +1 -2
- waldur_api_client/models/integration_status.py +21 -4
- waldur_api_client/models/managed_rancher_cluster_resources_list_field_item.py +1 -3
- waldur_api_client/models/managed_rancher_cluster_resources_retrieve_field_item.py +1 -3
- waldur_api_client/models/marketplace_category_request_form.py +153 -0
- waldur_api_client/models/marketplace_category_request_multipart.py +187 -0
- waldur_api_client/models/marketplace_orders_list_field_item.py +1 -3
- waldur_api_client/models/marketplace_orders_retrieve_field_item.py +1 -3
- waldur_api_client/models/marketplace_provider_offerings_list_course_accounts_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_list_customer_service_accounts_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_list_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_list_project_service_accounts_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_stats_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_user_has_resource_access_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_resources_details_retrieve_field_item.py +1 -3
- waldur_api_client/models/marketplace_provider_resources_list_field_item.py +1 -3
- waldur_api_client/models/marketplace_provider_resources_retrieve_field_item.py +1 -3
- waldur_api_client/models/marketplace_public_offerings_list_field_item.py +1 -0
- waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_resources_details_retrieve_field_item.py +1 -3
- waldur_api_client/models/marketplace_resources_list_field_item.py +1 -3
- waldur_api_client/models/marketplace_resources_retrieve_field_item.py +1 -3
- waldur_api_client/models/marketplace_robot_accounts_list_field_item.py +2 -1
- waldur_api_client/models/marketplace_robot_accounts_retrieve_field_item.py +2 -1
- waldur_api_client/models/marketplace_service_providers_offerings_list_field_item.py +1 -0
- waldur_api_client/models/merged_plugin_options.py +9 -0
- waldur_api_client/models/merged_plugin_options_request.py +9 -0
- waldur_api_client/models/move_resource_request.py +65 -0
- waldur_api_client/models/nested_round.py +9 -0
- waldur_api_client/models/nested_round_request.py +9 -0
- waldur_api_client/models/offering.py +20 -0
- waldur_api_client/models/offering_create.py +20 -0
- waldur_api_client/models/offering_create_request.py +20 -0
- waldur_api_client/models/offering_create_request_form.py +479 -0
- waldur_api_client/models/offering_create_request_form_limits.py +57 -0
- waldur_api_client/models/offering_create_request_multipart.py +599 -0
- waldur_api_client/models/offering_create_request_multipart_limits.py +57 -0
- waldur_api_client/models/offering_file_request_form.py +78 -0
- waldur_api_client/models/offering_file_request_multipart.py +93 -0
- waldur_api_client/models/offering_image_request_form.py +62 -0
- waldur_api_client/models/offering_image_request_multipart.py +73 -0
- waldur_api_client/models/offering_thumbnail_request_form.py +62 -0
- waldur_api_client/models/offering_thumbnail_request_multipart.py +73 -0
- waldur_api_client/models/offering_user.py +5 -5
- waldur_api_client/models/{offering_user_state_enum.py → offering_user_state.py} +1 -1
- waldur_api_client/models/open_stack_backup_restoration.py +3 -5
- waldur_api_client/models/open_stack_backup_restoration_create_request.py +141 -0
- waldur_api_client/models/open_stack_backup_restoration_request.py +22 -30
- waldur_api_client/models/{open_stack_nested_security_group_request.py → open_stack_create_floating_ip_request.py} +17 -6
- waldur_api_client/models/open_stack_create_port_request.py +104 -0
- waldur_api_client/models/open_stack_instance.py +13 -29
- waldur_api_client/models/open_stack_instance_create_order_attributes.py +67 -54
- waldur_api_client/models/open_stack_instance_floating_i_ps_update_request.py +5 -5
- waldur_api_client/models/open_stack_instance_ports_update_request.py +5 -5
- waldur_api_client/models/open_stack_instance_request.py +1 -67
- waldur_api_client/models/open_stack_nested_port_request.py +0 -9
- waldur_api_client/models/open_stack_security_group_hyperlink_request.py +59 -0
- waldur_api_client/models/open_stack_server_group_hyperlink_request.py +59 -0
- waldur_api_client/models/open_stack_tenant_create_order_attributes.py +9 -14
- waldur_api_client/models/open_stack_volume_create_order_attributes.py +8 -13
- waldur_api_client/models/openstack_instances_list_field_item.py +0 -7
- waldur_api_client/models/openstack_instances_retrieve_field_item.py +0 -7
- waldur_api_client/models/order_attachment_request_form.py +84 -0
- waldur_api_client/models/order_attachment_request_multipart.py +98 -0
- waldur_api_client/models/order_create.py +8 -0
- waldur_api_client/models/order_details.py +16 -34
- waldur_api_client/models/paid_request_form.py +81 -0
- waldur_api_client/models/paid_request_multipart.py +94 -0
- waldur_api_client/models/patched_call_managing_organisation_request_form.py +92 -0
- waldur_api_client/models/patched_call_managing_organisation_request_multipart.py +109 -0
- waldur_api_client/models/patched_category_group_request_form.py +101 -0
- waldur_api_client/models/patched_category_group_request_multipart.py +121 -0
- waldur_api_client/models/patched_checklist_category_request_form.py +102 -0
- waldur_api_client/models/patched_checklist_category_request_multipart.py +122 -0
- waldur_api_client/models/patched_customer_request.py +9 -0
- waldur_api_client/models/patched_customer_request_form.py +310 -0
- waldur_api_client/models/patched_customer_request_multipart.py +393 -0
- waldur_api_client/models/patched_external_link_request_form.py +110 -0
- waldur_api_client/models/patched_external_link_request_multipart.py +133 -0
- waldur_api_client/models/patched_marketplace_category_request_form.py +151 -0
- waldur_api_client/models/patched_marketplace_category_request_multipart.py +186 -0
- waldur_api_client/models/patched_open_stack_instance_request.py +1 -67
- waldur_api_client/models/patched_payment_request_form.py +119 -0
- waldur_api_client/models/patched_payment_request_multipart.py +142 -0
- waldur_api_client/models/patched_project_request_form.py +279 -0
- waldur_api_client/models/patched_project_request_multipart.py +342 -0
- waldur_api_client/models/patched_service_provider_request_form.py +101 -0
- waldur_api_client/models/patched_service_provider_request_multipart.py +121 -0
- waldur_api_client/models/patched_user_request_form.py +241 -0
- waldur_api_client/models/patched_user_request_multipart.py +306 -0
- waldur_api_client/models/payment_request_form.py +113 -0
- waldur_api_client/models/payment_request_multipart.py +134 -0
- waldur_api_client/models/{rancher_nested_security_group.py → project_hyperlink_request.py} +5 -5
- waldur_api_client/models/project_request_form.py +280 -0
- waldur_api_client/models/project_request_multipart.py +341 -0
- waldur_api_client/models/project_user.py +9 -0
- waldur_api_client/models/proposal.py +8 -0
- waldur_api_client/models/proposal_documentation_request_form.py +84 -0
- waldur_api_client/models/proposal_documentation_request_multipart.py +98 -0
- waldur_api_client/models/proposal_proposals_count_o_item.py +3 -1
- waldur_api_client/models/proposal_proposals_list_o_item.py +3 -1
- waldur_api_client/models/proposal_review.py +40 -0
- waldur_api_client/models/protected_proposal_list.py +8 -0
- waldur_api_client/models/protected_proposal_list_request.py +8 -0
- waldur_api_client/models/protected_round.py +8 -0
- waldur_api_client/models/provider_offering.py +21 -1
- waldur_api_client/models/provider_offering_details.py +20 -0
- waldur_api_client/models/public_offering_details.py +20 -0
- waldur_api_client/models/rancher_clusters_list_field_item.py +0 -1
- waldur_api_client/models/rancher_clusters_retrieve_field_item.py +0 -1
- waldur_api_client/models/rancher_service_create.py +508 -0
- waldur_api_client/models/rancher_service_create_marketplace_offering_plugin_options_type_0.py +44 -0
- waldur_api_client/models/rancher_service_create_request.py +185 -0
- waldur_api_client/models/rancher_service_request.py +16 -19
- waldur_api_client/models/rancher_workload_create.py +59 -0
- waldur_api_client/models/rancher_workload_create_request.py +59 -0
- waldur_api_client/models/resource.py +16 -34
- waldur_api_client/models/robot_account_details.py +22 -13
- waldur_api_client/models/screenshot_request_form.py +87 -0
- waldur_api_client/models/screenshot_request_multipart.py +105 -0
- waldur_api_client/models/service_provider_request_form.py +112 -0
- waldur_api_client/models/service_provider_request_multipart.py +134 -0
- waldur_api_client/models/slurm_invoices_slurm_package_create_order_attributes.py +4 -9
- waldur_api_client/models/user_request_form.py +250 -0
- waldur_api_client/models/user_request_multipart.py +316 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes.py +11 -16
- waldur_api_client/models/vmware_nested_network.py +0 -25
- waldur_api_client/models/vmware_nested_network_request.py +6 -14
- {waldur_api_client-7.8.1.dist-info → waldur_api_client-7.8.3.dist-info}/METADATA +1 -1
- {waldur_api_client-7.8.1.dist-info → waldur_api_client-7.8.3.dist-info}/RECORD +233 -153
- waldur_api_client/models/open_stack_data_volume.py +0 -81
- {waldur_api_client-7.8.1.dist-info → waldur_api_client-7.8.3.dist-info}/WHEEL +0 -0
- {waldur_api_client-7.8.1.dist-info → waldur_api_client-7.8.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -5,16 +5,35 @@ import httpx
|
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.checklists_admin_count_checklist_type import ChecklistsAdminCountChecklistType
|
|
9
|
+
from ...models.checklists_admin_count_checklist_type_in_item import ChecklistsAdminCountChecklistTypeInItem
|
|
8
10
|
from ...types import UNSET, Response, Unset
|
|
9
11
|
|
|
10
12
|
|
|
11
13
|
def _get_kwargs(
|
|
12
14
|
*,
|
|
15
|
+
checklist_type: Union[Unset, ChecklistsAdminCountChecklistType] = UNSET,
|
|
16
|
+
checklist_type_in: Union[Unset, list[ChecklistsAdminCountChecklistTypeInItem]] = UNSET,
|
|
13
17
|
page: Union[Unset, int] = UNSET,
|
|
14
18
|
page_size: Union[Unset, int] = UNSET,
|
|
15
19
|
) -> dict[str, Any]:
|
|
16
20
|
params: dict[str, Any] = {}
|
|
17
21
|
|
|
22
|
+
json_checklist_type: Union[Unset, str] = UNSET
|
|
23
|
+
if not isinstance(checklist_type, Unset):
|
|
24
|
+
json_checklist_type = checklist_type.value
|
|
25
|
+
|
|
26
|
+
params["checklist_type"] = json_checklist_type
|
|
27
|
+
|
|
28
|
+
json_checklist_type_in: Union[Unset, list[str]] = UNSET
|
|
29
|
+
if not isinstance(checklist_type_in, Unset):
|
|
30
|
+
json_checklist_type_in = []
|
|
31
|
+
for checklist_type_in_item_data in checklist_type_in:
|
|
32
|
+
checklist_type_in_item = checklist_type_in_item_data.value
|
|
33
|
+
json_checklist_type_in.append(checklist_type_in_item)
|
|
34
|
+
|
|
35
|
+
params["checklist_type__in"] = json_checklist_type_in
|
|
36
|
+
|
|
18
37
|
params["page"] = page
|
|
19
38
|
|
|
20
39
|
params["page_size"] = page_size
|
|
@@ -57,12 +76,16 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
|
|
|
57
76
|
def sync_detailed(
|
|
58
77
|
*,
|
|
59
78
|
client: AuthenticatedClient,
|
|
79
|
+
checklist_type: Union[Unset, ChecklistsAdminCountChecklistType] = UNSET,
|
|
80
|
+
checklist_type_in: Union[Unset, list[ChecklistsAdminCountChecklistTypeInItem]] = UNSET,
|
|
60
81
|
page: Union[Unset, int] = UNSET,
|
|
61
82
|
page_size: Union[Unset, int] = UNSET,
|
|
62
83
|
) -> Response[int]:
|
|
63
84
|
"""Get number of items in the collection matching the request parameters.
|
|
64
85
|
|
|
65
86
|
Args:
|
|
87
|
+
checklist_type (Union[Unset, ChecklistsAdminCountChecklistType]):
|
|
88
|
+
checklist_type_in (Union[Unset, list[ChecklistsAdminCountChecklistTypeInItem]]):
|
|
66
89
|
page (Union[Unset, int]):
|
|
67
90
|
page_size (Union[Unset, int]):
|
|
68
91
|
|
|
@@ -75,6 +98,8 @@ def sync_detailed(
|
|
|
75
98
|
"""
|
|
76
99
|
|
|
77
100
|
kwargs = _get_kwargs(
|
|
101
|
+
checklist_type=checklist_type,
|
|
102
|
+
checklist_type_in=checklist_type_in,
|
|
78
103
|
page=page,
|
|
79
104
|
page_size=page_size,
|
|
80
105
|
)
|
|
@@ -89,12 +114,16 @@ def sync_detailed(
|
|
|
89
114
|
def sync(
|
|
90
115
|
*,
|
|
91
116
|
client: AuthenticatedClient,
|
|
117
|
+
checklist_type: Union[Unset, ChecklistsAdminCountChecklistType] = UNSET,
|
|
118
|
+
checklist_type_in: Union[Unset, list[ChecklistsAdminCountChecklistTypeInItem]] = UNSET,
|
|
92
119
|
page: Union[Unset, int] = UNSET,
|
|
93
120
|
page_size: Union[Unset, int] = UNSET,
|
|
94
121
|
) -> int:
|
|
95
122
|
"""Get number of items in the collection matching the request parameters.
|
|
96
123
|
|
|
97
124
|
Args:
|
|
125
|
+
checklist_type (Union[Unset, ChecklistsAdminCountChecklistType]):
|
|
126
|
+
checklist_type_in (Union[Unset, list[ChecklistsAdminCountChecklistTypeInItem]]):
|
|
98
127
|
page (Union[Unset, int]):
|
|
99
128
|
page_size (Union[Unset, int]):
|
|
100
129
|
|
|
@@ -108,6 +137,8 @@ def sync(
|
|
|
108
137
|
|
|
109
138
|
return sync_detailed(
|
|
110
139
|
client=client,
|
|
140
|
+
checklist_type=checklist_type,
|
|
141
|
+
checklist_type_in=checklist_type_in,
|
|
111
142
|
page=page,
|
|
112
143
|
page_size=page_size,
|
|
113
144
|
).parsed
|
|
@@ -116,12 +147,16 @@ def sync(
|
|
|
116
147
|
async def asyncio_detailed(
|
|
117
148
|
*,
|
|
118
149
|
client: AuthenticatedClient,
|
|
150
|
+
checklist_type: Union[Unset, ChecklistsAdminCountChecklistType] = UNSET,
|
|
151
|
+
checklist_type_in: Union[Unset, list[ChecklistsAdminCountChecklistTypeInItem]] = UNSET,
|
|
119
152
|
page: Union[Unset, int] = UNSET,
|
|
120
153
|
page_size: Union[Unset, int] = UNSET,
|
|
121
154
|
) -> Response[int]:
|
|
122
155
|
"""Get number of items in the collection matching the request parameters.
|
|
123
156
|
|
|
124
157
|
Args:
|
|
158
|
+
checklist_type (Union[Unset, ChecklistsAdminCountChecklistType]):
|
|
159
|
+
checklist_type_in (Union[Unset, list[ChecklistsAdminCountChecklistTypeInItem]]):
|
|
125
160
|
page (Union[Unset, int]):
|
|
126
161
|
page_size (Union[Unset, int]):
|
|
127
162
|
|
|
@@ -134,6 +169,8 @@ async def asyncio_detailed(
|
|
|
134
169
|
"""
|
|
135
170
|
|
|
136
171
|
kwargs = _get_kwargs(
|
|
172
|
+
checklist_type=checklist_type,
|
|
173
|
+
checklist_type_in=checklist_type_in,
|
|
137
174
|
page=page,
|
|
138
175
|
page_size=page_size,
|
|
139
176
|
)
|
|
@@ -146,12 +183,16 @@ async def asyncio_detailed(
|
|
|
146
183
|
async def asyncio(
|
|
147
184
|
*,
|
|
148
185
|
client: AuthenticatedClient,
|
|
186
|
+
checklist_type: Union[Unset, ChecklistsAdminCountChecklistType] = UNSET,
|
|
187
|
+
checklist_type_in: Union[Unset, list[ChecklistsAdminCountChecklistTypeInItem]] = UNSET,
|
|
149
188
|
page: Union[Unset, int] = UNSET,
|
|
150
189
|
page_size: Union[Unset, int] = UNSET,
|
|
151
190
|
) -> int:
|
|
152
191
|
"""Get number of items in the collection matching the request parameters.
|
|
153
192
|
|
|
154
193
|
Args:
|
|
194
|
+
checklist_type (Union[Unset, ChecklistsAdminCountChecklistType]):
|
|
195
|
+
checklist_type_in (Union[Unset, list[ChecklistsAdminCountChecklistTypeInItem]]):
|
|
155
196
|
page (Union[Unset, int]):
|
|
156
197
|
page_size (Union[Unset, int]):
|
|
157
198
|
|
|
@@ -166,6 +207,8 @@ async def asyncio(
|
|
|
166
207
|
return (
|
|
167
208
|
await asyncio_detailed(
|
|
168
209
|
client=client,
|
|
210
|
+
checklist_type=checklist_type,
|
|
211
|
+
checklist_type_in=checklist_type_in,
|
|
169
212
|
page=page,
|
|
170
213
|
page_size=page_size,
|
|
171
214
|
)
|
|
@@ -6,16 +6,35 @@ import httpx
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
8
|
from ...models.checklist import Checklist
|
|
9
|
+
from ...models.checklists_admin_list_checklist_type import ChecklistsAdminListChecklistType
|
|
10
|
+
from ...models.checklists_admin_list_checklist_type_in_item import ChecklistsAdminListChecklistTypeInItem
|
|
9
11
|
from ...types import UNSET, Response, Unset
|
|
10
12
|
|
|
11
13
|
|
|
12
14
|
def _get_kwargs(
|
|
13
15
|
*,
|
|
16
|
+
checklist_type: Union[Unset, ChecklistsAdminListChecklistType] = UNSET,
|
|
17
|
+
checklist_type_in: Union[Unset, list[ChecklistsAdminListChecklistTypeInItem]] = UNSET,
|
|
14
18
|
page: Union[Unset, int] = UNSET,
|
|
15
19
|
page_size: Union[Unset, int] = UNSET,
|
|
16
20
|
) -> dict[str, Any]:
|
|
17
21
|
params: dict[str, Any] = {}
|
|
18
22
|
|
|
23
|
+
json_checklist_type: Union[Unset, str] = UNSET
|
|
24
|
+
if not isinstance(checklist_type, Unset):
|
|
25
|
+
json_checklist_type = checklist_type.value
|
|
26
|
+
|
|
27
|
+
params["checklist_type"] = json_checklist_type
|
|
28
|
+
|
|
29
|
+
json_checklist_type_in: Union[Unset, list[str]] = UNSET
|
|
30
|
+
if not isinstance(checklist_type_in, Unset):
|
|
31
|
+
json_checklist_type_in = []
|
|
32
|
+
for checklist_type_in_item_data in checklist_type_in:
|
|
33
|
+
checklist_type_in_item = checklist_type_in_item_data.value
|
|
34
|
+
json_checklist_type_in.append(checklist_type_in_item)
|
|
35
|
+
|
|
36
|
+
params["checklist_type__in"] = json_checklist_type_in
|
|
37
|
+
|
|
19
38
|
params["page"] = page
|
|
20
39
|
|
|
21
40
|
params["page_size"] = page_size
|
|
@@ -58,12 +77,16 @@ def _build_response(
|
|
|
58
77
|
def sync_detailed(
|
|
59
78
|
*,
|
|
60
79
|
client: AuthenticatedClient,
|
|
80
|
+
checklist_type: Union[Unset, ChecklistsAdminListChecklistType] = UNSET,
|
|
81
|
+
checklist_type_in: Union[Unset, list[ChecklistsAdminListChecklistTypeInItem]] = UNSET,
|
|
61
82
|
page: Union[Unset, int] = UNSET,
|
|
62
83
|
page_size: Union[Unset, int] = UNSET,
|
|
63
84
|
) -> Response[list["Checklist"]]:
|
|
64
85
|
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
65
86
|
|
|
66
87
|
Args:
|
|
88
|
+
checklist_type (Union[Unset, ChecklistsAdminListChecklistType]):
|
|
89
|
+
checklist_type_in (Union[Unset, list[ChecklistsAdminListChecklistTypeInItem]]):
|
|
67
90
|
page (Union[Unset, int]):
|
|
68
91
|
page_size (Union[Unset, int]):
|
|
69
92
|
|
|
@@ -76,6 +99,8 @@ def sync_detailed(
|
|
|
76
99
|
"""
|
|
77
100
|
|
|
78
101
|
kwargs = _get_kwargs(
|
|
102
|
+
checklist_type=checklist_type,
|
|
103
|
+
checklist_type_in=checklist_type_in,
|
|
79
104
|
page=page,
|
|
80
105
|
page_size=page_size,
|
|
81
106
|
)
|
|
@@ -90,12 +115,16 @@ def sync_detailed(
|
|
|
90
115
|
def sync(
|
|
91
116
|
*,
|
|
92
117
|
client: AuthenticatedClient,
|
|
118
|
+
checklist_type: Union[Unset, ChecklistsAdminListChecklistType] = UNSET,
|
|
119
|
+
checklist_type_in: Union[Unset, list[ChecklistsAdminListChecklistTypeInItem]] = UNSET,
|
|
93
120
|
page: Union[Unset, int] = UNSET,
|
|
94
121
|
page_size: Union[Unset, int] = UNSET,
|
|
95
122
|
) -> list["Checklist"]:
|
|
96
123
|
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
97
124
|
|
|
98
125
|
Args:
|
|
126
|
+
checklist_type (Union[Unset, ChecklistsAdminListChecklistType]):
|
|
127
|
+
checklist_type_in (Union[Unset, list[ChecklistsAdminListChecklistTypeInItem]]):
|
|
99
128
|
page (Union[Unset, int]):
|
|
100
129
|
page_size (Union[Unset, int]):
|
|
101
130
|
|
|
@@ -109,6 +138,8 @@ def sync(
|
|
|
109
138
|
|
|
110
139
|
return sync_detailed(
|
|
111
140
|
client=client,
|
|
141
|
+
checklist_type=checklist_type,
|
|
142
|
+
checklist_type_in=checklist_type_in,
|
|
112
143
|
page=page,
|
|
113
144
|
page_size=page_size,
|
|
114
145
|
).parsed
|
|
@@ -117,12 +148,16 @@ def sync(
|
|
|
117
148
|
async def asyncio_detailed(
|
|
118
149
|
*,
|
|
119
150
|
client: AuthenticatedClient,
|
|
151
|
+
checklist_type: Union[Unset, ChecklistsAdminListChecklistType] = UNSET,
|
|
152
|
+
checklist_type_in: Union[Unset, list[ChecklistsAdminListChecklistTypeInItem]] = UNSET,
|
|
120
153
|
page: Union[Unset, int] = UNSET,
|
|
121
154
|
page_size: Union[Unset, int] = UNSET,
|
|
122
155
|
) -> Response[list["Checklist"]]:
|
|
123
156
|
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
124
157
|
|
|
125
158
|
Args:
|
|
159
|
+
checklist_type (Union[Unset, ChecklistsAdminListChecklistType]):
|
|
160
|
+
checklist_type_in (Union[Unset, list[ChecklistsAdminListChecklistTypeInItem]]):
|
|
126
161
|
page (Union[Unset, int]):
|
|
127
162
|
page_size (Union[Unset, int]):
|
|
128
163
|
|
|
@@ -135,6 +170,8 @@ async def asyncio_detailed(
|
|
|
135
170
|
"""
|
|
136
171
|
|
|
137
172
|
kwargs = _get_kwargs(
|
|
173
|
+
checklist_type=checklist_type,
|
|
174
|
+
checklist_type_in=checklist_type_in,
|
|
138
175
|
page=page,
|
|
139
176
|
page_size=page_size,
|
|
140
177
|
)
|
|
@@ -147,12 +184,16 @@ async def asyncio_detailed(
|
|
|
147
184
|
async def asyncio(
|
|
148
185
|
*,
|
|
149
186
|
client: AuthenticatedClient,
|
|
187
|
+
checklist_type: Union[Unset, ChecklistsAdminListChecklistType] = UNSET,
|
|
188
|
+
checklist_type_in: Union[Unset, list[ChecklistsAdminListChecklistTypeInItem]] = UNSET,
|
|
150
189
|
page: Union[Unset, int] = UNSET,
|
|
151
190
|
page_size: Union[Unset, int] = UNSET,
|
|
152
191
|
) -> list["Checklist"]:
|
|
153
192
|
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
154
193
|
|
|
155
194
|
Args:
|
|
195
|
+
checklist_type (Union[Unset, ChecklistsAdminListChecklistType]):
|
|
196
|
+
checklist_type_in (Union[Unset, list[ChecklistsAdminListChecklistTypeInItem]]):
|
|
156
197
|
page (Union[Unset, int]):
|
|
157
198
|
page_size (Union[Unset, int]):
|
|
158
199
|
|
|
@@ -167,6 +208,8 @@ async def asyncio(
|
|
|
167
208
|
return (
|
|
168
209
|
await asyncio_detailed(
|
|
169
210
|
client=client,
|
|
211
|
+
checklist_type=checklist_type,
|
|
212
|
+
checklist_type_in=checklist_type_in,
|
|
170
213
|
page=page,
|
|
171
214
|
page_size=page_size,
|
|
172
215
|
)
|
|
@@ -7,12 +7,18 @@ from ... import errors
|
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
8
|
from ...models.checklist_category import ChecklistCategory
|
|
9
9
|
from ...models.checklist_category_request import ChecklistCategoryRequest
|
|
10
|
+
from ...models.checklist_category_request_form import ChecklistCategoryRequestForm
|
|
11
|
+
from ...models.checklist_category_request_multipart import ChecklistCategoryRequestMultipart
|
|
10
12
|
from ...types import Response
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
def _get_kwargs(
|
|
14
16
|
*,
|
|
15
|
-
body:
|
|
17
|
+
body: Union[
|
|
18
|
+
ChecklistCategoryRequest,
|
|
19
|
+
ChecklistCategoryRequestForm,
|
|
20
|
+
ChecklistCategoryRequestMultipart,
|
|
21
|
+
],
|
|
16
22
|
) -> dict[str, Any]:
|
|
17
23
|
headers: dict[str, Any] = {}
|
|
18
24
|
|
|
@@ -21,9 +27,16 @@ def _get_kwargs(
|
|
|
21
27
|
"url": "/api/checklists-admin-categories/",
|
|
22
28
|
}
|
|
23
29
|
|
|
24
|
-
|
|
30
|
+
if isinstance(body, ChecklistCategoryRequest):
|
|
31
|
+
_kwargs["json"] = body.to_dict()
|
|
25
32
|
|
|
26
|
-
|
|
33
|
+
headers["Content-Type"] = "application/json"
|
|
34
|
+
if isinstance(body, ChecklistCategoryRequestForm):
|
|
35
|
+
_kwargs["data"] = body.to_dict()
|
|
36
|
+
|
|
37
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded"
|
|
38
|
+
if isinstance(body, ChecklistCategoryRequestMultipart):
|
|
39
|
+
_kwargs["files"] = body.to_multipart()
|
|
27
40
|
|
|
28
41
|
_kwargs["headers"] = headers
|
|
29
42
|
return _kwargs
|
|
@@ -51,11 +64,17 @@ def _build_response(
|
|
|
51
64
|
def sync_detailed(
|
|
52
65
|
*,
|
|
53
66
|
client: AuthenticatedClient,
|
|
54
|
-
body:
|
|
67
|
+
body: Union[
|
|
68
|
+
ChecklistCategoryRequest,
|
|
69
|
+
ChecklistCategoryRequestForm,
|
|
70
|
+
ChecklistCategoryRequestMultipart,
|
|
71
|
+
],
|
|
55
72
|
) -> Response[ChecklistCategory]:
|
|
56
73
|
"""
|
|
57
74
|
Args:
|
|
58
75
|
body (ChecklistCategoryRequest):
|
|
76
|
+
body (ChecklistCategoryRequestForm):
|
|
77
|
+
body (ChecklistCategoryRequestMultipart):
|
|
59
78
|
|
|
60
79
|
Raises:
|
|
61
80
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -79,11 +98,17 @@ def sync_detailed(
|
|
|
79
98
|
def sync(
|
|
80
99
|
*,
|
|
81
100
|
client: AuthenticatedClient,
|
|
82
|
-
body:
|
|
101
|
+
body: Union[
|
|
102
|
+
ChecklistCategoryRequest,
|
|
103
|
+
ChecklistCategoryRequestForm,
|
|
104
|
+
ChecklistCategoryRequestMultipart,
|
|
105
|
+
],
|
|
83
106
|
) -> ChecklistCategory:
|
|
84
107
|
"""
|
|
85
108
|
Args:
|
|
86
109
|
body (ChecklistCategoryRequest):
|
|
110
|
+
body (ChecklistCategoryRequestForm):
|
|
111
|
+
body (ChecklistCategoryRequestMultipart):
|
|
87
112
|
|
|
88
113
|
Raises:
|
|
89
114
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -102,11 +127,17 @@ def sync(
|
|
|
102
127
|
async def asyncio_detailed(
|
|
103
128
|
*,
|
|
104
129
|
client: AuthenticatedClient,
|
|
105
|
-
body:
|
|
130
|
+
body: Union[
|
|
131
|
+
ChecklistCategoryRequest,
|
|
132
|
+
ChecklistCategoryRequestForm,
|
|
133
|
+
ChecklistCategoryRequestMultipart,
|
|
134
|
+
],
|
|
106
135
|
) -> Response[ChecklistCategory]:
|
|
107
136
|
"""
|
|
108
137
|
Args:
|
|
109
138
|
body (ChecklistCategoryRequest):
|
|
139
|
+
body (ChecklistCategoryRequestForm):
|
|
140
|
+
body (ChecklistCategoryRequestMultipart):
|
|
110
141
|
|
|
111
142
|
Raises:
|
|
112
143
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -128,11 +159,17 @@ async def asyncio_detailed(
|
|
|
128
159
|
async def asyncio(
|
|
129
160
|
*,
|
|
130
161
|
client: AuthenticatedClient,
|
|
131
|
-
body:
|
|
162
|
+
body: Union[
|
|
163
|
+
ChecklistCategoryRequest,
|
|
164
|
+
ChecklistCategoryRequestForm,
|
|
165
|
+
ChecklistCategoryRequestMultipart,
|
|
166
|
+
],
|
|
132
167
|
) -> ChecklistCategory:
|
|
133
168
|
"""
|
|
134
169
|
Args:
|
|
135
170
|
body (ChecklistCategoryRequest):
|
|
171
|
+
body (ChecklistCategoryRequestForm):
|
|
172
|
+
body (ChecklistCategoryRequestMultipart):
|
|
136
173
|
|
|
137
174
|
Raises:
|
|
138
175
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
waldur_api_client/api/checklists_admin_categories/checklists_admin_categories_partial_update.py
CHANGED
|
@@ -8,13 +8,19 @@ from ... import errors
|
|
|
8
8
|
from ...client import AuthenticatedClient, Client
|
|
9
9
|
from ...models.checklist_category import ChecklistCategory
|
|
10
10
|
from ...models.patched_checklist_category_request import PatchedChecklistCategoryRequest
|
|
11
|
+
from ...models.patched_checklist_category_request_form import PatchedChecklistCategoryRequestForm
|
|
12
|
+
from ...models.patched_checklist_category_request_multipart import PatchedChecklistCategoryRequestMultipart
|
|
11
13
|
from ...types import Response
|
|
12
14
|
|
|
13
15
|
|
|
14
16
|
def _get_kwargs(
|
|
15
17
|
uuid: UUID,
|
|
16
18
|
*,
|
|
17
|
-
body:
|
|
19
|
+
body: Union[
|
|
20
|
+
PatchedChecklistCategoryRequest,
|
|
21
|
+
PatchedChecklistCategoryRequestForm,
|
|
22
|
+
PatchedChecklistCategoryRequestMultipart,
|
|
23
|
+
],
|
|
18
24
|
) -> dict[str, Any]:
|
|
19
25
|
headers: dict[str, Any] = {}
|
|
20
26
|
|
|
@@ -23,9 +29,16 @@ def _get_kwargs(
|
|
|
23
29
|
"url": f"/api/checklists-admin-categories/{uuid}/",
|
|
24
30
|
}
|
|
25
31
|
|
|
26
|
-
|
|
32
|
+
if isinstance(body, PatchedChecklistCategoryRequest):
|
|
33
|
+
_kwargs["json"] = body.to_dict()
|
|
27
34
|
|
|
28
|
-
|
|
35
|
+
headers["Content-Type"] = "application/json"
|
|
36
|
+
if isinstance(body, PatchedChecklistCategoryRequestForm):
|
|
37
|
+
_kwargs["data"] = body.to_dict()
|
|
38
|
+
|
|
39
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded"
|
|
40
|
+
if isinstance(body, PatchedChecklistCategoryRequestMultipart):
|
|
41
|
+
_kwargs["files"] = body.to_multipart()
|
|
29
42
|
|
|
30
43
|
_kwargs["headers"] = headers
|
|
31
44
|
return _kwargs
|
|
@@ -54,12 +67,18 @@ def sync_detailed(
|
|
|
54
67
|
uuid: UUID,
|
|
55
68
|
*,
|
|
56
69
|
client: AuthenticatedClient,
|
|
57
|
-
body:
|
|
70
|
+
body: Union[
|
|
71
|
+
PatchedChecklistCategoryRequest,
|
|
72
|
+
PatchedChecklistCategoryRequestForm,
|
|
73
|
+
PatchedChecklistCategoryRequestMultipart,
|
|
74
|
+
],
|
|
58
75
|
) -> Response[ChecklistCategory]:
|
|
59
76
|
"""
|
|
60
77
|
Args:
|
|
61
78
|
uuid (UUID):
|
|
62
79
|
body (PatchedChecklistCategoryRequest):
|
|
80
|
+
body (PatchedChecklistCategoryRequestForm):
|
|
81
|
+
body (PatchedChecklistCategoryRequestMultipart):
|
|
63
82
|
|
|
64
83
|
Raises:
|
|
65
84
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -85,12 +104,18 @@ def sync(
|
|
|
85
104
|
uuid: UUID,
|
|
86
105
|
*,
|
|
87
106
|
client: AuthenticatedClient,
|
|
88
|
-
body:
|
|
107
|
+
body: Union[
|
|
108
|
+
PatchedChecklistCategoryRequest,
|
|
109
|
+
PatchedChecklistCategoryRequestForm,
|
|
110
|
+
PatchedChecklistCategoryRequestMultipart,
|
|
111
|
+
],
|
|
89
112
|
) -> ChecklistCategory:
|
|
90
113
|
"""
|
|
91
114
|
Args:
|
|
92
115
|
uuid (UUID):
|
|
93
116
|
body (PatchedChecklistCategoryRequest):
|
|
117
|
+
body (PatchedChecklistCategoryRequestForm):
|
|
118
|
+
body (PatchedChecklistCategoryRequestMultipart):
|
|
94
119
|
|
|
95
120
|
Raises:
|
|
96
121
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -111,12 +136,18 @@ async def asyncio_detailed(
|
|
|
111
136
|
uuid: UUID,
|
|
112
137
|
*,
|
|
113
138
|
client: AuthenticatedClient,
|
|
114
|
-
body:
|
|
139
|
+
body: Union[
|
|
140
|
+
PatchedChecklistCategoryRequest,
|
|
141
|
+
PatchedChecklistCategoryRequestForm,
|
|
142
|
+
PatchedChecklistCategoryRequestMultipart,
|
|
143
|
+
],
|
|
115
144
|
) -> Response[ChecklistCategory]:
|
|
116
145
|
"""
|
|
117
146
|
Args:
|
|
118
147
|
uuid (UUID):
|
|
119
148
|
body (PatchedChecklistCategoryRequest):
|
|
149
|
+
body (PatchedChecklistCategoryRequestForm):
|
|
150
|
+
body (PatchedChecklistCategoryRequestMultipart):
|
|
120
151
|
|
|
121
152
|
Raises:
|
|
122
153
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -140,12 +171,18 @@ async def asyncio(
|
|
|
140
171
|
uuid: UUID,
|
|
141
172
|
*,
|
|
142
173
|
client: AuthenticatedClient,
|
|
143
|
-
body:
|
|
174
|
+
body: Union[
|
|
175
|
+
PatchedChecklistCategoryRequest,
|
|
176
|
+
PatchedChecklistCategoryRequestForm,
|
|
177
|
+
PatchedChecklistCategoryRequestMultipart,
|
|
178
|
+
],
|
|
144
179
|
) -> ChecklistCategory:
|
|
145
180
|
"""
|
|
146
181
|
Args:
|
|
147
182
|
uuid (UUID):
|
|
148
183
|
body (PatchedChecklistCategoryRequest):
|
|
184
|
+
body (PatchedChecklistCategoryRequestForm):
|
|
185
|
+
body (PatchedChecklistCategoryRequestMultipart):
|
|
149
186
|
|
|
150
187
|
Raises:
|
|
151
188
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -8,13 +8,19 @@ from ... import errors
|
|
|
8
8
|
from ...client import AuthenticatedClient, Client
|
|
9
9
|
from ...models.checklist_category import ChecklistCategory
|
|
10
10
|
from ...models.checklist_category_request import ChecklistCategoryRequest
|
|
11
|
+
from ...models.checklist_category_request_form import ChecklistCategoryRequestForm
|
|
12
|
+
from ...models.checklist_category_request_multipart import ChecklistCategoryRequestMultipart
|
|
11
13
|
from ...types import Response
|
|
12
14
|
|
|
13
15
|
|
|
14
16
|
def _get_kwargs(
|
|
15
17
|
uuid: UUID,
|
|
16
18
|
*,
|
|
17
|
-
body:
|
|
19
|
+
body: Union[
|
|
20
|
+
ChecklistCategoryRequest,
|
|
21
|
+
ChecklistCategoryRequestForm,
|
|
22
|
+
ChecklistCategoryRequestMultipart,
|
|
23
|
+
],
|
|
18
24
|
) -> dict[str, Any]:
|
|
19
25
|
headers: dict[str, Any] = {}
|
|
20
26
|
|
|
@@ -23,9 +29,16 @@ def _get_kwargs(
|
|
|
23
29
|
"url": f"/api/checklists-admin-categories/{uuid}/",
|
|
24
30
|
}
|
|
25
31
|
|
|
26
|
-
|
|
32
|
+
if isinstance(body, ChecklistCategoryRequest):
|
|
33
|
+
_kwargs["json"] = body.to_dict()
|
|
27
34
|
|
|
28
|
-
|
|
35
|
+
headers["Content-Type"] = "application/json"
|
|
36
|
+
if isinstance(body, ChecklistCategoryRequestForm):
|
|
37
|
+
_kwargs["data"] = body.to_dict()
|
|
38
|
+
|
|
39
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded"
|
|
40
|
+
if isinstance(body, ChecklistCategoryRequestMultipart):
|
|
41
|
+
_kwargs["files"] = body.to_multipart()
|
|
29
42
|
|
|
30
43
|
_kwargs["headers"] = headers
|
|
31
44
|
return _kwargs
|
|
@@ -54,12 +67,18 @@ def sync_detailed(
|
|
|
54
67
|
uuid: UUID,
|
|
55
68
|
*,
|
|
56
69
|
client: AuthenticatedClient,
|
|
57
|
-
body:
|
|
70
|
+
body: Union[
|
|
71
|
+
ChecklistCategoryRequest,
|
|
72
|
+
ChecklistCategoryRequestForm,
|
|
73
|
+
ChecklistCategoryRequestMultipart,
|
|
74
|
+
],
|
|
58
75
|
) -> Response[ChecklistCategory]:
|
|
59
76
|
"""
|
|
60
77
|
Args:
|
|
61
78
|
uuid (UUID):
|
|
62
79
|
body (ChecklistCategoryRequest):
|
|
80
|
+
body (ChecklistCategoryRequestForm):
|
|
81
|
+
body (ChecklistCategoryRequestMultipart):
|
|
63
82
|
|
|
64
83
|
Raises:
|
|
65
84
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -85,12 +104,18 @@ def sync(
|
|
|
85
104
|
uuid: UUID,
|
|
86
105
|
*,
|
|
87
106
|
client: AuthenticatedClient,
|
|
88
|
-
body:
|
|
107
|
+
body: Union[
|
|
108
|
+
ChecklistCategoryRequest,
|
|
109
|
+
ChecklistCategoryRequestForm,
|
|
110
|
+
ChecklistCategoryRequestMultipart,
|
|
111
|
+
],
|
|
89
112
|
) -> ChecklistCategory:
|
|
90
113
|
"""
|
|
91
114
|
Args:
|
|
92
115
|
uuid (UUID):
|
|
93
116
|
body (ChecklistCategoryRequest):
|
|
117
|
+
body (ChecklistCategoryRequestForm):
|
|
118
|
+
body (ChecklistCategoryRequestMultipart):
|
|
94
119
|
|
|
95
120
|
Raises:
|
|
96
121
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -111,12 +136,18 @@ async def asyncio_detailed(
|
|
|
111
136
|
uuid: UUID,
|
|
112
137
|
*,
|
|
113
138
|
client: AuthenticatedClient,
|
|
114
|
-
body:
|
|
139
|
+
body: Union[
|
|
140
|
+
ChecklistCategoryRequest,
|
|
141
|
+
ChecklistCategoryRequestForm,
|
|
142
|
+
ChecklistCategoryRequestMultipart,
|
|
143
|
+
],
|
|
115
144
|
) -> Response[ChecklistCategory]:
|
|
116
145
|
"""
|
|
117
146
|
Args:
|
|
118
147
|
uuid (UUID):
|
|
119
148
|
body (ChecklistCategoryRequest):
|
|
149
|
+
body (ChecklistCategoryRequestForm):
|
|
150
|
+
body (ChecklistCategoryRequestMultipart):
|
|
120
151
|
|
|
121
152
|
Raises:
|
|
122
153
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -140,12 +171,18 @@ async def asyncio(
|
|
|
140
171
|
uuid: UUID,
|
|
141
172
|
*,
|
|
142
173
|
client: AuthenticatedClient,
|
|
143
|
-
body:
|
|
174
|
+
body: Union[
|
|
175
|
+
ChecklistCategoryRequest,
|
|
176
|
+
ChecklistCategoryRequestForm,
|
|
177
|
+
ChecklistCategoryRequestMultipart,
|
|
178
|
+
],
|
|
144
179
|
) -> ChecklistCategory:
|
|
145
180
|
"""
|
|
146
181
|
Args:
|
|
147
182
|
uuid (UUID):
|
|
148
183
|
body (ChecklistCategoryRequest):
|
|
184
|
+
body (ChecklistCategoryRequestForm):
|
|
185
|
+
body (ChecklistCategoryRequestMultipart):
|
|
149
186
|
|
|
150
187
|
Raises:
|
|
151
188
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|