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.

Files changed (261) 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/customer_permissions_reviews/customer_permissions_reviews_count.py +19 -0
  4. waldur_api_client/api/customer_permissions_reviews/customer_permissions_reviews_list.py +19 -0
  5. waldur_api_client/api/customers/customers_project_metadata_compliance_details_list.py +189 -0
  6. waldur_api_client/api/customers/customers_project_metadata_compliance_overview_list.py +189 -0
  7. waldur_api_client/api/customers/customers_project_metadata_compliance_projects_list.py +187 -0
  8. waldur_api_client/api/customers/customers_project_metadata_question_answers_list.py +187 -0
  9. waldur_api_client/api/customers/customers_users_list.py +141 -53
  10. waldur_api_client/api/invoices/invoices_items_retrieve.py +20 -0
  11. waldur_api_client/api/managed_rancher_cluster_resources/__init__.py +1 -0
  12. waldur_api_client/api/managed_rancher_cluster_resources/managed_rancher_cluster_resources_add_node.py +162 -0
  13. waldur_api_client/api/managed_rancher_cluster_resources/managed_rancher_cluster_resources_count.py +172 -0
  14. waldur_api_client/api/managed_rancher_cluster_resources/managed_rancher_cluster_resources_list.py +196 -0
  15. waldur_api_client/api/managed_rancher_cluster_resources/managed_rancher_cluster_resources_retrieve.py +171 -0
  16. waldur_api_client/api/marketplace_course_accounts/__init__.py +1 -0
  17. waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_count.py +244 -0
  18. waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_create.py +148 -0
  19. waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_create_bulk.py +152 -0
  20. waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_destroy.py +89 -0
  21. waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_list.py +245 -0
  22. waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_retrieve.py +140 -0
  23. waldur_api_client/api/marketplace_customer_service_accounts/marketplace_customer_service_accounts_count.py +25 -0
  24. waldur_api_client/api/marketplace_customer_service_accounts/marketplace_customer_service_accounts_list.py +25 -0
  25. waldur_api_client/api/marketplace_integration_statuses/marketplace_integration_statuses_count.py +34 -11
  26. waldur_api_client/api/marketplace_integration_statuses/marketplace_integration_statuses_list.py +34 -11
  27. waldur_api_client/api/marketplace_offering_files/marketplace_offering_files_count.py +34 -11
  28. waldur_api_client/api/marketplace_offering_files/marketplace_offering_files_list.py +34 -11
  29. waldur_api_client/api/marketplace_offering_terms_of_service/__init__.py +1 -0
  30. waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_count.py +274 -0
  31. waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_create.py +152 -0
  32. waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_destroy.py +89 -0
  33. waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_list.py +277 -0
  34. waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_partial_update.py +164 -0
  35. waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_retrieve.py +142 -0
  36. waldur_api_client/api/marketplace_offering_terms_of_service/marketplace_offering_terms_of_service_update.py +164 -0
  37. waldur_api_client/api/marketplace_offering_user_roles/marketplace_offering_user_roles_count.py +34 -11
  38. waldur_api_client/api/marketplace_offering_user_roles/marketplace_offering_user_roles_list.py +34 -11
  39. waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_count.py +34 -11
  40. waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_list.py +34 -11
  41. waldur_api_client/api/marketplace_orders/marketplace_orders_count.py +19 -0
  42. waldur_api_client/api/marketplace_orders/marketplace_orders_list.py +19 -0
  43. waldur_api_client/api/marketplace_plans/marketplace_plans_count.py +19 -0
  44. waldur_api_client/api/marketplace_plans/marketplace_plans_list.py +19 -0
  45. waldur_api_client/api/marketplace_plans/marketplace_plans_usage_stats_count.py +19 -0
  46. waldur_api_client/api/marketplace_plans/marketplace_plans_usage_stats_list.py +19 -0
  47. waldur_api_client/api/marketplace_project_service_accounts/marketplace_project_service_accounts_count.py +25 -0
  48. waldur_api_client/api/marketplace_project_service_accounts/marketplace_project_service_accounts_list.py +25 -0
  49. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_count.py +34 -11
  50. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +34 -11
  51. waldur_api_client/api/marketplace_resources/marketplace_resources_count.py +34 -11
  52. waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +34 -11
  53. waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_count.py +34 -11
  54. waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_list.py +34 -11
  55. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_course_accounts_list.py +284 -0
  56. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_project_service_accounts_list.py +29 -0
  57. waldur_api_client/api/marketplace_user_offering_consents/__init__.py +1 -0
  58. waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_count.py +307 -0
  59. waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_create.py +152 -0
  60. waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_destroy.py +89 -0
  61. waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_list.py +310 -0
  62. waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_partial_update.py +164 -0
  63. waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_retrieve.py +142 -0
  64. waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_revoke.py +146 -0
  65. waldur_api_client/api/marketplace_user_offering_consents/marketplace_user_offering_consents_update.py +164 -0
  66. waldur_api_client/api/project_permissions_reviews/__init__.py +1 -0
  67. waldur_api_client/api/project_permissions_reviews/project_permissions_reviews_close.py +91 -0
  68. waldur_api_client/api/project_permissions_reviews/project_permissions_reviews_count.py +266 -0
  69. waldur_api_client/api/project_permissions_reviews/project_permissions_reviews_list.py +269 -0
  70. waldur_api_client/api/project_permissions_reviews/project_permissions_reviews_retrieve.py +142 -0
  71. waldur_api_client/api/projects/projects_other_users_list.py +98 -23
  72. waldur_api_client/api/projects/projects_sync_user_roles.py +10 -9
  73. waldur_api_client/api/remote_waldur_api/remote_waldur_api_remote_resource_order_status_retrieve.py +145 -0
  74. waldur_api_client/api/remote_waldur_api/remote_waldur_api_remote_resource_status_retrieve.py +147 -0
  75. waldur_api_client/api/remote_waldur_api/remote_waldur_api_remote_resource_team_status_list.py +188 -0
  76. waldur_api_client/api/support_issue_statuses/__init__.py +1 -0
  77. waldur_api_client/api/support_issue_statuses/support_issue_statuses_count.py +172 -0
  78. waldur_api_client/api/support_issue_statuses/support_issue_statuses_create.py +148 -0
  79. waldur_api_client/api/support_issue_statuses/support_issue_statuses_destroy.py +89 -0
  80. waldur_api_client/api/support_issue_statuses/support_issue_statuses_list.py +173 -0
  81. waldur_api_client/api/support_issue_statuses/support_issue_statuses_partial_update.py +162 -0
  82. waldur_api_client/api/support_issue_statuses/support_issue_statuses_retrieve.py +140 -0
  83. waldur_api_client/api/support_issue_statuses/support_issue_statuses_update.py +162 -0
  84. waldur_api_client/api/user_group_invitations/user_group_invitations_submit_request.py +12 -12
  85. waldur_api_client/api/user_invitations/user_invitations_count.py +30 -0
  86. waldur_api_client/api/user_invitations/user_invitations_list.py +30 -0
  87. waldur_api_client/api/user_permission_requests/user_permission_requests_cancel_request.py +146 -0
  88. waldur_api_client/models/__init__.py +136 -2
  89. waldur_api_client/models/azure_sql_server_create_order_attributes.py +3 -0
  90. waldur_api_client/models/azure_virtual_machine_create_order_attributes.py +3 -0
  91. waldur_api_client/models/booking_offerings_list_field_item.py +0 -2
  92. waldur_api_client/models/booking_offerings_retrieve_field_item.py +0 -2
  93. waldur_api_client/models/booking_resource.py +10 -9
  94. waldur_api_client/models/booking_resources_list_field_item.py +1 -1
  95. waldur_api_client/models/booking_resources_retrieve_field_item.py +1 -1
  96. waldur_api_client/models/cancel_request_response.py +75 -0
  97. waldur_api_client/models/checklist_info.py +76 -0
  98. waldur_api_client/models/compliance_overview.py +91 -0
  99. waldur_api_client/models/constance_settings.py +9 -0
  100. waldur_api_client/models/constance_settings_request.py +9 -0
  101. waldur_api_client/models/course_account.py +188 -0
  102. waldur_api_client/models/course_account_create_nested.py +68 -0
  103. waldur_api_client/models/course_account_create_nested_request.py +68 -0
  104. waldur_api_client/models/course_account_request.py +89 -0
  105. waldur_api_client/models/course_accounts_bulk_create.py +82 -0
  106. waldur_api_client/models/course_accounts_bulk_create_request.py +82 -0
  107. waldur_api_client/models/customer.py +90 -0
  108. waldur_api_client/models/customer_permission_review.py +16 -16
  109. waldur_api_client/models/customer_request.py +9 -0
  110. waldur_api_client/models/customer_service_account.py +9 -0
  111. waldur_api_client/models/customers_list_field_item.py +5 -0
  112. waldur_api_client/models/customers_retrieve_field_item.py +5 -0
  113. waldur_api_client/models/customers_users_list_o.py +9 -0
  114. waldur_api_client/models/customers_users_list_organization_role_item_type_0.py +10 -0
  115. waldur_api_client/models/customers_users_list_project_role_item_type_0.py +10 -0
  116. waldur_api_client/models/dependency_logic_operator_enum.py +9 -0
  117. waldur_api_client/models/event_subscription.py +1 -1
  118. waldur_api_client/models/event_types_enum.py +4 -0
  119. waldur_api_client/models/generic_order_attributes.py +69 -0
  120. waldur_api_client/models/google_auth_authorize_retrieve_field_item.py +1 -0
  121. waldur_api_client/models/google_auth_list_field_item.py +1 -0
  122. waldur_api_client/models/google_auth_retrieve_field_item.py +1 -0
  123. waldur_api_client/models/google_credentials.py +9 -0
  124. waldur_api_client/models/group_invitation.py +33 -0
  125. waldur_api_client/models/group_invitation_request.py +10 -0
  126. waldur_api_client/models/invitation.py +9 -0
  127. waldur_api_client/models/invoices_items_retrieve_o.py +15 -0
  128. waldur_api_client/models/issue_status.py +103 -0
  129. waldur_api_client/models/issue_status_request.py +78 -0
  130. waldur_api_client/models/issue_status_type_enum.py +9 -0
  131. waldur_api_client/models/kind_enum.py +10 -0
  132. waldur_api_client/models/maintenance_announcement.py +8 -0
  133. waldur_api_client/models/managed_rancher_cluster_resources_list_field_item.py +82 -0
  134. waldur_api_client/models/managed_rancher_cluster_resources_retrieve_field_item.py +82 -0
  135. waldur_api_client/models/managed_rancher_create_node_request.py +186 -0
  136. waldur_api_client/models/marketplace_course_accounts_count_state_item.py +10 -0
  137. waldur_api_client/models/marketplace_course_accounts_list_state_item.py +10 -0
  138. waldur_api_client/models/marketplace_customer_service_accounts_count_state_item.py +10 -0
  139. waldur_api_client/models/marketplace_customer_service_accounts_list_state_item.py +10 -0
  140. waldur_api_client/models/marketplace_offering_terms_of_service_count_o_item.py +13 -0
  141. waldur_api_client/models/marketplace_offering_terms_of_service_list_o_item.py +13 -0
  142. waldur_api_client/models/marketplace_orders_list_field_item.py +1 -1
  143. waldur_api_client/models/marketplace_orders_retrieve_field_item.py +1 -1
  144. waldur_api_client/models/marketplace_project_service_accounts_count_state_item.py +10 -0
  145. waldur_api_client/models/marketplace_project_service_accounts_list_state_item.py +10 -0
  146. waldur_api_client/models/marketplace_provider_offerings_list_customer_service_accounts_retrieve_field_item.py +0 -2
  147. waldur_api_client/models/marketplace_provider_offerings_list_field_item.py +0 -2
  148. waldur_api_client/models/marketplace_provider_offerings_list_project_service_accounts_retrieve_field_item.py +0 -2
  149. waldur_api_client/models/marketplace_provider_offerings_retrieve_field_item.py +0 -2
  150. waldur_api_client/models/marketplace_provider_offerings_stats_retrieve_field_item.py +0 -2
  151. waldur_api_client/models/marketplace_provider_offerings_user_has_resource_access_retrieve_field_item.py +0 -2
  152. waldur_api_client/models/marketplace_provider_resources_details_retrieve_field_item.py +1 -1
  153. waldur_api_client/models/marketplace_provider_resources_list_field_item.py +1 -1
  154. waldur_api_client/models/marketplace_provider_resources_retrieve_field_item.py +1 -1
  155. waldur_api_client/models/marketplace_public_offerings_list_field_item.py +0 -2
  156. waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +0 -2
  157. waldur_api_client/models/marketplace_rancher_create_order_attributes.py +3 -0
  158. waldur_api_client/models/marketplace_resources_details_retrieve_field_item.py +1 -1
  159. waldur_api_client/models/marketplace_resources_list_field_item.py +1 -1
  160. waldur_api_client/models/marketplace_resources_retrieve_field_item.py +1 -1
  161. waldur_api_client/models/marketplace_service_providers_course_accounts_list_state_item.py +10 -0
  162. waldur_api_client/models/marketplace_service_providers_list_field_item.py +1 -0
  163. waldur_api_client/models/marketplace_service_providers_project_service_accounts_list_state_item.py +10 -0
  164. waldur_api_client/models/marketplace_service_providers_projects_list_field_item.py +1 -0
  165. waldur_api_client/models/marketplace_service_providers_retrieve_field_item.py +1 -0
  166. waldur_api_client/models/marketplace_user_offering_consents_count_o_item.py +15 -0
  167. waldur_api_client/models/marketplace_user_offering_consents_list_o_item.py +15 -0
  168. waldur_api_client/models/nested_security_group_rule.py +223 -0
  169. waldur_api_client/models/nested_security_group_rule_request.py +188 -0
  170. waldur_api_client/models/offering.py +0 -18
  171. waldur_api_client/models/offering_create.py +0 -18
  172. waldur_api_client/models/offering_create_request.py +0 -18
  173. waldur_api_client/models/offering_overview_update_request.py +0 -18
  174. waldur_api_client/models/offering_terms_of_service.py +142 -0
  175. waldur_api_client/models/offering_terms_of_service_create.py +107 -0
  176. waldur_api_client/models/offering_terms_of_service_create_request.py +107 -0
  177. waldur_api_client/models/offering_terms_of_service_request.py +96 -0
  178. waldur_api_client/models/open_stack_backup_restoration_request.py +0 -22
  179. waldur_api_client/models/open_stack_fixed_ip.py +13 -3
  180. waldur_api_client/models/open_stack_fixed_ip_request.py +7 -2
  181. waldur_api_client/models/open_stack_instance_create_order_attributes.py +23 -20
  182. waldur_api_client/models/open_stack_nested_security_group.py +53 -1
  183. waldur_api_client/models/open_stack_network.py +20 -0
  184. waldur_api_client/models/open_stack_port_ip_update_request.py +6 -2
  185. waldur_api_client/models/open_stack_security_group_rule_update_request.py +4 -4
  186. waldur_api_client/models/open_stack_static_route.py +13 -4
  187. waldur_api_client/models/open_stack_static_route_request.py +7 -3
  188. waldur_api_client/models/open_stack_sub_net.py +15 -2
  189. waldur_api_client/models/open_stack_sub_net_allocation_pool.py +27 -8
  190. waldur_api_client/models/open_stack_sub_net_allocation_pool_request.py +14 -5
  191. waldur_api_client/models/open_stack_sub_net_request.py +15 -2
  192. waldur_api_client/models/open_stack_tenant.py +38 -0
  193. waldur_api_client/models/open_stack_tenant_create_order_attributes.py +21 -0
  194. waldur_api_client/models/open_stack_volume_create_order_attributes.py +3 -0
  195. waldur_api_client/models/openstack_networks_list_field_item.py +1 -0
  196. waldur_api_client/models/openstack_networks_retrieve_field_item.py +1 -0
  197. waldur_api_client/models/openstack_tenants_list_field_item.py +3 -0
  198. waldur_api_client/models/openstack_tenants_retrieve_field_item.py +3 -0
  199. waldur_api_client/models/order_create.py +0 -8
  200. waldur_api_client/models/order_create_request.py +23 -7
  201. waldur_api_client/models/order_details.py +0 -9
  202. waldur_api_client/models/patched_customer_request.py +9 -0
  203. waldur_api_client/models/patched_issue_status_request.py +76 -0
  204. waldur_api_client/models/patched_offering_terms_of_service_request.py +96 -0
  205. waldur_api_client/models/patched_open_stack_sub_net_request.py +15 -2
  206. waldur_api_client/models/patched_project_request.py +17 -0
  207. waldur_api_client/models/patched_question_admin_request.py +17 -0
  208. waldur_api_client/models/patched_rancher_service_request.py +1 -1
  209. waldur_api_client/models/patched_user_offering_consent_request.py +59 -0
  210. waldur_api_client/models/permission_project.py +147 -0
  211. waldur_api_client/models/permission_request.py +16 -0
  212. waldur_api_client/models/project.py +17 -0
  213. waldur_api_client/models/project_answer.py +122 -0
  214. waldur_api_client/models/project_detail.py +133 -0
  215. waldur_api_client/models/project_details_response.py +115 -0
  216. waldur_api_client/models/project_permission_review.py +166 -0
  217. waldur_api_client/models/project_permissions_reviews_count_o_item.py +11 -0
  218. waldur_api_client/models/project_permissions_reviews_list_o_item.py +11 -0
  219. waldur_api_client/models/project_request.py +17 -0
  220. waldur_api_client/models/project_service_account.py +9 -0
  221. waldur_api_client/models/projects_list_field_item.py +1 -0
  222. waldur_api_client/models/projects_other_users_list_o.py +9 -0
  223. waldur_api_client/models/projects_retrieve_field_item.py +1 -0
  224. waldur_api_client/models/proposal.py +8 -0
  225. waldur_api_client/models/proposal_review.py +8 -0
  226. waldur_api_client/models/provider_offering_details.py +0 -18
  227. waldur_api_client/models/provider_offering_details_request.py +0 -18
  228. waldur_api_client/models/public_offering_details.py +0 -18
  229. waldur_api_client/models/question_admin.py +17 -0
  230. waldur_api_client/models/question_admin_request.py +17 -0
  231. waldur_api_client/models/question_answer.py +176 -0
  232. waldur_api_client/models/question_answer_project_answers_item.py +44 -0
  233. waldur_api_client/models/question_answer_question_options_item.py +44 -0
  234. waldur_api_client/models/rancher_nested_public_ip.py +25 -7
  235. waldur_api_client/models/rancher_service.py +1 -1
  236. waldur_api_client/models/rancher_service_request.py +1 -1
  237. waldur_api_client/models/remote_resource_order.py +88 -0
  238. waldur_api_client/models/remote_resource_order_remote_state_enum.py +15 -0
  239. waldur_api_client/models/remote_resource_sync_status.py +123 -0
  240. waldur_api_client/models/{robot_account_states.py → remote_resource_sync_status_remote_state_enum.py} +1 -1
  241. waldur_api_client/models/remote_resource_team_member.py +85 -0
  242. waldur_api_client/models/resource.py +10 -9
  243. waldur_api_client/models/rmq_connection.py +8 -3
  244. waldur_api_client/models/rmq_subscription.py +7 -3
  245. waldur_api_client/models/robot_account.py +9 -17
  246. waldur_api_client/models/robot_account_details.py +9 -17
  247. waldur_api_client/models/service_account_state.py +10 -0
  248. waldur_api_client/models/service_provider.py +9 -0
  249. waldur_api_client/models/slurm_invoices_slurm_package_create_order_attributes.py +3 -0
  250. waldur_api_client/models/submit_request_response.py +75 -0
  251. waldur_api_client/models/sync_status_enum.py +10 -0
  252. waldur_api_client/models/user_offering_consent.py +202 -0
  253. waldur_api_client/models/user_offering_consent_create.py +60 -0
  254. waldur_api_client/models/user_offering_consent_create_request.py +60 -0
  255. waldur_api_client/models/user_offering_consent_request.py +59 -0
  256. waldur_api_client/models/v_mware_virtual_machine_create_order_attributes.py +3 -0
  257. waldur_api_client/models/visible_invitation_details.py +9 -0
  258. {waldur_api_client-7.7.6.dist-info → waldur_api_client-7.7.8.dist-info}/METADATA +1 -1
  259. {waldur_api_client-7.7.6.dist-info → waldur_api_client-7.7.8.dist-info}/RECORD +261 -145
  260. {waldur_api_client-7.7.6.dist-info → waldur_api_client-7.7.8.dist-info}/LICENSE +0 -0
  261. {waldur_api_client-7.7.6.dist-info → waldur_api_client-7.7.8.dist-info}/WHEEL +0 -0
@@ -7,6 +7,7 @@ import httpx
7
7
  from ... import errors
8
8
  from ...client import AuthenticatedClient, Client
9
9
  from ...models.invoice_item import InvoiceItem
10
+ from ...models.invoices_items_retrieve_o import InvoicesItemsRetrieveO
10
11
  from ...types import UNSET, Response, Unset
11
12
 
12
13
 
@@ -14,6 +15,7 @@ def _get_kwargs(
14
15
  uuid: UUID,
15
16
  *,
16
17
  conceal_compensation_items: Union[Unset, bool] = UNSET,
18
+ o: Union[Unset, InvoicesItemsRetrieveO] = UNSET,
17
19
  offering_uuid: Union[Unset, str] = UNSET,
18
20
  project_uuid: Union[Unset, str] = UNSET,
19
21
  provider_uuid: Union[Unset, str] = UNSET,
@@ -23,6 +25,12 @@ def _get_kwargs(
23
25
 
24
26
  params["conceal_compensation_items"] = conceal_compensation_items
25
27
 
28
+ json_o: Union[Unset, str] = UNSET
29
+ if not isinstance(o, Unset):
30
+ json_o = o.value
31
+
32
+ params["o"] = json_o
33
+
26
34
  params["offering_uuid"] = offering_uuid
27
35
 
28
36
  params["project_uuid"] = project_uuid
@@ -64,6 +72,7 @@ def sync_detailed(
64
72
  *,
65
73
  client: AuthenticatedClient,
66
74
  conceal_compensation_items: Union[Unset, bool] = UNSET,
75
+ o: Union[Unset, InvoicesItemsRetrieveO] = UNSET,
67
76
  offering_uuid: Union[Unset, str] = UNSET,
68
77
  project_uuid: Union[Unset, str] = UNSET,
69
78
  provider_uuid: Union[Unset, str] = UNSET,
@@ -76,6 +85,7 @@ def sync_detailed(
76
85
  Args:
77
86
  uuid (UUID):
78
87
  conceal_compensation_items (Union[Unset, bool]):
88
+ o (Union[Unset, InvoicesItemsRetrieveO]):
79
89
  offering_uuid (Union[Unset, str]):
80
90
  project_uuid (Union[Unset, str]):
81
91
  provider_uuid (Union[Unset, str]):
@@ -92,6 +102,7 @@ def sync_detailed(
92
102
  kwargs = _get_kwargs(
93
103
  uuid=uuid,
94
104
  conceal_compensation_items=conceal_compensation_items,
105
+ o=o,
95
106
  offering_uuid=offering_uuid,
96
107
  project_uuid=project_uuid,
97
108
  provider_uuid=provider_uuid,
@@ -110,6 +121,7 @@ def sync(
110
121
  *,
111
122
  client: AuthenticatedClient,
112
123
  conceal_compensation_items: Union[Unset, bool] = UNSET,
124
+ o: Union[Unset, InvoicesItemsRetrieveO] = UNSET,
113
125
  offering_uuid: Union[Unset, str] = UNSET,
114
126
  project_uuid: Union[Unset, str] = UNSET,
115
127
  provider_uuid: Union[Unset, str] = UNSET,
@@ -122,6 +134,7 @@ def sync(
122
134
  Args:
123
135
  uuid (UUID):
124
136
  conceal_compensation_items (Union[Unset, bool]):
137
+ o (Union[Unset, InvoicesItemsRetrieveO]):
125
138
  offering_uuid (Union[Unset, str]):
126
139
  project_uuid (Union[Unset, str]):
127
140
  provider_uuid (Union[Unset, str]):
@@ -139,6 +152,7 @@ def sync(
139
152
  uuid=uuid,
140
153
  client=client,
141
154
  conceal_compensation_items=conceal_compensation_items,
155
+ o=o,
142
156
  offering_uuid=offering_uuid,
143
157
  project_uuid=project_uuid,
144
158
  provider_uuid=provider_uuid,
@@ -151,6 +165,7 @@ async def asyncio_detailed(
151
165
  *,
152
166
  client: AuthenticatedClient,
153
167
  conceal_compensation_items: Union[Unset, bool] = UNSET,
168
+ o: Union[Unset, InvoicesItemsRetrieveO] = UNSET,
154
169
  offering_uuid: Union[Unset, str] = UNSET,
155
170
  project_uuid: Union[Unset, str] = UNSET,
156
171
  provider_uuid: Union[Unset, str] = UNSET,
@@ -163,6 +178,7 @@ async def asyncio_detailed(
163
178
  Args:
164
179
  uuid (UUID):
165
180
  conceal_compensation_items (Union[Unset, bool]):
181
+ o (Union[Unset, InvoicesItemsRetrieveO]):
166
182
  offering_uuid (Union[Unset, str]):
167
183
  project_uuid (Union[Unset, str]):
168
184
  provider_uuid (Union[Unset, str]):
@@ -179,6 +195,7 @@ async def asyncio_detailed(
179
195
  kwargs = _get_kwargs(
180
196
  uuid=uuid,
181
197
  conceal_compensation_items=conceal_compensation_items,
198
+ o=o,
182
199
  offering_uuid=offering_uuid,
183
200
  project_uuid=project_uuid,
184
201
  provider_uuid=provider_uuid,
@@ -195,6 +212,7 @@ async def asyncio(
195
212
  *,
196
213
  client: AuthenticatedClient,
197
214
  conceal_compensation_items: Union[Unset, bool] = UNSET,
215
+ o: Union[Unset, InvoicesItemsRetrieveO] = UNSET,
198
216
  offering_uuid: Union[Unset, str] = UNSET,
199
217
  project_uuid: Union[Unset, str] = UNSET,
200
218
  provider_uuid: Union[Unset, str] = UNSET,
@@ -207,6 +225,7 @@ async def asyncio(
207
225
  Args:
208
226
  uuid (UUID):
209
227
  conceal_compensation_items (Union[Unset, bool]):
228
+ o (Union[Unset, InvoicesItemsRetrieveO]):
210
229
  offering_uuid (Union[Unset, str]):
211
230
  project_uuid (Union[Unset, str]):
212
231
  provider_uuid (Union[Unset, str]):
@@ -225,6 +244,7 @@ async def asyncio(
225
244
  uuid=uuid,
226
245
  client=client,
227
246
  conceal_compensation_items=conceal_compensation_items,
247
+ o=o,
228
248
  offering_uuid=offering_uuid,
229
249
  project_uuid=project_uuid,
230
250
  provider_uuid=provider_uuid,
@@ -0,0 +1 @@
1
+ """Contains endpoint functions for accessing the API"""
@@ -0,0 +1,162 @@
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.managed_rancher_create_node_request import ManagedRancherCreateNodeRequest
10
+ from ...models.rancher_node import RancherNode
11
+ from ...types import Response
12
+
13
+
14
+ def _get_kwargs(
15
+ uuid: UUID,
16
+ *,
17
+ body: ManagedRancherCreateNodeRequest,
18
+ ) -> dict[str, Any]:
19
+ headers: dict[str, Any] = {}
20
+
21
+ _kwargs: dict[str, Any] = {
22
+ "method": "post",
23
+ "url": f"/api/managed-rancher-cluster-resources/{uuid}/add_node/",
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) -> RancherNode:
35
+ if response.status_code == 200:
36
+ response_200 = RancherNode.from_dict(response.json())
37
+
38
+ return response_200
39
+ raise errors.UnexpectedStatus(response.status_code, response.content)
40
+
41
+
42
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[RancherNode]:
43
+ return Response(
44
+ status_code=HTTPStatus(response.status_code),
45
+ content=response.content,
46
+ headers=response.headers,
47
+ parsed=_parse_response(client=client, response=response),
48
+ )
49
+
50
+
51
+ def sync_detailed(
52
+ uuid: UUID,
53
+ *,
54
+ client: AuthenticatedClient,
55
+ body: ManagedRancherCreateNodeRequest,
56
+ ) -> Response[RancherNode]:
57
+ """
58
+ Args:
59
+ uuid (UUID):
60
+ body (ManagedRancherCreateNodeRequest):
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[RancherNode]
68
+ """
69
+
70
+ kwargs = _get_kwargs(
71
+ uuid=uuid,
72
+ body=body,
73
+ )
74
+
75
+ response = client.get_httpx_client().request(
76
+ **kwargs,
77
+ )
78
+
79
+ return _build_response(client=client, response=response)
80
+
81
+
82
+ def sync(
83
+ uuid: UUID,
84
+ *,
85
+ client: AuthenticatedClient,
86
+ body: ManagedRancherCreateNodeRequest,
87
+ ) -> RancherNode:
88
+ """
89
+ Args:
90
+ uuid (UUID):
91
+ body (ManagedRancherCreateNodeRequest):
92
+
93
+ Raises:
94
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
95
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
96
+
97
+ Returns:
98
+ RancherNode
99
+ """
100
+
101
+ return sync_detailed(
102
+ uuid=uuid,
103
+ client=client,
104
+ body=body,
105
+ ).parsed
106
+
107
+
108
+ async def asyncio_detailed(
109
+ uuid: UUID,
110
+ *,
111
+ client: AuthenticatedClient,
112
+ body: ManagedRancherCreateNodeRequest,
113
+ ) -> Response[RancherNode]:
114
+ """
115
+ Args:
116
+ uuid (UUID):
117
+ body (ManagedRancherCreateNodeRequest):
118
+
119
+ Raises:
120
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
121
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
122
+
123
+ Returns:
124
+ Response[RancherNode]
125
+ """
126
+
127
+ kwargs = _get_kwargs(
128
+ uuid=uuid,
129
+ body=body,
130
+ )
131
+
132
+ response = await client.get_async_httpx_client().request(**kwargs)
133
+
134
+ return _build_response(client=client, response=response)
135
+
136
+
137
+ async def asyncio(
138
+ uuid: UUID,
139
+ *,
140
+ client: AuthenticatedClient,
141
+ body: ManagedRancherCreateNodeRequest,
142
+ ) -> RancherNode:
143
+ """
144
+ Args:
145
+ uuid (UUID):
146
+ body (ManagedRancherCreateNodeRequest):
147
+
148
+ Raises:
149
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
150
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
151
+
152
+ Returns:
153
+ RancherNode
154
+ """
155
+
156
+ return (
157
+ await asyncio_detailed(
158
+ uuid=uuid,
159
+ client=client,
160
+ body=body,
161
+ )
162
+ ).parsed
@@ -0,0 +1,172 @@
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 ...types import UNSET, Response, Unset
9
+
10
+
11
+ def _get_kwargs(
12
+ *,
13
+ page: Union[Unset, int] = UNSET,
14
+ page_size: Union[Unset, int] = UNSET,
15
+ ) -> dict[str, Any]:
16
+ params: dict[str, Any] = {}
17
+
18
+ params["page"] = page
19
+
20
+ params["page_size"] = page_size
21
+
22
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
23
+
24
+ _kwargs: dict[str, Any] = {
25
+ "method": "head",
26
+ "url": "/api/managed-rancher-cluster-resources/",
27
+ "params": params,
28
+ }
29
+
30
+ return _kwargs
31
+
32
+
33
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> int:
34
+ if response.status_code == HTTPStatus.OK:
35
+ try:
36
+ return int(response.headers["x-result-count"])
37
+ except KeyError:
38
+ raise errors.UnexpectedStatus(
39
+ response.status_code, b"Expected 'X-Result-Count' header for HEAD request, but it was not found."
40
+ )
41
+ except ValueError:
42
+ count_val = response.headers.get("x-result-count")
43
+ msg = f"Expected 'X-Result-Count' header to be an integer, but got '{count_val}'."
44
+ raise errors.UnexpectedStatus(response.status_code, msg.encode())
45
+ raise errors.UnexpectedStatus(response.status_code, response.content)
46
+
47
+
48
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[int]:
49
+ return Response(
50
+ status_code=HTTPStatus(response.status_code),
51
+ content=response.content,
52
+ headers=response.headers,
53
+ parsed=_parse_response(client=client, response=response),
54
+ )
55
+
56
+
57
+ def sync_detailed(
58
+ *,
59
+ client: AuthenticatedClient,
60
+ page: Union[Unset, int] = UNSET,
61
+ page_size: Union[Unset, int] = UNSET,
62
+ ) -> Response[int]:
63
+ """Get number of items in the collection matching the request parameters.
64
+
65
+ Args:
66
+ page (Union[Unset, int]):
67
+ page_size (Union[Unset, int]):
68
+
69
+ Raises:
70
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
71
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
72
+
73
+ Returns:
74
+ Response[int]
75
+ """
76
+
77
+ kwargs = _get_kwargs(
78
+ page=page,
79
+ page_size=page_size,
80
+ )
81
+
82
+ response = client.get_httpx_client().request(
83
+ **kwargs,
84
+ )
85
+
86
+ return _build_response(client=client, response=response)
87
+
88
+
89
+ def sync(
90
+ *,
91
+ client: AuthenticatedClient,
92
+ page: Union[Unset, int] = UNSET,
93
+ page_size: Union[Unset, int] = UNSET,
94
+ ) -> int:
95
+ """Get number of items in the collection matching the request parameters.
96
+
97
+ Args:
98
+ page (Union[Unset, int]):
99
+ page_size (Union[Unset, int]):
100
+
101
+ Raises:
102
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
103
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
104
+
105
+ Returns:
106
+ int
107
+ """
108
+
109
+ return sync_detailed(
110
+ client=client,
111
+ page=page,
112
+ page_size=page_size,
113
+ ).parsed
114
+
115
+
116
+ async def asyncio_detailed(
117
+ *,
118
+ client: AuthenticatedClient,
119
+ page: Union[Unset, int] = UNSET,
120
+ page_size: Union[Unset, int] = UNSET,
121
+ ) -> Response[int]:
122
+ """Get number of items in the collection matching the request parameters.
123
+
124
+ Args:
125
+ page (Union[Unset, int]):
126
+ page_size (Union[Unset, int]):
127
+
128
+ Raises:
129
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
130
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
131
+
132
+ Returns:
133
+ Response[int]
134
+ """
135
+
136
+ kwargs = _get_kwargs(
137
+ page=page,
138
+ page_size=page_size,
139
+ )
140
+
141
+ response = await client.get_async_httpx_client().request(**kwargs)
142
+
143
+ return _build_response(client=client, response=response)
144
+
145
+
146
+ async def asyncio(
147
+ *,
148
+ client: AuthenticatedClient,
149
+ page: Union[Unset, int] = UNSET,
150
+ page_size: Union[Unset, int] = UNSET,
151
+ ) -> int:
152
+ """Get number of items in the collection matching the request parameters.
153
+
154
+ Args:
155
+ page (Union[Unset, int]):
156
+ page_size (Union[Unset, int]):
157
+
158
+ Raises:
159
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
160
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
161
+
162
+ Returns:
163
+ int
164
+ """
165
+
166
+ return (
167
+ await asyncio_detailed(
168
+ client=client,
169
+ page=page,
170
+ page_size=page_size,
171
+ )
172
+ ).parsed
@@ -0,0 +1,196 @@
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.managed_rancher_cluster_resources_list_field_item import ManagedRancherClusterResourcesListFieldItem
9
+ from ...models.resource import Resource
10
+ from ...types import UNSET, Response, Unset
11
+
12
+
13
+ def _get_kwargs(
14
+ *,
15
+ field: Union[Unset, list[ManagedRancherClusterResourcesListFieldItem]] = UNSET,
16
+ page: Union[Unset, int] = UNSET,
17
+ page_size: Union[Unset, int] = UNSET,
18
+ ) -> dict[str, Any]:
19
+ params: dict[str, Any] = {}
20
+
21
+ json_field: Union[Unset, list[str]] = UNSET
22
+ if not isinstance(field, Unset):
23
+ json_field = []
24
+ for field_item_data in field:
25
+ field_item = field_item_data.value
26
+ json_field.append(field_item)
27
+
28
+ params["field"] = json_field
29
+
30
+ params["page"] = page
31
+
32
+ params["page_size"] = page_size
33
+
34
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
35
+
36
+ _kwargs: dict[str, Any] = {
37
+ "method": "get",
38
+ "url": "/api/managed-rancher-cluster-resources/",
39
+ "params": params,
40
+ }
41
+
42
+ return _kwargs
43
+
44
+
45
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> list["Resource"]:
46
+ if response.status_code == 200:
47
+ response_200 = []
48
+ _response_200 = response.json()
49
+ for response_200_item_data in _response_200:
50
+ response_200_item = Resource.from_dict(response_200_item_data)
51
+
52
+ response_200.append(response_200_item)
53
+
54
+ return response_200
55
+ raise errors.UnexpectedStatus(response.status_code, response.content)
56
+
57
+
58
+ def _build_response(
59
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
60
+ ) -> Response[list["Resource"]]:
61
+ return Response(
62
+ status_code=HTTPStatus(response.status_code),
63
+ content=response.content,
64
+ headers=response.headers,
65
+ parsed=_parse_response(client=client, response=response),
66
+ )
67
+
68
+
69
+ def sync_detailed(
70
+ *,
71
+ client: AuthenticatedClient,
72
+ field: Union[Unset, list[ManagedRancherClusterResourcesListFieldItem]] = UNSET,
73
+ page: Union[Unset, int] = UNSET,
74
+ page_size: Union[Unset, int] = UNSET,
75
+ ) -> Response[list["Resource"]]:
76
+ """Mixin to optimize HEAD requests for DRF views bypassing serializer processing
77
+
78
+ Args:
79
+ field (Union[Unset, list[ManagedRancherClusterResourcesListFieldItem]]):
80
+ page (Union[Unset, int]):
81
+ page_size (Union[Unset, int]):
82
+
83
+ Raises:
84
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
85
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
86
+
87
+ Returns:
88
+ Response[list['Resource']]
89
+ """
90
+
91
+ kwargs = _get_kwargs(
92
+ field=field,
93
+ page=page,
94
+ page_size=page_size,
95
+ )
96
+
97
+ response = client.get_httpx_client().request(
98
+ **kwargs,
99
+ )
100
+
101
+ return _build_response(client=client, response=response)
102
+
103
+
104
+ def sync(
105
+ *,
106
+ client: AuthenticatedClient,
107
+ field: Union[Unset, list[ManagedRancherClusterResourcesListFieldItem]] = UNSET,
108
+ page: Union[Unset, int] = UNSET,
109
+ page_size: Union[Unset, int] = UNSET,
110
+ ) -> list["Resource"]:
111
+ """Mixin to optimize HEAD requests for DRF views bypassing serializer processing
112
+
113
+ Args:
114
+ field (Union[Unset, list[ManagedRancherClusterResourcesListFieldItem]]):
115
+ page (Union[Unset, int]):
116
+ page_size (Union[Unset, int]):
117
+
118
+ Raises:
119
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
120
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
121
+
122
+ Returns:
123
+ list['Resource']
124
+ """
125
+
126
+ return sync_detailed(
127
+ client=client,
128
+ field=field,
129
+ page=page,
130
+ page_size=page_size,
131
+ ).parsed
132
+
133
+
134
+ async def asyncio_detailed(
135
+ *,
136
+ client: AuthenticatedClient,
137
+ field: Union[Unset, list[ManagedRancherClusterResourcesListFieldItem]] = UNSET,
138
+ page: Union[Unset, int] = UNSET,
139
+ page_size: Union[Unset, int] = UNSET,
140
+ ) -> Response[list["Resource"]]:
141
+ """Mixin to optimize HEAD requests for DRF views bypassing serializer processing
142
+
143
+ Args:
144
+ field (Union[Unset, list[ManagedRancherClusterResourcesListFieldItem]]):
145
+ page (Union[Unset, int]):
146
+ page_size (Union[Unset, int]):
147
+
148
+ Raises:
149
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
150
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
151
+
152
+ Returns:
153
+ Response[list['Resource']]
154
+ """
155
+
156
+ kwargs = _get_kwargs(
157
+ field=field,
158
+ page=page,
159
+ page_size=page_size,
160
+ )
161
+
162
+ response = await client.get_async_httpx_client().request(**kwargs)
163
+
164
+ return _build_response(client=client, response=response)
165
+
166
+
167
+ async def asyncio(
168
+ *,
169
+ client: AuthenticatedClient,
170
+ field: Union[Unset, list[ManagedRancherClusterResourcesListFieldItem]] = UNSET,
171
+ page: Union[Unset, int] = UNSET,
172
+ page_size: Union[Unset, int] = UNSET,
173
+ ) -> list["Resource"]:
174
+ """Mixin to optimize HEAD requests for DRF views bypassing serializer processing
175
+
176
+ Args:
177
+ field (Union[Unset, list[ManagedRancherClusterResourcesListFieldItem]]):
178
+ page (Union[Unset, int]):
179
+ page_size (Union[Unset, int]):
180
+
181
+ Raises:
182
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
183
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
184
+
185
+ Returns:
186
+ list['Resource']
187
+ """
188
+
189
+ return (
190
+ await asyncio_detailed(
191
+ client=client,
192
+ field=field,
193
+ page=page,
194
+ page_size=page_size,
195
+ )
196
+ ).parsed