waldur-api-client 7.8.2__py3-none-any.whl → 7.8.4__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 (174) hide show
  1. waldur_api_client/api/booking_resources/booking_resources_count.py +18 -0
  2. waldur_api_client/api/booking_resources/booking_resources_list.py +18 -0
  3. waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_checklist_template_count.py +125 -0
  4. waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_checklist_template_retrieve.py +126 -0
  5. waldur_api_client/api/marketplace_project_update_requests/marketplace_project_update_requests_count.py +18 -18
  6. waldur_api_client/api/marketplace_project_update_requests/marketplace_project_update_requests_list.py +18 -18
  7. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_tos_stats_retrieve.py +146 -0
  8. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_count.py +18 -0
  9. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +18 -0
  10. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_move_resource.py +22 -0
  11. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_update_options.py +168 -0
  12. waldur_api_client/api/marketplace_resources/marketplace_resources_count.py +18 -0
  13. waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +18 -0
  14. waldur_api_client/api/marketplace_resources/marketplace_resources_move_resource.py +22 -0
  15. waldur_api_client/api/marketplace_resources/marketplace_resources_renew.py +166 -0
  16. waldur_api_client/api/marketplace_service_providers/service_provider_checklists_summary.py +189 -0
  17. waldur_api_client/api/onboarding/__init__.py +1 -0
  18. waldur_api_client/api/onboarding/onboarding_supported_countries_retrieve.py +74 -0
  19. waldur_api_client/api/onboarding_justifications/__init__.py +1 -0
  20. waldur_api_client/api/onboarding_justifications/onboarding_justifications_attach_document.py +211 -0
  21. waldur_api_client/api/onboarding_justifications/onboarding_justifications_count.py +172 -0
  22. waldur_api_client/api/onboarding_justifications/onboarding_justifications_create.py +150 -0
  23. waldur_api_client/api/onboarding_justifications/onboarding_justifications_create_justification.py +154 -0
  24. waldur_api_client/api/onboarding_justifications/onboarding_justifications_destroy.py +89 -0
  25. waldur_api_client/api/onboarding_justifications/onboarding_justifications_list.py +175 -0
  26. waldur_api_client/api/onboarding_justifications/onboarding_justifications_partial_update.py +164 -0
  27. waldur_api_client/api/onboarding_justifications/onboarding_justifications_retrieve.py +142 -0
  28. waldur_api_client/api/onboarding_justifications/onboarding_justifications_update.py +164 -0
  29. waldur_api_client/api/onboarding_verifications/__init__.py +1 -0
  30. waldur_api_client/api/onboarding_verifications/onboarding_verifications_count.py +172 -0
  31. waldur_api_client/api/onboarding_verifications/onboarding_verifications_create.py +150 -0
  32. waldur_api_client/api/onboarding_verifications/onboarding_verifications_create_customer.py +144 -0
  33. waldur_api_client/api/onboarding_verifications/onboarding_verifications_destroy.py +89 -0
  34. waldur_api_client/api/onboarding_verifications/onboarding_verifications_list.py +175 -0
  35. waldur_api_client/api/onboarding_verifications/onboarding_verifications_partial_update.py +164 -0
  36. waldur_api_client/api/onboarding_verifications/onboarding_verifications_retrieve.py +142 -0
  37. waldur_api_client/api/onboarding_verifications/onboarding_verifications_update.py +164 -0
  38. waldur_api_client/api/onboarding_verifications/onboarding_verifications_validate_company.py +154 -0
  39. waldur_api_client/api/openstack_backups/openstack_backups_restore.py +10 -10
  40. waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_count.py +33 -0
  41. waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_create.py +154 -0
  42. waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_destroy.py +91 -0
  43. waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_list.py +33 -0
  44. waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_partial_update.py +164 -0
  45. waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_update.py +164 -0
  46. waldur_api_client/api/openstack_networks/openstack_networks_rbac_policy_create.py +24 -22
  47. waldur_api_client/api/projects/projects_checklist_template_count.py +125 -0
  48. waldur_api_client/api/projects/projects_checklist_template_retrieve.py +126 -0
  49. waldur_api_client/api/proposal_proposals/proposal_proposals_checklist_template_count.py +125 -0
  50. waldur_api_client/api/proposal_proposals/proposal_proposals_checklist_template_retrieve.py +126 -0
  51. waldur_api_client/api/proposal_protected_calls/proposal_protected_calls_offerings_list.py +15 -0
  52. waldur_api_client/api/rancher_services/rancher_services_create.py +22 -22
  53. waldur_api_client/models/__init__.py +88 -10
  54. waldur_api_client/models/azure_sql_server_create_order_attributes.py +5 -10
  55. waldur_api_client/models/azure_virtual_machine_create_order_attributes.py +7 -12
  56. waldur_api_client/models/booking_resource.py +9 -34
  57. waldur_api_client/models/booking_resources_list_field_item.py +1 -3
  58. waldur_api_client/models/booking_resources_retrieve_field_item.py +1 -3
  59. waldur_api_client/models/call_round.py +4 -4
  60. waldur_api_client/models/checklist_template.py +99 -0
  61. waldur_api_client/models/checklist_template_checklist.py +44 -0
  62. waldur_api_client/models/constance_settings.py +54 -0
  63. waldur_api_client/models/constance_settings_request.py +54 -0
  64. waldur_api_client/models/constance_settings_request_form.py +54 -0
  65. waldur_api_client/models/constance_settings_request_multipart.py +99 -0
  66. waldur_api_client/models/customer.py +9 -0
  67. waldur_api_client/models/customers_list_field_item.py +1 -0
  68. waldur_api_client/models/customers_retrieve_field_item.py +1 -0
  69. waldur_api_client/models/deprecated_network_rbac_policy.py +137 -0
  70. waldur_api_client/models/deprecated_network_rbac_policy_request.py +78 -0
  71. waldur_api_client/models/event_groups_enum.py +1 -0
  72. waldur_api_client/models/event_types_enum.py +3 -0
  73. waldur_api_client/models/generic_order_attributes.py +1 -2
  74. waldur_api_client/models/managed_rancher_cluster_resources_list_field_item.py +1 -3
  75. waldur_api_client/models/managed_rancher_cluster_resources_retrieve_field_item.py +1 -3
  76. waldur_api_client/models/marketplace_orders_list_field_item.py +1 -3
  77. waldur_api_client/models/marketplace_orders_retrieve_field_item.py +1 -3
  78. waldur_api_client/models/marketplace_provider_resources_details_retrieve_field_item.py +1 -3
  79. waldur_api_client/models/marketplace_provider_resources_list_field_item.py +1 -3
  80. waldur_api_client/models/marketplace_provider_resources_retrieve_field_item.py +1 -3
  81. waldur_api_client/models/marketplace_resources_details_retrieve_field_item.py +1 -3
  82. waldur_api_client/models/marketplace_resources_list_field_item.py +1 -3
  83. waldur_api_client/models/marketplace_resources_retrieve_field_item.py +1 -3
  84. waldur_api_client/models/marketplace_robot_accounts_list_field_item.py +2 -1
  85. waldur_api_client/models/marketplace_robot_accounts_retrieve_field_item.py +2 -1
  86. waldur_api_client/models/marketplace_service_providers_projects_list_field_item.py +1 -0
  87. waldur_api_client/models/merged_plugin_options.py +27 -0
  88. waldur_api_client/models/merged_plugin_options_request.py +27 -0
  89. waldur_api_client/models/move_resource_request.py +65 -0
  90. waldur_api_client/models/nested_round.py +5 -5
  91. waldur_api_client/models/network_rbac_policy_request.py +8 -0
  92. waldur_api_client/models/notification.py +9 -9
  93. waldur_api_client/models/{notification_context_fields.py → notification_context_schema.py} +6 -6
  94. waldur_api_client/models/notification_template_detail_serializers.py +9 -3
  95. waldur_api_client/models/offering_component.py +79 -0
  96. waldur_api_client/models/offering_component_request.py +80 -0
  97. waldur_api_client/models/onboarding_company_validation_request_request.py +88 -0
  98. waldur_api_client/models/onboarding_justification.py +183 -0
  99. waldur_api_client/models/onboarding_justification_create_request.py +68 -0
  100. waldur_api_client/models/onboarding_justification_documentation.py +108 -0
  101. waldur_api_client/models/onboarding_justification_documentation_request.py +84 -0
  102. waldur_api_client/models/onboarding_justification_documentation_request_form.py +84 -0
  103. waldur_api_client/models/onboarding_justification_documentation_request_multipart.py +98 -0
  104. waldur_api_client/models/onboarding_justification_request.py +75 -0
  105. waldur_api_client/models/onboarding_verification.py +250 -0
  106. waldur_api_client/models/onboarding_verification_request.py +128 -0
  107. waldur_api_client/models/onboarding_verification_status_enum.py +12 -0
  108. waldur_api_client/models/open_stack_backup_restoration.py +3 -5
  109. waldur_api_client/models/open_stack_backup_restoration_create_request.py +141 -0
  110. waldur_api_client/models/open_stack_backup_restoration_request.py +22 -30
  111. waldur_api_client/models/open_stack_create_floating_ip_request.py +89 -0
  112. waldur_api_client/models/open_stack_create_port_request.py +104 -0
  113. waldur_api_client/models/open_stack_instance.py +13 -29
  114. waldur_api_client/models/open_stack_instance_create_order_attributes.py +67 -54
  115. waldur_api_client/models/open_stack_instance_floating_i_ps_update_request.py +5 -5
  116. waldur_api_client/models/open_stack_instance_ports_update_request.py +5 -5
  117. waldur_api_client/models/open_stack_instance_request.py +1 -67
  118. waldur_api_client/models/open_stack_nested_port_request.py +0 -9
  119. waldur_api_client/models/{open_stack_nested_security_group_request.py → open_stack_security_group_hyperlink_request.py} +14 -14
  120. waldur_api_client/models/open_stack_server_group_hyperlink_request.py +59 -0
  121. waldur_api_client/models/open_stack_tenant_create_order_attributes.py +9 -14
  122. waldur_api_client/models/open_stack_volume_create_order_attributes.py +8 -13
  123. waldur_api_client/models/openstack_instances_list_field_item.py +0 -7
  124. waldur_api_client/models/openstack_instances_retrieve_field_item.py +0 -7
  125. waldur_api_client/models/order_create.py +8 -0
  126. waldur_api_client/models/order_details.py +9 -34
  127. waldur_api_client/models/patched_network_rbac_policy_request.py +85 -0
  128. waldur_api_client/models/patched_onboarding_justification_request.py +77 -0
  129. waldur_api_client/models/patched_onboarding_verification_request.py +128 -0
  130. waldur_api_client/models/patched_open_stack_instance_request.py +1 -67
  131. waldur_api_client/models/patched_project_credit_request.py +13 -0
  132. waldur_api_client/models/patched_project_request.py +1 -2
  133. waldur_api_client/models/patched_project_request_form.py +1 -2
  134. waldur_api_client/models/patched_project_request_multipart.py +1 -2
  135. waldur_api_client/models/project.py +10 -2
  136. waldur_api_client/models/project_credit.py +13 -0
  137. waldur_api_client/models/project_credit_request.py +13 -0
  138. waldur_api_client/models/{rancher_nested_security_group.py → project_hyperlink_request.py} +5 -5
  139. waldur_api_client/models/project_request.py +1 -2
  140. waldur_api_client/models/project_request_form.py +1 -2
  141. waldur_api_client/models/project_request_multipart.py +1 -2
  142. waldur_api_client/models/projects_list_field_item.py +1 -0
  143. waldur_api_client/models/projects_retrieve_field_item.py +1 -0
  144. waldur_api_client/models/protected_round.py +4 -4
  145. waldur_api_client/models/question.py +102 -0
  146. waldur_api_client/models/{open_stack_data_volume.py → question_options.py} +27 -29
  147. waldur_api_client/models/rancher_clusters_list_field_item.py +0 -1
  148. waldur_api_client/models/rancher_clusters_retrieve_field_item.py +0 -1
  149. waldur_api_client/models/rancher_service_create.py +508 -0
  150. waldur_api_client/models/rancher_service_create_marketplace_offering_plugin_options_type_0.py +44 -0
  151. waldur_api_client/models/rancher_service_create_request.py +185 -0
  152. waldur_api_client/models/rancher_service_request.py +16 -19
  153. waldur_api_client/models/rancher_workload_create.py +59 -0
  154. waldur_api_client/models/rancher_workload_create_request.py +59 -0
  155. waldur_api_client/models/resource.py +9 -34
  156. waldur_api_client/models/resource_renew_request.py +83 -0
  157. waldur_api_client/models/resource_renew_request_limits.py +44 -0
  158. waldur_api_client/models/robot_account_details.py +22 -13
  159. waldur_api_client/models/{status_enum.py → round_status.py} +1 -1
  160. waldur_api_client/models/service_provider_checklist_summary.py +98 -0
  161. waldur_api_client/models/slurm_invoices_slurm_package_create_order_attributes.py +4 -9
  162. waldur_api_client/models/time_series_to_s_data.py +69 -0
  163. waldur_api_client/models/to_s_consent_dashboard.py +155 -0
  164. waldur_api_client/models/update_offering_component_request.py +79 -0
  165. waldur_api_client/models/v_mware_virtual_machine_create_order_attributes.py +11 -16
  166. waldur_api_client/models/validation_decision_enum.py +10 -0
  167. waldur_api_client/models/validation_method_enum.py +8 -0
  168. waldur_api_client/models/version_adoption.py +67 -0
  169. waldur_api_client/models/vmware_nested_network.py +0 -25
  170. waldur_api_client/models/vmware_nested_network_request.py +6 -14
  171. {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.4.dist-info}/METADATA +1 -1
  172. {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.4.dist-info}/RECORD +174 -101
  173. {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.4.dist-info}/WHEEL +0 -0
  174. {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.4.dist-info}/licenses/LICENSE +0 -0
@@ -11,18 +11,13 @@ T = TypeVar("T", bound="AzureVirtualMachineCreateOrderAttributes")
11
11
 
12
12
  @_attrs_define
13
13
  class AzureVirtualMachineCreateOrderAttributes:
14
- """This mixin allows to specify list of fields to be rendered by serializer.
15
- It expects that request is available in serializer's context.
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
-
20
- Attributes:
21
- name (str):
22
- size (str):
23
- image (str):
24
- location (str):
25
- description (Union[Unset, str]):
14
+ """
15
+ Attributes:
16
+ name (str):
17
+ size (str):
18
+ image (str):
19
+ location (str):
20
+ description (Union[Unset, str]):
26
21
  """
27
22
 
28
23
  name: str
@@ -43,6 +43,7 @@ class BookingResource:
43
43
  OpenStack.
44
44
  provider_name (Union[Unset, str]):
45
45
  provider_uuid (Union[Unset, UUID]):
46
+ provider_slug (Union[Unset, str]):
46
47
  category_title (Union[Unset, str]):
47
48
  category_uuid (Union[Unset, UUID]):
48
49
  category_icon (Union[Unset, str]):
@@ -98,9 +99,6 @@ class BookingResource:
98
99
  endpoints (Union[Unset, list['NestedEndpoint']]):
99
100
  error_message (Union[Unset, str]):
100
101
  error_traceback (Union[Unset, str]):
101
- offering_customer_uuid (Union[Unset, UUID]):
102
- offering_customer_name (Union[Unset, str]):
103
- offering_customer_slug (Union[Unset, str]):
104
102
  options (Union[Unset, Any]):
105
103
  available_actions (Union[Unset, list[str]]):
106
104
  last_sync (Union[Unset, datetime.datetime]):
@@ -134,6 +132,7 @@ class BookingResource:
134
132
  offering_plugin_options: Union[Unset, Any] = UNSET
135
133
  provider_name: Union[Unset, str] = UNSET
136
134
  provider_uuid: Union[Unset, UUID] = UNSET
135
+ provider_slug: Union[Unset, str] = UNSET
137
136
  category_title: Union[Unset, str] = UNSET
138
137
  category_uuid: Union[Unset, UUID] = UNSET
139
138
  category_icon: Union[Unset, str] = UNSET
@@ -187,9 +186,6 @@ class BookingResource:
187
186
  endpoints: Union[Unset, list["NestedEndpoint"]] = UNSET
188
187
  error_message: Union[Unset, str] = UNSET
189
188
  error_traceback: Union[Unset, str] = UNSET
190
- offering_customer_uuid: Union[Unset, UUID] = UNSET
191
- offering_customer_name: Union[Unset, str] = UNSET
192
- offering_customer_slug: Union[Unset, str] = UNSET
193
189
  options: Union[Unset, Any] = UNSET
194
190
  available_actions: Union[Unset, list[str]] = UNSET
195
191
  last_sync: Union[Unset, datetime.datetime] = UNSET
@@ -239,6 +235,8 @@ class BookingResource:
239
235
  if not isinstance(self.provider_uuid, Unset):
240
236
  provider_uuid = str(self.provider_uuid)
241
237
 
238
+ provider_slug = self.provider_slug
239
+
242
240
  category_title = self.category_title
243
241
 
244
242
  category_uuid: Union[Unset, str] = UNSET
@@ -433,14 +431,6 @@ class BookingResource:
433
431
 
434
432
  error_traceback = self.error_traceback
435
433
 
436
- offering_customer_uuid: Union[Unset, str] = UNSET
437
- if not isinstance(self.offering_customer_uuid, Unset):
438
- offering_customer_uuid = str(self.offering_customer_uuid)
439
-
440
- offering_customer_name = self.offering_customer_name
441
-
442
- offering_customer_slug = self.offering_customer_slug
443
-
444
434
  options = self.options
445
435
 
446
436
  available_actions: Union[Unset, list[str]] = UNSET
@@ -523,6 +513,8 @@ class BookingResource:
523
513
  field_dict["provider_name"] = provider_name
524
514
  if provider_uuid is not UNSET:
525
515
  field_dict["provider_uuid"] = provider_uuid
516
+ if provider_slug is not UNSET:
517
+ field_dict["provider_slug"] = provider_slug
526
518
  if category_title is not UNSET:
527
519
  field_dict["category_title"] = category_title
528
520
  if category_uuid is not UNSET:
@@ -629,12 +621,6 @@ class BookingResource:
629
621
  field_dict["error_message"] = error_message
630
622
  if error_traceback is not UNSET:
631
623
  field_dict["error_traceback"] = error_traceback
632
- if offering_customer_uuid is not UNSET:
633
- field_dict["offering_customer_uuid"] = offering_customer_uuid
634
- if offering_customer_name is not UNSET:
635
- field_dict["offering_customer_name"] = offering_customer_name
636
- if offering_customer_slug is not UNSET:
637
- field_dict["offering_customer_slug"] = offering_customer_slug
638
624
  if options is not UNSET:
639
625
  field_dict["options"] = options
640
626
  if available_actions is not UNSET:
@@ -717,6 +703,8 @@ class BookingResource:
717
703
  else:
718
704
  provider_uuid = UUID(_provider_uuid)
719
705
 
706
+ provider_slug = d.pop("provider_slug", UNSET)
707
+
720
708
  category_title = d.pop("category_title", UNSET)
721
709
 
722
710
  _category_uuid = d.pop("category_uuid", UNSET)
@@ -1013,17 +1001,6 @@ class BookingResource:
1013
1001
 
1014
1002
  error_traceback = d.pop("error_traceback", UNSET)
1015
1003
 
1016
- _offering_customer_uuid = d.pop("offering_customer_uuid", UNSET)
1017
- offering_customer_uuid: Union[Unset, UUID]
1018
- if isinstance(_offering_customer_uuid, Unset):
1019
- offering_customer_uuid = UNSET
1020
- else:
1021
- offering_customer_uuid = UUID(_offering_customer_uuid)
1022
-
1023
- offering_customer_name = d.pop("offering_customer_name", UNSET)
1024
-
1025
- offering_customer_slug = d.pop("offering_customer_slug", UNSET)
1026
-
1027
1004
  options = d.pop("options", UNSET)
1028
1005
 
1029
1006
  available_actions = cast(list[str], d.pop("available_actions", UNSET))
@@ -1114,6 +1091,7 @@ class BookingResource:
1114
1091
  offering_plugin_options=offering_plugin_options,
1115
1092
  provider_name=provider_name,
1116
1093
  provider_uuid=provider_uuid,
1094
+ provider_slug=provider_slug,
1117
1095
  category_title=category_title,
1118
1096
  category_uuid=category_uuid,
1119
1097
  category_icon=category_icon,
@@ -1167,9 +1145,6 @@ class BookingResource:
1167
1145
  endpoints=endpoints,
1168
1146
  error_message=error_message,
1169
1147
  error_traceback=error_traceback,
1170
- offering_customer_uuid=offering_customer_uuid,
1171
- offering_customer_name=offering_customer_name,
1172
- offering_customer_slug=offering_customer_slug,
1173
1148
  options=options,
1174
1149
  available_actions=available_actions,
1175
1150
  last_sync=last_sync,
@@ -39,9 +39,6 @@ class BookingResourcesListFieldItem(str, Enum):
39
39
  NAME = "name"
40
40
  OFFERING = "offering"
41
41
  OFFERING_BILLABLE = "offering_billable"
42
- OFFERING_CUSTOMER_NAME = "offering_customer_name"
43
- OFFERING_CUSTOMER_SLUG = "offering_customer_slug"
44
- OFFERING_CUSTOMER_UUID = "offering_customer_uuid"
45
42
  OFFERING_DESCRIPTION = "offering_description"
46
43
  OFFERING_IMAGE = "offering_image"
47
44
  OFFERING_NAME = "offering_name"
@@ -72,6 +69,7 @@ class BookingResourcesListFieldItem(str, Enum):
72
69
  PROJECT_SLUG = "project_slug"
73
70
  PROJECT_UUID = "project_uuid"
74
71
  PROVIDER_NAME = "provider_name"
72
+ PROVIDER_SLUG = "provider_slug"
75
73
  PROVIDER_UUID = "provider_uuid"
76
74
  REPORT = "report"
77
75
  RESOURCE_TYPE = "resource_type"
@@ -39,9 +39,6 @@ class BookingResourcesRetrieveFieldItem(str, Enum):
39
39
  NAME = "name"
40
40
  OFFERING = "offering"
41
41
  OFFERING_BILLABLE = "offering_billable"
42
- OFFERING_CUSTOMER_NAME = "offering_customer_name"
43
- OFFERING_CUSTOMER_SLUG = "offering_customer_slug"
44
- OFFERING_CUSTOMER_UUID = "offering_customer_uuid"
45
42
  OFFERING_DESCRIPTION = "offering_description"
46
43
  OFFERING_IMAGE = "offering_image"
47
44
  OFFERING_NAME = "offering_name"
@@ -72,6 +69,7 @@ class BookingResourcesRetrieveFieldItem(str, Enum):
72
69
  PROJECT_SLUG = "project_slug"
73
70
  PROJECT_UUID = "project_uuid"
74
71
  PROVIDER_NAME = "provider_name"
72
+ PROVIDER_SLUG = "provider_slug"
75
73
  PROVIDER_UUID = "provider_uuid"
76
74
  REPORT = "report"
77
75
  RESOURCE_TYPE = "resource_type"
@@ -7,7 +7,7 @@ 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.status_enum import StatusEnum
10
+ from ..models.round_status import RoundStatus
11
11
  from ..types import UNSET, Unset
12
12
 
13
13
  T = TypeVar("T", bound="CallRound")
@@ -23,7 +23,7 @@ class CallRound:
23
23
  cutoff_time (datetime.datetime):
24
24
  call_uuid (UUID):
25
25
  call_name (str):
26
- status (StatusEnum):
26
+ status (RoundStatus):
27
27
  slug (Union[Unset, str]):
28
28
  """
29
29
 
@@ -33,7 +33,7 @@ class CallRound:
33
33
  cutoff_time: datetime.datetime
34
34
  call_uuid: UUID
35
35
  call_name: str
36
- status: StatusEnum
36
+ status: RoundStatus
37
37
  slug: Union[Unset, str] = UNSET
38
38
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
39
39
 
@@ -87,7 +87,7 @@ class CallRound:
87
87
 
88
88
  call_name = d.pop("call_name")
89
89
 
90
- status = StatusEnum(d.pop("status"))
90
+ status = RoundStatus(d.pop("status"))
91
91
 
92
92
  slug = d.pop("slug", UNSET)
93
93
 
@@ -0,0 +1,99 @@
1
+ from collections.abc import Mapping
2
+ from typing import TYPE_CHECKING, Any, TypeVar
3
+
4
+ from attrs import define as _attrs_define
5
+ from attrs import field as _attrs_field
6
+
7
+ if TYPE_CHECKING:
8
+ from ..models.checklist_template_checklist import ChecklistTemplateChecklist
9
+ from ..models.question import Question
10
+
11
+
12
+ T = TypeVar("T", bound="ChecklistTemplate")
13
+
14
+
15
+ @_attrs_define
16
+ class ChecklistTemplate:
17
+ """
18
+ Attributes:
19
+ checklist (ChecklistTemplateChecklist):
20
+ questions (list['Question']):
21
+ initial_visible_questions (list['Question']):
22
+ """
23
+
24
+ checklist: "ChecklistTemplateChecklist"
25
+ questions: list["Question"]
26
+ initial_visible_questions: list["Question"]
27
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
28
+
29
+ def to_dict(self) -> dict[str, Any]:
30
+ checklist = self.checklist.to_dict()
31
+
32
+ questions = []
33
+ for questions_item_data in self.questions:
34
+ questions_item = questions_item_data.to_dict()
35
+ questions.append(questions_item)
36
+
37
+ initial_visible_questions = []
38
+ for initial_visible_questions_item_data in self.initial_visible_questions:
39
+ initial_visible_questions_item = initial_visible_questions_item_data.to_dict()
40
+ initial_visible_questions.append(initial_visible_questions_item)
41
+
42
+ field_dict: dict[str, Any] = {}
43
+ field_dict.update(self.additional_properties)
44
+ field_dict.update(
45
+ {
46
+ "checklist": checklist,
47
+ "questions": questions,
48
+ "initial_visible_questions": initial_visible_questions,
49
+ }
50
+ )
51
+
52
+ return field_dict
53
+
54
+ @classmethod
55
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
56
+ from ..models.checklist_template_checklist import ChecklistTemplateChecklist
57
+ from ..models.question import Question
58
+
59
+ d = dict(src_dict)
60
+ checklist = ChecklistTemplateChecklist.from_dict(d.pop("checklist"))
61
+
62
+ questions = []
63
+ _questions = d.pop("questions")
64
+ for questions_item_data in _questions:
65
+ questions_item = Question.from_dict(questions_item_data)
66
+
67
+ questions.append(questions_item)
68
+
69
+ initial_visible_questions = []
70
+ _initial_visible_questions = d.pop("initial_visible_questions")
71
+ for initial_visible_questions_item_data in _initial_visible_questions:
72
+ initial_visible_questions_item = Question.from_dict(initial_visible_questions_item_data)
73
+
74
+ initial_visible_questions.append(initial_visible_questions_item)
75
+
76
+ checklist_template = cls(
77
+ checklist=checklist,
78
+ questions=questions,
79
+ initial_visible_questions=initial_visible_questions,
80
+ )
81
+
82
+ checklist_template.additional_properties = d
83
+ return checklist_template
84
+
85
+ @property
86
+ def additional_keys(self) -> list[str]:
87
+ return list(self.additional_properties.keys())
88
+
89
+ def __getitem__(self, key: str) -> Any:
90
+ return self.additional_properties[key]
91
+
92
+ def __setitem__(self, key: str, value: Any) -> None:
93
+ self.additional_properties[key] = value
94
+
95
+ def __delitem__(self, key: str) -> None:
96
+ del self.additional_properties[key]
97
+
98
+ def __contains__(self, key: str) -> bool:
99
+ return key in self.additional_properties
@@ -0,0 +1,44 @@
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="ChecklistTemplateChecklist")
8
+
9
+
10
+ @_attrs_define
11
+ class ChecklistTemplateChecklist:
12
+ """ """
13
+
14
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
15
+
16
+ def to_dict(self) -> dict[str, Any]:
17
+ field_dict: dict[str, Any] = {}
18
+ field_dict.update(self.additional_properties)
19
+
20
+ return field_dict
21
+
22
+ @classmethod
23
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
24
+ d = dict(src_dict)
25
+ checklist_template_checklist = cls()
26
+
27
+ checklist_template_checklist.additional_properties = d
28
+ return checklist_template_checklist
29
+
30
+ @property
31
+ def additional_keys(self) -> list[str]:
32
+ return list(self.additional_properties.keys())
33
+
34
+ def __getitem__(self, key: str) -> Any:
35
+ return self.additional_properties[key]
36
+
37
+ def __setitem__(self, key: str, value: Any) -> None:
38
+ self.additional_properties[key] = value
39
+
40
+ def __delitem__(self, key: str) -> None:
41
+ del self.additional_properties[key]
42
+
43
+ def __contains__(self, key: str) -> bool:
44
+ return key in self.additional_properties
@@ -143,11 +143,17 @@ class ConstanceSettings:
143
143
  oidc_client_secret (Union[Unset, str]):
144
144
  oidc_user_field (Union[Unset, str]):
145
145
  oidc_cache_timeout (Union[Unset, int]):
146
+ oidc_access_token_enabled (Union[Unset, bool]):
146
147
  oidc_block_creation_of_uninvited_users (Union[Unset, bool]):
147
148
  deactivate_user_if_no_roles (Union[Unset, bool]):
148
149
  maintenance_announcement_notify_before_minutes (Union[Unset, int]):
149
150
  maintenance_announcement_notify_system (Union[Unset, list[str]]):
150
151
  enforce_user_consent_for_offerings (Union[Unset, bool]):
152
+ onboarding_verification_expiry_hours (Union[Unset, int]):
153
+ onboarding_ariregister_base_url (Union[Unset, str]):
154
+ onboarding_ariregister_username (Union[Unset, str]):
155
+ onboarding_ariregister_password (Union[Unset, str]):
156
+ onboarding_ariregister_timeout (Union[Unset, int]):
151
157
  """
152
158
 
153
159
  site_name: Union[Unset, str] = UNSET
@@ -280,11 +286,17 @@ class ConstanceSettings:
280
286
  oidc_client_secret: Union[Unset, str] = UNSET
281
287
  oidc_user_field: Union[Unset, str] = UNSET
282
288
  oidc_cache_timeout: Union[Unset, int] = UNSET
289
+ oidc_access_token_enabled: Union[Unset, bool] = UNSET
283
290
  oidc_block_creation_of_uninvited_users: Union[Unset, bool] = UNSET
284
291
  deactivate_user_if_no_roles: Union[Unset, bool] = UNSET
285
292
  maintenance_announcement_notify_before_minutes: Union[Unset, int] = UNSET
286
293
  maintenance_announcement_notify_system: Union[Unset, list[str]] = UNSET
287
294
  enforce_user_consent_for_offerings: Union[Unset, bool] = UNSET
295
+ onboarding_verification_expiry_hours: Union[Unset, int] = UNSET
296
+ onboarding_ariregister_base_url: Union[Unset, str] = UNSET
297
+ onboarding_ariregister_username: Union[Unset, str] = UNSET
298
+ onboarding_ariregister_password: Union[Unset, str] = UNSET
299
+ onboarding_ariregister_timeout: Union[Unset, int] = UNSET
288
300
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
289
301
 
290
302
  def to_dict(self) -> dict[str, Any]:
@@ -600,6 +612,8 @@ class ConstanceSettings:
600
612
 
601
613
  oidc_cache_timeout = self.oidc_cache_timeout
602
614
 
615
+ oidc_access_token_enabled = self.oidc_access_token_enabled
616
+
603
617
  oidc_block_creation_of_uninvited_users = self.oidc_block_creation_of_uninvited_users
604
618
 
605
619
  deactivate_user_if_no_roles = self.deactivate_user_if_no_roles
@@ -612,6 +626,16 @@ class ConstanceSettings:
612
626
 
613
627
  enforce_user_consent_for_offerings = self.enforce_user_consent_for_offerings
614
628
 
629
+ onboarding_verification_expiry_hours = self.onboarding_verification_expiry_hours
630
+
631
+ onboarding_ariregister_base_url = self.onboarding_ariregister_base_url
632
+
633
+ onboarding_ariregister_username = self.onboarding_ariregister_username
634
+
635
+ onboarding_ariregister_password = self.onboarding_ariregister_password
636
+
637
+ onboarding_ariregister_timeout = self.onboarding_ariregister_timeout
638
+
615
639
  field_dict: dict[str, Any] = {}
616
640
  field_dict.update(self.additional_properties)
617
641
  field_dict.update({})
@@ -879,6 +903,8 @@ class ConstanceSettings:
879
903
  field_dict["OIDC_USER_FIELD"] = oidc_user_field
880
904
  if oidc_cache_timeout is not UNSET:
881
905
  field_dict["OIDC_CACHE_TIMEOUT"] = oidc_cache_timeout
906
+ if oidc_access_token_enabled is not UNSET:
907
+ field_dict["OIDC_ACCESS_TOKEN_ENABLED"] = oidc_access_token_enabled
882
908
  if oidc_block_creation_of_uninvited_users is not UNSET:
883
909
  field_dict["OIDC_BLOCK_CREATION_OF_UNINVITED_USERS"] = oidc_block_creation_of_uninvited_users
884
910
  if deactivate_user_if_no_roles is not UNSET:
@@ -891,6 +917,16 @@ class ConstanceSettings:
891
917
  field_dict["MAINTENANCE_ANNOUNCEMENT_NOTIFY_SYSTEM"] = maintenance_announcement_notify_system
892
918
  if enforce_user_consent_for_offerings is not UNSET:
893
919
  field_dict["ENFORCE_USER_CONSENT_FOR_OFFERINGS"] = enforce_user_consent_for_offerings
920
+ if onboarding_verification_expiry_hours is not UNSET:
921
+ field_dict["ONBOARDING_VERIFICATION_EXPIRY_HOURS"] = onboarding_verification_expiry_hours
922
+ if onboarding_ariregister_base_url is not UNSET:
923
+ field_dict["ONBOARDING_ARIREGISTER_BASE_URL"] = onboarding_ariregister_base_url
924
+ if onboarding_ariregister_username is not UNSET:
925
+ field_dict["ONBOARDING_ARIREGISTER_USERNAME"] = onboarding_ariregister_username
926
+ if onboarding_ariregister_password is not UNSET:
927
+ field_dict["ONBOARDING_ARIREGISTER_PASSWORD"] = onboarding_ariregister_password
928
+ if onboarding_ariregister_timeout is not UNSET:
929
+ field_dict["ONBOARDING_ARIREGISTER_TIMEOUT"] = onboarding_ariregister_timeout
894
930
 
895
931
  return field_dict
896
932
 
@@ -1245,6 +1281,8 @@ class ConstanceSettings:
1245
1281
 
1246
1282
  oidc_cache_timeout = d.pop("OIDC_CACHE_TIMEOUT", UNSET)
1247
1283
 
1284
+ oidc_access_token_enabled = d.pop("OIDC_ACCESS_TOKEN_ENABLED", UNSET)
1285
+
1248
1286
  oidc_block_creation_of_uninvited_users = d.pop("OIDC_BLOCK_CREATION_OF_UNINVITED_USERS", UNSET)
1249
1287
 
1250
1288
  deactivate_user_if_no_roles = d.pop("DEACTIVATE_USER_IF_NO_ROLES", UNSET)
@@ -1255,6 +1293,16 @@ class ConstanceSettings:
1255
1293
 
1256
1294
  enforce_user_consent_for_offerings = d.pop("ENFORCE_USER_CONSENT_FOR_OFFERINGS", UNSET)
1257
1295
 
1296
+ onboarding_verification_expiry_hours = d.pop("ONBOARDING_VERIFICATION_EXPIRY_HOURS", UNSET)
1297
+
1298
+ onboarding_ariregister_base_url = d.pop("ONBOARDING_ARIREGISTER_BASE_URL", UNSET)
1299
+
1300
+ onboarding_ariregister_username = d.pop("ONBOARDING_ARIREGISTER_USERNAME", UNSET)
1301
+
1302
+ onboarding_ariregister_password = d.pop("ONBOARDING_ARIREGISTER_PASSWORD", UNSET)
1303
+
1304
+ onboarding_ariregister_timeout = d.pop("ONBOARDING_ARIREGISTER_TIMEOUT", UNSET)
1305
+
1258
1306
  constance_settings = cls(
1259
1307
  site_name=site_name,
1260
1308
  site_description=site_description,
@@ -1386,11 +1434,17 @@ class ConstanceSettings:
1386
1434
  oidc_client_secret=oidc_client_secret,
1387
1435
  oidc_user_field=oidc_user_field,
1388
1436
  oidc_cache_timeout=oidc_cache_timeout,
1437
+ oidc_access_token_enabled=oidc_access_token_enabled,
1389
1438
  oidc_block_creation_of_uninvited_users=oidc_block_creation_of_uninvited_users,
1390
1439
  deactivate_user_if_no_roles=deactivate_user_if_no_roles,
1391
1440
  maintenance_announcement_notify_before_minutes=maintenance_announcement_notify_before_minutes,
1392
1441
  maintenance_announcement_notify_system=maintenance_announcement_notify_system,
1393
1442
  enforce_user_consent_for_offerings=enforce_user_consent_for_offerings,
1443
+ onboarding_verification_expiry_hours=onboarding_verification_expiry_hours,
1444
+ onboarding_ariregister_base_url=onboarding_ariregister_base_url,
1445
+ onboarding_ariregister_username=onboarding_ariregister_username,
1446
+ onboarding_ariregister_password=onboarding_ariregister_password,
1447
+ onboarding_ariregister_timeout=onboarding_ariregister_timeout,
1394
1448
  )
1395
1449
 
1396
1450
  constance_settings.additional_properties = d
@@ -145,11 +145,17 @@ class ConstanceSettingsRequest:
145
145
  oidc_client_secret (Union[Unset, str]):
146
146
  oidc_user_field (Union[Unset, str]):
147
147
  oidc_cache_timeout (Union[Unset, int]):
148
+ oidc_access_token_enabled (Union[Unset, bool]):
148
149
  oidc_block_creation_of_uninvited_users (Union[Unset, bool]):
149
150
  deactivate_user_if_no_roles (Union[Unset, bool]):
150
151
  maintenance_announcement_notify_before_minutes (Union[Unset, int]):
151
152
  maintenance_announcement_notify_system (Union[Unset, list[str]]):
152
153
  enforce_user_consent_for_offerings (Union[Unset, bool]):
154
+ onboarding_verification_expiry_hours (Union[Unset, int]):
155
+ onboarding_ariregister_base_url (Union[Unset, str]):
156
+ onboarding_ariregister_username (Union[Unset, str]):
157
+ onboarding_ariregister_password (Union[Unset, str]):
158
+ onboarding_ariregister_timeout (Union[Unset, int]):
153
159
  """
154
160
 
155
161
  site_name: Union[Unset, str] = UNSET
@@ -282,11 +288,17 @@ class ConstanceSettingsRequest:
282
288
  oidc_client_secret: Union[Unset, str] = UNSET
283
289
  oidc_user_field: Union[Unset, str] = UNSET
284
290
  oidc_cache_timeout: Union[Unset, int] = UNSET
291
+ oidc_access_token_enabled: Union[Unset, bool] = UNSET
285
292
  oidc_block_creation_of_uninvited_users: Union[Unset, bool] = UNSET
286
293
  deactivate_user_if_no_roles: Union[Unset, bool] = UNSET
287
294
  maintenance_announcement_notify_before_minutes: Union[Unset, int] = UNSET
288
295
  maintenance_announcement_notify_system: Union[Unset, list[str]] = UNSET
289
296
  enforce_user_consent_for_offerings: Union[Unset, bool] = UNSET
297
+ onboarding_verification_expiry_hours: Union[Unset, int] = UNSET
298
+ onboarding_ariregister_base_url: Union[Unset, str] = UNSET
299
+ onboarding_ariregister_username: Union[Unset, str] = UNSET
300
+ onboarding_ariregister_password: Union[Unset, str] = UNSET
301
+ onboarding_ariregister_timeout: Union[Unset, int] = UNSET
290
302
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
291
303
 
292
304
  def to_dict(self) -> dict[str, Any]:
@@ -638,6 +650,8 @@ class ConstanceSettingsRequest:
638
650
 
639
651
  oidc_cache_timeout = self.oidc_cache_timeout
640
652
 
653
+ oidc_access_token_enabled = self.oidc_access_token_enabled
654
+
641
655
  oidc_block_creation_of_uninvited_users = self.oidc_block_creation_of_uninvited_users
642
656
 
643
657
  deactivate_user_if_no_roles = self.deactivate_user_if_no_roles
@@ -650,6 +664,16 @@ class ConstanceSettingsRequest:
650
664
 
651
665
  enforce_user_consent_for_offerings = self.enforce_user_consent_for_offerings
652
666
 
667
+ onboarding_verification_expiry_hours = self.onboarding_verification_expiry_hours
668
+
669
+ onboarding_ariregister_base_url = self.onboarding_ariregister_base_url
670
+
671
+ onboarding_ariregister_username = self.onboarding_ariregister_username
672
+
673
+ onboarding_ariregister_password = self.onboarding_ariregister_password
674
+
675
+ onboarding_ariregister_timeout = self.onboarding_ariregister_timeout
676
+
653
677
  field_dict: dict[str, Any] = {}
654
678
  field_dict.update(self.additional_properties)
655
679
  field_dict.update({})
@@ -917,6 +941,8 @@ class ConstanceSettingsRequest:
917
941
  field_dict["OIDC_USER_FIELD"] = oidc_user_field
918
942
  if oidc_cache_timeout is not UNSET:
919
943
  field_dict["OIDC_CACHE_TIMEOUT"] = oidc_cache_timeout
944
+ if oidc_access_token_enabled is not UNSET:
945
+ field_dict["OIDC_ACCESS_TOKEN_ENABLED"] = oidc_access_token_enabled
920
946
  if oidc_block_creation_of_uninvited_users is not UNSET:
921
947
  field_dict["OIDC_BLOCK_CREATION_OF_UNINVITED_USERS"] = oidc_block_creation_of_uninvited_users
922
948
  if deactivate_user_if_no_roles is not UNSET:
@@ -929,6 +955,16 @@ class ConstanceSettingsRequest:
929
955
  field_dict["MAINTENANCE_ANNOUNCEMENT_NOTIFY_SYSTEM"] = maintenance_announcement_notify_system
930
956
  if enforce_user_consent_for_offerings is not UNSET:
931
957
  field_dict["ENFORCE_USER_CONSENT_FOR_OFFERINGS"] = enforce_user_consent_for_offerings
958
+ if onboarding_verification_expiry_hours is not UNSET:
959
+ field_dict["ONBOARDING_VERIFICATION_EXPIRY_HOURS"] = onboarding_verification_expiry_hours
960
+ if onboarding_ariregister_base_url is not UNSET:
961
+ field_dict["ONBOARDING_ARIREGISTER_BASE_URL"] = onboarding_ariregister_base_url
962
+ if onboarding_ariregister_username is not UNSET:
963
+ field_dict["ONBOARDING_ARIREGISTER_USERNAME"] = onboarding_ariregister_username
964
+ if onboarding_ariregister_password is not UNSET:
965
+ field_dict["ONBOARDING_ARIREGISTER_PASSWORD"] = onboarding_ariregister_password
966
+ if onboarding_ariregister_timeout is not UNSET:
967
+ field_dict["ONBOARDING_ARIREGISTER_TIMEOUT"] = onboarding_ariregister_timeout
932
968
 
933
969
  return field_dict
934
970
 
@@ -1379,6 +1415,8 @@ class ConstanceSettingsRequest:
1379
1415
 
1380
1416
  oidc_cache_timeout = d.pop("OIDC_CACHE_TIMEOUT", UNSET)
1381
1417
 
1418
+ oidc_access_token_enabled = d.pop("OIDC_ACCESS_TOKEN_ENABLED", UNSET)
1419
+
1382
1420
  oidc_block_creation_of_uninvited_users = d.pop("OIDC_BLOCK_CREATION_OF_UNINVITED_USERS", UNSET)
1383
1421
 
1384
1422
  deactivate_user_if_no_roles = d.pop("DEACTIVATE_USER_IF_NO_ROLES", UNSET)
@@ -1389,6 +1427,16 @@ class ConstanceSettingsRequest:
1389
1427
 
1390
1428
  enforce_user_consent_for_offerings = d.pop("ENFORCE_USER_CONSENT_FOR_OFFERINGS", UNSET)
1391
1429
 
1430
+ onboarding_verification_expiry_hours = d.pop("ONBOARDING_VERIFICATION_EXPIRY_HOURS", UNSET)
1431
+
1432
+ onboarding_ariregister_base_url = d.pop("ONBOARDING_ARIREGISTER_BASE_URL", UNSET)
1433
+
1434
+ onboarding_ariregister_username = d.pop("ONBOARDING_ARIREGISTER_USERNAME", UNSET)
1435
+
1436
+ onboarding_ariregister_password = d.pop("ONBOARDING_ARIREGISTER_PASSWORD", UNSET)
1437
+
1438
+ onboarding_ariregister_timeout = d.pop("ONBOARDING_ARIREGISTER_TIMEOUT", UNSET)
1439
+
1392
1440
  constance_settings_request = cls(
1393
1441
  site_name=site_name,
1394
1442
  site_description=site_description,
@@ -1520,11 +1568,17 @@ class ConstanceSettingsRequest:
1520
1568
  oidc_client_secret=oidc_client_secret,
1521
1569
  oidc_user_field=oidc_user_field,
1522
1570
  oidc_cache_timeout=oidc_cache_timeout,
1571
+ oidc_access_token_enabled=oidc_access_token_enabled,
1523
1572
  oidc_block_creation_of_uninvited_users=oidc_block_creation_of_uninvited_users,
1524
1573
  deactivate_user_if_no_roles=deactivate_user_if_no_roles,
1525
1574
  maintenance_announcement_notify_before_minutes=maintenance_announcement_notify_before_minutes,
1526
1575
  maintenance_announcement_notify_system=maintenance_announcement_notify_system,
1527
1576
  enforce_user_consent_for_offerings=enforce_user_consent_for_offerings,
1577
+ onboarding_verification_expiry_hours=onboarding_verification_expiry_hours,
1578
+ onboarding_ariregister_base_url=onboarding_ariregister_base_url,
1579
+ onboarding_ariregister_username=onboarding_ariregister_username,
1580
+ onboarding_ariregister_password=onboarding_ariregister_password,
1581
+ onboarding_ariregister_timeout=onboarding_ariregister_timeout,
1528
1582
  )
1529
1583
 
1530
1584
  constance_settings_request.additional_properties = d