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
@@ -1,5 +1,5 @@
1
1
  from collections.abc import Mapping
2
- from typing import Any, TypeVar, Union
2
+ from typing import Any, TypeVar, Union, cast
3
3
 
4
4
  from attrs import define as _attrs_define
5
5
  from attrs import field as _attrs_field
@@ -14,7 +14,7 @@ class OpenStackStaticRoute:
14
14
  """
15
15
  Attributes:
16
16
  destination (Union[Unset, str]):
17
- nexthop (Union[Unset, str]):
17
+ nexthop (Union[Unset, str]): An IPv4 or IPv6 address.
18
18
  """
19
19
 
20
20
  destination: Union[Unset, str] = UNSET
@@ -24,7 +24,11 @@ class OpenStackStaticRoute:
24
24
  def to_dict(self) -> dict[str, Any]:
25
25
  destination = self.destination
26
26
 
27
- nexthop = self.nexthop
27
+ nexthop: Union[Unset, str]
28
+ if isinstance(self.nexthop, Unset):
29
+ nexthop = UNSET
30
+ else:
31
+ nexthop = self.nexthop
28
32
 
29
33
  field_dict: dict[str, Any] = {}
30
34
  field_dict.update(self.additional_properties)
@@ -41,7 +45,12 @@ class OpenStackStaticRoute:
41
45
  d = dict(src_dict)
42
46
  destination = d.pop("destination", UNSET)
43
47
 
44
- nexthop = d.pop("nexthop", UNSET)
48
+ def _parse_nexthop(data: object) -> Union[Unset, str]:
49
+ if isinstance(data, Unset):
50
+ return data
51
+ return cast(Union[Unset, str], data)
52
+
53
+ nexthop = _parse_nexthop(d.pop("nexthop", UNSET))
45
54
 
46
55
  open_stack_static_route = cls(
47
56
  destination=destination,
@@ -1,5 +1,5 @@
1
1
  from collections.abc import Mapping
2
- from typing import Any, TypeVar
2
+ from typing import Any, TypeVar, cast
3
3
 
4
4
  from attrs import define as _attrs_define
5
5
  from attrs import field as _attrs_field
@@ -12,7 +12,7 @@ class OpenStackStaticRouteRequest:
12
12
  """
13
13
  Attributes:
14
14
  destination (str):
15
- nexthop (str):
15
+ nexthop (str): An IPv4 or IPv6 address.
16
16
  """
17
17
 
18
18
  destination: str
@@ -22,6 +22,7 @@ class OpenStackStaticRouteRequest:
22
22
  def to_dict(self) -> dict[str, Any]:
23
23
  destination = self.destination
24
24
 
25
+ nexthop: str
25
26
  nexthop = self.nexthop
26
27
 
27
28
  field_dict: dict[str, Any] = {}
@@ -40,7 +41,10 @@ class OpenStackStaticRouteRequest:
40
41
  d = dict(src_dict)
41
42
  destination = d.pop("destination")
42
43
 
43
- nexthop = d.pop("nexthop")
44
+ def _parse_nexthop(data: object) -> str:
45
+ return cast(str, data)
46
+
47
+ nexthop = _parse_nexthop(d.pop("nexthop"))
44
48
 
45
49
  open_stack_static_route_request = cls(
46
50
  destination=destination,
@@ -226,7 +226,11 @@ class OpenStackSubNet:
226
226
 
227
227
  dns_nameservers: Union[Unset, list[str]] = UNSET
228
228
  if not isinstance(self.dns_nameservers, Unset):
229
- dns_nameservers = self.dns_nameservers
229
+ dns_nameservers = []
230
+ for dns_nameservers_item_data in self.dns_nameservers:
231
+ dns_nameservers_item: str
232
+ dns_nameservers_item = dns_nameservers_item_data
233
+ dns_nameservers.append(dns_nameservers_item)
230
234
 
231
235
  host_routes: Union[Unset, list[dict[str, Any]]] = UNSET
232
236
  if not isinstance(self.host_routes, Unset):
@@ -525,7 +529,16 @@ class OpenStackSubNet:
525
529
 
526
530
  enable_dhcp = d.pop("enable_dhcp", UNSET)
527
531
 
528
- dns_nameservers = cast(list[str], d.pop("dns_nameservers", UNSET))
532
+ dns_nameservers = []
533
+ _dns_nameservers = d.pop("dns_nameservers", UNSET)
534
+ for dns_nameservers_item_data in _dns_nameservers or []:
535
+
536
+ def _parse_dns_nameservers_item(data: object) -> str:
537
+ return cast(str, data)
538
+
539
+ dns_nameservers_item = _parse_dns_nameservers_item(dns_nameservers_item_data)
540
+
541
+ dns_nameservers.append(dns_nameservers_item)
529
542
 
530
543
  host_routes = []
531
544
  _host_routes = d.pop("host_routes", UNSET)
@@ -1,5 +1,5 @@
1
1
  from collections.abc import Mapping
2
- from typing import Any, TypeVar, Union
2
+ from typing import Any, TypeVar, Union, cast
3
3
 
4
4
  from attrs import define as _attrs_define
5
5
  from attrs import field as _attrs_field
@@ -13,8 +13,8 @@ T = TypeVar("T", bound="OpenStackSubNetAllocationPool")
13
13
  class OpenStackSubNetAllocationPool:
14
14
  """
15
15
  Attributes:
16
- start (Union[Unset, str]):
17
- end (Union[Unset, str]):
16
+ start (Union[Unset, str]): An IPv4 or IPv6 address.
17
+ end (Union[Unset, str]): An IPv4 or IPv6 address.
18
18
  """
19
19
 
20
20
  start: Union[Unset, str] = UNSET
@@ -22,9 +22,17 @@ class OpenStackSubNetAllocationPool:
22
22
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
23
23
 
24
24
  def to_dict(self) -> dict[str, Any]:
25
- start = self.start
26
-
27
- end = self.end
25
+ start: Union[Unset, str]
26
+ if isinstance(self.start, Unset):
27
+ start = UNSET
28
+ else:
29
+ start = self.start
30
+
31
+ end: Union[Unset, str]
32
+ if isinstance(self.end, Unset):
33
+ end = UNSET
34
+ else:
35
+ end = self.end
28
36
 
29
37
  field_dict: dict[str, Any] = {}
30
38
  field_dict.update(self.additional_properties)
@@ -39,9 +47,20 @@ class OpenStackSubNetAllocationPool:
39
47
  @classmethod
40
48
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
41
49
  d = dict(src_dict)
42
- start = d.pop("start", UNSET)
43
50
 
44
- end = d.pop("end", UNSET)
51
+ def _parse_start(data: object) -> Union[Unset, str]:
52
+ if isinstance(data, Unset):
53
+ return data
54
+ return cast(Union[Unset, str], data)
55
+
56
+ start = _parse_start(d.pop("start", UNSET))
57
+
58
+ def _parse_end(data: object) -> Union[Unset, str]:
59
+ if isinstance(data, Unset):
60
+ return data
61
+ return cast(Union[Unset, str], data)
62
+
63
+ end = _parse_end(d.pop("end", UNSET))
45
64
 
46
65
  open_stack_sub_net_allocation_pool = cls(
47
66
  start=start,
@@ -1,5 +1,5 @@
1
1
  from collections.abc import Mapping
2
- from typing import Any, TypeVar
2
+ from typing import Any, TypeVar, cast
3
3
 
4
4
  from attrs import define as _attrs_define
5
5
  from attrs import field as _attrs_field
@@ -11,8 +11,8 @@ T = TypeVar("T", bound="OpenStackSubNetAllocationPoolRequest")
11
11
  class OpenStackSubNetAllocationPoolRequest:
12
12
  """
13
13
  Attributes:
14
- start (str):
15
- end (str):
14
+ start (str): An IPv4 or IPv6 address.
15
+ end (str): An IPv4 or IPv6 address.
16
16
  """
17
17
 
18
18
  start: str
@@ -20,8 +20,10 @@ class OpenStackSubNetAllocationPoolRequest:
20
20
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
21
21
 
22
22
  def to_dict(self) -> dict[str, Any]:
23
+ start: str
23
24
  start = self.start
24
25
 
26
+ end: str
25
27
  end = self.end
26
28
 
27
29
  field_dict: dict[str, Any] = {}
@@ -38,9 +40,16 @@ class OpenStackSubNetAllocationPoolRequest:
38
40
  @classmethod
39
41
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
40
42
  d = dict(src_dict)
41
- start = d.pop("start")
42
43
 
43
- end = d.pop("end")
44
+ def _parse_start(data: object) -> str:
45
+ return cast(str, data)
46
+
47
+ start = _parse_start(d.pop("start"))
48
+
49
+ def _parse_end(data: object) -> str:
50
+ return cast(str, data)
51
+
52
+ end = _parse_end(d.pop("end"))
44
53
 
45
54
  open_stack_sub_net_allocation_pool_request = cls(
46
55
  start=start,
@@ -62,7 +62,11 @@ class OpenStackSubNetRequest:
62
62
 
63
63
  dns_nameservers: Union[Unset, list[str]] = UNSET
64
64
  if not isinstance(self.dns_nameservers, Unset):
65
- dns_nameservers = self.dns_nameservers
65
+ dns_nameservers = []
66
+ for dns_nameservers_item_data in self.dns_nameservers:
67
+ dns_nameservers_item: str
68
+ dns_nameservers_item = dns_nameservers_item_data
69
+ dns_nameservers.append(dns_nameservers_item)
66
70
 
67
71
  host_routes: Union[Unset, list[dict[str, Any]]] = UNSET
68
72
  if not isinstance(self.host_routes, Unset):
@@ -125,7 +129,16 @@ class OpenStackSubNetRequest:
125
129
 
126
130
  allocation_pools.append(allocation_pools_item)
127
131
 
128
- dns_nameservers = cast(list[str], d.pop("dns_nameservers", UNSET))
132
+ dns_nameservers = []
133
+ _dns_nameservers = d.pop("dns_nameservers", UNSET)
134
+ for dns_nameservers_item_data in _dns_nameservers or []:
135
+
136
+ def _parse_dns_nameservers_item(data: object) -> str:
137
+ return cast(str, data)
138
+
139
+ dns_nameservers_item = _parse_dns_nameservers_item(dns_nameservers_item_data)
140
+
141
+ dns_nameservers.append(dns_nameservers_item)
129
142
 
130
143
  host_routes = []
131
144
  _host_routes = d.pop("host_routes", UNSET)
@@ -47,10 +47,13 @@ class OpenStackTenant:
47
47
  created (Union[Unset, datetime.datetime]):
48
48
  modified (Union[Unset, datetime.datetime]):
49
49
  backend_id (Union[None, Unset, str]): ID of tenant in the OpenStack backend
50
+ access_url (Union[None, Unset, str]):
50
51
  availability_zone (Union[Unset, str]): Optional availability group. Will be used for all instances provisioned
51
52
  in this tenant
52
53
  internal_network_id (Union[Unset, str]): ID of internal network in OpenStack tenant
53
54
  external_network_id (Union[Unset, str]): ID of external network connected to OpenStack tenant
55
+ user_username (Union[Unset, str]): Username of the tenant user
56
+ user_password (Union[Unset, str]): Password of the tenant user
54
57
  quotas (Union[Unset, list['Quota']]):
55
58
  default_volume_type_name (Union[Unset, str]): Volume type name to use when creating volumes.
56
59
  marketplace_offering_uuid (Union[None, Unset, str]):
@@ -89,9 +92,12 @@ class OpenStackTenant:
89
92
  created: Union[Unset, datetime.datetime] = UNSET
90
93
  modified: Union[Unset, datetime.datetime] = UNSET
91
94
  backend_id: Union[None, Unset, str] = UNSET
95
+ access_url: Union[None, Unset, str] = UNSET
92
96
  availability_zone: Union[Unset, str] = UNSET
93
97
  internal_network_id: Union[Unset, str] = UNSET
94
98
  external_network_id: Union[Unset, str] = UNSET
99
+ user_username: Union[Unset, str] = UNSET
100
+ user_password: Union[Unset, str] = UNSET
95
101
  quotas: Union[Unset, list["Quota"]] = UNSET
96
102
  default_volume_type_name: Union[Unset, str] = UNSET
97
103
  marketplace_offering_uuid: Union[None, Unset, str] = UNSET
@@ -175,12 +181,22 @@ class OpenStackTenant:
175
181
  else:
176
182
  backend_id = self.backend_id
177
183
 
184
+ access_url: Union[None, Unset, str]
185
+ if isinstance(self.access_url, Unset):
186
+ access_url = UNSET
187
+ else:
188
+ access_url = self.access_url
189
+
178
190
  availability_zone = self.availability_zone
179
191
 
180
192
  internal_network_id = self.internal_network_id
181
193
 
182
194
  external_network_id = self.external_network_id
183
195
 
196
+ user_username = self.user_username
197
+
198
+ user_password = self.user_password
199
+
184
200
  quotas: Union[Unset, list[dict[str, Any]]] = UNSET
185
201
  if not isinstance(self.quotas, Unset):
186
202
  quotas = []
@@ -301,12 +317,18 @@ class OpenStackTenant:
301
317
  field_dict["modified"] = modified
302
318
  if backend_id is not UNSET:
303
319
  field_dict["backend_id"] = backend_id
320
+ if access_url is not UNSET:
321
+ field_dict["access_url"] = access_url
304
322
  if availability_zone is not UNSET:
305
323
  field_dict["availability_zone"] = availability_zone
306
324
  if internal_network_id is not UNSET:
307
325
  field_dict["internal_network_id"] = internal_network_id
308
326
  if external_network_id is not UNSET:
309
327
  field_dict["external_network_id"] = external_network_id
328
+ if user_username is not UNSET:
329
+ field_dict["user_username"] = user_username
330
+ if user_password is not UNSET:
331
+ field_dict["user_password"] = user_password
310
332
  if quotas is not UNSET:
311
333
  field_dict["quotas"] = quotas
312
334
  if default_volume_type_name is not UNSET:
@@ -425,12 +447,25 @@ class OpenStackTenant:
425
447
 
426
448
  backend_id = _parse_backend_id(d.pop("backend_id", UNSET))
427
449
 
450
+ def _parse_access_url(data: object) -> Union[None, Unset, str]:
451
+ if data is None:
452
+ return data
453
+ if isinstance(data, Unset):
454
+ return data
455
+ return cast(Union[None, Unset, str], data)
456
+
457
+ access_url = _parse_access_url(d.pop("access_url", UNSET))
458
+
428
459
  availability_zone = d.pop("availability_zone", UNSET)
429
460
 
430
461
  internal_network_id = d.pop("internal_network_id", UNSET)
431
462
 
432
463
  external_network_id = d.pop("external_network_id", UNSET)
433
464
 
465
+ user_username = d.pop("user_username", UNSET)
466
+
467
+ user_password = d.pop("user_password", UNSET)
468
+
434
469
  quotas = []
435
470
  _quotas = d.pop("quotas", UNSET)
436
471
  for quotas_item_data in _quotas or []:
@@ -568,9 +603,12 @@ class OpenStackTenant:
568
603
  created=created,
569
604
  modified=modified,
570
605
  backend_id=backend_id,
606
+ access_url=access_url,
571
607
  availability_zone=availability_zone,
572
608
  internal_network_id=internal_network_id,
573
609
  external_network_id=external_network_id,
610
+ user_username=user_username,
611
+ user_password=user_password,
574
612
  quotas=quotas,
575
613
  default_volume_type_name=default_volume_type_name,
576
614
  marketplace_offering_uuid=marketplace_offering_uuid,
@@ -14,9 +14,14 @@ class OpenStackTenantCreateOrderAttributes:
14
14
  """This mixin allows to specify list of fields to be rendered by serializer.
15
15
  It expects that request is available in serializer's context.
16
16
 
17
+ It is disabled for nested serializers (where parent is another serializer)
18
+ but remains active for list views (where parent is a ListSerializer).
19
+
17
20
  Attributes:
18
21
  name (str):
19
22
  description (Union[Unset, str]):
23
+ user_username (Union[Unset, str]): Username of the tenant user
24
+ user_password (Union[Unset, str]): Password of the tenant user
20
25
  subnet_cidr (Union[Unset, str]): Default: '192.168.42.0/24'.
21
26
  skip_connection_extnet (Union[Unset, bool]): Default: False.
22
27
  skip_creation_of_default_router (Union[Unset, bool]): Default: False.
@@ -26,6 +31,8 @@ class OpenStackTenantCreateOrderAttributes:
26
31
 
27
32
  name: str
28
33
  description: Union[Unset, str] = UNSET
34
+ user_username: Union[Unset, str] = UNSET
35
+ user_password: Union[Unset, str] = UNSET
29
36
  subnet_cidr: Union[Unset, str] = "192.168.42.0/24"
30
37
  skip_connection_extnet: Union[Unset, bool] = False
31
38
  skip_creation_of_default_router: Union[Unset, bool] = False
@@ -37,6 +44,10 @@ class OpenStackTenantCreateOrderAttributes:
37
44
 
38
45
  description = self.description
39
46
 
47
+ user_username = self.user_username
48
+
49
+ user_password = self.user_password
50
+
40
51
  subnet_cidr = self.subnet_cidr
41
52
 
42
53
  skip_connection_extnet = self.skip_connection_extnet
@@ -54,6 +65,10 @@ class OpenStackTenantCreateOrderAttributes:
54
65
  )
55
66
  if description is not UNSET:
56
67
  field_dict["description"] = description
68
+ if user_username is not UNSET:
69
+ field_dict["user_username"] = user_username
70
+ if user_password is not UNSET:
71
+ field_dict["user_password"] = user_password
57
72
  if subnet_cidr is not UNSET:
58
73
  field_dict["subnet_cidr"] = subnet_cidr
59
74
  if skip_connection_extnet is not UNSET:
@@ -72,6 +87,10 @@ class OpenStackTenantCreateOrderAttributes:
72
87
 
73
88
  description = d.pop("description", UNSET)
74
89
 
90
+ user_username = d.pop("user_username", UNSET)
91
+
92
+ user_password = d.pop("user_password", UNSET)
93
+
75
94
  subnet_cidr = d.pop("subnet_cidr", UNSET)
76
95
 
77
96
  skip_connection_extnet = d.pop("skip_connection_extnet", UNSET)
@@ -83,6 +102,8 @@ class OpenStackTenantCreateOrderAttributes:
83
102
  open_stack_tenant_create_order_attributes = cls(
84
103
  name=name,
85
104
  description=description,
105
+ user_username=user_username,
106
+ user_password=user_password,
86
107
  subnet_cidr=subnet_cidr,
87
108
  skip_connection_extnet=skip_connection_extnet,
88
109
  skip_creation_of_default_router=skip_creation_of_default_router,
@@ -14,6 +14,9 @@ class OpenStackVolumeCreateOrderAttributes:
14
14
  """This mixin allows to specify list of fields to be rendered by serializer.
15
15
  It expects that request is available in serializer's context.
16
16
 
17
+ It is disabled for nested serializers (where parent is another serializer)
18
+ but remains active for list views (where parent is a ListSerializer).
19
+
17
20
  Attributes:
18
21
  name (str):
19
22
  description (Union[Unset, str]):
@@ -31,6 +31,7 @@ class OpenstackNetworksListFieldItem(str, Enum):
31
31
  PROJECT_UUID = "project_uuid"
32
32
  RBAC_POLICIES = "rbac_policies"
33
33
  RESOURCE_TYPE = "resource_type"
34
+ SEGMENTATION_ID = "segmentation_id"
34
35
  SERVICE_NAME = "service_name"
35
36
  SERVICE_SETTINGS = "service_settings"
36
37
  SERVICE_SETTINGS_ERROR_MESSAGE = "service_settings_error_message"
@@ -31,6 +31,7 @@ class OpenstackNetworksRetrieveFieldItem(str, Enum):
31
31
  PROJECT_UUID = "project_uuid"
32
32
  RBAC_POLICIES = "rbac_policies"
33
33
  RESOURCE_TYPE = "resource_type"
34
+ SEGMENTATION_ID = "segmentation_id"
34
35
  SERVICE_NAME = "service_name"
35
36
  SERVICE_SETTINGS = "service_settings"
36
37
  SERVICE_SETTINGS_ERROR_MESSAGE = "service_settings_error_message"
@@ -2,6 +2,7 @@ from enum import Enum
2
2
 
3
3
 
4
4
  class OpenstackTenantsListFieldItem(str, Enum):
5
+ ACCESS_URL = "access_url"
5
6
  AVAILABILITY_ZONE = "availability_zone"
6
7
  BACKEND_ID = "backend_id"
7
8
  CREATED = "created"
@@ -40,6 +41,8 @@ class OpenstackTenantsListFieldItem(str, Enum):
40
41
  STATE = "state"
41
42
  SUBNET_CIDR = "subnet_cidr"
42
43
  URL = "url"
44
+ USER_PASSWORD = "user_password"
45
+ USER_USERNAME = "user_username"
43
46
  UUID = "uuid"
44
47
 
45
48
  def __str__(self) -> str:
@@ -2,6 +2,7 @@ from enum import Enum
2
2
 
3
3
 
4
4
  class OpenstackTenantsRetrieveFieldItem(str, Enum):
5
+ ACCESS_URL = "access_url"
5
6
  AVAILABILITY_ZONE = "availability_zone"
6
7
  BACKEND_ID = "backend_id"
7
8
  CREATED = "created"
@@ -40,6 +41,8 @@ class OpenstackTenantsRetrieveFieldItem(str, Enum):
40
41
  STATE = "state"
41
42
  SUBNET_CIDR = "subnet_cidr"
42
43
  URL = "url"
44
+ USER_PASSWORD = "user_password"
45
+ USER_USERNAME = "user_username"
43
46
  UUID = "uuid"
44
47
 
45
48
  def __str__(self) -> str:
@@ -30,7 +30,6 @@ class OrderCreate:
30
30
  offering_image (str):
31
31
  offering_thumbnail (str):
32
32
  offering_type (str):
33
- offering_terms_of_service (str):
34
33
  offering_shared (bool): Accessible to all customers.
35
34
  offering_billable (bool): Purchase and usage is invoiced.
36
35
  offering_plugin_options (Any): Public data used by specific plugin, such as storage mode for OpenStack.
@@ -85,7 +84,6 @@ class OrderCreate:
85
84
  offering_image: str
86
85
  offering_thumbnail: str
87
86
  offering_type: str
88
- offering_terms_of_service: str
89
87
  offering_shared: bool
90
88
  offering_billable: bool
91
89
  offering_plugin_options: Any
@@ -146,8 +144,6 @@ class OrderCreate:
146
144
 
147
145
  offering_type = self.offering_type
148
146
 
149
- offering_terms_of_service = self.offering_terms_of_service
150
-
151
147
  offering_shared = self.offering_shared
152
148
 
153
149
  offering_billable = self.offering_billable
@@ -280,7 +276,6 @@ class OrderCreate:
280
276
  "offering_image": offering_image,
281
277
  "offering_thumbnail": offering_thumbnail,
282
278
  "offering_type": offering_type,
283
- "offering_terms_of_service": offering_terms_of_service,
284
279
  "offering_shared": offering_shared,
285
280
  "offering_billable": offering_billable,
286
281
  "offering_plugin_options": offering_plugin_options,
@@ -353,8 +348,6 @@ class OrderCreate:
353
348
 
354
349
  offering_type = d.pop("offering_type")
355
350
 
356
- offering_terms_of_service = d.pop("offering_terms_of_service")
357
-
358
351
  offering_shared = d.pop("offering_shared")
359
352
 
360
353
  offering_billable = d.pop("offering_billable")
@@ -566,7 +559,6 @@ class OrderCreate:
566
559
  offering_image=offering_image,
567
560
  offering_thumbnail=offering_thumbnail,
568
561
  offering_type=offering_type,
569
- offering_terms_of_service=offering_terms_of_service,
570
562
  offering_shared=offering_shared,
571
563
  offering_billable=offering_billable,
572
564
  offering_plugin_options=offering_plugin_options,
@@ -10,6 +10,7 @@ from ..types import UNSET, Unset
10
10
  if TYPE_CHECKING:
11
11
  from ..models.azure_sql_server_create_order_attributes import AzureSQLServerCreateOrderAttributes
12
12
  from ..models.azure_virtual_machine_create_order_attributes import AzureVirtualMachineCreateOrderAttributes
13
+ from ..models.generic_order_attributes import GenericOrderAttributes
13
14
  from ..models.marketplace_managed_rancher_create_order_attributes import (
14
15
  MarketplaceManagedRancherCreateOrderAttributes,
15
16
  )
@@ -35,11 +36,12 @@ class OrderCreateRequest:
35
36
  project (str):
36
37
  plan (Union[Unset, str]):
37
38
  attributes (Union['AzureSQLServerCreateOrderAttributes', 'AzureVirtualMachineCreateOrderAttributes',
38
- 'MarketplaceManagedRancherCreateOrderAttributes', 'MarketplaceRancherCreateOrderAttributes',
39
- 'OpenStackInstanceCreateOrderAttributes', 'OpenStackTenantCreateOrderAttributes',
40
- 'OpenStackVolumeCreateOrderAttributes', 'SlurmInvoicesSlurmPackageCreateOrderAttributes',
41
- 'VMwareVirtualMachineCreateOrderAttributes', Unset]): Attributes structure depends on the offering type
42
- specified in the parent object
39
+ 'GenericOrderAttributes', 'MarketplaceManagedRancherCreateOrderAttributes',
40
+ 'MarketplaceRancherCreateOrderAttributes', 'OpenStackInstanceCreateOrderAttributes',
41
+ 'OpenStackTenantCreateOrderAttributes', 'OpenStackVolumeCreateOrderAttributes',
42
+ 'SlurmInvoicesSlurmPackageCreateOrderAttributes', 'VMwareVirtualMachineCreateOrderAttributes', Unset]):
43
+ Attributes structure depends on the offering type specified in the parent object. Can also be a generic object
44
+ for offerings without a specific attributes schema.
43
45
  limits (Union[Unset, OrderCreateRequestLimits]):
44
46
  type_ (Union[Unset, RequestTypes]): Default: RequestTypes.CREATE.
45
47
  accepting_terms_of_service (Union[Unset, bool]):
@@ -52,6 +54,7 @@ class OrderCreateRequest:
52
54
  attributes: Union[
53
55
  "AzureSQLServerCreateOrderAttributes",
54
56
  "AzureVirtualMachineCreateOrderAttributes",
57
+ "GenericOrderAttributes",
55
58
  "MarketplaceManagedRancherCreateOrderAttributes",
56
59
  "MarketplaceRancherCreateOrderAttributes",
57
60
  "OpenStackInstanceCreateOrderAttributes",
@@ -80,6 +83,7 @@ class OrderCreateRequest:
80
83
  from ..models.slurm_invoices_slurm_package_create_order_attributes import (
81
84
  SlurmInvoicesSlurmPackageCreateOrderAttributes,
82
85
  )
86
+ from ..models.v_mware_virtual_machine_create_order_attributes import VMwareVirtualMachineCreateOrderAttributes
83
87
 
84
88
  offering = self.offering
85
89
 
@@ -106,6 +110,8 @@ class OrderCreateRequest:
106
110
  attributes = self.attributes.to_dict()
107
111
  elif isinstance(self.attributes, SlurmInvoicesSlurmPackageCreateOrderAttributes):
108
112
  attributes = self.attributes.to_dict()
113
+ elif isinstance(self.attributes, VMwareVirtualMachineCreateOrderAttributes):
114
+ attributes = self.attributes.to_dict()
109
115
  else:
110
116
  attributes = self.attributes.to_dict()
111
117
 
@@ -152,6 +158,7 @@ class OrderCreateRequest:
152
158
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
153
159
  from ..models.azure_sql_server_create_order_attributes import AzureSQLServerCreateOrderAttributes
154
160
  from ..models.azure_virtual_machine_create_order_attributes import AzureVirtualMachineCreateOrderAttributes
161
+ from ..models.generic_order_attributes import GenericOrderAttributes
155
162
  from ..models.marketplace_managed_rancher_create_order_attributes import (
156
163
  MarketplaceManagedRancherCreateOrderAttributes,
157
164
  )
@@ -177,6 +184,7 @@ class OrderCreateRequest:
177
184
  ) -> Union[
178
185
  "AzureSQLServerCreateOrderAttributes",
179
186
  "AzureVirtualMachineCreateOrderAttributes",
187
+ "GenericOrderAttributes",
180
188
  "MarketplaceManagedRancherCreateOrderAttributes",
181
189
  "MarketplaceRancherCreateOrderAttributes",
182
190
  "OpenStackInstanceCreateOrderAttributes",
@@ -252,11 +260,19 @@ class OrderCreateRequest:
252
260
  return attributes_type_7
253
261
  except: # noqa: E722
254
262
  pass
263
+ try:
264
+ if not isinstance(data, dict):
265
+ raise TypeError()
266
+ attributes_type_8 = VMwareVirtualMachineCreateOrderAttributes.from_dict(data)
267
+
268
+ return attributes_type_8
269
+ except: # noqa: E722
270
+ pass
255
271
  if not isinstance(data, dict):
256
272
  raise TypeError()
257
- attributes_type_8 = VMwareVirtualMachineCreateOrderAttributes.from_dict(data)
273
+ attributes_type_9 = GenericOrderAttributes.from_dict(data)
258
274
 
259
- return attributes_type_8
275
+ return attributes_type_9
260
276
 
261
277
  attributes = _parse_attributes(d.pop("attributes", UNSET))
262
278
 
@@ -31,7 +31,6 @@ class OrderDetails:
31
31
  offering_image (Union[Unset, str]):
32
32
  offering_thumbnail (Union[Unset, str]):
33
33
  offering_type (Union[Unset, str]):
34
- offering_terms_of_service (Union[Unset, str]):
35
34
  offering_shared (Union[Unset, bool]): Accessible to all customers.
36
35
  offering_billable (Union[Unset, bool]): Purchase and usage is invoiced.
37
36
  offering_plugin_options (Union[Unset, Any]): Public data used by specific plugin, such as storage mode for
@@ -106,7 +105,6 @@ class OrderDetails:
106
105
  offering_image: Union[Unset, str] = UNSET
107
106
  offering_thumbnail: Union[Unset, str] = UNSET
108
107
  offering_type: Union[Unset, str] = UNSET
109
- offering_terms_of_service: Union[Unset, str] = UNSET
110
108
  offering_shared: Union[Unset, bool] = UNSET
111
109
  offering_billable: Union[Unset, bool] = UNSET
112
110
  offering_plugin_options: Union[Unset, Any] = UNSET
@@ -187,8 +185,6 @@ class OrderDetails:
187
185
 
188
186
  offering_type = self.offering_type
189
187
 
190
- offering_terms_of_service = self.offering_terms_of_service
191
-
192
188
  offering_shared = self.offering_shared
193
189
 
194
190
  offering_billable = self.offering_billable
@@ -468,8 +464,6 @@ class OrderDetails:
468
464
  field_dict["offering_thumbnail"] = offering_thumbnail
469
465
  if offering_type is not UNSET:
470
466
  field_dict["offering_type"] = offering_type
471
- if offering_terms_of_service is not UNSET:
472
- field_dict["offering_terms_of_service"] = offering_terms_of_service
473
467
  if offering_shared is not UNSET:
474
468
  field_dict["offering_shared"] = offering_shared
475
469
  if offering_billable is not UNSET:
@@ -616,8 +610,6 @@ class OrderDetails:
616
610
 
617
611
  offering_type = d.pop("offering_type", UNSET)
618
612
 
619
- offering_terms_of_service = d.pop("offering_terms_of_service", UNSET)
620
-
621
613
  offering_shared = d.pop("offering_shared", UNSET)
622
614
 
623
615
  offering_billable = d.pop("offering_billable", UNSET)
@@ -1061,7 +1053,6 @@ class OrderDetails:
1061
1053
  offering_image=offering_image,
1062
1054
  offering_thumbnail=offering_thumbnail,
1063
1055
  offering_type=offering_type,
1064
- offering_terms_of_service=offering_terms_of_service,
1065
1056
  offering_shared=offering_shared,
1066
1057
  offering_billable=offering_billable,
1067
1058
  offering_plugin_options=offering_plugin_options,