waldur-api-client 7.7.6__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.

Files changed (143) hide show
  1. waldur_api_client/api/booking_resources/booking_resources_count.py +34 -11
  2. waldur_api_client/api/booking_resources/booking_resources_list.py +34 -11
  3. waldur_api_client/api/customers/customers_project_metadata_compliance_details_list.py +189 -0
  4. waldur_api_client/api/customers/customers_project_metadata_compliance_overview_list.py +189 -0
  5. waldur_api_client/api/customers/customers_project_metadata_compliance_projects_list.py +187 -0
  6. waldur_api_client/api/customers/customers_project_metadata_question_answers_list.py +187 -0
  7. waldur_api_client/api/marketplace_integration_statuses/marketplace_integration_statuses_count.py +34 -11
  8. waldur_api_client/api/marketplace_integration_statuses/marketplace_integration_statuses_list.py +34 -11
  9. waldur_api_client/api/marketplace_offering_files/marketplace_offering_files_count.py +34 -11
  10. waldur_api_client/api/marketplace_offering_files/marketplace_offering_files_list.py +34 -11
  11. waldur_api_client/api/marketplace_offering_terms_of_service/__init__.py +1 -0
  12. waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_count.py +274 -0
  13. waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_create.py +152 -0
  14. waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_destroy.py +89 -0
  15. waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_list.py +277 -0
  16. waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_partial_update.py +164 -0
  17. waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_retrieve.py +142 -0
  18. waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_update.py +164 -0
  19. waldur_api_client/api/marketplace_offering_user_roles/marketplace_offering_user_roles_count.py +34 -11
  20. waldur_api_client/api/marketplace_offering_user_roles/marketplace_offering_user_roles_list.py +34 -11
  21. waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_count.py +34 -11
  22. waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_list.py +34 -11
  23. waldur_api_client/api/marketplace_orders/marketplace_orders_count.py +19 -0
  24. waldur_api_client/api/marketplace_orders/marketplace_orders_list.py +19 -0
  25. waldur_api_client/api/marketplace_plans/marketplace_plans_count.py +19 -0
  26. waldur_api_client/api/marketplace_plans/marketplace_plans_list.py +19 -0
  27. waldur_api_client/api/marketplace_plans/marketplace_plans_usage_stats_count.py +19 -0
  28. waldur_api_client/api/marketplace_plans/marketplace_plans_usage_stats_list.py +19 -0
  29. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_count.py +34 -11
  30. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +34 -11
  31. waldur_api_client/api/marketplace_resources/marketplace_resources_count.py +34 -11
  32. waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +34 -11
  33. waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_count.py +34 -11
  34. waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_list.py +34 -11
  35. waldur_api_client/api/marketplace_user_offering_consents/__init__.py +1 -0
  36. waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_count.py +307 -0
  37. waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_create.py +152 -0
  38. waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_destroy.py +89 -0
  39. waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_list.py +310 -0
  40. waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_partial_update.py +164 -0
  41. waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_retrieve.py +142 -0
  42. waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_revoke.py +146 -0
  43. waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_update.py +164 -0
  44. waldur_api_client/api/remote_waldur_api/remote_waldur_api_remote_resource_order_status_retrieve.py +145 -0
  45. waldur_api_client/api/remote_waldur_api/remote_waldur_api_remote_resource_status_retrieve.py +147 -0
  46. waldur_api_client/api/remote_waldur_api/remote_waldur_api_remote_resource_team_status_list.py +188 -0
  47. waldur_api_client/models/__init__.py +62 -0
  48. waldur_api_client/models/azure_sql_server_create_order_attributes.py +3 -0
  49. waldur_api_client/models/azure_virtual_machine_create_order_attributes.py +3 -0
  50. waldur_api_client/models/booking_offerings_list_field_item.py +0 -2
  51. waldur_api_client/models/booking_offerings_retrieve_field_item.py +0 -2
  52. waldur_api_client/models/booking_resource.py +10 -9
  53. waldur_api_client/models/booking_resources_list_field_item.py +1 -1
  54. waldur_api_client/models/booking_resources_retrieve_field_item.py +1 -1
  55. waldur_api_client/models/checklist_info.py +76 -0
  56. waldur_api_client/models/compliance_overview.py +91 -0
  57. waldur_api_client/models/customer.py +81 -0
  58. waldur_api_client/models/customers_list_field_item.py +4 -0
  59. waldur_api_client/models/customers_retrieve_field_item.py +4 -0
  60. waldur_api_client/models/generic_order_attributes.py +69 -0
  61. waldur_api_client/models/google_auth_authorize_retrieve_field_item.py +1 -0
  62. waldur_api_client/models/google_auth_list_field_item.py +1 -0
  63. waldur_api_client/models/google_auth_retrieve_field_item.py +1 -0
  64. waldur_api_client/models/google_credentials.py +9 -0
  65. waldur_api_client/models/group_invitation.py +24 -0
  66. waldur_api_client/models/group_invitation_request.py +10 -0
  67. waldur_api_client/models/maintenance_announcement.py +8 -0
  68. waldur_api_client/models/marketplace_offering_terms_of_service_count_o_item.py +13 -0
  69. waldur_api_client/models/marketplace_offering_terms_of_service_list_o_item.py +13 -0
  70. waldur_api_client/models/marketplace_orders_list_field_item.py +1 -1
  71. waldur_api_client/models/marketplace_orders_retrieve_field_item.py +1 -1
  72. waldur_api_client/models/marketplace_provider_offerings_list_customer_service_accounts_retrieve_field_item.py +0 -2
  73. waldur_api_client/models/marketplace_provider_offerings_list_field_item.py +0 -2
  74. waldur_api_client/models/marketplace_provider_offerings_list_project_service_accounts_retrieve_field_item.py +0 -2
  75. waldur_api_client/models/marketplace_provider_offerings_retrieve_field_item.py +0 -2
  76. waldur_api_client/models/marketplace_provider_offerings_stats_retrieve_field_item.py +0 -2
  77. waldur_api_client/models/marketplace_provider_offerings_user_has_resource_access_retrieve_field_item.py +0 -2
  78. waldur_api_client/models/marketplace_provider_resources_details_retrieve_field_item.py +1 -1
  79. waldur_api_client/models/marketplace_provider_resources_list_field_item.py +1 -1
  80. waldur_api_client/models/marketplace_provider_resources_retrieve_field_item.py +1 -1
  81. waldur_api_client/models/marketplace_public_offerings_list_field_item.py +0 -2
  82. waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +0 -2
  83. waldur_api_client/models/marketplace_rancher_create_order_attributes.py +3 -0
  84. waldur_api_client/models/marketplace_resources_details_retrieve_field_item.py +1 -1
  85. waldur_api_client/models/marketplace_resources_list_field_item.py +1 -1
  86. waldur_api_client/models/marketplace_resources_retrieve_field_item.py +1 -1
  87. waldur_api_client/models/marketplace_service_providers_list_field_item.py +1 -0
  88. waldur_api_client/models/marketplace_service_providers_retrieve_field_item.py +1 -0
  89. waldur_api_client/models/marketplace_user_offering_consents_count_o_item.py +15 -0
  90. waldur_api_client/models/marketplace_user_offering_consents_list_o_item.py +15 -0
  91. waldur_api_client/models/offering.py +0 -18
  92. waldur_api_client/models/offering_create.py +0 -18
  93. waldur_api_client/models/offering_create_request.py +0 -18
  94. waldur_api_client/models/offering_overview_update_request.py +0 -18
  95. waldur_api_client/models/offering_terms_of_service.py +142 -0
  96. waldur_api_client/models/offering_terms_of_service_create.py +107 -0
  97. waldur_api_client/models/offering_terms_of_service_create_request.py +107 -0
  98. waldur_api_client/models/offering_terms_of_service_request.py +96 -0
  99. waldur_api_client/models/open_stack_instance_create_order_attributes.py +3 -0
  100. waldur_api_client/models/open_stack_nested_security_group.py +53 -1
  101. waldur_api_client/models/open_stack_nested_security_group_rules_item.py +197 -0
  102. waldur_api_client/models/open_stack_network.py +20 -0
  103. waldur_api_client/models/open_stack_security_group_rule_update_request.py +4 -4
  104. waldur_api_client/models/open_stack_tenant.py +38 -0
  105. waldur_api_client/models/open_stack_tenant_create_order_attributes.py +21 -0
  106. waldur_api_client/models/open_stack_volume_create_order_attributes.py +3 -0
  107. waldur_api_client/models/openstack_networks_list_field_item.py +1 -0
  108. waldur_api_client/models/openstack_networks_retrieve_field_item.py +1 -0
  109. waldur_api_client/models/openstack_tenants_list_field_item.py +3 -0
  110. waldur_api_client/models/openstack_tenants_retrieve_field_item.py +3 -0
  111. waldur_api_client/models/order_create.py +0 -8
  112. waldur_api_client/models/order_create_request.py +23 -7
  113. waldur_api_client/models/order_details.py +0 -9
  114. waldur_api_client/models/patched_offering_terms_of_service_request.py +96 -0
  115. waldur_api_client/models/patched_user_offering_consent_request.py +59 -0
  116. waldur_api_client/models/permission_project.py +147 -0
  117. waldur_api_client/models/project_answer.py +122 -0
  118. waldur_api_client/models/project_detail.py +133 -0
  119. waldur_api_client/models/project_details_response.py +115 -0
  120. waldur_api_client/models/provider_offering_details.py +0 -18
  121. waldur_api_client/models/provider_offering_details_request.py +0 -18
  122. waldur_api_client/models/public_offering_details.py +0 -18
  123. waldur_api_client/models/question_answer.py +176 -0
  124. waldur_api_client/models/question_answer_project_answers_item.py +44 -0
  125. waldur_api_client/models/question_answer_question_options_item.py +44 -0
  126. waldur_api_client/models/remote_resource_order.py +88 -0
  127. waldur_api_client/models/remote_resource_order_remote_state_enum.py +15 -0
  128. waldur_api_client/models/remote_resource_sync_status.py +123 -0
  129. waldur_api_client/models/remote_resource_sync_status_remote_state_enum.py +13 -0
  130. waldur_api_client/models/remote_resource_team_member.py +85 -0
  131. waldur_api_client/models/resource.py +10 -9
  132. waldur_api_client/models/service_provider.py +9 -0
  133. waldur_api_client/models/slurm_invoices_slurm_package_create_order_attributes.py +3 -0
  134. waldur_api_client/models/sync_status_enum.py +10 -0
  135. waldur_api_client/models/user_offering_consent.py +202 -0
  136. waldur_api_client/models/user_offering_consent_create.py +60 -0
  137. waldur_api_client/models/user_offering_consent_create_request.py +60 -0
  138. waldur_api_client/models/user_offering_consent_request.py +59 -0
  139. waldur_api_client/models/v_mware_virtual_machine_create_order_attributes.py +3 -0
  140. {waldur_api_client-7.7.6.dist-info → waldur_api_client-7.7.7.dist-info}/METADATA +1 -1
  141. {waldur_api_client-7.7.6.dist-info → waldur_api_client-7.7.7.dist-info}/RECORD +143 -88
  142. {waldur_api_client-7.7.6.dist-info → waldur_api_client-7.7.7.dist-info}/LICENSE +0 -0
  143. {waldur_api_client-7.7.6.dist-info → waldur_api_client-7.7.7.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.project_answer import ProjectAnswer
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-compliance-projects/",
30
+ "params": params,
31
+ }
32
+
33
+ return _kwargs
34
+
35
+
36
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> list["ProjectAnswer"]:
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 = ProjectAnswer.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["ProjectAnswer"]]:
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["ProjectAnswer"]]:
67
+ """List project checklist answer data with database-level pagination.
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['ProjectAnswer']]
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["ProjectAnswer"]:
102
+ """List project checklist answer data with database-level pagination.
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['ProjectAnswer']
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["ProjectAnswer"]]:
132
+ """List project checklist answer data with database-level pagination.
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['ProjectAnswer']]
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["ProjectAnswer"]:
165
+ """List project checklist answer data with database-level pagination.
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['ProjectAnswer']
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
@@ -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
@@ -17,7 +17,8 @@ def _get_kwargs(
17
17
  customer_uuid: Union[Unset, str] = UNSET,
18
18
  o: Union[Unset, list[MarketplaceIntegrationStatusesCountOItem]] = UNSET,
19
19
  offering: Union[Unset, str] = UNSET,
20
- offering_uuid: Union[Unset, UUID] = UNSET,
20
+ offering_slug: Union[Unset, list[str]] = UNSET,
21
+ offering_uuid: Union[Unset, list[UUID]] = UNSET,
21
22
  page: Union[Unset, int] = UNSET,
22
23
  page_size: Union[Unset, int] = UNSET,
23
24
  parent_offering_uuid: Union[Unset, UUID] = UNSET,
@@ -40,9 +41,19 @@ def _get_kwargs(
40
41
 
41
42
  params["offering"] = offering
42
43
 
43
- json_offering_uuid: Union[Unset, str] = UNSET
44
+ json_offering_slug: Union[Unset, list[str]] = UNSET
45
+ if not isinstance(offering_slug, Unset):
46
+ json_offering_slug = offering_slug
47
+
48
+ params["offering_slug"] = json_offering_slug
49
+
50
+ json_offering_uuid: Union[Unset, list[str]] = UNSET
44
51
  if not isinstance(offering_uuid, Unset):
45
- json_offering_uuid = str(offering_uuid)
52
+ json_offering_uuid = []
53
+ for offering_uuid_item_data in offering_uuid:
54
+ offering_uuid_item = str(offering_uuid_item_data)
55
+ json_offering_uuid.append(offering_uuid_item)
56
+
46
57
  params["offering_uuid"] = json_offering_uuid
47
58
 
48
59
  params["page"] = page
@@ -105,7 +116,8 @@ def sync_detailed(
105
116
  customer_uuid: Union[Unset, str] = UNSET,
106
117
  o: Union[Unset, list[MarketplaceIntegrationStatusesCountOItem]] = UNSET,
107
118
  offering: Union[Unset, str] = UNSET,
108
- offering_uuid: Union[Unset, UUID] = UNSET,
119
+ offering_slug: Union[Unset, list[str]] = UNSET,
120
+ offering_uuid: Union[Unset, list[UUID]] = UNSET,
109
121
  page: Union[Unset, int] = UNSET,
110
122
  page_size: Union[Unset, int] = UNSET,
111
123
  parent_offering_uuid: Union[Unset, UUID] = UNSET,
@@ -118,7 +130,8 @@ def sync_detailed(
118
130
  customer_uuid (Union[Unset, str]):
119
131
  o (Union[Unset, list[MarketplaceIntegrationStatusesCountOItem]]):
120
132
  offering (Union[Unset, str]):
121
- offering_uuid (Union[Unset, UUID]):
133
+ offering_slug (Union[Unset, list[str]]):
134
+ offering_uuid (Union[Unset, list[UUID]]):
122
135
  page (Union[Unset, int]):
123
136
  page_size (Union[Unset, int]):
124
137
  parent_offering_uuid (Union[Unset, UUID]):
@@ -137,6 +150,7 @@ def sync_detailed(
137
150
  customer_uuid=customer_uuid,
138
151
  o=o,
139
152
  offering=offering,
153
+ offering_slug=offering_slug,
140
154
  offering_uuid=offering_uuid,
141
155
  page=page,
142
156
  page_size=page_size,
@@ -158,7 +172,8 @@ def sync(
158
172
  customer_uuid: Union[Unset, str] = UNSET,
159
173
  o: Union[Unset, list[MarketplaceIntegrationStatusesCountOItem]] = UNSET,
160
174
  offering: Union[Unset, str] = UNSET,
161
- offering_uuid: Union[Unset, UUID] = UNSET,
175
+ offering_slug: Union[Unset, list[str]] = UNSET,
176
+ offering_uuid: Union[Unset, list[UUID]] = UNSET,
162
177
  page: Union[Unset, int] = UNSET,
163
178
  page_size: Union[Unset, int] = UNSET,
164
179
  parent_offering_uuid: Union[Unset, UUID] = UNSET,
@@ -171,7 +186,8 @@ def sync(
171
186
  customer_uuid (Union[Unset, str]):
172
187
  o (Union[Unset, list[MarketplaceIntegrationStatusesCountOItem]]):
173
188
  offering (Union[Unset, str]):
174
- offering_uuid (Union[Unset, UUID]):
189
+ offering_slug (Union[Unset, list[str]]):
190
+ offering_uuid (Union[Unset, list[UUID]]):
175
191
  page (Union[Unset, int]):
176
192
  page_size (Union[Unset, int]):
177
193
  parent_offering_uuid (Union[Unset, UUID]):
@@ -191,6 +207,7 @@ def sync(
191
207
  customer_uuid=customer_uuid,
192
208
  o=o,
193
209
  offering=offering,
210
+ offering_slug=offering_slug,
194
211
  offering_uuid=offering_uuid,
195
212
  page=page,
196
213
  page_size=page_size,
@@ -206,7 +223,8 @@ async def asyncio_detailed(
206
223
  customer_uuid: Union[Unset, str] = UNSET,
207
224
  o: Union[Unset, list[MarketplaceIntegrationStatusesCountOItem]] = UNSET,
208
225
  offering: Union[Unset, str] = UNSET,
209
- offering_uuid: Union[Unset, UUID] = UNSET,
226
+ offering_slug: Union[Unset, list[str]] = UNSET,
227
+ offering_uuid: Union[Unset, list[UUID]] = UNSET,
210
228
  page: Union[Unset, int] = UNSET,
211
229
  page_size: Union[Unset, int] = UNSET,
212
230
  parent_offering_uuid: Union[Unset, UUID] = UNSET,
@@ -219,7 +237,8 @@ async def asyncio_detailed(
219
237
  customer_uuid (Union[Unset, str]):
220
238
  o (Union[Unset, list[MarketplaceIntegrationStatusesCountOItem]]):
221
239
  offering (Union[Unset, str]):
222
- offering_uuid (Union[Unset, UUID]):
240
+ offering_slug (Union[Unset, list[str]]):
241
+ offering_uuid (Union[Unset, list[UUID]]):
223
242
  page (Union[Unset, int]):
224
243
  page_size (Union[Unset, int]):
225
244
  parent_offering_uuid (Union[Unset, UUID]):
@@ -238,6 +257,7 @@ async def asyncio_detailed(
238
257
  customer_uuid=customer_uuid,
239
258
  o=o,
240
259
  offering=offering,
260
+ offering_slug=offering_slug,
241
261
  offering_uuid=offering_uuid,
242
262
  page=page,
243
263
  page_size=page_size,
@@ -257,7 +277,8 @@ async def asyncio(
257
277
  customer_uuid: Union[Unset, str] = UNSET,
258
278
  o: Union[Unset, list[MarketplaceIntegrationStatusesCountOItem]] = UNSET,
259
279
  offering: Union[Unset, str] = UNSET,
260
- offering_uuid: Union[Unset, UUID] = UNSET,
280
+ offering_slug: Union[Unset, list[str]] = UNSET,
281
+ offering_uuid: Union[Unset, list[UUID]] = UNSET,
261
282
  page: Union[Unset, int] = UNSET,
262
283
  page_size: Union[Unset, int] = UNSET,
263
284
  parent_offering_uuid: Union[Unset, UUID] = UNSET,
@@ -270,7 +291,8 @@ async def asyncio(
270
291
  customer_uuid (Union[Unset, str]):
271
292
  o (Union[Unset, list[MarketplaceIntegrationStatusesCountOItem]]):
272
293
  offering (Union[Unset, str]):
273
- offering_uuid (Union[Unset, UUID]):
294
+ offering_slug (Union[Unset, list[str]]):
295
+ offering_uuid (Union[Unset, list[UUID]]):
274
296
  page (Union[Unset, int]):
275
297
  page_size (Union[Unset, int]):
276
298
  parent_offering_uuid (Union[Unset, UUID]):
@@ -291,6 +313,7 @@ async def asyncio(
291
313
  customer_uuid=customer_uuid,
292
314
  o=o,
293
315
  offering=offering,
316
+ offering_slug=offering_slug,
294
317
  offering_uuid=offering_uuid,
295
318
  page=page,
296
319
  page_size=page_size,
@@ -18,7 +18,8 @@ def _get_kwargs(
18
18
  customer_uuid: Union[Unset, str] = UNSET,
19
19
  o: Union[Unset, list[MarketplaceIntegrationStatusesListOItem]] = UNSET,
20
20
  offering: Union[Unset, str] = UNSET,
21
- offering_uuid: Union[Unset, UUID] = UNSET,
21
+ offering_slug: Union[Unset, list[str]] = UNSET,
22
+ offering_uuid: Union[Unset, list[UUID]] = UNSET,
22
23
  page: Union[Unset, int] = UNSET,
23
24
  page_size: Union[Unset, int] = UNSET,
24
25
  parent_offering_uuid: Union[Unset, UUID] = UNSET,
@@ -41,9 +42,19 @@ def _get_kwargs(
41
42
 
42
43
  params["offering"] = offering
43
44
 
44
- json_offering_uuid: Union[Unset, str] = UNSET
45
+ json_offering_slug: Union[Unset, list[str]] = UNSET
46
+ if not isinstance(offering_slug, Unset):
47
+ json_offering_slug = offering_slug
48
+
49
+ params["offering_slug"] = json_offering_slug
50
+
51
+ json_offering_uuid: Union[Unset, list[str]] = UNSET
45
52
  if not isinstance(offering_uuid, Unset):
46
- json_offering_uuid = str(offering_uuid)
53
+ json_offering_uuid = []
54
+ for offering_uuid_item_data in offering_uuid:
55
+ offering_uuid_item = str(offering_uuid_item_data)
56
+ json_offering_uuid.append(offering_uuid_item)
57
+
47
58
  params["offering_uuid"] = json_offering_uuid
48
59
 
49
60
  params["page"] = page
@@ -108,7 +119,8 @@ def sync_detailed(
108
119
  customer_uuid: Union[Unset, str] = UNSET,
109
120
  o: Union[Unset, list[MarketplaceIntegrationStatusesListOItem]] = UNSET,
110
121
  offering: Union[Unset, str] = UNSET,
111
- offering_uuid: Union[Unset, UUID] = UNSET,
122
+ offering_slug: Union[Unset, list[str]] = UNSET,
123
+ offering_uuid: Union[Unset, list[UUID]] = UNSET,
112
124
  page: Union[Unset, int] = UNSET,
113
125
  page_size: Union[Unset, int] = UNSET,
114
126
  parent_offering_uuid: Union[Unset, UUID] = UNSET,
@@ -121,7 +133,8 @@ def sync_detailed(
121
133
  customer_uuid (Union[Unset, str]):
122
134
  o (Union[Unset, list[MarketplaceIntegrationStatusesListOItem]]):
123
135
  offering (Union[Unset, str]):
124
- offering_uuid (Union[Unset, UUID]):
136
+ offering_slug (Union[Unset, list[str]]):
137
+ offering_uuid (Union[Unset, list[UUID]]):
125
138
  page (Union[Unset, int]):
126
139
  page_size (Union[Unset, int]):
127
140
  parent_offering_uuid (Union[Unset, UUID]):
@@ -140,6 +153,7 @@ def sync_detailed(
140
153
  customer_uuid=customer_uuid,
141
154
  o=o,
142
155
  offering=offering,
156
+ offering_slug=offering_slug,
143
157
  offering_uuid=offering_uuid,
144
158
  page=page,
145
159
  page_size=page_size,
@@ -161,7 +175,8 @@ def sync(
161
175
  customer_uuid: Union[Unset, str] = UNSET,
162
176
  o: Union[Unset, list[MarketplaceIntegrationStatusesListOItem]] = UNSET,
163
177
  offering: Union[Unset, str] = UNSET,
164
- offering_uuid: Union[Unset, UUID] = UNSET,
178
+ offering_slug: Union[Unset, list[str]] = UNSET,
179
+ offering_uuid: Union[Unset, list[UUID]] = UNSET,
165
180
  page: Union[Unset, int] = UNSET,
166
181
  page_size: Union[Unset, int] = UNSET,
167
182
  parent_offering_uuid: Union[Unset, UUID] = UNSET,
@@ -174,7 +189,8 @@ def sync(
174
189
  customer_uuid (Union[Unset, str]):
175
190
  o (Union[Unset, list[MarketplaceIntegrationStatusesListOItem]]):
176
191
  offering (Union[Unset, str]):
177
- offering_uuid (Union[Unset, UUID]):
192
+ offering_slug (Union[Unset, list[str]]):
193
+ offering_uuid (Union[Unset, list[UUID]]):
178
194
  page (Union[Unset, int]):
179
195
  page_size (Union[Unset, int]):
180
196
  parent_offering_uuid (Union[Unset, UUID]):
@@ -194,6 +210,7 @@ def sync(
194
210
  customer_uuid=customer_uuid,
195
211
  o=o,
196
212
  offering=offering,
213
+ offering_slug=offering_slug,
197
214
  offering_uuid=offering_uuid,
198
215
  page=page,
199
216
  page_size=page_size,
@@ -209,7 +226,8 @@ async def asyncio_detailed(
209
226
  customer_uuid: Union[Unset, str] = UNSET,
210
227
  o: Union[Unset, list[MarketplaceIntegrationStatusesListOItem]] = UNSET,
211
228
  offering: Union[Unset, str] = UNSET,
212
- offering_uuid: Union[Unset, UUID] = UNSET,
229
+ offering_slug: Union[Unset, list[str]] = UNSET,
230
+ offering_uuid: Union[Unset, list[UUID]] = UNSET,
213
231
  page: Union[Unset, int] = UNSET,
214
232
  page_size: Union[Unset, int] = UNSET,
215
233
  parent_offering_uuid: Union[Unset, UUID] = UNSET,
@@ -222,7 +240,8 @@ async def asyncio_detailed(
222
240
  customer_uuid (Union[Unset, str]):
223
241
  o (Union[Unset, list[MarketplaceIntegrationStatusesListOItem]]):
224
242
  offering (Union[Unset, str]):
225
- offering_uuid (Union[Unset, UUID]):
243
+ offering_slug (Union[Unset, list[str]]):
244
+ offering_uuid (Union[Unset, list[UUID]]):
226
245
  page (Union[Unset, int]):
227
246
  page_size (Union[Unset, int]):
228
247
  parent_offering_uuid (Union[Unset, UUID]):
@@ -241,6 +260,7 @@ async def asyncio_detailed(
241
260
  customer_uuid=customer_uuid,
242
261
  o=o,
243
262
  offering=offering,
263
+ offering_slug=offering_slug,
244
264
  offering_uuid=offering_uuid,
245
265
  page=page,
246
266
  page_size=page_size,
@@ -260,7 +280,8 @@ async def asyncio(
260
280
  customer_uuid: Union[Unset, str] = UNSET,
261
281
  o: Union[Unset, list[MarketplaceIntegrationStatusesListOItem]] = UNSET,
262
282
  offering: Union[Unset, str] = UNSET,
263
- offering_uuid: Union[Unset, UUID] = UNSET,
283
+ offering_slug: Union[Unset, list[str]] = UNSET,
284
+ offering_uuid: Union[Unset, list[UUID]] = UNSET,
264
285
  page: Union[Unset, int] = UNSET,
265
286
  page_size: Union[Unset, int] = UNSET,
266
287
  parent_offering_uuid: Union[Unset, UUID] = UNSET,
@@ -273,7 +294,8 @@ async def asyncio(
273
294
  customer_uuid (Union[Unset, str]):
274
295
  o (Union[Unset, list[MarketplaceIntegrationStatusesListOItem]]):
275
296
  offering (Union[Unset, str]):
276
- offering_uuid (Union[Unset, UUID]):
297
+ offering_slug (Union[Unset, list[str]]):
298
+ offering_uuid (Union[Unset, list[UUID]]):
277
299
  page (Union[Unset, int]):
278
300
  page_size (Union[Unset, int]):
279
301
  parent_offering_uuid (Union[Unset, UUID]):
@@ -294,6 +316,7 @@ async def asyncio(
294
316
  customer_uuid=customer_uuid,
295
317
  o=o,
296
318
  offering=offering,
319
+ offering_slug=offering_slug,
297
320
  offering_uuid=offering_uuid,
298
321
  page=page,
299
322
  page_size=page_size,