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
|
@@ -0,0 +1,152 @@
|
|
|
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.offering_terms_of_service_create import OfferingTermsOfServiceCreate
|
|
9
|
+
from ...models.offering_terms_of_service_create_request import OfferingTermsOfServiceCreateRequest
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
*,
|
|
15
|
+
body: OfferingTermsOfServiceCreateRequest,
|
|
16
|
+
) -> dict[str, Any]:
|
|
17
|
+
headers: dict[str, Any] = {}
|
|
18
|
+
|
|
19
|
+
_kwargs: dict[str, Any] = {
|
|
20
|
+
"method": "post",
|
|
21
|
+
"url": "/api/marketplace-offering-terms-of-service/",
|
|
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(
|
|
33
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
34
|
+
) -> OfferingTermsOfServiceCreate:
|
|
35
|
+
if response.status_code == 201:
|
|
36
|
+
response_201 = OfferingTermsOfServiceCreate.from_dict(response.json())
|
|
37
|
+
|
|
38
|
+
return response_201
|
|
39
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def _build_response(
|
|
43
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
44
|
+
) -> Response[OfferingTermsOfServiceCreate]:
|
|
45
|
+
return Response(
|
|
46
|
+
status_code=HTTPStatus(response.status_code),
|
|
47
|
+
content=response.content,
|
|
48
|
+
headers=response.headers,
|
|
49
|
+
parsed=_parse_response(client=client, response=response),
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def sync_detailed(
|
|
54
|
+
*,
|
|
55
|
+
client: AuthenticatedClient,
|
|
56
|
+
body: OfferingTermsOfServiceCreateRequest,
|
|
57
|
+
) -> Response[OfferingTermsOfServiceCreate]:
|
|
58
|
+
"""
|
|
59
|
+
Args:
|
|
60
|
+
body (OfferingTermsOfServiceCreateRequest):
|
|
61
|
+
|
|
62
|
+
Raises:
|
|
63
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
64
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
65
|
+
|
|
66
|
+
Returns:
|
|
67
|
+
Response[OfferingTermsOfServiceCreate]
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
kwargs = _get_kwargs(
|
|
71
|
+
body=body,
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
response = client.get_httpx_client().request(
|
|
75
|
+
**kwargs,
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
return _build_response(client=client, response=response)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def sync(
|
|
82
|
+
*,
|
|
83
|
+
client: AuthenticatedClient,
|
|
84
|
+
body: OfferingTermsOfServiceCreateRequest,
|
|
85
|
+
) -> OfferingTermsOfServiceCreate:
|
|
86
|
+
"""
|
|
87
|
+
Args:
|
|
88
|
+
body (OfferingTermsOfServiceCreateRequest):
|
|
89
|
+
|
|
90
|
+
Raises:
|
|
91
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
92
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
93
|
+
|
|
94
|
+
Returns:
|
|
95
|
+
OfferingTermsOfServiceCreate
|
|
96
|
+
"""
|
|
97
|
+
|
|
98
|
+
return sync_detailed(
|
|
99
|
+
client=client,
|
|
100
|
+
body=body,
|
|
101
|
+
).parsed
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
async def asyncio_detailed(
|
|
105
|
+
*,
|
|
106
|
+
client: AuthenticatedClient,
|
|
107
|
+
body: OfferingTermsOfServiceCreateRequest,
|
|
108
|
+
) -> Response[OfferingTermsOfServiceCreate]:
|
|
109
|
+
"""
|
|
110
|
+
Args:
|
|
111
|
+
body (OfferingTermsOfServiceCreateRequest):
|
|
112
|
+
|
|
113
|
+
Raises:
|
|
114
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
115
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
116
|
+
|
|
117
|
+
Returns:
|
|
118
|
+
Response[OfferingTermsOfServiceCreate]
|
|
119
|
+
"""
|
|
120
|
+
|
|
121
|
+
kwargs = _get_kwargs(
|
|
122
|
+
body=body,
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
126
|
+
|
|
127
|
+
return _build_response(client=client, response=response)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
async def asyncio(
|
|
131
|
+
*,
|
|
132
|
+
client: AuthenticatedClient,
|
|
133
|
+
body: OfferingTermsOfServiceCreateRequest,
|
|
134
|
+
) -> OfferingTermsOfServiceCreate:
|
|
135
|
+
"""
|
|
136
|
+
Args:
|
|
137
|
+
body (OfferingTermsOfServiceCreateRequest):
|
|
138
|
+
|
|
139
|
+
Raises:
|
|
140
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
141
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
142
|
+
|
|
143
|
+
Returns:
|
|
144
|
+
OfferingTermsOfServiceCreate
|
|
145
|
+
"""
|
|
146
|
+
|
|
147
|
+
return (
|
|
148
|
+
await asyncio_detailed(
|
|
149
|
+
client=client,
|
|
150
|
+
body=body,
|
|
151
|
+
)
|
|
152
|
+
).parsed
|
|
@@ -0,0 +1,89 @@
|
|
|
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 ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
uuid: UUID,
|
|
14
|
+
) -> dict[str, Any]:
|
|
15
|
+
_kwargs: dict[str, Any] = {
|
|
16
|
+
"method": "delete",
|
|
17
|
+
"url": f"/api/marketplace-offering-terms-of-service/{uuid}/",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return _kwargs
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Any:
|
|
24
|
+
if response.status_code == 204:
|
|
25
|
+
return None
|
|
26
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
|
|
30
|
+
return Response(
|
|
31
|
+
status_code=HTTPStatus(response.status_code),
|
|
32
|
+
content=response.content,
|
|
33
|
+
headers=response.headers,
|
|
34
|
+
parsed=_parse_response(client=client, response=response),
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def sync_detailed(
|
|
39
|
+
uuid: UUID,
|
|
40
|
+
*,
|
|
41
|
+
client: AuthenticatedClient,
|
|
42
|
+
) -> Response[Any]:
|
|
43
|
+
"""
|
|
44
|
+
Args:
|
|
45
|
+
uuid (UUID):
|
|
46
|
+
|
|
47
|
+
Raises:
|
|
48
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
49
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
50
|
+
|
|
51
|
+
Returns:
|
|
52
|
+
Response[Any]
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
kwargs = _get_kwargs(
|
|
56
|
+
uuid=uuid,
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
response = client.get_httpx_client().request(
|
|
60
|
+
**kwargs,
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
return _build_response(client=client, response=response)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
async def asyncio_detailed(
|
|
67
|
+
uuid: UUID,
|
|
68
|
+
*,
|
|
69
|
+
client: AuthenticatedClient,
|
|
70
|
+
) -> Response[Any]:
|
|
71
|
+
"""
|
|
72
|
+
Args:
|
|
73
|
+
uuid (UUID):
|
|
74
|
+
|
|
75
|
+
Raises:
|
|
76
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
77
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
78
|
+
|
|
79
|
+
Returns:
|
|
80
|
+
Response[Any]
|
|
81
|
+
"""
|
|
82
|
+
|
|
83
|
+
kwargs = _get_kwargs(
|
|
84
|
+
uuid=uuid,
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
88
|
+
|
|
89
|
+
return _build_response(client=client, response=response)
|
|
@@ -0,0 +1,277 @@
|
|
|
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_offering_terms_of_service_list_o_item import MarketplaceOfferingTermsOfServiceListOItem
|
|
10
|
+
from ...models.offering_terms_of_service import OfferingTermsOfService
|
|
11
|
+
from ...types import UNSET, Response, Unset
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
*,
|
|
16
|
+
is_active: Union[Unset, bool] = UNSET,
|
|
17
|
+
o: Union[Unset, list[MarketplaceOfferingTermsOfServiceListOItem]] = UNSET,
|
|
18
|
+
offering: Union[Unset, str] = UNSET,
|
|
19
|
+
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
20
|
+
page: Union[Unset, int] = UNSET,
|
|
21
|
+
page_size: Union[Unset, int] = UNSET,
|
|
22
|
+
requires_reconsent: Union[Unset, bool] = UNSET,
|
|
23
|
+
version: Union[Unset, str] = UNSET,
|
|
24
|
+
) -> dict[str, Any]:
|
|
25
|
+
params: dict[str, Any] = {}
|
|
26
|
+
|
|
27
|
+
params["is_active"] = is_active
|
|
28
|
+
|
|
29
|
+
json_o: Union[Unset, list[str]] = UNSET
|
|
30
|
+
if not isinstance(o, Unset):
|
|
31
|
+
json_o = []
|
|
32
|
+
for o_item_data in o:
|
|
33
|
+
o_item = o_item_data.value
|
|
34
|
+
json_o.append(o_item)
|
|
35
|
+
|
|
36
|
+
params["o"] = json_o
|
|
37
|
+
|
|
38
|
+
params["offering"] = offering
|
|
39
|
+
|
|
40
|
+
json_offering_uuid: Union[Unset, str] = UNSET
|
|
41
|
+
if not isinstance(offering_uuid, Unset):
|
|
42
|
+
json_offering_uuid = str(offering_uuid)
|
|
43
|
+
params["offering_uuid"] = json_offering_uuid
|
|
44
|
+
|
|
45
|
+
params["page"] = page
|
|
46
|
+
|
|
47
|
+
params["page_size"] = page_size
|
|
48
|
+
|
|
49
|
+
params["requires_reconsent"] = requires_reconsent
|
|
50
|
+
|
|
51
|
+
params["version"] = version
|
|
52
|
+
|
|
53
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
54
|
+
|
|
55
|
+
_kwargs: dict[str, Any] = {
|
|
56
|
+
"method": "get",
|
|
57
|
+
"url": "/api/marketplace-offering-terms-of-service/",
|
|
58
|
+
"params": params,
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return _kwargs
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def _parse_response(
|
|
65
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
66
|
+
) -> list["OfferingTermsOfService"]:
|
|
67
|
+
if response.status_code == 200:
|
|
68
|
+
response_200 = []
|
|
69
|
+
_response_200 = response.json()
|
|
70
|
+
for response_200_item_data in _response_200:
|
|
71
|
+
response_200_item = OfferingTermsOfService.from_dict(response_200_item_data)
|
|
72
|
+
|
|
73
|
+
response_200.append(response_200_item)
|
|
74
|
+
|
|
75
|
+
return response_200
|
|
76
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def _build_response(
|
|
80
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
81
|
+
) -> Response[list["OfferingTermsOfService"]]:
|
|
82
|
+
return Response(
|
|
83
|
+
status_code=HTTPStatus(response.status_code),
|
|
84
|
+
content=response.content,
|
|
85
|
+
headers=response.headers,
|
|
86
|
+
parsed=_parse_response(client=client, response=response),
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def sync_detailed(
|
|
91
|
+
*,
|
|
92
|
+
client: AuthenticatedClient,
|
|
93
|
+
is_active: Union[Unset, bool] = UNSET,
|
|
94
|
+
o: Union[Unset, list[MarketplaceOfferingTermsOfServiceListOItem]] = UNSET,
|
|
95
|
+
offering: Union[Unset, str] = UNSET,
|
|
96
|
+
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
97
|
+
page: Union[Unset, int] = UNSET,
|
|
98
|
+
page_size: Union[Unset, int] = UNSET,
|
|
99
|
+
requires_reconsent: Union[Unset, bool] = UNSET,
|
|
100
|
+
version: Union[Unset, str] = UNSET,
|
|
101
|
+
) -> Response[list["OfferingTermsOfService"]]:
|
|
102
|
+
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
103
|
+
|
|
104
|
+
Args:
|
|
105
|
+
is_active (Union[Unset, bool]):
|
|
106
|
+
o (Union[Unset, list[MarketplaceOfferingTermsOfServiceListOItem]]):
|
|
107
|
+
offering (Union[Unset, str]):
|
|
108
|
+
offering_uuid (Union[Unset, UUID]):
|
|
109
|
+
page (Union[Unset, int]):
|
|
110
|
+
page_size (Union[Unset, int]):
|
|
111
|
+
requires_reconsent (Union[Unset, bool]):
|
|
112
|
+
version (Union[Unset, str]):
|
|
113
|
+
|
|
114
|
+
Raises:
|
|
115
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
116
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
117
|
+
|
|
118
|
+
Returns:
|
|
119
|
+
Response[list['OfferingTermsOfService']]
|
|
120
|
+
"""
|
|
121
|
+
|
|
122
|
+
kwargs = _get_kwargs(
|
|
123
|
+
is_active=is_active,
|
|
124
|
+
o=o,
|
|
125
|
+
offering=offering,
|
|
126
|
+
offering_uuid=offering_uuid,
|
|
127
|
+
page=page,
|
|
128
|
+
page_size=page_size,
|
|
129
|
+
requires_reconsent=requires_reconsent,
|
|
130
|
+
version=version,
|
|
131
|
+
)
|
|
132
|
+
|
|
133
|
+
response = client.get_httpx_client().request(
|
|
134
|
+
**kwargs,
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
return _build_response(client=client, response=response)
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
def sync(
|
|
141
|
+
*,
|
|
142
|
+
client: AuthenticatedClient,
|
|
143
|
+
is_active: Union[Unset, bool] = UNSET,
|
|
144
|
+
o: Union[Unset, list[MarketplaceOfferingTermsOfServiceListOItem]] = UNSET,
|
|
145
|
+
offering: Union[Unset, str] = UNSET,
|
|
146
|
+
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
147
|
+
page: Union[Unset, int] = UNSET,
|
|
148
|
+
page_size: Union[Unset, int] = UNSET,
|
|
149
|
+
requires_reconsent: Union[Unset, bool] = UNSET,
|
|
150
|
+
version: Union[Unset, str] = UNSET,
|
|
151
|
+
) -> list["OfferingTermsOfService"]:
|
|
152
|
+
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
153
|
+
|
|
154
|
+
Args:
|
|
155
|
+
is_active (Union[Unset, bool]):
|
|
156
|
+
o (Union[Unset, list[MarketplaceOfferingTermsOfServiceListOItem]]):
|
|
157
|
+
offering (Union[Unset, str]):
|
|
158
|
+
offering_uuid (Union[Unset, UUID]):
|
|
159
|
+
page (Union[Unset, int]):
|
|
160
|
+
page_size (Union[Unset, int]):
|
|
161
|
+
requires_reconsent (Union[Unset, bool]):
|
|
162
|
+
version (Union[Unset, str]):
|
|
163
|
+
|
|
164
|
+
Raises:
|
|
165
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
166
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
167
|
+
|
|
168
|
+
Returns:
|
|
169
|
+
list['OfferingTermsOfService']
|
|
170
|
+
"""
|
|
171
|
+
|
|
172
|
+
return sync_detailed(
|
|
173
|
+
client=client,
|
|
174
|
+
is_active=is_active,
|
|
175
|
+
o=o,
|
|
176
|
+
offering=offering,
|
|
177
|
+
offering_uuid=offering_uuid,
|
|
178
|
+
page=page,
|
|
179
|
+
page_size=page_size,
|
|
180
|
+
requires_reconsent=requires_reconsent,
|
|
181
|
+
version=version,
|
|
182
|
+
).parsed
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
async def asyncio_detailed(
|
|
186
|
+
*,
|
|
187
|
+
client: AuthenticatedClient,
|
|
188
|
+
is_active: Union[Unset, bool] = UNSET,
|
|
189
|
+
o: Union[Unset, list[MarketplaceOfferingTermsOfServiceListOItem]] = UNSET,
|
|
190
|
+
offering: Union[Unset, str] = UNSET,
|
|
191
|
+
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
192
|
+
page: Union[Unset, int] = UNSET,
|
|
193
|
+
page_size: Union[Unset, int] = UNSET,
|
|
194
|
+
requires_reconsent: Union[Unset, bool] = UNSET,
|
|
195
|
+
version: Union[Unset, str] = UNSET,
|
|
196
|
+
) -> Response[list["OfferingTermsOfService"]]:
|
|
197
|
+
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
198
|
+
|
|
199
|
+
Args:
|
|
200
|
+
is_active (Union[Unset, bool]):
|
|
201
|
+
o (Union[Unset, list[MarketplaceOfferingTermsOfServiceListOItem]]):
|
|
202
|
+
offering (Union[Unset, str]):
|
|
203
|
+
offering_uuid (Union[Unset, UUID]):
|
|
204
|
+
page (Union[Unset, int]):
|
|
205
|
+
page_size (Union[Unset, int]):
|
|
206
|
+
requires_reconsent (Union[Unset, bool]):
|
|
207
|
+
version (Union[Unset, str]):
|
|
208
|
+
|
|
209
|
+
Raises:
|
|
210
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
211
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
212
|
+
|
|
213
|
+
Returns:
|
|
214
|
+
Response[list['OfferingTermsOfService']]
|
|
215
|
+
"""
|
|
216
|
+
|
|
217
|
+
kwargs = _get_kwargs(
|
|
218
|
+
is_active=is_active,
|
|
219
|
+
o=o,
|
|
220
|
+
offering=offering,
|
|
221
|
+
offering_uuid=offering_uuid,
|
|
222
|
+
page=page,
|
|
223
|
+
page_size=page_size,
|
|
224
|
+
requires_reconsent=requires_reconsent,
|
|
225
|
+
version=version,
|
|
226
|
+
)
|
|
227
|
+
|
|
228
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
229
|
+
|
|
230
|
+
return _build_response(client=client, response=response)
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
async def asyncio(
|
|
234
|
+
*,
|
|
235
|
+
client: AuthenticatedClient,
|
|
236
|
+
is_active: Union[Unset, bool] = UNSET,
|
|
237
|
+
o: Union[Unset, list[MarketplaceOfferingTermsOfServiceListOItem]] = UNSET,
|
|
238
|
+
offering: Union[Unset, str] = UNSET,
|
|
239
|
+
offering_uuid: Union[Unset, UUID] = UNSET,
|
|
240
|
+
page: Union[Unset, int] = UNSET,
|
|
241
|
+
page_size: Union[Unset, int] = UNSET,
|
|
242
|
+
requires_reconsent: Union[Unset, bool] = UNSET,
|
|
243
|
+
version: Union[Unset, str] = UNSET,
|
|
244
|
+
) -> list["OfferingTermsOfService"]:
|
|
245
|
+
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
246
|
+
|
|
247
|
+
Args:
|
|
248
|
+
is_active (Union[Unset, bool]):
|
|
249
|
+
o (Union[Unset, list[MarketplaceOfferingTermsOfServiceListOItem]]):
|
|
250
|
+
offering (Union[Unset, str]):
|
|
251
|
+
offering_uuid (Union[Unset, UUID]):
|
|
252
|
+
page (Union[Unset, int]):
|
|
253
|
+
page_size (Union[Unset, int]):
|
|
254
|
+
requires_reconsent (Union[Unset, bool]):
|
|
255
|
+
version (Union[Unset, str]):
|
|
256
|
+
|
|
257
|
+
Raises:
|
|
258
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
259
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
260
|
+
|
|
261
|
+
Returns:
|
|
262
|
+
list['OfferingTermsOfService']
|
|
263
|
+
"""
|
|
264
|
+
|
|
265
|
+
return (
|
|
266
|
+
await asyncio_detailed(
|
|
267
|
+
client=client,
|
|
268
|
+
is_active=is_active,
|
|
269
|
+
o=o,
|
|
270
|
+
offering=offering,
|
|
271
|
+
offering_uuid=offering_uuid,
|
|
272
|
+
page=page,
|
|
273
|
+
page_size=page_size,
|
|
274
|
+
requires_reconsent=requires_reconsent,
|
|
275
|
+
version=version,
|
|
276
|
+
)
|
|
277
|
+
).parsed
|
|
@@ -0,0 +1,164 @@
|
|
|
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.offering_terms_of_service import OfferingTermsOfService
|
|
10
|
+
from ...models.patched_offering_terms_of_service_request import PatchedOfferingTermsOfServiceRequest
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
uuid: UUID,
|
|
16
|
+
*,
|
|
17
|
+
body: PatchedOfferingTermsOfServiceRequest,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
headers: dict[str, Any] = {}
|
|
20
|
+
|
|
21
|
+
_kwargs: dict[str, Any] = {
|
|
22
|
+
"method": "patch",
|
|
23
|
+
"url": f"/api/marketplace-offering-terms-of-service/{uuid}/",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
_kwargs["json"] = body.to_dict()
|
|
27
|
+
|
|
28
|
+
headers["Content-Type"] = "application/json"
|
|
29
|
+
|
|
30
|
+
_kwargs["headers"] = headers
|
|
31
|
+
return _kwargs
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> OfferingTermsOfService:
|
|
35
|
+
if response.status_code == 200:
|
|
36
|
+
response_200 = OfferingTermsOfService.from_dict(response.json())
|
|
37
|
+
|
|
38
|
+
return response_200
|
|
39
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def _build_response(
|
|
43
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
44
|
+
) -> Response[OfferingTermsOfService]:
|
|
45
|
+
return Response(
|
|
46
|
+
status_code=HTTPStatus(response.status_code),
|
|
47
|
+
content=response.content,
|
|
48
|
+
headers=response.headers,
|
|
49
|
+
parsed=_parse_response(client=client, response=response),
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def sync_detailed(
|
|
54
|
+
uuid: UUID,
|
|
55
|
+
*,
|
|
56
|
+
client: AuthenticatedClient,
|
|
57
|
+
body: PatchedOfferingTermsOfServiceRequest,
|
|
58
|
+
) -> Response[OfferingTermsOfService]:
|
|
59
|
+
"""
|
|
60
|
+
Args:
|
|
61
|
+
uuid (UUID):
|
|
62
|
+
body (PatchedOfferingTermsOfServiceRequest):
|
|
63
|
+
|
|
64
|
+
Raises:
|
|
65
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
66
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
67
|
+
|
|
68
|
+
Returns:
|
|
69
|
+
Response[OfferingTermsOfService]
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
kwargs = _get_kwargs(
|
|
73
|
+
uuid=uuid,
|
|
74
|
+
body=body,
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
response = client.get_httpx_client().request(
|
|
78
|
+
**kwargs,
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
return _build_response(client=client, response=response)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
def sync(
|
|
85
|
+
uuid: UUID,
|
|
86
|
+
*,
|
|
87
|
+
client: AuthenticatedClient,
|
|
88
|
+
body: PatchedOfferingTermsOfServiceRequest,
|
|
89
|
+
) -> OfferingTermsOfService:
|
|
90
|
+
"""
|
|
91
|
+
Args:
|
|
92
|
+
uuid (UUID):
|
|
93
|
+
body (PatchedOfferingTermsOfServiceRequest):
|
|
94
|
+
|
|
95
|
+
Raises:
|
|
96
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
97
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
98
|
+
|
|
99
|
+
Returns:
|
|
100
|
+
OfferingTermsOfService
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
return sync_detailed(
|
|
104
|
+
uuid=uuid,
|
|
105
|
+
client=client,
|
|
106
|
+
body=body,
|
|
107
|
+
).parsed
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
async def asyncio_detailed(
|
|
111
|
+
uuid: UUID,
|
|
112
|
+
*,
|
|
113
|
+
client: AuthenticatedClient,
|
|
114
|
+
body: PatchedOfferingTermsOfServiceRequest,
|
|
115
|
+
) -> Response[OfferingTermsOfService]:
|
|
116
|
+
"""
|
|
117
|
+
Args:
|
|
118
|
+
uuid (UUID):
|
|
119
|
+
body (PatchedOfferingTermsOfServiceRequest):
|
|
120
|
+
|
|
121
|
+
Raises:
|
|
122
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
123
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
124
|
+
|
|
125
|
+
Returns:
|
|
126
|
+
Response[OfferingTermsOfService]
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
kwargs = _get_kwargs(
|
|
130
|
+
uuid=uuid,
|
|
131
|
+
body=body,
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
135
|
+
|
|
136
|
+
return _build_response(client=client, response=response)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
async def asyncio(
|
|
140
|
+
uuid: UUID,
|
|
141
|
+
*,
|
|
142
|
+
client: AuthenticatedClient,
|
|
143
|
+
body: PatchedOfferingTermsOfServiceRequest,
|
|
144
|
+
) -> OfferingTermsOfService:
|
|
145
|
+
"""
|
|
146
|
+
Args:
|
|
147
|
+
uuid (UUID):
|
|
148
|
+
body (PatchedOfferingTermsOfServiceRequest):
|
|
149
|
+
|
|
150
|
+
Raises:
|
|
151
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
152
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
153
|
+
|
|
154
|
+
Returns:
|
|
155
|
+
OfferingTermsOfService
|
|
156
|
+
"""
|
|
157
|
+
|
|
158
|
+
return (
|
|
159
|
+
await asyncio_detailed(
|
|
160
|
+
uuid=uuid,
|
|
161
|
+
client=client,
|
|
162
|
+
body=body,
|
|
163
|
+
)
|
|
164
|
+
).parsed
|