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.
- waldur_api_client/api/booking_resources/booking_resources_count.py +18 -0
- waldur_api_client/api/booking_resources/booking_resources_list.py +18 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_checklist_template_count.py +125 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_checklist_template_retrieve.py +126 -0
- waldur_api_client/api/marketplace_project_update_requests/marketplace_project_update_requests_count.py +18 -18
- waldur_api_client/api/marketplace_project_update_requests/marketplace_project_update_requests_list.py +18 -18
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_tos_stats_retrieve.py +146 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_count.py +18 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +18 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_move_resource.py +22 -0
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_update_options.py +168 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_count.py +18 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +18 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_move_resource.py +22 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_renew.py +166 -0
- waldur_api_client/api/marketplace_service_providers/service_provider_checklists_summary.py +189 -0
- waldur_api_client/api/onboarding/__init__.py +1 -0
- waldur_api_client/api/onboarding/onboarding_supported_countries_retrieve.py +74 -0
- waldur_api_client/api/onboarding_justifications/__init__.py +1 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_attach_document.py +211 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_count.py +172 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_create.py +150 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_create_justification.py +154 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_destroy.py +89 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_list.py +175 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_partial_update.py +164 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_retrieve.py +142 -0
- waldur_api_client/api/onboarding_justifications/onboarding_justifications_update.py +164 -0
- waldur_api_client/api/onboarding_verifications/__init__.py +1 -0
- waldur_api_client/api/onboarding_verifications/onboarding_verifications_count.py +172 -0
- waldur_api_client/api/onboarding_verifications/onboarding_verifications_create.py +150 -0
- waldur_api_client/api/onboarding_verifications/onboarding_verifications_create_customer.py +144 -0
- waldur_api_client/api/onboarding_verifications/onboarding_verifications_destroy.py +89 -0
- waldur_api_client/api/onboarding_verifications/onboarding_verifications_list.py +175 -0
- waldur_api_client/api/onboarding_verifications/onboarding_verifications_partial_update.py +164 -0
- waldur_api_client/api/onboarding_verifications/onboarding_verifications_retrieve.py +142 -0
- waldur_api_client/api/onboarding_verifications/onboarding_verifications_update.py +164 -0
- waldur_api_client/api/onboarding_verifications/onboarding_verifications_validate_company.py +154 -0
- waldur_api_client/api/openstack_backups/openstack_backups_restore.py +10 -10
- waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_count.py +33 -0
- waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_create.py +154 -0
- waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_destroy.py +91 -0
- waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_list.py +33 -0
- waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_partial_update.py +164 -0
- waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_update.py +164 -0
- waldur_api_client/api/openstack_networks/openstack_networks_rbac_policy_create.py +24 -22
- waldur_api_client/api/projects/projects_checklist_template_count.py +125 -0
- waldur_api_client/api/projects/projects_checklist_template_retrieve.py +126 -0
- waldur_api_client/api/proposal_proposals/proposal_proposals_checklist_template_count.py +125 -0
- waldur_api_client/api/proposal_proposals/proposal_proposals_checklist_template_retrieve.py +126 -0
- waldur_api_client/api/proposal_protected_calls/proposal_protected_calls_offerings_list.py +15 -0
- waldur_api_client/api/rancher_services/rancher_services_create.py +22 -22
- waldur_api_client/models/__init__.py +88 -10
- waldur_api_client/models/azure_sql_server_create_order_attributes.py +5 -10
- waldur_api_client/models/azure_virtual_machine_create_order_attributes.py +7 -12
- waldur_api_client/models/booking_resource.py +9 -34
- waldur_api_client/models/booking_resources_list_field_item.py +1 -3
- waldur_api_client/models/booking_resources_retrieve_field_item.py +1 -3
- waldur_api_client/models/call_round.py +4 -4
- waldur_api_client/models/checklist_template.py +99 -0
- waldur_api_client/models/checklist_template_checklist.py +44 -0
- waldur_api_client/models/constance_settings.py +54 -0
- waldur_api_client/models/constance_settings_request.py +54 -0
- waldur_api_client/models/constance_settings_request_form.py +54 -0
- waldur_api_client/models/constance_settings_request_multipart.py +99 -0
- waldur_api_client/models/customer.py +9 -0
- waldur_api_client/models/customers_list_field_item.py +1 -0
- waldur_api_client/models/customers_retrieve_field_item.py +1 -0
- waldur_api_client/models/deprecated_network_rbac_policy.py +137 -0
- waldur_api_client/models/deprecated_network_rbac_policy_request.py +78 -0
- waldur_api_client/models/event_groups_enum.py +1 -0
- waldur_api_client/models/event_types_enum.py +3 -0
- waldur_api_client/models/generic_order_attributes.py +1 -2
- waldur_api_client/models/managed_rancher_cluster_resources_list_field_item.py +1 -3
- waldur_api_client/models/managed_rancher_cluster_resources_retrieve_field_item.py +1 -3
- waldur_api_client/models/marketplace_orders_list_field_item.py +1 -3
- waldur_api_client/models/marketplace_orders_retrieve_field_item.py +1 -3
- waldur_api_client/models/marketplace_provider_resources_details_retrieve_field_item.py +1 -3
- waldur_api_client/models/marketplace_provider_resources_list_field_item.py +1 -3
- waldur_api_client/models/marketplace_provider_resources_retrieve_field_item.py +1 -3
- waldur_api_client/models/marketplace_resources_details_retrieve_field_item.py +1 -3
- waldur_api_client/models/marketplace_resources_list_field_item.py +1 -3
- waldur_api_client/models/marketplace_resources_retrieve_field_item.py +1 -3
- waldur_api_client/models/marketplace_robot_accounts_list_field_item.py +2 -1
- waldur_api_client/models/marketplace_robot_accounts_retrieve_field_item.py +2 -1
- waldur_api_client/models/marketplace_service_providers_projects_list_field_item.py +1 -0
- waldur_api_client/models/merged_plugin_options.py +27 -0
- waldur_api_client/models/merged_plugin_options_request.py +27 -0
- waldur_api_client/models/move_resource_request.py +65 -0
- waldur_api_client/models/nested_round.py +5 -5
- waldur_api_client/models/network_rbac_policy_request.py +8 -0
- waldur_api_client/models/notification.py +9 -9
- waldur_api_client/models/{notification_context_fields.py → notification_context_schema.py} +6 -6
- waldur_api_client/models/notification_template_detail_serializers.py +9 -3
- waldur_api_client/models/offering_component.py +79 -0
- waldur_api_client/models/offering_component_request.py +80 -0
- waldur_api_client/models/onboarding_company_validation_request_request.py +88 -0
- waldur_api_client/models/onboarding_justification.py +183 -0
- waldur_api_client/models/onboarding_justification_create_request.py +68 -0
- waldur_api_client/models/onboarding_justification_documentation.py +108 -0
- waldur_api_client/models/onboarding_justification_documentation_request.py +84 -0
- waldur_api_client/models/onboarding_justification_documentation_request_form.py +84 -0
- waldur_api_client/models/onboarding_justification_documentation_request_multipart.py +98 -0
- waldur_api_client/models/onboarding_justification_request.py +75 -0
- waldur_api_client/models/onboarding_verification.py +250 -0
- waldur_api_client/models/onboarding_verification_request.py +128 -0
- waldur_api_client/models/onboarding_verification_status_enum.py +12 -0
- waldur_api_client/models/open_stack_backup_restoration.py +3 -5
- waldur_api_client/models/open_stack_backup_restoration_create_request.py +141 -0
- waldur_api_client/models/open_stack_backup_restoration_request.py +22 -30
- waldur_api_client/models/open_stack_create_floating_ip_request.py +89 -0
- waldur_api_client/models/open_stack_create_port_request.py +104 -0
- waldur_api_client/models/open_stack_instance.py +13 -29
- waldur_api_client/models/open_stack_instance_create_order_attributes.py +67 -54
- waldur_api_client/models/open_stack_instance_floating_i_ps_update_request.py +5 -5
- waldur_api_client/models/open_stack_instance_ports_update_request.py +5 -5
- waldur_api_client/models/open_stack_instance_request.py +1 -67
- waldur_api_client/models/open_stack_nested_port_request.py +0 -9
- waldur_api_client/models/{open_stack_nested_security_group_request.py → open_stack_security_group_hyperlink_request.py} +14 -14
- waldur_api_client/models/open_stack_server_group_hyperlink_request.py +59 -0
- waldur_api_client/models/open_stack_tenant_create_order_attributes.py +9 -14
- waldur_api_client/models/open_stack_volume_create_order_attributes.py +8 -13
- waldur_api_client/models/openstack_instances_list_field_item.py +0 -7
- waldur_api_client/models/openstack_instances_retrieve_field_item.py +0 -7
- waldur_api_client/models/order_create.py +8 -0
- waldur_api_client/models/order_details.py +9 -34
- waldur_api_client/models/patched_network_rbac_policy_request.py +85 -0
- waldur_api_client/models/patched_onboarding_justification_request.py +77 -0
- waldur_api_client/models/patched_onboarding_verification_request.py +128 -0
- waldur_api_client/models/patched_open_stack_instance_request.py +1 -67
- waldur_api_client/models/patched_project_credit_request.py +13 -0
- waldur_api_client/models/patched_project_request.py +1 -2
- waldur_api_client/models/patched_project_request_form.py +1 -2
- waldur_api_client/models/patched_project_request_multipart.py +1 -2
- waldur_api_client/models/project.py +10 -2
- waldur_api_client/models/project_credit.py +13 -0
- waldur_api_client/models/project_credit_request.py +13 -0
- waldur_api_client/models/{rancher_nested_security_group.py → project_hyperlink_request.py} +5 -5
- waldur_api_client/models/project_request.py +1 -2
- waldur_api_client/models/project_request_form.py +1 -2
- waldur_api_client/models/project_request_multipart.py +1 -2
- waldur_api_client/models/projects_list_field_item.py +1 -0
- waldur_api_client/models/projects_retrieve_field_item.py +1 -0
- waldur_api_client/models/protected_round.py +4 -4
- waldur_api_client/models/question.py +102 -0
- waldur_api_client/models/{open_stack_data_volume.py → question_options.py} +27 -29
- waldur_api_client/models/rancher_clusters_list_field_item.py +0 -1
- waldur_api_client/models/rancher_clusters_retrieve_field_item.py +0 -1
- waldur_api_client/models/rancher_service_create.py +508 -0
- waldur_api_client/models/rancher_service_create_marketplace_offering_plugin_options_type_0.py +44 -0
- waldur_api_client/models/rancher_service_create_request.py +185 -0
- waldur_api_client/models/rancher_service_request.py +16 -19
- waldur_api_client/models/rancher_workload_create.py +59 -0
- waldur_api_client/models/rancher_workload_create_request.py +59 -0
- waldur_api_client/models/resource.py +9 -34
- waldur_api_client/models/resource_renew_request.py +83 -0
- waldur_api_client/models/resource_renew_request_limits.py +44 -0
- waldur_api_client/models/robot_account_details.py +22 -13
- waldur_api_client/models/{status_enum.py → round_status.py} +1 -1
- waldur_api_client/models/service_provider_checklist_summary.py +98 -0
- waldur_api_client/models/slurm_invoices_slurm_package_create_order_attributes.py +4 -9
- waldur_api_client/models/time_series_to_s_data.py +69 -0
- waldur_api_client/models/to_s_consent_dashboard.py +155 -0
- waldur_api_client/models/update_offering_component_request.py +79 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes.py +11 -16
- waldur_api_client/models/validation_decision_enum.py +10 -0
- waldur_api_client/models/validation_method_enum.py +8 -0
- waldur_api_client/models/version_adoption.py +67 -0
- waldur_api_client/models/vmware_nested_network.py +0 -25
- waldur_api_client/models/vmware_nested_network_request.py +6 -14
- {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.4.dist-info}/METADATA +1 -1
- {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.4.dist-info}/RECORD +174 -101
- {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.4.dist-info}/WHEEL +0 -0
- {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -15,21 +15,16 @@ class OpenstackInstancesRetrieveFieldItem(str, Enum):
|
|
|
15
15
|
CUSTOMER_ABBREVIATION = "customer_abbreviation"
|
|
16
16
|
CUSTOMER_NAME = "customer_name"
|
|
17
17
|
CUSTOMER_NATIVE_NAME = "customer_native_name"
|
|
18
|
-
DATA_VOLUMES = "data_volumes"
|
|
19
|
-
DATA_VOLUME_SIZE = "data_volume_size"
|
|
20
|
-
DATA_VOLUME_TYPE = "data_volume_type"
|
|
21
18
|
DESCRIPTION = "description"
|
|
22
19
|
DISK = "disk"
|
|
23
20
|
ERROR_MESSAGE = "error_message"
|
|
24
21
|
ERROR_TRACEBACK = "error_traceback"
|
|
25
22
|
EXTERNAL_ADDRESS = "external_address"
|
|
26
23
|
EXTERNAL_IPS = "external_ips"
|
|
27
|
-
FLAVOR = "flavor"
|
|
28
24
|
FLAVOR_DISK = "flavor_disk"
|
|
29
25
|
FLAVOR_NAME = "flavor_name"
|
|
30
26
|
FLOATING_IPS = "floating_ips"
|
|
31
27
|
HYPERVISOR_HOSTNAME = "hypervisor_hostname"
|
|
32
|
-
IMAGE = "image"
|
|
33
28
|
IMAGE_NAME = "image_name"
|
|
34
29
|
INTERNAL_IPS = "internal_ips"
|
|
35
30
|
IS_LIMIT_BASED = "is_limit_based"
|
|
@@ -68,8 +63,6 @@ class OpenstackInstancesRetrieveFieldItem(str, Enum):
|
|
|
68
63
|
SSH_PUBLIC_KEY = "ssh_public_key"
|
|
69
64
|
START_TIME = "start_time"
|
|
70
65
|
STATE = "state"
|
|
71
|
-
SYSTEM_VOLUME_SIZE = "system_volume_size"
|
|
72
|
-
SYSTEM_VOLUME_TYPE = "system_volume_type"
|
|
73
66
|
TENANT = "tenant"
|
|
74
67
|
TENANT_UUID = "tenant_uuid"
|
|
75
68
|
URL = "url"
|
|
@@ -35,6 +35,7 @@ class OrderCreate:
|
|
|
35
35
|
offering_plugin_options (Any): Public data used by specific plugin, such as storage mode for OpenStack.
|
|
36
36
|
provider_name (str):
|
|
37
37
|
provider_uuid (UUID):
|
|
38
|
+
provider_slug (str):
|
|
38
39
|
category_title (str):
|
|
39
40
|
category_uuid (UUID):
|
|
40
41
|
category_icon (str):
|
|
@@ -92,6 +93,7 @@ class OrderCreate:
|
|
|
92
93
|
offering_plugin_options: Any
|
|
93
94
|
provider_name: str
|
|
94
95
|
provider_uuid: UUID
|
|
96
|
+
provider_slug: str
|
|
95
97
|
category_title: str
|
|
96
98
|
category_uuid: UUID
|
|
97
99
|
category_icon: str
|
|
@@ -160,6 +162,8 @@ class OrderCreate:
|
|
|
160
162
|
|
|
161
163
|
provider_uuid = str(self.provider_uuid)
|
|
162
164
|
|
|
165
|
+
provider_slug = self.provider_slug
|
|
166
|
+
|
|
163
167
|
category_title = self.category_title
|
|
164
168
|
|
|
165
169
|
category_uuid = str(self.category_uuid)
|
|
@@ -298,6 +302,7 @@ class OrderCreate:
|
|
|
298
302
|
"offering_plugin_options": offering_plugin_options,
|
|
299
303
|
"provider_name": provider_name,
|
|
300
304
|
"provider_uuid": provider_uuid,
|
|
305
|
+
"provider_slug": provider_slug,
|
|
301
306
|
"category_title": category_title,
|
|
302
307
|
"category_uuid": category_uuid,
|
|
303
308
|
"category_icon": category_icon,
|
|
@@ -379,6 +384,8 @@ class OrderCreate:
|
|
|
379
384
|
|
|
380
385
|
provider_uuid = UUID(d.pop("provider_uuid"))
|
|
381
386
|
|
|
387
|
+
provider_slug = d.pop("provider_slug")
|
|
388
|
+
|
|
382
389
|
category_title = d.pop("category_title")
|
|
383
390
|
|
|
384
391
|
category_uuid = UUID(d.pop("category_uuid"))
|
|
@@ -603,6 +610,7 @@ class OrderCreate:
|
|
|
603
610
|
offering_plugin_options=offering_plugin_options,
|
|
604
611
|
provider_name=provider_name,
|
|
605
612
|
provider_uuid=provider_uuid,
|
|
613
|
+
provider_slug=provider_slug,
|
|
606
614
|
category_title=category_title,
|
|
607
615
|
category_uuid=category_uuid,
|
|
608
616
|
category_icon=category_icon,
|
|
@@ -37,6 +37,7 @@ class OrderDetails:
|
|
|
37
37
|
OpenStack.
|
|
38
38
|
provider_name (Union[Unset, str]):
|
|
39
39
|
provider_uuid (Union[Unset, UUID]):
|
|
40
|
+
provider_slug (Union[Unset, str]):
|
|
40
41
|
category_title (Union[Unset, str]):
|
|
41
42
|
category_uuid (Union[Unset, UUID]):
|
|
42
43
|
category_icon (Union[Unset, str]):
|
|
@@ -98,9 +99,6 @@ class OrderDetails:
|
|
|
98
99
|
activation_price (Union[Unset, float]):
|
|
99
100
|
termination_comment (Union[None, Unset, str]):
|
|
100
101
|
backend_id (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
|
issue (Union['IssueReference', None, Unset]):
|
|
105
103
|
"""
|
|
106
104
|
|
|
@@ -116,6 +114,7 @@ class OrderDetails:
|
|
|
116
114
|
offering_plugin_options: Union[Unset, Any] = UNSET
|
|
117
115
|
provider_name: Union[Unset, str] = UNSET
|
|
118
116
|
provider_uuid: Union[Unset, UUID] = UNSET
|
|
117
|
+
provider_slug: Union[Unset, str] = UNSET
|
|
119
118
|
category_title: Union[Unset, str] = UNSET
|
|
120
119
|
category_uuid: Union[Unset, UUID] = UNSET
|
|
121
120
|
category_icon: Union[Unset, str] = UNSET
|
|
@@ -172,9 +171,6 @@ class OrderDetails:
|
|
|
172
171
|
activation_price: Union[Unset, float] = UNSET
|
|
173
172
|
termination_comment: Union[None, Unset, str] = UNSET
|
|
174
173
|
backend_id: Union[Unset, str] = UNSET
|
|
175
|
-
offering_customer_uuid: Union[Unset, UUID] = UNSET
|
|
176
|
-
offering_customer_name: Union[Unset, str] = UNSET
|
|
177
|
-
offering_customer_slug: Union[Unset, str] = UNSET
|
|
178
174
|
issue: Union["IssueReference", None, Unset] = UNSET
|
|
179
175
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
180
176
|
|
|
@@ -209,6 +205,8 @@ class OrderDetails:
|
|
|
209
205
|
if not isinstance(self.provider_uuid, Unset):
|
|
210
206
|
provider_uuid = str(self.provider_uuid)
|
|
211
207
|
|
|
208
|
+
provider_slug = self.provider_slug
|
|
209
|
+
|
|
212
210
|
category_title = self.category_title
|
|
213
211
|
|
|
214
212
|
category_uuid: Union[Unset, str] = UNSET
|
|
@@ -465,14 +463,6 @@ class OrderDetails:
|
|
|
465
463
|
|
|
466
464
|
backend_id = self.backend_id
|
|
467
465
|
|
|
468
|
-
offering_customer_uuid: Union[Unset, str] = UNSET
|
|
469
|
-
if not isinstance(self.offering_customer_uuid, Unset):
|
|
470
|
-
offering_customer_uuid = str(self.offering_customer_uuid)
|
|
471
|
-
|
|
472
|
-
offering_customer_name = self.offering_customer_name
|
|
473
|
-
|
|
474
|
-
offering_customer_slug = self.offering_customer_slug
|
|
475
|
-
|
|
476
466
|
issue: Union[None, Unset, dict[str, Any]]
|
|
477
467
|
if isinstance(self.issue, Unset):
|
|
478
468
|
issue = UNSET
|
|
@@ -508,6 +498,8 @@ class OrderDetails:
|
|
|
508
498
|
field_dict["provider_name"] = provider_name
|
|
509
499
|
if provider_uuid is not UNSET:
|
|
510
500
|
field_dict["provider_uuid"] = provider_uuid
|
|
501
|
+
if provider_slug is not UNSET:
|
|
502
|
+
field_dict["provider_slug"] = provider_slug
|
|
511
503
|
if category_title is not UNSET:
|
|
512
504
|
field_dict["category_title"] = category_title
|
|
513
505
|
if category_uuid is not UNSET:
|
|
@@ -620,12 +612,6 @@ class OrderDetails:
|
|
|
620
612
|
field_dict["termination_comment"] = termination_comment
|
|
621
613
|
if backend_id is not UNSET:
|
|
622
614
|
field_dict["backend_id"] = backend_id
|
|
623
|
-
if offering_customer_uuid is not UNSET:
|
|
624
|
-
field_dict["offering_customer_uuid"] = offering_customer_uuid
|
|
625
|
-
if offering_customer_name is not UNSET:
|
|
626
|
-
field_dict["offering_customer_name"] = offering_customer_name
|
|
627
|
-
if offering_customer_slug is not UNSET:
|
|
628
|
-
field_dict["offering_customer_slug"] = offering_customer_slug
|
|
629
615
|
if issue is not UNSET:
|
|
630
616
|
field_dict["issue"] = issue
|
|
631
617
|
|
|
@@ -671,6 +657,8 @@ class OrderDetails:
|
|
|
671
657
|
else:
|
|
672
658
|
provider_uuid = UUID(_provider_uuid)
|
|
673
659
|
|
|
660
|
+
provider_slug = d.pop("provider_slug", UNSET)
|
|
661
|
+
|
|
674
662
|
category_title = d.pop("category_title", UNSET)
|
|
675
663
|
|
|
676
664
|
_category_uuid = d.pop("category_uuid", UNSET)
|
|
@@ -1094,17 +1082,6 @@ class OrderDetails:
|
|
|
1094
1082
|
|
|
1095
1083
|
backend_id = d.pop("backend_id", UNSET)
|
|
1096
1084
|
|
|
1097
|
-
_offering_customer_uuid = d.pop("offering_customer_uuid", UNSET)
|
|
1098
|
-
offering_customer_uuid: Union[Unset, UUID]
|
|
1099
|
-
if isinstance(_offering_customer_uuid, Unset):
|
|
1100
|
-
offering_customer_uuid = UNSET
|
|
1101
|
-
else:
|
|
1102
|
-
offering_customer_uuid = UUID(_offering_customer_uuid)
|
|
1103
|
-
|
|
1104
|
-
offering_customer_name = d.pop("offering_customer_name", UNSET)
|
|
1105
|
-
|
|
1106
|
-
offering_customer_slug = d.pop("offering_customer_slug", UNSET)
|
|
1107
|
-
|
|
1108
1085
|
def _parse_issue(data: object) -> Union["IssueReference", None, Unset]:
|
|
1109
1086
|
if data is None:
|
|
1110
1087
|
return data
|
|
@@ -1135,6 +1112,7 @@ class OrderDetails:
|
|
|
1135
1112
|
offering_plugin_options=offering_plugin_options,
|
|
1136
1113
|
provider_name=provider_name,
|
|
1137
1114
|
provider_uuid=provider_uuid,
|
|
1115
|
+
provider_slug=provider_slug,
|
|
1138
1116
|
category_title=category_title,
|
|
1139
1117
|
category_uuid=category_uuid,
|
|
1140
1118
|
category_icon=category_icon,
|
|
@@ -1191,9 +1169,6 @@ class OrderDetails:
|
|
|
1191
1169
|
activation_price=activation_price,
|
|
1192
1170
|
termination_comment=termination_comment,
|
|
1193
1171
|
backend_id=backend_id,
|
|
1194
|
-
offering_customer_uuid=offering_customer_uuid,
|
|
1195
|
-
offering_customer_name=offering_customer_name,
|
|
1196
|
-
offering_customer_slug=offering_customer_slug,
|
|
1197
1172
|
issue=issue,
|
|
1198
1173
|
)
|
|
1199
1174
|
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar, Union
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..models.policy_type_enum import PolicyTypeEnum
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="PatchedNetworkRBACPolicyRequest")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class PatchedNetworkRBACPolicyRequest:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
network (Union[Unset, str]):
|
|
18
|
+
target_tenant (Union[Unset, str]):
|
|
19
|
+
policy_type (Union[Unset, PolicyTypeEnum]): Default: PolicyTypeEnum.ACCESS_AS_SHARED.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
network: Union[Unset, str] = UNSET
|
|
23
|
+
target_tenant: Union[Unset, str] = UNSET
|
|
24
|
+
policy_type: Union[Unset, PolicyTypeEnum] = PolicyTypeEnum.ACCESS_AS_SHARED
|
|
25
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> dict[str, Any]:
|
|
28
|
+
network = self.network
|
|
29
|
+
|
|
30
|
+
target_tenant = self.target_tenant
|
|
31
|
+
|
|
32
|
+
policy_type: Union[Unset, str] = UNSET
|
|
33
|
+
if not isinstance(self.policy_type, Unset):
|
|
34
|
+
policy_type = self.policy_type.value
|
|
35
|
+
|
|
36
|
+
field_dict: dict[str, Any] = {}
|
|
37
|
+
field_dict.update(self.additional_properties)
|
|
38
|
+
field_dict.update({})
|
|
39
|
+
if network is not UNSET:
|
|
40
|
+
field_dict["network"] = network
|
|
41
|
+
if target_tenant is not UNSET:
|
|
42
|
+
field_dict["target_tenant"] = target_tenant
|
|
43
|
+
if policy_type is not UNSET:
|
|
44
|
+
field_dict["policy_type"] = policy_type
|
|
45
|
+
|
|
46
|
+
return field_dict
|
|
47
|
+
|
|
48
|
+
@classmethod
|
|
49
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
50
|
+
d = dict(src_dict)
|
|
51
|
+
network = d.pop("network", UNSET)
|
|
52
|
+
|
|
53
|
+
target_tenant = d.pop("target_tenant", UNSET)
|
|
54
|
+
|
|
55
|
+
_policy_type = d.pop("policy_type", UNSET)
|
|
56
|
+
policy_type: Union[Unset, PolicyTypeEnum]
|
|
57
|
+
if isinstance(_policy_type, Unset):
|
|
58
|
+
policy_type = UNSET
|
|
59
|
+
else:
|
|
60
|
+
policy_type = PolicyTypeEnum(_policy_type)
|
|
61
|
+
|
|
62
|
+
patched_network_rbac_policy_request = cls(
|
|
63
|
+
network=network,
|
|
64
|
+
target_tenant=target_tenant,
|
|
65
|
+
policy_type=policy_type,
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
patched_network_rbac_policy_request.additional_properties = d
|
|
69
|
+
return patched_network_rbac_policy_request
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def additional_keys(self) -> list[str]:
|
|
73
|
+
return list(self.additional_properties.keys())
|
|
74
|
+
|
|
75
|
+
def __getitem__(self, key: str) -> Any:
|
|
76
|
+
return self.additional_properties[key]
|
|
77
|
+
|
|
78
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
79
|
+
self.additional_properties[key] = value
|
|
80
|
+
|
|
81
|
+
def __delitem__(self, key: str) -> None:
|
|
82
|
+
del self.additional_properties[key]
|
|
83
|
+
|
|
84
|
+
def __contains__(self, key: str) -> bool:
|
|
85
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar, Union
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
9
|
+
T = TypeVar("T", bound="PatchedOnboardingJustificationRequest")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class PatchedOnboardingJustificationRequest:
|
|
14
|
+
"""
|
|
15
|
+
Attributes:
|
|
16
|
+
verification (Union[Unset, int]):
|
|
17
|
+
user (Union[Unset, int]):
|
|
18
|
+
user_justification (Union[Unset, str]): User's explanation for why they should be authorized
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
verification: Union[Unset, int] = UNSET
|
|
22
|
+
user: Union[Unset, int] = UNSET
|
|
23
|
+
user_justification: Union[Unset, str] = UNSET
|
|
24
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
25
|
+
|
|
26
|
+
def to_dict(self) -> dict[str, Any]:
|
|
27
|
+
verification = self.verification
|
|
28
|
+
|
|
29
|
+
user = self.user
|
|
30
|
+
|
|
31
|
+
user_justification = self.user_justification
|
|
32
|
+
|
|
33
|
+
field_dict: dict[str, Any] = {}
|
|
34
|
+
field_dict.update(self.additional_properties)
|
|
35
|
+
field_dict.update({})
|
|
36
|
+
if verification is not UNSET:
|
|
37
|
+
field_dict["verification"] = verification
|
|
38
|
+
if user is not UNSET:
|
|
39
|
+
field_dict["user"] = user
|
|
40
|
+
if user_justification is not UNSET:
|
|
41
|
+
field_dict["user_justification"] = user_justification
|
|
42
|
+
|
|
43
|
+
return field_dict
|
|
44
|
+
|
|
45
|
+
@classmethod
|
|
46
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
47
|
+
d = dict(src_dict)
|
|
48
|
+
verification = d.pop("verification", UNSET)
|
|
49
|
+
|
|
50
|
+
user = d.pop("user", UNSET)
|
|
51
|
+
|
|
52
|
+
user_justification = d.pop("user_justification", UNSET)
|
|
53
|
+
|
|
54
|
+
patched_onboarding_justification_request = cls(
|
|
55
|
+
verification=verification,
|
|
56
|
+
user=user,
|
|
57
|
+
user_justification=user_justification,
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
patched_onboarding_justification_request.additional_properties = d
|
|
61
|
+
return patched_onboarding_justification_request
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def additional_keys(self) -> list[str]:
|
|
65
|
+
return list(self.additional_properties.keys())
|
|
66
|
+
|
|
67
|
+
def __getitem__(self, key: str) -> Any:
|
|
68
|
+
return self.additional_properties[key]
|
|
69
|
+
|
|
70
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
71
|
+
self.additional_properties[key] = value
|
|
72
|
+
|
|
73
|
+
def __delitem__(self, key: str) -> None:
|
|
74
|
+
del self.additional_properties[key]
|
|
75
|
+
|
|
76
|
+
def __contains__(self, key: str) -> bool:
|
|
77
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import Any, TypeVar, Union, cast
|
|
4
|
+
|
|
5
|
+
from attrs import define as _attrs_define
|
|
6
|
+
from attrs import field as _attrs_field
|
|
7
|
+
from dateutil.parser import isoparse
|
|
8
|
+
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="PatchedOnboardingVerificationRequest")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@_attrs_define
|
|
15
|
+
class PatchedOnboardingVerificationRequest:
|
|
16
|
+
"""
|
|
17
|
+
Attributes:
|
|
18
|
+
user (Union[Unset, int]): User requesting company onboarding
|
|
19
|
+
country (Union[Unset, str]): ISO country code (e.g., 'EE' for Estonia)
|
|
20
|
+
legal_person_identifier (Union[Unset, str]): Official company registration code
|
|
21
|
+
legal_name (Union[Unset, str]): Claimed company name (optional, for reference)
|
|
22
|
+
user_submitted_customer_metadata (Union[Unset, Any]): Additional customer metadata submitted by user for manual
|
|
23
|
+
verification cases. Should contain valid Customer model fields.
|
|
24
|
+
expires_at (Union[None, Unset, datetime.datetime]): When this verification expires
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
user: Union[Unset, int] = UNSET
|
|
28
|
+
country: Union[Unset, str] = UNSET
|
|
29
|
+
legal_person_identifier: Union[Unset, str] = UNSET
|
|
30
|
+
legal_name: Union[Unset, str] = UNSET
|
|
31
|
+
user_submitted_customer_metadata: Union[Unset, Any] = UNSET
|
|
32
|
+
expires_at: Union[None, Unset, datetime.datetime] = UNSET
|
|
33
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
34
|
+
|
|
35
|
+
def to_dict(self) -> dict[str, Any]:
|
|
36
|
+
user = self.user
|
|
37
|
+
|
|
38
|
+
country = self.country
|
|
39
|
+
|
|
40
|
+
legal_person_identifier = self.legal_person_identifier
|
|
41
|
+
|
|
42
|
+
legal_name = self.legal_name
|
|
43
|
+
|
|
44
|
+
user_submitted_customer_metadata = self.user_submitted_customer_metadata
|
|
45
|
+
|
|
46
|
+
expires_at: Union[None, Unset, str]
|
|
47
|
+
if isinstance(self.expires_at, Unset):
|
|
48
|
+
expires_at = UNSET
|
|
49
|
+
elif isinstance(self.expires_at, datetime.datetime):
|
|
50
|
+
expires_at = self.expires_at.isoformat()
|
|
51
|
+
else:
|
|
52
|
+
expires_at = self.expires_at
|
|
53
|
+
|
|
54
|
+
field_dict: dict[str, Any] = {}
|
|
55
|
+
field_dict.update(self.additional_properties)
|
|
56
|
+
field_dict.update({})
|
|
57
|
+
if user is not UNSET:
|
|
58
|
+
field_dict["user"] = user
|
|
59
|
+
if country is not UNSET:
|
|
60
|
+
field_dict["country"] = country
|
|
61
|
+
if legal_person_identifier is not UNSET:
|
|
62
|
+
field_dict["legal_person_identifier"] = legal_person_identifier
|
|
63
|
+
if legal_name is not UNSET:
|
|
64
|
+
field_dict["legal_name"] = legal_name
|
|
65
|
+
if user_submitted_customer_metadata is not UNSET:
|
|
66
|
+
field_dict["user_submitted_customer_metadata"] = user_submitted_customer_metadata
|
|
67
|
+
if expires_at is not UNSET:
|
|
68
|
+
field_dict["expires_at"] = expires_at
|
|
69
|
+
|
|
70
|
+
return field_dict
|
|
71
|
+
|
|
72
|
+
@classmethod
|
|
73
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
74
|
+
d = dict(src_dict)
|
|
75
|
+
user = d.pop("user", UNSET)
|
|
76
|
+
|
|
77
|
+
country = d.pop("country", UNSET)
|
|
78
|
+
|
|
79
|
+
legal_person_identifier = d.pop("legal_person_identifier", UNSET)
|
|
80
|
+
|
|
81
|
+
legal_name = d.pop("legal_name", UNSET)
|
|
82
|
+
|
|
83
|
+
user_submitted_customer_metadata = d.pop("user_submitted_customer_metadata", UNSET)
|
|
84
|
+
|
|
85
|
+
def _parse_expires_at(data: object) -> Union[None, Unset, datetime.datetime]:
|
|
86
|
+
if data is None:
|
|
87
|
+
return data
|
|
88
|
+
if isinstance(data, Unset):
|
|
89
|
+
return data
|
|
90
|
+
try:
|
|
91
|
+
if not isinstance(data, str):
|
|
92
|
+
raise TypeError()
|
|
93
|
+
expires_at_type_0 = isoparse(data)
|
|
94
|
+
|
|
95
|
+
return expires_at_type_0
|
|
96
|
+
except: # noqa: E722
|
|
97
|
+
pass
|
|
98
|
+
return cast(Union[None, Unset, datetime.datetime], data)
|
|
99
|
+
|
|
100
|
+
expires_at = _parse_expires_at(d.pop("expires_at", UNSET))
|
|
101
|
+
|
|
102
|
+
patched_onboarding_verification_request = cls(
|
|
103
|
+
user=user,
|
|
104
|
+
country=country,
|
|
105
|
+
legal_person_identifier=legal_person_identifier,
|
|
106
|
+
legal_name=legal_name,
|
|
107
|
+
user_submitted_customer_metadata=user_submitted_customer_metadata,
|
|
108
|
+
expires_at=expires_at,
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
patched_onboarding_verification_request.additional_properties = d
|
|
112
|
+
return patched_onboarding_verification_request
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
def additional_keys(self) -> list[str]:
|
|
116
|
+
return list(self.additional_properties.keys())
|
|
117
|
+
|
|
118
|
+
def __getitem__(self, key: str) -> Any:
|
|
119
|
+
return self.additional_properties[key]
|
|
120
|
+
|
|
121
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
122
|
+
self.additional_properties[key] = value
|
|
123
|
+
|
|
124
|
+
def __delitem__(self, key: str) -> None:
|
|
125
|
+
del self.additional_properties[key]
|
|
126
|
+
|
|
127
|
+
def __contains__(self, key: str) -> bool:
|
|
128
|
+
return key in self.additional_properties
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
from collections.abc import Mapping
|
|
2
|
-
from typing import
|
|
2
|
+
from typing import Any, TypeVar, Union
|
|
3
3
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
|
|
7
7
|
from ..types import UNSET, Unset
|
|
8
8
|
|
|
9
|
-
if TYPE_CHECKING:
|
|
10
|
-
from ..models.open_stack_data_volume_request import OpenStackDataVolumeRequest
|
|
11
|
-
|
|
12
|
-
|
|
13
9
|
T = TypeVar("T", bound="PatchedOpenStackInstanceRequest")
|
|
14
10
|
|
|
15
11
|
|
|
@@ -19,17 +15,10 @@ class PatchedOpenStackInstanceRequest:
|
|
|
19
15
|
Attributes:
|
|
20
16
|
name (Union[Unset, str]):
|
|
21
17
|
description (Union[Unset, str]):
|
|
22
|
-
system_volume_type (Union[None, Unset, str]): Volume type for the system volume
|
|
23
|
-
data_volume_type (Union[None, Unset, str]): Volume type for the data volume
|
|
24
|
-
data_volumes (Union[Unset, list['OpenStackDataVolumeRequest']]): Additional data volumes to attach to the
|
|
25
|
-
instance
|
|
26
18
|
"""
|
|
27
19
|
|
|
28
20
|
name: Union[Unset, str] = UNSET
|
|
29
21
|
description: Union[Unset, str] = UNSET
|
|
30
|
-
system_volume_type: Union[None, Unset, str] = UNSET
|
|
31
|
-
data_volume_type: Union[None, Unset, str] = UNSET
|
|
32
|
-
data_volumes: Union[Unset, list["OpenStackDataVolumeRequest"]] = UNSET
|
|
33
22
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
34
23
|
|
|
35
24
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -37,25 +26,6 @@ class PatchedOpenStackInstanceRequest:
|
|
|
37
26
|
|
|
38
27
|
description = self.description
|
|
39
28
|
|
|
40
|
-
system_volume_type: Union[None, Unset, str]
|
|
41
|
-
if isinstance(self.system_volume_type, Unset):
|
|
42
|
-
system_volume_type = UNSET
|
|
43
|
-
else:
|
|
44
|
-
system_volume_type = self.system_volume_type
|
|
45
|
-
|
|
46
|
-
data_volume_type: Union[None, Unset, str]
|
|
47
|
-
if isinstance(self.data_volume_type, Unset):
|
|
48
|
-
data_volume_type = UNSET
|
|
49
|
-
else:
|
|
50
|
-
data_volume_type = self.data_volume_type
|
|
51
|
-
|
|
52
|
-
data_volumes: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
53
|
-
if not isinstance(self.data_volumes, Unset):
|
|
54
|
-
data_volumes = []
|
|
55
|
-
for data_volumes_item_data in self.data_volumes:
|
|
56
|
-
data_volumes_item = data_volumes_item_data.to_dict()
|
|
57
|
-
data_volumes.append(data_volumes_item)
|
|
58
|
-
|
|
59
29
|
field_dict: dict[str, Any] = {}
|
|
60
30
|
field_dict.update(self.additional_properties)
|
|
61
31
|
field_dict.update({})
|
|
@@ -63,55 +33,19 @@ class PatchedOpenStackInstanceRequest:
|
|
|
63
33
|
field_dict["name"] = name
|
|
64
34
|
if description is not UNSET:
|
|
65
35
|
field_dict["description"] = description
|
|
66
|
-
if system_volume_type is not UNSET:
|
|
67
|
-
field_dict["system_volume_type"] = system_volume_type
|
|
68
|
-
if data_volume_type is not UNSET:
|
|
69
|
-
field_dict["data_volume_type"] = data_volume_type
|
|
70
|
-
if data_volumes is not UNSET:
|
|
71
|
-
field_dict["data_volumes"] = data_volumes
|
|
72
36
|
|
|
73
37
|
return field_dict
|
|
74
38
|
|
|
75
39
|
@classmethod
|
|
76
40
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
77
|
-
from ..models.open_stack_data_volume_request import OpenStackDataVolumeRequest
|
|
78
|
-
|
|
79
41
|
d = dict(src_dict)
|
|
80
42
|
name = d.pop("name", UNSET)
|
|
81
43
|
|
|
82
44
|
description = d.pop("description", UNSET)
|
|
83
45
|
|
|
84
|
-
def _parse_system_volume_type(data: object) -> Union[None, Unset, str]:
|
|
85
|
-
if data is None:
|
|
86
|
-
return data
|
|
87
|
-
if isinstance(data, Unset):
|
|
88
|
-
return data
|
|
89
|
-
return cast(Union[None, Unset, str], data)
|
|
90
|
-
|
|
91
|
-
system_volume_type = _parse_system_volume_type(d.pop("system_volume_type", UNSET))
|
|
92
|
-
|
|
93
|
-
def _parse_data_volume_type(data: object) -> Union[None, Unset, str]:
|
|
94
|
-
if data is None:
|
|
95
|
-
return data
|
|
96
|
-
if isinstance(data, Unset):
|
|
97
|
-
return data
|
|
98
|
-
return cast(Union[None, Unset, str], data)
|
|
99
|
-
|
|
100
|
-
data_volume_type = _parse_data_volume_type(d.pop("data_volume_type", UNSET))
|
|
101
|
-
|
|
102
|
-
data_volumes = []
|
|
103
|
-
_data_volumes = d.pop("data_volumes", UNSET)
|
|
104
|
-
for data_volumes_item_data in _data_volumes or []:
|
|
105
|
-
data_volumes_item = OpenStackDataVolumeRequest.from_dict(data_volumes_item_data)
|
|
106
|
-
|
|
107
|
-
data_volumes.append(data_volumes_item)
|
|
108
|
-
|
|
109
46
|
patched_open_stack_instance_request = cls(
|
|
110
47
|
name=name,
|
|
111
48
|
description=description,
|
|
112
|
-
system_volume_type=system_volume_type,
|
|
113
|
-
data_volume_type=data_volume_type,
|
|
114
|
-
data_volumes=data_volumes,
|
|
115
49
|
)
|
|
116
50
|
|
|
117
51
|
patched_open_stack_instance_request.additional_properties = d
|
|
@@ -23,6 +23,7 @@ class PatchedProjectCreditRequest:
|
|
|
23
23
|
minimal_consumption_logic (Union[Unset, MinimalConsumptionLogicEnum]):
|
|
24
24
|
grace_coefficient (Union[Unset, str]):
|
|
25
25
|
apply_as_minimal_consumption (Union[Unset, bool]):
|
|
26
|
+
mark_unused_credit_as_spent_on_project_termination (Union[Unset, bool]):
|
|
26
27
|
"""
|
|
27
28
|
|
|
28
29
|
value: Union[Unset, str] = UNSET
|
|
@@ -32,6 +33,7 @@ class PatchedProjectCreditRequest:
|
|
|
32
33
|
minimal_consumption_logic: Union[Unset, MinimalConsumptionLogicEnum] = UNSET
|
|
33
34
|
grace_coefficient: Union[Unset, str] = UNSET
|
|
34
35
|
apply_as_minimal_consumption: Union[Unset, bool] = UNSET
|
|
36
|
+
mark_unused_credit_as_spent_on_project_termination: Union[Unset, bool] = UNSET
|
|
35
37
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
36
38
|
|
|
37
39
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -57,6 +59,8 @@ class PatchedProjectCreditRequest:
|
|
|
57
59
|
|
|
58
60
|
apply_as_minimal_consumption = self.apply_as_minimal_consumption
|
|
59
61
|
|
|
62
|
+
mark_unused_credit_as_spent_on_project_termination = self.mark_unused_credit_as_spent_on_project_termination
|
|
63
|
+
|
|
60
64
|
field_dict: dict[str, Any] = {}
|
|
61
65
|
field_dict.update(self.additional_properties)
|
|
62
66
|
field_dict.update({})
|
|
@@ -74,6 +78,10 @@ class PatchedProjectCreditRequest:
|
|
|
74
78
|
field_dict["grace_coefficient"] = grace_coefficient
|
|
75
79
|
if apply_as_minimal_consumption is not UNSET:
|
|
76
80
|
field_dict["apply_as_minimal_consumption"] = apply_as_minimal_consumption
|
|
81
|
+
if mark_unused_credit_as_spent_on_project_termination is not UNSET:
|
|
82
|
+
field_dict["mark_unused_credit_as_spent_on_project_termination"] = (
|
|
83
|
+
mark_unused_credit_as_spent_on_project_termination
|
|
84
|
+
)
|
|
77
85
|
|
|
78
86
|
return field_dict
|
|
79
87
|
|
|
@@ -114,6 +122,10 @@ class PatchedProjectCreditRequest:
|
|
|
114
122
|
|
|
115
123
|
apply_as_minimal_consumption = d.pop("apply_as_minimal_consumption", UNSET)
|
|
116
124
|
|
|
125
|
+
mark_unused_credit_as_spent_on_project_termination = d.pop(
|
|
126
|
+
"mark_unused_credit_as_spent_on_project_termination", UNSET
|
|
127
|
+
)
|
|
128
|
+
|
|
117
129
|
patched_project_credit_request = cls(
|
|
118
130
|
value=value,
|
|
119
131
|
project=project,
|
|
@@ -122,6 +134,7 @@ class PatchedProjectCreditRequest:
|
|
|
122
134
|
minimal_consumption_logic=minimal_consumption_logic,
|
|
123
135
|
grace_coefficient=grace_coefficient,
|
|
124
136
|
apply_as_minimal_consumption=apply_as_minimal_consumption,
|
|
137
|
+
mark_unused_credit_as_spent_on_project_termination=mark_unused_credit_as_spent_on_project_termination,
|
|
125
138
|
)
|
|
126
139
|
|
|
127
140
|
patched_project_credit_request.additional_properties = d
|
|
@@ -27,8 +27,7 @@ class PatchedProjectRequest:
|
|
|
27
27
|
type_ (Union[None, Unset, str]):
|
|
28
28
|
backend_id (Union[Unset, str]):
|
|
29
29
|
start_date (Union[None, Unset, datetime.date]):
|
|
30
|
-
end_date (Union[None, Unset, datetime.date]):
|
|
31
|
-
scheduled for termination.
|
|
30
|
+
end_date (Union[None, Unset, datetime.date]):
|
|
32
31
|
oecd_fos_2007_code (Union[BlankEnum, None, OecdFos2007CodeEnum, Unset]):
|
|
33
32
|
is_industry (Union[Unset, bool]):
|
|
34
33
|
image (Union[File, None, Unset]):
|
|
@@ -27,8 +27,7 @@ class PatchedProjectRequestForm:
|
|
|
27
27
|
type_ (Union[None, Unset, str]):
|
|
28
28
|
backend_id (Union[Unset, str]):
|
|
29
29
|
start_date (Union[None, Unset, datetime.date]):
|
|
30
|
-
end_date (Union[None, Unset, datetime.date]):
|
|
31
|
-
scheduled for termination.
|
|
30
|
+
end_date (Union[None, Unset, datetime.date]):
|
|
32
31
|
oecd_fos_2007_code (Union[BlankEnum, None, OecdFos2007CodeEnum, Unset]):
|
|
33
32
|
is_industry (Union[Unset, bool]):
|
|
34
33
|
image (Union[File, None, Unset]):
|