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.

Files changed (74) hide show
  1. waldur_api_client/api/marketplace_project_update_requests/marketplace_project_update_requests_count.py +18 -18
  2. waldur_api_client/api/marketplace_project_update_requests/marketplace_project_update_requests_list.py +18 -18
  3. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_move_resource.py +22 -0
  4. waldur_api_client/api/marketplace_resources/marketplace_resources_move_resource.py +22 -0
  5. waldur_api_client/api/openstack_backups/openstack_backups_restore.py +10 -10
  6. waldur_api_client/api/rancher_services/rancher_services_create.py +22 -22
  7. waldur_api_client/models/__init__.py +26 -6
  8. waldur_api_client/models/azure_sql_server_create_order_attributes.py +5 -10
  9. waldur_api_client/models/azure_virtual_machine_create_order_attributes.py +7 -12
  10. waldur_api_client/models/booking_resource.py +16 -34
  11. waldur_api_client/models/booking_resources_list_field_item.py +1 -3
  12. waldur_api_client/models/booking_resources_retrieve_field_item.py +1 -3
  13. waldur_api_client/models/constance_settings.py +9 -0
  14. waldur_api_client/models/constance_settings_request.py +9 -0
  15. waldur_api_client/models/constance_settings_request_form.py +9 -0
  16. waldur_api_client/models/constance_settings_request_multipart.py +14 -0
  17. waldur_api_client/models/event_groups_enum.py +1 -0
  18. waldur_api_client/models/event_types_enum.py +2 -0
  19. waldur_api_client/models/generic_order_attributes.py +1 -2
  20. waldur_api_client/models/managed_rancher_cluster_resources_list_field_item.py +1 -3
  21. waldur_api_client/models/managed_rancher_cluster_resources_retrieve_field_item.py +1 -3
  22. waldur_api_client/models/marketplace_orders_list_field_item.py +1 -3
  23. waldur_api_client/models/marketplace_orders_retrieve_field_item.py +1 -3
  24. waldur_api_client/models/marketplace_provider_resources_details_retrieve_field_item.py +1 -3
  25. waldur_api_client/models/marketplace_provider_resources_list_field_item.py +1 -3
  26. waldur_api_client/models/marketplace_provider_resources_retrieve_field_item.py +1 -3
  27. waldur_api_client/models/marketplace_resources_details_retrieve_field_item.py +1 -3
  28. waldur_api_client/models/marketplace_resources_list_field_item.py +1 -3
  29. waldur_api_client/models/marketplace_resources_retrieve_field_item.py +1 -3
  30. waldur_api_client/models/marketplace_robot_accounts_list_field_item.py +2 -1
  31. waldur_api_client/models/marketplace_robot_accounts_retrieve_field_item.py +2 -1
  32. waldur_api_client/models/merged_plugin_options.py +9 -0
  33. waldur_api_client/models/merged_plugin_options_request.py +9 -0
  34. waldur_api_client/models/move_resource_request.py +65 -0
  35. waldur_api_client/models/open_stack_backup_restoration.py +3 -5
  36. waldur_api_client/models/open_stack_backup_restoration_create_request.py +141 -0
  37. waldur_api_client/models/open_stack_backup_restoration_request.py +22 -30
  38. waldur_api_client/models/{open_stack_nested_security_group_request.py → open_stack_create_floating_ip_request.py} +17 -6
  39. waldur_api_client/models/open_stack_create_port_request.py +104 -0
  40. waldur_api_client/models/open_stack_instance.py +13 -29
  41. waldur_api_client/models/open_stack_instance_create_order_attributes.py +67 -54
  42. waldur_api_client/models/open_stack_instance_floating_i_ps_update_request.py +5 -5
  43. waldur_api_client/models/open_stack_instance_ports_update_request.py +5 -5
  44. waldur_api_client/models/open_stack_instance_request.py +1 -67
  45. waldur_api_client/models/open_stack_nested_port_request.py +0 -9
  46. waldur_api_client/models/open_stack_security_group_hyperlink_request.py +59 -0
  47. waldur_api_client/models/open_stack_server_group_hyperlink_request.py +59 -0
  48. waldur_api_client/models/open_stack_tenant_create_order_attributes.py +9 -14
  49. waldur_api_client/models/open_stack_volume_create_order_attributes.py +8 -13
  50. waldur_api_client/models/openstack_instances_list_field_item.py +0 -7
  51. waldur_api_client/models/openstack_instances_retrieve_field_item.py +0 -7
  52. waldur_api_client/models/order_create.py +8 -0
  53. waldur_api_client/models/order_details.py +16 -34
  54. waldur_api_client/models/patched_open_stack_instance_request.py +1 -67
  55. waldur_api_client/models/{rancher_nested_security_group.py → project_hyperlink_request.py} +5 -5
  56. waldur_api_client/models/rancher_clusters_list_field_item.py +0 -1
  57. waldur_api_client/models/rancher_clusters_retrieve_field_item.py +0 -1
  58. waldur_api_client/models/rancher_service_create.py +508 -0
  59. waldur_api_client/models/rancher_service_create_marketplace_offering_plugin_options_type_0.py +44 -0
  60. waldur_api_client/models/rancher_service_create_request.py +185 -0
  61. waldur_api_client/models/rancher_service_request.py +16 -19
  62. waldur_api_client/models/rancher_workload_create.py +59 -0
  63. waldur_api_client/models/rancher_workload_create_request.py +59 -0
  64. waldur_api_client/models/resource.py +16 -34
  65. waldur_api_client/models/robot_account_details.py +22 -13
  66. waldur_api_client/models/slurm_invoices_slurm_package_create_order_attributes.py +4 -9
  67. waldur_api_client/models/v_mware_virtual_machine_create_order_attributes.py +11 -16
  68. waldur_api_client/models/vmware_nested_network.py +0 -25
  69. waldur_api_client/models/vmware_nested_network_request.py +6 -14
  70. {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.3.dist-info}/METADATA +1 -1
  71. {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.3.dist-info}/RECORD +73 -64
  72. waldur_api_client/models/open_stack_data_volume.py +0 -81
  73. {waldur_api_client-7.8.2.dist-info → waldur_api_client-7.8.3.dist-info}/WHEEL +0 -0
  74. {waldur_api_client-7.8.2.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 TYPE_CHECKING, Any, TypeVar, Union, cast
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
- """This mixin allows to specify list of fields to be rendered by serializer.
15
- It expects that request is available in serializer's context.
16
-
17
- It is disabled for nested serializers (where parent is another serializer)
18
- but remains active for list views (where parent is a ListSerializer).
19
-
20
- Attributes:
21
- name (str):
22
- description (Union[Unset, str]):
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
- """This mixin allows to specify list of fields to be rendered by serializer.
15
- It expects that request is available in serializer's context.
16
-
17
- It is disabled for nested serializers (where parent is another serializer)
18
- but remains active for list views (where parent is a ListSerializer).
19
-
20
- Attributes:
21
- name (str):
22
- 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"
@@ -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,
@@ -37,6 +37,7 @@ class OrderDetails:
37
37
  OpenStack.
38
38
  provider_name (Union[Unset, str]):
39
39
  provider_uuid (Union[Unset, UUID]):
40
+ provider_slug (Union[Unset, UUID]):
40
41
  category_title (Union[Unset, str]):
41
42
  category_uuid (Union[Unset, UUID]):
42
43
  category_icon (Union[Unset, str]):
@@ -98,9 +99,6 @@ class OrderDetails:
98
99
  activation_price (Union[Unset, float]):
99
100
  termination_comment (Union[None, Unset, str]):
100
101
  backend_id (Union[Unset, str]):
101
- offering_customer_uuid (Union[Unset, UUID]):
102
- offering_customer_name (Union[Unset, str]):
103
- offering_customer_slug (Union[Unset, str]):
104
102
  issue (Union['IssueReference', None, Unset]):
105
103
  """
106
104
 
@@ -116,6 +114,7 @@ class OrderDetails:
116
114
  offering_plugin_options: Union[Unset, Any] = UNSET
117
115
  provider_name: Union[Unset, str] = UNSET
118
116
  provider_uuid: Union[Unset, UUID] = UNSET
117
+ provider_slug: Union[Unset, UUID] = UNSET
119
118
  category_title: Union[Unset, str] = UNSET
120
119
  category_uuid: Union[Unset, UUID] = UNSET
121
120
  category_icon: Union[Unset, str] = UNSET
@@ -172,9 +171,6 @@ class OrderDetails:
172
171
  activation_price: Union[Unset, float] = UNSET
173
172
  termination_comment: Union[None, Unset, str] = UNSET
174
173
  backend_id: Union[Unset, str] = UNSET
175
- offering_customer_uuid: Union[Unset, UUID] = UNSET
176
- offering_customer_name: Union[Unset, str] = UNSET
177
- offering_customer_slug: Union[Unset, str] = UNSET
178
174
  issue: Union["IssueReference", None, Unset] = UNSET
179
175
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
180
176
 
@@ -209,6 +205,10 @@ class OrderDetails:
209
205
  if not isinstance(self.provider_uuid, Unset):
210
206
  provider_uuid = str(self.provider_uuid)
211
207
 
208
+ provider_slug: Union[Unset, str] = UNSET
209
+ if not isinstance(self.provider_slug, Unset):
210
+ provider_slug = str(self.provider_slug)
211
+
212
212
  category_title = self.category_title
213
213
 
214
214
  category_uuid: Union[Unset, str] = UNSET
@@ -465,14 +465,6 @@ class OrderDetails:
465
465
 
466
466
  backend_id = self.backend_id
467
467
 
468
- offering_customer_uuid: Union[Unset, str] = UNSET
469
- if not isinstance(self.offering_customer_uuid, Unset):
470
- offering_customer_uuid = str(self.offering_customer_uuid)
471
-
472
- offering_customer_name = self.offering_customer_name
473
-
474
- offering_customer_slug = self.offering_customer_slug
475
-
476
468
  issue: Union[None, Unset, dict[str, Any]]
477
469
  if isinstance(self.issue, Unset):
478
470
  issue = UNSET
@@ -508,6 +500,8 @@ class OrderDetails:
508
500
  field_dict["provider_name"] = provider_name
509
501
  if provider_uuid is not UNSET:
510
502
  field_dict["provider_uuid"] = provider_uuid
503
+ if provider_slug is not UNSET:
504
+ field_dict["provider_slug"] = provider_slug
511
505
  if category_title is not UNSET:
512
506
  field_dict["category_title"] = category_title
513
507
  if category_uuid is not UNSET:
@@ -620,12 +614,6 @@ class OrderDetails:
620
614
  field_dict["termination_comment"] = termination_comment
621
615
  if backend_id is not UNSET:
622
616
  field_dict["backend_id"] = backend_id
623
- if offering_customer_uuid is not UNSET:
624
- field_dict["offering_customer_uuid"] = offering_customer_uuid
625
- if offering_customer_name is not UNSET:
626
- field_dict["offering_customer_name"] = offering_customer_name
627
- if offering_customer_slug is not UNSET:
628
- field_dict["offering_customer_slug"] = offering_customer_slug
629
617
  if issue is not UNSET:
630
618
  field_dict["issue"] = issue
631
619
 
@@ -671,6 +659,13 @@ class OrderDetails:
671
659
  else:
672
660
  provider_uuid = UUID(_provider_uuid)
673
661
 
662
+ _provider_slug = d.pop("provider_slug", UNSET)
663
+ provider_slug: Union[Unset, UUID]
664
+ if isinstance(_provider_slug, Unset):
665
+ provider_slug = UNSET
666
+ else:
667
+ provider_slug = UUID(_provider_slug)
668
+
674
669
  category_title = d.pop("category_title", UNSET)
675
670
 
676
671
  _category_uuid = d.pop("category_uuid", UNSET)
@@ -1094,17 +1089,6 @@ class OrderDetails:
1094
1089
 
1095
1090
  backend_id = d.pop("backend_id", UNSET)
1096
1091
 
1097
- _offering_customer_uuid = d.pop("offering_customer_uuid", UNSET)
1098
- offering_customer_uuid: Union[Unset, UUID]
1099
- if isinstance(_offering_customer_uuid, Unset):
1100
- offering_customer_uuid = UNSET
1101
- else:
1102
- offering_customer_uuid = UUID(_offering_customer_uuid)
1103
-
1104
- offering_customer_name = d.pop("offering_customer_name", UNSET)
1105
-
1106
- offering_customer_slug = d.pop("offering_customer_slug", UNSET)
1107
-
1108
1092
  def _parse_issue(data: object) -> Union["IssueReference", None, Unset]:
1109
1093
  if data is None:
1110
1094
  return data
@@ -1135,6 +1119,7 @@ class OrderDetails:
1135
1119
  offering_plugin_options=offering_plugin_options,
1136
1120
  provider_name=provider_name,
1137
1121
  provider_uuid=provider_uuid,
1122
+ provider_slug=provider_slug,
1138
1123
  category_title=category_title,
1139
1124
  category_uuid=category_uuid,
1140
1125
  category_icon=category_icon,
@@ -1191,9 +1176,6 @@ class OrderDetails:
1191
1176
  activation_price=activation_price,
1192
1177
  termination_comment=termination_comment,
1193
1178
  backend_id=backend_id,
1194
- offering_customer_uuid=offering_customer_uuid,
1195
- offering_customer_name=offering_customer_name,
1196
- offering_customer_slug=offering_customer_slug,
1197
1179
  issue=issue,
1198
1180
  )
1199
1181