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
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.user_checklist_completion import UserChecklistCompletion
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
id: int,
|
|
14
|
+
) -> dict[str, Any]:
|
|
15
|
+
_kwargs: dict[str, Any] = {
|
|
16
|
+
"method": "get",
|
|
17
|
+
"url": f"/api/marketplace-offering-user-checklist-completions/{id}/",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return _kwargs
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> UserChecklistCompletion:
|
|
24
|
+
if response.status_code == 200:
|
|
25
|
+
response_200 = UserChecklistCompletion.from_dict(response.json())
|
|
26
|
+
|
|
27
|
+
return response_200
|
|
28
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def _build_response(
|
|
32
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
33
|
+
) -> Response[UserChecklistCompletion]:
|
|
34
|
+
return Response(
|
|
35
|
+
status_code=HTTPStatus(response.status_code),
|
|
36
|
+
content=response.content,
|
|
37
|
+
headers=response.headers,
|
|
38
|
+
parsed=_parse_response(client=client, response=response),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def sync_detailed(
|
|
43
|
+
id: int,
|
|
44
|
+
*,
|
|
45
|
+
client: AuthenticatedClient,
|
|
46
|
+
) -> Response[UserChecklistCompletion]:
|
|
47
|
+
"""
|
|
48
|
+
Args:
|
|
49
|
+
id (int):
|
|
50
|
+
|
|
51
|
+
Raises:
|
|
52
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
53
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
54
|
+
|
|
55
|
+
Returns:
|
|
56
|
+
Response[UserChecklistCompletion]
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
kwargs = _get_kwargs(
|
|
60
|
+
id=id,
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
response = client.get_httpx_client().request(
|
|
64
|
+
**kwargs,
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
return _build_response(client=client, response=response)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def sync(
|
|
71
|
+
id: int,
|
|
72
|
+
*,
|
|
73
|
+
client: AuthenticatedClient,
|
|
74
|
+
) -> UserChecklistCompletion:
|
|
75
|
+
"""
|
|
76
|
+
Args:
|
|
77
|
+
id (int):
|
|
78
|
+
|
|
79
|
+
Raises:
|
|
80
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
81
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
82
|
+
|
|
83
|
+
Returns:
|
|
84
|
+
UserChecklistCompletion
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
return sync_detailed(
|
|
88
|
+
id=id,
|
|
89
|
+
client=client,
|
|
90
|
+
).parsed
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
async def asyncio_detailed(
|
|
94
|
+
id: int,
|
|
95
|
+
*,
|
|
96
|
+
client: AuthenticatedClient,
|
|
97
|
+
) -> Response[UserChecklistCompletion]:
|
|
98
|
+
"""
|
|
99
|
+
Args:
|
|
100
|
+
id (int):
|
|
101
|
+
|
|
102
|
+
Raises:
|
|
103
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
104
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
105
|
+
|
|
106
|
+
Returns:
|
|
107
|
+
Response[UserChecklistCompletion]
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
kwargs = _get_kwargs(
|
|
111
|
+
id=id,
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
115
|
+
|
|
116
|
+
return _build_response(client=client, response=response)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
async def asyncio(
|
|
120
|
+
id: int,
|
|
121
|
+
*,
|
|
122
|
+
client: AuthenticatedClient,
|
|
123
|
+
) -> UserChecklistCompletion:
|
|
124
|
+
"""
|
|
125
|
+
Args:
|
|
126
|
+
id (int):
|
|
127
|
+
|
|
128
|
+
Raises:
|
|
129
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
130
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
131
|
+
|
|
132
|
+
Returns:
|
|
133
|
+
UserChecklistCompletion
|
|
134
|
+
"""
|
|
135
|
+
|
|
136
|
+
return (
|
|
137
|
+
await asyncio_detailed(
|
|
138
|
+
id=id,
|
|
139
|
+
client=client,
|
|
140
|
+
)
|
|
141
|
+
).parsed
|
|
@@ -8,13 +8,19 @@ from ... import errors
|
|
|
8
8
|
from ...client import AuthenticatedClient, Client
|
|
9
9
|
from ...models.order_attachment import OrderAttachment
|
|
10
10
|
from ...models.order_attachment_request import OrderAttachmentRequest
|
|
11
|
+
from ...models.order_attachment_request_form import OrderAttachmentRequestForm
|
|
12
|
+
from ...models.order_attachment_request_multipart import OrderAttachmentRequestMultipart
|
|
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
|
+
OrderAttachmentRequest,
|
|
21
|
+
OrderAttachmentRequestForm,
|
|
22
|
+
OrderAttachmentRequestMultipart,
|
|
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-orders/{uuid}/update_attachment/",
|
|
24
30
|
}
|
|
25
31
|
|
|
26
|
-
|
|
32
|
+
if isinstance(body, OrderAttachmentRequest):
|
|
33
|
+
_kwargs["json"] = body.to_dict()
|
|
27
34
|
|
|
28
|
-
|
|
35
|
+
headers["Content-Type"] = "application/json"
|
|
36
|
+
if isinstance(body, OrderAttachmentRequestForm):
|
|
37
|
+
_kwargs["data"] = body.to_dict()
|
|
38
|
+
|
|
39
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded"
|
|
40
|
+
if isinstance(body, OrderAttachmentRequestMultipart):
|
|
41
|
+
_kwargs["files"] = body.to_multipart()
|
|
29
42
|
|
|
30
43
|
_kwargs["headers"] = headers
|
|
31
44
|
return _kwargs
|
|
@@ -54,13 +67,19 @@ def sync_detailed(
|
|
|
54
67
|
uuid: UUID,
|
|
55
68
|
*,
|
|
56
69
|
client: AuthenticatedClient,
|
|
57
|
-
body:
|
|
70
|
+
body: Union[
|
|
71
|
+
OrderAttachmentRequest,
|
|
72
|
+
OrderAttachmentRequestForm,
|
|
73
|
+
OrderAttachmentRequestMultipart,
|
|
74
|
+
],
|
|
58
75
|
) -> Response[OrderAttachment]:
|
|
59
76
|
"""Update the attachment for a pending order.
|
|
60
77
|
|
|
61
78
|
Args:
|
|
62
79
|
uuid (UUID):
|
|
63
80
|
body (OrderAttachmentRequest):
|
|
81
|
+
body (OrderAttachmentRequestForm):
|
|
82
|
+
body (OrderAttachmentRequestMultipart):
|
|
64
83
|
|
|
65
84
|
Raises:
|
|
66
85
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -86,13 +105,19 @@ def sync(
|
|
|
86
105
|
uuid: UUID,
|
|
87
106
|
*,
|
|
88
107
|
client: AuthenticatedClient,
|
|
89
|
-
body:
|
|
108
|
+
body: Union[
|
|
109
|
+
OrderAttachmentRequest,
|
|
110
|
+
OrderAttachmentRequestForm,
|
|
111
|
+
OrderAttachmentRequestMultipart,
|
|
112
|
+
],
|
|
90
113
|
) -> OrderAttachment:
|
|
91
114
|
"""Update the attachment for a pending order.
|
|
92
115
|
|
|
93
116
|
Args:
|
|
94
117
|
uuid (UUID):
|
|
95
118
|
body (OrderAttachmentRequest):
|
|
119
|
+
body (OrderAttachmentRequestForm):
|
|
120
|
+
body (OrderAttachmentRequestMultipart):
|
|
96
121
|
|
|
97
122
|
Raises:
|
|
98
123
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -113,13 +138,19 @@ async def asyncio_detailed(
|
|
|
113
138
|
uuid: UUID,
|
|
114
139
|
*,
|
|
115
140
|
client: AuthenticatedClient,
|
|
116
|
-
body:
|
|
141
|
+
body: Union[
|
|
142
|
+
OrderAttachmentRequest,
|
|
143
|
+
OrderAttachmentRequestForm,
|
|
144
|
+
OrderAttachmentRequestMultipart,
|
|
145
|
+
],
|
|
117
146
|
) -> Response[OrderAttachment]:
|
|
118
147
|
"""Update the attachment for a pending order.
|
|
119
148
|
|
|
120
149
|
Args:
|
|
121
150
|
uuid (UUID):
|
|
122
151
|
body (OrderAttachmentRequest):
|
|
152
|
+
body (OrderAttachmentRequestForm):
|
|
153
|
+
body (OrderAttachmentRequestMultipart):
|
|
123
154
|
|
|
124
155
|
Raises:
|
|
125
156
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -143,13 +174,19 @@ async def asyncio(
|
|
|
143
174
|
uuid: UUID,
|
|
144
175
|
*,
|
|
145
176
|
client: AuthenticatedClient,
|
|
146
|
-
body:
|
|
177
|
+
body: Union[
|
|
178
|
+
OrderAttachmentRequest,
|
|
179
|
+
OrderAttachmentRequestForm,
|
|
180
|
+
OrderAttachmentRequestMultipart,
|
|
181
|
+
],
|
|
147
182
|
) -> OrderAttachment:
|
|
148
183
|
"""Update the attachment for a pending order.
|
|
149
184
|
|
|
150
185
|
Args:
|
|
151
186
|
uuid (UUID):
|
|
152
187
|
body (OrderAttachmentRequest):
|
|
188
|
+
body (OrderAttachmentRequestForm):
|
|
189
|
+
body (OrderAttachmentRequestMultipart):
|
|
153
190
|
|
|
154
191
|
Raises:
|
|
155
192
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_create.py
CHANGED
|
@@ -7,12 +7,18 @@ from ... import errors
|
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
8
|
from ...models.offering_create import OfferingCreate
|
|
9
9
|
from ...models.offering_create_request import OfferingCreateRequest
|
|
10
|
+
from ...models.offering_create_request_form import OfferingCreateRequestForm
|
|
11
|
+
from ...models.offering_create_request_multipart import OfferingCreateRequestMultipart
|
|
10
12
|
from ...types import Response
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
def _get_kwargs(
|
|
14
16
|
*,
|
|
15
|
-
body:
|
|
17
|
+
body: Union[
|
|
18
|
+
OfferingCreateRequest,
|
|
19
|
+
OfferingCreateRequestForm,
|
|
20
|
+
OfferingCreateRequestMultipart,
|
|
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-provider-offerings/",
|
|
22
28
|
}
|
|
23
29
|
|
|
24
|
-
|
|
30
|
+
if isinstance(body, OfferingCreateRequest):
|
|
31
|
+
_kwargs["json"] = body.to_dict()
|
|
25
32
|
|
|
26
|
-
|
|
33
|
+
headers["Content-Type"] = "application/json"
|
|
34
|
+
if isinstance(body, OfferingCreateRequestForm):
|
|
35
|
+
_kwargs["data"] = body.to_dict()
|
|
36
|
+
|
|
37
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded"
|
|
38
|
+
if isinstance(body, OfferingCreateRequestMultipart):
|
|
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
|
+
OfferingCreateRequest,
|
|
69
|
+
OfferingCreateRequestForm,
|
|
70
|
+
OfferingCreateRequestMultipart,
|
|
71
|
+
],
|
|
55
72
|
) -> Response[OfferingCreate]:
|
|
56
73
|
"""
|
|
57
74
|
Args:
|
|
58
75
|
body (OfferingCreateRequest):
|
|
76
|
+
body (OfferingCreateRequestForm):
|
|
77
|
+
body (OfferingCreateRequestMultipart):
|
|
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
|
+
OfferingCreateRequest,
|
|
103
|
+
OfferingCreateRequestForm,
|
|
104
|
+
OfferingCreateRequestMultipart,
|
|
105
|
+
],
|
|
83
106
|
) -> OfferingCreate:
|
|
84
107
|
"""
|
|
85
108
|
Args:
|
|
86
109
|
body (OfferingCreateRequest):
|
|
110
|
+
body (OfferingCreateRequestForm):
|
|
111
|
+
body (OfferingCreateRequestMultipart):
|
|
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
|
+
OfferingCreateRequest,
|
|
132
|
+
OfferingCreateRequestForm,
|
|
133
|
+
OfferingCreateRequestMultipart,
|
|
134
|
+
],
|
|
106
135
|
) -> Response[OfferingCreate]:
|
|
107
136
|
"""
|
|
108
137
|
Args:
|
|
109
138
|
body (OfferingCreateRequest):
|
|
139
|
+
body (OfferingCreateRequestForm):
|
|
140
|
+
body (OfferingCreateRequestMultipart):
|
|
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
|
+
OfferingCreateRequest,
|
|
164
|
+
OfferingCreateRequestForm,
|
|
165
|
+
OfferingCreateRequestMultipart,
|
|
166
|
+
],
|
|
132
167
|
) -> OfferingCreate:
|
|
133
168
|
"""
|
|
134
169
|
Args:
|
|
135
170
|
body (OfferingCreateRequest):
|
|
171
|
+
body (OfferingCreateRequestForm):
|
|
172
|
+
body (OfferingCreateRequestMultipart):
|
|
136
173
|
|
|
137
174
|
Raises:
|
|
138
175
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Union
|
|
3
|
+
from uuid import UUID
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.marketplace_provider_offerings_list_course_accounts_retrieve_field_item import (
|
|
10
|
+
MarketplaceProviderOfferingsListCourseAccountsRetrieveFieldItem,
|
|
11
|
+
)
|
|
12
|
+
from ...models.provider_offering_details import ProviderOfferingDetails
|
|
13
|
+
from ...types import UNSET, Response, Unset
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def _get_kwargs(
|
|
17
|
+
uuid: UUID,
|
|
18
|
+
*,
|
|
19
|
+
field: Union[Unset, list[MarketplaceProviderOfferingsListCourseAccountsRetrieveFieldItem]] = UNSET,
|
|
20
|
+
) -> dict[str, Any]:
|
|
21
|
+
params: dict[str, Any] = {}
|
|
22
|
+
|
|
23
|
+
json_field: Union[Unset, list[str]] = UNSET
|
|
24
|
+
if not isinstance(field, Unset):
|
|
25
|
+
json_field = []
|
|
26
|
+
for field_item_data in field:
|
|
27
|
+
field_item = field_item_data.value
|
|
28
|
+
json_field.append(field_item)
|
|
29
|
+
|
|
30
|
+
params["field"] = json_field
|
|
31
|
+
|
|
32
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
33
|
+
|
|
34
|
+
_kwargs: dict[str, Any] = {
|
|
35
|
+
"method": "get",
|
|
36
|
+
"url": f"/api/marketplace-provider-offerings/{uuid}/list_course_accounts/",
|
|
37
|
+
"params": params,
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return _kwargs
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> ProviderOfferingDetails:
|
|
44
|
+
if response.status_code == 200:
|
|
45
|
+
response_200 = ProviderOfferingDetails.from_dict(response.json())
|
|
46
|
+
|
|
47
|
+
return response_200
|
|
48
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def _build_response(
|
|
52
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
53
|
+
) -> Response[ProviderOfferingDetails]:
|
|
54
|
+
return Response(
|
|
55
|
+
status_code=HTTPStatus(response.status_code),
|
|
56
|
+
content=response.content,
|
|
57
|
+
headers=response.headers,
|
|
58
|
+
parsed=_parse_response(client=client, response=response),
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def sync_detailed(
|
|
63
|
+
uuid: UUID,
|
|
64
|
+
*,
|
|
65
|
+
client: AuthenticatedClient,
|
|
66
|
+
field: Union[Unset, list[MarketplaceProviderOfferingsListCourseAccountsRetrieveFieldItem]] = UNSET,
|
|
67
|
+
) -> Response[ProviderOfferingDetails]:
|
|
68
|
+
"""
|
|
69
|
+
Args:
|
|
70
|
+
uuid (UUID):
|
|
71
|
+
field (Union[Unset,
|
|
72
|
+
list[MarketplaceProviderOfferingsListCourseAccountsRetrieveFieldItem]]):
|
|
73
|
+
|
|
74
|
+
Raises:
|
|
75
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
76
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
77
|
+
|
|
78
|
+
Returns:
|
|
79
|
+
Response[ProviderOfferingDetails]
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
kwargs = _get_kwargs(
|
|
83
|
+
uuid=uuid,
|
|
84
|
+
field=field,
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
response = client.get_httpx_client().request(
|
|
88
|
+
**kwargs,
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
return _build_response(client=client, response=response)
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
def sync(
|
|
95
|
+
uuid: UUID,
|
|
96
|
+
*,
|
|
97
|
+
client: AuthenticatedClient,
|
|
98
|
+
field: Union[Unset, list[MarketplaceProviderOfferingsListCourseAccountsRetrieveFieldItem]] = UNSET,
|
|
99
|
+
) -> ProviderOfferingDetails:
|
|
100
|
+
"""
|
|
101
|
+
Args:
|
|
102
|
+
uuid (UUID):
|
|
103
|
+
field (Union[Unset,
|
|
104
|
+
list[MarketplaceProviderOfferingsListCourseAccountsRetrieveFieldItem]]):
|
|
105
|
+
|
|
106
|
+
Raises:
|
|
107
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
108
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
109
|
+
|
|
110
|
+
Returns:
|
|
111
|
+
ProviderOfferingDetails
|
|
112
|
+
"""
|
|
113
|
+
|
|
114
|
+
return sync_detailed(
|
|
115
|
+
uuid=uuid,
|
|
116
|
+
client=client,
|
|
117
|
+
field=field,
|
|
118
|
+
).parsed
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
async def asyncio_detailed(
|
|
122
|
+
uuid: UUID,
|
|
123
|
+
*,
|
|
124
|
+
client: AuthenticatedClient,
|
|
125
|
+
field: Union[Unset, list[MarketplaceProviderOfferingsListCourseAccountsRetrieveFieldItem]] = UNSET,
|
|
126
|
+
) -> Response[ProviderOfferingDetails]:
|
|
127
|
+
"""
|
|
128
|
+
Args:
|
|
129
|
+
uuid (UUID):
|
|
130
|
+
field (Union[Unset,
|
|
131
|
+
list[MarketplaceProviderOfferingsListCourseAccountsRetrieveFieldItem]]):
|
|
132
|
+
|
|
133
|
+
Raises:
|
|
134
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
135
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
136
|
+
|
|
137
|
+
Returns:
|
|
138
|
+
Response[ProviderOfferingDetails]
|
|
139
|
+
"""
|
|
140
|
+
|
|
141
|
+
kwargs = _get_kwargs(
|
|
142
|
+
uuid=uuid,
|
|
143
|
+
field=field,
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
147
|
+
|
|
148
|
+
return _build_response(client=client, response=response)
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
async def asyncio(
|
|
152
|
+
uuid: UUID,
|
|
153
|
+
*,
|
|
154
|
+
client: AuthenticatedClient,
|
|
155
|
+
field: Union[Unset, list[MarketplaceProviderOfferingsListCourseAccountsRetrieveFieldItem]] = UNSET,
|
|
156
|
+
) -> ProviderOfferingDetails:
|
|
157
|
+
"""
|
|
158
|
+
Args:
|
|
159
|
+
uuid (UUID):
|
|
160
|
+
field (Union[Unset,
|
|
161
|
+
list[MarketplaceProviderOfferingsListCourseAccountsRetrieveFieldItem]]):
|
|
162
|
+
|
|
163
|
+
Raises:
|
|
164
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
165
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
166
|
+
|
|
167
|
+
Returns:
|
|
168
|
+
ProviderOfferingDetails
|
|
169
|
+
"""
|
|
170
|
+
|
|
171
|
+
return (
|
|
172
|
+
await asyncio_detailed(
|
|
173
|
+
uuid=uuid,
|
|
174
|
+
client=client,
|
|
175
|
+
field=field,
|
|
176
|
+
)
|
|
177
|
+
).parsed
|
|
@@ -6,28 +6,18 @@ import httpx
|
|
|
6
6
|
|
|
7
7
|
from ... import errors
|
|
8
8
|
from ...client import AuthenticatedClient, Client
|
|
9
|
-
from ...models.provider_offering_details_request import ProviderOfferingDetailsRequest
|
|
10
9
|
from ...models.resource_response_status import ResourceResponseStatus
|
|
11
10
|
from ...types import Response
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
def _get_kwargs(
|
|
15
14
|
uuid: UUID,
|
|
16
|
-
*,
|
|
17
|
-
body: ProviderOfferingDetailsRequest,
|
|
18
15
|
) -> dict[str, Any]:
|
|
19
|
-
headers: dict[str, Any] = {}
|
|
20
|
-
|
|
21
16
|
_kwargs: dict[str, Any] = {
|
|
22
17
|
"method": "post",
|
|
23
18
|
"url": f"/api/marketplace-provider-offerings/{uuid}/refresh_offering_usernames/",
|
|
24
19
|
}
|
|
25
20
|
|
|
26
|
-
_kwargs["json"] = body.to_dict()
|
|
27
|
-
|
|
28
|
-
headers["Content-Type"] = "application/json"
|
|
29
|
-
|
|
30
|
-
_kwargs["headers"] = headers
|
|
31
21
|
return _kwargs
|
|
32
22
|
|
|
33
23
|
|
|
@@ -54,13 +44,11 @@ def sync_detailed(
|
|
|
54
44
|
uuid: UUID,
|
|
55
45
|
*,
|
|
56
46
|
client: AuthenticatedClient,
|
|
57
|
-
body: ProviderOfferingDetailsRequest,
|
|
58
47
|
) -> Response[ResourceResponseStatus]:
|
|
59
48
|
"""Refresh offering user usernames.
|
|
60
49
|
|
|
61
50
|
Args:
|
|
62
51
|
uuid (UUID):
|
|
63
|
-
body (ProviderOfferingDetailsRequest):
|
|
64
52
|
|
|
65
53
|
Raises:
|
|
66
54
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -72,7 +60,6 @@ def sync_detailed(
|
|
|
72
60
|
|
|
73
61
|
kwargs = _get_kwargs(
|
|
74
62
|
uuid=uuid,
|
|
75
|
-
body=body,
|
|
76
63
|
)
|
|
77
64
|
|
|
78
65
|
response = client.get_httpx_client().request(
|
|
@@ -86,13 +73,11 @@ def sync(
|
|
|
86
73
|
uuid: UUID,
|
|
87
74
|
*,
|
|
88
75
|
client: AuthenticatedClient,
|
|
89
|
-
body: ProviderOfferingDetailsRequest,
|
|
90
76
|
) -> ResourceResponseStatus:
|
|
91
77
|
"""Refresh offering user usernames.
|
|
92
78
|
|
|
93
79
|
Args:
|
|
94
80
|
uuid (UUID):
|
|
95
|
-
body (ProviderOfferingDetailsRequest):
|
|
96
81
|
|
|
97
82
|
Raises:
|
|
98
83
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -105,7 +90,6 @@ def sync(
|
|
|
105
90
|
return sync_detailed(
|
|
106
91
|
uuid=uuid,
|
|
107
92
|
client=client,
|
|
108
|
-
body=body,
|
|
109
93
|
).parsed
|
|
110
94
|
|
|
111
95
|
|
|
@@ -113,13 +97,11 @@ async def asyncio_detailed(
|
|
|
113
97
|
uuid: UUID,
|
|
114
98
|
*,
|
|
115
99
|
client: AuthenticatedClient,
|
|
116
|
-
body: ProviderOfferingDetailsRequest,
|
|
117
100
|
) -> Response[ResourceResponseStatus]:
|
|
118
101
|
"""Refresh offering user usernames.
|
|
119
102
|
|
|
120
103
|
Args:
|
|
121
104
|
uuid (UUID):
|
|
122
|
-
body (ProviderOfferingDetailsRequest):
|
|
123
105
|
|
|
124
106
|
Raises:
|
|
125
107
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -131,7 +113,6 @@ async def asyncio_detailed(
|
|
|
131
113
|
|
|
132
114
|
kwargs = _get_kwargs(
|
|
133
115
|
uuid=uuid,
|
|
134
|
-
body=body,
|
|
135
116
|
)
|
|
136
117
|
|
|
137
118
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -143,13 +124,11 @@ async def asyncio(
|
|
|
143
124
|
uuid: UUID,
|
|
144
125
|
*,
|
|
145
126
|
client: AuthenticatedClient,
|
|
146
|
-
body: ProviderOfferingDetailsRequest,
|
|
147
127
|
) -> ResourceResponseStatus:
|
|
148
128
|
"""Refresh offering user usernames.
|
|
149
129
|
|
|
150
130
|
Args:
|
|
151
131
|
uuid (UUID):
|
|
152
|
-
body (ProviderOfferingDetailsRequest):
|
|
153
132
|
|
|
154
133
|
Raises:
|
|
155
134
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -163,6 +142,5 @@ async def asyncio(
|
|
|
163
142
|
await asyncio_detailed(
|
|
164
143
|
uuid=uuid,
|
|
165
144
|
client=client,
|
|
166
|
-
body=body,
|
|
167
145
|
)
|
|
168
146
|
).parsed
|