waldur-api-client 7.6.5__py3-none-any.whl → 7.6.8__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/access_subnets/access_subnets_list.py +8 -4
- waldur_api_client/api/admin_announcements/admin_announcements_list.py +8 -4
- waldur_api_client/api/auth_tokens/auth_tokens_list.py +8 -4
- waldur_api_client/api/autoprovisioning_rule_plans/autoprovisioning_rule_plans_list.py +8 -4
- waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_list.py +8 -4
- waldur_api_client/api/aws_images/aws_images_list.py +8 -4
- waldur_api_client/api/aws_instances/aws_instances_list.py +8 -4
- waldur_api_client/api/aws_regions/aws_regions_list.py +8 -4
- waldur_api_client/api/aws_sizes/aws_sizes_list.py +8 -4
- waldur_api_client/api/aws_volumes/aws_volumes_list.py +8 -4
- waldur_api_client/api/azure_images/azure_images_list.py +8 -4
- waldur_api_client/api/azure_locations/azure_locations_list.py +8 -4
- waldur_api_client/api/azure_public_ips/azure_public_ips_list.py +8 -4
- waldur_api_client/api/azure_resource_groups/azure_resource_groups_list.py +8 -4
- waldur_api_client/api/azure_sizes/azure_sizes_list.py +8 -4
- waldur_api_client/api/azure_sql_databases/azure_sql_databases_list.py +8 -4
- waldur_api_client/api/azure_sql_servers/azure_sql_servers_list.py +8 -4
- waldur_api_client/api/azure_virtualmachines/azure_virtualmachines_list.py +8 -4
- waldur_api_client/api/backend_resource_requests/__init__.py +1 -0
- waldur_api_client/api/backend_resource_requests/backend_resource_requests_create.py +150 -0
- waldur_api_client/api/backend_resource_requests/backend_resource_requests_list.py +313 -0
- waldur_api_client/api/backend_resource_requests/backend_resource_requests_retrieve.py +142 -0
- waldur_api_client/api/backend_resource_requests/backend_resource_requests_set_done.py +144 -0
- waldur_api_client/api/backend_resource_requests/backend_resource_requests_set_erred.py +166 -0
- waldur_api_client/api/backend_resource_requests/backend_resource_requests_start_processing.py +146 -0
- waldur_api_client/api/backend_resources/__init__.py +1 -0
- waldur_api_client/api/backend_resources/backend_resources_create.py +150 -0
- waldur_api_client/api/backend_resources/backend_resources_destroy.py +89 -0
- waldur_api_client/api/backend_resources/backend_resources_import_resource.py +162 -0
- waldur_api_client/api/backend_resources/backend_resources_list.py +315 -0
- waldur_api_client/api/backend_resources/backend_resources_retrieve.py +142 -0
- waldur_api_client/api/booking_offerings/booking_offerings_list.py +8 -4
- waldur_api_client/api/booking_resources/booking_resources_list.py +8 -4
- waldur_api_client/api/broadcast_message_templates/broadcast_message_templates_list.py +8 -4
- waldur_api_client/api/broadcast_messages/broadcast_messages_list.py +8 -4
- waldur_api_client/api/call_managing_organisations/call_managing_organisations_list.py +8 -4
- waldur_api_client/api/call_rounds/call_rounds_list.py +8 -4
- waldur_api_client/api/component_user_usage_limits/component_user_usage_limits_list.py +8 -4
- waldur_api_client/api/customer_credits/customer_credits_list.py +8 -4
- waldur_api_client/api/customer_permissions_reviews/customer_permissions_reviews_list.py +8 -4
- waldur_api_client/api/digitalocean_droplets/digitalocean_droplets_list.py +8 -4
- waldur_api_client/api/digitalocean_images/digitalocean_images_list.py +8 -4
- waldur_api_client/api/digitalocean_regions/digitalocean_regions_list.py +8 -4
- waldur_api_client/api/digitalocean_sizes/digitalocean_sizes_list.py +8 -4
- waldur_api_client/api/email_logs/email_logs_list.py +8 -4
- waldur_api_client/api/event_subscriptions/event_subscriptions_list.py +8 -4
- waldur_api_client/api/events/events_list.py +8 -4
- waldur_api_client/api/events_stats/events_stats_list.py +8 -4
- waldur_api_client/api/financial_reports/financial_reports_list.py +8 -4
- waldur_api_client/api/freeipa_profiles/freeipa_profiles_list.py +8 -4
- waldur_api_client/api/google_auth/google_auth_list.py +8 -4
- waldur_api_client/api/hooks/hooks_list.py +4 -2
- waldur_api_client/api/hooks_email/hooks_email_list.py +8 -4
- waldur_api_client/api/hooks_web/hooks_web_list.py +8 -4
- waldur_api_client/api/identity_providers/identity_providers_list.py +8 -4
- waldur_api_client/api/invoice_items/invoice_items_list.py +8 -4
- waldur_api_client/api/invoices/invoices_list.py +8 -4
- waldur_api_client/api/keycloak_groups/keycloak_groups_list.py +8 -4
- waldur_api_client/api/keycloak_user_group_memberships/keycloak_user_group_memberships_list.py +8 -4
- waldur_api_client/api/keys/keys_list.py +8 -4
- waldur_api_client/api/lexis_links/lexis_links_list.py +8 -4
- waldur_api_client/api/marketplace_categories/marketplace_categories_list.py +8 -4
- waldur_api_client/api/marketplace_category_columns/marketplace_category_columns_list.py +8 -4
- waldur_api_client/api/marketplace_category_component_usages/marketplace_category_component_usages_list.py +8 -4
- waldur_api_client/api/marketplace_category_components/marketplace_category_components_list.py +8 -4
- waldur_api_client/api/marketplace_category_groups/marketplace_category_groups_list.py +8 -4
- waldur_api_client/api/marketplace_category_help_articles/marketplace_category_help_articles_list.py +8 -4
- waldur_api_client/api/marketplace_checklists/marketplace_checklists_answers_list.py +8 -4
- waldur_api_client/api/marketplace_checklists/marketplace_checklists_list.py +8 -4
- waldur_api_client/api/marketplace_checklists/marketplace_checklists_questions_list.py +8 -4
- waldur_api_client/api/marketplace_checklists/marketplace_checklists_user_answers_list.py +8 -4
- waldur_api_client/api/marketplace_checklists_categories/marketplace_checklists_categories_checklists_list.py +8 -4
- waldur_api_client/api/marketplace_checklists_categories/marketplace_checklists_categories_list.py +8 -4
- waldur_api_client/api/marketplace_component_usages/marketplace_component_usages_list.py +8 -4
- waldur_api_client/api/marketplace_component_user_usages/marketplace_component_user_usages_list.py +8 -4
- waldur_api_client/api/marketplace_customer_estimated_cost_policies/marketplace_customer_estimated_cost_policies_list.py +8 -4
- waldur_api_client/api/marketplace_customer_service_accounts/marketplace_customer_service_accounts_list.py +8 -4
- waldur_api_client/api/marketplace_integration_statuses/marketplace_integration_statuses_list.py +8 -4
- waldur_api_client/api/marketplace_offering_estimated_cost_policies/marketplace_offering_estimated_cost_policies_list.py +8 -4
- waldur_api_client/api/marketplace_offering_files/marketplace_offering_files_list.py +8 -4
- waldur_api_client/api/marketplace_offering_permissions/marketplace_offering_permissions_list.py +18 -17
- waldur_api_client/api/marketplace_offering_permissions_log/marketplace_offering_permissions_log_list.py +18 -17
- waldur_api_client/api/marketplace_offering_referrals/marketplace_offering_referrals_list.py +8 -4
- waldur_api_client/api/marketplace_offering_usage_policies/marketplace_offering_usage_policies_list.py +8 -4
- waldur_api_client/api/marketplace_offering_user_roles/marketplace_offering_user_roles_list.py +8 -4
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_list.py +8 -4
- waldur_api_client/api/marketplace_orders/marketplace_orders_list.py +8 -4
- waldur_api_client/api/marketplace_plan_components/marketplace_plan_components_list.py +8 -4
- waldur_api_client/api/marketplace_plans/marketplace_plans_list.py +8 -4
- waldur_api_client/api/marketplace_project_estimated_cost_policies/marketplace_project_estimated_cost_policies_list.py +8 -4
- waldur_api_client/api/marketplace_project_service_accounts/marketplace_project_service_accounts_list.py +8 -4
- waldur_api_client/api/marketplace_project_update_requests/marketplace_project_update_requests_list.py +8 -4
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_component_stats_list.py +10 -13
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_costs_list.py +10 -13
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_customers_list.py +10 -13
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_groups_list.py +10 -13
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_list.py +18 -17
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_refresh_offering_usernames.py +20 -16
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +8 -4
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_set_as_erred.py +11 -68
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_set_backend_id.py +20 -16
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_set_backend_metadata.py +12 -12
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_set_limits.py +12 -12
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_submit_report.py +20 -16
- waldur_api_client/api/marketplace_public_offerings/marketplace_public_offerings_list.py +18 -17
- waldur_api_client/api/marketplace_remote_synchronisations/marketplace_remote_synchronisations_list.py +8 -4
- waldur_api_client/api/marketplace_resource_users/marketplace_resource_users_list.py +8 -4
- waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +8 -4
- waldur_api_client/api/marketplace_resources/marketplace_resources_update_options.py +20 -16
- waldur_api_client/api/marketplace_robot_accounts/marketplace_robot_accounts_list.py +8 -4
- waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_list.py +8 -4
- waldur_api_client/api/marketplace_script_async_dry_run/marketplace_script_async_dry_run_list.py +8 -4
- waldur_api_client/api/marketplace_sections/marketplace_sections_list.py +8 -4
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_customer_projects_list.py +15 -0
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_list.py +8 -4
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_offerings_list.py +10 -13
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_project_permissions_list.py +10 -13
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_projects_list.py +15 -0
- waldur_api_client/api/notification_messages/notification_messages_list.py +8 -4
- waldur_api_client/api/notification_messages_templates/notification_messages_templates_list.py +8 -4
- waldur_api_client/api/openstack_backups/openstack_backups_list.py +8 -4
- waldur_api_client/api/openstack_flavors/openstack_flavors_list.py +26 -4
- waldur_api_client/api/openstack_images/openstack_images_list.py +26 -4
- waldur_api_client/api/openstack_instance_availability_zones/openstack_instance_availability_zones_list.py +8 -4
- waldur_api_client/api/openstack_instances/openstack_instances_list.py +8 -4
- waldur_api_client/api/openstack_marketplace_tenants/openstack_marketplace_tenants_list.py +8 -4
- waldur_api_client/api/openstack_migrations/openstack_migrations_list.py +8 -4
- waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_list.py +8 -4
- waldur_api_client/api/openstack_networks/openstack_networks_list.py +8 -4
- waldur_api_client/api/openstack_ports/openstack_ports_list.py +8 -4
- waldur_api_client/api/openstack_routers/openstack_routers_list.py +8 -4
- waldur_api_client/api/openstack_security_groups/openstack_security_groups_list.py +8 -4
- waldur_api_client/api/openstack_server_groups/openstack_server_groups_list.py +8 -4
- waldur_api_client/api/openstack_snapshots/openstack_snapshots_list.py +8 -4
- waldur_api_client/api/openstack_subnets/openstack_subnets_list.py +8 -4
- waldur_api_client/api/openstack_tenants/openstack_tenants_list.py +8 -4
- waldur_api_client/api/openstack_volume_availability_zones/openstack_volume_availability_zones_list.py +8 -4
- waldur_api_client/api/openstack_volume_types/openstack_volume_types_list.py +26 -4
- waldur_api_client/api/openstack_volumes/openstack_volumes_list.py +8 -4
- waldur_api_client/api/organization_groups/organization_groups_list.py +8 -4
- waldur_api_client/api/payment_profiles/payment_profiles_list.py +8 -4
- waldur_api_client/api/payments/payments_list.py +8 -4
- waldur_api_client/api/project_credits/project_credits_list.py +8 -4
- waldur_api_client/api/project_types/project_types_list.py +8 -4
- waldur_api_client/api/projects/projects_list.py +23 -4
- waldur_api_client/api/promotions_campaigns/promotions_campaigns_list.py +8 -4
- waldur_api_client/api/proposal_proposals/proposal_proposals_list.py +8 -4
- waldur_api_client/api/proposal_protected_calls/proposal_protected_calls_list.py +8 -4
- waldur_api_client/api/proposal_public_calls/proposal_public_calls_list.py +8 -4
- waldur_api_client/api/proposal_requested_offerings/proposal_requested_offerings_list.py +8 -4
- waldur_api_client/api/proposal_requested_resources/proposal_requested_resources_list.py +8 -4
- waldur_api_client/api/proposal_reviews/proposal_reviews_list.py +8 -4
- waldur_api_client/api/provider_invoice_items/provider_invoice_items_list.py +8 -4
- waldur_api_client/api/rancher_apps/rancher_apps_list.py +8 -4
- waldur_api_client/api/rancher_catalogs/rancher_catalogs_list.py +8 -4
- waldur_api_client/api/rancher_cluster_security_groups/rancher_cluster_security_groups_list.py +8 -4
- waldur_api_client/api/rancher_cluster_templates/rancher_cluster_templates_list.py +8 -4
- waldur_api_client/api/rancher_clusters/rancher_clusters_list.py +8 -4
- waldur_api_client/api/rancher_hpas/rancher_hpas_list.py +8 -4
- waldur_api_client/api/rancher_ingresses/rancher_ingresses_list.py +8 -4
- waldur_api_client/api/rancher_namespaces/rancher_namespaces_list.py +8 -4
- waldur_api_client/api/rancher_nodes/rancher_nodes_list.py +8 -4
- waldur_api_client/api/rancher_projects/rancher_projects_list.py +8 -4
- waldur_api_client/api/rancher_role_templates/rancher_role_templates_list.py +8 -4
- waldur_api_client/api/rancher_services/rancher_services_list.py +8 -4
- waldur_api_client/api/rancher_templates/rancher_templates_list.py +8 -4
- waldur_api_client/api/rancher_users/rancher_users_list.py +8 -4
- waldur_api_client/api/rancher_workloads/rancher_workloads_list.py +8 -4
- waldur_api_client/api/roles/roles_list.py +8 -4
- waldur_api_client/api/service_settings/service_settings_list.py +18 -17
- waldur_api_client/api/slurm_allocation_user_usage/slurm_allocation_user_usage_list.py +8 -4
- waldur_api_client/api/slurm_allocations/slurm_allocations_list.py +8 -4
- waldur_api_client/api/slurm_associations/slurm_associations_list.py +8 -4
- waldur_api_client/api/slurm_jobs/slurm_jobs_list.py +8 -4
- waldur_api_client/api/support_attachments/support_attachments_list.py +8 -4
- waldur_api_client/api/support_comments/support_comments_list.py +8 -4
- waldur_api_client/api/support_feedbacks/support_feedbacks_list.py +8 -4
- waldur_api_client/api/support_issues/support_issues_list.py +8 -4
- waldur_api_client/api/support_priorities/support_priorities_list.py +8 -4
- waldur_api_client/api/support_templates/support_templates_list.py +8 -4
- waldur_api_client/api/support_users/support_users_list.py +8 -4
- waldur_api_client/api/user_agreements/user_agreements_list.py +8 -4
- waldur_api_client/api/user_group_invitations/user_group_invitations_list.py +8 -4
- waldur_api_client/api/user_invitations/user_invitations_list.py +8 -4
- waldur_api_client/api/user_permission_requests/user_permission_requests_list.py +8 -4
- waldur_api_client/api/user_permissions/user_permissions_list.py +18 -17
- waldur_api_client/api/users/users_list.py +8 -4
- waldur_api_client/api/vmware_clusters/vmware_clusters_list.py +8 -4
- waldur_api_client/api/vmware_datastores/vmware_datastores_list.py +8 -4
- waldur_api_client/api/vmware_disks/vmware_disks_list.py +8 -4
- waldur_api_client/api/vmware_folders/vmware_folders_list.py +8 -4
- waldur_api_client/api/vmware_networks/vmware_networks_list.py +8 -4
- waldur_api_client/api/vmware_ports/vmware_ports_list.py +8 -4
- waldur_api_client/api/vmware_templates/vmware_templates_list.py +8 -4
- waldur_api_client/api/vmware_virtual_machine/vmware_virtual_machine_list.py +8 -4
- waldur_api_client/models/__init__.py +28 -16
- waldur_api_client/models/backend_resource.py +162 -0
- waldur_api_client/models/{resource_backend_id.py → backend_resource_import_request.py} +21 -13
- waldur_api_client/models/backend_resource_req.py +162 -0
- waldur_api_client/models/{resource_backend_metadata.py → backend_resource_req_request.py} +12 -11
- waldur_api_client/models/backend_resource_req_state_enum.py +11 -0
- waldur_api_client/models/backend_resource_request.py +96 -0
- waldur_api_client/models/{resource_set_state_erred.py → backend_resource_request_set_erred_request.py} +5 -5
- waldur_api_client/models/backend_resource_requests_list_o_item.py +9 -0
- waldur_api_client/models/backend_resource_requests_list_state_item.py +11 -0
- waldur_api_client/models/{order_details_attributes.py → backend_resource_requests_set_done_response_200.py} +6 -6
- waldur_api_client/models/{resource_options.py → backend_resource_requests_set_erred_response_200.py} +7 -22
- waldur_api_client/models/backend_resource_requests_start_processing_response_200.py +44 -0
- waldur_api_client/models/backend_resources_list_o_item.py +9 -0
- waldur_api_client/models/constance_settings.py +9 -0
- waldur_api_client/models/constance_settings_request.py +9 -0
- waldur_api_client/models/customer.py +0 -21
- waldur_api_client/models/customers_list_field_item.py +0 -1
- waldur_api_client/models/customers_retrieve_field_item.py +0 -1
- waldur_api_client/models/event_types_enum.py +5 -0
- waldur_api_client/models/merged_plugin_options.py +20 -0
- waldur_api_client/models/merged_plugin_options_request.py +20 -0
- waldur_api_client/models/nested_requested_offering.py +18 -0
- waldur_api_client/models/order_details.py +4 -14
- waldur_api_client/models/provider_requested_offering.py +10 -0
- waldur_api_client/models/requested_offering.py +10 -0
- waldur_api_client/models/{resource_set_limits.py → resource_response_status.py} +11 -11
- waldur_api_client/models/user_agreement.py +9 -11
- waldur_api_client/models/user_agreement_request.py +9 -11
- {waldur_api_client-7.6.5.dist-info → waldur_api_client-7.6.8.dist-info}/METADATA +1 -1
- {waldur_api_client-7.6.5.dist-info → waldur_api_client-7.6.8.dist-info}/RECORD +228 -209
- waldur_api_client/models/permission_project.py +0 -147
- waldur_api_client/models/resource_report.py +0 -73
- {waldur_api_client-7.6.5.dist-info → waldur_api_client-7.6.8.dist-info}/LICENSE +0 -0
- {waldur_api_client-7.6.5.dist-info → waldur_api_client-7.6.8.dist-info}/WHEEL +0 -0
|
@@ -185,7 +185,8 @@ def sync_detailed(
|
|
|
185
185
|
state: Union[Unset, list[AzureVirtualmachinesListStateItem]] = UNSET,
|
|
186
186
|
uuid: Union[Unset, UUID] = UNSET,
|
|
187
187
|
) -> Response[list["AzureVirtualMachine"]]:
|
|
188
|
-
"""
|
|
188
|
+
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
189
|
+
|
|
189
190
|
Args:
|
|
190
191
|
backend_id (Union[Unset, str]):
|
|
191
192
|
can_manage (Union[Unset, bool]):
|
|
@@ -279,7 +280,8 @@ def sync(
|
|
|
279
280
|
state: Union[Unset, list[AzureVirtualmachinesListStateItem]] = UNSET,
|
|
280
281
|
uuid: Union[Unset, UUID] = UNSET,
|
|
281
282
|
) -> list["AzureVirtualMachine"]:
|
|
282
|
-
"""
|
|
283
|
+
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
284
|
+
|
|
283
285
|
Args:
|
|
284
286
|
backend_id (Union[Unset, str]):
|
|
285
287
|
can_manage (Union[Unset, bool]):
|
|
@@ -368,7 +370,8 @@ async def asyncio_detailed(
|
|
|
368
370
|
state: Union[Unset, list[AzureVirtualmachinesListStateItem]] = UNSET,
|
|
369
371
|
uuid: Union[Unset, UUID] = UNSET,
|
|
370
372
|
) -> Response[list["AzureVirtualMachine"]]:
|
|
371
|
-
"""
|
|
373
|
+
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
374
|
+
|
|
372
375
|
Args:
|
|
373
376
|
backend_id (Union[Unset, str]):
|
|
374
377
|
can_manage (Union[Unset, bool]):
|
|
@@ -460,7 +463,8 @@ async def asyncio(
|
|
|
460
463
|
state: Union[Unset, list[AzureVirtualmachinesListStateItem]] = UNSET,
|
|
461
464
|
uuid: Union[Unset, UUID] = UNSET,
|
|
462
465
|
) -> list["AzureVirtualMachine"]:
|
|
463
|
-
"""
|
|
466
|
+
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
467
|
+
|
|
464
468
|
Args:
|
|
465
469
|
backend_id (Union[Unset, str]):
|
|
466
470
|
can_manage (Union[Unset, bool]):
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains endpoint functions for accessing the API"""
|
|
@@ -0,0 +1,150 @@
|
|
|
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.backend_resource_req import BackendResourceReq
|
|
9
|
+
from ...models.backend_resource_req_request import BackendResourceReqRequest
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
*,
|
|
15
|
+
body: BackendResourceReqRequest,
|
|
16
|
+
) -> dict[str, Any]:
|
|
17
|
+
headers: dict[str, Any] = {}
|
|
18
|
+
|
|
19
|
+
_kwargs: dict[str, Any] = {
|
|
20
|
+
"method": "post",
|
|
21
|
+
"url": "/api/backend-resource-requests/",
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
_kwargs["json"] = body.to_dict()
|
|
25
|
+
|
|
26
|
+
headers["Content-Type"] = "application/json"
|
|
27
|
+
|
|
28
|
+
_kwargs["headers"] = headers
|
|
29
|
+
return _kwargs
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> BackendResourceReq:
|
|
33
|
+
if response.status_code == 201:
|
|
34
|
+
response_201 = BackendResourceReq.from_dict(response.json())
|
|
35
|
+
|
|
36
|
+
return response_201
|
|
37
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def _build_response(
|
|
41
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
42
|
+
) -> Response[BackendResourceReq]:
|
|
43
|
+
return Response(
|
|
44
|
+
status_code=HTTPStatus(response.status_code),
|
|
45
|
+
content=response.content,
|
|
46
|
+
headers=response.headers,
|
|
47
|
+
parsed=_parse_response(client=client, response=response),
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def sync_detailed(
|
|
52
|
+
*,
|
|
53
|
+
client: AuthenticatedClient,
|
|
54
|
+
body: BackendResourceReqRequest,
|
|
55
|
+
) -> Response[BackendResourceReq]:
|
|
56
|
+
"""
|
|
57
|
+
Args:
|
|
58
|
+
body (BackendResourceReqRequest):
|
|
59
|
+
|
|
60
|
+
Raises:
|
|
61
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
62
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
63
|
+
|
|
64
|
+
Returns:
|
|
65
|
+
Response[BackendResourceReq]
|
|
66
|
+
"""
|
|
67
|
+
|
|
68
|
+
kwargs = _get_kwargs(
|
|
69
|
+
body=body,
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
response = client.get_httpx_client().request(
|
|
73
|
+
**kwargs,
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
return _build_response(client=client, response=response)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def sync(
|
|
80
|
+
*,
|
|
81
|
+
client: AuthenticatedClient,
|
|
82
|
+
body: BackendResourceReqRequest,
|
|
83
|
+
) -> BackendResourceReq:
|
|
84
|
+
"""
|
|
85
|
+
Args:
|
|
86
|
+
body (BackendResourceReqRequest):
|
|
87
|
+
|
|
88
|
+
Raises:
|
|
89
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
90
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
91
|
+
|
|
92
|
+
Returns:
|
|
93
|
+
BackendResourceReq
|
|
94
|
+
"""
|
|
95
|
+
|
|
96
|
+
return sync_detailed(
|
|
97
|
+
client=client,
|
|
98
|
+
body=body,
|
|
99
|
+
).parsed
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
async def asyncio_detailed(
|
|
103
|
+
*,
|
|
104
|
+
client: AuthenticatedClient,
|
|
105
|
+
body: BackendResourceReqRequest,
|
|
106
|
+
) -> Response[BackendResourceReq]:
|
|
107
|
+
"""
|
|
108
|
+
Args:
|
|
109
|
+
body (BackendResourceReqRequest):
|
|
110
|
+
|
|
111
|
+
Raises:
|
|
112
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
113
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
114
|
+
|
|
115
|
+
Returns:
|
|
116
|
+
Response[BackendResourceReq]
|
|
117
|
+
"""
|
|
118
|
+
|
|
119
|
+
kwargs = _get_kwargs(
|
|
120
|
+
body=body,
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
124
|
+
|
|
125
|
+
return _build_response(client=client, response=response)
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
async def asyncio(
|
|
129
|
+
*,
|
|
130
|
+
client: AuthenticatedClient,
|
|
131
|
+
body: BackendResourceReqRequest,
|
|
132
|
+
) -> BackendResourceReq:
|
|
133
|
+
"""
|
|
134
|
+
Args:
|
|
135
|
+
body (BackendResourceReqRequest):
|
|
136
|
+
|
|
137
|
+
Raises:
|
|
138
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
139
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
140
|
+
|
|
141
|
+
Returns:
|
|
142
|
+
BackendResourceReq
|
|
143
|
+
"""
|
|
144
|
+
|
|
145
|
+
return (
|
|
146
|
+
await asyncio_detailed(
|
|
147
|
+
client=client,
|
|
148
|
+
body=body,
|
|
149
|
+
)
|
|
150
|
+
).parsed
|
|
@@ -0,0 +1,313 @@
|
|
|
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.backend_resource_req import BackendResourceReq
|
|
11
|
+
from ...models.backend_resource_requests_list_o_item import BackendResourceRequestsListOItem
|
|
12
|
+
from ...models.backend_resource_requests_list_state_item import BackendResourceRequestsListStateItem
|
|
13
|
+
from ...types import UNSET, Response, Unset
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def _get_kwargs(
|
|
17
|
+
*,
|
|
18
|
+
created: Union[Unset, datetime.datetime] = UNSET,
|
|
19
|
+
finished: Union[Unset, datetime.datetime] = UNSET,
|
|
20
|
+
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
21
|
+
o: Union[Unset, list[BackendResourceRequestsListOItem]] = UNSET,
|
|
22
|
+
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
23
|
+
page: Union[Unset, int] = UNSET,
|
|
24
|
+
page_size: Union[Unset, int] = UNSET,
|
|
25
|
+
started: Union[Unset, datetime.datetime] = UNSET,
|
|
26
|
+
state: Union[Unset, list[BackendResourceRequestsListStateItem]] = UNSET,
|
|
27
|
+
) -> dict[str, Any]:
|
|
28
|
+
params: dict[str, Any] = {}
|
|
29
|
+
|
|
30
|
+
json_created: Union[Unset, str] = UNSET
|
|
31
|
+
if not isinstance(created, Unset):
|
|
32
|
+
json_created = created.isoformat()
|
|
33
|
+
params["created"] = json_created
|
|
34
|
+
|
|
35
|
+
json_finished: Union[Unset, str] = UNSET
|
|
36
|
+
if not isinstance(finished, Unset):
|
|
37
|
+
json_finished = finished.isoformat()
|
|
38
|
+
params["finished"] = json_finished
|
|
39
|
+
|
|
40
|
+
json_modified: Union[Unset, str] = UNSET
|
|
41
|
+
if not isinstance(modified, Unset):
|
|
42
|
+
json_modified = modified.isoformat()
|
|
43
|
+
params["modified"] = json_modified
|
|
44
|
+
|
|
45
|
+
json_o: Union[Unset, list[str]] = UNSET
|
|
46
|
+
if not isinstance(o, Unset):
|
|
47
|
+
json_o = []
|
|
48
|
+
for o_item_data in o:
|
|
49
|
+
o_item = o_item_data.value
|
|
50
|
+
json_o.append(o_item)
|
|
51
|
+
|
|
52
|
+
params["o"] = json_o
|
|
53
|
+
|
|
54
|
+
json_offering_uuid: Union[Unset, str] = UNSET
|
|
55
|
+
if not isinstance(offering_uuid, Unset):
|
|
56
|
+
json_offering_uuid = str(offering_uuid)
|
|
57
|
+
params["offering_uuid"] = json_offering_uuid
|
|
58
|
+
|
|
59
|
+
params["page"] = page
|
|
60
|
+
|
|
61
|
+
params["page_size"] = page_size
|
|
62
|
+
|
|
63
|
+
json_started: Union[Unset, str] = UNSET
|
|
64
|
+
if not isinstance(started, Unset):
|
|
65
|
+
json_started = started.isoformat()
|
|
66
|
+
params["started"] = json_started
|
|
67
|
+
|
|
68
|
+
json_state: Union[Unset, list[str]] = UNSET
|
|
69
|
+
if not isinstance(state, Unset):
|
|
70
|
+
json_state = []
|
|
71
|
+
for state_item_data in state:
|
|
72
|
+
state_item = state_item_data.value
|
|
73
|
+
json_state.append(state_item)
|
|
74
|
+
|
|
75
|
+
params["state"] = json_state
|
|
76
|
+
|
|
77
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
78
|
+
|
|
79
|
+
_kwargs: dict[str, Any] = {
|
|
80
|
+
"method": "get",
|
|
81
|
+
"url": "/api/backend-resource-requests/",
|
|
82
|
+
"params": params,
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return _kwargs
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
def _parse_response(
|
|
89
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
90
|
+
) -> list["BackendResourceReq"]:
|
|
91
|
+
if response.status_code == 200:
|
|
92
|
+
response_200 = []
|
|
93
|
+
_response_200 = response.json()
|
|
94
|
+
for response_200_item_data in _response_200:
|
|
95
|
+
response_200_item = BackendResourceReq.from_dict(response_200_item_data)
|
|
96
|
+
|
|
97
|
+
response_200.append(response_200_item)
|
|
98
|
+
|
|
99
|
+
return response_200
|
|
100
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def _build_response(
|
|
104
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
105
|
+
) -> Response[list["BackendResourceReq"]]:
|
|
106
|
+
return Response(
|
|
107
|
+
status_code=HTTPStatus(response.status_code),
|
|
108
|
+
content=response.content,
|
|
109
|
+
headers=response.headers,
|
|
110
|
+
parsed=_parse_response(client=client, response=response),
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
def sync_detailed(
|
|
115
|
+
*,
|
|
116
|
+
client: AuthenticatedClient,
|
|
117
|
+
created: Union[Unset, datetime.datetime] = UNSET,
|
|
118
|
+
finished: Union[Unset, datetime.datetime] = UNSET,
|
|
119
|
+
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
120
|
+
o: Union[Unset, list[BackendResourceRequestsListOItem]] = UNSET,
|
|
121
|
+
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
122
|
+
page: Union[Unset, int] = UNSET,
|
|
123
|
+
page_size: Union[Unset, int] = UNSET,
|
|
124
|
+
started: Union[Unset, datetime.datetime] = UNSET,
|
|
125
|
+
state: Union[Unset, list[BackendResourceRequestsListStateItem]] = UNSET,
|
|
126
|
+
) -> Response[list["BackendResourceReq"]]:
|
|
127
|
+
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
128
|
+
|
|
129
|
+
Args:
|
|
130
|
+
created (Union[Unset, datetime.datetime]):
|
|
131
|
+
finished (Union[Unset, datetime.datetime]):
|
|
132
|
+
modified (Union[Unset, datetime.datetime]):
|
|
133
|
+
o (Union[Unset, list[BackendResourceRequestsListOItem]]):
|
|
134
|
+
offering_uuid (Union[Unset, UUID]):
|
|
135
|
+
page (Union[Unset, int]):
|
|
136
|
+
page_size (Union[Unset, int]):
|
|
137
|
+
started (Union[Unset, datetime.datetime]):
|
|
138
|
+
state (Union[Unset, list[BackendResourceRequestsListStateItem]]):
|
|
139
|
+
|
|
140
|
+
Raises:
|
|
141
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
142
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
143
|
+
|
|
144
|
+
Returns:
|
|
145
|
+
Response[list['BackendResourceReq']]
|
|
146
|
+
"""
|
|
147
|
+
|
|
148
|
+
kwargs = _get_kwargs(
|
|
149
|
+
created=created,
|
|
150
|
+
finished=finished,
|
|
151
|
+
modified=modified,
|
|
152
|
+
o=o,
|
|
153
|
+
offering_uuid=offering_uuid,
|
|
154
|
+
page=page,
|
|
155
|
+
page_size=page_size,
|
|
156
|
+
started=started,
|
|
157
|
+
state=state,
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
response = client.get_httpx_client().request(
|
|
161
|
+
**kwargs,
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
return _build_response(client=client, response=response)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
def sync(
|
|
168
|
+
*,
|
|
169
|
+
client: AuthenticatedClient,
|
|
170
|
+
created: Union[Unset, datetime.datetime] = UNSET,
|
|
171
|
+
finished: Union[Unset, datetime.datetime] = UNSET,
|
|
172
|
+
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
173
|
+
o: Union[Unset, list[BackendResourceRequestsListOItem]] = UNSET,
|
|
174
|
+
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
175
|
+
page: Union[Unset, int] = UNSET,
|
|
176
|
+
page_size: Union[Unset, int] = UNSET,
|
|
177
|
+
started: Union[Unset, datetime.datetime] = UNSET,
|
|
178
|
+
state: Union[Unset, list[BackendResourceRequestsListStateItem]] = UNSET,
|
|
179
|
+
) -> list["BackendResourceReq"]:
|
|
180
|
+
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
181
|
+
|
|
182
|
+
Args:
|
|
183
|
+
created (Union[Unset, datetime.datetime]):
|
|
184
|
+
finished (Union[Unset, datetime.datetime]):
|
|
185
|
+
modified (Union[Unset, datetime.datetime]):
|
|
186
|
+
o (Union[Unset, list[BackendResourceRequestsListOItem]]):
|
|
187
|
+
offering_uuid (Union[Unset, UUID]):
|
|
188
|
+
page (Union[Unset, int]):
|
|
189
|
+
page_size (Union[Unset, int]):
|
|
190
|
+
started (Union[Unset, datetime.datetime]):
|
|
191
|
+
state (Union[Unset, list[BackendResourceRequestsListStateItem]]):
|
|
192
|
+
|
|
193
|
+
Raises:
|
|
194
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
195
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
196
|
+
|
|
197
|
+
Returns:
|
|
198
|
+
list['BackendResourceReq']
|
|
199
|
+
"""
|
|
200
|
+
|
|
201
|
+
return sync_detailed(
|
|
202
|
+
client=client,
|
|
203
|
+
created=created,
|
|
204
|
+
finished=finished,
|
|
205
|
+
modified=modified,
|
|
206
|
+
o=o,
|
|
207
|
+
offering_uuid=offering_uuid,
|
|
208
|
+
page=page,
|
|
209
|
+
page_size=page_size,
|
|
210
|
+
started=started,
|
|
211
|
+
state=state,
|
|
212
|
+
).parsed
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
async def asyncio_detailed(
|
|
216
|
+
*,
|
|
217
|
+
client: AuthenticatedClient,
|
|
218
|
+
created: Union[Unset, datetime.datetime] = UNSET,
|
|
219
|
+
finished: Union[Unset, datetime.datetime] = UNSET,
|
|
220
|
+
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
221
|
+
o: Union[Unset, list[BackendResourceRequestsListOItem]] = UNSET,
|
|
222
|
+
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
223
|
+
page: Union[Unset, int] = UNSET,
|
|
224
|
+
page_size: Union[Unset, int] = UNSET,
|
|
225
|
+
started: Union[Unset, datetime.datetime] = UNSET,
|
|
226
|
+
state: Union[Unset, list[BackendResourceRequestsListStateItem]] = UNSET,
|
|
227
|
+
) -> Response[list["BackendResourceReq"]]:
|
|
228
|
+
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
229
|
+
|
|
230
|
+
Args:
|
|
231
|
+
created (Union[Unset, datetime.datetime]):
|
|
232
|
+
finished (Union[Unset, datetime.datetime]):
|
|
233
|
+
modified (Union[Unset, datetime.datetime]):
|
|
234
|
+
o (Union[Unset, list[BackendResourceRequestsListOItem]]):
|
|
235
|
+
offering_uuid (Union[Unset, UUID]):
|
|
236
|
+
page (Union[Unset, int]):
|
|
237
|
+
page_size (Union[Unset, int]):
|
|
238
|
+
started (Union[Unset, datetime.datetime]):
|
|
239
|
+
state (Union[Unset, list[BackendResourceRequestsListStateItem]]):
|
|
240
|
+
|
|
241
|
+
Raises:
|
|
242
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
243
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
244
|
+
|
|
245
|
+
Returns:
|
|
246
|
+
Response[list['BackendResourceReq']]
|
|
247
|
+
"""
|
|
248
|
+
|
|
249
|
+
kwargs = _get_kwargs(
|
|
250
|
+
created=created,
|
|
251
|
+
finished=finished,
|
|
252
|
+
modified=modified,
|
|
253
|
+
o=o,
|
|
254
|
+
offering_uuid=offering_uuid,
|
|
255
|
+
page=page,
|
|
256
|
+
page_size=page_size,
|
|
257
|
+
started=started,
|
|
258
|
+
state=state,
|
|
259
|
+
)
|
|
260
|
+
|
|
261
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
262
|
+
|
|
263
|
+
return _build_response(client=client, response=response)
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
async def asyncio(
|
|
267
|
+
*,
|
|
268
|
+
client: AuthenticatedClient,
|
|
269
|
+
created: Union[Unset, datetime.datetime] = UNSET,
|
|
270
|
+
finished: Union[Unset, datetime.datetime] = UNSET,
|
|
271
|
+
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
272
|
+
o: Union[Unset, list[BackendResourceRequestsListOItem]] = UNSET,
|
|
273
|
+
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
274
|
+
page: Union[Unset, int] = UNSET,
|
|
275
|
+
page_size: Union[Unset, int] = UNSET,
|
|
276
|
+
started: Union[Unset, datetime.datetime] = UNSET,
|
|
277
|
+
state: Union[Unset, list[BackendResourceRequestsListStateItem]] = UNSET,
|
|
278
|
+
) -> list["BackendResourceReq"]:
|
|
279
|
+
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
280
|
+
|
|
281
|
+
Args:
|
|
282
|
+
created (Union[Unset, datetime.datetime]):
|
|
283
|
+
finished (Union[Unset, datetime.datetime]):
|
|
284
|
+
modified (Union[Unset, datetime.datetime]):
|
|
285
|
+
o (Union[Unset, list[BackendResourceRequestsListOItem]]):
|
|
286
|
+
offering_uuid (Union[Unset, UUID]):
|
|
287
|
+
page (Union[Unset, int]):
|
|
288
|
+
page_size (Union[Unset, int]):
|
|
289
|
+
started (Union[Unset, datetime.datetime]):
|
|
290
|
+
state (Union[Unset, list[BackendResourceRequestsListStateItem]]):
|
|
291
|
+
|
|
292
|
+
Raises:
|
|
293
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
294
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
295
|
+
|
|
296
|
+
Returns:
|
|
297
|
+
list['BackendResourceReq']
|
|
298
|
+
"""
|
|
299
|
+
|
|
300
|
+
return (
|
|
301
|
+
await asyncio_detailed(
|
|
302
|
+
client=client,
|
|
303
|
+
created=created,
|
|
304
|
+
finished=finished,
|
|
305
|
+
modified=modified,
|
|
306
|
+
o=o,
|
|
307
|
+
offering_uuid=offering_uuid,
|
|
308
|
+
page=page,
|
|
309
|
+
page_size=page_size,
|
|
310
|
+
started=started,
|
|
311
|
+
state=state,
|
|
312
|
+
)
|
|
313
|
+
).parsed
|
|
@@ -0,0 +1,142 @@
|
|
|
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.backend_resource_req import BackendResourceReq
|
|
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/backend-resource-requests/{uuid}/",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return _kwargs
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> BackendResourceReq:
|
|
25
|
+
if response.status_code == 200:
|
|
26
|
+
response_200 = BackendResourceReq.from_dict(response.json())
|
|
27
|
+
|
|
28
|
+
return response_200
|
|
29
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def _build_response(
|
|
33
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
34
|
+
) -> Response[BackendResourceReq]:
|
|
35
|
+
return Response(
|
|
36
|
+
status_code=HTTPStatus(response.status_code),
|
|
37
|
+
content=response.content,
|
|
38
|
+
headers=response.headers,
|
|
39
|
+
parsed=_parse_response(client=client, response=response),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def sync_detailed(
|
|
44
|
+
uuid: UUID,
|
|
45
|
+
*,
|
|
46
|
+
client: AuthenticatedClient,
|
|
47
|
+
) -> Response[BackendResourceReq]:
|
|
48
|
+
"""
|
|
49
|
+
Args:
|
|
50
|
+
uuid (UUID):
|
|
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[BackendResourceReq]
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
kwargs = _get_kwargs(
|
|
61
|
+
uuid=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
|
+
uuid: UUID,
|
|
73
|
+
*,
|
|
74
|
+
client: AuthenticatedClient,
|
|
75
|
+
) -> BackendResourceReq:
|
|
76
|
+
"""
|
|
77
|
+
Args:
|
|
78
|
+
uuid (UUID):
|
|
79
|
+
|
|
80
|
+
Raises:
|
|
81
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
82
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
83
|
+
|
|
84
|
+
Returns:
|
|
85
|
+
BackendResourceReq
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
return sync_detailed(
|
|
89
|
+
uuid=uuid,
|
|
90
|
+
client=client,
|
|
91
|
+
).parsed
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
async def asyncio_detailed(
|
|
95
|
+
uuid: UUID,
|
|
96
|
+
*,
|
|
97
|
+
client: AuthenticatedClient,
|
|
98
|
+
) -> Response[BackendResourceReq]:
|
|
99
|
+
"""
|
|
100
|
+
Args:
|
|
101
|
+
uuid (UUID):
|
|
102
|
+
|
|
103
|
+
Raises:
|
|
104
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
105
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
106
|
+
|
|
107
|
+
Returns:
|
|
108
|
+
Response[BackendResourceReq]
|
|
109
|
+
"""
|
|
110
|
+
|
|
111
|
+
kwargs = _get_kwargs(
|
|
112
|
+
uuid=uuid,
|
|
113
|
+
)
|
|
114
|
+
|
|
115
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
116
|
+
|
|
117
|
+
return _build_response(client=client, response=response)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
async def asyncio(
|
|
121
|
+
uuid: UUID,
|
|
122
|
+
*,
|
|
123
|
+
client: AuthenticatedClient,
|
|
124
|
+
) -> BackendResourceReq:
|
|
125
|
+
"""
|
|
126
|
+
Args:
|
|
127
|
+
uuid (UUID):
|
|
128
|
+
|
|
129
|
+
Raises:
|
|
130
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
131
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
132
|
+
|
|
133
|
+
Returns:
|
|
134
|
+
BackendResourceReq
|
|
135
|
+
"""
|
|
136
|
+
|
|
137
|
+
return (
|
|
138
|
+
await asyncio_detailed(
|
|
139
|
+
uuid=uuid,
|
|
140
|
+
client=client,
|
|
141
|
+
)
|
|
142
|
+
).parsed
|