waldur-api-client 7.7.9__py3-none-any.whl → 7.8.0__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_offering_users/marketplace_offering_users_count.py +15 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_list.py +15 -0
- waldur_api_client/api/{rancher_clusters/rancher_clusters_destroy.py → marketplace_orders/marketplace_orders_delete_attachment.py} +6 -4
- waldur_api_client/api/{rancher_clusters/rancher_clusters_create.py → marketplace_orders/marketplace_orders_update_attachment.py} +47 -29
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_component_stats_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_costs_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_count.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_customers_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_groups_count.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_groups_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_list.py +15 -0
- waldur_api_client/api/marketplace_public_offerings/marketplace_public_offerings_count.py +15 -0
- waldur_api_client/api/marketplace_public_offerings/marketplace_public_offerings_list.py +15 -0
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_offerings_list.py +15 -0
- waldur_api_client/models/__init__.py +8 -4
- 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/country_enum.py +211 -0
- waldur_api_client/models/customer_request.py +9 -0
- waldur_api_client/models/deployment_mode_enum.py +9 -0
- waldur_api_client/models/identity_provider.py +57 -0
- waldur_api_client/models/identity_provider_request.py +57 -0
- waldur_api_client/models/issue.py +8 -17
- waldur_api_client/models/issue_request.py +8 -17
- waldur_api_client/models/issue_type_enum.py +4 -4
- waldur_api_client/models/marketplace_offering_users_list_field_item.py +2 -0
- waldur_api_client/models/marketplace_offering_users_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_orders_list_field_item.py +2 -0
- waldur_api_client/models/marketplace_orders_retrieve_field_item.py +2 -0
- 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/merged_plugin_options.py +27 -0
- waldur_api_client/models/merged_plugin_options_request.py +27 -0
- waldur_api_client/models/offering.py +9 -0
- waldur_api_client/models/offering_create.py +9 -8
- waldur_api_client/models/offering_create_request.py +9 -0
- waldur_api_client/models/offering_overview_update_request.py +9 -0
- waldur_api_client/models/offering_terms_of_service.py +42 -1
- waldur_api_client/models/offering_user.py +18 -0
- waldur_api_client/models/open_stack_tenant_create_order_attributes.py +0 -18
- waldur_api_client/models/open_stack_tenant_request.py +18 -0
- waldur_api_client/models/order_attachment.py +71 -0
- waldur_api_client/models/order_attachment_request.py +84 -0
- waldur_api_client/models/order_create.py +58 -16
- waldur_api_client/models/order_create_request.py +44 -62
- waldur_api_client/models/order_details.py +65 -16
- waldur_api_client/models/patched_customer_request.py +9 -0
- waldur_api_client/models/patched_identity_provider_request.py +58 -0
- waldur_api_client/models/patched_project_request.py +9 -0
- waldur_api_client/models/patched_protected_call_request.py +9 -0
- waldur_api_client/models/patched_protected_round_request.py +2 -2
- waldur_api_client/models/patched_service_provider_request.py +9 -0
- waldur_api_client/models/patched_user_request.py +9 -0
- waldur_api_client/models/project_request.py +9 -0
- waldur_api_client/models/protected_call_request.py +9 -0
- waldur_api_client/models/protected_round.py +2 -2
- waldur_api_client/models/protected_round_request.py +2 -2
- waldur_api_client/models/provider_offering_details_request.py +9 -0
- waldur_api_client/models/public_offering_details.py +9 -0
- waldur_api_client/models/rancher_cluster_request.py +1 -48
- waldur_api_client/models/resource_update_limits_request.py +56 -1
- waldur_api_client/models/service_provider_request.py +9 -0
- waldur_api_client/models/user_consent_info.py +86 -0
- waldur_api_client/models/user_request.py +9 -0
- {waldur_api_client-7.7.9.dist-info → waldur_api_client-7.8.0.dist-info}/METADATA +4 -2
- {waldur_api_client-7.7.9.dist-info → waldur_api_client-7.8.0.dist-info}/RECORD +68 -66
- {waldur_api_client-7.7.9.dist-info → waldur_api_client-7.8.0.dist-info}/WHEEL +1 -1
- waldur_api_client/models/marketplace_managed_rancher_create_order_attributes.py +0 -144
- waldur_api_client/models/marketplace_rancher_create_order_attributes.py +0 -145
- {waldur_api_client-7.7.9.dist-info → waldur_api_client-7.8.0.dist-info/licenses}/LICENSE +0 -0
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar, Union
|
|
3
|
-
from uuid import UUID
|
|
4
|
-
|
|
5
|
-
from attrs import define as _attrs_define
|
|
6
|
-
from attrs import field as _attrs_field
|
|
7
|
-
|
|
8
|
-
from ..types import UNSET, Unset
|
|
9
|
-
|
|
10
|
-
T = TypeVar("T", bound="MarketplaceManagedRancherCreateOrderAttributes")
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@_attrs_define
|
|
14
|
-
class MarketplaceManagedRancherCreateOrderAttributes:
|
|
15
|
-
"""
|
|
16
|
-
Attributes:
|
|
17
|
-
name (str): Unique identifier for the cluster
|
|
18
|
-
worker_nodes_count (int):
|
|
19
|
-
worker_nodes_flavor_name (str):
|
|
20
|
-
worker_nodes_data_volume_size (int): Data volume size for worker nodes in MB (consistent with OpenStack)
|
|
21
|
-
worker_nodes_data_volume_type_name (Union[Unset, str]):
|
|
22
|
-
openstack_offering_uuid_list (Union[Unset, list[UUID]]): List of UUID of OpenStack offerings where tenant can be
|
|
23
|
-
created
|
|
24
|
-
install_longhorn (Union[Unset, bool]): Longhorn is a distributed block storage deployed on top of Kubernetes
|
|
25
|
-
cluster Default: False.
|
|
26
|
-
worker_nodes_longhorn_volume_size (Union[Unset, int]): Longhorn storage volume size for worker nodes in MB
|
|
27
|
-
(consistent with OpenStack)
|
|
28
|
-
worker_nodes_longhorn_volume_type_name (Union[Unset, str]):
|
|
29
|
-
"""
|
|
30
|
-
|
|
31
|
-
name: str
|
|
32
|
-
worker_nodes_count: int
|
|
33
|
-
worker_nodes_flavor_name: str
|
|
34
|
-
worker_nodes_data_volume_size: int
|
|
35
|
-
worker_nodes_data_volume_type_name: Union[Unset, str] = UNSET
|
|
36
|
-
openstack_offering_uuid_list: Union[Unset, list[UUID]] = UNSET
|
|
37
|
-
install_longhorn: Union[Unset, bool] = False
|
|
38
|
-
worker_nodes_longhorn_volume_size: Union[Unset, int] = UNSET
|
|
39
|
-
worker_nodes_longhorn_volume_type_name: Union[Unset, str] = UNSET
|
|
40
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
41
|
-
|
|
42
|
-
def to_dict(self) -> dict[str, Any]:
|
|
43
|
-
name = self.name
|
|
44
|
-
|
|
45
|
-
worker_nodes_count = self.worker_nodes_count
|
|
46
|
-
|
|
47
|
-
worker_nodes_flavor_name = self.worker_nodes_flavor_name
|
|
48
|
-
|
|
49
|
-
worker_nodes_data_volume_size = self.worker_nodes_data_volume_size
|
|
50
|
-
|
|
51
|
-
worker_nodes_data_volume_type_name = self.worker_nodes_data_volume_type_name
|
|
52
|
-
|
|
53
|
-
openstack_offering_uuid_list: Union[Unset, list[str]] = UNSET
|
|
54
|
-
if not isinstance(self.openstack_offering_uuid_list, Unset):
|
|
55
|
-
openstack_offering_uuid_list = []
|
|
56
|
-
for openstack_offering_uuid_list_item_data in self.openstack_offering_uuid_list:
|
|
57
|
-
openstack_offering_uuid_list_item = str(openstack_offering_uuid_list_item_data)
|
|
58
|
-
openstack_offering_uuid_list.append(openstack_offering_uuid_list_item)
|
|
59
|
-
|
|
60
|
-
install_longhorn = self.install_longhorn
|
|
61
|
-
|
|
62
|
-
worker_nodes_longhorn_volume_size = self.worker_nodes_longhorn_volume_size
|
|
63
|
-
|
|
64
|
-
worker_nodes_longhorn_volume_type_name = self.worker_nodes_longhorn_volume_type_name
|
|
65
|
-
|
|
66
|
-
field_dict: dict[str, Any] = {}
|
|
67
|
-
field_dict.update(self.additional_properties)
|
|
68
|
-
field_dict.update(
|
|
69
|
-
{
|
|
70
|
-
"name": name,
|
|
71
|
-
"worker_nodes_count": worker_nodes_count,
|
|
72
|
-
"worker_nodes_flavor_name": worker_nodes_flavor_name,
|
|
73
|
-
"worker_nodes_data_volume_size": worker_nodes_data_volume_size,
|
|
74
|
-
}
|
|
75
|
-
)
|
|
76
|
-
if worker_nodes_data_volume_type_name is not UNSET:
|
|
77
|
-
field_dict["worker_nodes_data_volume_type_name"] = worker_nodes_data_volume_type_name
|
|
78
|
-
if openstack_offering_uuid_list is not UNSET:
|
|
79
|
-
field_dict["openstack_offering_uuid_list"] = openstack_offering_uuid_list
|
|
80
|
-
if install_longhorn is not UNSET:
|
|
81
|
-
field_dict["install_longhorn"] = install_longhorn
|
|
82
|
-
if worker_nodes_longhorn_volume_size is not UNSET:
|
|
83
|
-
field_dict["worker_nodes_longhorn_volume_size"] = worker_nodes_longhorn_volume_size
|
|
84
|
-
if worker_nodes_longhorn_volume_type_name is not UNSET:
|
|
85
|
-
field_dict["worker_nodes_longhorn_volume_type_name"] = worker_nodes_longhorn_volume_type_name
|
|
86
|
-
|
|
87
|
-
return field_dict
|
|
88
|
-
|
|
89
|
-
@classmethod
|
|
90
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
91
|
-
d = dict(src_dict)
|
|
92
|
-
name = d.pop("name")
|
|
93
|
-
|
|
94
|
-
worker_nodes_count = d.pop("worker_nodes_count")
|
|
95
|
-
|
|
96
|
-
worker_nodes_flavor_name = d.pop("worker_nodes_flavor_name")
|
|
97
|
-
|
|
98
|
-
worker_nodes_data_volume_size = d.pop("worker_nodes_data_volume_size")
|
|
99
|
-
|
|
100
|
-
worker_nodes_data_volume_type_name = d.pop("worker_nodes_data_volume_type_name", UNSET)
|
|
101
|
-
|
|
102
|
-
openstack_offering_uuid_list = []
|
|
103
|
-
_openstack_offering_uuid_list = d.pop("openstack_offering_uuid_list", UNSET)
|
|
104
|
-
for openstack_offering_uuid_list_item_data in _openstack_offering_uuid_list or []:
|
|
105
|
-
openstack_offering_uuid_list_item = UUID(openstack_offering_uuid_list_item_data)
|
|
106
|
-
|
|
107
|
-
openstack_offering_uuid_list.append(openstack_offering_uuid_list_item)
|
|
108
|
-
|
|
109
|
-
install_longhorn = d.pop("install_longhorn", UNSET)
|
|
110
|
-
|
|
111
|
-
worker_nodes_longhorn_volume_size = d.pop("worker_nodes_longhorn_volume_size", UNSET)
|
|
112
|
-
|
|
113
|
-
worker_nodes_longhorn_volume_type_name = d.pop("worker_nodes_longhorn_volume_type_name", UNSET)
|
|
114
|
-
|
|
115
|
-
marketplace_managed_rancher_create_order_attributes = cls(
|
|
116
|
-
name=name,
|
|
117
|
-
worker_nodes_count=worker_nodes_count,
|
|
118
|
-
worker_nodes_flavor_name=worker_nodes_flavor_name,
|
|
119
|
-
worker_nodes_data_volume_size=worker_nodes_data_volume_size,
|
|
120
|
-
worker_nodes_data_volume_type_name=worker_nodes_data_volume_type_name,
|
|
121
|
-
openstack_offering_uuid_list=openstack_offering_uuid_list,
|
|
122
|
-
install_longhorn=install_longhorn,
|
|
123
|
-
worker_nodes_longhorn_volume_size=worker_nodes_longhorn_volume_size,
|
|
124
|
-
worker_nodes_longhorn_volume_type_name=worker_nodes_longhorn_volume_type_name,
|
|
125
|
-
)
|
|
126
|
-
|
|
127
|
-
marketplace_managed_rancher_create_order_attributes.additional_properties = d
|
|
128
|
-
return marketplace_managed_rancher_create_order_attributes
|
|
129
|
-
|
|
130
|
-
@property
|
|
131
|
-
def additional_keys(self) -> list[str]:
|
|
132
|
-
return list(self.additional_properties.keys())
|
|
133
|
-
|
|
134
|
-
def __getitem__(self, key: str) -> Any:
|
|
135
|
-
return self.additional_properties[key]
|
|
136
|
-
|
|
137
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
138
|
-
self.additional_properties[key] = value
|
|
139
|
-
|
|
140
|
-
def __delitem__(self, key: str) -> None:
|
|
141
|
-
del self.additional_properties[key]
|
|
142
|
-
|
|
143
|
-
def __contains__(self, key: str) -> bool:
|
|
144
|
-
return key in self.additional_properties
|
|
@@ -1,145 +0,0 @@
|
|
|
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.rancher_nested_node_request import RancherNestedNodeRequest
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
T = TypeVar("T", bound="MarketplaceRancherCreateOrderAttributes")
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
@_attrs_define
|
|
17
|
-
class MarketplaceRancherCreateOrderAttributes:
|
|
18
|
-
"""This mixin allows to specify list of fields to be rendered by serializer.
|
|
19
|
-
It expects that request is available in serializer's context.
|
|
20
|
-
|
|
21
|
-
It is disabled for nested serializers (where parent is another serializer)
|
|
22
|
-
but remains active for list views (where parent is a ListSerializer).
|
|
23
|
-
|
|
24
|
-
Attributes:
|
|
25
|
-
name (str):
|
|
26
|
-
nodes (list['RancherNestedNodeRequest']):
|
|
27
|
-
description (Union[Unset, str]):
|
|
28
|
-
tenant (Union[Unset, str]):
|
|
29
|
-
ssh_public_key (Union[Unset, str]):
|
|
30
|
-
install_longhorn (Union[Unset, bool]): Longhorn is a distributed block storage deployed on top of Kubernetes
|
|
31
|
-
cluster Default: False.
|
|
32
|
-
vm_project (Union[None, Unset, str]):
|
|
33
|
-
"""
|
|
34
|
-
|
|
35
|
-
name: str
|
|
36
|
-
nodes: list["RancherNestedNodeRequest"]
|
|
37
|
-
description: Union[Unset, str] = UNSET
|
|
38
|
-
tenant: Union[Unset, str] = UNSET
|
|
39
|
-
ssh_public_key: Union[Unset, str] = UNSET
|
|
40
|
-
install_longhorn: Union[Unset, bool] = False
|
|
41
|
-
vm_project: Union[None, Unset, str] = UNSET
|
|
42
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
43
|
-
|
|
44
|
-
def to_dict(self) -> dict[str, Any]:
|
|
45
|
-
name = self.name
|
|
46
|
-
|
|
47
|
-
nodes = []
|
|
48
|
-
for nodes_item_data in self.nodes:
|
|
49
|
-
nodes_item = nodes_item_data.to_dict()
|
|
50
|
-
nodes.append(nodes_item)
|
|
51
|
-
|
|
52
|
-
description = self.description
|
|
53
|
-
|
|
54
|
-
tenant = self.tenant
|
|
55
|
-
|
|
56
|
-
ssh_public_key = self.ssh_public_key
|
|
57
|
-
|
|
58
|
-
install_longhorn = self.install_longhorn
|
|
59
|
-
|
|
60
|
-
vm_project: Union[None, Unset, str]
|
|
61
|
-
if isinstance(self.vm_project, Unset):
|
|
62
|
-
vm_project = UNSET
|
|
63
|
-
else:
|
|
64
|
-
vm_project = self.vm_project
|
|
65
|
-
|
|
66
|
-
field_dict: dict[str, Any] = {}
|
|
67
|
-
field_dict.update(self.additional_properties)
|
|
68
|
-
field_dict.update(
|
|
69
|
-
{
|
|
70
|
-
"name": name,
|
|
71
|
-
"nodes": nodes,
|
|
72
|
-
}
|
|
73
|
-
)
|
|
74
|
-
if description is not UNSET:
|
|
75
|
-
field_dict["description"] = description
|
|
76
|
-
if tenant is not UNSET:
|
|
77
|
-
field_dict["tenant"] = tenant
|
|
78
|
-
if ssh_public_key is not UNSET:
|
|
79
|
-
field_dict["ssh_public_key"] = ssh_public_key
|
|
80
|
-
if install_longhorn is not UNSET:
|
|
81
|
-
field_dict["install_longhorn"] = install_longhorn
|
|
82
|
-
if vm_project is not UNSET:
|
|
83
|
-
field_dict["vm_project"] = vm_project
|
|
84
|
-
|
|
85
|
-
return field_dict
|
|
86
|
-
|
|
87
|
-
@classmethod
|
|
88
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
89
|
-
from ..models.rancher_nested_node_request import RancherNestedNodeRequest
|
|
90
|
-
|
|
91
|
-
d = dict(src_dict)
|
|
92
|
-
name = d.pop("name")
|
|
93
|
-
|
|
94
|
-
nodes = []
|
|
95
|
-
_nodes = d.pop("nodes")
|
|
96
|
-
for nodes_item_data in _nodes:
|
|
97
|
-
nodes_item = RancherNestedNodeRequest.from_dict(nodes_item_data)
|
|
98
|
-
|
|
99
|
-
nodes.append(nodes_item)
|
|
100
|
-
|
|
101
|
-
description = d.pop("description", UNSET)
|
|
102
|
-
|
|
103
|
-
tenant = d.pop("tenant", UNSET)
|
|
104
|
-
|
|
105
|
-
ssh_public_key = d.pop("ssh_public_key", UNSET)
|
|
106
|
-
|
|
107
|
-
install_longhorn = d.pop("install_longhorn", UNSET)
|
|
108
|
-
|
|
109
|
-
def _parse_vm_project(data: object) -> Union[None, Unset, str]:
|
|
110
|
-
if data is None:
|
|
111
|
-
return data
|
|
112
|
-
if isinstance(data, Unset):
|
|
113
|
-
return data
|
|
114
|
-
return cast(Union[None, Unset, str], data)
|
|
115
|
-
|
|
116
|
-
vm_project = _parse_vm_project(d.pop("vm_project", UNSET))
|
|
117
|
-
|
|
118
|
-
marketplace_rancher_create_order_attributes = cls(
|
|
119
|
-
name=name,
|
|
120
|
-
nodes=nodes,
|
|
121
|
-
description=description,
|
|
122
|
-
tenant=tenant,
|
|
123
|
-
ssh_public_key=ssh_public_key,
|
|
124
|
-
install_longhorn=install_longhorn,
|
|
125
|
-
vm_project=vm_project,
|
|
126
|
-
)
|
|
127
|
-
|
|
128
|
-
marketplace_rancher_create_order_attributes.additional_properties = d
|
|
129
|
-
return marketplace_rancher_create_order_attributes
|
|
130
|
-
|
|
131
|
-
@property
|
|
132
|
-
def additional_keys(self) -> list[str]:
|
|
133
|
-
return list(self.additional_properties.keys())
|
|
134
|
-
|
|
135
|
-
def __getitem__(self, key: str) -> Any:
|
|
136
|
-
return self.additional_properties[key]
|
|
137
|
-
|
|
138
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
139
|
-
self.additional_properties[key] = value
|
|
140
|
-
|
|
141
|
-
def __delitem__(self, key: str) -> None:
|
|
142
|
-
del self.additional_properties[key]
|
|
143
|
-
|
|
144
|
-
def __contains__(self, key: str) -> bool:
|
|
145
|
-
return key in self.additional_properties
|
|
File without changes
|