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
|
@@ -20,51 +20,43 @@ class OpenStackBackupRestorationRequest:
|
|
|
20
20
|
Attributes:
|
|
21
21
|
flavor (str): Flavor to be used for the restored instance. If not specified, original instance flavor will be
|
|
22
22
|
used
|
|
23
|
+
floating_ips (list['OpenStackNestedFloatingIPRequest']):
|
|
24
|
+
ports (list['OpenStackNestedPortRequest']):
|
|
23
25
|
name (Union[Unset, str]): New instance name. Leave blank to use source instance name.
|
|
24
|
-
floating_ips (Union[Unset, list['OpenStackNestedFloatingIPRequest']]): Floating IPs that will be assigned to the
|
|
25
|
-
restored instance
|
|
26
|
-
ports (Union[Unset, list['OpenStackNestedPortRequest']]): Network ports that will be attached to the restored
|
|
27
|
-
instance
|
|
28
26
|
"""
|
|
29
27
|
|
|
30
28
|
flavor: str
|
|
29
|
+
floating_ips: list["OpenStackNestedFloatingIPRequest"]
|
|
30
|
+
ports: list["OpenStackNestedPortRequest"]
|
|
31
31
|
name: Union[Unset, str] = UNSET
|
|
32
|
-
floating_ips: Union[Unset, list["OpenStackNestedFloatingIPRequest"]] = UNSET
|
|
33
|
-
ports: Union[Unset, list["OpenStackNestedPortRequest"]] = UNSET
|
|
34
32
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
35
33
|
|
|
36
34
|
def to_dict(self) -> dict[str, Any]:
|
|
37
35
|
flavor = self.flavor
|
|
38
36
|
|
|
39
|
-
|
|
37
|
+
floating_ips = []
|
|
38
|
+
for floating_ips_item_data in self.floating_ips:
|
|
39
|
+
floating_ips_item = floating_ips_item_data.to_dict()
|
|
40
|
+
floating_ips.append(floating_ips_item)
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
floating_ips_item = floating_ips_item_data.to_dict()
|
|
46
|
-
floating_ips.append(floating_ips_item)
|
|
42
|
+
ports = []
|
|
43
|
+
for ports_item_data in self.ports:
|
|
44
|
+
ports_item = ports_item_data.to_dict()
|
|
45
|
+
ports.append(ports_item)
|
|
47
46
|
|
|
48
|
-
|
|
49
|
-
if not isinstance(self.ports, Unset):
|
|
50
|
-
ports = []
|
|
51
|
-
for ports_item_data in self.ports:
|
|
52
|
-
ports_item = ports_item_data.to_dict()
|
|
53
|
-
ports.append(ports_item)
|
|
47
|
+
name = self.name
|
|
54
48
|
|
|
55
49
|
field_dict: dict[str, Any] = {}
|
|
56
50
|
field_dict.update(self.additional_properties)
|
|
57
51
|
field_dict.update(
|
|
58
52
|
{
|
|
59
53
|
"flavor": flavor,
|
|
54
|
+
"floating_ips": floating_ips,
|
|
55
|
+
"ports": ports,
|
|
60
56
|
}
|
|
61
57
|
)
|
|
62
58
|
if name is not UNSET:
|
|
63
59
|
field_dict["name"] = name
|
|
64
|
-
if floating_ips is not UNSET:
|
|
65
|
-
field_dict["floating_ips"] = floating_ips
|
|
66
|
-
if ports is not UNSET:
|
|
67
|
-
field_dict["ports"] = ports
|
|
68
60
|
|
|
69
61
|
return field_dict
|
|
70
62
|
|
|
@@ -76,27 +68,27 @@ class OpenStackBackupRestorationRequest:
|
|
|
76
68
|
d = dict(src_dict)
|
|
77
69
|
flavor = d.pop("flavor")
|
|
78
70
|
|
|
79
|
-
name = d.pop("name", UNSET)
|
|
80
|
-
|
|
81
71
|
floating_ips = []
|
|
82
|
-
_floating_ips = d.pop("floating_ips"
|
|
83
|
-
for floating_ips_item_data in _floating_ips
|
|
72
|
+
_floating_ips = d.pop("floating_ips")
|
|
73
|
+
for floating_ips_item_data in _floating_ips:
|
|
84
74
|
floating_ips_item = OpenStackNestedFloatingIPRequest.from_dict(floating_ips_item_data)
|
|
85
75
|
|
|
86
76
|
floating_ips.append(floating_ips_item)
|
|
87
77
|
|
|
88
78
|
ports = []
|
|
89
|
-
_ports = d.pop("ports"
|
|
90
|
-
for ports_item_data in _ports
|
|
79
|
+
_ports = d.pop("ports")
|
|
80
|
+
for ports_item_data in _ports:
|
|
91
81
|
ports_item = OpenStackNestedPortRequest.from_dict(ports_item_data)
|
|
92
82
|
|
|
93
83
|
ports.append(ports_item)
|
|
94
84
|
|
|
85
|
+
name = d.pop("name", UNSET)
|
|
86
|
+
|
|
95
87
|
open_stack_backup_restoration_request = cls(
|
|
96
88
|
flavor=flavor,
|
|
97
|
-
name=name,
|
|
98
89
|
floating_ips=floating_ips,
|
|
99
90
|
ports=ports,
|
|
91
|
+
name=name,
|
|
100
92
|
)
|
|
101
93
|
|
|
102
94
|
open_stack_backup_restoration_request.additional_properties = d
|
|
@@ -6,25 +6,33 @@ from attrs import field as _attrs_field
|
|
|
6
6
|
|
|
7
7
|
from ..types import UNSET, Unset
|
|
8
8
|
|
|
9
|
-
T = TypeVar("T", bound="
|
|
9
|
+
T = TypeVar("T", bound="OpenStackCreateFloatingIPRequest")
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
@_attrs_define
|
|
13
|
-
class
|
|
13
|
+
class OpenStackCreateFloatingIPRequest:
|
|
14
14
|
"""
|
|
15
15
|
Attributes:
|
|
16
|
+
subnet (str):
|
|
16
17
|
url (Union[Unset, str]):
|
|
17
18
|
"""
|
|
18
19
|
|
|
20
|
+
subnet: str
|
|
19
21
|
url: Union[Unset, str] = UNSET
|
|
20
22
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
21
23
|
|
|
22
24
|
def to_dict(self) -> dict[str, Any]:
|
|
25
|
+
subnet = self.subnet
|
|
26
|
+
|
|
23
27
|
url = self.url
|
|
24
28
|
|
|
25
29
|
field_dict: dict[str, Any] = {}
|
|
26
30
|
field_dict.update(self.additional_properties)
|
|
27
|
-
field_dict.update(
|
|
31
|
+
field_dict.update(
|
|
32
|
+
{
|
|
33
|
+
"subnet": subnet,
|
|
34
|
+
}
|
|
35
|
+
)
|
|
28
36
|
if url is not UNSET:
|
|
29
37
|
field_dict["url"] = url
|
|
30
38
|
|
|
@@ -33,14 +41,17 @@ class OpenStackNestedSecurityGroupRequest:
|
|
|
33
41
|
@classmethod
|
|
34
42
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
35
43
|
d = dict(src_dict)
|
|
44
|
+
subnet = d.pop("subnet")
|
|
45
|
+
|
|
36
46
|
url = d.pop("url", UNSET)
|
|
37
47
|
|
|
38
|
-
|
|
48
|
+
open_stack_create_floating_ip_request = cls(
|
|
49
|
+
subnet=subnet,
|
|
39
50
|
url=url,
|
|
40
51
|
)
|
|
41
52
|
|
|
42
|
-
|
|
43
|
-
return
|
|
53
|
+
open_stack_create_floating_ip_request.additional_properties = d
|
|
54
|
+
return open_stack_create_floating_ip_request
|
|
44
55
|
|
|
45
56
|
@property
|
|
46
57
|
def additional_keys(self) -> list[str]:
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
|
|
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
|
+
if TYPE_CHECKING:
|
|
10
|
+
from ..models.open_stack_fixed_ip_request import OpenStackFixedIpRequest
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
T = TypeVar("T", bound="OpenStackCreatePortRequest")
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@_attrs_define
|
|
17
|
+
class OpenStackCreatePortRequest:
|
|
18
|
+
"""
|
|
19
|
+
Attributes:
|
|
20
|
+
fixed_ips (Union[Unset, list['OpenStackFixedIpRequest']]):
|
|
21
|
+
subnet (Union[None, Unset, str]): Subnet to which this port belongs
|
|
22
|
+
port (Union[Unset, str]):
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
fixed_ips: Union[Unset, list["OpenStackFixedIpRequest"]] = UNSET
|
|
26
|
+
subnet: Union[None, Unset, str] = UNSET
|
|
27
|
+
port: Union[Unset, str] = UNSET
|
|
28
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
29
|
+
|
|
30
|
+
def to_dict(self) -> dict[str, Any]:
|
|
31
|
+
fixed_ips: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
32
|
+
if not isinstance(self.fixed_ips, Unset):
|
|
33
|
+
fixed_ips = []
|
|
34
|
+
for fixed_ips_item_data in self.fixed_ips:
|
|
35
|
+
fixed_ips_item = fixed_ips_item_data.to_dict()
|
|
36
|
+
fixed_ips.append(fixed_ips_item)
|
|
37
|
+
|
|
38
|
+
subnet: Union[None, Unset, str]
|
|
39
|
+
if isinstance(self.subnet, Unset):
|
|
40
|
+
subnet = UNSET
|
|
41
|
+
else:
|
|
42
|
+
subnet = self.subnet
|
|
43
|
+
|
|
44
|
+
port = self.port
|
|
45
|
+
|
|
46
|
+
field_dict: dict[str, Any] = {}
|
|
47
|
+
field_dict.update(self.additional_properties)
|
|
48
|
+
field_dict.update({})
|
|
49
|
+
if fixed_ips is not UNSET:
|
|
50
|
+
field_dict["fixed_ips"] = fixed_ips
|
|
51
|
+
if subnet is not UNSET:
|
|
52
|
+
field_dict["subnet"] = subnet
|
|
53
|
+
if port is not UNSET:
|
|
54
|
+
field_dict["port"] = port
|
|
55
|
+
|
|
56
|
+
return field_dict
|
|
57
|
+
|
|
58
|
+
@classmethod
|
|
59
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
60
|
+
from ..models.open_stack_fixed_ip_request import OpenStackFixedIpRequest
|
|
61
|
+
|
|
62
|
+
d = dict(src_dict)
|
|
63
|
+
fixed_ips = []
|
|
64
|
+
_fixed_ips = d.pop("fixed_ips", UNSET)
|
|
65
|
+
for fixed_ips_item_data in _fixed_ips or []:
|
|
66
|
+
fixed_ips_item = OpenStackFixedIpRequest.from_dict(fixed_ips_item_data)
|
|
67
|
+
|
|
68
|
+
fixed_ips.append(fixed_ips_item)
|
|
69
|
+
|
|
70
|
+
def _parse_subnet(data: object) -> Union[None, Unset, str]:
|
|
71
|
+
if data is None:
|
|
72
|
+
return data
|
|
73
|
+
if isinstance(data, Unset):
|
|
74
|
+
return data
|
|
75
|
+
return cast(Union[None, Unset, str], data)
|
|
76
|
+
|
|
77
|
+
subnet = _parse_subnet(d.pop("subnet", UNSET))
|
|
78
|
+
|
|
79
|
+
port = d.pop("port", UNSET)
|
|
80
|
+
|
|
81
|
+
open_stack_create_port_request = cls(
|
|
82
|
+
fixed_ips=fixed_ips,
|
|
83
|
+
subnet=subnet,
|
|
84
|
+
port=port,
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
open_stack_create_port_request.additional_properties = d
|
|
88
|
+
return open_stack_create_port_request
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def additional_keys(self) -> list[str]:
|
|
92
|
+
return list(self.additional_properties.keys())
|
|
93
|
+
|
|
94
|
+
def __getitem__(self, key: str) -> Any:
|
|
95
|
+
return self.additional_properties[key]
|
|
96
|
+
|
|
97
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
98
|
+
self.additional_properties[key] = value
|
|
99
|
+
|
|
100
|
+
def __delitem__(self, key: str) -> None:
|
|
101
|
+
del self.additional_properties[key]
|
|
102
|
+
|
|
103
|
+
def __contains__(self, key: str) -> bool:
|
|
104
|
+
return key in self.additional_properties
|
|
@@ -70,11 +70,10 @@ class OpenStackInstance:
|
|
|
70
70
|
flavor_disk (Union[Unset, int]): Flavor disk size in MiB
|
|
71
71
|
flavor_name (Union[Unset, str]): Name of the flavor used by this instance
|
|
72
72
|
volumes (Union[Unset, list['OpenStackNestedVolume']]): List of volumes attached to the instance
|
|
73
|
-
security_groups (Union[Unset, list['OpenStackNestedSecurityGroup']]):
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
ports (Union[Unset, list['OpenStackNestedPort']]): Network ports to attach to the instance
|
|
73
|
+
security_groups (Union[Unset, list['OpenStackNestedSecurityGroup']]):
|
|
74
|
+
server_group (Union[Unset, OpenStackNestedServerGroup]):
|
|
75
|
+
floating_ips (Union[Unset, list['OpenStackNestedFloatingIP']]):
|
|
76
|
+
ports (Union[Unset, list['OpenStackNestedPort']]):
|
|
78
77
|
availability_zone (Union[None, Unset, str]): Availability zone where this instance is located
|
|
79
78
|
availability_zone_name (Union[Unset, str]): Name of the availability zone where instance is located
|
|
80
79
|
connect_directly_to_external_network (Union[Unset, bool]): If True, instance will be connected directly to
|
|
@@ -142,7 +141,7 @@ class OpenStackInstance:
|
|
|
142
141
|
flavor_name: Union[Unset, str] = UNSET
|
|
143
142
|
volumes: Union[Unset, list["OpenStackNestedVolume"]] = UNSET
|
|
144
143
|
security_groups: Union[Unset, list["OpenStackNestedSecurityGroup"]] = UNSET
|
|
145
|
-
server_group: Union["OpenStackNestedServerGroup"
|
|
144
|
+
server_group: Union[Unset, "OpenStackNestedServerGroup"] = UNSET
|
|
146
145
|
floating_ips: Union[Unset, list["OpenStackNestedFloatingIP"]] = UNSET
|
|
147
146
|
ports: Union[Unset, list["OpenStackNestedPort"]] = UNSET
|
|
148
147
|
availability_zone: Union[None, Unset, str] = UNSET
|
|
@@ -174,7 +173,6 @@ class OpenStackInstance:
|
|
|
174
173
|
from ..models.open_stack_instance_marketplace_offering_plugin_options_type_0 import (
|
|
175
174
|
OpenStackInstanceMarketplaceOfferingPluginOptionsType0,
|
|
176
175
|
)
|
|
177
|
-
from ..models.open_stack_nested_server_group import OpenStackNestedServerGroup
|
|
178
176
|
from ..models.rancher_cluster_reference import RancherClusterReference
|
|
179
177
|
|
|
180
178
|
url = self.url
|
|
@@ -309,13 +307,9 @@ class OpenStackInstance:
|
|
|
309
307
|
security_groups_item = security_groups_item_data.to_dict()
|
|
310
308
|
security_groups.append(security_groups_item)
|
|
311
309
|
|
|
312
|
-
server_group: Union[
|
|
313
|
-
if isinstance(self.server_group, Unset):
|
|
314
|
-
server_group = UNSET
|
|
315
|
-
elif isinstance(self.server_group, OpenStackNestedServerGroup):
|
|
310
|
+
server_group: Union[Unset, dict[str, Any]] = UNSET
|
|
311
|
+
if not isinstance(self.server_group, Unset):
|
|
316
312
|
server_group = self.server_group.to_dict()
|
|
317
|
-
else:
|
|
318
|
-
server_group = self.server_group
|
|
319
313
|
|
|
320
314
|
floating_ips: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
321
315
|
if not isinstance(self.floating_ips, Unset):
|
|
@@ -749,22 +743,12 @@ class OpenStackInstance:
|
|
|
749
743
|
|
|
750
744
|
security_groups.append(security_groups_item)
|
|
751
745
|
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
if not isinstance(data, dict):
|
|
759
|
-
raise TypeError()
|
|
760
|
-
server_group_type_1 = OpenStackNestedServerGroup.from_dict(data)
|
|
761
|
-
|
|
762
|
-
return server_group_type_1
|
|
763
|
-
except: # noqa: E722
|
|
764
|
-
pass
|
|
765
|
-
return cast(Union["OpenStackNestedServerGroup", None, Unset], data)
|
|
766
|
-
|
|
767
|
-
server_group = _parse_server_group(d.pop("server_group", UNSET))
|
|
746
|
+
_server_group = d.pop("server_group", UNSET)
|
|
747
|
+
server_group: Union[Unset, OpenStackNestedServerGroup]
|
|
748
|
+
if isinstance(_server_group, Unset):
|
|
749
|
+
server_group = UNSET
|
|
750
|
+
else:
|
|
751
|
+
server_group = OpenStackNestedServerGroup.from_dict(_server_group)
|
|
768
752
|
|
|
769
753
|
floating_ips = []
|
|
770
754
|
_floating_ips = d.pop("floating_ips", UNSET)
|
|
@@ -7,10 +7,11 @@ from attrs import field as _attrs_field
|
|
|
7
7
|
from ..types import UNSET, Unset
|
|
8
8
|
|
|
9
9
|
if TYPE_CHECKING:
|
|
10
|
+
from ..models.open_stack_create_floating_ip_request import OpenStackCreateFloatingIPRequest
|
|
11
|
+
from ..models.open_stack_create_port_request import OpenStackCreatePortRequest
|
|
10
12
|
from ..models.open_stack_data_volume_request import OpenStackDataVolumeRequest
|
|
11
|
-
from ..models.
|
|
12
|
-
from ..models.
|
|
13
|
-
from ..models.open_stack_nested_security_group_request import OpenStackNestedSecurityGroupRequest
|
|
13
|
+
from ..models.open_stack_security_group_hyperlink_request import OpenStackSecurityGroupHyperlinkRequest
|
|
14
|
+
from ..models.open_stack_server_group_hyperlink_request import OpenStackServerGroupHyperlinkRequest
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
T = TypeVar("T", bound="OpenStackInstanceCreateOrderAttributes")
|
|
@@ -18,41 +19,39 @@ T = TypeVar("T", bound="OpenStackInstanceCreateOrderAttributes")
|
|
|
18
19
|
|
|
19
20
|
@_attrs_define
|
|
20
21
|
class OpenStackInstanceCreateOrderAttributes:
|
|
21
|
-
"""
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
data_volumes (Union[Unset, list['OpenStackDataVolumeRequest']]): Additional data volumes to attach to the
|
|
44
|
-
instance
|
|
45
|
-
security_groups (Union[Unset, list['OpenStackNestedSecurityGroupRequest']]): Security groups to attach to the
|
|
46
|
-
instance
|
|
22
|
+
"""
|
|
23
|
+
Attributes:
|
|
24
|
+
name (str):
|
|
25
|
+
flavor (str): The flavor to use for the instance
|
|
26
|
+
image (str): The OS image to use for the instance
|
|
27
|
+
ports (list['OpenStackCreatePortRequest']): Network ports to attach to the instance
|
|
28
|
+
system_volume_size (int): Size of the system volume in MiB. Minimum size is 1024 MiB (1 GiB)
|
|
29
|
+
description (Union[Unset, str]):
|
|
30
|
+
security_groups (Union[Unset, list['OpenStackSecurityGroupHyperlinkRequest']]): List of security groups to apply
|
|
31
|
+
to the instance
|
|
32
|
+
server_group (Union[Unset, OpenStackServerGroupHyperlinkRequest]):
|
|
33
|
+
floating_ips (Union[Unset, list['OpenStackCreateFloatingIPRequest']]): Floating IPs to assign to the instance
|
|
34
|
+
system_volume_type (Union[None, Unset, str]): Volume type for the system volume
|
|
35
|
+
data_volume_size (Union[Unset, int]): Size of the data volume in MiB. Minimum size is 1024 MiB (1 GiB)
|
|
36
|
+
data_volume_type (Union[None, Unset, str]): Volume type for the data volume
|
|
37
|
+
ssh_public_key (Union[Unset, str]):
|
|
38
|
+
user_data (Union[Unset, str]): Additional data that will be added to instance on provisioning
|
|
39
|
+
availability_zone (Union[None, Unset, str]): Availability zone where this instance is located
|
|
40
|
+
connect_directly_to_external_network (Union[Unset, bool]): If True, instance will be connected directly to
|
|
41
|
+
external network
|
|
42
|
+
data_volumes (Union[Unset, list['OpenStackDataVolumeRequest']]): Additional data volumes to attach to the
|
|
43
|
+
instance
|
|
47
44
|
"""
|
|
48
45
|
|
|
49
46
|
name: str
|
|
50
47
|
flavor: str
|
|
51
48
|
image: str
|
|
52
|
-
ports: list["
|
|
49
|
+
ports: list["OpenStackCreatePortRequest"]
|
|
53
50
|
system_volume_size: int
|
|
54
51
|
description: Union[Unset, str] = UNSET
|
|
55
|
-
|
|
52
|
+
security_groups: Union[Unset, list["OpenStackSecurityGroupHyperlinkRequest"]] = UNSET
|
|
53
|
+
server_group: Union[Unset, "OpenStackServerGroupHyperlinkRequest"] = UNSET
|
|
54
|
+
floating_ips: Union[Unset, list["OpenStackCreateFloatingIPRequest"]] = UNSET
|
|
56
55
|
system_volume_type: Union[None, Unset, str] = UNSET
|
|
57
56
|
data_volume_size: Union[Unset, int] = UNSET
|
|
58
57
|
data_volume_type: Union[None, Unset, str] = UNSET
|
|
@@ -61,7 +60,6 @@ class OpenStackInstanceCreateOrderAttributes:
|
|
|
61
60
|
availability_zone: Union[None, Unset, str] = UNSET
|
|
62
61
|
connect_directly_to_external_network: Union[Unset, bool] = UNSET
|
|
63
62
|
data_volumes: Union[Unset, list["OpenStackDataVolumeRequest"]] = UNSET
|
|
64
|
-
security_groups: Union[Unset, list["OpenStackNestedSecurityGroupRequest"]] = UNSET
|
|
65
63
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
66
64
|
|
|
67
65
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -80,6 +78,17 @@ class OpenStackInstanceCreateOrderAttributes:
|
|
|
80
78
|
|
|
81
79
|
description = self.description
|
|
82
80
|
|
|
81
|
+
security_groups: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
82
|
+
if not isinstance(self.security_groups, Unset):
|
|
83
|
+
security_groups = []
|
|
84
|
+
for security_groups_item_data in self.security_groups:
|
|
85
|
+
security_groups_item = security_groups_item_data.to_dict()
|
|
86
|
+
security_groups.append(security_groups_item)
|
|
87
|
+
|
|
88
|
+
server_group: Union[Unset, dict[str, Any]] = UNSET
|
|
89
|
+
if not isinstance(self.server_group, Unset):
|
|
90
|
+
server_group = self.server_group.to_dict()
|
|
91
|
+
|
|
83
92
|
floating_ips: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
84
93
|
if not isinstance(self.floating_ips, Unset):
|
|
85
94
|
floating_ips = []
|
|
@@ -120,13 +129,6 @@ class OpenStackInstanceCreateOrderAttributes:
|
|
|
120
129
|
data_volumes_item = data_volumes_item_data.to_dict()
|
|
121
130
|
data_volumes.append(data_volumes_item)
|
|
122
131
|
|
|
123
|
-
security_groups: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
124
|
-
if not isinstance(self.security_groups, Unset):
|
|
125
|
-
security_groups = []
|
|
126
|
-
for security_groups_item_data in self.security_groups:
|
|
127
|
-
security_groups_item = security_groups_item_data.to_dict()
|
|
128
|
-
security_groups.append(security_groups_item)
|
|
129
|
-
|
|
130
132
|
field_dict: dict[str, Any] = {}
|
|
131
133
|
field_dict.update(self.additional_properties)
|
|
132
134
|
field_dict.update(
|
|
@@ -140,6 +142,10 @@ class OpenStackInstanceCreateOrderAttributes:
|
|
|
140
142
|
)
|
|
141
143
|
if description is not UNSET:
|
|
142
144
|
field_dict["description"] = description
|
|
145
|
+
if security_groups is not UNSET:
|
|
146
|
+
field_dict["security_groups"] = security_groups
|
|
147
|
+
if server_group is not UNSET:
|
|
148
|
+
field_dict["server_group"] = server_group
|
|
143
149
|
if floating_ips is not UNSET:
|
|
144
150
|
field_dict["floating_ips"] = floating_ips
|
|
145
151
|
if system_volume_type is not UNSET:
|
|
@@ -158,17 +164,16 @@ class OpenStackInstanceCreateOrderAttributes:
|
|
|
158
164
|
field_dict["connect_directly_to_external_network"] = connect_directly_to_external_network
|
|
159
165
|
if data_volumes is not UNSET:
|
|
160
166
|
field_dict["data_volumes"] = data_volumes
|
|
161
|
-
if security_groups is not UNSET:
|
|
162
|
-
field_dict["security_groups"] = security_groups
|
|
163
167
|
|
|
164
168
|
return field_dict
|
|
165
169
|
|
|
166
170
|
@classmethod
|
|
167
171
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
172
|
+
from ..models.open_stack_create_floating_ip_request import OpenStackCreateFloatingIPRequest
|
|
173
|
+
from ..models.open_stack_create_port_request import OpenStackCreatePortRequest
|
|
168
174
|
from ..models.open_stack_data_volume_request import OpenStackDataVolumeRequest
|
|
169
|
-
from ..models.
|
|
170
|
-
from ..models.
|
|
171
|
-
from ..models.open_stack_nested_security_group_request import OpenStackNestedSecurityGroupRequest
|
|
175
|
+
from ..models.open_stack_security_group_hyperlink_request import OpenStackSecurityGroupHyperlinkRequest
|
|
176
|
+
from ..models.open_stack_server_group_hyperlink_request import OpenStackServerGroupHyperlinkRequest
|
|
172
177
|
|
|
173
178
|
d = dict(src_dict)
|
|
174
179
|
name = d.pop("name")
|
|
@@ -180,7 +185,7 @@ class OpenStackInstanceCreateOrderAttributes:
|
|
|
180
185
|
ports = []
|
|
181
186
|
_ports = d.pop("ports")
|
|
182
187
|
for ports_item_data in _ports:
|
|
183
|
-
ports_item =
|
|
188
|
+
ports_item = OpenStackCreatePortRequest.from_dict(ports_item_data)
|
|
184
189
|
|
|
185
190
|
ports.append(ports_item)
|
|
186
191
|
|
|
@@ -188,10 +193,24 @@ class OpenStackInstanceCreateOrderAttributes:
|
|
|
188
193
|
|
|
189
194
|
description = d.pop("description", UNSET)
|
|
190
195
|
|
|
196
|
+
security_groups = []
|
|
197
|
+
_security_groups = d.pop("security_groups", UNSET)
|
|
198
|
+
for security_groups_item_data in _security_groups or []:
|
|
199
|
+
security_groups_item = OpenStackSecurityGroupHyperlinkRequest.from_dict(security_groups_item_data)
|
|
200
|
+
|
|
201
|
+
security_groups.append(security_groups_item)
|
|
202
|
+
|
|
203
|
+
_server_group = d.pop("server_group", UNSET)
|
|
204
|
+
server_group: Union[Unset, OpenStackServerGroupHyperlinkRequest]
|
|
205
|
+
if isinstance(_server_group, Unset):
|
|
206
|
+
server_group = UNSET
|
|
207
|
+
else:
|
|
208
|
+
server_group = OpenStackServerGroupHyperlinkRequest.from_dict(_server_group)
|
|
209
|
+
|
|
191
210
|
floating_ips = []
|
|
192
211
|
_floating_ips = d.pop("floating_ips", UNSET)
|
|
193
212
|
for floating_ips_item_data in _floating_ips or []:
|
|
194
|
-
floating_ips_item =
|
|
213
|
+
floating_ips_item = OpenStackCreateFloatingIPRequest.from_dict(floating_ips_item_data)
|
|
195
214
|
|
|
196
215
|
floating_ips.append(floating_ips_item)
|
|
197
216
|
|
|
@@ -237,13 +256,6 @@ class OpenStackInstanceCreateOrderAttributes:
|
|
|
237
256
|
|
|
238
257
|
data_volumes.append(data_volumes_item)
|
|
239
258
|
|
|
240
|
-
security_groups = []
|
|
241
|
-
_security_groups = d.pop("security_groups", UNSET)
|
|
242
|
-
for security_groups_item_data in _security_groups or []:
|
|
243
|
-
security_groups_item = OpenStackNestedSecurityGroupRequest.from_dict(security_groups_item_data)
|
|
244
|
-
|
|
245
|
-
security_groups.append(security_groups_item)
|
|
246
|
-
|
|
247
259
|
open_stack_instance_create_order_attributes = cls(
|
|
248
260
|
name=name,
|
|
249
261
|
flavor=flavor,
|
|
@@ -251,6 +263,8 @@ class OpenStackInstanceCreateOrderAttributes:
|
|
|
251
263
|
ports=ports,
|
|
252
264
|
system_volume_size=system_volume_size,
|
|
253
265
|
description=description,
|
|
266
|
+
security_groups=security_groups,
|
|
267
|
+
server_group=server_group,
|
|
254
268
|
floating_ips=floating_ips,
|
|
255
269
|
system_volume_type=system_volume_type,
|
|
256
270
|
data_volume_size=data_volume_size,
|
|
@@ -260,7 +274,6 @@ class OpenStackInstanceCreateOrderAttributes:
|
|
|
260
274
|
availability_zone=availability_zone,
|
|
261
275
|
connect_directly_to_external_network=connect_directly_to_external_network,
|
|
262
276
|
data_volumes=data_volumes,
|
|
263
|
-
security_groups=security_groups,
|
|
264
277
|
)
|
|
265
278
|
|
|
266
279
|
open_stack_instance_create_order_attributes.additional_properties = d
|
|
@@ -7,7 +7,7 @@ from attrs import field as _attrs_field
|
|
|
7
7
|
from ..types import UNSET, Unset
|
|
8
8
|
|
|
9
9
|
if TYPE_CHECKING:
|
|
10
|
-
from ..models.
|
|
10
|
+
from ..models.open_stack_create_floating_ip_request import OpenStackCreateFloatingIPRequest
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
T = TypeVar("T", bound="OpenStackInstanceFloatingIPsUpdateRequest")
|
|
@@ -17,10 +17,10 @@ T = TypeVar("T", bound="OpenStackInstanceFloatingIPsUpdateRequest")
|
|
|
17
17
|
class OpenStackInstanceFloatingIPsUpdateRequest:
|
|
18
18
|
"""
|
|
19
19
|
Attributes:
|
|
20
|
-
floating_ips (Union[Unset, list['
|
|
20
|
+
floating_ips (Union[Unset, list['OpenStackCreateFloatingIPRequest']]):
|
|
21
21
|
"""
|
|
22
22
|
|
|
23
|
-
floating_ips: Union[Unset, list["
|
|
23
|
+
floating_ips: Union[Unset, list["OpenStackCreateFloatingIPRequest"]] = UNSET
|
|
24
24
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
25
25
|
|
|
26
26
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -41,13 +41,13 @@ class OpenStackInstanceFloatingIPsUpdateRequest:
|
|
|
41
41
|
|
|
42
42
|
@classmethod
|
|
43
43
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
44
|
-
from ..models.
|
|
44
|
+
from ..models.open_stack_create_floating_ip_request import OpenStackCreateFloatingIPRequest
|
|
45
45
|
|
|
46
46
|
d = dict(src_dict)
|
|
47
47
|
floating_ips = []
|
|
48
48
|
_floating_ips = d.pop("floating_ips", UNSET)
|
|
49
49
|
for floating_ips_item_data in _floating_ips or []:
|
|
50
|
-
floating_ips_item =
|
|
50
|
+
floating_ips_item = OpenStackCreateFloatingIPRequest.from_dict(floating_ips_item_data)
|
|
51
51
|
|
|
52
52
|
floating_ips.append(floating_ips_item)
|
|
53
53
|
|
|
@@ -5,7 +5,7 @@ from attrs import define as _attrs_define
|
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
|
|
7
7
|
if TYPE_CHECKING:
|
|
8
|
-
from ..models.
|
|
8
|
+
from ..models.open_stack_create_port_request import OpenStackCreatePortRequest
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
T = TypeVar("T", bound="OpenStackInstancePortsUpdateRequest")
|
|
@@ -15,10 +15,10 @@ T = TypeVar("T", bound="OpenStackInstancePortsUpdateRequest")
|
|
|
15
15
|
class OpenStackInstancePortsUpdateRequest:
|
|
16
16
|
"""
|
|
17
17
|
Attributes:
|
|
18
|
-
ports (list['
|
|
18
|
+
ports (list['OpenStackCreatePortRequest']):
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
|
-
ports: list["
|
|
21
|
+
ports: list["OpenStackCreatePortRequest"]
|
|
22
22
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
23
23
|
|
|
24
24
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -39,13 +39,13 @@ class OpenStackInstancePortsUpdateRequest:
|
|
|
39
39
|
|
|
40
40
|
@classmethod
|
|
41
41
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
42
|
-
from ..models.
|
|
42
|
+
from ..models.open_stack_create_port_request import OpenStackCreatePortRequest
|
|
43
43
|
|
|
44
44
|
d = dict(src_dict)
|
|
45
45
|
ports = []
|
|
46
46
|
_ports = d.pop("ports")
|
|
47
47
|
for ports_item_data in _ports:
|
|
48
|
-
ports_item =
|
|
48
|
+
ports_item = OpenStackCreatePortRequest.from_dict(ports_item_data)
|
|
49
49
|
|
|
50
50
|
ports.append(ports_item)
|
|
51
51
|
|