waldur-api-client 7.8.2__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/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_resources/marketplace_provider_resources_move_resource.py +22 -0
- waldur_api_client/api/marketplace_resources/marketplace_resources_move_resource.py +22 -0
- waldur_api_client/api/openstack_backups/openstack_backups_restore.py +10 -10
- waldur_api_client/api/rancher_services/rancher_services_create.py +22 -22
- waldur_api_client/models/__init__.py +26 -6
- 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 +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/constance_settings.py +9 -0
- waldur_api_client/models/constance_settings_request.py +9 -0
- waldur_api_client/models/constance_settings_request_form.py +9 -0
- waldur_api_client/models/constance_settings_request_multipart.py +14 -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/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/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/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_create.py +8 -0
- waldur_api_client/models/order_details.py +16 -34
- waldur_api_client/models/patched_open_stack_instance_request.py +1 -67
- waldur_api_client/models/{rancher_nested_security_group.py → project_hyperlink_request.py} +5 -5
- 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/slurm_invoices_slurm_package_create_order_attributes.py +4 -9
- 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.2.dist-info → waldur_api_client-7.8.3.dist-info}/METADATA +1 -1
- {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.3.dist-info}/RECORD +73 -64
- waldur_api_client/models/open_stack_data_volume.py +0 -81
- {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.3.dist-info}/WHEEL +0 -0
- {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -145,6 +145,7 @@ class ConstanceSettingsRequestMultipart:
|
|
|
145
145
|
oidc_client_secret (Union[Unset, str]):
|
|
146
146
|
oidc_user_field (Union[Unset, str]):
|
|
147
147
|
oidc_cache_timeout (Union[Unset, int]):
|
|
148
|
+
oidc_access_token_enabled (Union[Unset, bool]):
|
|
148
149
|
oidc_block_creation_of_uninvited_users (Union[Unset, bool]):
|
|
149
150
|
deactivate_user_if_no_roles (Union[Unset, bool]):
|
|
150
151
|
maintenance_announcement_notify_before_minutes (Union[Unset, int]):
|
|
@@ -282,6 +283,7 @@ class ConstanceSettingsRequestMultipart:
|
|
|
282
283
|
oidc_client_secret: Union[Unset, str] = UNSET
|
|
283
284
|
oidc_user_field: Union[Unset, str] = UNSET
|
|
284
285
|
oidc_cache_timeout: Union[Unset, int] = UNSET
|
|
286
|
+
oidc_access_token_enabled: Union[Unset, bool] = UNSET
|
|
285
287
|
oidc_block_creation_of_uninvited_users: Union[Unset, bool] = UNSET
|
|
286
288
|
deactivate_user_if_no_roles: Union[Unset, bool] = UNSET
|
|
287
289
|
maintenance_announcement_notify_before_minutes: Union[Unset, int] = UNSET
|
|
@@ -638,6 +640,8 @@ class ConstanceSettingsRequestMultipart:
|
|
|
638
640
|
|
|
639
641
|
oidc_cache_timeout = self.oidc_cache_timeout
|
|
640
642
|
|
|
643
|
+
oidc_access_token_enabled = self.oidc_access_token_enabled
|
|
644
|
+
|
|
641
645
|
oidc_block_creation_of_uninvited_users = self.oidc_block_creation_of_uninvited_users
|
|
642
646
|
|
|
643
647
|
deactivate_user_if_no_roles = self.deactivate_user_if_no_roles
|
|
@@ -917,6 +921,8 @@ class ConstanceSettingsRequestMultipart:
|
|
|
917
921
|
field_dict["OIDC_USER_FIELD"] = oidc_user_field
|
|
918
922
|
if oidc_cache_timeout is not UNSET:
|
|
919
923
|
field_dict["OIDC_CACHE_TIMEOUT"] = oidc_cache_timeout
|
|
924
|
+
if oidc_access_token_enabled is not UNSET:
|
|
925
|
+
field_dict["OIDC_ACCESS_TOKEN_ENABLED"] = oidc_access_token_enabled
|
|
920
926
|
if oidc_block_creation_of_uninvited_users is not UNSET:
|
|
921
927
|
field_dict["OIDC_BLOCK_CREATION_OF_UNINVITED_USERS"] = oidc_block_creation_of_uninvited_users
|
|
922
928
|
if deactivate_user_if_no_roles is not UNSET:
|
|
@@ -1515,6 +1521,11 @@ class ConstanceSettingsRequestMultipart:
|
|
|
1515
1521
|
if not isinstance(self.oidc_cache_timeout, Unset):
|
|
1516
1522
|
files.append(("OIDC_CACHE_TIMEOUT", (None, str(self.oidc_cache_timeout).encode(), "text/plain")))
|
|
1517
1523
|
|
|
1524
|
+
if not isinstance(self.oidc_access_token_enabled, Unset):
|
|
1525
|
+
files.append(
|
|
1526
|
+
("OIDC_ACCESS_TOKEN_ENABLED", (None, str(self.oidc_access_token_enabled).encode(), "text/plain"))
|
|
1527
|
+
)
|
|
1528
|
+
|
|
1518
1529
|
if not isinstance(self.oidc_block_creation_of_uninvited_users, Unset):
|
|
1519
1530
|
files.append(
|
|
1520
1531
|
(
|
|
@@ -2005,6 +2016,8 @@ class ConstanceSettingsRequestMultipart:
|
|
|
2005
2016
|
|
|
2006
2017
|
oidc_cache_timeout = d.pop("OIDC_CACHE_TIMEOUT", UNSET)
|
|
2007
2018
|
|
|
2019
|
+
oidc_access_token_enabled = d.pop("OIDC_ACCESS_TOKEN_ENABLED", UNSET)
|
|
2020
|
+
|
|
2008
2021
|
oidc_block_creation_of_uninvited_users = d.pop("OIDC_BLOCK_CREATION_OF_UNINVITED_USERS", UNSET)
|
|
2009
2022
|
|
|
2010
2023
|
deactivate_user_if_no_roles = d.pop("DEACTIVATE_USER_IF_NO_ROLES", UNSET)
|
|
@@ -2146,6 +2159,7 @@ class ConstanceSettingsRequestMultipart:
|
|
|
2146
2159
|
oidc_client_secret=oidc_client_secret,
|
|
2147
2160
|
oidc_user_field=oidc_user_field,
|
|
2148
2161
|
oidc_cache_timeout=oidc_cache_timeout,
|
|
2162
|
+
oidc_access_token_enabled=oidc_access_token_enabled,
|
|
2149
2163
|
oidc_block_creation_of_uninvited_users=oidc_block_creation_of_uninvited_users,
|
|
2150
2164
|
deactivate_user_if_no_roles=deactivate_user_if_no_roles,
|
|
2151
2165
|
maintenance_announcement_notify_before_minutes=maintenance_announcement_notify_before_minutes,
|
|
@@ -244,6 +244,8 @@ class EventTypesEnum(str, Enum):
|
|
|
244
244
|
SSH_KEY_CREATION_SUCCEEDED = "ssh_key_creation_succeeded"
|
|
245
245
|
SSH_KEY_DELETION_SUCCEEDED = "ssh_key_deletion_succeeded"
|
|
246
246
|
TERMINATE_RESOURCES = "terminate_resources"
|
|
247
|
+
TERMS_OF_SERVICE_CONSENT_GRANTED = "terms_of_service_consent_granted"
|
|
248
|
+
TERMS_OF_SERVICE_CONSENT_REVOKED = "terms_of_service_consent_revoked"
|
|
247
249
|
TOKEN_CREATED = "token_created"
|
|
248
250
|
TOKEN_LIFETIME_UPDATED = "token_lifetime_updated"
|
|
249
251
|
UPDATE_OF_CREDIT_BY_STAFF = "update_of_credit_by_staff"
|
|
@@ -11,8 +11,7 @@ T = TypeVar("T", bound="GenericOrderAttributes")
|
|
|
11
11
|
|
|
12
12
|
@_attrs_define
|
|
13
13
|
class GenericOrderAttributes:
|
|
14
|
-
"""
|
|
15
|
-
|
|
14
|
+
"""
|
|
16
15
|
Attributes:
|
|
17
16
|
name (Union[Unset, str]): The name of the resource to be created. Will be displayed in the portal.
|
|
18
17
|
description (Union[Unset, str]): A free-form description for the resource.
|
|
@@ -33,9 +33,6 @@ class ManagedRancherClusterResourcesListFieldItem(str, Enum):
|
|
|
33
33
|
NAME = "name"
|
|
34
34
|
OFFERING = "offering"
|
|
35
35
|
OFFERING_BILLABLE = "offering_billable"
|
|
36
|
-
OFFERING_CUSTOMER_NAME = "offering_customer_name"
|
|
37
|
-
OFFERING_CUSTOMER_SLUG = "offering_customer_slug"
|
|
38
|
-
OFFERING_CUSTOMER_UUID = "offering_customer_uuid"
|
|
39
36
|
OFFERING_DESCRIPTION = "offering_description"
|
|
40
37
|
OFFERING_IMAGE = "offering_image"
|
|
41
38
|
OFFERING_NAME = "offering_name"
|
|
@@ -66,6 +63,7 @@ class ManagedRancherClusterResourcesListFieldItem(str, Enum):
|
|
|
66
63
|
PROJECT_SLUG = "project_slug"
|
|
67
64
|
PROJECT_UUID = "project_uuid"
|
|
68
65
|
PROVIDER_NAME = "provider_name"
|
|
66
|
+
PROVIDER_SLUG = "provider_slug"
|
|
69
67
|
PROVIDER_UUID = "provider_uuid"
|
|
70
68
|
REPORT = "report"
|
|
71
69
|
RESOURCE_TYPE = "resource_type"
|
|
@@ -33,9 +33,6 @@ class ManagedRancherClusterResourcesRetrieveFieldItem(str, Enum):
|
|
|
33
33
|
NAME = "name"
|
|
34
34
|
OFFERING = "offering"
|
|
35
35
|
OFFERING_BILLABLE = "offering_billable"
|
|
36
|
-
OFFERING_CUSTOMER_NAME = "offering_customer_name"
|
|
37
|
-
OFFERING_CUSTOMER_SLUG = "offering_customer_slug"
|
|
38
|
-
OFFERING_CUSTOMER_UUID = "offering_customer_uuid"
|
|
39
36
|
OFFERING_DESCRIPTION = "offering_description"
|
|
40
37
|
OFFERING_IMAGE = "offering_image"
|
|
41
38
|
OFFERING_NAME = "offering_name"
|
|
@@ -66,6 +63,7 @@ class ManagedRancherClusterResourcesRetrieveFieldItem(str, Enum):
|
|
|
66
63
|
PROJECT_SLUG = "project_slug"
|
|
67
64
|
PROJECT_UUID = "project_uuid"
|
|
68
65
|
PROVIDER_NAME = "provider_name"
|
|
66
|
+
PROVIDER_SLUG = "provider_slug"
|
|
69
67
|
PROVIDER_UUID = "provider_uuid"
|
|
70
68
|
REPORT = "report"
|
|
71
69
|
RESOURCE_TYPE = "resource_type"
|
|
@@ -37,9 +37,6 @@ class MarketplaceOrdersListFieldItem(str, Enum):
|
|
|
37
37
|
NEW_PLAN_UUID = "new_plan_uuid"
|
|
38
38
|
OFFERING = "offering"
|
|
39
39
|
OFFERING_BILLABLE = "offering_billable"
|
|
40
|
-
OFFERING_CUSTOMER_NAME = "offering_customer_name"
|
|
41
|
-
OFFERING_CUSTOMER_SLUG = "offering_customer_slug"
|
|
42
|
-
OFFERING_CUSTOMER_UUID = "offering_customer_uuid"
|
|
43
40
|
OFFERING_DESCRIPTION = "offering_description"
|
|
44
41
|
OFFERING_IMAGE = "offering_image"
|
|
45
42
|
OFFERING_NAME = "offering_name"
|
|
@@ -66,6 +63,7 @@ class MarketplaceOrdersListFieldItem(str, Enum):
|
|
|
66
63
|
PROVIDER_REVIEWED_BY = "provider_reviewed_by"
|
|
67
64
|
PROVIDER_REVIEWED_BY_FULL_NAME = "provider_reviewed_by_full_name"
|
|
68
65
|
PROVIDER_REVIEWED_BY_USERNAME = "provider_reviewed_by_username"
|
|
66
|
+
PROVIDER_SLUG = "provider_slug"
|
|
69
67
|
PROVIDER_UUID = "provider_uuid"
|
|
70
68
|
REQUEST_COMMENT = "request_comment"
|
|
71
69
|
RESOURCE_NAME = "resource_name"
|
|
@@ -37,9 +37,6 @@ class MarketplaceOrdersRetrieveFieldItem(str, Enum):
|
|
|
37
37
|
NEW_PLAN_UUID = "new_plan_uuid"
|
|
38
38
|
OFFERING = "offering"
|
|
39
39
|
OFFERING_BILLABLE = "offering_billable"
|
|
40
|
-
OFFERING_CUSTOMER_NAME = "offering_customer_name"
|
|
41
|
-
OFFERING_CUSTOMER_SLUG = "offering_customer_slug"
|
|
42
|
-
OFFERING_CUSTOMER_UUID = "offering_customer_uuid"
|
|
43
40
|
OFFERING_DESCRIPTION = "offering_description"
|
|
44
41
|
OFFERING_IMAGE = "offering_image"
|
|
45
42
|
OFFERING_NAME = "offering_name"
|
|
@@ -66,6 +63,7 @@ class MarketplaceOrdersRetrieveFieldItem(str, Enum):
|
|
|
66
63
|
PROVIDER_REVIEWED_BY = "provider_reviewed_by"
|
|
67
64
|
PROVIDER_REVIEWED_BY_FULL_NAME = "provider_reviewed_by_full_name"
|
|
68
65
|
PROVIDER_REVIEWED_BY_USERNAME = "provider_reviewed_by_username"
|
|
66
|
+
PROVIDER_SLUG = "provider_slug"
|
|
69
67
|
PROVIDER_UUID = "provider_uuid"
|
|
70
68
|
REQUEST_COMMENT = "request_comment"
|
|
71
69
|
RESOURCE_NAME = "resource_name"
|
|
@@ -33,9 +33,6 @@ class MarketplaceProviderResourcesDetailsRetrieveFieldItem(str, Enum):
|
|
|
33
33
|
NAME = "name"
|
|
34
34
|
OFFERING = "offering"
|
|
35
35
|
OFFERING_BILLABLE = "offering_billable"
|
|
36
|
-
OFFERING_CUSTOMER_NAME = "offering_customer_name"
|
|
37
|
-
OFFERING_CUSTOMER_SLUG = "offering_customer_slug"
|
|
38
|
-
OFFERING_CUSTOMER_UUID = "offering_customer_uuid"
|
|
39
36
|
OFFERING_DESCRIPTION = "offering_description"
|
|
40
37
|
OFFERING_IMAGE = "offering_image"
|
|
41
38
|
OFFERING_NAME = "offering_name"
|
|
@@ -66,6 +63,7 @@ class MarketplaceProviderResourcesDetailsRetrieveFieldItem(str, Enum):
|
|
|
66
63
|
PROJECT_SLUG = "project_slug"
|
|
67
64
|
PROJECT_UUID = "project_uuid"
|
|
68
65
|
PROVIDER_NAME = "provider_name"
|
|
66
|
+
PROVIDER_SLUG = "provider_slug"
|
|
69
67
|
PROVIDER_UUID = "provider_uuid"
|
|
70
68
|
REPORT = "report"
|
|
71
69
|
RESOURCE_TYPE = "resource_type"
|
|
@@ -33,9 +33,6 @@ class MarketplaceProviderResourcesListFieldItem(str, Enum):
|
|
|
33
33
|
NAME = "name"
|
|
34
34
|
OFFERING = "offering"
|
|
35
35
|
OFFERING_BILLABLE = "offering_billable"
|
|
36
|
-
OFFERING_CUSTOMER_NAME = "offering_customer_name"
|
|
37
|
-
OFFERING_CUSTOMER_SLUG = "offering_customer_slug"
|
|
38
|
-
OFFERING_CUSTOMER_UUID = "offering_customer_uuid"
|
|
39
36
|
OFFERING_DESCRIPTION = "offering_description"
|
|
40
37
|
OFFERING_IMAGE = "offering_image"
|
|
41
38
|
OFFERING_NAME = "offering_name"
|
|
@@ -66,6 +63,7 @@ class MarketplaceProviderResourcesListFieldItem(str, Enum):
|
|
|
66
63
|
PROJECT_SLUG = "project_slug"
|
|
67
64
|
PROJECT_UUID = "project_uuid"
|
|
68
65
|
PROVIDER_NAME = "provider_name"
|
|
66
|
+
PROVIDER_SLUG = "provider_slug"
|
|
69
67
|
PROVIDER_UUID = "provider_uuid"
|
|
70
68
|
REPORT = "report"
|
|
71
69
|
RESOURCE_TYPE = "resource_type"
|
|
@@ -33,9 +33,6 @@ class MarketplaceProviderResourcesRetrieveFieldItem(str, Enum):
|
|
|
33
33
|
NAME = "name"
|
|
34
34
|
OFFERING = "offering"
|
|
35
35
|
OFFERING_BILLABLE = "offering_billable"
|
|
36
|
-
OFFERING_CUSTOMER_NAME = "offering_customer_name"
|
|
37
|
-
OFFERING_CUSTOMER_SLUG = "offering_customer_slug"
|
|
38
|
-
OFFERING_CUSTOMER_UUID = "offering_customer_uuid"
|
|
39
36
|
OFFERING_DESCRIPTION = "offering_description"
|
|
40
37
|
OFFERING_IMAGE = "offering_image"
|
|
41
38
|
OFFERING_NAME = "offering_name"
|
|
@@ -66,6 +63,7 @@ class MarketplaceProviderResourcesRetrieveFieldItem(str, Enum):
|
|
|
66
63
|
PROJECT_SLUG = "project_slug"
|
|
67
64
|
PROJECT_UUID = "project_uuid"
|
|
68
65
|
PROVIDER_NAME = "provider_name"
|
|
66
|
+
PROVIDER_SLUG = "provider_slug"
|
|
69
67
|
PROVIDER_UUID = "provider_uuid"
|
|
70
68
|
REPORT = "report"
|
|
71
69
|
RESOURCE_TYPE = "resource_type"
|
|
@@ -33,9 +33,6 @@ class MarketplaceResourcesDetailsRetrieveFieldItem(str, Enum):
|
|
|
33
33
|
NAME = "name"
|
|
34
34
|
OFFERING = "offering"
|
|
35
35
|
OFFERING_BILLABLE = "offering_billable"
|
|
36
|
-
OFFERING_CUSTOMER_NAME = "offering_customer_name"
|
|
37
|
-
OFFERING_CUSTOMER_SLUG = "offering_customer_slug"
|
|
38
|
-
OFFERING_CUSTOMER_UUID = "offering_customer_uuid"
|
|
39
36
|
OFFERING_DESCRIPTION = "offering_description"
|
|
40
37
|
OFFERING_IMAGE = "offering_image"
|
|
41
38
|
OFFERING_NAME = "offering_name"
|
|
@@ -66,6 +63,7 @@ class MarketplaceResourcesDetailsRetrieveFieldItem(str, Enum):
|
|
|
66
63
|
PROJECT_SLUG = "project_slug"
|
|
67
64
|
PROJECT_UUID = "project_uuid"
|
|
68
65
|
PROVIDER_NAME = "provider_name"
|
|
66
|
+
PROVIDER_SLUG = "provider_slug"
|
|
69
67
|
PROVIDER_UUID = "provider_uuid"
|
|
70
68
|
REPORT = "report"
|
|
71
69
|
RESOURCE_TYPE = "resource_type"
|
|
@@ -33,9 +33,6 @@ class MarketplaceResourcesListFieldItem(str, Enum):
|
|
|
33
33
|
NAME = "name"
|
|
34
34
|
OFFERING = "offering"
|
|
35
35
|
OFFERING_BILLABLE = "offering_billable"
|
|
36
|
-
OFFERING_CUSTOMER_NAME = "offering_customer_name"
|
|
37
|
-
OFFERING_CUSTOMER_SLUG = "offering_customer_slug"
|
|
38
|
-
OFFERING_CUSTOMER_UUID = "offering_customer_uuid"
|
|
39
36
|
OFFERING_DESCRIPTION = "offering_description"
|
|
40
37
|
OFFERING_IMAGE = "offering_image"
|
|
41
38
|
OFFERING_NAME = "offering_name"
|
|
@@ -66,6 +63,7 @@ class MarketplaceResourcesListFieldItem(str, Enum):
|
|
|
66
63
|
PROJECT_SLUG = "project_slug"
|
|
67
64
|
PROJECT_UUID = "project_uuid"
|
|
68
65
|
PROVIDER_NAME = "provider_name"
|
|
66
|
+
PROVIDER_SLUG = "provider_slug"
|
|
69
67
|
PROVIDER_UUID = "provider_uuid"
|
|
70
68
|
REPORT = "report"
|
|
71
69
|
RESOURCE_TYPE = "resource_type"
|
|
@@ -33,9 +33,6 @@ class MarketplaceResourcesRetrieveFieldItem(str, Enum):
|
|
|
33
33
|
NAME = "name"
|
|
34
34
|
OFFERING = "offering"
|
|
35
35
|
OFFERING_BILLABLE = "offering_billable"
|
|
36
|
-
OFFERING_CUSTOMER_NAME = "offering_customer_name"
|
|
37
|
-
OFFERING_CUSTOMER_SLUG = "offering_customer_slug"
|
|
38
|
-
OFFERING_CUSTOMER_UUID = "offering_customer_uuid"
|
|
39
36
|
OFFERING_DESCRIPTION = "offering_description"
|
|
40
37
|
OFFERING_IMAGE = "offering_image"
|
|
41
38
|
OFFERING_NAME = "offering_name"
|
|
@@ -66,6 +63,7 @@ class MarketplaceResourcesRetrieveFieldItem(str, Enum):
|
|
|
66
63
|
PROJECT_SLUG = "project_slug"
|
|
67
64
|
PROJECT_UUID = "project_uuid"
|
|
68
65
|
PROVIDER_NAME = "provider_name"
|
|
66
|
+
PROVIDER_SLUG = "provider_slug"
|
|
69
67
|
PROVIDER_UUID = "provider_uuid"
|
|
70
68
|
REPORT = "report"
|
|
71
69
|
RESOURCE_TYPE = "resource_type"
|
|
@@ -12,10 +12,11 @@ class MarketplaceRobotAccountsListFieldItem(str, Enum):
|
|
|
12
12
|
FINGERPRINTS = "fingerprints"
|
|
13
13
|
KEYS = "keys"
|
|
14
14
|
MODIFIED = "modified"
|
|
15
|
-
OFFERING_CUSTOMER_UUID = "offering_customer_uuid"
|
|
16
15
|
OFFERING_PLUGIN_OPTIONS = "offering_plugin_options"
|
|
17
16
|
PROJECT_NAME = "project_name"
|
|
18
17
|
PROJECT_UUID = "project_uuid"
|
|
18
|
+
PROVIDER_NAME = "provider_name"
|
|
19
|
+
PROVIDER_UUID = "provider_uuid"
|
|
19
20
|
RESOURCE = "resource"
|
|
20
21
|
RESOURCE_NAME = "resource_name"
|
|
21
22
|
RESOURCE_UUID = "resource_uuid"
|
|
@@ -12,10 +12,11 @@ class MarketplaceRobotAccountsRetrieveFieldItem(str, Enum):
|
|
|
12
12
|
FINGERPRINTS = "fingerprints"
|
|
13
13
|
KEYS = "keys"
|
|
14
14
|
MODIFIED = "modified"
|
|
15
|
-
OFFERING_CUSTOMER_UUID = "offering_customer_uuid"
|
|
16
15
|
OFFERING_PLUGIN_OPTIONS = "offering_plugin_options"
|
|
17
16
|
PROJECT_NAME = "project_name"
|
|
18
17
|
PROJECT_UUID = "project_uuid"
|
|
18
|
+
PROVIDER_NAME = "provider_name"
|
|
19
|
+
PROVIDER_UUID = "provider_uuid"
|
|
19
20
|
RESOURCE = "resource"
|
|
20
21
|
RESOURCE_NAME = "resource_name"
|
|
21
22
|
RESOURCE_UUID = "resource_uuid"
|
|
@@ -39,6 +39,7 @@ class MergedPluginOptions:
|
|
|
39
39
|
resources
|
|
40
40
|
order_supports_comments_and_metadata (Union[Unset, bool]): If set to True, orders will support comments and
|
|
41
41
|
metadata
|
|
42
|
+
conceal_billing_data (Union[Unset, bool]): If set to True, pricing and components tab would be concealed.
|
|
42
43
|
default_internal_network_mtu (Union[Unset, int]): If set, it will be used as a default MTU for the first network
|
|
43
44
|
in a tenant
|
|
44
45
|
max_instances (Union[Unset, int]): Default limit for number of instances in OpenStack tenant
|
|
@@ -93,6 +94,7 @@ class MergedPluginOptions:
|
|
|
93
94
|
maximal_resource_count_per_project: Union[Unset, int] = UNSET
|
|
94
95
|
required_team_role_for_provisioning: Union[Unset, str] = UNSET
|
|
95
96
|
order_supports_comments_and_metadata: Union[Unset, bool] = UNSET
|
|
97
|
+
conceal_billing_data: Union[Unset, bool] = UNSET
|
|
96
98
|
default_internal_network_mtu: Union[Unset, int] = UNSET
|
|
97
99
|
max_instances: Union[Unset, int] = UNSET
|
|
98
100
|
max_volumes: Union[Unset, int] = UNSET
|
|
@@ -161,6 +163,8 @@ class MergedPluginOptions:
|
|
|
161
163
|
|
|
162
164
|
order_supports_comments_and_metadata = self.order_supports_comments_and_metadata
|
|
163
165
|
|
|
166
|
+
conceal_billing_data = self.conceal_billing_data
|
|
167
|
+
|
|
164
168
|
default_internal_network_mtu = self.default_internal_network_mtu
|
|
165
169
|
|
|
166
170
|
max_instances = self.max_instances
|
|
@@ -276,6 +280,8 @@ class MergedPluginOptions:
|
|
|
276
280
|
field_dict["required_team_role_for_provisioning"] = required_team_role_for_provisioning
|
|
277
281
|
if order_supports_comments_and_metadata is not UNSET:
|
|
278
282
|
field_dict["order_supports_comments_and_metadata"] = order_supports_comments_and_metadata
|
|
283
|
+
if conceal_billing_data is not UNSET:
|
|
284
|
+
field_dict["conceal_billing_data"] = conceal_billing_data
|
|
279
285
|
if default_internal_network_mtu is not UNSET:
|
|
280
286
|
field_dict["default_internal_network_mtu"] = default_internal_network_mtu
|
|
281
287
|
if max_instances is not UNSET:
|
|
@@ -395,6 +401,8 @@ class MergedPluginOptions:
|
|
|
395
401
|
|
|
396
402
|
order_supports_comments_and_metadata = d.pop("order_supports_comments_and_metadata", UNSET)
|
|
397
403
|
|
|
404
|
+
conceal_billing_data = d.pop("conceal_billing_data", UNSET)
|
|
405
|
+
|
|
398
406
|
default_internal_network_mtu = d.pop("default_internal_network_mtu", UNSET)
|
|
399
407
|
|
|
400
408
|
max_instances = d.pop("max_instances", UNSET)
|
|
@@ -519,6 +527,7 @@ class MergedPluginOptions:
|
|
|
519
527
|
maximal_resource_count_per_project=maximal_resource_count_per_project,
|
|
520
528
|
required_team_role_for_provisioning=required_team_role_for_provisioning,
|
|
521
529
|
order_supports_comments_and_metadata=order_supports_comments_and_metadata,
|
|
530
|
+
conceal_billing_data=conceal_billing_data,
|
|
522
531
|
default_internal_network_mtu=default_internal_network_mtu,
|
|
523
532
|
max_instances=max_instances,
|
|
524
533
|
max_volumes=max_volumes,
|
|
@@ -39,6 +39,7 @@ class MergedPluginOptionsRequest:
|
|
|
39
39
|
resources
|
|
40
40
|
order_supports_comments_and_metadata (Union[Unset, bool]): If set to True, orders will support comments and
|
|
41
41
|
metadata
|
|
42
|
+
conceal_billing_data (Union[Unset, bool]): If set to True, pricing and components tab would be concealed.
|
|
42
43
|
default_internal_network_mtu (Union[Unset, int]): If set, it will be used as a default MTU for the first network
|
|
43
44
|
in a tenant
|
|
44
45
|
max_instances (Union[Unset, int]): Default limit for number of instances in OpenStack tenant
|
|
@@ -93,6 +94,7 @@ class MergedPluginOptionsRequest:
|
|
|
93
94
|
maximal_resource_count_per_project: Union[Unset, int] = UNSET
|
|
94
95
|
required_team_role_for_provisioning: Union[Unset, str] = UNSET
|
|
95
96
|
order_supports_comments_and_metadata: Union[Unset, bool] = UNSET
|
|
97
|
+
conceal_billing_data: Union[Unset, bool] = UNSET
|
|
96
98
|
default_internal_network_mtu: Union[Unset, int] = UNSET
|
|
97
99
|
max_instances: Union[Unset, int] = UNSET
|
|
98
100
|
max_volumes: Union[Unset, int] = UNSET
|
|
@@ -161,6 +163,8 @@ class MergedPluginOptionsRequest:
|
|
|
161
163
|
|
|
162
164
|
order_supports_comments_and_metadata = self.order_supports_comments_and_metadata
|
|
163
165
|
|
|
166
|
+
conceal_billing_data = self.conceal_billing_data
|
|
167
|
+
|
|
164
168
|
default_internal_network_mtu = self.default_internal_network_mtu
|
|
165
169
|
|
|
166
170
|
max_instances = self.max_instances
|
|
@@ -276,6 +280,8 @@ class MergedPluginOptionsRequest:
|
|
|
276
280
|
field_dict["required_team_role_for_provisioning"] = required_team_role_for_provisioning
|
|
277
281
|
if order_supports_comments_and_metadata is not UNSET:
|
|
278
282
|
field_dict["order_supports_comments_and_metadata"] = order_supports_comments_and_metadata
|
|
283
|
+
if conceal_billing_data is not UNSET:
|
|
284
|
+
field_dict["conceal_billing_data"] = conceal_billing_data
|
|
279
285
|
if default_internal_network_mtu is not UNSET:
|
|
280
286
|
field_dict["default_internal_network_mtu"] = default_internal_network_mtu
|
|
281
287
|
if max_instances is not UNSET:
|
|
@@ -395,6 +401,8 @@ class MergedPluginOptionsRequest:
|
|
|
395
401
|
|
|
396
402
|
order_supports_comments_and_metadata = d.pop("order_supports_comments_and_metadata", UNSET)
|
|
397
403
|
|
|
404
|
+
conceal_billing_data = d.pop("conceal_billing_data", UNSET)
|
|
405
|
+
|
|
398
406
|
default_internal_network_mtu = d.pop("default_internal_network_mtu", UNSET)
|
|
399
407
|
|
|
400
408
|
max_instances = d.pop("max_instances", UNSET)
|
|
@@ -519,6 +527,7 @@ class MergedPluginOptionsRequest:
|
|
|
519
527
|
maximal_resource_count_per_project=maximal_resource_count_per_project,
|
|
520
528
|
required_team_role_for_provisioning=required_team_role_for_provisioning,
|
|
521
529
|
order_supports_comments_and_metadata=order_supports_comments_and_metadata,
|
|
530
|
+
conceal_billing_data=conceal_billing_data,
|
|
522
531
|
default_internal_network_mtu=default_internal_network_mtu,
|
|
523
532
|
max_instances=max_instances,
|
|
524
533
|
max_volumes=max_volumes,
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import TYPE_CHECKING, Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from ..models.project_hyperlink_request import ProjectHyperlinkRequest
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="MoveResourceRequest")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@_attrs_define
|
|
15
|
+
class MoveResourceRequest:
|
|
16
|
+
"""
|
|
17
|
+
Attributes:
|
|
18
|
+
project (ProjectHyperlinkRequest):
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
project: "ProjectHyperlinkRequest"
|
|
22
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
23
|
+
|
|
24
|
+
def to_dict(self) -> dict[str, Any]:
|
|
25
|
+
project = self.project.to_dict()
|
|
26
|
+
|
|
27
|
+
field_dict: dict[str, Any] = {}
|
|
28
|
+
field_dict.update(self.additional_properties)
|
|
29
|
+
field_dict.update(
|
|
30
|
+
{
|
|
31
|
+
"project": project,
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
return field_dict
|
|
36
|
+
|
|
37
|
+
@classmethod
|
|
38
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
39
|
+
from ..models.project_hyperlink_request import ProjectHyperlinkRequest
|
|
40
|
+
|
|
41
|
+
d = dict(src_dict)
|
|
42
|
+
project = ProjectHyperlinkRequest.from_dict(d.pop("project"))
|
|
43
|
+
|
|
44
|
+
move_resource_request = cls(
|
|
45
|
+
project=project,
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
move_resource_request.additional_properties = d
|
|
49
|
+
return move_resource_request
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def additional_keys(self) -> list[str]:
|
|
53
|
+
return list(self.additional_properties.keys())
|
|
54
|
+
|
|
55
|
+
def __getitem__(self, key: str) -> Any:
|
|
56
|
+
return self.additional_properties[key]
|
|
57
|
+
|
|
58
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
59
|
+
self.additional_properties[key] = value
|
|
60
|
+
|
|
61
|
+
def __delitem__(self, key: str) -> None:
|
|
62
|
+
del self.additional_properties[key]
|
|
63
|
+
|
|
64
|
+
def __contains__(self, key: str) -> bool:
|
|
65
|
+
return key in self.additional_properties
|
|
@@ -28,11 +28,9 @@ class OpenStackBackupRestoration:
|
|
|
28
28
|
flavor (Union[Unset, str]): Flavor to be used for the restored instance. If not specified, original instance
|
|
29
29
|
flavor will be used
|
|
30
30
|
name (Union[Unset, str]): New instance name. Leave blank to use source instance name.
|
|
31
|
-
floating_ips (Union[Unset, list['OpenStackNestedFloatingIP']]):
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
the restored instance
|
|
35
|
-
ports (Union[Unset, list['OpenStackNestedPort']]): Network ports that will be attached to the restored instance
|
|
31
|
+
floating_ips (Union[Unset, list['OpenStackNestedFloatingIP']]):
|
|
32
|
+
security_groups (Union[Unset, list['OpenStackNestedSecurityGroup']]):
|
|
33
|
+
ports (Union[Unset, list['OpenStackNestedPort']]):
|
|
36
34
|
"""
|
|
37
35
|
|
|
38
36
|
uuid: Union[Unset, UUID] = UNSET
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import TYPE_CHECKING, 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
|
+
if TYPE_CHECKING:
|
|
10
|
+
from ..models.open_stack_create_floating_ip_request import OpenStackCreateFloatingIPRequest
|
|
11
|
+
from ..models.open_stack_create_port_request import OpenStackCreatePortRequest
|
|
12
|
+
from ..models.open_stack_security_group_hyperlink_request import OpenStackSecurityGroupHyperlinkRequest
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
T = TypeVar("T", bound="OpenStackBackupRestorationCreateRequest")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@_attrs_define
|
|
19
|
+
class OpenStackBackupRestorationCreateRequest:
|
|
20
|
+
"""
|
|
21
|
+
Attributes:
|
|
22
|
+
flavor (str): Flavor to be used for the restored instance. If not specified, original instance flavor will be
|
|
23
|
+
used
|
|
24
|
+
name (Union[Unset, str]): New instance name. Leave blank to use source instance name.
|
|
25
|
+
floating_ips (Union[Unset, list['OpenStackCreateFloatingIPRequest']]): Floating IPs that will be assigned to the
|
|
26
|
+
restored instance
|
|
27
|
+
security_groups (Union[Unset, list['OpenStackSecurityGroupHyperlinkRequest']]): Security groups that will be
|
|
28
|
+
assigned to the restored instance
|
|
29
|
+
ports (Union[Unset, list['OpenStackCreatePortRequest']]): Network ports that will be attached to the restored
|
|
30
|
+
instance
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
flavor: str
|
|
34
|
+
name: Union[Unset, str] = UNSET
|
|
35
|
+
floating_ips: Union[Unset, list["OpenStackCreateFloatingIPRequest"]] = UNSET
|
|
36
|
+
security_groups: Union[Unset, list["OpenStackSecurityGroupHyperlinkRequest"]] = UNSET
|
|
37
|
+
ports: Union[Unset, list["OpenStackCreatePortRequest"]] = UNSET
|
|
38
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
39
|
+
|
|
40
|
+
def to_dict(self) -> dict[str, Any]:
|
|
41
|
+
flavor = self.flavor
|
|
42
|
+
|
|
43
|
+
name = self.name
|
|
44
|
+
|
|
45
|
+
floating_ips: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
46
|
+
if not isinstance(self.floating_ips, Unset):
|
|
47
|
+
floating_ips = []
|
|
48
|
+
for floating_ips_item_data in self.floating_ips:
|
|
49
|
+
floating_ips_item = floating_ips_item_data.to_dict()
|
|
50
|
+
floating_ips.append(floating_ips_item)
|
|
51
|
+
|
|
52
|
+
security_groups: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
53
|
+
if not isinstance(self.security_groups, Unset):
|
|
54
|
+
security_groups = []
|
|
55
|
+
for security_groups_item_data in self.security_groups:
|
|
56
|
+
security_groups_item = security_groups_item_data.to_dict()
|
|
57
|
+
security_groups.append(security_groups_item)
|
|
58
|
+
|
|
59
|
+
ports: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
60
|
+
if not isinstance(self.ports, Unset):
|
|
61
|
+
ports = []
|
|
62
|
+
for ports_item_data in self.ports:
|
|
63
|
+
ports_item = ports_item_data.to_dict()
|
|
64
|
+
ports.append(ports_item)
|
|
65
|
+
|
|
66
|
+
field_dict: dict[str, Any] = {}
|
|
67
|
+
field_dict.update(self.additional_properties)
|
|
68
|
+
field_dict.update(
|
|
69
|
+
{
|
|
70
|
+
"flavor": flavor,
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
if name is not UNSET:
|
|
74
|
+
field_dict["name"] = name
|
|
75
|
+
if floating_ips is not UNSET:
|
|
76
|
+
field_dict["floating_ips"] = floating_ips
|
|
77
|
+
if security_groups is not UNSET:
|
|
78
|
+
field_dict["security_groups"] = security_groups
|
|
79
|
+
if ports is not UNSET:
|
|
80
|
+
field_dict["ports"] = ports
|
|
81
|
+
|
|
82
|
+
return field_dict
|
|
83
|
+
|
|
84
|
+
@classmethod
|
|
85
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
86
|
+
from ..models.open_stack_create_floating_ip_request import OpenStackCreateFloatingIPRequest
|
|
87
|
+
from ..models.open_stack_create_port_request import OpenStackCreatePortRequest
|
|
88
|
+
from ..models.open_stack_security_group_hyperlink_request import OpenStackSecurityGroupHyperlinkRequest
|
|
89
|
+
|
|
90
|
+
d = dict(src_dict)
|
|
91
|
+
flavor = d.pop("flavor")
|
|
92
|
+
|
|
93
|
+
name = d.pop("name", UNSET)
|
|
94
|
+
|
|
95
|
+
floating_ips = []
|
|
96
|
+
_floating_ips = d.pop("floating_ips", UNSET)
|
|
97
|
+
for floating_ips_item_data in _floating_ips or []:
|
|
98
|
+
floating_ips_item = OpenStackCreateFloatingIPRequest.from_dict(floating_ips_item_data)
|
|
99
|
+
|
|
100
|
+
floating_ips.append(floating_ips_item)
|
|
101
|
+
|
|
102
|
+
security_groups = []
|
|
103
|
+
_security_groups = d.pop("security_groups", UNSET)
|
|
104
|
+
for security_groups_item_data in _security_groups or []:
|
|
105
|
+
security_groups_item = OpenStackSecurityGroupHyperlinkRequest.from_dict(security_groups_item_data)
|
|
106
|
+
|
|
107
|
+
security_groups.append(security_groups_item)
|
|
108
|
+
|
|
109
|
+
ports = []
|
|
110
|
+
_ports = d.pop("ports", UNSET)
|
|
111
|
+
for ports_item_data in _ports or []:
|
|
112
|
+
ports_item = OpenStackCreatePortRequest.from_dict(ports_item_data)
|
|
113
|
+
|
|
114
|
+
ports.append(ports_item)
|
|
115
|
+
|
|
116
|
+
open_stack_backup_restoration_create_request = cls(
|
|
117
|
+
flavor=flavor,
|
|
118
|
+
name=name,
|
|
119
|
+
floating_ips=floating_ips,
|
|
120
|
+
security_groups=security_groups,
|
|
121
|
+
ports=ports,
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
open_stack_backup_restoration_create_request.additional_properties = d
|
|
125
|
+
return open_stack_backup_restoration_create_request
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
def additional_keys(self) -> list[str]:
|
|
129
|
+
return list(self.additional_properties.keys())
|
|
130
|
+
|
|
131
|
+
def __getitem__(self, key: str) -> Any:
|
|
132
|
+
return self.additional_properties[key]
|
|
133
|
+
|
|
134
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
135
|
+
self.additional_properties[key] = value
|
|
136
|
+
|
|
137
|
+
def __delitem__(self, key: str) -> None:
|
|
138
|
+
del self.additional_properties[key]
|
|
139
|
+
|
|
140
|
+
def __contains__(self, key: str) -> bool:
|
|
141
|
+
return key in self.additional_properties
|