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,7 +7,6 @@ from attrs import define as _attrs_define
7
7
  from attrs import field as _attrs_field
8
8
  from dateutil.parser import isoparse
9
9
 
10
- from ..models.robot_account_states import RobotAccountStates
11
10
  from ..types import UNSET, Unset
12
11
 
13
12
  if TYPE_CHECKING:
@@ -33,10 +32,10 @@ class RobotAccount:
33
32
  description (Union[Unset, str]):
34
33
  error_message (Union[Unset, str]):
35
34
  error_traceback (Union[Unset, str]):
35
+ state (Union[Unset, str]):
36
36
  users (Union[Unset, list[str]]): Users who have access to this robot account.
37
37
  keys (Union[Unset, Any]):
38
38
  responsible_user (Union[None, Unset, str]):
39
- state (Union[Unset, RobotAccountStates]):
40
39
  """
41
40
 
42
41
  url: str
@@ -51,10 +50,10 @@ class RobotAccount:
51
50
  description: Union[Unset, str] = UNSET
52
51
  error_message: Union[Unset, str] = UNSET
53
52
  error_traceback: Union[Unset, str] = UNSET
53
+ state: Union[Unset, str] = UNSET
54
54
  users: Union[Unset, list[str]] = UNSET
55
55
  keys: Union[Unset, Any] = UNSET
56
56
  responsible_user: Union[None, Unset, str] = UNSET
57
- state: Union[Unset, RobotAccountStates] = UNSET
58
57
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
59
58
 
60
59
  def to_dict(self) -> dict[str, Any]:
@@ -85,6 +84,8 @@ class RobotAccount:
85
84
 
86
85
  error_traceback = self.error_traceback
87
86
 
87
+ state = self.state
88
+
88
89
  users: Union[Unset, list[str]] = UNSET
89
90
  if not isinstance(self.users, Unset):
90
91
  users = self.users
@@ -97,10 +98,6 @@ class RobotAccount:
97
98
  else:
98
99
  responsible_user = self.responsible_user
99
100
 
100
- state: Union[Unset, int] = UNSET
101
- if not isinstance(self.state, Unset):
102
- state = self.state.value
103
-
104
101
  field_dict: dict[str, Any] = {}
105
102
  field_dict.update(self.additional_properties)
106
103
  field_dict.update(
@@ -123,14 +120,14 @@ class RobotAccount:
123
120
  field_dict["error_message"] = error_message
124
121
  if error_traceback is not UNSET:
125
122
  field_dict["error_traceback"] = error_traceback
123
+ if state is not UNSET:
124
+ field_dict["state"] = state
126
125
  if users is not UNSET:
127
126
  field_dict["users"] = users
128
127
  if keys is not UNSET:
129
128
  field_dict["keys"] = keys
130
129
  if responsible_user is not UNSET:
131
130
  field_dict["responsible_user"] = responsible_user
132
- if state is not UNSET:
133
- field_dict["state"] = state
134
131
 
135
132
  return field_dict
136
133
 
@@ -168,6 +165,8 @@ class RobotAccount:
168
165
 
169
166
  error_traceback = d.pop("error_traceback", UNSET)
170
167
 
168
+ state = d.pop("state", UNSET)
169
+
171
170
  users = cast(list[str], d.pop("users", UNSET))
172
171
 
173
172
  keys = d.pop("keys", UNSET)
@@ -181,13 +180,6 @@ class RobotAccount:
181
180
 
182
181
  responsible_user = _parse_responsible_user(d.pop("responsible_user", UNSET))
183
182
 
184
- _state = d.pop("state", UNSET)
185
- state: Union[Unset, RobotAccountStates]
186
- if isinstance(_state, Unset):
187
- state = UNSET
188
- else:
189
- state = RobotAccountStates(_state)
190
-
191
183
  robot_account = cls(
192
184
  url=url,
193
185
  uuid=uuid,
@@ -201,10 +193,10 @@ class RobotAccount:
201
193
  description=description,
202
194
  error_message=error_message,
203
195
  error_traceback=error_traceback,
196
+ state=state,
204
197
  users=users,
205
198
  keys=keys,
206
199
  responsible_user=responsible_user,
207
- state=state,
208
200
  )
209
201
 
210
202
  robot_account.additional_properties = d
@@ -7,7 +7,6 @@ from attrs import define as _attrs_define
7
7
  from attrs import field as _attrs_field
8
8
  from dateutil.parser import isoparse
9
9
 
10
- from ..models.robot_account_states import RobotAccountStates
11
10
  from ..types import UNSET, Unset
12
11
 
13
12
  if TYPE_CHECKING:
@@ -32,6 +31,7 @@ class RobotAccountDetails:
32
31
  description (Union[Unset, str]):
33
32
  error_message (Union[Unset, str]):
34
33
  error_traceback (Union[Unset, str]):
34
+ state (Union[Unset, str]):
35
35
  resource (Union[Unset, str]):
36
36
  type_ (Union[Unset, str]): Type of the robot account.
37
37
  users (Union[Unset, list['BasicUser']]):
@@ -39,7 +39,6 @@ class RobotAccountDetails:
39
39
  backend_id (Union[Unset, str]):
40
40
  fingerprints (Union[Unset, list['Fingerprint']]):
41
41
  responsible_user (Union['BasicUser', None, Unset]):
42
- state (Union[Unset, RobotAccountStates]):
43
42
  user_keys (Union[Unset, list['SshKey']]):
44
43
  resource_name (Union[Unset, str]):
45
44
  resource_uuid (Union[Unset, UUID]):
@@ -59,6 +58,7 @@ class RobotAccountDetails:
59
58
  description: Union[Unset, str] = UNSET
60
59
  error_message: Union[Unset, str] = UNSET
61
60
  error_traceback: Union[Unset, str] = UNSET
61
+ state: Union[Unset, str] = UNSET
62
62
  resource: Union[Unset, str] = UNSET
63
63
  type_: Union[Unset, str] = UNSET
64
64
  users: Union[Unset, list["BasicUser"]] = UNSET
@@ -66,7 +66,6 @@ class RobotAccountDetails:
66
66
  backend_id: Union[Unset, str] = UNSET
67
67
  fingerprints: Union[Unset, list["Fingerprint"]] = UNSET
68
68
  responsible_user: Union["BasicUser", None, Unset] = UNSET
69
- state: Union[Unset, RobotAccountStates] = UNSET
70
69
  user_keys: Union[Unset, list["SshKey"]] = UNSET
71
70
  resource_name: Union[Unset, str] = UNSET
72
71
  resource_uuid: Union[Unset, UUID] = UNSET
@@ -103,6 +102,8 @@ class RobotAccountDetails:
103
102
 
104
103
  error_traceback = self.error_traceback
105
104
 
105
+ state = self.state
106
+
106
107
  resource = self.resource
107
108
 
108
109
  type_ = self.type_
@@ -133,10 +134,6 @@ class RobotAccountDetails:
133
134
  else:
134
135
  responsible_user = self.responsible_user
135
136
 
136
- state: Union[Unset, int] = UNSET
137
- if not isinstance(self.state, Unset):
138
- state = self.state.value
139
-
140
137
  user_keys: Union[Unset, list[dict[str, Any]]] = UNSET
141
138
  if not isinstance(self.user_keys, Unset):
142
139
  user_keys = []
@@ -189,6 +186,8 @@ class RobotAccountDetails:
189
186
  field_dict["error_message"] = error_message
190
187
  if error_traceback is not UNSET:
191
188
  field_dict["error_traceback"] = error_traceback
189
+ if state is not UNSET:
190
+ field_dict["state"] = state
192
191
  if resource is not UNSET:
193
192
  field_dict["resource"] = resource
194
193
  if type_ is not UNSET:
@@ -203,8 +202,6 @@ class RobotAccountDetails:
203
202
  field_dict["fingerprints"] = fingerprints
204
203
  if responsible_user is not UNSET:
205
204
  field_dict["responsible_user"] = responsible_user
206
- if state is not UNSET:
207
- field_dict["state"] = state
208
205
  if user_keys is not UNSET:
209
206
  field_dict["user_keys"] = user_keys
210
207
  if resource_name is not UNSET:
@@ -265,6 +262,8 @@ class RobotAccountDetails:
265
262
 
266
263
  error_traceback = d.pop("error_traceback", UNSET)
267
264
 
265
+ state = d.pop("state", UNSET)
266
+
268
267
  resource = d.pop("resource", UNSET)
269
268
 
270
269
  type_ = d.pop("type", UNSET)
@@ -304,13 +303,6 @@ class RobotAccountDetails:
304
303
 
305
304
  responsible_user = _parse_responsible_user(d.pop("responsible_user", UNSET))
306
305
 
307
- _state = d.pop("state", UNSET)
308
- state: Union[Unset, RobotAccountStates]
309
- if isinstance(_state, Unset):
310
- state = UNSET
311
- else:
312
- state = RobotAccountStates(_state)
313
-
314
306
  user_keys = []
315
307
  _user_keys = d.pop("user_keys", UNSET)
316
308
  for user_keys_item_data in _user_keys or []:
@@ -368,6 +360,7 @@ class RobotAccountDetails:
368
360
  description=description,
369
361
  error_message=error_message,
370
362
  error_traceback=error_traceback,
363
+ state=state,
371
364
  resource=resource,
372
365
  type_=type_,
373
366
  users=users,
@@ -375,7 +368,6 @@ class RobotAccountDetails:
375
368
  backend_id=backend_id,
376
369
  fingerprints=fingerprints,
377
370
  responsible_user=responsible_user,
378
- state=state,
379
371
  user_keys=user_keys,
380
372
  resource_name=resource_name,
381
373
  resource_uuid=resource_uuid,
@@ -0,0 +1,10 @@
1
+ from enum import Enum
2
+
3
+
4
+ class ServiceAccountState(str, Enum):
5
+ CLOSED = "Closed"
6
+ ERRED = "Erred"
7
+ OK = "OK"
8
+
9
+ def __str__(self) -> str:
10
+ return str(self.value)
@@ -24,6 +24,7 @@ class ServiceProvider:
24
24
  uuid (Union[Unset, UUID]):
25
25
  created (Union[Unset, datetime.datetime]):
26
26
  description (Union[Unset, str]):
27
+ enable_notifications (Union[Unset, bool]):
27
28
  customer (Union[Unset, str]):
28
29
  customer_name (Union[Unset, str]):
29
30
  customer_uuid (Union[Unset, UUID]):
@@ -41,6 +42,7 @@ class ServiceProvider:
41
42
  uuid: Union[Unset, UUID] = UNSET
42
43
  created: Union[Unset, datetime.datetime] = UNSET
43
44
  description: Union[Unset, str] = UNSET
45
+ enable_notifications: Union[Unset, bool] = UNSET
44
46
  customer: Union[Unset, str] = UNSET
45
47
  customer_name: Union[Unset, str] = UNSET
46
48
  customer_uuid: Union[Unset, UUID] = UNSET
@@ -67,6 +69,8 @@ class ServiceProvider:
67
69
 
68
70
  description = self.description
69
71
 
72
+ enable_notifications = self.enable_notifications
73
+
70
74
  customer = self.customer
71
75
 
72
76
  customer_name = self.customer_name
@@ -111,6 +115,8 @@ class ServiceProvider:
111
115
  field_dict["created"] = created
112
116
  if description is not UNSET:
113
117
  field_dict["description"] = description
118
+ if enable_notifications is not UNSET:
119
+ field_dict["enable_notifications"] = enable_notifications
114
120
  if customer is not UNSET:
115
121
  field_dict["customer"] = customer
116
122
  if customer_name is not UNSET:
@@ -159,6 +165,8 @@ class ServiceProvider:
159
165
 
160
166
  description = d.pop("description", UNSET)
161
167
 
168
+ enable_notifications = d.pop("enable_notifications", UNSET)
169
+
162
170
  customer = d.pop("customer", UNSET)
163
171
 
164
172
  customer_name = d.pop("customer_name", UNSET)
@@ -203,6 +211,7 @@ class ServiceProvider:
203
211
  uuid=uuid,
204
212
  created=created,
205
213
  description=description,
214
+ enable_notifications=enable_notifications,
206
215
  customer=customer,
207
216
  customer_name=customer_name,
208
217
  customer_uuid=customer_uuid,
@@ -14,6 +14,9 @@ class SlurmInvoicesSlurmPackageCreateOrderAttributes:
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]):
@@ -0,0 +1,75 @@
1
+ from collections.abc import Mapping
2
+ from typing import Any, TypeVar
3
+
4
+ from attrs import define as _attrs_define
5
+ from attrs import field as _attrs_field
6
+
7
+ T = TypeVar("T", bound="SubmitRequestResponse")
8
+
9
+
10
+ @_attrs_define
11
+ class SubmitRequestResponse:
12
+ """
13
+ Attributes:
14
+ uuid (str): UUID of the created permission request
15
+ scope_name (str): Name of the invitation scope
16
+ scope_uuid (str): UUID of the invitation scope
17
+ """
18
+
19
+ uuid: str
20
+ scope_name: str
21
+ scope_uuid: str
22
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
23
+
24
+ def to_dict(self) -> dict[str, Any]:
25
+ uuid = self.uuid
26
+
27
+ scope_name = self.scope_name
28
+
29
+ scope_uuid = self.scope_uuid
30
+
31
+ field_dict: dict[str, Any] = {}
32
+ field_dict.update(self.additional_properties)
33
+ field_dict.update(
34
+ {
35
+ "uuid": uuid,
36
+ "scope_name": scope_name,
37
+ "scope_uuid": scope_uuid,
38
+ }
39
+ )
40
+
41
+ return field_dict
42
+
43
+ @classmethod
44
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
45
+ d = dict(src_dict)
46
+ uuid = d.pop("uuid")
47
+
48
+ scope_name = d.pop("scope_name")
49
+
50
+ scope_uuid = d.pop("scope_uuid")
51
+
52
+ submit_request_response = cls(
53
+ uuid=uuid,
54
+ scope_name=scope_name,
55
+ scope_uuid=scope_uuid,
56
+ )
57
+
58
+ submit_request_response.additional_properties = d
59
+ return submit_request_response
60
+
61
+ @property
62
+ def additional_keys(self) -> list[str]:
63
+ return list(self.additional_properties.keys())
64
+
65
+ def __getitem__(self, key: str) -> Any:
66
+ return self.additional_properties[key]
67
+
68
+ def __setitem__(self, key: str, value: Any) -> None:
69
+ self.additional_properties[key] = value
70
+
71
+ def __delitem__(self, key: str) -> None:
72
+ del self.additional_properties[key]
73
+
74
+ def __contains__(self, key: str) -> bool:
75
+ return key in self.additional_properties
@@ -0,0 +1,10 @@
1
+ from enum import Enum
2
+
3
+
4
+ class SyncStatusEnum(str, Enum):
5
+ IN_SYNC = "in_sync"
6
+ OUT_OF_SYNC = "out_of_sync"
7
+ SYNC_FAILED = "sync_failed"
8
+
9
+ def __str__(self) -> str:
10
+ return str(self.value)
@@ -0,0 +1,202 @@
1
+ import datetime
2
+ from collections.abc import Mapping
3
+ from typing import Any, TypeVar, Union, cast
4
+ from uuid import UUID
5
+
6
+ from attrs import define as _attrs_define
7
+ from attrs import field as _attrs_field
8
+ from dateutil.parser import isoparse
9
+
10
+ from ..types import UNSET, Unset
11
+
12
+ T = TypeVar("T", bound="UserOfferingConsent")
13
+
14
+
15
+ @_attrs_define
16
+ class UserOfferingConsent:
17
+ """
18
+ Attributes:
19
+ uuid (UUID):
20
+ user_uuid (UUID):
21
+ offering_uuid (UUID):
22
+ agreement_date (datetime.datetime):
23
+ revocation_date (Union[None, datetime.datetime]):
24
+ created (datetime.datetime):
25
+ user_username (str): Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters
26
+ user_full_name (str):
27
+ user_email (str):
28
+ offering_name (str):
29
+ offering_slug (str):
30
+ offering_url (str):
31
+ modified (datetime.datetime):
32
+ has_consent (bool):
33
+ requires_reconsent (bool):
34
+ version (Union[Unset, str]):
35
+ """
36
+
37
+ uuid: UUID
38
+ user_uuid: UUID
39
+ offering_uuid: UUID
40
+ agreement_date: datetime.datetime
41
+ revocation_date: Union[None, datetime.datetime]
42
+ created: datetime.datetime
43
+ user_username: str
44
+ user_full_name: str
45
+ user_email: str
46
+ offering_name: str
47
+ offering_slug: str
48
+ offering_url: str
49
+ modified: datetime.datetime
50
+ has_consent: bool
51
+ requires_reconsent: bool
52
+ version: Union[Unset, str] = UNSET
53
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
54
+
55
+ def to_dict(self) -> dict[str, Any]:
56
+ uuid = str(self.uuid)
57
+
58
+ user_uuid = str(self.user_uuid)
59
+
60
+ offering_uuid = str(self.offering_uuid)
61
+
62
+ agreement_date = self.agreement_date.isoformat()
63
+
64
+ revocation_date: Union[None, str]
65
+ if isinstance(self.revocation_date, datetime.datetime):
66
+ revocation_date = self.revocation_date.isoformat()
67
+ else:
68
+ revocation_date = self.revocation_date
69
+
70
+ created = self.created.isoformat()
71
+
72
+ user_username = self.user_username
73
+
74
+ user_full_name = self.user_full_name
75
+
76
+ user_email = self.user_email
77
+
78
+ offering_name = self.offering_name
79
+
80
+ offering_slug = self.offering_slug
81
+
82
+ offering_url = self.offering_url
83
+
84
+ modified = self.modified.isoformat()
85
+
86
+ has_consent = self.has_consent
87
+
88
+ requires_reconsent = self.requires_reconsent
89
+
90
+ version = self.version
91
+
92
+ field_dict: dict[str, Any] = {}
93
+ field_dict.update(self.additional_properties)
94
+ field_dict.update(
95
+ {
96
+ "uuid": uuid,
97
+ "user_uuid": user_uuid,
98
+ "offering_uuid": offering_uuid,
99
+ "agreement_date": agreement_date,
100
+ "revocation_date": revocation_date,
101
+ "created": created,
102
+ "user_username": user_username,
103
+ "user_full_name": user_full_name,
104
+ "user_email": user_email,
105
+ "offering_name": offering_name,
106
+ "offering_slug": offering_slug,
107
+ "offering_url": offering_url,
108
+ "modified": modified,
109
+ "has_consent": has_consent,
110
+ "requires_reconsent": requires_reconsent,
111
+ }
112
+ )
113
+ if version is not UNSET:
114
+ field_dict["version"] = version
115
+
116
+ return field_dict
117
+
118
+ @classmethod
119
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
120
+ d = dict(src_dict)
121
+ uuid = UUID(d.pop("uuid"))
122
+
123
+ user_uuid = UUID(d.pop("user_uuid"))
124
+
125
+ offering_uuid = UUID(d.pop("offering_uuid"))
126
+
127
+ agreement_date = isoparse(d.pop("agreement_date"))
128
+
129
+ def _parse_revocation_date(data: object) -> Union[None, datetime.datetime]:
130
+ if data is None:
131
+ return data
132
+ try:
133
+ if not isinstance(data, str):
134
+ raise TypeError()
135
+ revocation_date_type_0 = isoparse(data)
136
+
137
+ return revocation_date_type_0
138
+ except: # noqa: E722
139
+ pass
140
+ return cast(Union[None, datetime.datetime], data)
141
+
142
+ revocation_date = _parse_revocation_date(d.pop("revocation_date"))
143
+
144
+ created = isoparse(d.pop("created"))
145
+
146
+ user_username = d.pop("user_username")
147
+
148
+ user_full_name = d.pop("user_full_name")
149
+
150
+ user_email = d.pop("user_email")
151
+
152
+ offering_name = d.pop("offering_name")
153
+
154
+ offering_slug = d.pop("offering_slug")
155
+
156
+ offering_url = d.pop("offering_url")
157
+
158
+ modified = isoparse(d.pop("modified"))
159
+
160
+ has_consent = d.pop("has_consent")
161
+
162
+ requires_reconsent = d.pop("requires_reconsent")
163
+
164
+ version = d.pop("version", UNSET)
165
+
166
+ user_offering_consent = cls(
167
+ uuid=uuid,
168
+ user_uuid=user_uuid,
169
+ offering_uuid=offering_uuid,
170
+ agreement_date=agreement_date,
171
+ revocation_date=revocation_date,
172
+ created=created,
173
+ user_username=user_username,
174
+ user_full_name=user_full_name,
175
+ user_email=user_email,
176
+ offering_name=offering_name,
177
+ offering_slug=offering_slug,
178
+ offering_url=offering_url,
179
+ modified=modified,
180
+ has_consent=has_consent,
181
+ requires_reconsent=requires_reconsent,
182
+ version=version,
183
+ )
184
+
185
+ user_offering_consent.additional_properties = d
186
+ return user_offering_consent
187
+
188
+ @property
189
+ def additional_keys(self) -> list[str]:
190
+ return list(self.additional_properties.keys())
191
+
192
+ def __getitem__(self, key: str) -> Any:
193
+ return self.additional_properties[key]
194
+
195
+ def __setitem__(self, key: str, value: Any) -> None:
196
+ self.additional_properties[key] = value
197
+
198
+ def __delitem__(self, key: str) -> None:
199
+ del self.additional_properties[key]
200
+
201
+ def __contains__(self, key: str) -> bool:
202
+ return key in self.additional_properties
@@ -0,0 +1,60 @@
1
+ from collections.abc import Mapping
2
+ from typing import Any, TypeVar
3
+ from uuid import UUID
4
+
5
+ from attrs import define as _attrs_define
6
+ from attrs import field as _attrs_field
7
+
8
+ T = TypeVar("T", bound="UserOfferingConsentCreate")
9
+
10
+
11
+ @_attrs_define
12
+ class UserOfferingConsentCreate:
13
+ """
14
+ Attributes:
15
+ offering (UUID):
16
+ """
17
+
18
+ offering: UUID
19
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
20
+
21
+ def to_dict(self) -> dict[str, Any]:
22
+ offering = str(self.offering)
23
+
24
+ field_dict: dict[str, Any] = {}
25
+ field_dict.update(self.additional_properties)
26
+ field_dict.update(
27
+ {
28
+ "offering": offering,
29
+ }
30
+ )
31
+
32
+ return field_dict
33
+
34
+ @classmethod
35
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
36
+ d = dict(src_dict)
37
+ offering = UUID(d.pop("offering"))
38
+
39
+ user_offering_consent_create = cls(
40
+ offering=offering,
41
+ )
42
+
43
+ user_offering_consent_create.additional_properties = d
44
+ return user_offering_consent_create
45
+
46
+ @property
47
+ def additional_keys(self) -> list[str]:
48
+ return list(self.additional_properties.keys())
49
+
50
+ def __getitem__(self, key: str) -> Any:
51
+ return self.additional_properties[key]
52
+
53
+ def __setitem__(self, key: str, value: Any) -> None:
54
+ self.additional_properties[key] = value
55
+
56
+ def __delitem__(self, key: str) -> None:
57
+ del self.additional_properties[key]
58
+
59
+ def __contains__(self, key: str) -> bool:
60
+ return key in self.additional_properties
@@ -0,0 +1,60 @@
1
+ from collections.abc import Mapping
2
+ from typing import Any, TypeVar
3
+ from uuid import UUID
4
+
5
+ from attrs import define as _attrs_define
6
+ from attrs import field as _attrs_field
7
+
8
+ T = TypeVar("T", bound="UserOfferingConsentCreateRequest")
9
+
10
+
11
+ @_attrs_define
12
+ class UserOfferingConsentCreateRequest:
13
+ """
14
+ Attributes:
15
+ offering (UUID):
16
+ """
17
+
18
+ offering: UUID
19
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
20
+
21
+ def to_dict(self) -> dict[str, Any]:
22
+ offering = str(self.offering)
23
+
24
+ field_dict: dict[str, Any] = {}
25
+ field_dict.update(self.additional_properties)
26
+ field_dict.update(
27
+ {
28
+ "offering": offering,
29
+ }
30
+ )
31
+
32
+ return field_dict
33
+
34
+ @classmethod
35
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
36
+ d = dict(src_dict)
37
+ offering = UUID(d.pop("offering"))
38
+
39
+ user_offering_consent_create_request = cls(
40
+ offering=offering,
41
+ )
42
+
43
+ user_offering_consent_create_request.additional_properties = d
44
+ return user_offering_consent_create_request
45
+
46
+ @property
47
+ def additional_keys(self) -> list[str]:
48
+ return list(self.additional_properties.keys())
49
+
50
+ def __getitem__(self, key: str) -> Any:
51
+ return self.additional_properties[key]
52
+
53
+ def __setitem__(self, key: str, value: Any) -> None:
54
+ self.additional_properties[key] = value
55
+
56
+ def __delitem__(self, key: str) -> None:
57
+ del self.additional_properties[key]
58
+
59
+ def __contains__(self, key: str) -> bool:
60
+ return key in self.additional_properties