waldur-api-client 7.6.9__py3-none-any.whl → 7.7.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.

Files changed (38) hide show
  1. waldur_api_client/api/broadcast_messages/broadcast_messages_schedule.py +89 -0
  2. waldur_api_client/api/{autoprovisioning_rule_plans/autoprovisioning_rule_plans_create.py → call_proposal_project_role_mappings/call_proposal_project_role_mappings_create.py} +27 -23
  3. waldur_api_client/api/call_proposal_project_role_mappings/call_proposal_project_role_mappings_destroy.py +89 -0
  4. waldur_api_client/api/{autoprovisioning_rule_plans/autoprovisioning_rule_plans_list.py → call_proposal_project_role_mappings/call_proposal_project_role_mappings_list.py} +34 -13
  5. waldur_api_client/api/{autoprovisioning_rule_plans/autoprovisioning_rule_plans_partial_update.py → call_proposal_project_role_mappings/call_proposal_project_role_mappings_partial_update.py} +27 -23
  6. waldur_api_client/api/{autoprovisioning_rule_plans/autoprovisioning_rule_plans_retrieve.py → call_proposal_project_role_mappings/call_proposal_project_role_mappings_retrieve.py} +17 -13
  7. waldur_api_client/api/{autoprovisioning_rule_plans/autoprovisioning_rule_plans_update.py → call_proposal_project_role_mappings/call_proposal_project_role_mappings_update.py} +27 -23
  8. waldur_api_client/api/{autoprovisioning_rule_plans/autoprovisioning_rule_plans_destroy.py → marketplace_plans/marketplace_plans_destroy.py} +1 -1
  9. waldur_api_client/models/__init__.py +18 -18
  10. waldur_api_client/models/event_types_enum.py +1 -0
  11. waldur_api_client/models/patched_proposal_project_role_mapping_request.py +88 -0
  12. waldur_api_client/models/patched_protected_call_request.py +0 -17
  13. waldur_api_client/models/patched_rule_request.py +90 -1
  14. waldur_api_client/models/{patched_rule_plans_request_limits.py → patched_rule_request_plan_attributes.py} +5 -5
  15. waldur_api_client/models/patched_rule_request_plan_limits.py +44 -0
  16. waldur_api_client/models/proposal_project_role_mapping.py +122 -0
  17. waldur_api_client/models/proposal_project_role_mapping_request.py +89 -0
  18. waldur_api_client/models/proposal_protected_calls_list_field_item.py +0 -3
  19. waldur_api_client/models/proposal_protected_calls_retrieve_field_item.py +0 -3
  20. waldur_api_client/models/protected_call.py +0 -34
  21. waldur_api_client/models/protected_call_request.py +0 -17
  22. waldur_api_client/models/provider_offering_details.py +1 -1
  23. waldur_api_client/models/public_offering_details.py +1 -1
  24. waldur_api_client/models/rule.py +99 -7
  25. waldur_api_client/models/{rule_plans_attributes.py → rule_plan_attributes.py} +5 -5
  26. waldur_api_client/models/{rule_plans_limits.py → rule_plan_limits.py} +5 -5
  27. waldur_api_client/models/rule_request.py +89 -1
  28. waldur_api_client/models/{rule_plans_request_attributes.py → rule_request_plan_attributes.py} +5 -5
  29. waldur_api_client/models/{rule_plans_request_limits.py → rule_request_plan_limits.py} +5 -5
  30. {waldur_api_client-7.6.9.dist-info → waldur_api_client-7.7.0.dist-info}/METADATA +1 -1
  31. {waldur_api_client-7.6.9.dist-info → waldur_api_client-7.7.0.dist-info}/RECORD +34 -32
  32. waldur_api_client/models/patched_rule_plans_request.py +0 -108
  33. waldur_api_client/models/patched_rule_plans_request_attributes.py +0 -44
  34. waldur_api_client/models/rule_plans.py +0 -126
  35. waldur_api_client/models/rule_plans_request.py +0 -109
  36. /waldur_api_client/api/{autoprovisioning_rule_plans → call_proposal_project_role_mappings}/__init__.py +0 -0
  37. {waldur_api_client-7.6.9.dist-info → waldur_api_client-7.7.0.dist-info}/LICENSE +0 -0
  38. {waldur_api_client-7.6.9.dist-info → waldur_api_client-7.7.0.dist-info}/WHEEL +0 -0
@@ -1,126 +0,0 @@
1
- from collections.abc import Mapping
2
- from typing import TYPE_CHECKING, 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
- if TYPE_CHECKING:
11
- from ..models.rule_plans_attributes import RulePlansAttributes
12
- from ..models.rule_plans_limits import RulePlansLimits
13
-
14
-
15
- T = TypeVar("T", bound="RulePlans")
16
-
17
-
18
- @_attrs_define
19
- class RulePlans:
20
- """
21
- Attributes:
22
- uuid (UUID):
23
- url (str):
24
- rule (str):
25
- plan (str):
26
- attributes (Union[Unset, RulePlansAttributes]):
27
- limits (Union[Unset, RulePlansLimits]):
28
- """
29
-
30
- uuid: UUID
31
- url: str
32
- rule: str
33
- plan: str
34
- attributes: Union[Unset, "RulePlansAttributes"] = UNSET
35
- limits: Union[Unset, "RulePlansLimits"] = UNSET
36
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
37
-
38
- def to_dict(self) -> dict[str, Any]:
39
- uuid = str(self.uuid)
40
-
41
- url = self.url
42
-
43
- rule = self.rule
44
-
45
- plan = self.plan
46
-
47
- attributes: Union[Unset, dict[str, Any]] = UNSET
48
- if not isinstance(self.attributes, Unset):
49
- attributes = self.attributes.to_dict()
50
-
51
- limits: Union[Unset, dict[str, Any]] = UNSET
52
- if not isinstance(self.limits, Unset):
53
- limits = self.limits.to_dict()
54
-
55
- field_dict: dict[str, Any] = {}
56
- field_dict.update(self.additional_properties)
57
- field_dict.update(
58
- {
59
- "uuid": uuid,
60
- "url": url,
61
- "rule": rule,
62
- "plan": plan,
63
- }
64
- )
65
- if attributes is not UNSET:
66
- field_dict["attributes"] = attributes
67
- if limits is not UNSET:
68
- field_dict["limits"] = limits
69
-
70
- return field_dict
71
-
72
- @classmethod
73
- def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
74
- from ..models.rule_plans_attributes import RulePlansAttributes
75
- from ..models.rule_plans_limits import RulePlansLimits
76
-
77
- d = dict(src_dict)
78
- uuid = UUID(d.pop("uuid"))
79
-
80
- url = d.pop("url")
81
-
82
- rule = d.pop("rule")
83
-
84
- plan = d.pop("plan")
85
-
86
- _attributes = d.pop("attributes", UNSET)
87
- attributes: Union[Unset, RulePlansAttributes]
88
- if isinstance(_attributes, Unset):
89
- attributes = UNSET
90
- else:
91
- attributes = RulePlansAttributes.from_dict(_attributes)
92
-
93
- _limits = d.pop("limits", UNSET)
94
- limits: Union[Unset, RulePlansLimits]
95
- if isinstance(_limits, Unset):
96
- limits = UNSET
97
- else:
98
- limits = RulePlansLimits.from_dict(_limits)
99
-
100
- rule_plans = cls(
101
- uuid=uuid,
102
- url=url,
103
- rule=rule,
104
- plan=plan,
105
- attributes=attributes,
106
- limits=limits,
107
- )
108
-
109
- rule_plans.additional_properties = d
110
- return rule_plans
111
-
112
- @property
113
- def additional_keys(self) -> list[str]:
114
- return list(self.additional_properties.keys())
115
-
116
- def __getitem__(self, key: str) -> Any:
117
- return self.additional_properties[key]
118
-
119
- def __setitem__(self, key: str, value: Any) -> None:
120
- self.additional_properties[key] = value
121
-
122
- def __delitem__(self, key: str) -> None:
123
- del self.additional_properties[key]
124
-
125
- def __contains__(self, key: str) -> bool:
126
- return key in self.additional_properties
@@ -1,109 +0,0 @@
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.rule_plans_request_attributes import RulePlansRequestAttributes
11
- from ..models.rule_plans_request_limits import RulePlansRequestLimits
12
-
13
-
14
- T = TypeVar("T", bound="RulePlansRequest")
15
-
16
-
17
- @_attrs_define
18
- class RulePlansRequest:
19
- """
20
- Attributes:
21
- rule (str):
22
- plan (str):
23
- attributes (Union[Unset, RulePlansRequestAttributes]):
24
- limits (Union[Unset, RulePlansRequestLimits]):
25
- """
26
-
27
- rule: str
28
- plan: str
29
- attributes: Union[Unset, "RulePlansRequestAttributes"] = UNSET
30
- limits: Union[Unset, "RulePlansRequestLimits"] = UNSET
31
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
32
-
33
- def to_dict(self) -> dict[str, Any]:
34
- rule = self.rule
35
-
36
- plan = self.plan
37
-
38
- attributes: Union[Unset, dict[str, Any]] = UNSET
39
- if not isinstance(self.attributes, Unset):
40
- attributes = self.attributes.to_dict()
41
-
42
- limits: Union[Unset, dict[str, Any]] = UNSET
43
- if not isinstance(self.limits, Unset):
44
- limits = self.limits.to_dict()
45
-
46
- field_dict: dict[str, Any] = {}
47
- field_dict.update(self.additional_properties)
48
- field_dict.update(
49
- {
50
- "rule": rule,
51
- "plan": plan,
52
- }
53
- )
54
- if attributes is not UNSET:
55
- field_dict["attributes"] = attributes
56
- if limits is not UNSET:
57
- field_dict["limits"] = limits
58
-
59
- return field_dict
60
-
61
- @classmethod
62
- def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
63
- from ..models.rule_plans_request_attributes import RulePlansRequestAttributes
64
- from ..models.rule_plans_request_limits import RulePlansRequestLimits
65
-
66
- d = dict(src_dict)
67
- rule = d.pop("rule")
68
-
69
- plan = d.pop("plan")
70
-
71
- _attributes = d.pop("attributes", UNSET)
72
- attributes: Union[Unset, RulePlansRequestAttributes]
73
- if isinstance(_attributes, Unset):
74
- attributes = UNSET
75
- else:
76
- attributes = RulePlansRequestAttributes.from_dict(_attributes)
77
-
78
- _limits = d.pop("limits", UNSET)
79
- limits: Union[Unset, RulePlansRequestLimits]
80
- if isinstance(_limits, Unset):
81
- limits = UNSET
82
- else:
83
- limits = RulePlansRequestLimits.from_dict(_limits)
84
-
85
- rule_plans_request = cls(
86
- rule=rule,
87
- plan=plan,
88
- attributes=attributes,
89
- limits=limits,
90
- )
91
-
92
- rule_plans_request.additional_properties = d
93
- return rule_plans_request
94
-
95
- @property
96
- def additional_keys(self) -> list[str]:
97
- return list(self.additional_properties.keys())
98
-
99
- def __getitem__(self, key: str) -> Any:
100
- return self.additional_properties[key]
101
-
102
- def __setitem__(self, key: str, value: Any) -> None:
103
- self.additional_properties[key] = value
104
-
105
- def __delitem__(self, key: str) -> None:
106
- del self.additional_properties[key]
107
-
108
- def __contains__(self, key: str) -> bool:
109
- return key in self.additional_properties