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
@@ -4,11 +4,11 @@ from typing import Any, TypeVar
4
4
  from attrs import define as _attrs_define
5
5
  from attrs import field as _attrs_field
6
6
 
7
- T = TypeVar("T", bound="RulePlansLimits")
7
+ T = TypeVar("T", bound="RulePlanLimits")
8
8
 
9
9
 
10
10
  @_attrs_define
11
- class RulePlansLimits:
11
+ class RulePlanLimits:
12
12
  """ """
13
13
 
14
14
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
@@ -22,10 +22,10 @@ class RulePlansLimits:
22
22
  @classmethod
23
23
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
24
24
  d = dict(src_dict)
25
- rule_plans_limits = cls()
25
+ rule_plan_limits = cls()
26
26
 
27
- rule_plans_limits.additional_properties = d
28
- return rule_plans_limits
27
+ rule_plan_limits.additional_properties = d
28
+ return rule_plan_limits
29
29
 
30
30
  @property
31
31
  def additional_keys(self) -> list[str]:
@@ -1,11 +1,16 @@
1
1
  from collections.abc import Mapping
2
- from typing import Any, TypeVar, Union, cast
2
+ from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
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.rule_request_plan_attributes import RuleRequestPlanAttributes
11
+ from ..models.rule_request_plan_limits import RuleRequestPlanLimits
12
+
13
+
9
14
  T = TypeVar("T", bound="RuleRequest")
10
15
 
11
16
 
@@ -13,19 +18,31 @@ T = TypeVar("T", bound="RuleRequest")
13
18
  class RuleRequest:
14
19
  """
15
20
  Attributes:
21
+ name (str):
16
22
  customer (str):
17
23
  user_affiliations (Union[Unset, list[str]]):
18
24
  user_email_patterns (Union[Unset, list[str]]):
19
25
  project_role (Union[None, Unset, str]):
26
+ project_role_name (Union[None, Unset, str]):
27
+ plan (Union[None, Unset, str]):
28
+ plan_attributes (Union[Unset, RuleRequestPlanAttributes]):
29
+ plan_limits (Union[Unset, RuleRequestPlanLimits]):
20
30
  """
21
31
 
32
+ name: str
22
33
  customer: str
23
34
  user_affiliations: Union[Unset, list[str]] = UNSET
24
35
  user_email_patterns: Union[Unset, list[str]] = UNSET
25
36
  project_role: Union[None, Unset, str] = UNSET
37
+ project_role_name: Union[None, Unset, str] = UNSET
38
+ plan: Union[None, Unset, str] = UNSET
39
+ plan_attributes: Union[Unset, "RuleRequestPlanAttributes"] = UNSET
40
+ plan_limits: Union[Unset, "RuleRequestPlanLimits"] = UNSET
26
41
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
27
42
 
28
43
  def to_dict(self) -> dict[str, Any]:
44
+ name = self.name
45
+
29
46
  customer = self.customer
30
47
 
31
48
  user_affiliations: Union[Unset, list[str]] = UNSET
@@ -42,10 +59,31 @@ class RuleRequest:
42
59
  else:
43
60
  project_role = self.project_role
44
61
 
62
+ project_role_name: Union[None, Unset, str]
63
+ if isinstance(self.project_role_name, Unset):
64
+ project_role_name = UNSET
65
+ else:
66
+ project_role_name = self.project_role_name
67
+
68
+ plan: Union[None, Unset, str]
69
+ if isinstance(self.plan, Unset):
70
+ plan = UNSET
71
+ else:
72
+ plan = self.plan
73
+
74
+ plan_attributes: Union[Unset, dict[str, Any]] = UNSET
75
+ if not isinstance(self.plan_attributes, Unset):
76
+ plan_attributes = self.plan_attributes.to_dict()
77
+
78
+ plan_limits: Union[Unset, dict[str, Any]] = UNSET
79
+ if not isinstance(self.plan_limits, Unset):
80
+ plan_limits = self.plan_limits.to_dict()
81
+
45
82
  field_dict: dict[str, Any] = {}
46
83
  field_dict.update(self.additional_properties)
47
84
  field_dict.update(
48
85
  {
86
+ "name": name,
49
87
  "customer": customer,
50
88
  }
51
89
  )
@@ -55,12 +93,25 @@ class RuleRequest:
55
93
  field_dict["user_email_patterns"] = user_email_patterns
56
94
  if project_role is not UNSET:
57
95
  field_dict["project_role"] = project_role
96
+ if project_role_name is not UNSET:
97
+ field_dict["project_role_name"] = project_role_name
98
+ if plan is not UNSET:
99
+ field_dict["plan"] = plan
100
+ if plan_attributes is not UNSET:
101
+ field_dict["plan_attributes"] = plan_attributes
102
+ if plan_limits is not UNSET:
103
+ field_dict["plan_limits"] = plan_limits
58
104
 
59
105
  return field_dict
60
106
 
61
107
  @classmethod
62
108
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
109
+ from ..models.rule_request_plan_attributes import RuleRequestPlanAttributes
110
+ from ..models.rule_request_plan_limits import RuleRequestPlanLimits
111
+
63
112
  d = dict(src_dict)
113
+ name = d.pop("name")
114
+
64
115
  customer = d.pop("customer")
65
116
 
66
117
  user_affiliations = cast(list[str], d.pop("user_affiliations", UNSET))
@@ -76,11 +127,48 @@ class RuleRequest:
76
127
 
77
128
  project_role = _parse_project_role(d.pop("project_role", UNSET))
78
129
 
130
+ def _parse_project_role_name(data: object) -> Union[None, Unset, str]:
131
+ if data is None:
132
+ return data
133
+ if isinstance(data, Unset):
134
+ return data
135
+ return cast(Union[None, Unset, str], data)
136
+
137
+ project_role_name = _parse_project_role_name(d.pop("project_role_name", UNSET))
138
+
139
+ def _parse_plan(data: object) -> Union[None, Unset, str]:
140
+ if data is None:
141
+ return data
142
+ if isinstance(data, Unset):
143
+ return data
144
+ return cast(Union[None, Unset, str], data)
145
+
146
+ plan = _parse_plan(d.pop("plan", UNSET))
147
+
148
+ _plan_attributes = d.pop("plan_attributes", UNSET)
149
+ plan_attributes: Union[Unset, RuleRequestPlanAttributes]
150
+ if isinstance(_plan_attributes, Unset):
151
+ plan_attributes = UNSET
152
+ else:
153
+ plan_attributes = RuleRequestPlanAttributes.from_dict(_plan_attributes)
154
+
155
+ _plan_limits = d.pop("plan_limits", UNSET)
156
+ plan_limits: Union[Unset, RuleRequestPlanLimits]
157
+ if isinstance(_plan_limits, Unset):
158
+ plan_limits = UNSET
159
+ else:
160
+ plan_limits = RuleRequestPlanLimits.from_dict(_plan_limits)
161
+
79
162
  rule_request = cls(
163
+ name=name,
80
164
  customer=customer,
81
165
  user_affiliations=user_affiliations,
82
166
  user_email_patterns=user_email_patterns,
83
167
  project_role=project_role,
168
+ project_role_name=project_role_name,
169
+ plan=plan,
170
+ plan_attributes=plan_attributes,
171
+ plan_limits=plan_limits,
84
172
  )
85
173
 
86
174
  rule_request.additional_properties = d
@@ -4,11 +4,11 @@ from typing import Any, TypeVar
4
4
  from attrs import define as _attrs_define
5
5
  from attrs import field as _attrs_field
6
6
 
7
- T = TypeVar("T", bound="RulePlansRequestAttributes")
7
+ T = TypeVar("T", bound="RuleRequestPlanAttributes")
8
8
 
9
9
 
10
10
  @_attrs_define
11
- class RulePlansRequestAttributes:
11
+ class RuleRequestPlanAttributes:
12
12
  """ """
13
13
 
14
14
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
@@ -22,10 +22,10 @@ class RulePlansRequestAttributes:
22
22
  @classmethod
23
23
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
24
24
  d = dict(src_dict)
25
- rule_plans_request_attributes = cls()
25
+ rule_request_plan_attributes = cls()
26
26
 
27
- rule_plans_request_attributes.additional_properties = d
28
- return rule_plans_request_attributes
27
+ rule_request_plan_attributes.additional_properties = d
28
+ return rule_request_plan_attributes
29
29
 
30
30
  @property
31
31
  def additional_keys(self) -> list[str]:
@@ -4,11 +4,11 @@ from typing import Any, TypeVar
4
4
  from attrs import define as _attrs_define
5
5
  from attrs import field as _attrs_field
6
6
 
7
- T = TypeVar("T", bound="RulePlansRequestLimits")
7
+ T = TypeVar("T", bound="RuleRequestPlanLimits")
8
8
 
9
9
 
10
10
  @_attrs_define
11
- class RulePlansRequestLimits:
11
+ class RuleRequestPlanLimits:
12
12
  """ """
13
13
 
14
14
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
@@ -22,10 +22,10 @@ class RulePlansRequestLimits:
22
22
  @classmethod
23
23
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
24
24
  d = dict(src_dict)
25
- rule_plans_request_limits = cls()
25
+ rule_request_plan_limits = cls()
26
26
 
27
- rule_plans_request_limits.additional_properties = d
28
- return rule_plans_request_limits
27
+ rule_request_plan_limits.additional_properties = d
28
+ return rule_request_plan_limits
29
29
 
30
30
  @property
31
31
  def additional_keys(self) -> list[str]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: waldur-api-client
3
- Version: 7.6.9
3
+ Version: 7.7.0
4
4
  Summary: A client library for accessing Waldur API
5
5
  License: MIT
6
6
  Author: OpenNode Team
@@ -36,13 +36,6 @@ waldur_api_client/api/auth_tokens/auth_tokens_retrieve.py,sha256=MzNd3JJeyrPdiZb
36
36
  waldur_api_client/api/auth_valimo/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
37
37
  waldur_api_client/api/auth_valimo/auth_valimo_create.py,sha256=R7hammvgfZQC0fUg7ZCKzrXlS-eWhAhNRL_giojVpwE,3405
38
38
  waldur_api_client/api/auth_valimo/auth_valimo_result.py,sha256=pSIAX_dsIy5-5a7knjQ4lRzUgM6Auvzs6pI1j-WSCjU,5597
39
- waldur_api_client/api/autoprovisioning_rule_plans/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
40
- waldur_api_client/api/autoprovisioning_rule_plans/autoprovisioning_rule_plans_create.py,sha256=7hS50G28ANTe8TuKAsG-WAyRSKTAa8gHCUr1JF8MIdQ,3397
41
- waldur_api_client/api/autoprovisioning_rule_plans/autoprovisioning_rule_plans_destroy.py,sha256=uEdSmrBJUofVysXdDie7-3xy42TmQeQyR43ErzgifcA,2061
42
- waldur_api_client/api/autoprovisioning_rule_plans/autoprovisioning_rule_plans_list.py,sha256=6KXlb1pr4KLtG8yU69J5gni9LsXUqyXivGz7KLwq69Y,4524
43
- waldur_api_client/api/autoprovisioning_rule_plans/autoprovisioning_rule_plans_partial_update.py,sha256=xRn1t3G-GYTSaCGlp3LR7eMgh0TD9UnQ_zJKnVw1bHQ,3750
44
- waldur_api_client/api/autoprovisioning_rule_plans/autoprovisioning_rule_plans_retrieve.py,sha256=WkpTGLrB_yFHUd_is5Q0DCnEb03x_cFsZy_84RI3NRw,3098
45
- waldur_api_client/api/autoprovisioning_rule_plans/autoprovisioning_rule_plans_update.py,sha256=FdICIwOI_TAQoOYk-smTZMyNjfn7_xWcUng_C4O8uYk,3670
46
39
  waldur_api_client/api/autoprovisioning_rules/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
47
40
  waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_create.py,sha256=PGZyjlmOzxPIPO8qsaSWXAsKDLyp_JZIQ8ZN-eXE3jY,3270
48
41
  waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_destroy.py,sha256=cK1MG6q7Qmm9xRfc3Q1QKc7LLHXpIwXj8ezrFdNDYXE,2056
@@ -175,6 +168,7 @@ waldur_api_client/api/broadcast_messages/broadcast_messages_list.py,sha256=drXFJ
175
168
  waldur_api_client/api/broadcast_messages/broadcast_messages_partial_update.py,sha256=AVNxhGRmNJPNrnYEOfd42QwXMfYdeEDrllXKw-rBaWs,3915
176
169
  waldur_api_client/api/broadcast_messages/broadcast_messages_recipients_retrieve.py,sha256=WfdGEfRlSmLyk1Kijtfr-1-9nP6ri-XkNwOmtbZJ9js,4316
177
170
  waldur_api_client/api/broadcast_messages/broadcast_messages_retrieve.py,sha256=sdiZsVt5QftOU7fyggePDtnGLL4rDYpsV5mkJHI8g5Q,4468
171
+ waldur_api_client/api/broadcast_messages/broadcast_messages_schedule.py,sha256=A4KipZBbjEeYPMBBOToaRJNGzWIA1ZcXdX1KCg7uvVw,2059
178
172
  waldur_api_client/api/broadcast_messages/broadcast_messages_send.py,sha256=CTuY1eBJwv5Iud8qs5ZEY4tPXFADaUHxMvmUf2HBdEU,2055
179
173
  waldur_api_client/api/broadcast_messages/broadcast_messages_update.py,sha256=cTntw8bC9E8GnINoytvgB5ncy0U_yXH9wxJ6ZG-ZWDU,3835
180
174
  waldur_api_client/api/call_managing_organisations/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
@@ -189,6 +183,13 @@ waldur_api_client/api/call_managing_organisations/call_managing_organisations_re
189
183
  waldur_api_client/api/call_managing_organisations/call_managing_organisations_stats_retrieve.py,sha256=iXs6PwF4z-Qd9cBu2AxL2WtyYGOS2KSW5utGzTeytDY,3565
190
184
  waldur_api_client/api/call_managing_organisations/call_managing_organisations_update.py,sha256=DWf4BiRpIT5LMyesTDXNQ-73mdIuQiJV5y45ru4EJm4,4044
191
185
  waldur_api_client/api/call_managing_organisations/call_managing_organisations_update_user.py,sha256=eMVIPfMj33dYhN7IFRmh-IGUwWsXepRCytXsjUbMoMw,3916
186
+ waldur_api_client/api/call_proposal_project_role_mappings/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
187
+ waldur_api_client/api/call_proposal_project_role_mappings/call_proposal_project_role_mappings_create.py,sha256=5-LyupA5V0RZv7wcAYMvJkuqcL-8GHclQ0ic0acMp2w,3829
188
+ waldur_api_client/api/call_proposal_project_role_mappings/call_proposal_project_role_mappings_destroy.py,sha256=Fnhms6TqG7umctQ3mCoADIH_h3pXkWbaf_u_8XktbWM,2069
189
+ waldur_api_client/api/call_proposal_project_role_mappings/call_proposal_project_role_mappings_list.py,sha256=GJE_4B0scG6bqS4yGe9SrXbSn_hZQD9sQBK1rHWVg7o,5447
190
+ waldur_api_client/api/call_proposal_project_role_mappings/call_proposal_project_role_mappings_partial_update.py,sha256=z_LEkOOU_E40XcYAz6Hr_P3rQemwtzcP3TwX9PhkOD0,4182
191
+ waldur_api_client/api/call_proposal_project_role_mappings/call_proposal_project_role_mappings_retrieve.py,sha256=NI8RvilnvVHr3_9fFXZ4_LWNzgHC0g3PYBQAueCz984,3341
192
+ waldur_api_client/api/call_proposal_project_role_mappings/call_proposal_project_role_mappings_update.py,sha256=vQFcZeP-fYYH3syCHEvmbgZH9NQbvClm0_3yB-M-Y44,4102
192
193
  waldur_api_client/api/call_rounds/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
193
194
  waldur_api_client/api/call_rounds/call_rounds_list.py,sha256=ndpjSd5hn-22H9hBob8YeFC_pEa6tXk0p0DdrCcORfY,4508
194
195
  waldur_api_client/api/call_rounds/call_rounds_retrieve.py,sha256=c7Zc1MiP6TO48P8PzSByW7mNaHS7UkZWeFiJD63fpMM,3082
@@ -544,6 +545,7 @@ waldur_api_client/api/marketplace_plans/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD
544
545
  waldur_api_client/api/marketplace_plans/marketplace_plans_archive.py,sha256=pxRmaX3NwazYstlyYMysiqxOZhO6Ym6UlleSGfO6xz8,2057
545
546
  waldur_api_client/api/marketplace_plans/marketplace_plans_create.py,sha256=OepUyMrVcyuCOtMjZvdbivd-sEeMouzerYMMnBNLZ0c,3635
546
547
  waldur_api_client/api/marketplace_plans/marketplace_plans_delete_organization_groups.py,sha256=z4sRsKI24Mi4NhxI2gKtga4_eDq9rm7uyhd95TEqHGU,2076
548
+ waldur_api_client/api/marketplace_plans/marketplace_plans_destroy.py,sha256=NYkRMVB3Wt43J7JHps5WT8WxNPQbQxtpfX7SSSmfRpo,2051
547
549
  waldur_api_client/api/marketplace_plans/marketplace_plans_list.py,sha256=tTvV2Xe-WujWC3bBfjWBhsuznfYGdVmyQARgNICNW4Y,6850
548
550
  waldur_api_client/api/marketplace_plans/marketplace_plans_partial_update.py,sha256=mB8Velt3_9kF74sUhQXJ84h85wqKhjxkgHn3Zuj1wqM,3988
549
551
  waldur_api_client/api/marketplace_plans/marketplace_plans_retrieve.py,sha256=MavMLMUGXtU_JzhAjxzBMR1MuscVggJeFKGN5U1ZS4Y,3225
@@ -1447,7 +1449,7 @@ waldur_api_client/api/vmware_virtual_machine/vmware_virtual_machine_update.py,sh
1447
1449
  waldur_api_client/api/vmware_virtual_machine/vmware_virtual_machine_web_console_retrieve.py,sha256=oZ2BaWmW_KX9J6iL90lKg2lNcX4ym-VdVp0v9zDZI0I,3342
1448
1450
  waldur_api_client/client.py,sha256=GLq-qDZKHfSA_9duhz0MTPeaAkXUlvuHHWCRzsPcE5Y,11727
1449
1451
  waldur_api_client/errors.py,sha256=C44oS7G-xUfc6i6fto367Oig5qm0S_pDZJUaK0eY9mU,500
1450
- waldur_api_client/models/__init__.py,sha256=lzOvwUu_cwpB_rXdIwjt8aCom0Y1Ey3-_shz_eS4PWg,123302
1452
+ waldur_api_client/models/__init__.py,sha256=UxQgWznrMvRBbiuv9sphwF_iNAqg-UFOoCjO9bx6kA4,123443
1451
1453
  waldur_api_client/models/access_subnet.py,sha256=unDj1xpRJWj9Ia51twedRU9HcuWf4MYVnTCz-WGLTJk,2145
1452
1454
  waldur_api_client/models/access_subnet_request.py,sha256=_OM-mgOmhOnbwqR9425rgdN-KWUxvz2ZgK20rGTeTrA,2005
1453
1455
  waldur_api_client/models/account_name_generation_policy_enum.py,sha256=6XEL8dm2iWT-1ZmVf0RNbI7pmszVe1s7_Z24yPgs_K8,170
@@ -1711,7 +1713,7 @@ waldur_api_client/models/event_stats.py,sha256=DsvRRKBSmyvyDRGCO5cxnLQaWwImv1-RL
1711
1713
  waldur_api_client/models/event_subscription.py,sha256=d1FPQWgwLmUH4tXr8ee5nwfDFTcnwzeBI6gZEVDu1o0,4225
1712
1714
  waldur_api_client/models/event_subscription_request.py,sha256=886_Gtrm-jaDc_465PQiO3gg3je7kfPb8lRNz2VPND4,2047
1713
1715
  waldur_api_client/models/event_subscriptions_list_o_item.py,sha256=y3QD9iti1tT-H4FJehhGeuOcE6WbO0BaBjAy7xyJjX0,181
1714
- waldur_api_client/models/event_types_enum.py,sha256=bhJnv6oty3zJzdVpT5YvqzkgqqGUogYFSiD4HOztXQQ,16765
1716
+ waldur_api_client/models/event_types_enum.py,sha256=2QhUWZsc_pfjBUV6U-d46o40VBjb6nqNfM_xvFpOIRc,16823
1715
1717
  waldur_api_client/models/events_count_retrieve_field_item.py,sha256=VG8asqy9I_s1wKHHfubLLc1kAQTjeCEstGGfIzamZgE,253
1716
1718
  waldur_api_client/models/events_event_groups_retrieve_field_item.py,sha256=dYixnwJi5wKAtg-2zvG288vkGpMYBsm2mkjfQEuO_Ik,259
1717
1719
  waldur_api_client/models/events_list_field_item.py,sha256=Xg3Ky71jUYdKi7bLIqolLQYl7SVT5JqTjBjHHY1Unew,244
@@ -2227,8 +2229,9 @@ waldur_api_client/models/patched_project_credit_request.py,sha256=Cp0GoAcFQ8L3Yl
2227
2229
  waldur_api_client/models/patched_project_estimated_cost_policy_request.py,sha256=m_QW3neOWuSasN_VwLwhIrvhMHHZnom7lkXs4TVao2E,3126
2228
2230
  waldur_api_client/models/patched_project_request.py,sha256=WjZRIS3JJIfdusM4rHAkV59UV4c5CDWDeYvNAEEO0fY,8630
2229
2231
  waldur_api_client/models/patched_project_service_account_request.py,sha256=G_4ZmRAeDoLRE-OiAG1PlilyMgtWI56Ip74o8HeDaC4,3515
2232
+ waldur_api_client/models/patched_proposal_project_role_mapping_request.py,sha256=kVM0B-On8pELRMa8kKxP2kVX9Fpjy1qBcadM80RIb_U,2756
2230
2233
  waldur_api_client/models/patched_proposal_review_request.py,sha256=l-VQEf3zbNIRCEiXkTGqlAI2Ef-uDGAD6n8O9YOsmqU,11451
2231
- waldur_api_client/models/patched_protected_call_request.py,sha256=wtoCpzQ_Jlt8GbxR7YCl-ea0Di_sqvz8IAgoF0tW_eY,6933
2234
+ waldur_api_client/models/patched_protected_call_request.py,sha256=0zXSeBjhHQCbSTp7XtoKUIjf2R3gI01u0eWC5EUv6rU,6162
2232
2235
  waldur_api_client/models/patched_protected_round_request.py,sha256=MJzqsxd9KHuKg9THbEftDgy3W0GltkSW18USpzweZJM,8625
2233
2236
  waldur_api_client/models/patched_provider_plan_details_request.py,sha256=4c2GxUccFoXJZUmKo7c3c8_uRDGNwlnlas7qcauiETA,4504
2234
2237
  waldur_api_client/models/patched_rancher_application_request.py,sha256=2FUfrUbJ1155_yTe523t_8JVD7nSMrLCjQSxQ4De9jM,6254
@@ -2245,10 +2248,9 @@ waldur_api_client/models/patched_requested_resource_request.py,sha256=GUI9k7hOCb
2245
2248
  waldur_api_client/models/patched_resource_update_request.py,sha256=_CNDi9RuzcqYtijBwRRd7b6EiUdjnXOPZ03y5-DADhE,3148
2246
2249
  waldur_api_client/models/patched_robot_account_request.py,sha256=7t1urQ4mvKmcXjNCHG9uQy2W-YmDiS7DrZthHROyfhA,3924
2247
2250
  waldur_api_client/models/patched_role_details_request.py,sha256=-lYNcyosNi85D3e84dDw_VzlUYXTPaGDA6d_SjQ3BBs,13080
2248
- waldur_api_client/models/patched_rule_plans_request.py,sha256=9or43eosRDu67rwLvsKUOfOSUYFd-Bct9kz_Z5TMusk,3568
2249
- waldur_api_client/models/patched_rule_plans_request_attributes.py,sha256=fxWYtQKEupQYhd28Swp3DWws8fj_BhomaHzTJ_eFcwE,1319
2250
- waldur_api_client/models/patched_rule_plans_request_limits.py,sha256=iLLXqTGo0ucBoyVKPprHEwLye7nFe88lUvxRxYdMtAI,1299
2251
- waldur_api_client/models/patched_rule_request.py,sha256=7Yw8TLhPGtlAdDrkgiWJhv6PFD1nE8fjmLnsNFOHST0,3418
2251
+ waldur_api_client/models/patched_rule_request.py,sha256=etRIP1ihawSElYR4Y8PLTP7dai8X7jIyAtdvTJKZe2s,7004
2252
+ waldur_api_client/models/patched_rule_request_plan_attributes.py,sha256=BVV2J8f1Se-4ttExBMTwHyBW0wQhY0b5WMMVrLqqsew,1314
2253
+ waldur_api_client/models/patched_rule_request_plan_limits.py,sha256=bt-xs8SyVWGpcIfIcp_RDh6GkkrPsvD3PqvI2AGUA7k,1294
2252
2254
  waldur_api_client/models/patched_screenshot_request.py,sha256=1eLZM744IuVHBhWrmsGL7hdnEZGoIllj6UEzml4iMx0,1893
2253
2255
  waldur_api_client/models/patched_section_request.py,sha256=Ta_1Zvr_jBppTubsMKyk8KuBSqVtrj4DchtRxhBV4lo,2441
2254
2256
  waldur_api_client/models/patched_service_provider_request.py,sha256=mYtDn3fhfD2dlNbV4UOfT0YOQtBF1QosJVSPDlF59og,2743
@@ -2318,16 +2320,18 @@ waldur_api_client/models/proposal.py,sha256=DjnMk0bf3OtgEW-AmjdOxKfQ2yBPZ4U1FGmJ
2318
2320
  waldur_api_client/models/proposal_approve_request.py,sha256=rOUyUw6IAwQM6oWTCSFeuI9d_td27Udi33qYLKP8wE4,1736
2319
2321
  waldur_api_client/models/proposal_documentation.py,sha256=9ByykTQwRIFOwg5ZV7-PIVkOSUCgI3fueBHmP07QVnA,2718
2320
2322
  waldur_api_client/models/proposal_documentation_request.py,sha256=YH55jWJVq8F7O-_LmgyLSgcZL9HI8R7r03vfjsf5Aw4,2461
2323
+ waldur_api_client/models/proposal_project_role_mapping.py,sha256=O5r10V-sEBzfWnN7yQQqjTe4-S5_OuBGSRVzSWSmqIY,3254
2324
+ waldur_api_client/models/proposal_project_role_mapping_request.py,sha256=8XKw1GPxCLyNuzDJvXoH5eG1Cqh35jaBg7gF7uh0RDA,2582
2321
2325
  waldur_api_client/models/proposal_proposals_list_o_item.py,sha256=yfjw3LXCsydWzVcYZ6EzCldFAUTuBcV1tnvnWiAW9AE,459
2322
2326
  waldur_api_client/models/proposal_proposals_list_state_item.py,sha256=BX5stQQMas6-03qxoAI4_0Mdy0jHX6_mfOvDFuyrhlE,289
2323
2327
  waldur_api_client/models/proposal_proposals_list_users_list_field_item.py,sha256=dKdiaHMDXVgK3q6SViZVOESkVPi6sOmsPRNgfuSbRMg,534
2324
2328
  waldur_api_client/models/proposal_proposals_list_users_list_o_item.py,sha256=GDfA_SrrNKVsbY7U1OPaR2MNeTdRVcdkitbpUUBNOB4,328
2325
- waldur_api_client/models/proposal_protected_calls_list_field_item.py,sha256=CJ2jlYqNXIiS82L-Mr4Yo8MwyzmFUR7DnjRahUWsXbo,1088
2329
+ waldur_api_client/models/proposal_protected_calls_list_field_item.py,sha256=rv8zrHeko7zxsoGKfzfof-AEKOtYVG4qsBpjjTjxZqQ,904
2326
2330
  waldur_api_client/models/proposal_protected_calls_list_o_item.py,sha256=gkWSbvXmbRJIDwQKnreKCn9RlVUmCl5jcRXfJn5MxZc,320
2327
2331
  waldur_api_client/models/proposal_protected_calls_list_state_item.py,sha256=y4rxaJ-6Oh2vIfAj8ifNHiI-zFlrqLLHGmIGUl5T188,208
2328
2332
  waldur_api_client/models/proposal_protected_calls_list_users_list_field_item.py,sha256=U440CtFh0WEGoOXxZ_wUYkaNY5Gk-ffMfhFe9yl1jNM,539
2329
2333
  waldur_api_client/models/proposal_protected_calls_list_users_list_o_item.py,sha256=mULgJTZ60rthfpGXXOWWrFl6BBsYkiPIAy7ESM5DJoQ,333
2330
- waldur_api_client/models/proposal_protected_calls_retrieve_field_item.py,sha256=f6btovPgHx_CCKahOfbl2ik0r3vUbcghNNoLbureYYo,1092
2334
+ waldur_api_client/models/proposal_protected_calls_retrieve_field_item.py,sha256=Bl_OtMhgrdl5Q6fmiFcOfaQa-PBGh_KP7RG9IDlM2q0,908
2331
2335
  waldur_api_client/models/proposal_public_calls_list_field_item.py,sha256=GcHtiJcY4q8Hj45jcFwIJuruQZA8Xwto0mlMNsoWneU,833
2332
2336
  waldur_api_client/models/proposal_public_calls_list_o_item.py,sha256=8ZRaz3cGX4YnyEjucMprNs-Cjs0Txp9TAIeCXMvfoUI,317
2333
2337
  waldur_api_client/models/proposal_public_calls_list_state_item.py,sha256=gx_TuslZ2CgdlY3AUXMfTYEmAaImUMB8aoe_RWpIKzg,205
@@ -2343,8 +2347,8 @@ waldur_api_client/models/proposal_reviews_list_o_item.py,sha256=rZ_NrKr7a1sKgtgG
2343
2347
  waldur_api_client/models/proposal_reviews_list_state_item.py,sha256=Ot5jTwZh0CsTiz8fvi85T44sONnSigBoo4HPW_77PyI,239
2344
2348
  waldur_api_client/models/proposal_states.py,sha256=hdfIsdakiAnvTuRoxNKFS_81deEEmgzg9boR9XwXHkM,273
2345
2349
  waldur_api_client/models/proposal_update_project_details_request.py,sha256=xUpL4Miqpegp70geSB9Fiy7G5b7Qhq9L1JU_5HW6nv8,5901
2346
- waldur_api_client/models/protected_call.py,sha256=OACR7ERJk2b8qsBDw6RQkHJ4h3tsrwFm-rZcYt4fQAQ,16181
2347
- waldur_api_client/models/protected_call_request.py,sha256=4BWkuq5AbdAx-9YWbwjyJP5Z4OeyKbJIfW6DmxInOGs,7022
2350
+ waldur_api_client/models/protected_call.py,sha256=-7qlTxoPfjnd1tOqUXvdsmxKU9LDgznl7yh33WWfqqY,14445
2351
+ waldur_api_client/models/protected_call_request.py,sha256=97b01PoUtBqNJWAGc8odcmfOf6neePxNYEQ4mb8yQKk,6251
2348
2352
  waldur_api_client/models/protected_proposal_list.py,sha256=fzBjynv2G3pZu3Utwn_n8aZWpFeXM8xmiRbkAtuP3Us,3135
2349
2353
  waldur_api_client/models/protected_proposal_list_request.py,sha256=fnDDdpTec3ST5sCN7HAhiF8iLFUImVBj8gv9a1c2S3I,1528
2350
2354
  waldur_api_client/models/protected_round.py,sha256=I97ZuW3kX6ePse0p9oHNrHC8vovRbfw1KV0KnZutkPA,9306
@@ -2354,7 +2358,7 @@ waldur_api_client/models/provider_invoice_items_list_o_item.py,sha256=kPI6IvEc8n
2354
2358
  waldur_api_client/models/provider_offering.py,sha256=As-Xy7BC7dsXCbN1kuLkE1FY5K5T6PUtZbcfZXBfTlM,8733
2355
2359
  waldur_api_client/models/provider_offering_costs.py,sha256=OyKwyTVrkd177YYtWBh12G22A86i4UOgJoyGGWcOexs,1961
2356
2360
  waldur_api_client/models/provider_offering_customer.py,sha256=EQSbrqsKMTlTupV_8ae_S3CtgFpXcJGU9phEUKHOb9o,2726
2357
- waldur_api_client/models/provider_offering_details.py,sha256=KvGQQARtoaqP-bTu96osU7PrhNthn9MW0jbyGQvk19k,45515
2361
+ waldur_api_client/models/provider_offering_details.py,sha256=YA1lgP-H1wx112A6oQXWjtHrbSaeXQM9INUiK2zYrkY,45561
2358
2362
  waldur_api_client/models/provider_offering_details_attributes.py,sha256=2ZQjBPMDwoyqbeq-w3J4XFyjfSIuPvbzhWmR0FztXo4,1316
2359
2363
  waldur_api_client/models/provider_offering_details_request.py,sha256=P0gqNat4Nb0E9kborQ_syiPVrerL4WKc0nJIG03p03k,14211
2360
2364
  waldur_api_client/models/provider_offering_details_service_attributes.py,sha256=5KU5GdD1Y6X2vmI_7DxWSs4gVuAM57D92uqwfXddPgY,1354
@@ -2368,7 +2372,7 @@ waldur_api_client/models/provider_requested_offering.py,sha256=3fVJT8et-CpuI9lf8
2368
2372
  waldur_api_client/models/provider_requested_resource.py,sha256=kyMN6tqzAuHWozPpb4ZaoX_T2jF_CBC9c6SursDLVB4,6116
2369
2373
  waldur_api_client/models/provider_user.py,sha256=yzjf7T5fY4vto6LLxMA4fEXW6GEd_PcvqYeCFH3jL7M,2942
2370
2374
  waldur_api_client/models/public_call.py,sha256=DTpM_UPdk7aDjk59_Hrfgu4WVNsG-unb-F6TENSuHcU,13588
2371
- waldur_api_client/models/public_offering_details.py,sha256=XmOLaIxjD9VpDBCrXkCbhUBE3A14Nx0HxJJk2NLmje8,42637
2375
+ waldur_api_client/models/public_offering_details.py,sha256=Jb8W3WATee6GFvv-e3Ts1_cKh3iO6LkczkT2j9qT5m4,42683
2372
2376
  waldur_api_client/models/public_offering_details_attributes.py,sha256=i0-SCeFD4PmCgSTt7S1aGP8hI_i-yrVymsoqRFXX7LA,1306
2373
2377
  waldur_api_client/models/pull_marketplace_script_resource_request.py,sha256=UDkfiNLngvbMTBKyvvdjkOfr2EpWh56st33HhUuohtA,1696
2374
2378
  waldur_api_client/models/query_request.py,sha256=uQF9CgIBrcRorzel3K8yA_ExJk1QCWp7atwLDppxeDA,1452
@@ -2519,14 +2523,12 @@ waldur_api_client/models/role_type.py,sha256=RI_vmdETh3okrlAKF5JPnDfnWB5xerOv3Iw
2519
2523
  waldur_api_client/models/roles_list_field_item.py,sha256=heqjCs2wIg6LwGmElNbOhZfhRLsd3Y-PUlkkEZQg4os,887
2520
2524
  waldur_api_client/models/roles_retrieve_field_item.py,sha256=yKjP9o0uvtM4qODKPxPTp4u911F3NTMVjuueiE21120,891
2521
2525
  waldur_api_client/models/round_reviewer.py,sha256=km3aVibwnGMSr8B3jtqvNKzmjuFKw86XWVoTdSp7K6o,2509
2522
- waldur_api_client/models/rule.py,sha256=2DzJSEdGKr6-tnL_VyQ2pmfFmLMPlbfrLP7eR4jSD0A,3785
2523
- waldur_api_client/models/rule_plans.py,sha256=SpykiiZOCIL_wpCSNiAV0MVUwfEf36amnO_oKax3MFE,3444
2524
- waldur_api_client/models/rule_plans_attributes.py,sha256=caCbSvw0aPqclXjMfxoDZOlJGJ74iKAK3n1mBfZPTRU,1243
2525
- waldur_api_client/models/rule_plans_limits.py,sha256=MqkpcrkdxWlXbhIfNben7ohGql5Wm_1OKKzjREpUU5s,1223
2526
- waldur_api_client/models/rule_plans_request.py,sha256=AtUGv6X36NLy65RHqIpCJbs7HhRh1PZANeBd1g3V_so,3287
2527
- waldur_api_client/models/rule_plans_request_attributes.py,sha256=_bSGhQvCgfRuvUCtLS34VBF5_u1soirGLt0figvCbSU,1281
2528
- waldur_api_client/models/rule_plans_request_limits.py,sha256=at4deEEM33hnegehKdsN_83Ipr_ujBMf4gO_MWdXWVI,1261
2529
- waldur_api_client/models/rule_request.py,sha256=f-3zFZnbyomLvMYg1GU2DHHM3k29dI2aBjh9IZqHQcA,3330
2526
+ waldur_api_client/models/rule.py,sha256=JfBF2cguIuQcPlf_6Vz5B6WhBFKGL663LSeo_o6y2kk,7202
2527
+ waldur_api_client/models/rule_plan_attributes.py,sha256=tIgALGjlZWEIMFyJRcOQEpGa-U42YCwUiLrCslv1agA,1238
2528
+ waldur_api_client/models/rule_plan_limits.py,sha256=m6koUzy9v1s7eCpMXitcxdkDke2ra38DY8dalAL8HDo,1218
2529
+ waldur_api_client/models/rule_request.py,sha256=0qx_UkTI1KN70nFV5aJL-vDJXDo11g18QyIBdl3Gv7c,6719
2530
+ waldur_api_client/models/rule_request_plan_attributes.py,sha256=UIry4ieTi11W3aEFaMB1aCO8n2BOd6ZgVCvPKk-BH_8,1276
2531
+ waldur_api_client/models/rule_request_plan_limits.py,sha256=ockbnm2b2TZ8sIr5eDbfy0Or88zTrqik2SIicAEXtog,1256
2530
2532
  waldur_api_client/models/runtime_states.py,sha256=dWscxiOK-RrvJq4fT35pR46nsHQxhuvMumK444bHgCA,1610
2531
2533
  waldur_api_client/models/saml_2_login.py,sha256=cAprDwTQH9m3s4AxXpHnWGr4xp4UeeZ2bAIGghgoi7Y,1425
2532
2534
  waldur_api_client/models/saml_2_login_complete.py,sha256=UxNLhyjROcL-QxFEXHcqLL3jLxLwIljfZ64dunR-UCo,1566
@@ -2666,7 +2668,7 @@ waldur_api_client/models/webhook_event_enum.py,sha256=P8kLmYD2Z-EqFjfr489bholAay
2666
2668
  waldur_api_client/models/widget_enum.py,sha256=oC-BDHXc9GnUD3IhxVHMbhkYTdfpWLBcaUXjY__RERs,201
2667
2669
  waldur_api_client/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
2668
2670
  waldur_api_client/types.py,sha256=AX4orxQZQJat3vZrgjJ-TYb2sNBL8kNo9yqYDT-n8y8,1391
2669
- waldur_api_client-7.6.9.dist-info/LICENSE,sha256=ggoC8v8nQf3HIDGLzIB6VMlzLScX8tIpNhFa0s8UYxw,1072
2670
- waldur_api_client-7.6.9.dist-info/METADATA,sha256=ZEeKFYCdeI3H8x3HHGoN4hiyU_e6ECa3OBCAG5PcYqw,5845
2671
- waldur_api_client-7.6.9.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
2672
- waldur_api_client-7.6.9.dist-info/RECORD,,
2671
+ waldur_api_client-7.7.0.dist-info/LICENSE,sha256=ggoC8v8nQf3HIDGLzIB6VMlzLScX8tIpNhFa0s8UYxw,1072
2672
+ waldur_api_client-7.7.0.dist-info/METADATA,sha256=c4ChzBKJATKsTSI5iiDXZ64kZqv9kmhMclnr8oFJydM,5845
2673
+ waldur_api_client-7.7.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
2674
+ waldur_api_client-7.7.0.dist-info/RECORD,,
@@ -1,108 +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.patched_rule_plans_request_attributes import PatchedRulePlansRequestAttributes
11
- from ..models.patched_rule_plans_request_limits import PatchedRulePlansRequestLimits
12
-
13
-
14
- T = TypeVar("T", bound="PatchedRulePlansRequest")
15
-
16
-
17
- @_attrs_define
18
- class PatchedRulePlansRequest:
19
- """
20
- Attributes:
21
- rule (Union[Unset, str]):
22
- plan (Union[Unset, str]):
23
- attributes (Union[Unset, PatchedRulePlansRequestAttributes]):
24
- limits (Union[Unset, PatchedRulePlansRequestLimits]):
25
- """
26
-
27
- rule: Union[Unset, str] = UNSET
28
- plan: Union[Unset, str] = UNSET
29
- attributes: Union[Unset, "PatchedRulePlansRequestAttributes"] = UNSET
30
- limits: Union[Unset, "PatchedRulePlansRequestLimits"] = 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
- if rule is not UNSET:
50
- field_dict["rule"] = rule
51
- if plan is not UNSET:
52
- field_dict["plan"] = plan
53
- if attributes is not UNSET:
54
- field_dict["attributes"] = attributes
55
- if limits is not UNSET:
56
- field_dict["limits"] = limits
57
-
58
- return field_dict
59
-
60
- @classmethod
61
- def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
62
- from ..models.patched_rule_plans_request_attributes import PatchedRulePlansRequestAttributes
63
- from ..models.patched_rule_plans_request_limits import PatchedRulePlansRequestLimits
64
-
65
- d = dict(src_dict)
66
- rule = d.pop("rule", UNSET)
67
-
68
- plan = d.pop("plan", UNSET)
69
-
70
- _attributes = d.pop("attributes", UNSET)
71
- attributes: Union[Unset, PatchedRulePlansRequestAttributes]
72
- if isinstance(_attributes, Unset):
73
- attributes = UNSET
74
- else:
75
- attributes = PatchedRulePlansRequestAttributes.from_dict(_attributes)
76
-
77
- _limits = d.pop("limits", UNSET)
78
- limits: Union[Unset, PatchedRulePlansRequestLimits]
79
- if isinstance(_limits, Unset):
80
- limits = UNSET
81
- else:
82
- limits = PatchedRulePlansRequestLimits.from_dict(_limits)
83
-
84
- patched_rule_plans_request = cls(
85
- rule=rule,
86
- plan=plan,
87
- attributes=attributes,
88
- limits=limits,
89
- )
90
-
91
- patched_rule_plans_request.additional_properties = d
92
- return patched_rule_plans_request
93
-
94
- @property
95
- def additional_keys(self) -> list[str]:
96
- return list(self.additional_properties.keys())
97
-
98
- def __getitem__(self, key: str) -> Any:
99
- return self.additional_properties[key]
100
-
101
- def __setitem__(self, key: str, value: Any) -> None:
102
- self.additional_properties[key] = value
103
-
104
- def __delitem__(self, key: str) -> None:
105
- del self.additional_properties[key]
106
-
107
- def __contains__(self, key: str) -> bool:
108
- return key in self.additional_properties
@@ -1,44 +0,0 @@
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="PatchedRulePlansRequestAttributes")
8
-
9
-
10
- @_attrs_define
11
- class PatchedRulePlansRequestAttributes:
12
- """ """
13
-
14
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
15
-
16
- def to_dict(self) -> dict[str, Any]:
17
- field_dict: dict[str, Any] = {}
18
- field_dict.update(self.additional_properties)
19
-
20
- return field_dict
21
-
22
- @classmethod
23
- def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
24
- d = dict(src_dict)
25
- patched_rule_plans_request_attributes = cls()
26
-
27
- patched_rule_plans_request_attributes.additional_properties = d
28
- return patched_rule_plans_request_attributes
29
-
30
- @property
31
- def additional_keys(self) -> list[str]:
32
- return list(self.additional_properties.keys())
33
-
34
- def __getitem__(self, key: str) -> Any:
35
- return self.additional_properties[key]
36
-
37
- def __setitem__(self, key: str, value: Any) -> None:
38
- self.additional_properties[key] = value
39
-
40
- def __delitem__(self, key: str) -> None:
41
- del self.additional_properties[key]
42
-
43
- def __contains__(self, key: str) -> bool:
44
- return key in self.additional_properties