waldur-api-client 7.6.9__py3-none-any.whl → 7.7.1__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 (49) hide show
  1. waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_create.py +8 -4
  2. waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_destroy.py +4 -2
  3. waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_list.py +4 -4
  4. waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_partial_update.py +8 -4
  5. waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_retrieve.py +8 -4
  6. waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_update.py +8 -4
  7. waldur_api_client/api/broadcast_messages/broadcast_messages_schedule.py +89 -0
  8. 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
  9. waldur_api_client/api/call_proposal_project_role_mappings/call_proposal_project_role_mappings_destroy.py +89 -0
  10. 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
  11. 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
  12. 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
  13. 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
  14. waldur_api_client/api/{autoprovisioning_rule_plans/autoprovisioning_rule_plans_destroy.py → marketplace_plans/marketplace_plans_destroy.py} +1 -1
  15. waldur_api_client/models/__init__.py +18 -18
  16. waldur_api_client/models/event_types_enum.py +1 -0
  17. waldur_api_client/models/group_invitation.py +16 -5
  18. waldur_api_client/models/group_invitation_request.py +16 -5
  19. waldur_api_client/models/open_stack_floating_ip.py +21 -0
  20. waldur_api_client/models/openstack_floating_ips_list_field_item.py +1 -0
  21. waldur_api_client/models/openstack_floating_ips_retrieve_field_item.py +1 -0
  22. waldur_api_client/models/patched_proposal_project_role_mapping_request.py +88 -0
  23. waldur_api_client/models/patched_protected_call_request.py +0 -17
  24. waldur_api_client/models/patched_rule_request.py +90 -1
  25. waldur_api_client/models/{patched_rule_plans_request_limits.py → patched_rule_request_plan_attributes.py} +5 -5
  26. waldur_api_client/models/patched_rule_request_plan_limits.py +44 -0
  27. waldur_api_client/models/proposal_project_role_mapping.py +122 -0
  28. waldur_api_client/models/proposal_project_role_mapping_request.py +89 -0
  29. waldur_api_client/models/proposal_protected_calls_list_field_item.py +0 -3
  30. waldur_api_client/models/proposal_protected_calls_retrieve_field_item.py +0 -3
  31. waldur_api_client/models/protected_call.py +0 -34
  32. waldur_api_client/models/protected_call_request.py +0 -17
  33. waldur_api_client/models/provider_offering_details.py +1 -1
  34. waldur_api_client/models/public_offering_details.py +1 -1
  35. waldur_api_client/models/rule.py +139 -7
  36. waldur_api_client/models/{rule_plans_attributes.py → rule_plan_attributes.py} +5 -5
  37. waldur_api_client/models/{rule_plans_limits.py → rule_plan_limits.py} +5 -5
  38. waldur_api_client/models/rule_request.py +89 -1
  39. waldur_api_client/models/{rule_plans_request_attributes.py → rule_request_plan_attributes.py} +5 -5
  40. waldur_api_client/models/{rule_plans_request_limits.py → rule_request_plan_limits.py} +5 -5
  41. {waldur_api_client-7.6.9.dist-info → waldur_api_client-7.7.1.dist-info}/METADATA +1 -1
  42. {waldur_api_client-7.6.9.dist-info → waldur_api_client-7.7.1.dist-info}/RECORD +45 -43
  43. waldur_api_client/models/patched_rule_plans_request.py +0 -108
  44. waldur_api_client/models/patched_rule_plans_request_attributes.py +0 -44
  45. waldur_api_client/models/rule_plans.py +0 -126
  46. waldur_api_client/models/rule_plans_request.py +0 -109
  47. /waldur_api_client/api/{autoprovisioning_rule_plans → call_proposal_project_role_mappings}/__init__.py +0 -0
  48. {waldur_api_client-7.6.9.dist-info → waldur_api_client-7.7.1.dist-info}/LICENSE +0 -0
  49. {waldur_api_client-7.6.9.dist-info → waldur_api_client-7.7.1.dist-info}/WHEEL +0 -0
@@ -1,21 +1,28 @@
1
1
  from http import HTTPStatus
2
2
  from typing import Any, Union
3
+ from uuid import UUID
3
4
 
4
5
  import httpx
5
6
 
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
- from ...models.rule_plans import RulePlans
9
+ from ...models.proposal_project_role_mapping import ProposalProjectRoleMapping
9
10
  from ...types import UNSET, Response, Unset
10
11
 
11
12
 
12
13
  def _get_kwargs(
13
14
  *,
15
+ call_uuid: Union[Unset, UUID] = UNSET,
14
16
  page: Union[Unset, int] = UNSET,
15
17
  page_size: Union[Unset, int] = UNSET,
16
18
  ) -> dict[str, Any]:
17
19
  params: dict[str, Any] = {}
18
20
 
21
+ json_call_uuid: Union[Unset, str] = UNSET
22
+ if not isinstance(call_uuid, Unset):
23
+ json_call_uuid = str(call_uuid)
24
+ params["call_uuid"] = json_call_uuid
25
+
19
26
  params["page"] = page
20
27
 
21
28
  params["page_size"] = page_size
@@ -24,19 +31,21 @@ def _get_kwargs(
24
31
 
25
32
  _kwargs: dict[str, Any] = {
26
33
  "method": "get",
27
- "url": "/api/autoprovisioning-rule-plans/",
34
+ "url": "/api/call-proposal-project-role-mappings/",
28
35
  "params": params,
29
36
  }
30
37
 
31
38
  return _kwargs
32
39
 
33
40
 
34
- def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> list["RulePlans"]:
41
+ def _parse_response(
42
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
43
+ ) -> list["ProposalProjectRoleMapping"]:
35
44
  if response.status_code == 200:
36
45
  response_200 = []
37
46
  _response_200 = response.json()
38
47
  for response_200_item_data in _response_200:
39
- response_200_item = RulePlans.from_dict(response_200_item_data)
48
+ response_200_item = ProposalProjectRoleMapping.from_dict(response_200_item_data)
40
49
 
41
50
  response_200.append(response_200_item)
42
51
 
@@ -46,7 +55,7 @@ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: htt
46
55
 
47
56
  def _build_response(
48
57
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
49
- ) -> Response[list["RulePlans"]]:
58
+ ) -> Response[list["ProposalProjectRoleMapping"]]:
50
59
  return Response(
51
60
  status_code=HTTPStatus(response.status_code),
52
61
  content=response.content,
@@ -58,12 +67,14 @@ def _build_response(
58
67
  def sync_detailed(
59
68
  *,
60
69
  client: AuthenticatedClient,
70
+ call_uuid: Union[Unset, UUID] = UNSET,
61
71
  page: Union[Unset, int] = UNSET,
62
72
  page_size: Union[Unset, int] = UNSET,
63
- ) -> Response[list["RulePlans"]]:
73
+ ) -> Response[list["ProposalProjectRoleMapping"]]:
64
74
  """Mixin to optimize HEAD requests for DRF views bypassing serializer processing
65
75
 
66
76
  Args:
77
+ call_uuid (Union[Unset, UUID]):
67
78
  page (Union[Unset, int]):
68
79
  page_size (Union[Unset, int]):
69
80
 
@@ -72,10 +83,11 @@ def sync_detailed(
72
83
  httpx.TimeoutException: If the request takes longer than Client.timeout.
73
84
 
74
85
  Returns:
75
- Response[list['RulePlans']]
86
+ Response[list['ProposalProjectRoleMapping']]
76
87
  """
77
88
 
78
89
  kwargs = _get_kwargs(
90
+ call_uuid=call_uuid,
79
91
  page=page,
80
92
  page_size=page_size,
81
93
  )
@@ -90,12 +102,14 @@ def sync_detailed(
90
102
  def sync(
91
103
  *,
92
104
  client: AuthenticatedClient,
105
+ call_uuid: Union[Unset, UUID] = UNSET,
93
106
  page: Union[Unset, int] = UNSET,
94
107
  page_size: Union[Unset, int] = UNSET,
95
- ) -> list["RulePlans"]:
108
+ ) -> list["ProposalProjectRoleMapping"]:
96
109
  """Mixin to optimize HEAD requests for DRF views bypassing serializer processing
97
110
 
98
111
  Args:
112
+ call_uuid (Union[Unset, UUID]):
99
113
  page (Union[Unset, int]):
100
114
  page_size (Union[Unset, int]):
101
115
 
@@ -104,11 +118,12 @@ def sync(
104
118
  httpx.TimeoutException: If the request takes longer than Client.timeout.
105
119
 
106
120
  Returns:
107
- list['RulePlans']
121
+ list['ProposalProjectRoleMapping']
108
122
  """
109
123
 
110
124
  return sync_detailed(
111
125
  client=client,
126
+ call_uuid=call_uuid,
112
127
  page=page,
113
128
  page_size=page_size,
114
129
  ).parsed
@@ -117,12 +132,14 @@ def sync(
117
132
  async def asyncio_detailed(
118
133
  *,
119
134
  client: AuthenticatedClient,
135
+ call_uuid: Union[Unset, UUID] = UNSET,
120
136
  page: Union[Unset, int] = UNSET,
121
137
  page_size: Union[Unset, int] = UNSET,
122
- ) -> Response[list["RulePlans"]]:
138
+ ) -> Response[list["ProposalProjectRoleMapping"]]:
123
139
  """Mixin to optimize HEAD requests for DRF views bypassing serializer processing
124
140
 
125
141
  Args:
142
+ call_uuid (Union[Unset, UUID]):
126
143
  page (Union[Unset, int]):
127
144
  page_size (Union[Unset, int]):
128
145
 
@@ -131,10 +148,11 @@ async def asyncio_detailed(
131
148
  httpx.TimeoutException: If the request takes longer than Client.timeout.
132
149
 
133
150
  Returns:
134
- Response[list['RulePlans']]
151
+ Response[list['ProposalProjectRoleMapping']]
135
152
  """
136
153
 
137
154
  kwargs = _get_kwargs(
155
+ call_uuid=call_uuid,
138
156
  page=page,
139
157
  page_size=page_size,
140
158
  )
@@ -147,12 +165,14 @@ async def asyncio_detailed(
147
165
  async def asyncio(
148
166
  *,
149
167
  client: AuthenticatedClient,
168
+ call_uuid: Union[Unset, UUID] = UNSET,
150
169
  page: Union[Unset, int] = UNSET,
151
170
  page_size: Union[Unset, int] = UNSET,
152
- ) -> list["RulePlans"]:
171
+ ) -> list["ProposalProjectRoleMapping"]:
153
172
  """Mixin to optimize HEAD requests for DRF views bypassing serializer processing
154
173
 
155
174
  Args:
175
+ call_uuid (Union[Unset, UUID]):
156
176
  page (Union[Unset, int]):
157
177
  page_size (Union[Unset, int]):
158
178
 
@@ -161,12 +181,13 @@ async def asyncio(
161
181
  httpx.TimeoutException: If the request takes longer than Client.timeout.
162
182
 
163
183
  Returns:
164
- list['RulePlans']
184
+ list['ProposalProjectRoleMapping']
165
185
  """
166
186
 
167
187
  return (
168
188
  await asyncio_detailed(
169
189
  client=client,
190
+ call_uuid=call_uuid,
170
191
  page=page,
171
192
  page_size=page_size,
172
193
  )
@@ -6,21 +6,21 @@ import httpx
6
6
 
7
7
  from ... import errors
8
8
  from ...client import AuthenticatedClient, Client
9
- from ...models.patched_rule_plans_request import PatchedRulePlansRequest
10
- from ...models.rule_plans import RulePlans
9
+ from ...models.patched_proposal_project_role_mapping_request import PatchedProposalProjectRoleMappingRequest
10
+ from ...models.proposal_project_role_mapping import ProposalProjectRoleMapping
11
11
  from ...types import Response
12
12
 
13
13
 
14
14
  def _get_kwargs(
15
15
  uuid: UUID,
16
16
  *,
17
- body: PatchedRulePlansRequest,
17
+ body: PatchedProposalProjectRoleMappingRequest,
18
18
  ) -> dict[str, Any]:
19
19
  headers: dict[str, Any] = {}
20
20
 
21
21
  _kwargs: dict[str, Any] = {
22
22
  "method": "patch",
23
- "url": f"/api/autoprovisioning-rule-plans/{uuid}/",
23
+ "url": f"/api/call-proposal-project-role-mappings/{uuid}/",
24
24
  }
25
25
 
26
26
  _kwargs["json"] = body.to_dict()
@@ -31,15 +31,19 @@ def _get_kwargs(
31
31
  return _kwargs
32
32
 
33
33
 
34
- def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> RulePlans:
34
+ def _parse_response(
35
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
36
+ ) -> ProposalProjectRoleMapping:
35
37
  if response.status_code == 200:
36
- response_200 = RulePlans.from_dict(response.json())
38
+ response_200 = ProposalProjectRoleMapping.from_dict(response.json())
37
39
 
38
40
  return response_200
39
41
  raise errors.UnexpectedStatus(response.status_code, response.content)
40
42
 
41
43
 
42
- def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[RulePlans]:
44
+ def _build_response(
45
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
46
+ ) -> Response[ProposalProjectRoleMapping]:
43
47
  return Response(
44
48
  status_code=HTTPStatus(response.status_code),
45
49
  content=response.content,
@@ -52,19 +56,19 @@ def sync_detailed(
52
56
  uuid: UUID,
53
57
  *,
54
58
  client: AuthenticatedClient,
55
- body: PatchedRulePlansRequest,
56
- ) -> Response[RulePlans]:
59
+ body: PatchedProposalProjectRoleMappingRequest,
60
+ ) -> Response[ProposalProjectRoleMapping]:
57
61
  """
58
62
  Args:
59
63
  uuid (UUID):
60
- body (PatchedRulePlansRequest):
64
+ body (PatchedProposalProjectRoleMappingRequest):
61
65
 
62
66
  Raises:
63
67
  errors.UnexpectedStatus: If the server returns an undocumented status code.
64
68
  httpx.TimeoutException: If the request takes longer than Client.timeout.
65
69
 
66
70
  Returns:
67
- Response[RulePlans]
71
+ Response[ProposalProjectRoleMapping]
68
72
  """
69
73
 
70
74
  kwargs = _get_kwargs(
@@ -83,19 +87,19 @@ def sync(
83
87
  uuid: UUID,
84
88
  *,
85
89
  client: AuthenticatedClient,
86
- body: PatchedRulePlansRequest,
87
- ) -> RulePlans:
90
+ body: PatchedProposalProjectRoleMappingRequest,
91
+ ) -> ProposalProjectRoleMapping:
88
92
  """
89
93
  Args:
90
94
  uuid (UUID):
91
- body (PatchedRulePlansRequest):
95
+ body (PatchedProposalProjectRoleMappingRequest):
92
96
 
93
97
  Raises:
94
98
  errors.UnexpectedStatus: If the server returns an undocumented status code.
95
99
  httpx.TimeoutException: If the request takes longer than Client.timeout.
96
100
 
97
101
  Returns:
98
- RulePlans
102
+ ProposalProjectRoleMapping
99
103
  """
100
104
 
101
105
  return sync_detailed(
@@ -109,19 +113,19 @@ async def asyncio_detailed(
109
113
  uuid: UUID,
110
114
  *,
111
115
  client: AuthenticatedClient,
112
- body: PatchedRulePlansRequest,
113
- ) -> Response[RulePlans]:
116
+ body: PatchedProposalProjectRoleMappingRequest,
117
+ ) -> Response[ProposalProjectRoleMapping]:
114
118
  """
115
119
  Args:
116
120
  uuid (UUID):
117
- body (PatchedRulePlansRequest):
121
+ body (PatchedProposalProjectRoleMappingRequest):
118
122
 
119
123
  Raises:
120
124
  errors.UnexpectedStatus: If the server returns an undocumented status code.
121
125
  httpx.TimeoutException: If the request takes longer than Client.timeout.
122
126
 
123
127
  Returns:
124
- Response[RulePlans]
128
+ Response[ProposalProjectRoleMapping]
125
129
  """
126
130
 
127
131
  kwargs = _get_kwargs(
@@ -138,19 +142,19 @@ async def asyncio(
138
142
  uuid: UUID,
139
143
  *,
140
144
  client: AuthenticatedClient,
141
- body: PatchedRulePlansRequest,
142
- ) -> RulePlans:
145
+ body: PatchedProposalProjectRoleMappingRequest,
146
+ ) -> ProposalProjectRoleMapping:
143
147
  """
144
148
  Args:
145
149
  uuid (UUID):
146
- body (PatchedRulePlansRequest):
150
+ body (PatchedProposalProjectRoleMappingRequest):
147
151
 
148
152
  Raises:
149
153
  errors.UnexpectedStatus: If the server returns an undocumented status code.
150
154
  httpx.TimeoutException: If the request takes longer than Client.timeout.
151
155
 
152
156
  Returns:
153
- RulePlans
157
+ ProposalProjectRoleMapping
154
158
  """
155
159
 
156
160
  return (
@@ -6,7 +6,7 @@ import httpx
6
6
 
7
7
  from ... import errors
8
8
  from ...client import AuthenticatedClient, Client
9
- from ...models.rule_plans import RulePlans
9
+ from ...models.proposal_project_role_mapping import ProposalProjectRoleMapping
10
10
  from ...types import Response
11
11
 
12
12
 
@@ -15,21 +15,25 @@ def _get_kwargs(
15
15
  ) -> dict[str, Any]:
16
16
  _kwargs: dict[str, Any] = {
17
17
  "method": "get",
18
- "url": f"/api/autoprovisioning-rule-plans/{uuid}/",
18
+ "url": f"/api/call-proposal-project-role-mappings/{uuid}/",
19
19
  }
20
20
 
21
21
  return _kwargs
22
22
 
23
23
 
24
- def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> RulePlans:
24
+ def _parse_response(
25
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
26
+ ) -> ProposalProjectRoleMapping:
25
27
  if response.status_code == 200:
26
- response_200 = RulePlans.from_dict(response.json())
28
+ response_200 = ProposalProjectRoleMapping.from_dict(response.json())
27
29
 
28
30
  return response_200
29
31
  raise errors.UnexpectedStatus(response.status_code, response.content)
30
32
 
31
33
 
32
- def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[RulePlans]:
34
+ def _build_response(
35
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
36
+ ) -> Response[ProposalProjectRoleMapping]:
33
37
  return Response(
34
38
  status_code=HTTPStatus(response.status_code),
35
39
  content=response.content,
@@ -42,7 +46,7 @@ def sync_detailed(
42
46
  uuid: UUID,
43
47
  *,
44
48
  client: AuthenticatedClient,
45
- ) -> Response[RulePlans]:
49
+ ) -> Response[ProposalProjectRoleMapping]:
46
50
  """
47
51
  Args:
48
52
  uuid (UUID):
@@ -52,7 +56,7 @@ def sync_detailed(
52
56
  httpx.TimeoutException: If the request takes longer than Client.timeout.
53
57
 
54
58
  Returns:
55
- Response[RulePlans]
59
+ Response[ProposalProjectRoleMapping]
56
60
  """
57
61
 
58
62
  kwargs = _get_kwargs(
@@ -70,7 +74,7 @@ def sync(
70
74
  uuid: UUID,
71
75
  *,
72
76
  client: AuthenticatedClient,
73
- ) -> RulePlans:
77
+ ) -> ProposalProjectRoleMapping:
74
78
  """
75
79
  Args:
76
80
  uuid (UUID):
@@ -80,7 +84,7 @@ def sync(
80
84
  httpx.TimeoutException: If the request takes longer than Client.timeout.
81
85
 
82
86
  Returns:
83
- RulePlans
87
+ ProposalProjectRoleMapping
84
88
  """
85
89
 
86
90
  return sync_detailed(
@@ -93,7 +97,7 @@ async def asyncio_detailed(
93
97
  uuid: UUID,
94
98
  *,
95
99
  client: AuthenticatedClient,
96
- ) -> Response[RulePlans]:
100
+ ) -> Response[ProposalProjectRoleMapping]:
97
101
  """
98
102
  Args:
99
103
  uuid (UUID):
@@ -103,7 +107,7 @@ async def asyncio_detailed(
103
107
  httpx.TimeoutException: If the request takes longer than Client.timeout.
104
108
 
105
109
  Returns:
106
- Response[RulePlans]
110
+ Response[ProposalProjectRoleMapping]
107
111
  """
108
112
 
109
113
  kwargs = _get_kwargs(
@@ -119,7 +123,7 @@ async def asyncio(
119
123
  uuid: UUID,
120
124
  *,
121
125
  client: AuthenticatedClient,
122
- ) -> RulePlans:
126
+ ) -> ProposalProjectRoleMapping:
123
127
  """
124
128
  Args:
125
129
  uuid (UUID):
@@ -129,7 +133,7 @@ async def asyncio(
129
133
  httpx.TimeoutException: If the request takes longer than Client.timeout.
130
134
 
131
135
  Returns:
132
- RulePlans
136
+ ProposalProjectRoleMapping
133
137
  """
134
138
 
135
139
  return (
@@ -6,21 +6,21 @@ import httpx
6
6
 
7
7
  from ... import errors
8
8
  from ...client import AuthenticatedClient, Client
9
- from ...models.rule_plans import RulePlans
10
- from ...models.rule_plans_request import RulePlansRequest
9
+ from ...models.proposal_project_role_mapping import ProposalProjectRoleMapping
10
+ from ...models.proposal_project_role_mapping_request import ProposalProjectRoleMappingRequest
11
11
  from ...types import Response
12
12
 
13
13
 
14
14
  def _get_kwargs(
15
15
  uuid: UUID,
16
16
  *,
17
- body: RulePlansRequest,
17
+ body: ProposalProjectRoleMappingRequest,
18
18
  ) -> dict[str, Any]:
19
19
  headers: dict[str, Any] = {}
20
20
 
21
21
  _kwargs: dict[str, Any] = {
22
22
  "method": "put",
23
- "url": f"/api/autoprovisioning-rule-plans/{uuid}/",
23
+ "url": f"/api/call-proposal-project-role-mappings/{uuid}/",
24
24
  }
25
25
 
26
26
  _kwargs["json"] = body.to_dict()
@@ -31,15 +31,19 @@ def _get_kwargs(
31
31
  return _kwargs
32
32
 
33
33
 
34
- def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> RulePlans:
34
+ def _parse_response(
35
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
36
+ ) -> ProposalProjectRoleMapping:
35
37
  if response.status_code == 200:
36
- response_200 = RulePlans.from_dict(response.json())
38
+ response_200 = ProposalProjectRoleMapping.from_dict(response.json())
37
39
 
38
40
  return response_200
39
41
  raise errors.UnexpectedStatus(response.status_code, response.content)
40
42
 
41
43
 
42
- def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[RulePlans]:
44
+ def _build_response(
45
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
46
+ ) -> Response[ProposalProjectRoleMapping]:
43
47
  return Response(
44
48
  status_code=HTTPStatus(response.status_code),
45
49
  content=response.content,
@@ -52,19 +56,19 @@ def sync_detailed(
52
56
  uuid: UUID,
53
57
  *,
54
58
  client: AuthenticatedClient,
55
- body: RulePlansRequest,
56
- ) -> Response[RulePlans]:
59
+ body: ProposalProjectRoleMappingRequest,
60
+ ) -> Response[ProposalProjectRoleMapping]:
57
61
  """
58
62
  Args:
59
63
  uuid (UUID):
60
- body (RulePlansRequest):
64
+ body (ProposalProjectRoleMappingRequest):
61
65
 
62
66
  Raises:
63
67
  errors.UnexpectedStatus: If the server returns an undocumented status code.
64
68
  httpx.TimeoutException: If the request takes longer than Client.timeout.
65
69
 
66
70
  Returns:
67
- Response[RulePlans]
71
+ Response[ProposalProjectRoleMapping]
68
72
  """
69
73
 
70
74
  kwargs = _get_kwargs(
@@ -83,19 +87,19 @@ def sync(
83
87
  uuid: UUID,
84
88
  *,
85
89
  client: AuthenticatedClient,
86
- body: RulePlansRequest,
87
- ) -> RulePlans:
90
+ body: ProposalProjectRoleMappingRequest,
91
+ ) -> ProposalProjectRoleMapping:
88
92
  """
89
93
  Args:
90
94
  uuid (UUID):
91
- body (RulePlansRequest):
95
+ body (ProposalProjectRoleMappingRequest):
92
96
 
93
97
  Raises:
94
98
  errors.UnexpectedStatus: If the server returns an undocumented status code.
95
99
  httpx.TimeoutException: If the request takes longer than Client.timeout.
96
100
 
97
101
  Returns:
98
- RulePlans
102
+ ProposalProjectRoleMapping
99
103
  """
100
104
 
101
105
  return sync_detailed(
@@ -109,19 +113,19 @@ async def asyncio_detailed(
109
113
  uuid: UUID,
110
114
  *,
111
115
  client: AuthenticatedClient,
112
- body: RulePlansRequest,
113
- ) -> Response[RulePlans]:
116
+ body: ProposalProjectRoleMappingRequest,
117
+ ) -> Response[ProposalProjectRoleMapping]:
114
118
  """
115
119
  Args:
116
120
  uuid (UUID):
117
- body (RulePlansRequest):
121
+ body (ProposalProjectRoleMappingRequest):
118
122
 
119
123
  Raises:
120
124
  errors.UnexpectedStatus: If the server returns an undocumented status code.
121
125
  httpx.TimeoutException: If the request takes longer than Client.timeout.
122
126
 
123
127
  Returns:
124
- Response[RulePlans]
128
+ Response[ProposalProjectRoleMapping]
125
129
  """
126
130
 
127
131
  kwargs = _get_kwargs(
@@ -138,19 +142,19 @@ async def asyncio(
138
142
  uuid: UUID,
139
143
  *,
140
144
  client: AuthenticatedClient,
141
- body: RulePlansRequest,
142
- ) -> RulePlans:
145
+ body: ProposalProjectRoleMappingRequest,
146
+ ) -> ProposalProjectRoleMapping:
143
147
  """
144
148
  Args:
145
149
  uuid (UUID):
146
- body (RulePlansRequest):
150
+ body (ProposalProjectRoleMappingRequest):
147
151
 
148
152
  Raises:
149
153
  errors.UnexpectedStatus: If the server returns an undocumented status code.
150
154
  httpx.TimeoutException: If the request takes longer than Client.timeout.
151
155
 
152
156
  Returns:
153
- RulePlans
157
+ ProposalProjectRoleMapping
154
158
  """
155
159
 
156
160
  return (
@@ -14,7 +14,7 @@ def _get_kwargs(
14
14
  ) -> dict[str, Any]:
15
15
  _kwargs: dict[str, Any] = {
16
16
  "method": "delete",
17
- "url": f"/api/autoprovisioning-rule-plans/{uuid}/",
17
+ "url": f"/api/marketplace-plans/{uuid}/",
18
18
  }
19
19
 
20
20
  return _kwargs
@@ -849,6 +849,7 @@ from .patched_project_credit_request import PatchedProjectCreditRequest
849
849
  from .patched_project_estimated_cost_policy_request import PatchedProjectEstimatedCostPolicyRequest
850
850
  from .patched_project_request import PatchedProjectRequest
851
851
  from .patched_project_service_account_request import PatchedProjectServiceAccountRequest
852
+ from .patched_proposal_project_role_mapping_request import PatchedProposalProjectRoleMappingRequest
852
853
  from .patched_proposal_review_request import PatchedProposalReviewRequest
853
854
  from .patched_protected_call_request import PatchedProtectedCallRequest
854
855
  from .patched_protected_round_request import PatchedProtectedRoundRequest
@@ -867,10 +868,9 @@ from .patched_requested_resource_request import PatchedRequestedResourceRequest
867
868
  from .patched_resource_update_request import PatchedResourceUpdateRequest
868
869
  from .patched_robot_account_request import PatchedRobotAccountRequest
869
870
  from .patched_role_details_request import PatchedRoleDetailsRequest
870
- from .patched_rule_plans_request import PatchedRulePlansRequest
871
- from .patched_rule_plans_request_attributes import PatchedRulePlansRequestAttributes
872
- from .patched_rule_plans_request_limits import PatchedRulePlansRequestLimits
873
871
  from .patched_rule_request import PatchedRuleRequest
872
+ from .patched_rule_request_plan_attributes import PatchedRuleRequestPlanAttributes
873
+ from .patched_rule_request_plan_limits import PatchedRuleRequestPlanLimits
874
874
  from .patched_screenshot_request import PatchedScreenshotRequest
875
875
  from .patched_section_request import PatchedSectionRequest
876
876
  from .patched_service_provider_request import PatchedServiceProviderRequest
@@ -948,6 +948,8 @@ from .proposal import Proposal
948
948
  from .proposal_approve_request import ProposalApproveRequest
949
949
  from .proposal_documentation import ProposalDocumentation
950
950
  from .proposal_documentation_request import ProposalDocumentationRequest
951
+ from .proposal_project_role_mapping import ProposalProjectRoleMapping
952
+ from .proposal_project_role_mapping_request import ProposalProjectRoleMappingRequest
951
953
  from .proposal_proposals_list_o_item import ProposalProposalsListOItem
952
954
  from .proposal_proposals_list_state_item import ProposalProposalsListStateItem
953
955
  from .proposal_proposals_list_users_list_field_item import ProposalProposalsListUsersListFieldItem
@@ -1158,13 +1160,11 @@ from .roles_list_field_item import RolesListFieldItem
1158
1160
  from .roles_retrieve_field_item import RolesRetrieveFieldItem
1159
1161
  from .round_reviewer import RoundReviewer
1160
1162
  from .rule import Rule
1161
- from .rule_plans import RulePlans
1162
- from .rule_plans_attributes import RulePlansAttributes
1163
- from .rule_plans_limits import RulePlansLimits
1164
- from .rule_plans_request import RulePlansRequest
1165
- from .rule_plans_request_attributes import RulePlansRequestAttributes
1166
- from .rule_plans_request_limits import RulePlansRequestLimits
1163
+ from .rule_plan_attributes import RulePlanAttributes
1164
+ from .rule_plan_limits import RulePlanLimits
1167
1165
  from .rule_request import RuleRequest
1166
+ from .rule_request_plan_attributes import RuleRequestPlanAttributes
1167
+ from .rule_request_plan_limits import RuleRequestPlanLimits
1168
1168
  from .runtime_states import RuntimeStates
1169
1169
  from .saml_2_login import Saml2Login
1170
1170
  from .saml_2_login_complete import Saml2LoginComplete
@@ -2087,6 +2087,7 @@ __all__ = (
2087
2087
  "PatchedProjectEstimatedCostPolicyRequest",
2088
2088
  "PatchedProjectRequest",
2089
2089
  "PatchedProjectServiceAccountRequest",
2090
+ "PatchedProposalProjectRoleMappingRequest",
2090
2091
  "PatchedProposalReviewRequest",
2091
2092
  "PatchedProtectedCallRequest",
2092
2093
  "PatchedProtectedRoundRequest",
@@ -2105,10 +2106,9 @@ __all__ = (
2105
2106
  "PatchedResourceUpdateRequest",
2106
2107
  "PatchedRobotAccountRequest",
2107
2108
  "PatchedRoleDetailsRequest",
2108
- "PatchedRulePlansRequest",
2109
- "PatchedRulePlansRequestAttributes",
2110
- "PatchedRulePlansRequestLimits",
2111
2109
  "PatchedRuleRequest",
2110
+ "PatchedRuleRequestPlanAttributes",
2111
+ "PatchedRuleRequestPlanLimits",
2112
2112
  "PatchedScreenshotRequest",
2113
2113
  "PatchedSectionRequest",
2114
2114
  "PatchedServiceProviderRequest",
@@ -2178,6 +2178,8 @@ __all__ = (
2178
2178
  "ProposalApproveRequest",
2179
2179
  "ProposalDocumentation",
2180
2180
  "ProposalDocumentationRequest",
2181
+ "ProposalProjectRoleMapping",
2182
+ "ProposalProjectRoleMappingRequest",
2181
2183
  "ProposalProposalsListOItem",
2182
2184
  "ProposalProposalsListStateItem",
2183
2185
  "ProposalProposalsListUsersListFieldItem",
@@ -2380,13 +2382,11 @@ __all__ = (
2380
2382
  "RoleType",
2381
2383
  "RoundReviewer",
2382
2384
  "Rule",
2383
- "RulePlans",
2384
- "RulePlansAttributes",
2385
- "RulePlansLimits",
2386
- "RulePlansRequest",
2387
- "RulePlansRequestAttributes",
2388
- "RulePlansRequestLimits",
2385
+ "RulePlanAttributes",
2386
+ "RulePlanLimits",
2389
2387
  "RuleRequest",
2388
+ "RuleRequestPlanAttributes",
2389
+ "RuleRequestPlanLimits",
2390
2390
  "RuntimeStates",
2391
2391
  "Saml2Login",
2392
2392
  "Saml2LoginComplete",
@@ -62,6 +62,7 @@ class EventTypesEnum(str, Enum):
62
62
  MARKETPLACE_PLAN_COMPONENT_FUTURE_PRICE_UPDATED = "marketplace_plan_component_future_price_updated"
63
63
  MARKETPLACE_PLAN_COMPONENT_QUOTA_UPDATED = "marketplace_plan_component_quota_updated"
64
64
  MARKETPLACE_PLAN_CREATED = "marketplace_plan_created"
65
+ MARKETPLACE_PLAN_DELETED = "marketplace_plan_deleted"
65
66
  MARKETPLACE_PLAN_UPDATED = "marketplace_plan_updated"
66
67
  MARKETPLACE_RESOURCE_CREATE_CANCELED = "marketplace_resource_create_canceled"
67
68
  MARKETPLACE_RESOURCE_CREATE_FAILED = "marketplace_resource_create_failed"