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
|
@@ -7,12 +7,18 @@ from ... import errors
|
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
8
|
from ...models.customer import Customer
|
|
9
9
|
from ...models.customer_request import CustomerRequest
|
|
10
|
+
from ...models.customer_request_form import CustomerRequestForm
|
|
11
|
+
from ...models.customer_request_multipart import CustomerRequestMultipart
|
|
10
12
|
from ...types import Response
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
def _get_kwargs(
|
|
14
16
|
*,
|
|
15
|
-
body:
|
|
17
|
+
body: Union[
|
|
18
|
+
CustomerRequest,
|
|
19
|
+
CustomerRequestForm,
|
|
20
|
+
CustomerRequestMultipart,
|
|
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/customers/",
|
|
22
28
|
}
|
|
23
29
|
|
|
24
|
-
|
|
30
|
+
if isinstance(body, CustomerRequest):
|
|
31
|
+
_kwargs["json"] = body.to_dict()
|
|
25
32
|
|
|
26
|
-
|
|
33
|
+
headers["Content-Type"] = "application/json"
|
|
34
|
+
if isinstance(body, CustomerRequestForm):
|
|
35
|
+
_kwargs["data"] = body.to_dict()
|
|
36
|
+
|
|
37
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded"
|
|
38
|
+
if isinstance(body, CustomerRequestMultipart):
|
|
39
|
+
_kwargs["files"] = body.to_multipart()
|
|
27
40
|
|
|
28
41
|
_kwargs["headers"] = headers
|
|
29
42
|
return _kwargs
|
|
@@ -49,12 +62,18 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
|
|
|
49
62
|
def sync_detailed(
|
|
50
63
|
*,
|
|
51
64
|
client: AuthenticatedClient,
|
|
52
|
-
body:
|
|
65
|
+
body: Union[
|
|
66
|
+
CustomerRequest,
|
|
67
|
+
CustomerRequestForm,
|
|
68
|
+
CustomerRequestMultipart,
|
|
69
|
+
],
|
|
53
70
|
) -> Response[Customer]:
|
|
54
71
|
"""A new customer can only be created by users with staff privilege
|
|
55
72
|
|
|
56
73
|
Args:
|
|
57
74
|
body (CustomerRequest):
|
|
75
|
+
body (CustomerRequestForm):
|
|
76
|
+
body (CustomerRequestMultipart):
|
|
58
77
|
|
|
59
78
|
Raises:
|
|
60
79
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -78,12 +97,18 @@ def sync_detailed(
|
|
|
78
97
|
def sync(
|
|
79
98
|
*,
|
|
80
99
|
client: AuthenticatedClient,
|
|
81
|
-
body:
|
|
100
|
+
body: Union[
|
|
101
|
+
CustomerRequest,
|
|
102
|
+
CustomerRequestForm,
|
|
103
|
+
CustomerRequestMultipart,
|
|
104
|
+
],
|
|
82
105
|
) -> Customer:
|
|
83
106
|
"""A new customer can only be created by users with staff privilege
|
|
84
107
|
|
|
85
108
|
Args:
|
|
86
109
|
body (CustomerRequest):
|
|
110
|
+
body (CustomerRequestForm):
|
|
111
|
+
body (CustomerRequestMultipart):
|
|
87
112
|
|
|
88
113
|
Raises:
|
|
89
114
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -102,12 +127,18 @@ def sync(
|
|
|
102
127
|
async def asyncio_detailed(
|
|
103
128
|
*,
|
|
104
129
|
client: AuthenticatedClient,
|
|
105
|
-
body:
|
|
130
|
+
body: Union[
|
|
131
|
+
CustomerRequest,
|
|
132
|
+
CustomerRequestForm,
|
|
133
|
+
CustomerRequestMultipart,
|
|
134
|
+
],
|
|
106
135
|
) -> Response[Customer]:
|
|
107
136
|
"""A new customer can only be created by users with staff privilege
|
|
108
137
|
|
|
109
138
|
Args:
|
|
110
139
|
body (CustomerRequest):
|
|
140
|
+
body (CustomerRequestForm):
|
|
141
|
+
body (CustomerRequestMultipart):
|
|
111
142
|
|
|
112
143
|
Raises:
|
|
113
144
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -129,12 +160,18 @@ async def asyncio_detailed(
|
|
|
129
160
|
async def asyncio(
|
|
130
161
|
*,
|
|
131
162
|
client: AuthenticatedClient,
|
|
132
|
-
body:
|
|
163
|
+
body: Union[
|
|
164
|
+
CustomerRequest,
|
|
165
|
+
CustomerRequestForm,
|
|
166
|
+
CustomerRequestMultipart,
|
|
167
|
+
],
|
|
133
168
|
) -> Customer:
|
|
134
169
|
"""A new customer can only be created by users with staff privilege
|
|
135
170
|
|
|
136
171
|
Args:
|
|
137
172
|
body (CustomerRequest):
|
|
173
|
+
body (CustomerRequestForm):
|
|
174
|
+
body (CustomerRequestMultipart):
|
|
138
175
|
|
|
139
176
|
Raises:
|
|
140
177
|
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.customer import Customer
|
|
10
10
|
from ...models.patched_customer_request import PatchedCustomerRequest
|
|
11
|
+
from ...models.patched_customer_request_form import PatchedCustomerRequestForm
|
|
12
|
+
from ...models.patched_customer_request_multipart import PatchedCustomerRequestMultipart
|
|
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
|
+
PatchedCustomerRequest,
|
|
21
|
+
PatchedCustomerRequestForm,
|
|
22
|
+
PatchedCustomerRequestMultipart,
|
|
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/customers/{uuid}/",
|
|
24
30
|
}
|
|
25
31
|
|
|
26
|
-
|
|
32
|
+
if isinstance(body, PatchedCustomerRequest):
|
|
33
|
+
_kwargs["json"] = body.to_dict()
|
|
27
34
|
|
|
28
|
-
|
|
35
|
+
headers["Content-Type"] = "application/json"
|
|
36
|
+
if isinstance(body, PatchedCustomerRequestForm):
|
|
37
|
+
_kwargs["data"] = body.to_dict()
|
|
38
|
+
|
|
39
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded"
|
|
40
|
+
if isinstance(body, PatchedCustomerRequestMultipart):
|
|
41
|
+
_kwargs["files"] = body.to_multipart()
|
|
29
42
|
|
|
30
43
|
_kwargs["headers"] = headers
|
|
31
44
|
return _kwargs
|
|
@@ -52,12 +65,18 @@ def sync_detailed(
|
|
|
52
65
|
uuid: UUID,
|
|
53
66
|
*,
|
|
54
67
|
client: AuthenticatedClient,
|
|
55
|
-
body:
|
|
68
|
+
body: Union[
|
|
69
|
+
PatchedCustomerRequest,
|
|
70
|
+
PatchedCustomerRequestForm,
|
|
71
|
+
PatchedCustomerRequestMultipart,
|
|
72
|
+
],
|
|
56
73
|
) -> Response[Customer]:
|
|
57
74
|
"""
|
|
58
75
|
Args:
|
|
59
76
|
uuid (UUID):
|
|
60
77
|
body (PatchedCustomerRequest):
|
|
78
|
+
body (PatchedCustomerRequestForm):
|
|
79
|
+
body (PatchedCustomerRequestMultipart):
|
|
61
80
|
|
|
62
81
|
Raises:
|
|
63
82
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -83,12 +102,18 @@ def sync(
|
|
|
83
102
|
uuid: UUID,
|
|
84
103
|
*,
|
|
85
104
|
client: AuthenticatedClient,
|
|
86
|
-
body:
|
|
105
|
+
body: Union[
|
|
106
|
+
PatchedCustomerRequest,
|
|
107
|
+
PatchedCustomerRequestForm,
|
|
108
|
+
PatchedCustomerRequestMultipart,
|
|
109
|
+
],
|
|
87
110
|
) -> Customer:
|
|
88
111
|
"""
|
|
89
112
|
Args:
|
|
90
113
|
uuid (UUID):
|
|
91
114
|
body (PatchedCustomerRequest):
|
|
115
|
+
body (PatchedCustomerRequestForm):
|
|
116
|
+
body (PatchedCustomerRequestMultipart):
|
|
92
117
|
|
|
93
118
|
Raises:
|
|
94
119
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -109,12 +134,18 @@ async def asyncio_detailed(
|
|
|
109
134
|
uuid: UUID,
|
|
110
135
|
*,
|
|
111
136
|
client: AuthenticatedClient,
|
|
112
|
-
body:
|
|
137
|
+
body: Union[
|
|
138
|
+
PatchedCustomerRequest,
|
|
139
|
+
PatchedCustomerRequestForm,
|
|
140
|
+
PatchedCustomerRequestMultipart,
|
|
141
|
+
],
|
|
113
142
|
) -> Response[Customer]:
|
|
114
143
|
"""
|
|
115
144
|
Args:
|
|
116
145
|
uuid (UUID):
|
|
117
146
|
body (PatchedCustomerRequest):
|
|
147
|
+
body (PatchedCustomerRequestForm):
|
|
148
|
+
body (PatchedCustomerRequestMultipart):
|
|
118
149
|
|
|
119
150
|
Raises:
|
|
120
151
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -138,12 +169,18 @@ async def asyncio(
|
|
|
138
169
|
uuid: UUID,
|
|
139
170
|
*,
|
|
140
171
|
client: AuthenticatedClient,
|
|
141
|
-
body:
|
|
172
|
+
body: Union[
|
|
173
|
+
PatchedCustomerRequest,
|
|
174
|
+
PatchedCustomerRequestForm,
|
|
175
|
+
PatchedCustomerRequestMultipart,
|
|
176
|
+
],
|
|
142
177
|
) -> Customer:
|
|
143
178
|
"""
|
|
144
179
|
Args:
|
|
145
180
|
uuid (UUID):
|
|
146
181
|
body (PatchedCustomerRequest):
|
|
182
|
+
body (PatchedCustomerRequestForm):
|
|
183
|
+
body (PatchedCustomerRequestMultipart):
|
|
147
184
|
|
|
148
185
|
Raises:
|
|
149
186
|
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.customer import Customer
|
|
10
10
|
from ...models.customer_request import CustomerRequest
|
|
11
|
+
from ...models.customer_request_form import CustomerRequestForm
|
|
12
|
+
from ...models.customer_request_multipart import CustomerRequestMultipart
|
|
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
|
+
CustomerRequest,
|
|
21
|
+
CustomerRequestForm,
|
|
22
|
+
CustomerRequestMultipart,
|
|
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/customers/{uuid}/",
|
|
24
30
|
}
|
|
25
31
|
|
|
26
|
-
|
|
32
|
+
if isinstance(body, CustomerRequest):
|
|
33
|
+
_kwargs["json"] = body.to_dict()
|
|
27
34
|
|
|
28
|
-
|
|
35
|
+
headers["Content-Type"] = "application/json"
|
|
36
|
+
if isinstance(body, CustomerRequestForm):
|
|
37
|
+
_kwargs["data"] = body.to_dict()
|
|
38
|
+
|
|
39
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded"
|
|
40
|
+
if isinstance(body, CustomerRequestMultipart):
|
|
41
|
+
_kwargs["files"] = body.to_multipart()
|
|
29
42
|
|
|
30
43
|
_kwargs["headers"] = headers
|
|
31
44
|
return _kwargs
|
|
@@ -52,12 +65,18 @@ def sync_detailed(
|
|
|
52
65
|
uuid: UUID,
|
|
53
66
|
*,
|
|
54
67
|
client: AuthenticatedClient,
|
|
55
|
-
body:
|
|
68
|
+
body: Union[
|
|
69
|
+
CustomerRequest,
|
|
70
|
+
CustomerRequestForm,
|
|
71
|
+
CustomerRequestMultipart,
|
|
72
|
+
],
|
|
56
73
|
) -> Response[Customer]:
|
|
57
74
|
"""
|
|
58
75
|
Args:
|
|
59
76
|
uuid (UUID):
|
|
60
77
|
body (CustomerRequest):
|
|
78
|
+
body (CustomerRequestForm):
|
|
79
|
+
body (CustomerRequestMultipart):
|
|
61
80
|
|
|
62
81
|
Raises:
|
|
63
82
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -83,12 +102,18 @@ def sync(
|
|
|
83
102
|
uuid: UUID,
|
|
84
103
|
*,
|
|
85
104
|
client: AuthenticatedClient,
|
|
86
|
-
body:
|
|
105
|
+
body: Union[
|
|
106
|
+
CustomerRequest,
|
|
107
|
+
CustomerRequestForm,
|
|
108
|
+
CustomerRequestMultipart,
|
|
109
|
+
],
|
|
87
110
|
) -> Customer:
|
|
88
111
|
"""
|
|
89
112
|
Args:
|
|
90
113
|
uuid (UUID):
|
|
91
114
|
body (CustomerRequest):
|
|
115
|
+
body (CustomerRequestForm):
|
|
116
|
+
body (CustomerRequestMultipart):
|
|
92
117
|
|
|
93
118
|
Raises:
|
|
94
119
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -109,12 +134,18 @@ async def asyncio_detailed(
|
|
|
109
134
|
uuid: UUID,
|
|
110
135
|
*,
|
|
111
136
|
client: AuthenticatedClient,
|
|
112
|
-
body:
|
|
137
|
+
body: Union[
|
|
138
|
+
CustomerRequest,
|
|
139
|
+
CustomerRequestForm,
|
|
140
|
+
CustomerRequestMultipart,
|
|
141
|
+
],
|
|
113
142
|
) -> Response[Customer]:
|
|
114
143
|
"""
|
|
115
144
|
Args:
|
|
116
145
|
uuid (UUID):
|
|
117
146
|
body (CustomerRequest):
|
|
147
|
+
body (CustomerRequestForm):
|
|
148
|
+
body (CustomerRequestMultipart):
|
|
118
149
|
|
|
119
150
|
Raises:
|
|
120
151
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -138,12 +169,18 @@ async def asyncio(
|
|
|
138
169
|
uuid: UUID,
|
|
139
170
|
*,
|
|
140
171
|
client: AuthenticatedClient,
|
|
141
|
-
body:
|
|
172
|
+
body: Union[
|
|
173
|
+
CustomerRequest,
|
|
174
|
+
CustomerRequestForm,
|
|
175
|
+
CustomerRequestMultipart,
|
|
176
|
+
],
|
|
142
177
|
) -> Customer:
|
|
143
178
|
"""
|
|
144
179
|
Args:
|
|
145
180
|
uuid (UUID):
|
|
146
181
|
body (CustomerRequest):
|
|
182
|
+
body (CustomerRequestForm):
|
|
183
|
+
body (CustomerRequestMultipart):
|
|
147
184
|
|
|
148
185
|
Raises:
|
|
149
186
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -7,12 +7,18 @@ from ... import errors
|
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
8
|
from ...models.external_link import ExternalLink
|
|
9
9
|
from ...models.external_link_request import ExternalLinkRequest
|
|
10
|
+
from ...models.external_link_request_form import ExternalLinkRequestForm
|
|
11
|
+
from ...models.external_link_request_multipart import ExternalLinkRequestMultipart
|
|
10
12
|
from ...types import Response
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
def _get_kwargs(
|
|
14
16
|
*,
|
|
15
|
-
body:
|
|
17
|
+
body: Union[
|
|
18
|
+
ExternalLinkRequest,
|
|
19
|
+
ExternalLinkRequestForm,
|
|
20
|
+
ExternalLinkRequestMultipart,
|
|
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/external-links/",
|
|
22
28
|
}
|
|
23
29
|
|
|
24
|
-
|
|
30
|
+
if isinstance(body, ExternalLinkRequest):
|
|
31
|
+
_kwargs["json"] = body.to_dict()
|
|
25
32
|
|
|
26
|
-
|
|
33
|
+
headers["Content-Type"] = "application/json"
|
|
34
|
+
if isinstance(body, ExternalLinkRequestForm):
|
|
35
|
+
_kwargs["data"] = body.to_dict()
|
|
36
|
+
|
|
37
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded"
|
|
38
|
+
if isinstance(body, ExternalLinkRequestMultipart):
|
|
39
|
+
_kwargs["files"] = body.to_multipart()
|
|
27
40
|
|
|
28
41
|
_kwargs["headers"] = headers
|
|
29
42
|
return _kwargs
|
|
@@ -49,11 +62,17 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
|
|
|
49
62
|
def sync_detailed(
|
|
50
63
|
*,
|
|
51
64
|
client: AuthenticatedClient,
|
|
52
|
-
body:
|
|
65
|
+
body: Union[
|
|
66
|
+
ExternalLinkRequest,
|
|
67
|
+
ExternalLinkRequestForm,
|
|
68
|
+
ExternalLinkRequestMultipart,
|
|
69
|
+
],
|
|
53
70
|
) -> Response[ExternalLink]:
|
|
54
71
|
"""
|
|
55
72
|
Args:
|
|
56
73
|
body (ExternalLinkRequest):
|
|
74
|
+
body (ExternalLinkRequestForm):
|
|
75
|
+
body (ExternalLinkRequestMultipart):
|
|
57
76
|
|
|
58
77
|
Raises:
|
|
59
78
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -77,11 +96,17 @@ def sync_detailed(
|
|
|
77
96
|
def sync(
|
|
78
97
|
*,
|
|
79
98
|
client: AuthenticatedClient,
|
|
80
|
-
body:
|
|
99
|
+
body: Union[
|
|
100
|
+
ExternalLinkRequest,
|
|
101
|
+
ExternalLinkRequestForm,
|
|
102
|
+
ExternalLinkRequestMultipart,
|
|
103
|
+
],
|
|
81
104
|
) -> ExternalLink:
|
|
82
105
|
"""
|
|
83
106
|
Args:
|
|
84
107
|
body (ExternalLinkRequest):
|
|
108
|
+
body (ExternalLinkRequestForm):
|
|
109
|
+
body (ExternalLinkRequestMultipart):
|
|
85
110
|
|
|
86
111
|
Raises:
|
|
87
112
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -100,11 +125,17 @@ def sync(
|
|
|
100
125
|
async def asyncio_detailed(
|
|
101
126
|
*,
|
|
102
127
|
client: AuthenticatedClient,
|
|
103
|
-
body:
|
|
128
|
+
body: Union[
|
|
129
|
+
ExternalLinkRequest,
|
|
130
|
+
ExternalLinkRequestForm,
|
|
131
|
+
ExternalLinkRequestMultipart,
|
|
132
|
+
],
|
|
104
133
|
) -> Response[ExternalLink]:
|
|
105
134
|
"""
|
|
106
135
|
Args:
|
|
107
136
|
body (ExternalLinkRequest):
|
|
137
|
+
body (ExternalLinkRequestForm):
|
|
138
|
+
body (ExternalLinkRequestMultipart):
|
|
108
139
|
|
|
109
140
|
Raises:
|
|
110
141
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -126,11 +157,17 @@ async def asyncio_detailed(
|
|
|
126
157
|
async def asyncio(
|
|
127
158
|
*,
|
|
128
159
|
client: AuthenticatedClient,
|
|
129
|
-
body:
|
|
160
|
+
body: Union[
|
|
161
|
+
ExternalLinkRequest,
|
|
162
|
+
ExternalLinkRequestForm,
|
|
163
|
+
ExternalLinkRequestMultipart,
|
|
164
|
+
],
|
|
130
165
|
) -> ExternalLink:
|
|
131
166
|
"""
|
|
132
167
|
Args:
|
|
133
168
|
body (ExternalLinkRequest):
|
|
169
|
+
body (ExternalLinkRequestForm):
|
|
170
|
+
body (ExternalLinkRequestMultipart):
|
|
134
171
|
|
|
135
172
|
Raises:
|
|
136
173
|
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.external_link import ExternalLink
|
|
10
10
|
from ...models.patched_external_link_request import PatchedExternalLinkRequest
|
|
11
|
+
from ...models.patched_external_link_request_form import PatchedExternalLinkRequestForm
|
|
12
|
+
from ...models.patched_external_link_request_multipart import PatchedExternalLinkRequestMultipart
|
|
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
|
+
PatchedExternalLinkRequest,
|
|
21
|
+
PatchedExternalLinkRequestForm,
|
|
22
|
+
PatchedExternalLinkRequestMultipart,
|
|
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/external-links/{uuid}/",
|
|
24
30
|
}
|
|
25
31
|
|
|
26
|
-
|
|
32
|
+
if isinstance(body, PatchedExternalLinkRequest):
|
|
33
|
+
_kwargs["json"] = body.to_dict()
|
|
27
34
|
|
|
28
|
-
|
|
35
|
+
headers["Content-Type"] = "application/json"
|
|
36
|
+
if isinstance(body, PatchedExternalLinkRequestForm):
|
|
37
|
+
_kwargs["data"] = body.to_dict()
|
|
38
|
+
|
|
39
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded"
|
|
40
|
+
if isinstance(body, PatchedExternalLinkRequestMultipart):
|
|
41
|
+
_kwargs["files"] = body.to_multipart()
|
|
29
42
|
|
|
30
43
|
_kwargs["headers"] = headers
|
|
31
44
|
return _kwargs
|
|
@@ -52,12 +65,18 @@ def sync_detailed(
|
|
|
52
65
|
uuid: UUID,
|
|
53
66
|
*,
|
|
54
67
|
client: AuthenticatedClient,
|
|
55
|
-
body:
|
|
68
|
+
body: Union[
|
|
69
|
+
PatchedExternalLinkRequest,
|
|
70
|
+
PatchedExternalLinkRequestForm,
|
|
71
|
+
PatchedExternalLinkRequestMultipart,
|
|
72
|
+
],
|
|
56
73
|
) -> Response[ExternalLink]:
|
|
57
74
|
"""
|
|
58
75
|
Args:
|
|
59
76
|
uuid (UUID):
|
|
60
77
|
body (PatchedExternalLinkRequest):
|
|
78
|
+
body (PatchedExternalLinkRequestForm):
|
|
79
|
+
body (PatchedExternalLinkRequestMultipart):
|
|
61
80
|
|
|
62
81
|
Raises:
|
|
63
82
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -83,12 +102,18 @@ def sync(
|
|
|
83
102
|
uuid: UUID,
|
|
84
103
|
*,
|
|
85
104
|
client: AuthenticatedClient,
|
|
86
|
-
body:
|
|
105
|
+
body: Union[
|
|
106
|
+
PatchedExternalLinkRequest,
|
|
107
|
+
PatchedExternalLinkRequestForm,
|
|
108
|
+
PatchedExternalLinkRequestMultipart,
|
|
109
|
+
],
|
|
87
110
|
) -> ExternalLink:
|
|
88
111
|
"""
|
|
89
112
|
Args:
|
|
90
113
|
uuid (UUID):
|
|
91
114
|
body (PatchedExternalLinkRequest):
|
|
115
|
+
body (PatchedExternalLinkRequestForm):
|
|
116
|
+
body (PatchedExternalLinkRequestMultipart):
|
|
92
117
|
|
|
93
118
|
Raises:
|
|
94
119
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -109,12 +134,18 @@ async def asyncio_detailed(
|
|
|
109
134
|
uuid: UUID,
|
|
110
135
|
*,
|
|
111
136
|
client: AuthenticatedClient,
|
|
112
|
-
body:
|
|
137
|
+
body: Union[
|
|
138
|
+
PatchedExternalLinkRequest,
|
|
139
|
+
PatchedExternalLinkRequestForm,
|
|
140
|
+
PatchedExternalLinkRequestMultipart,
|
|
141
|
+
],
|
|
113
142
|
) -> Response[ExternalLink]:
|
|
114
143
|
"""
|
|
115
144
|
Args:
|
|
116
145
|
uuid (UUID):
|
|
117
146
|
body (PatchedExternalLinkRequest):
|
|
147
|
+
body (PatchedExternalLinkRequestForm):
|
|
148
|
+
body (PatchedExternalLinkRequestMultipart):
|
|
118
149
|
|
|
119
150
|
Raises:
|
|
120
151
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -138,12 +169,18 @@ async def asyncio(
|
|
|
138
169
|
uuid: UUID,
|
|
139
170
|
*,
|
|
140
171
|
client: AuthenticatedClient,
|
|
141
|
-
body:
|
|
172
|
+
body: Union[
|
|
173
|
+
PatchedExternalLinkRequest,
|
|
174
|
+
PatchedExternalLinkRequestForm,
|
|
175
|
+
PatchedExternalLinkRequestMultipart,
|
|
176
|
+
],
|
|
142
177
|
) -> ExternalLink:
|
|
143
178
|
"""
|
|
144
179
|
Args:
|
|
145
180
|
uuid (UUID):
|
|
146
181
|
body (PatchedExternalLinkRequest):
|
|
182
|
+
body (PatchedExternalLinkRequestForm):
|
|
183
|
+
body (PatchedExternalLinkRequestMultipart):
|
|
147
184
|
|
|
148
185
|
Raises:
|
|
149
186
|
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.external_link import ExternalLink
|
|
10
10
|
from ...models.external_link_request import ExternalLinkRequest
|
|
11
|
+
from ...models.external_link_request_form import ExternalLinkRequestForm
|
|
12
|
+
from ...models.external_link_request_multipart import ExternalLinkRequestMultipart
|
|
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
|
+
ExternalLinkRequest,
|
|
21
|
+
ExternalLinkRequestForm,
|
|
22
|
+
ExternalLinkRequestMultipart,
|
|
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/external-links/{uuid}/",
|
|
24
30
|
}
|
|
25
31
|
|
|
26
|
-
|
|
32
|
+
if isinstance(body, ExternalLinkRequest):
|
|
33
|
+
_kwargs["json"] = body.to_dict()
|
|
27
34
|
|
|
28
|
-
|
|
35
|
+
headers["Content-Type"] = "application/json"
|
|
36
|
+
if isinstance(body, ExternalLinkRequestForm):
|
|
37
|
+
_kwargs["data"] = body.to_dict()
|
|
38
|
+
|
|
39
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded"
|
|
40
|
+
if isinstance(body, ExternalLinkRequestMultipart):
|
|
41
|
+
_kwargs["files"] = body.to_multipart()
|
|
29
42
|
|
|
30
43
|
_kwargs["headers"] = headers
|
|
31
44
|
return _kwargs
|
|
@@ -52,12 +65,18 @@ def sync_detailed(
|
|
|
52
65
|
uuid: UUID,
|
|
53
66
|
*,
|
|
54
67
|
client: AuthenticatedClient,
|
|
55
|
-
body:
|
|
68
|
+
body: Union[
|
|
69
|
+
ExternalLinkRequest,
|
|
70
|
+
ExternalLinkRequestForm,
|
|
71
|
+
ExternalLinkRequestMultipart,
|
|
72
|
+
],
|
|
56
73
|
) -> Response[ExternalLink]:
|
|
57
74
|
"""
|
|
58
75
|
Args:
|
|
59
76
|
uuid (UUID):
|
|
60
77
|
body (ExternalLinkRequest):
|
|
78
|
+
body (ExternalLinkRequestForm):
|
|
79
|
+
body (ExternalLinkRequestMultipart):
|
|
61
80
|
|
|
62
81
|
Raises:
|
|
63
82
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -83,12 +102,18 @@ def sync(
|
|
|
83
102
|
uuid: UUID,
|
|
84
103
|
*,
|
|
85
104
|
client: AuthenticatedClient,
|
|
86
|
-
body:
|
|
105
|
+
body: Union[
|
|
106
|
+
ExternalLinkRequest,
|
|
107
|
+
ExternalLinkRequestForm,
|
|
108
|
+
ExternalLinkRequestMultipart,
|
|
109
|
+
],
|
|
87
110
|
) -> ExternalLink:
|
|
88
111
|
"""
|
|
89
112
|
Args:
|
|
90
113
|
uuid (UUID):
|
|
91
114
|
body (ExternalLinkRequest):
|
|
115
|
+
body (ExternalLinkRequestForm):
|
|
116
|
+
body (ExternalLinkRequestMultipart):
|
|
92
117
|
|
|
93
118
|
Raises:
|
|
94
119
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -109,12 +134,18 @@ async def asyncio_detailed(
|
|
|
109
134
|
uuid: UUID,
|
|
110
135
|
*,
|
|
111
136
|
client: AuthenticatedClient,
|
|
112
|
-
body:
|
|
137
|
+
body: Union[
|
|
138
|
+
ExternalLinkRequest,
|
|
139
|
+
ExternalLinkRequestForm,
|
|
140
|
+
ExternalLinkRequestMultipart,
|
|
141
|
+
],
|
|
113
142
|
) -> Response[ExternalLink]:
|
|
114
143
|
"""
|
|
115
144
|
Args:
|
|
116
145
|
uuid (UUID):
|
|
117
146
|
body (ExternalLinkRequest):
|
|
147
|
+
body (ExternalLinkRequestForm):
|
|
148
|
+
body (ExternalLinkRequestMultipart):
|
|
118
149
|
|
|
119
150
|
Raises:
|
|
120
151
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -138,12 +169,18 @@ async def asyncio(
|
|
|
138
169
|
uuid: UUID,
|
|
139
170
|
*,
|
|
140
171
|
client: AuthenticatedClient,
|
|
141
|
-
body:
|
|
172
|
+
body: Union[
|
|
173
|
+
ExternalLinkRequest,
|
|
174
|
+
ExternalLinkRequestForm,
|
|
175
|
+
ExternalLinkRequestMultipart,
|
|
176
|
+
],
|
|
142
177
|
) -> ExternalLink:
|
|
143
178
|
"""
|
|
144
179
|
Args:
|
|
145
180
|
uuid (UUID):
|
|
146
181
|
body (ExternalLinkRequest):
|
|
182
|
+
body (ExternalLinkRequestForm):
|
|
183
|
+
body (ExternalLinkRequestMultipart):
|
|
147
184
|
|
|
148
185
|
Raises:
|
|
149
186
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|