waldur-api-client 7.7.5__py3-none-any.whl → 7.7.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of waldur-api-client might be problematic. Click here for more details.
- waldur_api_client/api/booking_resources/booking_resources_count.py +34 -11
- waldur_api_client/api/booking_resources/booking_resources_list.py +34 -11
- waldur_api_client/api/customers/customers_project_metadata_compliance_details_list.py +189 -0
- waldur_api_client/api/customers/customers_project_metadata_compliance_overview_list.py +189 -0
- waldur_api_client/api/customers/customers_project_metadata_compliance_projects_list.py +187 -0
- waldur_api_client/api/customers/customers_project_metadata_question_answers_list.py +187 -0
- waldur_api_client/api/marketplace_integration_statuses/marketplace_integration_statuses_count.py +34 -11
- waldur_api_client/api/marketplace_integration_statuses/marketplace_integration_statuses_list.py +34 -11
- waldur_api_client/api/marketplace_offering_files/marketplace_offering_files_count.py +34 -11
- waldur_api_client/api/marketplace_offering_files/marketplace_offering_files_list.py +34 -11
- waldur_api_client/api/marketplace_offering_terms_of_service/__init__.py +1 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_count.py +274 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_create.py +152 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_destroy.py +89 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_list.py +277 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_partial_update.py +164 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_retrieve.py +142 -0
- waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_update.py +164 -0
- waldur_api_client/api/marketplace_offering_user_roles/marketplace_offering_user_roles_count.py +34 -11
- waldur_api_client/api/marketplace_offering_user_roles/marketplace_offering_user_roles_list.py +34 -11
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_checklist_retrieve.py +154 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_checklist_review_retrieve.py +154 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_completion_review_status_retrieve.py +154 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_completion_status_retrieve.py +154 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_count.py +34 -11
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_list.py +34 -11
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_submit_answers.py +179 -0
- waldur_api_client/api/marketplace_orders/marketplace_orders_count.py +19 -0
- waldur_api_client/api/marketplace_orders/marketplace_orders_list.py +19 -0
- waldur_api_client/api/marketplace_plans/marketplace_plans_count.py +19 -0
- waldur_api_client/api/marketplace_plans/marketplace_plans_list.py +19 -0
- waldur_api_client/api/marketplace_plans/marketplace_plans_usage_stats_count.py +19 -0
- waldur_api_client/api/marketplace_plans/marketplace_plans_usage_stats_list.py +19 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_count.py +34 -11
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +34 -11
- waldur_api_client/api/marketplace_resources/marketplace_resources_count.py +34 -11
- waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +34 -11
- waldur_api_client/api/marketplace_robot_accounts/marketplace_robot_accounts_list.py +23 -0
- waldur_api_client/api/marketplace_robot_accounts/marketplace_robot_accounts_retrieve.py +30 -1
- waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_count.py +34 -11
- waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_list.py +34 -11
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_project_service_accounts_list.py +276 -0
- waldur_api_client/api/marketplace_service_providers/service_provider_compliance_overview.py +189 -0
- waldur_api_client/api/marketplace_service_providers/service_provider_offering_users_compliance.py +222 -0
- waldur_api_client/api/marketplace_user_offering_consents/__init__.py +1 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_count.py +307 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_create.py +152 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_destroy.py +89 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_list.py +310 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_partial_update.py +164 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_retrieve.py +142 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_revoke.py +146 -0
- waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_update.py +164 -0
- waldur_api_client/api/public_maintenance_announcements/__init__.py +1 -0
- waldur_api_client/api/public_maintenance_announcements/public_maintenance_announcements_count.py +325 -0
- waldur_api_client/api/public_maintenance_announcements/public_maintenance_announcements_list.py +328 -0
- waldur_api_client/api/public_maintenance_announcements/public_maintenance_announcements_retrieve.py +144 -0
- waldur_api_client/api/remote_waldur_api/remote_waldur_api_remote_resource_order_status_retrieve.py +145 -0
- waldur_api_client/api/remote_waldur_api/remote_waldur_api_remote_resource_status_retrieve.py +147 -0
- waldur_api_client/api/remote_waldur_api/remote_waldur_api_remote_resource_team_status_list.py +188 -0
- waldur_api_client/models/__init__.py +118 -4
- waldur_api_client/models/admin_announcement.py +109 -1
- waldur_api_client/models/admin_announcement_maintenance_affected_offerings_item.py +103 -0
- waldur_api_client/models/admin_announcements_list_field_item.py +8 -0
- waldur_api_client/models/admin_announcements_retrieve_field_item.py +8 -0
- waldur_api_client/models/azure_sql_server_create_order_attributes.py +83 -0
- waldur_api_client/models/azure_virtual_machine_create_order_attributes.py +99 -0
- waldur_api_client/models/basic_user.py +30 -21
- waldur_api_client/models/booking_offerings_list_field_item.py +1 -2
- waldur_api_client/models/booking_offerings_retrieve_field_item.py +1 -2
- waldur_api_client/models/booking_resource.py +10 -9
- waldur_api_client/models/booking_resources_list_field_item.py +1 -1
- waldur_api_client/models/booking_resources_retrieve_field_item.py +1 -1
- waldur_api_client/models/checklist_info.py +76 -0
- waldur_api_client/models/compliance_overview.py +91 -0
- waldur_api_client/models/create_router.py +1 -1
- waldur_api_client/models/create_router_request.py +1 -1
- waldur_api_client/models/customer.py +51 -0
- waldur_api_client/models/customers_list_field_item.py +2 -0
- waldur_api_client/models/customers_retrieve_field_item.py +2 -0
- waldur_api_client/models/fingerprint.py +19 -17
- waldur_api_client/models/generic_order_attributes.py +69 -0
- waldur_api_client/models/google_auth_authorize_retrieve_field_item.py +1 -0
- waldur_api_client/models/google_auth_list_field_item.py +1 -0
- waldur_api_client/models/google_auth_retrieve_field_item.py +1 -0
- waldur_api_client/models/google_credentials.py +9 -0
- waldur_api_client/models/group_invitation.py +24 -0
- waldur_api_client/models/group_invitation_request.py +10 -0
- waldur_api_client/models/instance_flavor_change_request.py +1 -1
- waldur_api_client/models/maintenance_announcement.py +8 -0
- waldur_api_client/models/marketplace_managed_rancher_create_order_attributes.py +144 -0
- waldur_api_client/models/marketplace_offering_terms_of_service_count_o_item.py +13 -0
- waldur_api_client/models/marketplace_offering_terms_of_service_list_o_item.py +13 -0
- waldur_api_client/models/marketplace_orders_list_field_item.py +1 -1
- waldur_api_client/models/marketplace_orders_retrieve_field_item.py +1 -1
- waldur_api_client/models/marketplace_provider_offerings_list_customer_service_accounts_retrieve_field_item.py +1 -2
- waldur_api_client/models/marketplace_provider_offerings_list_field_item.py +1 -2
- waldur_api_client/models/marketplace_provider_offerings_list_project_service_accounts_retrieve_field_item.py +1 -2
- waldur_api_client/models/marketplace_provider_offerings_retrieve_field_item.py +1 -2
- waldur_api_client/models/marketplace_provider_offerings_stats_retrieve_field_item.py +1 -2
- waldur_api_client/models/marketplace_provider_offerings_user_has_resource_access_retrieve_field_item.py +1 -2
- waldur_api_client/models/marketplace_provider_resources_details_retrieve_field_item.py +1 -1
- waldur_api_client/models/marketplace_provider_resources_list_field_item.py +1 -1
- waldur_api_client/models/marketplace_provider_resources_retrieve_field_item.py +1 -1
- waldur_api_client/models/marketplace_public_offerings_list_field_item.py +1 -2
- waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +1 -2
- waldur_api_client/models/marketplace_rancher_create_order_attributes.py +145 -0
- waldur_api_client/models/marketplace_resources_details_retrieve_field_item.py +1 -1
- waldur_api_client/models/marketplace_resources_list_field_item.py +1 -1
- waldur_api_client/models/marketplace_resources_retrieve_field_item.py +1 -1
- waldur_api_client/models/marketplace_robot_accounts_list_field_item.py +32 -0
- waldur_api_client/models/marketplace_robot_accounts_retrieve_field_item.py +32 -0
- waldur_api_client/models/marketplace_service_providers_list_field_item.py +1 -0
- waldur_api_client/models/marketplace_service_providers_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_user_offering_consents_count_o_item.py +15 -0
- waldur_api_client/models/marketplace_user_offering_consents_list_o_item.py +15 -0
- waldur_api_client/models/offering.py +9 -18
- waldur_api_client/models/offering_create.py +8 -18
- waldur_api_client/models/offering_create_request.py +0 -18
- waldur_api_client/models/offering_overview_update_request.py +0 -18
- waldur_api_client/models/offering_terms_of_service.py +142 -0
- waldur_api_client/models/offering_terms_of_service_create.py +107 -0
- waldur_api_client/models/offering_terms_of_service_create_request.py +107 -0
- waldur_api_client/models/offering_terms_of_service_request.py +96 -0
- waldur_api_client/models/open_stack_backend_instance.py +2 -2
- waldur_api_client/models/open_stack_backend_volumes.py +3 -3
- waldur_api_client/models/open_stack_backup.py +1 -1
- waldur_api_client/models/open_stack_backup_restoration.py +8 -5
- waldur_api_client/models/open_stack_backup_restoration_request.py +28 -3
- waldur_api_client/models/open_stack_fixed_ip.py +2 -2
- waldur_api_client/models/open_stack_fixed_ip_request.py +2 -2
- waldur_api_client/models/open_stack_floating_ip.py +5 -4
- waldur_api_client/models/open_stack_instance.py +17 -15
- waldur_api_client/models/open_stack_instance_allowed_address_pairs_update_request.py +3 -2
- waldur_api_client/models/open_stack_instance_availability_zone.py +1 -1
- waldur_api_client/models/open_stack_instance_create_order_attributes.py +283 -0
- waldur_api_client/models/open_stack_instance_request.py +4 -3
- waldur_api_client/models/open_stack_instance_security_groups_update_request.py +1 -1
- waldur_api_client/models/open_stack_nested_floating_ip.py +3 -3
- waldur_api_client/models/open_stack_nested_instance.py +1 -1
- waldur_api_client/models/open_stack_nested_port.py +5 -5
- waldur_api_client/models/open_stack_nested_port_request.py +1 -1
- waldur_api_client/models/open_stack_nested_security_group.py +16 -16
- waldur_api_client/models/open_stack_nested_security_group_request.py +59 -0
- waldur_api_client/models/{nested_security_group_rule_request.py → open_stack_nested_security_group_rules_item.py} +73 -63
- waldur_api_client/models/open_stack_nested_sub_net.py +4 -4
- waldur_api_client/models/open_stack_nested_sub_net_request.py +4 -4
- waldur_api_client/models/open_stack_nested_volume.py +3 -3
- waldur_api_client/models/open_stack_nested_volume_request.py +3 -3
- waldur_api_client/models/open_stack_network.py +23 -3
- waldur_api_client/models/open_stack_port.py +10 -9
- waldur_api_client/models/open_stack_port_ip_update_request.py +2 -2
- waldur_api_client/models/open_stack_port_request.py +3 -3
- waldur_api_client/models/open_stack_router.py +2 -2
- waldur_api_client/models/open_stack_router_interface_request.py +4 -2
- waldur_api_client/models/open_stack_security_group_rule_create.py +6 -5
- waldur_api_client/models/open_stack_security_group_rule_create_request.py +6 -5
- waldur_api_client/models/open_stack_security_group_rule_update_request.py +10 -9
- waldur_api_client/models/open_stack_server_group.py +2 -1
- waldur_api_client/models/open_stack_server_group_request.py +2 -1
- waldur_api_client/models/open_stack_snapshot.py +2 -2
- waldur_api_client/models/open_stack_snapshot_restoration.py +1 -1
- waldur_api_client/models/open_stack_sub_net.py +5 -5
- waldur_api_client/models/open_stack_sub_net_request.py +2 -2
- waldur_api_client/models/open_stack_tenant.py +41 -3
- waldur_api_client/models/open_stack_tenant_create_order_attributes.py +130 -0
- waldur_api_client/models/open_stack_volume.py +9 -9
- waldur_api_client/models/open_stack_volume_create_order_attributes.py +155 -0
- waldur_api_client/models/open_stack_volume_request.py +1 -1
- waldur_api_client/models/openstack_networks_list_field_item.py +1 -0
- waldur_api_client/models/openstack_networks_retrieve_field_item.py +1 -0
- waldur_api_client/models/openstack_tenants_list_field_item.py +3 -0
- waldur_api_client/models/openstack_tenants_retrieve_field_item.py +3 -0
- waldur_api_client/models/order_create.py +0 -8
- waldur_api_client/models/order_create_request.py +181 -4
- waldur_api_client/models/order_details.py +0 -9
- waldur_api_client/models/patched_offering_terms_of_service_request.py +96 -0
- waldur_api_client/models/patched_open_stack_instance_request.py +4 -3
- waldur_api_client/models/patched_open_stack_server_group_request.py +2 -1
- waldur_api_client/models/patched_open_stack_sub_net_request.py +2 -2
- waldur_api_client/models/patched_open_stack_volume_request.py +1 -1
- waldur_api_client/models/patched_user_offering_consent_request.py +59 -0
- waldur_api_client/models/permission_project.py +147 -0
- waldur_api_client/models/permission_request.py +2 -2
- waldur_api_client/models/project_answer.py +122 -0
- waldur_api_client/models/project_detail.py +133 -0
- waldur_api_client/models/project_details_response.py +115 -0
- waldur_api_client/models/provider_offering_details.py +9 -18
- waldur_api_client/models/provider_offering_details_request.py +0 -18
- waldur_api_client/models/public_maintenance_announcement.py +217 -0
- waldur_api_client/models/public_maintenance_announcement_state_enum.py +10 -0
- waldur_api_client/models/public_maintenance_announcements_count_o_item.py +15 -0
- waldur_api_client/models/public_maintenance_announcements_count_state_item.py +12 -0
- waldur_api_client/models/public_maintenance_announcements_list_o_item.py +15 -0
- waldur_api_client/models/public_maintenance_announcements_list_state_item.py +12 -0
- waldur_api_client/models/public_offering_details.py +9 -18
- waldur_api_client/models/question_answer.py +176 -0
- waldur_api_client/models/question_answer_project_answers_item.py +44 -0
- waldur_api_client/models/question_answer_question_options_item.py +44 -0
- waldur_api_client/models/rancher_cluster_security_group_rule.py +5 -4
- waldur_api_client/models/rancher_cluster_security_group_rule_request.py +5 -4
- waldur_api_client/models/remote_project_update_request.py +2 -2
- waldur_api_client/models/remote_resource_order.py +88 -0
- waldur_api_client/models/remote_resource_order_remote_state_enum.py +15 -0
- waldur_api_client/models/remote_resource_sync_status.py +123 -0
- waldur_api_client/models/remote_resource_sync_status_remote_state_enum.py +13 -0
- waldur_api_client/models/remote_resource_team_member.py +85 -0
- waldur_api_client/models/resource.py +10 -9
- waldur_api_client/models/robot_account_details.py +226 -144
- waldur_api_client/models/service_provider.py +9 -0
- waldur_api_client/models/service_provider_compliance_overview.py +122 -0
- waldur_api_client/models/service_provider_offering_user_compliance.py +179 -0
- waldur_api_client/models/service_provider_offering_user_compliance_state_enum.py +17 -0
- waldur_api_client/models/slurm_invoices_slurm_package_create_order_attributes.py +75 -0
- waldur_api_client/models/sync_status_enum.py +10 -0
- waldur_api_client/models/user_offering_consent.py +202 -0
- waldur_api_client/models/user_offering_consent_create.py +60 -0
- waldur_api_client/models/user_offering_consent_create_request.py +60 -0
- waldur_api_client/models/user_offering_consent_request.py +59 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes.py +228 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes_guest_os_type_1.py +155 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes_guest_os_type_2_type_1.py +155 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes_guest_os_type_3_type_1.py +155 -0
- waldur_api_client/models/volume_attach_request.py +1 -1
- {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.7.dist-info}/METADATA +1 -1
- {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.7.dist-info}/RECORD +228 -138
- waldur_api_client/models/nested_security_group_rule.py +0 -222
- {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.7.dist-info}/LICENSE +0 -0
- {waldur_api_client-7.7.5.dist-info → waldur_api_client-7.7.7.dist-info}/WHEEL +0 -0
waldur_api_client/api/public_maintenance_announcements/public_maintenance_announcements_list.py
ADDED
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from http import HTTPStatus
|
|
3
|
+
from typing import Any, Union
|
|
4
|
+
from uuid import UUID
|
|
5
|
+
|
|
6
|
+
import httpx
|
|
7
|
+
|
|
8
|
+
from ... import errors
|
|
9
|
+
from ...client import AuthenticatedClient, Client
|
|
10
|
+
from ...models.public_maintenance_announcement import PublicMaintenanceAnnouncement
|
|
11
|
+
from ...models.public_maintenance_announcements_list_o_item import PublicMaintenanceAnnouncementsListOItem
|
|
12
|
+
from ...models.public_maintenance_announcements_list_state_item import PublicMaintenanceAnnouncementsListStateItem
|
|
13
|
+
from ...types import UNSET, Response, Unset
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def _get_kwargs(
|
|
17
|
+
*,
|
|
18
|
+
maintenance_type: Union[Unset, int] = UNSET,
|
|
19
|
+
o: Union[Unset, list[PublicMaintenanceAnnouncementsListOItem]] = UNSET,
|
|
20
|
+
page: Union[Unset, int] = UNSET,
|
|
21
|
+
page_size: Union[Unset, int] = UNSET,
|
|
22
|
+
scheduled_end_after: Union[Unset, datetime.datetime] = UNSET,
|
|
23
|
+
scheduled_end_before: Union[Unset, datetime.datetime] = UNSET,
|
|
24
|
+
scheduled_start_after: Union[Unset, datetime.datetime] = UNSET,
|
|
25
|
+
scheduled_start_before: Union[Unset, datetime.datetime] = UNSET,
|
|
26
|
+
service_provider_uuid: Union[Unset, UUID] = UNSET,
|
|
27
|
+
state: Union[Unset, list[PublicMaintenanceAnnouncementsListStateItem]] = UNSET,
|
|
28
|
+
) -> dict[str, Any]:
|
|
29
|
+
params: dict[str, Any] = {}
|
|
30
|
+
|
|
31
|
+
params["maintenance_type"] = maintenance_type
|
|
32
|
+
|
|
33
|
+
json_o: Union[Unset, list[str]] = UNSET
|
|
34
|
+
if not isinstance(o, Unset):
|
|
35
|
+
json_o = []
|
|
36
|
+
for o_item_data in o:
|
|
37
|
+
o_item = o_item_data.value
|
|
38
|
+
json_o.append(o_item)
|
|
39
|
+
|
|
40
|
+
params["o"] = json_o
|
|
41
|
+
|
|
42
|
+
params["page"] = page
|
|
43
|
+
|
|
44
|
+
params["page_size"] = page_size
|
|
45
|
+
|
|
46
|
+
json_scheduled_end_after: Union[Unset, str] = UNSET
|
|
47
|
+
if not isinstance(scheduled_end_after, Unset):
|
|
48
|
+
json_scheduled_end_after = scheduled_end_after.isoformat()
|
|
49
|
+
params["scheduled_end_after"] = json_scheduled_end_after
|
|
50
|
+
|
|
51
|
+
json_scheduled_end_before: Union[Unset, str] = UNSET
|
|
52
|
+
if not isinstance(scheduled_end_before, Unset):
|
|
53
|
+
json_scheduled_end_before = scheduled_end_before.isoformat()
|
|
54
|
+
params["scheduled_end_before"] = json_scheduled_end_before
|
|
55
|
+
|
|
56
|
+
json_scheduled_start_after: Union[Unset, str] = UNSET
|
|
57
|
+
if not isinstance(scheduled_start_after, Unset):
|
|
58
|
+
json_scheduled_start_after = scheduled_start_after.isoformat()
|
|
59
|
+
params["scheduled_start_after"] = json_scheduled_start_after
|
|
60
|
+
|
|
61
|
+
json_scheduled_start_before: Union[Unset, str] = UNSET
|
|
62
|
+
if not isinstance(scheduled_start_before, Unset):
|
|
63
|
+
json_scheduled_start_before = scheduled_start_before.isoformat()
|
|
64
|
+
params["scheduled_start_before"] = json_scheduled_start_before
|
|
65
|
+
|
|
66
|
+
json_service_provider_uuid: Union[Unset, str] = UNSET
|
|
67
|
+
if not isinstance(service_provider_uuid, Unset):
|
|
68
|
+
json_service_provider_uuid = str(service_provider_uuid)
|
|
69
|
+
params["service_provider_uuid"] = json_service_provider_uuid
|
|
70
|
+
|
|
71
|
+
json_state: Union[Unset, list[str]] = UNSET
|
|
72
|
+
if not isinstance(state, Unset):
|
|
73
|
+
json_state = []
|
|
74
|
+
for state_item_data in state:
|
|
75
|
+
state_item = state_item_data.value
|
|
76
|
+
json_state.append(state_item)
|
|
77
|
+
|
|
78
|
+
params["state"] = json_state
|
|
79
|
+
|
|
80
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
81
|
+
|
|
82
|
+
_kwargs: dict[str, Any] = {
|
|
83
|
+
"method": "get",
|
|
84
|
+
"url": "/api/public-maintenance-announcements/",
|
|
85
|
+
"params": params,
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return _kwargs
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
def _parse_response(
|
|
92
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
93
|
+
) -> list["PublicMaintenanceAnnouncement"]:
|
|
94
|
+
if response.status_code == 200:
|
|
95
|
+
response_200 = []
|
|
96
|
+
_response_200 = response.json()
|
|
97
|
+
for response_200_item_data in _response_200:
|
|
98
|
+
response_200_item = PublicMaintenanceAnnouncement.from_dict(response_200_item_data)
|
|
99
|
+
|
|
100
|
+
response_200.append(response_200_item)
|
|
101
|
+
|
|
102
|
+
return response_200
|
|
103
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
def _build_response(
|
|
107
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
108
|
+
) -> Response[list["PublicMaintenanceAnnouncement"]]:
|
|
109
|
+
return Response(
|
|
110
|
+
status_code=HTTPStatus(response.status_code),
|
|
111
|
+
content=response.content,
|
|
112
|
+
headers=response.headers,
|
|
113
|
+
parsed=_parse_response(client=client, response=response),
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
def sync_detailed(
|
|
118
|
+
*,
|
|
119
|
+
client: AuthenticatedClient,
|
|
120
|
+
maintenance_type: Union[Unset, int] = UNSET,
|
|
121
|
+
o: Union[Unset, list[PublicMaintenanceAnnouncementsListOItem]] = UNSET,
|
|
122
|
+
page: Union[Unset, int] = UNSET,
|
|
123
|
+
page_size: Union[Unset, int] = UNSET,
|
|
124
|
+
scheduled_end_after: Union[Unset, datetime.datetime] = UNSET,
|
|
125
|
+
scheduled_end_before: Union[Unset, datetime.datetime] = UNSET,
|
|
126
|
+
scheduled_start_after: Union[Unset, datetime.datetime] = UNSET,
|
|
127
|
+
scheduled_start_before: Union[Unset, datetime.datetime] = UNSET,
|
|
128
|
+
service_provider_uuid: Union[Unset, UUID] = UNSET,
|
|
129
|
+
state: Union[Unset, list[PublicMaintenanceAnnouncementsListStateItem]] = UNSET,
|
|
130
|
+
) -> Response[list["PublicMaintenanceAnnouncement"]]:
|
|
131
|
+
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
132
|
+
|
|
133
|
+
Args:
|
|
134
|
+
maintenance_type (Union[Unset, int]):
|
|
135
|
+
o (Union[Unset, list[PublicMaintenanceAnnouncementsListOItem]]):
|
|
136
|
+
page (Union[Unset, int]):
|
|
137
|
+
page_size (Union[Unset, int]):
|
|
138
|
+
scheduled_end_after (Union[Unset, datetime.datetime]):
|
|
139
|
+
scheduled_end_before (Union[Unset, datetime.datetime]):
|
|
140
|
+
scheduled_start_after (Union[Unset, datetime.datetime]):
|
|
141
|
+
scheduled_start_before (Union[Unset, datetime.datetime]):
|
|
142
|
+
service_provider_uuid (Union[Unset, UUID]):
|
|
143
|
+
state (Union[Unset, list[PublicMaintenanceAnnouncementsListStateItem]]):
|
|
144
|
+
|
|
145
|
+
Raises:
|
|
146
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
147
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
148
|
+
|
|
149
|
+
Returns:
|
|
150
|
+
Response[list['PublicMaintenanceAnnouncement']]
|
|
151
|
+
"""
|
|
152
|
+
|
|
153
|
+
kwargs = _get_kwargs(
|
|
154
|
+
maintenance_type=maintenance_type,
|
|
155
|
+
o=o,
|
|
156
|
+
page=page,
|
|
157
|
+
page_size=page_size,
|
|
158
|
+
scheduled_end_after=scheduled_end_after,
|
|
159
|
+
scheduled_end_before=scheduled_end_before,
|
|
160
|
+
scheduled_start_after=scheduled_start_after,
|
|
161
|
+
scheduled_start_before=scheduled_start_before,
|
|
162
|
+
service_provider_uuid=service_provider_uuid,
|
|
163
|
+
state=state,
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
response = client.get_httpx_client().request(
|
|
167
|
+
**kwargs,
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
return _build_response(client=client, response=response)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
def sync(
|
|
174
|
+
*,
|
|
175
|
+
client: AuthenticatedClient,
|
|
176
|
+
maintenance_type: Union[Unset, int] = UNSET,
|
|
177
|
+
o: Union[Unset, list[PublicMaintenanceAnnouncementsListOItem]] = UNSET,
|
|
178
|
+
page: Union[Unset, int] = UNSET,
|
|
179
|
+
page_size: Union[Unset, int] = UNSET,
|
|
180
|
+
scheduled_end_after: Union[Unset, datetime.datetime] = UNSET,
|
|
181
|
+
scheduled_end_before: Union[Unset, datetime.datetime] = UNSET,
|
|
182
|
+
scheduled_start_after: Union[Unset, datetime.datetime] = UNSET,
|
|
183
|
+
scheduled_start_before: Union[Unset, datetime.datetime] = UNSET,
|
|
184
|
+
service_provider_uuid: Union[Unset, UUID] = UNSET,
|
|
185
|
+
state: Union[Unset, list[PublicMaintenanceAnnouncementsListStateItem]] = UNSET,
|
|
186
|
+
) -> list["PublicMaintenanceAnnouncement"]:
|
|
187
|
+
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
188
|
+
|
|
189
|
+
Args:
|
|
190
|
+
maintenance_type (Union[Unset, int]):
|
|
191
|
+
o (Union[Unset, list[PublicMaintenanceAnnouncementsListOItem]]):
|
|
192
|
+
page (Union[Unset, int]):
|
|
193
|
+
page_size (Union[Unset, int]):
|
|
194
|
+
scheduled_end_after (Union[Unset, datetime.datetime]):
|
|
195
|
+
scheduled_end_before (Union[Unset, datetime.datetime]):
|
|
196
|
+
scheduled_start_after (Union[Unset, datetime.datetime]):
|
|
197
|
+
scheduled_start_before (Union[Unset, datetime.datetime]):
|
|
198
|
+
service_provider_uuid (Union[Unset, UUID]):
|
|
199
|
+
state (Union[Unset, list[PublicMaintenanceAnnouncementsListStateItem]]):
|
|
200
|
+
|
|
201
|
+
Raises:
|
|
202
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
203
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
204
|
+
|
|
205
|
+
Returns:
|
|
206
|
+
list['PublicMaintenanceAnnouncement']
|
|
207
|
+
"""
|
|
208
|
+
|
|
209
|
+
return sync_detailed(
|
|
210
|
+
client=client,
|
|
211
|
+
maintenance_type=maintenance_type,
|
|
212
|
+
o=o,
|
|
213
|
+
page=page,
|
|
214
|
+
page_size=page_size,
|
|
215
|
+
scheduled_end_after=scheduled_end_after,
|
|
216
|
+
scheduled_end_before=scheduled_end_before,
|
|
217
|
+
scheduled_start_after=scheduled_start_after,
|
|
218
|
+
scheduled_start_before=scheduled_start_before,
|
|
219
|
+
service_provider_uuid=service_provider_uuid,
|
|
220
|
+
state=state,
|
|
221
|
+
).parsed
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
async def asyncio_detailed(
|
|
225
|
+
*,
|
|
226
|
+
client: AuthenticatedClient,
|
|
227
|
+
maintenance_type: Union[Unset, int] = UNSET,
|
|
228
|
+
o: Union[Unset, list[PublicMaintenanceAnnouncementsListOItem]] = UNSET,
|
|
229
|
+
page: Union[Unset, int] = UNSET,
|
|
230
|
+
page_size: Union[Unset, int] = UNSET,
|
|
231
|
+
scheduled_end_after: Union[Unset, datetime.datetime] = UNSET,
|
|
232
|
+
scheduled_end_before: Union[Unset, datetime.datetime] = UNSET,
|
|
233
|
+
scheduled_start_after: Union[Unset, datetime.datetime] = UNSET,
|
|
234
|
+
scheduled_start_before: Union[Unset, datetime.datetime] = UNSET,
|
|
235
|
+
service_provider_uuid: Union[Unset, UUID] = UNSET,
|
|
236
|
+
state: Union[Unset, list[PublicMaintenanceAnnouncementsListStateItem]] = UNSET,
|
|
237
|
+
) -> Response[list["PublicMaintenanceAnnouncement"]]:
|
|
238
|
+
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
239
|
+
|
|
240
|
+
Args:
|
|
241
|
+
maintenance_type (Union[Unset, int]):
|
|
242
|
+
o (Union[Unset, list[PublicMaintenanceAnnouncementsListOItem]]):
|
|
243
|
+
page (Union[Unset, int]):
|
|
244
|
+
page_size (Union[Unset, int]):
|
|
245
|
+
scheduled_end_after (Union[Unset, datetime.datetime]):
|
|
246
|
+
scheduled_end_before (Union[Unset, datetime.datetime]):
|
|
247
|
+
scheduled_start_after (Union[Unset, datetime.datetime]):
|
|
248
|
+
scheduled_start_before (Union[Unset, datetime.datetime]):
|
|
249
|
+
service_provider_uuid (Union[Unset, UUID]):
|
|
250
|
+
state (Union[Unset, list[PublicMaintenanceAnnouncementsListStateItem]]):
|
|
251
|
+
|
|
252
|
+
Raises:
|
|
253
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
254
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
255
|
+
|
|
256
|
+
Returns:
|
|
257
|
+
Response[list['PublicMaintenanceAnnouncement']]
|
|
258
|
+
"""
|
|
259
|
+
|
|
260
|
+
kwargs = _get_kwargs(
|
|
261
|
+
maintenance_type=maintenance_type,
|
|
262
|
+
o=o,
|
|
263
|
+
page=page,
|
|
264
|
+
page_size=page_size,
|
|
265
|
+
scheduled_end_after=scheduled_end_after,
|
|
266
|
+
scheduled_end_before=scheduled_end_before,
|
|
267
|
+
scheduled_start_after=scheduled_start_after,
|
|
268
|
+
scheduled_start_before=scheduled_start_before,
|
|
269
|
+
service_provider_uuid=service_provider_uuid,
|
|
270
|
+
state=state,
|
|
271
|
+
)
|
|
272
|
+
|
|
273
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
274
|
+
|
|
275
|
+
return _build_response(client=client, response=response)
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
async def asyncio(
|
|
279
|
+
*,
|
|
280
|
+
client: AuthenticatedClient,
|
|
281
|
+
maintenance_type: Union[Unset, int] = UNSET,
|
|
282
|
+
o: Union[Unset, list[PublicMaintenanceAnnouncementsListOItem]] = UNSET,
|
|
283
|
+
page: Union[Unset, int] = UNSET,
|
|
284
|
+
page_size: Union[Unset, int] = UNSET,
|
|
285
|
+
scheduled_end_after: Union[Unset, datetime.datetime] = UNSET,
|
|
286
|
+
scheduled_end_before: Union[Unset, datetime.datetime] = UNSET,
|
|
287
|
+
scheduled_start_after: Union[Unset, datetime.datetime] = UNSET,
|
|
288
|
+
scheduled_start_before: Union[Unset, datetime.datetime] = UNSET,
|
|
289
|
+
service_provider_uuid: Union[Unset, UUID] = UNSET,
|
|
290
|
+
state: Union[Unset, list[PublicMaintenanceAnnouncementsListStateItem]] = UNSET,
|
|
291
|
+
) -> list["PublicMaintenanceAnnouncement"]:
|
|
292
|
+
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
293
|
+
|
|
294
|
+
Args:
|
|
295
|
+
maintenance_type (Union[Unset, int]):
|
|
296
|
+
o (Union[Unset, list[PublicMaintenanceAnnouncementsListOItem]]):
|
|
297
|
+
page (Union[Unset, int]):
|
|
298
|
+
page_size (Union[Unset, int]):
|
|
299
|
+
scheduled_end_after (Union[Unset, datetime.datetime]):
|
|
300
|
+
scheduled_end_before (Union[Unset, datetime.datetime]):
|
|
301
|
+
scheduled_start_after (Union[Unset, datetime.datetime]):
|
|
302
|
+
scheduled_start_before (Union[Unset, datetime.datetime]):
|
|
303
|
+
service_provider_uuid (Union[Unset, UUID]):
|
|
304
|
+
state (Union[Unset, list[PublicMaintenanceAnnouncementsListStateItem]]):
|
|
305
|
+
|
|
306
|
+
Raises:
|
|
307
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
308
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
309
|
+
|
|
310
|
+
Returns:
|
|
311
|
+
list['PublicMaintenanceAnnouncement']
|
|
312
|
+
"""
|
|
313
|
+
|
|
314
|
+
return (
|
|
315
|
+
await asyncio_detailed(
|
|
316
|
+
client=client,
|
|
317
|
+
maintenance_type=maintenance_type,
|
|
318
|
+
o=o,
|
|
319
|
+
page=page,
|
|
320
|
+
page_size=page_size,
|
|
321
|
+
scheduled_end_after=scheduled_end_after,
|
|
322
|
+
scheduled_end_before=scheduled_end_before,
|
|
323
|
+
scheduled_start_after=scheduled_start_after,
|
|
324
|
+
scheduled_start_before=scheduled_start_before,
|
|
325
|
+
service_provider_uuid=service_provider_uuid,
|
|
326
|
+
state=state,
|
|
327
|
+
)
|
|
328
|
+
).parsed
|
waldur_api_client/api/public_maintenance_announcements/public_maintenance_announcements_retrieve.py
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
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.public_maintenance_announcement import PublicMaintenanceAnnouncement
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
uuid: UUID,
|
|
15
|
+
) -> dict[str, Any]:
|
|
16
|
+
_kwargs: dict[str, Any] = {
|
|
17
|
+
"method": "get",
|
|
18
|
+
"url": f"/api/public-maintenance-announcements/{uuid}/",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return _kwargs
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _parse_response(
|
|
25
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
26
|
+
) -> PublicMaintenanceAnnouncement:
|
|
27
|
+
if response.status_code == 200:
|
|
28
|
+
response_200 = PublicMaintenanceAnnouncement.from_dict(response.json())
|
|
29
|
+
|
|
30
|
+
return response_200
|
|
31
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _build_response(
|
|
35
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
36
|
+
) -> Response[PublicMaintenanceAnnouncement]:
|
|
37
|
+
return Response(
|
|
38
|
+
status_code=HTTPStatus(response.status_code),
|
|
39
|
+
content=response.content,
|
|
40
|
+
headers=response.headers,
|
|
41
|
+
parsed=_parse_response(client=client, response=response),
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def sync_detailed(
|
|
46
|
+
uuid: UUID,
|
|
47
|
+
*,
|
|
48
|
+
client: AuthenticatedClient,
|
|
49
|
+
) -> Response[PublicMaintenanceAnnouncement]:
|
|
50
|
+
"""
|
|
51
|
+
Args:
|
|
52
|
+
uuid (UUID):
|
|
53
|
+
|
|
54
|
+
Raises:
|
|
55
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
56
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
57
|
+
|
|
58
|
+
Returns:
|
|
59
|
+
Response[PublicMaintenanceAnnouncement]
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
kwargs = _get_kwargs(
|
|
63
|
+
uuid=uuid,
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
response = client.get_httpx_client().request(
|
|
67
|
+
**kwargs,
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
return _build_response(client=client, response=response)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def sync(
|
|
74
|
+
uuid: UUID,
|
|
75
|
+
*,
|
|
76
|
+
client: AuthenticatedClient,
|
|
77
|
+
) -> PublicMaintenanceAnnouncement:
|
|
78
|
+
"""
|
|
79
|
+
Args:
|
|
80
|
+
uuid (UUID):
|
|
81
|
+
|
|
82
|
+
Raises:
|
|
83
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
84
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
85
|
+
|
|
86
|
+
Returns:
|
|
87
|
+
PublicMaintenanceAnnouncement
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
return sync_detailed(
|
|
91
|
+
uuid=uuid,
|
|
92
|
+
client=client,
|
|
93
|
+
).parsed
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
async def asyncio_detailed(
|
|
97
|
+
uuid: UUID,
|
|
98
|
+
*,
|
|
99
|
+
client: AuthenticatedClient,
|
|
100
|
+
) -> Response[PublicMaintenanceAnnouncement]:
|
|
101
|
+
"""
|
|
102
|
+
Args:
|
|
103
|
+
uuid (UUID):
|
|
104
|
+
|
|
105
|
+
Raises:
|
|
106
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
107
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
108
|
+
|
|
109
|
+
Returns:
|
|
110
|
+
Response[PublicMaintenanceAnnouncement]
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
kwargs = _get_kwargs(
|
|
114
|
+
uuid=uuid,
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
118
|
+
|
|
119
|
+
return _build_response(client=client, response=response)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
async def asyncio(
|
|
123
|
+
uuid: UUID,
|
|
124
|
+
*,
|
|
125
|
+
client: AuthenticatedClient,
|
|
126
|
+
) -> PublicMaintenanceAnnouncement:
|
|
127
|
+
"""
|
|
128
|
+
Args:
|
|
129
|
+
uuid (UUID):
|
|
130
|
+
|
|
131
|
+
Raises:
|
|
132
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
133
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
134
|
+
|
|
135
|
+
Returns:
|
|
136
|
+
PublicMaintenanceAnnouncement
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
return (
|
|
140
|
+
await asyncio_detailed(
|
|
141
|
+
uuid=uuid,
|
|
142
|
+
client=client,
|
|
143
|
+
)
|
|
144
|
+
).parsed
|
waldur_api_client/api/remote_waldur_api/remote_waldur_api_remote_resource_order_status_retrieve.py
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
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.remote_resource_order import RemoteResourceOrder
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
resource_uuid: str,
|
|
14
|
+
) -> dict[str, Any]:
|
|
15
|
+
_kwargs: dict[str, Any] = {
|
|
16
|
+
"method": "get",
|
|
17
|
+
"url": f"/api/remote-waldur-api/remote_resource_order_status/{resource_uuid}/",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return _kwargs
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> RemoteResourceOrder:
|
|
24
|
+
if response.status_code == 200:
|
|
25
|
+
response_200 = RemoteResourceOrder.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[RemoteResourceOrder]:
|
|
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
|
+
resource_uuid: str,
|
|
44
|
+
*,
|
|
45
|
+
client: AuthenticatedClient,
|
|
46
|
+
) -> Response[RemoteResourceOrder]:
|
|
47
|
+
"""Get remote order details
|
|
48
|
+
|
|
49
|
+
Args:
|
|
50
|
+
resource_uuid (str):
|
|
51
|
+
|
|
52
|
+
Raises:
|
|
53
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
54
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
55
|
+
|
|
56
|
+
Returns:
|
|
57
|
+
Response[RemoteResourceOrder]
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
kwargs = _get_kwargs(
|
|
61
|
+
resource_uuid=resource_uuid,
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
response = client.get_httpx_client().request(
|
|
65
|
+
**kwargs,
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
return _build_response(client=client, response=response)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def sync(
|
|
72
|
+
resource_uuid: str,
|
|
73
|
+
*,
|
|
74
|
+
client: AuthenticatedClient,
|
|
75
|
+
) -> RemoteResourceOrder:
|
|
76
|
+
"""Get remote order details
|
|
77
|
+
|
|
78
|
+
Args:
|
|
79
|
+
resource_uuid (str):
|
|
80
|
+
|
|
81
|
+
Raises:
|
|
82
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
83
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
84
|
+
|
|
85
|
+
Returns:
|
|
86
|
+
RemoteResourceOrder
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
return sync_detailed(
|
|
90
|
+
resource_uuid=resource_uuid,
|
|
91
|
+
client=client,
|
|
92
|
+
).parsed
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
async def asyncio_detailed(
|
|
96
|
+
resource_uuid: str,
|
|
97
|
+
*,
|
|
98
|
+
client: AuthenticatedClient,
|
|
99
|
+
) -> Response[RemoteResourceOrder]:
|
|
100
|
+
"""Get remote order details
|
|
101
|
+
|
|
102
|
+
Args:
|
|
103
|
+
resource_uuid (str):
|
|
104
|
+
|
|
105
|
+
Raises:
|
|
106
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
107
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
108
|
+
|
|
109
|
+
Returns:
|
|
110
|
+
Response[RemoteResourceOrder]
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
kwargs = _get_kwargs(
|
|
114
|
+
resource_uuid=resource_uuid,
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
118
|
+
|
|
119
|
+
return _build_response(client=client, response=response)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
async def asyncio(
|
|
123
|
+
resource_uuid: str,
|
|
124
|
+
*,
|
|
125
|
+
client: AuthenticatedClient,
|
|
126
|
+
) -> RemoteResourceOrder:
|
|
127
|
+
"""Get remote order details
|
|
128
|
+
|
|
129
|
+
Args:
|
|
130
|
+
resource_uuid (str):
|
|
131
|
+
|
|
132
|
+
Raises:
|
|
133
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
134
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
135
|
+
|
|
136
|
+
Returns:
|
|
137
|
+
RemoteResourceOrder
|
|
138
|
+
"""
|
|
139
|
+
|
|
140
|
+
return (
|
|
141
|
+
await asyncio_detailed(
|
|
142
|
+
resource_uuid=resource_uuid,
|
|
143
|
+
client=client,
|
|
144
|
+
)
|
|
145
|
+
).parsed
|