waldur-api-client 7.8.0__py3-none-any.whl → 7.8.2__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_course_accounts/marketplace_course_accounts_count.py +96 -0
- waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_list.py +96 -0
- waldur_api_client/api/marketplace_offering_files/marketplace_offering_files_create.py +44 -7
- waldur_api_client/api/marketplace_offering_user_checklist_completions/__init__.py +1 -0
- waldur_api_client/api/marketplace_offering_user_checklist_completions/marketplace_offering_user_checklist_completions_count.py +286 -0
- waldur_api_client/api/marketplace_offering_user_checklist_completions/marketplace_offering_user_checklist_completions_list.py +289 -0
- waldur_api_client/api/marketplace_offering_user_checklist_completions/marketplace_offering_user_checklist_completions_retrieve.py +141 -0
- waldur_api_client/api/marketplace_orders/marketplace_orders_update_attachment.py +44 -7
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_create.py +44 -7
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_list_course_accounts_retrieve.py +177 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_refresh_offering_usernames.py +0 -22
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_compliance_checklist.py +105 -0
- 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_resources/marketplace_resources_count.py +10 -13
- waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +10 -13
- 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_course_accounts_list.py +98 -0
- 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/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/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/user_invitations/user_invitations_count.py +15 -0
- waldur_api_client/api/user_invitations/user_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 -4
- 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/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 +18 -0
- waldur_api_client/models/booking_resources_list_field_item.py +2 -0
- waldur_api_client/models/booking_resources_retrieve_field_item.py +2 -0
- 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 +9 -0
- waldur_api_client/models/constance_settings_request.py +9 -0
- waldur_api_client/models/constance_settings_request_form.py +1547 -0
- waldur_api_client/models/constance_settings_request_multipart.py +2173 -0
- waldur_api_client/models/course_account.py +24 -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/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/group_invitation.py +8 -0
- waldur_api_client/models/integration_status.py +21 -4
- waldur_api_client/models/invitation.py +8 -0
- waldur_api_client/models/managed_rancher_cluster_resources_list_field_item.py +2 -0
- waldur_api_client/models/managed_rancher_cluster_resources_retrieve_field_item.py +2 -0
- 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_course_accounts_count_o_item.py +23 -0
- waldur_api_client/models/marketplace_course_accounts_list_o_item.py +23 -0
- waldur_api_client/models/marketplace_offering_user_checklist_completions_count_o_item.py +11 -0
- waldur_api_client/models/marketplace_offering_user_checklist_completions_list_o_item.py +11 -0
- waldur_api_client/models/marketplace_orders_list_field_item.py +3 -0
- waldur_api_client/models/marketplace_orders_retrieve_field_item.py +3 -0
- waldur_api_client/models/marketplace_provider_offerings_list_course_accounts_retrieve_field_item.py +73 -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 +2 -0
- waldur_api_client/models/marketplace_provider_resources_list_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_resources_retrieve_field_item.py +2 -0
- 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 +2 -0
- waldur_api_client/models/marketplace_resources_list_field_item.py +2 -0
- waldur_api_client/models/marketplace_resources_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_service_providers_course_accounts_list_o_item.py +23 -0
- 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/nested_round.py +9 -0
- waldur_api_client/models/nested_round_request.py +9 -0
- waldur_api_client/models/notification.py +11 -0
- waldur_api_client/models/notification_context_fields.py +47 -0
- waldur_api_client/models/offering.py +20 -0
- waldur_api_client/models/offering_compliance_checklist_update_request.py +82 -0
- waldur_api_client/models/offering_create.py +20 -0
- waldur_api_client/models/offering_create_request.py +20 -0
- waldur_api_client/models/{provider_offering_details_request.py → offering_create_request_form.py} +77 -5
- 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/order_attachment_request_form.py +84 -0
- waldur_api_client/models/order_attachment_request_multipart.py +98 -0
- waldur_api_client/models/order_details.py +34 -0
- 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_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/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/resource.py +18 -0
- waldur_api_client/models/resource_update_limits_request.py +1 -34
- 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/user_checklist_completion.py +265 -0
- waldur_api_client/models/user_request_form.py +250 -0
- waldur_api_client/models/user_request_multipart.py +316 -0
- waldur_api_client/models/visible_invitation_details.py +8 -0
- {waldur_api_client-7.8.0.dist-info → waldur_api_client-7.8.2.dist-info}/METADATA +1 -1
- {waldur_api_client-7.8.0.dist-info → waldur_api_client-7.8.2.dist-info}/RECORD +212 -127
- {waldur_api_client-7.8.0.dist-info → waldur_api_client-7.8.2.dist-info}/WHEEL +1 -1
- {waldur_api_client-7.8.0.dist-info → waldur_api_client-7.8.2.dist-info}/licenses/LICENSE +0 -0
|
@@ -7,12 +7,18 @@ from ... import errors
|
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
8
|
from ...models.screenshot import Screenshot
|
|
9
9
|
from ...models.screenshot_request import ScreenshotRequest
|
|
10
|
+
from ...models.screenshot_request_form import ScreenshotRequestForm
|
|
11
|
+
from ...models.screenshot_request_multipart import ScreenshotRequestMultipart
|
|
10
12
|
from ...types import Response
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
def _get_kwargs(
|
|
14
16
|
*,
|
|
15
|
-
body:
|
|
17
|
+
body: Union[
|
|
18
|
+
ScreenshotRequest,
|
|
19
|
+
ScreenshotRequestForm,
|
|
20
|
+
ScreenshotRequestMultipart,
|
|
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/marketplace-screenshots/",
|
|
22
28
|
}
|
|
23
29
|
|
|
24
|
-
|
|
30
|
+
if isinstance(body, ScreenshotRequest):
|
|
31
|
+
_kwargs["json"] = body.to_dict()
|
|
25
32
|
|
|
26
|
-
|
|
33
|
+
headers["Content-Type"] = "application/json"
|
|
34
|
+
if isinstance(body, ScreenshotRequestForm):
|
|
35
|
+
_kwargs["data"] = body.to_dict()
|
|
36
|
+
|
|
37
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded"
|
|
38
|
+
if isinstance(body, ScreenshotRequestMultipart):
|
|
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
|
+
ScreenshotRequest,
|
|
67
|
+
ScreenshotRequestForm,
|
|
68
|
+
ScreenshotRequestMultipart,
|
|
69
|
+
],
|
|
53
70
|
) -> Response[Screenshot]:
|
|
54
71
|
"""
|
|
55
72
|
Args:
|
|
56
73
|
body (ScreenshotRequest):
|
|
74
|
+
body (ScreenshotRequestForm):
|
|
75
|
+
body (ScreenshotRequestMultipart):
|
|
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
|
+
ScreenshotRequest,
|
|
101
|
+
ScreenshotRequestForm,
|
|
102
|
+
ScreenshotRequestMultipart,
|
|
103
|
+
],
|
|
81
104
|
) -> Screenshot:
|
|
82
105
|
"""
|
|
83
106
|
Args:
|
|
84
107
|
body (ScreenshotRequest):
|
|
108
|
+
body (ScreenshotRequestForm):
|
|
109
|
+
body (ScreenshotRequestMultipart):
|
|
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
|
+
ScreenshotRequest,
|
|
130
|
+
ScreenshotRequestForm,
|
|
131
|
+
ScreenshotRequestMultipart,
|
|
132
|
+
],
|
|
104
133
|
) -> Response[Screenshot]:
|
|
105
134
|
"""
|
|
106
135
|
Args:
|
|
107
136
|
body (ScreenshotRequest):
|
|
137
|
+
body (ScreenshotRequestForm):
|
|
138
|
+
body (ScreenshotRequestMultipart):
|
|
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
|
+
ScreenshotRequest,
|
|
162
|
+
ScreenshotRequestForm,
|
|
163
|
+
ScreenshotRequestMultipart,
|
|
164
|
+
],
|
|
130
165
|
) -> Screenshot:
|
|
131
166
|
"""
|
|
132
167
|
Args:
|
|
133
168
|
body (ScreenshotRequest):
|
|
169
|
+
body (ScreenshotRequestForm):
|
|
170
|
+
body (ScreenshotRequestMultipart):
|
|
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.screenshot import Screenshot
|
|
10
10
|
from ...models.screenshot_request import ScreenshotRequest
|
|
11
|
+
from ...models.screenshot_request_form import ScreenshotRequestForm
|
|
12
|
+
from ...models.screenshot_request_multipart import ScreenshotRequestMultipart
|
|
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
|
+
ScreenshotRequest,
|
|
21
|
+
ScreenshotRequestForm,
|
|
22
|
+
ScreenshotRequestMultipart,
|
|
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/marketplace-screenshots/{uuid}/",
|
|
24
30
|
}
|
|
25
31
|
|
|
26
|
-
|
|
32
|
+
if isinstance(body, ScreenshotRequest):
|
|
33
|
+
_kwargs["json"] = body.to_dict()
|
|
27
34
|
|
|
28
|
-
|
|
35
|
+
headers["Content-Type"] = "application/json"
|
|
36
|
+
if isinstance(body, ScreenshotRequestForm):
|
|
37
|
+
_kwargs["data"] = body.to_dict()
|
|
38
|
+
|
|
39
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded"
|
|
40
|
+
if isinstance(body, ScreenshotRequestMultipart):
|
|
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
|
+
ScreenshotRequest,
|
|
70
|
+
ScreenshotRequestForm,
|
|
71
|
+
ScreenshotRequestMultipart,
|
|
72
|
+
],
|
|
56
73
|
) -> Response[Screenshot]:
|
|
57
74
|
"""
|
|
58
75
|
Args:
|
|
59
76
|
uuid (UUID):
|
|
60
77
|
body (ScreenshotRequest):
|
|
78
|
+
body (ScreenshotRequestForm):
|
|
79
|
+
body (ScreenshotRequestMultipart):
|
|
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
|
+
ScreenshotRequest,
|
|
107
|
+
ScreenshotRequestForm,
|
|
108
|
+
ScreenshotRequestMultipart,
|
|
109
|
+
],
|
|
87
110
|
) -> Screenshot:
|
|
88
111
|
"""
|
|
89
112
|
Args:
|
|
90
113
|
uuid (UUID):
|
|
91
114
|
body (ScreenshotRequest):
|
|
115
|
+
body (ScreenshotRequestForm):
|
|
116
|
+
body (ScreenshotRequestMultipart):
|
|
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
|
+
ScreenshotRequest,
|
|
139
|
+
ScreenshotRequestForm,
|
|
140
|
+
ScreenshotRequestMultipart,
|
|
141
|
+
],
|
|
113
142
|
) -> Response[Screenshot]:
|
|
114
143
|
"""
|
|
115
144
|
Args:
|
|
116
145
|
uuid (UUID):
|
|
117
146
|
body (ScreenshotRequest):
|
|
147
|
+
body (ScreenshotRequestForm):
|
|
148
|
+
body (ScreenshotRequestMultipart):
|
|
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
|
+
ScreenshotRequest,
|
|
174
|
+
ScreenshotRequestForm,
|
|
175
|
+
ScreenshotRequestMultipart,
|
|
176
|
+
],
|
|
142
177
|
) -> Screenshot:
|
|
143
178
|
"""
|
|
144
179
|
Args:
|
|
145
180
|
uuid (UUID):
|
|
146
181
|
body (ScreenshotRequest):
|
|
182
|
+
body (ScreenshotRequestForm):
|
|
183
|
+
body (ScreenshotRequestMultipart):
|
|
147
184
|
|
|
148
185
|
Raises:
|
|
149
186
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import datetime
|
|
1
2
|
from http import HTTPStatus
|
|
2
3
|
from typing import Any, Union
|
|
3
4
|
from uuid import UUID
|
|
@@ -7,6 +8,9 @@ import httpx
|
|
|
7
8
|
from ... import errors
|
|
8
9
|
from ...client import AuthenticatedClient, Client
|
|
9
10
|
from ...models.course_account import CourseAccount
|
|
11
|
+
from ...models.marketplace_service_providers_course_accounts_list_o_item import (
|
|
12
|
+
MarketplaceServiceProvidersCourseAccountsListOItem,
|
|
13
|
+
)
|
|
10
14
|
from ...models.marketplace_service_providers_course_accounts_list_state_item import (
|
|
11
15
|
MarketplaceServiceProvidersCourseAccountsListStateItem,
|
|
12
16
|
)
|
|
@@ -17,8 +21,13 @@ def _get_kwargs(
|
|
|
17
21
|
service_provider_uuid: UUID,
|
|
18
22
|
*,
|
|
19
23
|
email: Union[Unset, str] = UNSET,
|
|
24
|
+
o: Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListOItem]] = UNSET,
|
|
20
25
|
page: Union[Unset, int] = UNSET,
|
|
21
26
|
page_size: Union[Unset, int] = UNSET,
|
|
27
|
+
project_end_date_after: Union[Unset, datetime.date] = UNSET,
|
|
28
|
+
project_end_date_before: Union[Unset, datetime.date] = UNSET,
|
|
29
|
+
project_start_date_after: Union[Unset, datetime.date] = UNSET,
|
|
30
|
+
project_start_date_before: Union[Unset, datetime.date] = UNSET,
|
|
22
31
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
23
32
|
state: Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListStateItem]] = UNSET,
|
|
24
33
|
username: Union[Unset, str] = UNSET,
|
|
@@ -27,10 +36,39 @@ def _get_kwargs(
|
|
|
27
36
|
|
|
28
37
|
params["email"] = email
|
|
29
38
|
|
|
39
|
+
json_o: Union[Unset, list[str]] = UNSET
|
|
40
|
+
if not isinstance(o, Unset):
|
|
41
|
+
json_o = []
|
|
42
|
+
for o_item_data in o:
|
|
43
|
+
o_item = o_item_data.value
|
|
44
|
+
json_o.append(o_item)
|
|
45
|
+
|
|
46
|
+
params["o"] = json_o
|
|
47
|
+
|
|
30
48
|
params["page"] = page
|
|
31
49
|
|
|
32
50
|
params["page_size"] = page_size
|
|
33
51
|
|
|
52
|
+
json_project_end_date_after: Union[Unset, str] = UNSET
|
|
53
|
+
if not isinstance(project_end_date_after, Unset):
|
|
54
|
+
json_project_end_date_after = project_end_date_after.isoformat()
|
|
55
|
+
params["project_end_date_after"] = json_project_end_date_after
|
|
56
|
+
|
|
57
|
+
json_project_end_date_before: Union[Unset, str] = UNSET
|
|
58
|
+
if not isinstance(project_end_date_before, Unset):
|
|
59
|
+
json_project_end_date_before = project_end_date_before.isoformat()
|
|
60
|
+
params["project_end_date_before"] = json_project_end_date_before
|
|
61
|
+
|
|
62
|
+
json_project_start_date_after: Union[Unset, str] = UNSET
|
|
63
|
+
if not isinstance(project_start_date_after, Unset):
|
|
64
|
+
json_project_start_date_after = project_start_date_after.isoformat()
|
|
65
|
+
params["project_start_date_after"] = json_project_start_date_after
|
|
66
|
+
|
|
67
|
+
json_project_start_date_before: Union[Unset, str] = UNSET
|
|
68
|
+
if not isinstance(project_start_date_before, Unset):
|
|
69
|
+
json_project_start_date_before = project_start_date_before.isoformat()
|
|
70
|
+
params["project_start_date_before"] = json_project_start_date_before
|
|
71
|
+
|
|
34
72
|
json_project_uuid: Union[Unset, str] = UNSET
|
|
35
73
|
if not isinstance(project_uuid, Unset):
|
|
36
74
|
json_project_uuid = str(project_uuid)
|
|
@@ -87,8 +125,13 @@ def sync_detailed(
|
|
|
87
125
|
*,
|
|
88
126
|
client: AuthenticatedClient,
|
|
89
127
|
email: Union[Unset, str] = UNSET,
|
|
128
|
+
o: Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListOItem]] = UNSET,
|
|
90
129
|
page: Union[Unset, int] = UNSET,
|
|
91
130
|
page_size: Union[Unset, int] = UNSET,
|
|
131
|
+
project_end_date_after: Union[Unset, datetime.date] = UNSET,
|
|
132
|
+
project_end_date_before: Union[Unset, datetime.date] = UNSET,
|
|
133
|
+
project_start_date_after: Union[Unset, datetime.date] = UNSET,
|
|
134
|
+
project_start_date_before: Union[Unset, datetime.date] = UNSET,
|
|
92
135
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
93
136
|
state: Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListStateItem]] = UNSET,
|
|
94
137
|
username: Union[Unset, str] = UNSET,
|
|
@@ -104,8 +147,13 @@ def sync_detailed(
|
|
|
104
147
|
Args:
|
|
105
148
|
service_provider_uuid (UUID):
|
|
106
149
|
email (Union[Unset, str]):
|
|
150
|
+
o (Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListOItem]]):
|
|
107
151
|
page (Union[Unset, int]):
|
|
108
152
|
page_size (Union[Unset, int]):
|
|
153
|
+
project_end_date_after (Union[Unset, datetime.date]):
|
|
154
|
+
project_end_date_before (Union[Unset, datetime.date]):
|
|
155
|
+
project_start_date_after (Union[Unset, datetime.date]):
|
|
156
|
+
project_start_date_before (Union[Unset, datetime.date]):
|
|
109
157
|
project_uuid (Union[Unset, UUID]):
|
|
110
158
|
state (Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListStateItem]]):
|
|
111
159
|
username (Union[Unset, str]):
|
|
@@ -121,8 +169,13 @@ def sync_detailed(
|
|
|
121
169
|
kwargs = _get_kwargs(
|
|
122
170
|
service_provider_uuid=service_provider_uuid,
|
|
123
171
|
email=email,
|
|
172
|
+
o=o,
|
|
124
173
|
page=page,
|
|
125
174
|
page_size=page_size,
|
|
175
|
+
project_end_date_after=project_end_date_after,
|
|
176
|
+
project_end_date_before=project_end_date_before,
|
|
177
|
+
project_start_date_after=project_start_date_after,
|
|
178
|
+
project_start_date_before=project_start_date_before,
|
|
126
179
|
project_uuid=project_uuid,
|
|
127
180
|
state=state,
|
|
128
181
|
username=username,
|
|
@@ -140,8 +193,13 @@ def sync(
|
|
|
140
193
|
*,
|
|
141
194
|
client: AuthenticatedClient,
|
|
142
195
|
email: Union[Unset, str] = UNSET,
|
|
196
|
+
o: Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListOItem]] = UNSET,
|
|
143
197
|
page: Union[Unset, int] = UNSET,
|
|
144
198
|
page_size: Union[Unset, int] = UNSET,
|
|
199
|
+
project_end_date_after: Union[Unset, datetime.date] = UNSET,
|
|
200
|
+
project_end_date_before: Union[Unset, datetime.date] = UNSET,
|
|
201
|
+
project_start_date_after: Union[Unset, datetime.date] = UNSET,
|
|
202
|
+
project_start_date_before: Union[Unset, datetime.date] = UNSET,
|
|
145
203
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
146
204
|
state: Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListStateItem]] = UNSET,
|
|
147
205
|
username: Union[Unset, str] = UNSET,
|
|
@@ -157,8 +215,13 @@ def sync(
|
|
|
157
215
|
Args:
|
|
158
216
|
service_provider_uuid (UUID):
|
|
159
217
|
email (Union[Unset, str]):
|
|
218
|
+
o (Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListOItem]]):
|
|
160
219
|
page (Union[Unset, int]):
|
|
161
220
|
page_size (Union[Unset, int]):
|
|
221
|
+
project_end_date_after (Union[Unset, datetime.date]):
|
|
222
|
+
project_end_date_before (Union[Unset, datetime.date]):
|
|
223
|
+
project_start_date_after (Union[Unset, datetime.date]):
|
|
224
|
+
project_start_date_before (Union[Unset, datetime.date]):
|
|
162
225
|
project_uuid (Union[Unset, UUID]):
|
|
163
226
|
state (Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListStateItem]]):
|
|
164
227
|
username (Union[Unset, str]):
|
|
@@ -175,8 +238,13 @@ def sync(
|
|
|
175
238
|
service_provider_uuid=service_provider_uuid,
|
|
176
239
|
client=client,
|
|
177
240
|
email=email,
|
|
241
|
+
o=o,
|
|
178
242
|
page=page,
|
|
179
243
|
page_size=page_size,
|
|
244
|
+
project_end_date_after=project_end_date_after,
|
|
245
|
+
project_end_date_before=project_end_date_before,
|
|
246
|
+
project_start_date_after=project_start_date_after,
|
|
247
|
+
project_start_date_before=project_start_date_before,
|
|
180
248
|
project_uuid=project_uuid,
|
|
181
249
|
state=state,
|
|
182
250
|
username=username,
|
|
@@ -188,8 +256,13 @@ async def asyncio_detailed(
|
|
|
188
256
|
*,
|
|
189
257
|
client: AuthenticatedClient,
|
|
190
258
|
email: Union[Unset, str] = UNSET,
|
|
259
|
+
o: Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListOItem]] = UNSET,
|
|
191
260
|
page: Union[Unset, int] = UNSET,
|
|
192
261
|
page_size: Union[Unset, int] = UNSET,
|
|
262
|
+
project_end_date_after: Union[Unset, datetime.date] = UNSET,
|
|
263
|
+
project_end_date_before: Union[Unset, datetime.date] = UNSET,
|
|
264
|
+
project_start_date_after: Union[Unset, datetime.date] = UNSET,
|
|
265
|
+
project_start_date_before: Union[Unset, datetime.date] = UNSET,
|
|
193
266
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
194
267
|
state: Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListStateItem]] = UNSET,
|
|
195
268
|
username: Union[Unset, str] = UNSET,
|
|
@@ -205,8 +278,13 @@ async def asyncio_detailed(
|
|
|
205
278
|
Args:
|
|
206
279
|
service_provider_uuid (UUID):
|
|
207
280
|
email (Union[Unset, str]):
|
|
281
|
+
o (Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListOItem]]):
|
|
208
282
|
page (Union[Unset, int]):
|
|
209
283
|
page_size (Union[Unset, int]):
|
|
284
|
+
project_end_date_after (Union[Unset, datetime.date]):
|
|
285
|
+
project_end_date_before (Union[Unset, datetime.date]):
|
|
286
|
+
project_start_date_after (Union[Unset, datetime.date]):
|
|
287
|
+
project_start_date_before (Union[Unset, datetime.date]):
|
|
210
288
|
project_uuid (Union[Unset, UUID]):
|
|
211
289
|
state (Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListStateItem]]):
|
|
212
290
|
username (Union[Unset, str]):
|
|
@@ -222,8 +300,13 @@ async def asyncio_detailed(
|
|
|
222
300
|
kwargs = _get_kwargs(
|
|
223
301
|
service_provider_uuid=service_provider_uuid,
|
|
224
302
|
email=email,
|
|
303
|
+
o=o,
|
|
225
304
|
page=page,
|
|
226
305
|
page_size=page_size,
|
|
306
|
+
project_end_date_after=project_end_date_after,
|
|
307
|
+
project_end_date_before=project_end_date_before,
|
|
308
|
+
project_start_date_after=project_start_date_after,
|
|
309
|
+
project_start_date_before=project_start_date_before,
|
|
227
310
|
project_uuid=project_uuid,
|
|
228
311
|
state=state,
|
|
229
312
|
username=username,
|
|
@@ -239,8 +322,13 @@ async def asyncio(
|
|
|
239
322
|
*,
|
|
240
323
|
client: AuthenticatedClient,
|
|
241
324
|
email: Union[Unset, str] = UNSET,
|
|
325
|
+
o: Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListOItem]] = UNSET,
|
|
242
326
|
page: Union[Unset, int] = UNSET,
|
|
243
327
|
page_size: Union[Unset, int] = UNSET,
|
|
328
|
+
project_end_date_after: Union[Unset, datetime.date] = UNSET,
|
|
329
|
+
project_end_date_before: Union[Unset, datetime.date] = UNSET,
|
|
330
|
+
project_start_date_after: Union[Unset, datetime.date] = UNSET,
|
|
331
|
+
project_start_date_before: Union[Unset, datetime.date] = UNSET,
|
|
244
332
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
245
333
|
state: Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListStateItem]] = UNSET,
|
|
246
334
|
username: Union[Unset, str] = UNSET,
|
|
@@ -256,8 +344,13 @@ async def asyncio(
|
|
|
256
344
|
Args:
|
|
257
345
|
service_provider_uuid (UUID):
|
|
258
346
|
email (Union[Unset, str]):
|
|
347
|
+
o (Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListOItem]]):
|
|
259
348
|
page (Union[Unset, int]):
|
|
260
349
|
page_size (Union[Unset, int]):
|
|
350
|
+
project_end_date_after (Union[Unset, datetime.date]):
|
|
351
|
+
project_end_date_before (Union[Unset, datetime.date]):
|
|
352
|
+
project_start_date_after (Union[Unset, datetime.date]):
|
|
353
|
+
project_start_date_before (Union[Unset, datetime.date]):
|
|
261
354
|
project_uuid (Union[Unset, UUID]):
|
|
262
355
|
state (Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListStateItem]]):
|
|
263
356
|
username (Union[Unset, str]):
|
|
@@ -275,8 +368,13 @@ async def asyncio(
|
|
|
275
368
|
service_provider_uuid=service_provider_uuid,
|
|
276
369
|
client=client,
|
|
277
370
|
email=email,
|
|
371
|
+
o=o,
|
|
278
372
|
page=page,
|
|
279
373
|
page_size=page_size,
|
|
374
|
+
project_end_date_after=project_end_date_after,
|
|
375
|
+
project_end_date_before=project_end_date_before,
|
|
376
|
+
project_start_date_after=project_start_date_after,
|
|
377
|
+
project_start_date_before=project_start_date_before,
|
|
280
378
|
project_uuid=project_uuid,
|
|
281
379
|
state=state,
|
|
282
380
|
username=username,
|
|
@@ -7,12 +7,18 @@ from ... import errors
|
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
8
|
from ...models.service_provider import ServiceProvider
|
|
9
9
|
from ...models.service_provider_request import ServiceProviderRequest
|
|
10
|
+
from ...models.service_provider_request_form import ServiceProviderRequestForm
|
|
11
|
+
from ...models.service_provider_request_multipart import ServiceProviderRequestMultipart
|
|
10
12
|
from ...types import Response
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
def _get_kwargs(
|
|
14
16
|
*,
|
|
15
|
-
body:
|
|
17
|
+
body: Union[
|
|
18
|
+
ServiceProviderRequest,
|
|
19
|
+
ServiceProviderRequestForm,
|
|
20
|
+
ServiceProviderRequestMultipart,
|
|
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/marketplace-service-providers/",
|
|
22
28
|
}
|
|
23
29
|
|
|
24
|
-
|
|
30
|
+
if isinstance(body, ServiceProviderRequest):
|
|
31
|
+
_kwargs["json"] = body.to_dict()
|
|
25
32
|
|
|
26
|
-
|
|
33
|
+
headers["Content-Type"] = "application/json"
|
|
34
|
+
if isinstance(body, ServiceProviderRequestForm):
|
|
35
|
+
_kwargs["data"] = body.to_dict()
|
|
36
|
+
|
|
37
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded"
|
|
38
|
+
if isinstance(body, ServiceProviderRequestMultipart):
|
|
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
|
+
ServiceProviderRequest,
|
|
69
|
+
ServiceProviderRequestForm,
|
|
70
|
+
ServiceProviderRequestMultipart,
|
|
71
|
+
],
|
|
55
72
|
) -> Response[ServiceProvider]:
|
|
56
73
|
"""
|
|
57
74
|
Args:
|
|
58
75
|
body (ServiceProviderRequest):
|
|
76
|
+
body (ServiceProviderRequestForm):
|
|
77
|
+
body (ServiceProviderRequestMultipart):
|
|
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
|
+
ServiceProviderRequest,
|
|
103
|
+
ServiceProviderRequestForm,
|
|
104
|
+
ServiceProviderRequestMultipart,
|
|
105
|
+
],
|
|
83
106
|
) -> ServiceProvider:
|
|
84
107
|
"""
|
|
85
108
|
Args:
|
|
86
109
|
body (ServiceProviderRequest):
|
|
110
|
+
body (ServiceProviderRequestForm):
|
|
111
|
+
body (ServiceProviderRequestMultipart):
|
|
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
|
+
ServiceProviderRequest,
|
|
132
|
+
ServiceProviderRequestForm,
|
|
133
|
+
ServiceProviderRequestMultipart,
|
|
134
|
+
],
|
|
106
135
|
) -> Response[ServiceProvider]:
|
|
107
136
|
"""
|
|
108
137
|
Args:
|
|
109
138
|
body (ServiceProviderRequest):
|
|
139
|
+
body (ServiceProviderRequestForm):
|
|
140
|
+
body (ServiceProviderRequestMultipart):
|
|
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
|
+
ServiceProviderRequest,
|
|
164
|
+
ServiceProviderRequestForm,
|
|
165
|
+
ServiceProviderRequestMultipart,
|
|
166
|
+
],
|
|
132
167
|
) -> ServiceProvider:
|
|
133
168
|
"""
|
|
134
169
|
Args:
|
|
135
170
|
body (ServiceProviderRequest):
|
|
171
|
+
body (ServiceProviderRequestForm):
|
|
172
|
+
body (ServiceProviderRequestMultipart):
|
|
136
173
|
|
|
137
174
|
Raises:
|
|
138
175
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_partial_update.py
CHANGED
|
@@ -7,6 +7,8 @@ import httpx
|
|
|
7
7
|
from ... import errors
|
|
8
8
|
from ...client import AuthenticatedClient, Client
|
|
9
9
|
from ...models.patched_service_provider_request import PatchedServiceProviderRequest
|
|
10
|
+
from ...models.patched_service_provider_request_form import PatchedServiceProviderRequestForm
|
|
11
|
+
from ...models.patched_service_provider_request_multipart import PatchedServiceProviderRequestMultipart
|
|
10
12
|
from ...models.service_provider import ServiceProvider
|
|
11
13
|
from ...types import Response
|
|
12
14
|
|
|
@@ -14,7 +16,11 @@ from ...types import Response
|
|
|
14
16
|
def _get_kwargs(
|
|
15
17
|
uuid: UUID,
|
|
16
18
|
*,
|
|
17
|
-
body:
|
|
19
|
+
body: Union[
|
|
20
|
+
PatchedServiceProviderRequest,
|
|
21
|
+
PatchedServiceProviderRequestForm,
|
|
22
|
+
PatchedServiceProviderRequestMultipart,
|
|
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/marketplace-service-providers/{uuid}/",
|
|
24
30
|
}
|
|
25
31
|
|
|
26
|
-
|
|
32
|
+
if isinstance(body, PatchedServiceProviderRequest):
|
|
33
|
+
_kwargs["json"] = body.to_dict()
|
|
27
34
|
|
|
28
|
-
|
|
35
|
+
headers["Content-Type"] = "application/json"
|
|
36
|
+
if isinstance(body, PatchedServiceProviderRequestForm):
|
|
37
|
+
_kwargs["data"] = body.to_dict()
|
|
38
|
+
|
|
39
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded"
|
|
40
|
+
if isinstance(body, PatchedServiceProviderRequestMultipart):
|
|
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
|
+
PatchedServiceProviderRequest,
|
|
72
|
+
PatchedServiceProviderRequestForm,
|
|
73
|
+
PatchedServiceProviderRequestMultipart,
|
|
74
|
+
],
|
|
58
75
|
) -> Response[ServiceProvider]:
|
|
59
76
|
"""
|
|
60
77
|
Args:
|
|
61
78
|
uuid (UUID):
|
|
62
79
|
body (PatchedServiceProviderRequest):
|
|
80
|
+
body (PatchedServiceProviderRequestForm):
|
|
81
|
+
body (PatchedServiceProviderRequestMultipart):
|
|
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
|
+
PatchedServiceProviderRequest,
|
|
109
|
+
PatchedServiceProviderRequestForm,
|
|
110
|
+
PatchedServiceProviderRequestMultipart,
|
|
111
|
+
],
|
|
89
112
|
) -> ServiceProvider:
|
|
90
113
|
"""
|
|
91
114
|
Args:
|
|
92
115
|
uuid (UUID):
|
|
93
116
|
body (PatchedServiceProviderRequest):
|
|
117
|
+
body (PatchedServiceProviderRequestForm):
|
|
118
|
+
body (PatchedServiceProviderRequestMultipart):
|
|
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
|
+
PatchedServiceProviderRequest,
|
|
141
|
+
PatchedServiceProviderRequestForm,
|
|
142
|
+
PatchedServiceProviderRequestMultipart,
|
|
143
|
+
],
|
|
115
144
|
) -> Response[ServiceProvider]:
|
|
116
145
|
"""
|
|
117
146
|
Args:
|
|
118
147
|
uuid (UUID):
|
|
119
148
|
body (PatchedServiceProviderRequest):
|
|
149
|
+
body (PatchedServiceProviderRequestForm):
|
|
150
|
+
body (PatchedServiceProviderRequestMultipart):
|
|
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
|
+
PatchedServiceProviderRequest,
|
|
176
|
+
PatchedServiceProviderRequestForm,
|
|
177
|
+
PatchedServiceProviderRequestMultipart,
|
|
178
|
+
],
|
|
144
179
|
) -> ServiceProvider:
|
|
145
180
|
"""
|
|
146
181
|
Args:
|
|
147
182
|
uuid (UUID):
|
|
148
183
|
body (PatchedServiceProviderRequest):
|
|
184
|
+
body (PatchedServiceProviderRequestForm):
|
|
185
|
+
body (PatchedServiceProviderRequestMultipart):
|
|
149
186
|
|
|
150
187
|
Raises:
|
|
151
188
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|