waldur-api-client 7.8.1__py3-none-any.whl → 7.8.3__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 +10 -13
- waldur_api_client/api/booking_resources/booking_resources_list.py +10 -13
- waldur_api_client/api/call_managing_organisations/call_managing_organisations_create.py +44 -7
- waldur_api_client/api/call_managing_organisations/call_managing_organisations_partial_update.py +46 -7
- waldur_api_client/api/call_managing_organisations/call_managing_organisations_update.py +44 -7
- waldur_api_client/api/checklists_admin/checklists_admin_checklist_questions.py +49 -0
- waldur_api_client/api/checklists_admin/checklists_admin_count.py +43 -0
- waldur_api_client/api/checklists_admin/checklists_admin_list.py +43 -0
- waldur_api_client/api/checklists_admin_categories/checklists_admin_categories_create.py +44 -7
- waldur_api_client/api/checklists_admin_categories/checklists_admin_categories_partial_update.py +44 -7
- waldur_api_client/api/checklists_admin_categories/checklists_admin_categories_update.py +44 -7
- waldur_api_client/api/customers/customers_create.py +44 -7
- waldur_api_client/api/customers/customers_partial_update.py +44 -7
- waldur_api_client/api/customers/customers_update.py +44 -7
- waldur_api_client/api/external_links/external_links_create.py +44 -7
- waldur_api_client/api/external_links/external_links_partial_update.py +44 -7
- waldur_api_client/api/external_links/external_links_update.py +44 -7
- waldur_api_client/api/invoices/invoices_paid.py +44 -7
- waldur_api_client/api/marketplace_categories/marketplace_categories_create.py +44 -7
- waldur_api_client/api/marketplace_categories/marketplace_categories_partial_update.py +44 -7
- waldur_api_client/api/marketplace_categories/marketplace_categories_update.py +44 -7
- waldur_api_client/api/marketplace_category_groups/marketplace_category_groups_create.py +44 -7
- waldur_api_client/api/marketplace_category_groups/marketplace_category_groups_partial_update.py +44 -7
- waldur_api_client/api/marketplace_category_groups/marketplace_category_groups_update.py +44 -7
- waldur_api_client/api/marketplace_offering_files/marketplace_offering_files_create.py +44 -7
- waldur_api_client/api/marketplace_orders/marketplace_orders_update_attachment.py +44 -7
- 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_create.py +44 -7
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_image.py +44 -7
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_thumbnail.py +30 -5
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_count.py +10 -13
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +10 -13
- waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_move_resource.py +22 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_count.py +10 -13
- waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +10 -13
- waldur_api_client/api/marketplace_resources/marketplace_resources_move_resource.py +22 -0
- waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_create.py +44 -7
- waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_update.py +44 -7
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_create.py +44 -7
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_partial_update.py +44 -7
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_update.py +44 -7
- waldur_api_client/api/openstack_backups/openstack_backups_restore.py +10 -10
- waldur_api_client/api/override_settings/override_settings.py +30 -5
- waldur_api_client/api/payments/payments_create.py +44 -7
- waldur_api_client/api/payments/payments_partial_update.py +44 -7
- waldur_api_client/api/payments/payments_update.py +44 -7
- waldur_api_client/api/projects/projects_create.py +44 -7
- waldur_api_client/api/projects/projects_partial_update.py +44 -7
- waldur_api_client/api/projects/projects_update.py +44 -7
- waldur_api_client/api/proposal_proposals/proposal_proposals_attach_document.py +30 -5
- waldur_api_client/api/rancher_services/rancher_services_create.py +22 -22
- waldur_api_client/api/slurm_jobs/slurm_jobs_create.py +44 -7
- waldur_api_client/api/slurm_jobs/slurm_jobs_update.py +44 -7
- waldur_api_client/api/support_attachments/support_attachments_create.py +44 -7
- waldur_api_client/api/user_group_invitations/user_group_invitations_count.py +15 -0
- waldur_api_client/api/user_group_invitations/user_group_invitations_list.py +15 -0
- waldur_api_client/api/users/users_create.py +44 -7
- waldur_api_client/api/users/users_partial_update.py +44 -7
- waldur_api_client/api/users/users_update.py +44 -7
- waldur_api_client/models/__init__.py +172 -8
- waldur_api_client/models/agent_type_enum.py +13 -0
- waldur_api_client/models/attachment_request_form.py +70 -0
- waldur_api_client/models/attachment_request_multipart.py +83 -0
- 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_offerings_list_field_item.py +1 -0
- waldur_api_client/models/booking_offerings_retrieve_field_item.py +1 -0
- waldur_api_client/models/booking_resource.py +16 -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_managing_organisation_request_form.py +103 -0
- waldur_api_client/models/call_managing_organisation_request_multipart.py +122 -0
- waldur_api_client/models/call_round.py +11 -1
- waldur_api_client/models/category_group_request_form.py +103 -0
- waldur_api_client/models/category_group_request_multipart.py +122 -0
- waldur_api_client/models/checklist_category_request_form.py +103 -0
- waldur_api_client/models/checklist_category_request_multipart.py +122 -0
- waldur_api_client/models/checklists_admin_checklist_questions_checklist_type.py +11 -0
- waldur_api_client/models/checklists_admin_checklist_questions_checklist_type_in_item.py +11 -0
- waldur_api_client/models/checklists_admin_count_checklist_type.py +11 -0
- waldur_api_client/models/checklists_admin_count_checklist_type_in_item.py +11 -0
- waldur_api_client/models/checklists_admin_list_checklist_type.py +11 -0
- waldur_api_client/models/checklists_admin_list_checklist_type_in_item.py +11 -0
- waldur_api_client/models/constance_settings.py +18 -0
- waldur_api_client/models/constance_settings_request.py +18 -0
- waldur_api_client/models/constance_settings_request_form.py +1556 -0
- waldur_api_client/models/constance_settings_request_multipart.py +2187 -0
- waldur_api_client/models/customer.py +9 -0
- waldur_api_client/models/customer_request.py +9 -0
- waldur_api_client/models/customer_request_form.py +312 -0
- waldur_api_client/models/customer_request_multipart.py +394 -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/event_groups_enum.py +1 -0
- waldur_api_client/models/event_types_enum.py +2 -0
- waldur_api_client/models/external_link_request_form.py +111 -0
- waldur_api_client/models/external_link_request_multipart.py +132 -0
- waldur_api_client/models/firecrest_job_request_form.py +104 -0
- waldur_api_client/models/firecrest_job_request_multipart.py +127 -0
- waldur_api_client/models/generic_order_attributes.py +1 -2
- waldur_api_client/models/integration_status.py +21 -4
- 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_category_request_form.py +153 -0
- waldur_api_client/models/marketplace_category_request_multipart.py +187 -0
- 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_offerings_list_course_accounts_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_list_customer_service_accounts_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_list_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_list_project_service_accounts_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_stats_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_provider_offerings_user_has_resource_access_retrieve_field_item.py +1 -0
- 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_public_offerings_list_field_item.py +1 -0
- waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +1 -0
- 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_offerings_list_field_item.py +1 -0
- waldur_api_client/models/merged_plugin_options.py +9 -0
- waldur_api_client/models/merged_plugin_options_request.py +9 -0
- waldur_api_client/models/move_resource_request.py +65 -0
- waldur_api_client/models/nested_round.py +9 -0
- waldur_api_client/models/nested_round_request.py +9 -0
- waldur_api_client/models/offering.py +20 -0
- waldur_api_client/models/offering_create.py +20 -0
- waldur_api_client/models/offering_create_request.py +20 -0
- waldur_api_client/models/offering_create_request_form.py +479 -0
- waldur_api_client/models/offering_create_request_form_limits.py +57 -0
- waldur_api_client/models/offering_create_request_multipart.py +599 -0
- waldur_api_client/models/offering_create_request_multipart_limits.py +57 -0
- waldur_api_client/models/offering_file_request_form.py +78 -0
- waldur_api_client/models/offering_file_request_multipart.py +93 -0
- waldur_api_client/models/offering_image_request_form.py +62 -0
- waldur_api_client/models/offering_image_request_multipart.py +73 -0
- waldur_api_client/models/offering_thumbnail_request_form.py +62 -0
- waldur_api_client/models/offering_thumbnail_request_multipart.py +73 -0
- waldur_api_client/models/offering_user.py +5 -5
- waldur_api_client/models/{offering_user_state_enum.py → offering_user_state.py} +1 -1
- 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_nested_security_group_request.py → open_stack_create_floating_ip_request.py} +17 -6
- 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_security_group_hyperlink_request.py +59 -0
- 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_attachment_request_form.py +84 -0
- waldur_api_client/models/order_attachment_request_multipart.py +98 -0
- waldur_api_client/models/order_create.py +8 -0
- waldur_api_client/models/order_details.py +16 -34
- waldur_api_client/models/paid_request_form.py +81 -0
- waldur_api_client/models/paid_request_multipart.py +94 -0
- waldur_api_client/models/patched_call_managing_organisation_request_form.py +92 -0
- waldur_api_client/models/patched_call_managing_organisation_request_multipart.py +109 -0
- waldur_api_client/models/patched_category_group_request_form.py +101 -0
- waldur_api_client/models/patched_category_group_request_multipart.py +121 -0
- waldur_api_client/models/patched_checklist_category_request_form.py +102 -0
- waldur_api_client/models/patched_checklist_category_request_multipart.py +122 -0
- waldur_api_client/models/patched_customer_request.py +9 -0
- waldur_api_client/models/patched_customer_request_form.py +310 -0
- waldur_api_client/models/patched_customer_request_multipart.py +393 -0
- waldur_api_client/models/patched_external_link_request_form.py +110 -0
- waldur_api_client/models/patched_external_link_request_multipart.py +133 -0
- waldur_api_client/models/patched_marketplace_category_request_form.py +151 -0
- waldur_api_client/models/patched_marketplace_category_request_multipart.py +186 -0
- waldur_api_client/models/patched_open_stack_instance_request.py +1 -67
- waldur_api_client/models/patched_payment_request_form.py +119 -0
- waldur_api_client/models/patched_payment_request_multipart.py +142 -0
- waldur_api_client/models/patched_project_request_form.py +279 -0
- waldur_api_client/models/patched_project_request_multipart.py +342 -0
- waldur_api_client/models/patched_service_provider_request_form.py +101 -0
- waldur_api_client/models/patched_service_provider_request_multipart.py +121 -0
- waldur_api_client/models/patched_user_request_form.py +241 -0
- waldur_api_client/models/patched_user_request_multipart.py +306 -0
- waldur_api_client/models/payment_request_form.py +113 -0
- waldur_api_client/models/payment_request_multipart.py +134 -0
- waldur_api_client/models/{rancher_nested_security_group.py → project_hyperlink_request.py} +5 -5
- waldur_api_client/models/project_request_form.py +280 -0
- waldur_api_client/models/project_request_multipart.py +341 -0
- waldur_api_client/models/project_user.py +9 -0
- waldur_api_client/models/proposal.py +8 -0
- waldur_api_client/models/proposal_documentation_request_form.py +84 -0
- waldur_api_client/models/proposal_documentation_request_multipart.py +98 -0
- waldur_api_client/models/proposal_proposals_count_o_item.py +3 -1
- waldur_api_client/models/proposal_proposals_list_o_item.py +3 -1
- waldur_api_client/models/proposal_review.py +40 -0
- waldur_api_client/models/protected_proposal_list.py +8 -0
- waldur_api_client/models/protected_proposal_list_request.py +8 -0
- waldur_api_client/models/protected_round.py +8 -0
- waldur_api_client/models/provider_offering.py +21 -1
- waldur_api_client/models/provider_offering_details.py +20 -0
- waldur_api_client/models/public_offering_details.py +20 -0
- 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 +16 -34
- waldur_api_client/models/robot_account_details.py +22 -13
- waldur_api_client/models/screenshot_request_form.py +87 -0
- waldur_api_client/models/screenshot_request_multipart.py +105 -0
- waldur_api_client/models/service_provider_request_form.py +112 -0
- waldur_api_client/models/service_provider_request_multipart.py +134 -0
- waldur_api_client/models/slurm_invoices_slurm_package_create_order_attributes.py +4 -9
- waldur_api_client/models/user_request_form.py +250 -0
- waldur_api_client/models/user_request_multipart.py +316 -0
- waldur_api_client/models/v_mware_virtual_machine_create_order_attributes.py +11 -16
- 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.1.dist-info → waldur_api_client-7.8.3.dist-info}/METADATA +1 -1
- {waldur_api_client-7.8.1.dist-info → waldur_api_client-7.8.3.dist-info}/RECORD +233 -153
- waldur_api_client/models/open_stack_data_volume.py +0 -81
- {waldur_api_client-7.8.1.dist-info → waldur_api_client-7.8.3.dist-info}/WHEEL +0 -0
- {waldur_api_client-7.8.1.dist-info → waldur_api_client-7.8.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -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="OpenStackInstanceRequest")
|
|
14
10
|
|
|
15
11
|
|
|
@@ -19,17 +15,10 @@ class OpenStackInstanceRequest:
|
|
|
19
15
|
Attributes:
|
|
20
16
|
name (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: str
|
|
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 OpenStackInstanceRequest:
|
|
|
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(
|
|
@@ -65,55 +35,19 @@ class OpenStackInstanceRequest:
|
|
|
65
35
|
)
|
|
66
36
|
if description is not UNSET:
|
|
67
37
|
field_dict["description"] = description
|
|
68
|
-
if system_volume_type is not UNSET:
|
|
69
|
-
field_dict["system_volume_type"] = system_volume_type
|
|
70
|
-
if data_volume_type is not UNSET:
|
|
71
|
-
field_dict["data_volume_type"] = data_volume_type
|
|
72
|
-
if data_volumes is not UNSET:
|
|
73
|
-
field_dict["data_volumes"] = data_volumes
|
|
74
38
|
|
|
75
39
|
return field_dict
|
|
76
40
|
|
|
77
41
|
@classmethod
|
|
78
42
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
79
|
-
from ..models.open_stack_data_volume_request import OpenStackDataVolumeRequest
|
|
80
|
-
|
|
81
43
|
d = dict(src_dict)
|
|
82
44
|
name = d.pop("name")
|
|
83
45
|
|
|
84
46
|
description = d.pop("description", UNSET)
|
|
85
47
|
|
|
86
|
-
def _parse_system_volume_type(data: object) -> Union[None, Unset, str]:
|
|
87
|
-
if data is None:
|
|
88
|
-
return data
|
|
89
|
-
if isinstance(data, Unset):
|
|
90
|
-
return data
|
|
91
|
-
return cast(Union[None, Unset, str], data)
|
|
92
|
-
|
|
93
|
-
system_volume_type = _parse_system_volume_type(d.pop("system_volume_type", UNSET))
|
|
94
|
-
|
|
95
|
-
def _parse_data_volume_type(data: object) -> Union[None, Unset, str]:
|
|
96
|
-
if data is None:
|
|
97
|
-
return data
|
|
98
|
-
if isinstance(data, Unset):
|
|
99
|
-
return data
|
|
100
|
-
return cast(Union[None, Unset, str], data)
|
|
101
|
-
|
|
102
|
-
data_volume_type = _parse_data_volume_type(d.pop("data_volume_type", UNSET))
|
|
103
|
-
|
|
104
|
-
data_volumes = []
|
|
105
|
-
_data_volumes = d.pop("data_volumes", UNSET)
|
|
106
|
-
for data_volumes_item_data in _data_volumes or []:
|
|
107
|
-
data_volumes_item = OpenStackDataVolumeRequest.from_dict(data_volumes_item_data)
|
|
108
|
-
|
|
109
|
-
data_volumes.append(data_volumes_item)
|
|
110
|
-
|
|
111
48
|
open_stack_instance_request = cls(
|
|
112
49
|
name=name,
|
|
113
50
|
description=description,
|
|
114
|
-
system_volume_type=system_volume_type,
|
|
115
|
-
data_volume_type=data_volume_type,
|
|
116
|
-
data_volumes=data_volumes,
|
|
117
51
|
)
|
|
118
52
|
|
|
119
53
|
open_stack_instance_request.additional_properties = d
|
|
@@ -19,12 +19,10 @@ class OpenStackNestedPortRequest:
|
|
|
19
19
|
Attributes:
|
|
20
20
|
fixed_ips (Union[Unset, list['OpenStackFixedIpRequest']]):
|
|
21
21
|
subnet (Union[None, Unset, str]): Subnet to which this port belongs
|
|
22
|
-
port (Union[Unset, str]):
|
|
23
22
|
"""
|
|
24
23
|
|
|
25
24
|
fixed_ips: Union[Unset, list["OpenStackFixedIpRequest"]] = UNSET
|
|
26
25
|
subnet: Union[None, Unset, str] = UNSET
|
|
27
|
-
port: Union[Unset, str] = UNSET
|
|
28
26
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
29
27
|
|
|
30
28
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -41,8 +39,6 @@ class OpenStackNestedPortRequest:
|
|
|
41
39
|
else:
|
|
42
40
|
subnet = self.subnet
|
|
43
41
|
|
|
44
|
-
port = self.port
|
|
45
|
-
|
|
46
42
|
field_dict: dict[str, Any] = {}
|
|
47
43
|
field_dict.update(self.additional_properties)
|
|
48
44
|
field_dict.update({})
|
|
@@ -50,8 +46,6 @@ class OpenStackNestedPortRequest:
|
|
|
50
46
|
field_dict["fixed_ips"] = fixed_ips
|
|
51
47
|
if subnet is not UNSET:
|
|
52
48
|
field_dict["subnet"] = subnet
|
|
53
|
-
if port is not UNSET:
|
|
54
|
-
field_dict["port"] = port
|
|
55
49
|
|
|
56
50
|
return field_dict
|
|
57
51
|
|
|
@@ -76,12 +70,9 @@ class OpenStackNestedPortRequest:
|
|
|
76
70
|
|
|
77
71
|
subnet = _parse_subnet(d.pop("subnet", UNSET))
|
|
78
72
|
|
|
79
|
-
port = d.pop("port", UNSET)
|
|
80
|
-
|
|
81
73
|
open_stack_nested_port_request = cls(
|
|
82
74
|
fixed_ips=fixed_ips,
|
|
83
75
|
subnet=subnet,
|
|
84
|
-
port=port,
|
|
85
76
|
)
|
|
86
77
|
|
|
87
78
|
open_stack_nested_port_request.additional_properties = d
|
|
@@ -0,0 +1,59 @@
|
|
|
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="OpenStackSecurityGroupHyperlinkRequest")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class OpenStackSecurityGroupHyperlinkRequest:
|
|
12
|
+
"""
|
|
13
|
+
Attributes:
|
|
14
|
+
url (str):
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
url: str
|
|
18
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
19
|
+
|
|
20
|
+
def to_dict(self) -> dict[str, Any]:
|
|
21
|
+
url = self.url
|
|
22
|
+
|
|
23
|
+
field_dict: dict[str, Any] = {}
|
|
24
|
+
field_dict.update(self.additional_properties)
|
|
25
|
+
field_dict.update(
|
|
26
|
+
{
|
|
27
|
+
"url": url,
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
return field_dict
|
|
32
|
+
|
|
33
|
+
@classmethod
|
|
34
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
35
|
+
d = dict(src_dict)
|
|
36
|
+
url = d.pop("url")
|
|
37
|
+
|
|
38
|
+
open_stack_security_group_hyperlink_request = cls(
|
|
39
|
+
url=url,
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
open_stack_security_group_hyperlink_request.additional_properties = d
|
|
43
|
+
return open_stack_security_group_hyperlink_request
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def additional_keys(self) -> list[str]:
|
|
47
|
+
return list(self.additional_properties.keys())
|
|
48
|
+
|
|
49
|
+
def __getitem__(self, key: str) -> Any:
|
|
50
|
+
return self.additional_properties[key]
|
|
51
|
+
|
|
52
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
53
|
+
self.additional_properties[key] = value
|
|
54
|
+
|
|
55
|
+
def __delitem__(self, key: str) -> None:
|
|
56
|
+
del self.additional_properties[key]
|
|
57
|
+
|
|
58
|
+
def __contains__(self, key: str) -> bool:
|
|
59
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,59 @@
|
|
|
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="OpenStackServerGroupHyperlinkRequest")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class OpenStackServerGroupHyperlinkRequest:
|
|
12
|
+
"""
|
|
13
|
+
Attributes:
|
|
14
|
+
url (str):
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
url: str
|
|
18
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
19
|
+
|
|
20
|
+
def to_dict(self) -> dict[str, Any]:
|
|
21
|
+
url = self.url
|
|
22
|
+
|
|
23
|
+
field_dict: dict[str, Any] = {}
|
|
24
|
+
field_dict.update(self.additional_properties)
|
|
25
|
+
field_dict.update(
|
|
26
|
+
{
|
|
27
|
+
"url": url,
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
return field_dict
|
|
32
|
+
|
|
33
|
+
@classmethod
|
|
34
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
35
|
+
d = dict(src_dict)
|
|
36
|
+
url = d.pop("url")
|
|
37
|
+
|
|
38
|
+
open_stack_server_group_hyperlink_request = cls(
|
|
39
|
+
url=url,
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
open_stack_server_group_hyperlink_request.additional_properties = d
|
|
43
|
+
return open_stack_server_group_hyperlink_request
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def additional_keys(self) -> list[str]:
|
|
47
|
+
return list(self.additional_properties.keys())
|
|
48
|
+
|
|
49
|
+
def __getitem__(self, key: str) -> Any:
|
|
50
|
+
return self.additional_properties[key]
|
|
51
|
+
|
|
52
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
53
|
+
self.additional_properties[key] = value
|
|
54
|
+
|
|
55
|
+
def __delitem__(self, key: str) -> None:
|
|
56
|
+
del self.additional_properties[key]
|
|
57
|
+
|
|
58
|
+
def __contains__(self, key: str) -> bool:
|
|
59
|
+
return key in self.additional_properties
|
|
@@ -11,20 +11,15 @@ T = TypeVar("T", bound="OpenStackTenantCreateOrderAttributes")
|
|
|
11
11
|
|
|
12
12
|
@_attrs_define
|
|
13
13
|
class OpenStackTenantCreateOrderAttributes:
|
|
14
|
-
"""
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
subnet_cidr (Union[Unset, str]): Default: '192.168.42.0/24'.
|
|
24
|
-
skip_connection_extnet (Union[Unset, bool]): Default: False.
|
|
25
|
-
skip_creation_of_default_router (Union[Unset, bool]): Default: False.
|
|
26
|
-
availability_zone (Union[Unset, str]): Optional availability group. Will be used for all instances provisioned
|
|
27
|
-
in this tenant
|
|
14
|
+
"""
|
|
15
|
+
Attributes:
|
|
16
|
+
name (str):
|
|
17
|
+
description (Union[Unset, str]):
|
|
18
|
+
subnet_cidr (Union[Unset, str]): Default: '192.168.42.0/24'.
|
|
19
|
+
skip_connection_extnet (Union[Unset, bool]): Default: False.
|
|
20
|
+
skip_creation_of_default_router (Union[Unset, bool]): Default: False.
|
|
21
|
+
availability_zone (Union[Unset, str]): Optional availability group. Will be used for all instances provisioned
|
|
22
|
+
in this tenant
|
|
28
23
|
"""
|
|
29
24
|
|
|
30
25
|
name: str
|
|
@@ -11,19 +11,14 @@ T = TypeVar("T", bound="OpenStackVolumeCreateOrderAttributes")
|
|
|
11
11
|
|
|
12
12
|
@_attrs_define
|
|
13
13
|
class OpenStackVolumeCreateOrderAttributes:
|
|
14
|
-
"""
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
description (Union[Unset, str]):
|
|
23
|
-
image (Union[None, Unset, str]): Image that this volume was created from, if any
|
|
24
|
-
size (Union[None, Unset, int]): Size in MiB
|
|
25
|
-
availability_zone (Union[None, Unset, str]): Availability zone where this volume is located
|
|
26
|
-
type_ (Union[None, Unset, str]): Type of the volume (e.g. SSD, HDD)
|
|
14
|
+
"""
|
|
15
|
+
Attributes:
|
|
16
|
+
name (str):
|
|
17
|
+
description (Union[Unset, str]):
|
|
18
|
+
image (Union[None, Unset, str]): Image that this volume was created from, if any
|
|
19
|
+
size (Union[None, Unset, int]): Size in MiB
|
|
20
|
+
availability_zone (Union[None, Unset, str]): Availability zone where this volume is located
|
|
21
|
+
type_ (Union[None, Unset, str]): Type of the volume (e.g. SSD, HDD)
|
|
27
22
|
"""
|
|
28
23
|
|
|
29
24
|
name: str
|
|
@@ -15,21 +15,16 @@ class OpenstackInstancesListFieldItem(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 OpenstackInstancesListFieldItem(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"
|
|
@@ -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"
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from io import BytesIO
|
|
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
|
+
|
|
8
|
+
from .. import types
|
|
9
|
+
from ..types import UNSET, File, Unset
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="OrderAttachmentRequestForm")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@_attrs_define
|
|
15
|
+
class OrderAttachmentRequestForm:
|
|
16
|
+
"""
|
|
17
|
+
Attributes:
|
|
18
|
+
attachment (Union[File, None, Unset]):
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
attachment: Union[File, None, Unset] = UNSET
|
|
22
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
23
|
+
|
|
24
|
+
def to_dict(self) -> dict[str, Any]:
|
|
25
|
+
attachment: Union[None, Unset, types.FileTypes]
|
|
26
|
+
if isinstance(self.attachment, Unset):
|
|
27
|
+
attachment = UNSET
|
|
28
|
+
elif isinstance(self.attachment, File):
|
|
29
|
+
attachment = self.attachment.to_tuple()
|
|
30
|
+
|
|
31
|
+
else:
|
|
32
|
+
attachment = self.attachment
|
|
33
|
+
|
|
34
|
+
field_dict: dict[str, Any] = {}
|
|
35
|
+
field_dict.update(self.additional_properties)
|
|
36
|
+
field_dict.update({})
|
|
37
|
+
if attachment is not UNSET:
|
|
38
|
+
field_dict["attachment"] = attachment
|
|
39
|
+
|
|
40
|
+
return field_dict
|
|
41
|
+
|
|
42
|
+
@classmethod
|
|
43
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
44
|
+
d = dict(src_dict)
|
|
45
|
+
|
|
46
|
+
def _parse_attachment(data: object) -> Union[File, None, Unset]:
|
|
47
|
+
if data is None:
|
|
48
|
+
return data
|
|
49
|
+
if isinstance(data, Unset):
|
|
50
|
+
return data
|
|
51
|
+
try:
|
|
52
|
+
if not isinstance(data, bytes):
|
|
53
|
+
raise TypeError()
|
|
54
|
+
attachment_type_0 = File(payload=BytesIO(data))
|
|
55
|
+
|
|
56
|
+
return attachment_type_0
|
|
57
|
+
except: # noqa: E722
|
|
58
|
+
pass
|
|
59
|
+
return cast(Union[File, None, Unset], data)
|
|
60
|
+
|
|
61
|
+
attachment = _parse_attachment(d.pop("attachment", UNSET))
|
|
62
|
+
|
|
63
|
+
order_attachment_request_form = cls(
|
|
64
|
+
attachment=attachment,
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
order_attachment_request_form.additional_properties = d
|
|
68
|
+
return order_attachment_request_form
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def additional_keys(self) -> list[str]:
|
|
72
|
+
return list(self.additional_properties.keys())
|
|
73
|
+
|
|
74
|
+
def __getitem__(self, key: str) -> Any:
|
|
75
|
+
return self.additional_properties[key]
|
|
76
|
+
|
|
77
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
78
|
+
self.additional_properties[key] = value
|
|
79
|
+
|
|
80
|
+
def __delitem__(self, key: str) -> None:
|
|
81
|
+
del self.additional_properties[key]
|
|
82
|
+
|
|
83
|
+
def __contains__(self, key: str) -> bool:
|
|
84
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from io import BytesIO
|
|
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
|
+
|
|
8
|
+
from .. import types
|
|
9
|
+
from ..types import UNSET, File, Unset
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="OrderAttachmentRequestMultipart")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@_attrs_define
|
|
15
|
+
class OrderAttachmentRequestMultipart:
|
|
16
|
+
"""
|
|
17
|
+
Attributes:
|
|
18
|
+
attachment (Union[File, None, Unset]):
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
attachment: Union[File, None, Unset] = UNSET
|
|
22
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
23
|
+
|
|
24
|
+
def to_dict(self) -> dict[str, Any]:
|
|
25
|
+
attachment: Union[None, Unset, types.FileTypes]
|
|
26
|
+
if isinstance(self.attachment, Unset):
|
|
27
|
+
attachment = UNSET
|
|
28
|
+
elif isinstance(self.attachment, File):
|
|
29
|
+
attachment = self.attachment.to_tuple()
|
|
30
|
+
|
|
31
|
+
else:
|
|
32
|
+
attachment = self.attachment
|
|
33
|
+
|
|
34
|
+
field_dict: dict[str, Any] = {}
|
|
35
|
+
field_dict.update(self.additional_properties)
|
|
36
|
+
field_dict.update({})
|
|
37
|
+
if attachment is not UNSET:
|
|
38
|
+
field_dict["attachment"] = attachment
|
|
39
|
+
|
|
40
|
+
return field_dict
|
|
41
|
+
|
|
42
|
+
def to_multipart(self) -> types.RequestFiles:
|
|
43
|
+
files: types.RequestFiles = []
|
|
44
|
+
|
|
45
|
+
if not isinstance(self.attachment, Unset):
|
|
46
|
+
if isinstance(self.attachment, File):
|
|
47
|
+
files.append(("attachment", self.attachment.to_tuple()))
|
|
48
|
+
else:
|
|
49
|
+
files.append(("attachment", (None, str(self.attachment).encode(), "text/plain")))
|
|
50
|
+
|
|
51
|
+
for prop_name, prop in self.additional_properties.items():
|
|
52
|
+
files.append((prop_name, (None, str(prop).encode(), "text/plain")))
|
|
53
|
+
|
|
54
|
+
return files
|
|
55
|
+
|
|
56
|
+
@classmethod
|
|
57
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
58
|
+
d = dict(src_dict)
|
|
59
|
+
|
|
60
|
+
def _parse_attachment(data: object) -> Union[File, None, Unset]:
|
|
61
|
+
if data is None:
|
|
62
|
+
return data
|
|
63
|
+
if isinstance(data, Unset):
|
|
64
|
+
return data
|
|
65
|
+
try:
|
|
66
|
+
if not isinstance(data, bytes):
|
|
67
|
+
raise TypeError()
|
|
68
|
+
attachment_type_0 = File(payload=BytesIO(data))
|
|
69
|
+
|
|
70
|
+
return attachment_type_0
|
|
71
|
+
except: # noqa: E722
|
|
72
|
+
pass
|
|
73
|
+
return cast(Union[File, None, Unset], data)
|
|
74
|
+
|
|
75
|
+
attachment = _parse_attachment(d.pop("attachment", UNSET))
|
|
76
|
+
|
|
77
|
+
order_attachment_request_multipart = cls(
|
|
78
|
+
attachment=attachment,
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
order_attachment_request_multipart.additional_properties = d
|
|
82
|
+
return order_attachment_request_multipart
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def additional_keys(self) -> list[str]:
|
|
86
|
+
return list(self.additional_properties.keys())
|
|
87
|
+
|
|
88
|
+
def __getitem__(self, key: str) -> Any:
|
|
89
|
+
return self.additional_properties[key]
|
|
90
|
+
|
|
91
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
92
|
+
self.additional_properties[key] = value
|
|
93
|
+
|
|
94
|
+
def __delitem__(self, key: str) -> None:
|
|
95
|
+
del self.additional_properties[key]
|
|
96
|
+
|
|
97
|
+
def __contains__(self, key: str) -> bool:
|
|
98
|
+
return key in self.additional_properties
|
|
@@ -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 (UUID):
|
|
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: UUID
|
|
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 = str(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 = UUID(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,
|