waldur-api-client 7.7.6__py3-none-any.whl → 7.7.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/booking_resources/booking_resources_count.py +34 -11
- waldur_api_client/api/booking_resources/booking_resources_list.py +34 -11
- waldur_api_client/api/customer_permissions_reviews/customer_permissions_reviews_count.py +19 -0
- waldur_api_client/api/customer_permissions_reviews/customer_permissions_reviews_list.py +19 -0
- 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/customers/customers_users_list.py +141 -53
- waldur_api_client/api/invoices/invoices_items_retrieve.py +20 -0
- waldur_api_client/api/managed_rancher_cluster_resources/__init__.py +1 -0
- waldur_api_client/api/managed_rancher_cluster_resources/managed_rancher_cluster_resources_add_node.py +162 -0
- waldur_api_client/api/managed_rancher_cluster_resources/managed_rancher_cluster_resources_count.py +172 -0
- waldur_api_client/api/managed_rancher_cluster_resources/managed_rancher_cluster_resources_list.py +196 -0
- waldur_api_client/api/managed_rancher_cluster_resources/managed_rancher_cluster_resources_retrieve.py +171 -0
- waldur_api_client/api/marketplace_course_accounts/__init__.py +1 -0
- waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_count.py +244 -0
- waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_create.py +148 -0
- waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_create_bulk.py +152 -0
- waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_destroy.py +89 -0
- waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_list.py +245 -0
- waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_retrieve.py +140 -0
- waldur_api_client/api/marketplace_customer_service_accounts/marketplace_customer_service_accounts_count.py +25 -0
- waldur_api_client/api/marketplace_customer_service_accounts/marketplace_customer_service_accounts_list.py +25 -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_count.py +34 -11
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_list.py +34 -11
- 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_project_service_accounts/marketplace_project_service_accounts_count.py +25 -0
- waldur_api_client/api/marketplace_project_service_accounts/marketplace_project_service_accounts_list.py +25 -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_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_course_accounts_list.py +284 -0
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_project_service_accounts_list.py +29 -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/project_permissions_reviews/__init__.py +1 -0
- waldur_api_client/api/project_permissions_reviews/project_permissions_reviews_close.py +91 -0
- waldur_api_client/api/project_permissions_reviews/project_permissions_reviews_count.py +266 -0
- waldur_api_client/api/project_permissions_reviews/project_permissions_reviews_list.py +269 -0
- waldur_api_client/api/project_permissions_reviews/project_permissions_reviews_retrieve.py +142 -0
- waldur_api_client/api/projects/projects_other_users_list.py +98 -23
- waldur_api_client/api/projects/projects_sync_user_roles.py +10 -9
- 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/api/support_issue_statuses/__init__.py +1 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_count.py +172 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_create.py +148 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_destroy.py +89 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_list.py +173 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_partial_update.py +162 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_retrieve.py +140 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_update.py +162 -0
- waldur_api_client/api/user_group_invitations/user_group_invitations_submit_request.py +12 -12
- waldur_api_client/api/user_invitations/user_invitations_count.py +30 -0
- waldur_api_client/api/user_invitations/user_invitations_list.py +30 -0
- waldur_api_client/api/user_permission_requests/user_permission_requests_cancel_request.py +146 -0
- waldur_api_client/models/__init__.py +136 -2
- waldur_api_client/models/azure_sql_server_create_order_attributes.py +3 -0
- waldur_api_client/models/azure_virtual_machine_create_order_attributes.py +3 -0
- waldur_api_client/models/booking_offerings_list_field_item.py +0 -2
- waldur_api_client/models/booking_offerings_retrieve_field_item.py +0 -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/cancel_request_response.py +75 -0
- waldur_api_client/models/checklist_info.py +76 -0
- waldur_api_client/models/compliance_overview.py +91 -0
- waldur_api_client/models/constance_settings.py +9 -0
- waldur_api_client/models/constance_settings_request.py +9 -0
- waldur_api_client/models/course_account.py +188 -0
- waldur_api_client/models/course_account_create_nested.py +68 -0
- waldur_api_client/models/course_account_create_nested_request.py +68 -0
- waldur_api_client/models/course_account_request.py +89 -0
- waldur_api_client/models/course_accounts_bulk_create.py +82 -0
- waldur_api_client/models/course_accounts_bulk_create_request.py +82 -0
- waldur_api_client/models/customer.py +90 -0
- waldur_api_client/models/customer_permission_review.py +16 -16
- waldur_api_client/models/customer_request.py +9 -0
- waldur_api_client/models/customer_service_account.py +9 -0
- waldur_api_client/models/customers_list_field_item.py +5 -0
- waldur_api_client/models/customers_retrieve_field_item.py +5 -0
- waldur_api_client/models/customers_users_list_o.py +9 -0
- waldur_api_client/models/customers_users_list_organization_role_item_type_0.py +10 -0
- waldur_api_client/models/customers_users_list_project_role_item_type_0.py +10 -0
- waldur_api_client/models/dependency_logic_operator_enum.py +9 -0
- waldur_api_client/models/event_subscription.py +1 -1
- waldur_api_client/models/event_types_enum.py +4 -0
- 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 +33 -0
- waldur_api_client/models/group_invitation_request.py +10 -0
- waldur_api_client/models/invitation.py +9 -0
- waldur_api_client/models/invoices_items_retrieve_o.py +15 -0
- waldur_api_client/models/issue_status.py +103 -0
- waldur_api_client/models/issue_status_request.py +78 -0
- waldur_api_client/models/issue_status_type_enum.py +9 -0
- waldur_api_client/models/kind_enum.py +10 -0
- waldur_api_client/models/maintenance_announcement.py +8 -0
- waldur_api_client/models/managed_rancher_cluster_resources_list_field_item.py +82 -0
- waldur_api_client/models/managed_rancher_cluster_resources_retrieve_field_item.py +82 -0
- waldur_api_client/models/managed_rancher_create_node_request.py +186 -0
- waldur_api_client/models/marketplace_course_accounts_count_state_item.py +10 -0
- waldur_api_client/models/marketplace_course_accounts_list_state_item.py +10 -0
- waldur_api_client/models/marketplace_customer_service_accounts_count_state_item.py +10 -0
- waldur_api_client/models/marketplace_customer_service_accounts_list_state_item.py +10 -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_project_service_accounts_count_state_item.py +10 -0
- waldur_api_client/models/marketplace_project_service_accounts_list_state_item.py +10 -0
- waldur_api_client/models/marketplace_provider_offerings_list_customer_service_accounts_retrieve_field_item.py +0 -2
- waldur_api_client/models/marketplace_provider_offerings_list_field_item.py +0 -2
- waldur_api_client/models/marketplace_provider_offerings_list_project_service_accounts_retrieve_field_item.py +0 -2
- waldur_api_client/models/marketplace_provider_offerings_retrieve_field_item.py +0 -2
- waldur_api_client/models/marketplace_provider_offerings_stats_retrieve_field_item.py +0 -2
- waldur_api_client/models/marketplace_provider_offerings_user_has_resource_access_retrieve_field_item.py +0 -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 +0 -2
- waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +0 -2
- waldur_api_client/models/marketplace_rancher_create_order_attributes.py +3 -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_service_providers_course_accounts_list_state_item.py +10 -0
- waldur_api_client/models/marketplace_service_providers_list_field_item.py +1 -0
- waldur_api_client/models/marketplace_service_providers_project_service_accounts_list_state_item.py +10 -0
- waldur_api_client/models/marketplace_service_providers_projects_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/nested_security_group_rule.py +223 -0
- waldur_api_client/models/nested_security_group_rule_request.py +188 -0
- waldur_api_client/models/offering.py +0 -18
- waldur_api_client/models/offering_create.py +0 -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_backup_restoration_request.py +0 -22
- waldur_api_client/models/open_stack_fixed_ip.py +13 -3
- waldur_api_client/models/open_stack_fixed_ip_request.py +7 -2
- waldur_api_client/models/open_stack_instance_create_order_attributes.py +23 -20
- waldur_api_client/models/open_stack_nested_security_group.py +53 -1
- waldur_api_client/models/open_stack_network.py +20 -0
- waldur_api_client/models/open_stack_port_ip_update_request.py +6 -2
- waldur_api_client/models/open_stack_security_group_rule_update_request.py +4 -4
- waldur_api_client/models/open_stack_static_route.py +13 -4
- waldur_api_client/models/open_stack_static_route_request.py +7 -3
- waldur_api_client/models/open_stack_sub_net.py +15 -2
- waldur_api_client/models/open_stack_sub_net_allocation_pool.py +27 -8
- waldur_api_client/models/open_stack_sub_net_allocation_pool_request.py +14 -5
- waldur_api_client/models/open_stack_sub_net_request.py +15 -2
- waldur_api_client/models/open_stack_tenant.py +38 -0
- waldur_api_client/models/open_stack_tenant_create_order_attributes.py +21 -0
- waldur_api_client/models/open_stack_volume_create_order_attributes.py +3 -0
- 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 +23 -7
- waldur_api_client/models/order_details.py +0 -9
- waldur_api_client/models/patched_customer_request.py +9 -0
- waldur_api_client/models/patched_issue_status_request.py +76 -0
- waldur_api_client/models/patched_offering_terms_of_service_request.py +96 -0
- waldur_api_client/models/patched_open_stack_sub_net_request.py +15 -2
- waldur_api_client/models/patched_project_request.py +17 -0
- waldur_api_client/models/patched_question_admin_request.py +17 -0
- waldur_api_client/models/patched_rancher_service_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 +16 -0
- waldur_api_client/models/project.py +17 -0
- 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/project_permission_review.py +166 -0
- waldur_api_client/models/project_permissions_reviews_count_o_item.py +11 -0
- waldur_api_client/models/project_permissions_reviews_list_o_item.py +11 -0
- waldur_api_client/models/project_request.py +17 -0
- waldur_api_client/models/project_service_account.py +9 -0
- waldur_api_client/models/projects_list_field_item.py +1 -0
- waldur_api_client/models/projects_other_users_list_o.py +9 -0
- waldur_api_client/models/projects_retrieve_field_item.py +1 -0
- waldur_api_client/models/proposal.py +8 -0
- waldur_api_client/models/proposal_review.py +8 -0
- waldur_api_client/models/provider_offering_details.py +0 -18
- waldur_api_client/models/provider_offering_details_request.py +0 -18
- waldur_api_client/models/public_offering_details.py +0 -18
- waldur_api_client/models/question_admin.py +17 -0
- waldur_api_client/models/question_admin_request.py +17 -0
- 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_nested_public_ip.py +25 -7
- waldur_api_client/models/rancher_service.py +1 -1
- waldur_api_client/models/rancher_service_request.py +1 -1
- 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/{robot_account_states.py → remote_resource_sync_status_remote_state_enum.py} +1 -1
- waldur_api_client/models/remote_resource_team_member.py +85 -0
- waldur_api_client/models/resource.py +10 -9
- waldur_api_client/models/rmq_connection.py +8 -3
- waldur_api_client/models/rmq_subscription.py +7 -3
- waldur_api_client/models/robot_account.py +9 -17
- waldur_api_client/models/robot_account_details.py +9 -17
- waldur_api_client/models/service_account_state.py +10 -0
- waldur_api_client/models/service_provider.py +9 -0
- waldur_api_client/models/slurm_invoices_slurm_package_create_order_attributes.py +3 -0
- waldur_api_client/models/submit_request_response.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 +3 -0
- waldur_api_client/models/visible_invitation_details.py +9 -0
- {waldur_api_client-7.7.6.dist-info → waldur_api_client-7.7.8.dist-info}/METADATA +1 -1
- {waldur_api_client-7.7.6.dist-info → waldur_api_client-7.7.8.dist-info}/RECORD +261 -145
- {waldur_api_client-7.7.6.dist-info → waldur_api_client-7.7.8.dist-info}/LICENSE +0 -0
- {waldur_api_client-7.7.6.dist-info → waldur_api_client-7.7.8.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,187 @@
|
|
|
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.question_answer import QuestionAnswer
|
|
10
|
+
from ...types import UNSET, Response, Unset
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
customer_uuid: UUID,
|
|
15
|
+
*,
|
|
16
|
+
page: Union[Unset, int] = UNSET,
|
|
17
|
+
page_size: Union[Unset, int] = UNSET,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
params: dict[str, Any] = {}
|
|
20
|
+
|
|
21
|
+
params["page"] = page
|
|
22
|
+
|
|
23
|
+
params["page_size"] = page_size
|
|
24
|
+
|
|
25
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
26
|
+
|
|
27
|
+
_kwargs: dict[str, Any] = {
|
|
28
|
+
"method": "get",
|
|
29
|
+
"url": f"/api/customers/{customer_uuid}/project-metadata-question-answers/",
|
|
30
|
+
"params": params,
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return _kwargs
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> list["QuestionAnswer"]:
|
|
37
|
+
if response.status_code == 200:
|
|
38
|
+
response_200 = []
|
|
39
|
+
_response_200 = response.json()
|
|
40
|
+
for response_200_item_data in _response_200:
|
|
41
|
+
response_200_item = QuestionAnswer.from_dict(response_200_item_data)
|
|
42
|
+
|
|
43
|
+
response_200.append(response_200_item)
|
|
44
|
+
|
|
45
|
+
return response_200
|
|
46
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def _build_response(
|
|
50
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
51
|
+
) -> Response[list["QuestionAnswer"]]:
|
|
52
|
+
return Response(
|
|
53
|
+
status_code=HTTPStatus(response.status_code),
|
|
54
|
+
content=response.content,
|
|
55
|
+
headers=response.headers,
|
|
56
|
+
parsed=_parse_response(client=client, response=response),
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def sync_detailed(
|
|
61
|
+
customer_uuid: UUID,
|
|
62
|
+
*,
|
|
63
|
+
client: AuthenticatedClient,
|
|
64
|
+
page: Union[Unset, int] = UNSET,
|
|
65
|
+
page_size: Union[Unset, int] = UNSET,
|
|
66
|
+
) -> Response[list["QuestionAnswer"]]:
|
|
67
|
+
"""List questions with project answers, paginated by question at database level.
|
|
68
|
+
|
|
69
|
+
Args:
|
|
70
|
+
customer_uuid (UUID):
|
|
71
|
+
page (Union[Unset, int]):
|
|
72
|
+
page_size (Union[Unset, int]):
|
|
73
|
+
|
|
74
|
+
Raises:
|
|
75
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
76
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
77
|
+
|
|
78
|
+
Returns:
|
|
79
|
+
Response[list['QuestionAnswer']]
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
kwargs = _get_kwargs(
|
|
83
|
+
customer_uuid=customer_uuid,
|
|
84
|
+
page=page,
|
|
85
|
+
page_size=page_size,
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
response = client.get_httpx_client().request(
|
|
89
|
+
**kwargs,
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
return _build_response(client=client, response=response)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def sync(
|
|
96
|
+
customer_uuid: UUID,
|
|
97
|
+
*,
|
|
98
|
+
client: AuthenticatedClient,
|
|
99
|
+
page: Union[Unset, int] = UNSET,
|
|
100
|
+
page_size: Union[Unset, int] = UNSET,
|
|
101
|
+
) -> list["QuestionAnswer"]:
|
|
102
|
+
"""List questions with project answers, paginated by question at database level.
|
|
103
|
+
|
|
104
|
+
Args:
|
|
105
|
+
customer_uuid (UUID):
|
|
106
|
+
page (Union[Unset, int]):
|
|
107
|
+
page_size (Union[Unset, int]):
|
|
108
|
+
|
|
109
|
+
Raises:
|
|
110
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
111
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
112
|
+
|
|
113
|
+
Returns:
|
|
114
|
+
list['QuestionAnswer']
|
|
115
|
+
"""
|
|
116
|
+
|
|
117
|
+
return sync_detailed(
|
|
118
|
+
customer_uuid=customer_uuid,
|
|
119
|
+
client=client,
|
|
120
|
+
page=page,
|
|
121
|
+
page_size=page_size,
|
|
122
|
+
).parsed
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
async def asyncio_detailed(
|
|
126
|
+
customer_uuid: UUID,
|
|
127
|
+
*,
|
|
128
|
+
client: AuthenticatedClient,
|
|
129
|
+
page: Union[Unset, int] = UNSET,
|
|
130
|
+
page_size: Union[Unset, int] = UNSET,
|
|
131
|
+
) -> Response[list["QuestionAnswer"]]:
|
|
132
|
+
"""List questions with project answers, paginated by question at database level.
|
|
133
|
+
|
|
134
|
+
Args:
|
|
135
|
+
customer_uuid (UUID):
|
|
136
|
+
page (Union[Unset, int]):
|
|
137
|
+
page_size (Union[Unset, int]):
|
|
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
|
+
Response[list['QuestionAnswer']]
|
|
145
|
+
"""
|
|
146
|
+
|
|
147
|
+
kwargs = _get_kwargs(
|
|
148
|
+
customer_uuid=customer_uuid,
|
|
149
|
+
page=page,
|
|
150
|
+
page_size=page_size,
|
|
151
|
+
)
|
|
152
|
+
|
|
153
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
154
|
+
|
|
155
|
+
return _build_response(client=client, response=response)
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
async def asyncio(
|
|
159
|
+
customer_uuid: UUID,
|
|
160
|
+
*,
|
|
161
|
+
client: AuthenticatedClient,
|
|
162
|
+
page: Union[Unset, int] = UNSET,
|
|
163
|
+
page_size: Union[Unset, int] = UNSET,
|
|
164
|
+
) -> list["QuestionAnswer"]:
|
|
165
|
+
"""List questions with project answers, paginated by question at database level.
|
|
166
|
+
|
|
167
|
+
Args:
|
|
168
|
+
customer_uuid (UUID):
|
|
169
|
+
page (Union[Unset, int]):
|
|
170
|
+
page_size (Union[Unset, int]):
|
|
171
|
+
|
|
172
|
+
Raises:
|
|
173
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
174
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
175
|
+
|
|
176
|
+
Returns:
|
|
177
|
+
list['QuestionAnswer']
|
|
178
|
+
"""
|
|
179
|
+
|
|
180
|
+
return (
|
|
181
|
+
await asyncio_detailed(
|
|
182
|
+
customer_uuid=customer_uuid,
|
|
183
|
+
client=client,
|
|
184
|
+
page=page,
|
|
185
|
+
page_size=page_size,
|
|
186
|
+
)
|
|
187
|
+
).parsed
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import datetime
|
|
1
2
|
from http import HTTPStatus
|
|
2
3
|
from typing import Any, Union
|
|
3
4
|
from uuid import UUID
|
|
@@ -8,35 +9,51 @@ from ... import errors
|
|
|
8
9
|
from ...client import AuthenticatedClient, Client
|
|
9
10
|
from ...models.customer_user import CustomerUser
|
|
10
11
|
from ...models.customers_users_list_field_item import CustomersUsersListFieldItem
|
|
12
|
+
from ...models.customers_users_list_o import CustomersUsersListO
|
|
13
|
+
from ...models.customers_users_list_organization_role_item_type_0 import CustomersUsersListOrganizationRoleItemType0
|
|
14
|
+
from ...models.customers_users_list_project_role_item_type_0 import CustomersUsersListProjectRoleItemType0
|
|
11
15
|
from ...types import UNSET, Response, Unset
|
|
12
16
|
|
|
13
17
|
|
|
14
18
|
def _get_kwargs(
|
|
15
|
-
|
|
19
|
+
customer_uuid: UUID,
|
|
16
20
|
*,
|
|
21
|
+
agreement_date: Union[Unset, datetime.datetime] = UNSET,
|
|
17
22
|
civil_number: Union[Unset, str] = UNSET,
|
|
23
|
+
date_joined: Union[Unset, datetime.datetime] = UNSET,
|
|
18
24
|
description: Union[Unset, str] = UNSET,
|
|
19
25
|
email: Union[Unset, str] = UNSET,
|
|
20
26
|
field: Union[Unset, list[CustomersUsersListFieldItem]] = UNSET,
|
|
21
27
|
full_name: Union[Unset, str] = UNSET,
|
|
22
|
-
is_active: Union[Unset,
|
|
28
|
+
is_active: Union[Unset, bool] = UNSET,
|
|
23
29
|
job_title: Union[Unset, str] = UNSET,
|
|
30
|
+
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
24
31
|
native_name: Union[Unset, str] = UNSET,
|
|
25
|
-
o: Union[Unset,
|
|
32
|
+
o: Union[Unset, CustomersUsersListO] = UNSET,
|
|
26
33
|
organization: Union[Unset, str] = UNSET,
|
|
27
|
-
organization_role: Union[Unset, str] = UNSET,
|
|
34
|
+
organization_role: Union[Unset, list[Union[CustomersUsersListOrganizationRoleItemType0, str]]] = UNSET,
|
|
28
35
|
page: Union[Unset, int] = UNSET,
|
|
29
36
|
page_size: Union[Unset, int] = UNSET,
|
|
30
37
|
phone_number: Union[Unset, str] = UNSET,
|
|
31
|
-
project_role: Union[Unset, str] = UNSET,
|
|
38
|
+
project_role: Union[Unset, list[Union[CustomersUsersListProjectRoleItemType0, str]]] = UNSET,
|
|
32
39
|
registration_method: Union[Unset, str] = UNSET,
|
|
33
40
|
user_keyword: Union[Unset, str] = UNSET,
|
|
34
41
|
username: Union[Unset, str] = UNSET,
|
|
35
42
|
) -> dict[str, Any]:
|
|
36
43
|
params: dict[str, Any] = {}
|
|
37
44
|
|
|
45
|
+
json_agreement_date: Union[Unset, str] = UNSET
|
|
46
|
+
if not isinstance(agreement_date, Unset):
|
|
47
|
+
json_agreement_date = agreement_date.isoformat()
|
|
48
|
+
params["agreement_date"] = json_agreement_date
|
|
49
|
+
|
|
38
50
|
params["civil_number"] = civil_number
|
|
39
51
|
|
|
52
|
+
json_date_joined: Union[Unset, str] = UNSET
|
|
53
|
+
if not isinstance(date_joined, Unset):
|
|
54
|
+
json_date_joined = date_joined.isoformat()
|
|
55
|
+
params["date_joined"] = json_date_joined
|
|
56
|
+
|
|
40
57
|
params["description"] = description
|
|
41
58
|
|
|
42
59
|
params["email"] = email
|
|
@@ -56,13 +73,33 @@ def _get_kwargs(
|
|
|
56
73
|
|
|
57
74
|
params["job_title"] = job_title
|
|
58
75
|
|
|
76
|
+
json_modified: Union[Unset, str] = UNSET
|
|
77
|
+
if not isinstance(modified, Unset):
|
|
78
|
+
json_modified = modified.isoformat()
|
|
79
|
+
params["modified"] = json_modified
|
|
80
|
+
|
|
59
81
|
params["native_name"] = native_name
|
|
60
82
|
|
|
61
|
-
|
|
83
|
+
json_o: Union[Unset, str] = UNSET
|
|
84
|
+
if not isinstance(o, Unset):
|
|
85
|
+
json_o = o.value
|
|
86
|
+
|
|
87
|
+
params["o"] = json_o
|
|
62
88
|
|
|
63
89
|
params["organization"] = organization
|
|
64
90
|
|
|
65
|
-
|
|
91
|
+
json_organization_role: Union[Unset, list[str]] = UNSET
|
|
92
|
+
if not isinstance(organization_role, Unset):
|
|
93
|
+
json_organization_role = []
|
|
94
|
+
for organization_role_item_data in organization_role:
|
|
95
|
+
organization_role_item: str
|
|
96
|
+
if isinstance(organization_role_item_data, CustomersUsersListOrganizationRoleItemType0):
|
|
97
|
+
organization_role_item = organization_role_item_data.value
|
|
98
|
+
else:
|
|
99
|
+
organization_role_item = organization_role_item_data
|
|
100
|
+
json_organization_role.append(organization_role_item)
|
|
101
|
+
|
|
102
|
+
params["organization_role"] = json_organization_role
|
|
66
103
|
|
|
67
104
|
params["page"] = page
|
|
68
105
|
|
|
@@ -70,7 +107,18 @@ def _get_kwargs(
|
|
|
70
107
|
|
|
71
108
|
params["phone_number"] = phone_number
|
|
72
109
|
|
|
73
|
-
|
|
110
|
+
json_project_role: Union[Unset, list[str]] = UNSET
|
|
111
|
+
if not isinstance(project_role, Unset):
|
|
112
|
+
json_project_role = []
|
|
113
|
+
for project_role_item_data in project_role:
|
|
114
|
+
project_role_item: str
|
|
115
|
+
if isinstance(project_role_item_data, CustomersUsersListProjectRoleItemType0):
|
|
116
|
+
project_role_item = project_role_item_data.value
|
|
117
|
+
else:
|
|
118
|
+
project_role_item = project_role_item_data
|
|
119
|
+
json_project_role.append(project_role_item)
|
|
120
|
+
|
|
121
|
+
params["project_role"] = json_project_role
|
|
74
122
|
|
|
75
123
|
params["registration_method"] = registration_method
|
|
76
124
|
|
|
@@ -82,7 +130,7 @@ def _get_kwargs(
|
|
|
82
130
|
|
|
83
131
|
_kwargs: dict[str, Any] = {
|
|
84
132
|
"method": "get",
|
|
85
|
-
"url": f"/api/customers/{
|
|
133
|
+
"url": f"/api/customers/{customer_uuid}/users/",
|
|
86
134
|
"params": params,
|
|
87
135
|
}
|
|
88
136
|
|
|
@@ -114,24 +162,27 @@ def _build_response(
|
|
|
114
162
|
|
|
115
163
|
|
|
116
164
|
def sync_detailed(
|
|
117
|
-
|
|
165
|
+
customer_uuid: UUID,
|
|
118
166
|
*,
|
|
119
167
|
client: AuthenticatedClient,
|
|
168
|
+
agreement_date: Union[Unset, datetime.datetime] = UNSET,
|
|
120
169
|
civil_number: Union[Unset, str] = UNSET,
|
|
170
|
+
date_joined: Union[Unset, datetime.datetime] = UNSET,
|
|
121
171
|
description: Union[Unset, str] = UNSET,
|
|
122
172
|
email: Union[Unset, str] = UNSET,
|
|
123
173
|
field: Union[Unset, list[CustomersUsersListFieldItem]] = UNSET,
|
|
124
174
|
full_name: Union[Unset, str] = UNSET,
|
|
125
|
-
is_active: Union[Unset,
|
|
175
|
+
is_active: Union[Unset, bool] = UNSET,
|
|
126
176
|
job_title: Union[Unset, str] = UNSET,
|
|
177
|
+
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
127
178
|
native_name: Union[Unset, str] = UNSET,
|
|
128
|
-
o: Union[Unset,
|
|
179
|
+
o: Union[Unset, CustomersUsersListO] = UNSET,
|
|
129
180
|
organization: Union[Unset, str] = UNSET,
|
|
130
|
-
organization_role: Union[Unset, str] = UNSET,
|
|
181
|
+
organization_role: Union[Unset, list[Union[CustomersUsersListOrganizationRoleItemType0, str]]] = UNSET,
|
|
131
182
|
page: Union[Unset, int] = UNSET,
|
|
132
183
|
page_size: Union[Unset, int] = UNSET,
|
|
133
184
|
phone_number: Union[Unset, str] = UNSET,
|
|
134
|
-
project_role: Union[Unset, str] = UNSET,
|
|
185
|
+
project_role: Union[Unset, list[Union[CustomersUsersListProjectRoleItemType0, str]]] = UNSET,
|
|
135
186
|
registration_method: Union[Unset, str] = UNSET,
|
|
136
187
|
user_keyword: Union[Unset, str] = UNSET,
|
|
137
188
|
username: Union[Unset, str] = UNSET,
|
|
@@ -139,22 +190,26 @@ def sync_detailed(
|
|
|
139
190
|
"""A list of users connected to the customer.
|
|
140
191
|
|
|
141
192
|
Args:
|
|
142
|
-
|
|
193
|
+
customer_uuid (UUID):
|
|
194
|
+
agreement_date (Union[Unset, datetime.datetime]):
|
|
143
195
|
civil_number (Union[Unset, str]):
|
|
196
|
+
date_joined (Union[Unset, datetime.datetime]):
|
|
144
197
|
description (Union[Unset, str]):
|
|
145
198
|
email (Union[Unset, str]):
|
|
146
199
|
field (Union[Unset, list[CustomersUsersListFieldItem]]):
|
|
147
200
|
full_name (Union[Unset, str]):
|
|
148
|
-
is_active (Union[Unset,
|
|
201
|
+
is_active (Union[Unset, bool]):
|
|
149
202
|
job_title (Union[Unset, str]):
|
|
203
|
+
modified (Union[Unset, datetime.datetime]):
|
|
150
204
|
native_name (Union[Unset, str]):
|
|
151
|
-
o (Union[Unset,
|
|
205
|
+
o (Union[Unset, CustomersUsersListO]):
|
|
152
206
|
organization (Union[Unset, str]):
|
|
153
|
-
organization_role (Union[Unset,
|
|
207
|
+
organization_role (Union[Unset, list[Union[CustomersUsersListOrganizationRoleItemType0,
|
|
208
|
+
str]]]):
|
|
154
209
|
page (Union[Unset, int]):
|
|
155
210
|
page_size (Union[Unset, int]):
|
|
156
211
|
phone_number (Union[Unset, str]):
|
|
157
|
-
project_role (Union[Unset, str]):
|
|
212
|
+
project_role (Union[Unset, list[Union[CustomersUsersListProjectRoleItemType0, str]]]):
|
|
158
213
|
registration_method (Union[Unset, str]):
|
|
159
214
|
user_keyword (Union[Unset, str]):
|
|
160
215
|
username (Union[Unset, str]):
|
|
@@ -168,14 +223,17 @@ def sync_detailed(
|
|
|
168
223
|
"""
|
|
169
224
|
|
|
170
225
|
kwargs = _get_kwargs(
|
|
171
|
-
|
|
226
|
+
customer_uuid=customer_uuid,
|
|
227
|
+
agreement_date=agreement_date,
|
|
172
228
|
civil_number=civil_number,
|
|
229
|
+
date_joined=date_joined,
|
|
173
230
|
description=description,
|
|
174
231
|
email=email,
|
|
175
232
|
field=field,
|
|
176
233
|
full_name=full_name,
|
|
177
234
|
is_active=is_active,
|
|
178
235
|
job_title=job_title,
|
|
236
|
+
modified=modified,
|
|
179
237
|
native_name=native_name,
|
|
180
238
|
o=o,
|
|
181
239
|
organization=organization,
|
|
@@ -197,24 +255,27 @@ def sync_detailed(
|
|
|
197
255
|
|
|
198
256
|
|
|
199
257
|
def sync(
|
|
200
|
-
|
|
258
|
+
customer_uuid: UUID,
|
|
201
259
|
*,
|
|
202
260
|
client: AuthenticatedClient,
|
|
261
|
+
agreement_date: Union[Unset, datetime.datetime] = UNSET,
|
|
203
262
|
civil_number: Union[Unset, str] = UNSET,
|
|
263
|
+
date_joined: Union[Unset, datetime.datetime] = UNSET,
|
|
204
264
|
description: Union[Unset, str] = UNSET,
|
|
205
265
|
email: Union[Unset, str] = UNSET,
|
|
206
266
|
field: Union[Unset, list[CustomersUsersListFieldItem]] = UNSET,
|
|
207
267
|
full_name: Union[Unset, str] = UNSET,
|
|
208
|
-
is_active: Union[Unset,
|
|
268
|
+
is_active: Union[Unset, bool] = UNSET,
|
|
209
269
|
job_title: Union[Unset, str] = UNSET,
|
|
270
|
+
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
210
271
|
native_name: Union[Unset, str] = UNSET,
|
|
211
|
-
o: Union[Unset,
|
|
272
|
+
o: Union[Unset, CustomersUsersListO] = UNSET,
|
|
212
273
|
organization: Union[Unset, str] = UNSET,
|
|
213
|
-
organization_role: Union[Unset, str] = UNSET,
|
|
274
|
+
organization_role: Union[Unset, list[Union[CustomersUsersListOrganizationRoleItemType0, str]]] = UNSET,
|
|
214
275
|
page: Union[Unset, int] = UNSET,
|
|
215
276
|
page_size: Union[Unset, int] = UNSET,
|
|
216
277
|
phone_number: Union[Unset, str] = UNSET,
|
|
217
|
-
project_role: Union[Unset, str] = UNSET,
|
|
278
|
+
project_role: Union[Unset, list[Union[CustomersUsersListProjectRoleItemType0, str]]] = UNSET,
|
|
218
279
|
registration_method: Union[Unset, str] = UNSET,
|
|
219
280
|
user_keyword: Union[Unset, str] = UNSET,
|
|
220
281
|
username: Union[Unset, str] = UNSET,
|
|
@@ -222,22 +283,26 @@ def sync(
|
|
|
222
283
|
"""A list of users connected to the customer.
|
|
223
284
|
|
|
224
285
|
Args:
|
|
225
|
-
|
|
286
|
+
customer_uuid (UUID):
|
|
287
|
+
agreement_date (Union[Unset, datetime.datetime]):
|
|
226
288
|
civil_number (Union[Unset, str]):
|
|
289
|
+
date_joined (Union[Unset, datetime.datetime]):
|
|
227
290
|
description (Union[Unset, str]):
|
|
228
291
|
email (Union[Unset, str]):
|
|
229
292
|
field (Union[Unset, list[CustomersUsersListFieldItem]]):
|
|
230
293
|
full_name (Union[Unset, str]):
|
|
231
|
-
is_active (Union[Unset,
|
|
294
|
+
is_active (Union[Unset, bool]):
|
|
232
295
|
job_title (Union[Unset, str]):
|
|
296
|
+
modified (Union[Unset, datetime.datetime]):
|
|
233
297
|
native_name (Union[Unset, str]):
|
|
234
|
-
o (Union[Unset,
|
|
298
|
+
o (Union[Unset, CustomersUsersListO]):
|
|
235
299
|
organization (Union[Unset, str]):
|
|
236
|
-
organization_role (Union[Unset,
|
|
300
|
+
organization_role (Union[Unset, list[Union[CustomersUsersListOrganizationRoleItemType0,
|
|
301
|
+
str]]]):
|
|
237
302
|
page (Union[Unset, int]):
|
|
238
303
|
page_size (Union[Unset, int]):
|
|
239
304
|
phone_number (Union[Unset, str]):
|
|
240
|
-
project_role (Union[Unset, str]):
|
|
305
|
+
project_role (Union[Unset, list[Union[CustomersUsersListProjectRoleItemType0, str]]]):
|
|
241
306
|
registration_method (Union[Unset, str]):
|
|
242
307
|
user_keyword (Union[Unset, str]):
|
|
243
308
|
username (Union[Unset, str]):
|
|
@@ -251,15 +316,18 @@ def sync(
|
|
|
251
316
|
"""
|
|
252
317
|
|
|
253
318
|
return sync_detailed(
|
|
254
|
-
|
|
319
|
+
customer_uuid=customer_uuid,
|
|
255
320
|
client=client,
|
|
321
|
+
agreement_date=agreement_date,
|
|
256
322
|
civil_number=civil_number,
|
|
323
|
+
date_joined=date_joined,
|
|
257
324
|
description=description,
|
|
258
325
|
email=email,
|
|
259
326
|
field=field,
|
|
260
327
|
full_name=full_name,
|
|
261
328
|
is_active=is_active,
|
|
262
329
|
job_title=job_title,
|
|
330
|
+
modified=modified,
|
|
263
331
|
native_name=native_name,
|
|
264
332
|
o=o,
|
|
265
333
|
organization=organization,
|
|
@@ -275,24 +343,27 @@ def sync(
|
|
|
275
343
|
|
|
276
344
|
|
|
277
345
|
async def asyncio_detailed(
|
|
278
|
-
|
|
346
|
+
customer_uuid: UUID,
|
|
279
347
|
*,
|
|
280
348
|
client: AuthenticatedClient,
|
|
349
|
+
agreement_date: Union[Unset, datetime.datetime] = UNSET,
|
|
281
350
|
civil_number: Union[Unset, str] = UNSET,
|
|
351
|
+
date_joined: Union[Unset, datetime.datetime] = UNSET,
|
|
282
352
|
description: Union[Unset, str] = UNSET,
|
|
283
353
|
email: Union[Unset, str] = UNSET,
|
|
284
354
|
field: Union[Unset, list[CustomersUsersListFieldItem]] = UNSET,
|
|
285
355
|
full_name: Union[Unset, str] = UNSET,
|
|
286
|
-
is_active: Union[Unset,
|
|
356
|
+
is_active: Union[Unset, bool] = UNSET,
|
|
287
357
|
job_title: Union[Unset, str] = UNSET,
|
|
358
|
+
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
288
359
|
native_name: Union[Unset, str] = UNSET,
|
|
289
|
-
o: Union[Unset,
|
|
360
|
+
o: Union[Unset, CustomersUsersListO] = UNSET,
|
|
290
361
|
organization: Union[Unset, str] = UNSET,
|
|
291
|
-
organization_role: Union[Unset, str] = UNSET,
|
|
362
|
+
organization_role: Union[Unset, list[Union[CustomersUsersListOrganizationRoleItemType0, str]]] = UNSET,
|
|
292
363
|
page: Union[Unset, int] = UNSET,
|
|
293
364
|
page_size: Union[Unset, int] = UNSET,
|
|
294
365
|
phone_number: Union[Unset, str] = UNSET,
|
|
295
|
-
project_role: Union[Unset, str] = UNSET,
|
|
366
|
+
project_role: Union[Unset, list[Union[CustomersUsersListProjectRoleItemType0, str]]] = UNSET,
|
|
296
367
|
registration_method: Union[Unset, str] = UNSET,
|
|
297
368
|
user_keyword: Union[Unset, str] = UNSET,
|
|
298
369
|
username: Union[Unset, str] = UNSET,
|
|
@@ -300,22 +371,26 @@ async def asyncio_detailed(
|
|
|
300
371
|
"""A list of users connected to the customer.
|
|
301
372
|
|
|
302
373
|
Args:
|
|
303
|
-
|
|
374
|
+
customer_uuid (UUID):
|
|
375
|
+
agreement_date (Union[Unset, datetime.datetime]):
|
|
304
376
|
civil_number (Union[Unset, str]):
|
|
377
|
+
date_joined (Union[Unset, datetime.datetime]):
|
|
305
378
|
description (Union[Unset, str]):
|
|
306
379
|
email (Union[Unset, str]):
|
|
307
380
|
field (Union[Unset, list[CustomersUsersListFieldItem]]):
|
|
308
381
|
full_name (Union[Unset, str]):
|
|
309
|
-
is_active (Union[Unset,
|
|
382
|
+
is_active (Union[Unset, bool]):
|
|
310
383
|
job_title (Union[Unset, str]):
|
|
384
|
+
modified (Union[Unset, datetime.datetime]):
|
|
311
385
|
native_name (Union[Unset, str]):
|
|
312
|
-
o (Union[Unset,
|
|
386
|
+
o (Union[Unset, CustomersUsersListO]):
|
|
313
387
|
organization (Union[Unset, str]):
|
|
314
|
-
organization_role (Union[Unset,
|
|
388
|
+
organization_role (Union[Unset, list[Union[CustomersUsersListOrganizationRoleItemType0,
|
|
389
|
+
str]]]):
|
|
315
390
|
page (Union[Unset, int]):
|
|
316
391
|
page_size (Union[Unset, int]):
|
|
317
392
|
phone_number (Union[Unset, str]):
|
|
318
|
-
project_role (Union[Unset, str]):
|
|
393
|
+
project_role (Union[Unset, list[Union[CustomersUsersListProjectRoleItemType0, str]]]):
|
|
319
394
|
registration_method (Union[Unset, str]):
|
|
320
395
|
user_keyword (Union[Unset, str]):
|
|
321
396
|
username (Union[Unset, str]):
|
|
@@ -329,14 +404,17 @@ async def asyncio_detailed(
|
|
|
329
404
|
"""
|
|
330
405
|
|
|
331
406
|
kwargs = _get_kwargs(
|
|
332
|
-
|
|
407
|
+
customer_uuid=customer_uuid,
|
|
408
|
+
agreement_date=agreement_date,
|
|
333
409
|
civil_number=civil_number,
|
|
410
|
+
date_joined=date_joined,
|
|
334
411
|
description=description,
|
|
335
412
|
email=email,
|
|
336
413
|
field=field,
|
|
337
414
|
full_name=full_name,
|
|
338
415
|
is_active=is_active,
|
|
339
416
|
job_title=job_title,
|
|
417
|
+
modified=modified,
|
|
340
418
|
native_name=native_name,
|
|
341
419
|
o=o,
|
|
342
420
|
organization=organization,
|
|
@@ -356,24 +434,27 @@ async def asyncio_detailed(
|
|
|
356
434
|
|
|
357
435
|
|
|
358
436
|
async def asyncio(
|
|
359
|
-
|
|
437
|
+
customer_uuid: UUID,
|
|
360
438
|
*,
|
|
361
439
|
client: AuthenticatedClient,
|
|
440
|
+
agreement_date: Union[Unset, datetime.datetime] = UNSET,
|
|
362
441
|
civil_number: Union[Unset, str] = UNSET,
|
|
442
|
+
date_joined: Union[Unset, datetime.datetime] = UNSET,
|
|
363
443
|
description: Union[Unset, str] = UNSET,
|
|
364
444
|
email: Union[Unset, str] = UNSET,
|
|
365
445
|
field: Union[Unset, list[CustomersUsersListFieldItem]] = UNSET,
|
|
366
446
|
full_name: Union[Unset, str] = UNSET,
|
|
367
|
-
is_active: Union[Unset,
|
|
447
|
+
is_active: Union[Unset, bool] = UNSET,
|
|
368
448
|
job_title: Union[Unset, str] = UNSET,
|
|
449
|
+
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
369
450
|
native_name: Union[Unset, str] = UNSET,
|
|
370
|
-
o: Union[Unset,
|
|
451
|
+
o: Union[Unset, CustomersUsersListO] = UNSET,
|
|
371
452
|
organization: Union[Unset, str] = UNSET,
|
|
372
|
-
organization_role: Union[Unset, str] = UNSET,
|
|
453
|
+
organization_role: Union[Unset, list[Union[CustomersUsersListOrganizationRoleItemType0, str]]] = UNSET,
|
|
373
454
|
page: Union[Unset, int] = UNSET,
|
|
374
455
|
page_size: Union[Unset, int] = UNSET,
|
|
375
456
|
phone_number: Union[Unset, str] = UNSET,
|
|
376
|
-
project_role: Union[Unset, str] = UNSET,
|
|
457
|
+
project_role: Union[Unset, list[Union[CustomersUsersListProjectRoleItemType0, str]]] = UNSET,
|
|
377
458
|
registration_method: Union[Unset, str] = UNSET,
|
|
378
459
|
user_keyword: Union[Unset, str] = UNSET,
|
|
379
460
|
username: Union[Unset, str] = UNSET,
|
|
@@ -381,22 +462,26 @@ async def asyncio(
|
|
|
381
462
|
"""A list of users connected to the customer.
|
|
382
463
|
|
|
383
464
|
Args:
|
|
384
|
-
|
|
465
|
+
customer_uuid (UUID):
|
|
466
|
+
agreement_date (Union[Unset, datetime.datetime]):
|
|
385
467
|
civil_number (Union[Unset, str]):
|
|
468
|
+
date_joined (Union[Unset, datetime.datetime]):
|
|
386
469
|
description (Union[Unset, str]):
|
|
387
470
|
email (Union[Unset, str]):
|
|
388
471
|
field (Union[Unset, list[CustomersUsersListFieldItem]]):
|
|
389
472
|
full_name (Union[Unset, str]):
|
|
390
|
-
is_active (Union[Unset,
|
|
473
|
+
is_active (Union[Unset, bool]):
|
|
391
474
|
job_title (Union[Unset, str]):
|
|
475
|
+
modified (Union[Unset, datetime.datetime]):
|
|
392
476
|
native_name (Union[Unset, str]):
|
|
393
|
-
o (Union[Unset,
|
|
477
|
+
o (Union[Unset, CustomersUsersListO]):
|
|
394
478
|
organization (Union[Unset, str]):
|
|
395
|
-
organization_role (Union[Unset,
|
|
479
|
+
organization_role (Union[Unset, list[Union[CustomersUsersListOrganizationRoleItemType0,
|
|
480
|
+
str]]]):
|
|
396
481
|
page (Union[Unset, int]):
|
|
397
482
|
page_size (Union[Unset, int]):
|
|
398
483
|
phone_number (Union[Unset, str]):
|
|
399
|
-
project_role (Union[Unset, str]):
|
|
484
|
+
project_role (Union[Unset, list[Union[CustomersUsersListProjectRoleItemType0, str]]]):
|
|
400
485
|
registration_method (Union[Unset, str]):
|
|
401
486
|
user_keyword (Union[Unset, str]):
|
|
402
487
|
username (Union[Unset, str]):
|
|
@@ -411,15 +496,18 @@ async def asyncio(
|
|
|
411
496
|
|
|
412
497
|
return (
|
|
413
498
|
await asyncio_detailed(
|
|
414
|
-
|
|
499
|
+
customer_uuid=customer_uuid,
|
|
415
500
|
client=client,
|
|
501
|
+
agreement_date=agreement_date,
|
|
416
502
|
civil_number=civil_number,
|
|
503
|
+
date_joined=date_joined,
|
|
417
504
|
description=description,
|
|
418
505
|
email=email,
|
|
419
506
|
field=field,
|
|
420
507
|
full_name=full_name,
|
|
421
508
|
is_active=is_active,
|
|
422
509
|
job_title=job_title,
|
|
510
|
+
modified=modified,
|
|
423
511
|
native_name=native_name,
|
|
424
512
|
o=o,
|
|
425
513
|
organization=organization,
|