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
@@ -0,0 +1,89 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Union
3
+ from uuid import UUID
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ uuid: UUID,
14
+ ) -> dict[str, Any]:
15
+ _kwargs: dict[str, Any] = {
16
+ "method": "post",
17
+ "url": f"/api/broadcast-messages/{uuid}/schedule/",
18
+ }
19
+
20
+ return _kwargs
21
+
22
+
23
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Any:
24
+ if response.status_code == 200:
25
+ return None
26
+ raise errors.UnexpectedStatus(response.status_code, response.content)
27
+
28
+
29
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
30
+ return Response(
31
+ status_code=HTTPStatus(response.status_code),
32
+ content=response.content,
33
+ headers=response.headers,
34
+ parsed=_parse_response(client=client, response=response),
35
+ )
36
+
37
+
38
+ def sync_detailed(
39
+ uuid: UUID,
40
+ *,
41
+ client: AuthenticatedClient,
42
+ ) -> Response[Any]:
43
+ """
44
+ Args:
45
+ uuid (UUID):
46
+
47
+ Raises:
48
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
49
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
50
+
51
+ Returns:
52
+ Response[Any]
53
+ """
54
+
55
+ kwargs = _get_kwargs(
56
+ uuid=uuid,
57
+ )
58
+
59
+ response = client.get_httpx_client().request(
60
+ **kwargs,
61
+ )
62
+
63
+ return _build_response(client=client, response=response)
64
+
65
+
66
+ async def asyncio_detailed(
67
+ uuid: UUID,
68
+ *,
69
+ client: AuthenticatedClient,
70
+ ) -> Response[Any]:
71
+ """
72
+ Args:
73
+ uuid (UUID):
74
+
75
+ Raises:
76
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
77
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
78
+
79
+ Returns:
80
+ Response[Any]
81
+ """
82
+
83
+ kwargs = _get_kwargs(
84
+ uuid=uuid,
85
+ )
86
+
87
+ response = await client.get_async_httpx_client().request(**kwargs)
88
+
89
+ return _build_response(client=client, response=response)
@@ -5,20 +5,20 @@ import httpx
5
5
 
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
- from ...models.rule_plans import RulePlans
9
- from ...models.rule_plans_request import RulePlansRequest
8
+ from ...models.proposal_project_role_mapping import ProposalProjectRoleMapping
9
+ from ...models.proposal_project_role_mapping_request import ProposalProjectRoleMappingRequest
10
10
  from ...types import Response
11
11
 
12
12
 
13
13
  def _get_kwargs(
14
14
  *,
15
- body: RulePlansRequest,
15
+ body: ProposalProjectRoleMappingRequest,
16
16
  ) -> dict[str, Any]:
17
17
  headers: dict[str, Any] = {}
18
18
 
19
19
  _kwargs: dict[str, Any] = {
20
20
  "method": "post",
21
- "url": "/api/autoprovisioning-rule-plans/",
21
+ "url": "/api/call-proposal-project-role-mappings/",
22
22
  }
23
23
 
24
24
  _kwargs["json"] = body.to_dict()
@@ -29,15 +29,19 @@ def _get_kwargs(
29
29
  return _kwargs
30
30
 
31
31
 
32
- def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> RulePlans:
32
+ def _parse_response(
33
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
34
+ ) -> ProposalProjectRoleMapping:
33
35
  if response.status_code == 201:
34
- response_201 = RulePlans.from_dict(response.json())
36
+ response_201 = ProposalProjectRoleMapping.from_dict(response.json())
35
37
 
36
38
  return response_201
37
39
  raise errors.UnexpectedStatus(response.status_code, response.content)
38
40
 
39
41
 
40
- def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[RulePlans]:
42
+ def _build_response(
43
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
44
+ ) -> Response[ProposalProjectRoleMapping]:
41
45
  return Response(
42
46
  status_code=HTTPStatus(response.status_code),
43
47
  content=response.content,
@@ -49,18 +53,18 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
49
53
  def sync_detailed(
50
54
  *,
51
55
  client: AuthenticatedClient,
52
- body: RulePlansRequest,
53
- ) -> Response[RulePlans]:
56
+ body: ProposalProjectRoleMappingRequest,
57
+ ) -> Response[ProposalProjectRoleMapping]:
54
58
  """
55
59
  Args:
56
- body (RulePlansRequest):
60
+ body (ProposalProjectRoleMappingRequest):
57
61
 
58
62
  Raises:
59
63
  errors.UnexpectedStatus: If the server returns an undocumented status code.
60
64
  httpx.TimeoutException: If the request takes longer than Client.timeout.
61
65
 
62
66
  Returns:
63
- Response[RulePlans]
67
+ Response[ProposalProjectRoleMapping]
64
68
  """
65
69
 
66
70
  kwargs = _get_kwargs(
@@ -77,18 +81,18 @@ def sync_detailed(
77
81
  def sync(
78
82
  *,
79
83
  client: AuthenticatedClient,
80
- body: RulePlansRequest,
81
- ) -> RulePlans:
84
+ body: ProposalProjectRoleMappingRequest,
85
+ ) -> ProposalProjectRoleMapping:
82
86
  """
83
87
  Args:
84
- body (RulePlansRequest):
88
+ body (ProposalProjectRoleMappingRequest):
85
89
 
86
90
  Raises:
87
91
  errors.UnexpectedStatus: If the server returns an undocumented status code.
88
92
  httpx.TimeoutException: If the request takes longer than Client.timeout.
89
93
 
90
94
  Returns:
91
- RulePlans
95
+ ProposalProjectRoleMapping
92
96
  """
93
97
 
94
98
  return sync_detailed(
@@ -100,18 +104,18 @@ def sync(
100
104
  async def asyncio_detailed(
101
105
  *,
102
106
  client: AuthenticatedClient,
103
- body: RulePlansRequest,
104
- ) -> Response[RulePlans]:
107
+ body: ProposalProjectRoleMappingRequest,
108
+ ) -> Response[ProposalProjectRoleMapping]:
105
109
  """
106
110
  Args:
107
- body (RulePlansRequest):
111
+ body (ProposalProjectRoleMappingRequest):
108
112
 
109
113
  Raises:
110
114
  errors.UnexpectedStatus: If the server returns an undocumented status code.
111
115
  httpx.TimeoutException: If the request takes longer than Client.timeout.
112
116
 
113
117
  Returns:
114
- Response[RulePlans]
118
+ Response[ProposalProjectRoleMapping]
115
119
  """
116
120
 
117
121
  kwargs = _get_kwargs(
@@ -126,18 +130,18 @@ async def asyncio_detailed(
126
130
  async def asyncio(
127
131
  *,
128
132
  client: AuthenticatedClient,
129
- body: RulePlansRequest,
130
- ) -> RulePlans:
133
+ body: ProposalProjectRoleMappingRequest,
134
+ ) -> ProposalProjectRoleMapping:
131
135
  """
132
136
  Args:
133
- body (RulePlansRequest):
137
+ body (ProposalProjectRoleMappingRequest):
134
138
 
135
139
  Raises:
136
140
  errors.UnexpectedStatus: If the server returns an undocumented status code.
137
141
  httpx.TimeoutException: If the request takes longer than Client.timeout.
138
142
 
139
143
  Returns:
140
- RulePlans
144
+ ProposalProjectRoleMapping
141
145
  """
142
146
 
143
147
  return (
@@ -0,0 +1,89 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Union
3
+ from uuid import UUID
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ uuid: UUID,
14
+ ) -> dict[str, Any]:
15
+ _kwargs: dict[str, Any] = {
16
+ "method": "delete",
17
+ "url": f"/api/call-proposal-project-role-mappings/{uuid}/",
18
+ }
19
+
20
+ return _kwargs
21
+
22
+
23
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Any:
24
+ if response.status_code == 204:
25
+ return None
26
+ raise errors.UnexpectedStatus(response.status_code, response.content)
27
+
28
+
29
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
30
+ return Response(
31
+ status_code=HTTPStatus(response.status_code),
32
+ content=response.content,
33
+ headers=response.headers,
34
+ parsed=_parse_response(client=client, response=response),
35
+ )
36
+
37
+
38
+ def sync_detailed(
39
+ uuid: UUID,
40
+ *,
41
+ client: AuthenticatedClient,
42
+ ) -> Response[Any]:
43
+ """
44
+ Args:
45
+ uuid (UUID):
46
+
47
+ Raises:
48
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
49
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
50
+
51
+ Returns:
52
+ Response[Any]
53
+ """
54
+
55
+ kwargs = _get_kwargs(
56
+ uuid=uuid,
57
+ )
58
+
59
+ response = client.get_httpx_client().request(
60
+ **kwargs,
61
+ )
62
+
63
+ return _build_response(client=client, response=response)
64
+
65
+
66
+ async def asyncio_detailed(
67
+ uuid: UUID,
68
+ *,
69
+ client: AuthenticatedClient,
70
+ ) -> Response[Any]:
71
+ """
72
+ Args:
73
+ uuid (UUID):
74
+
75
+ Raises:
76
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
77
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
78
+
79
+ Returns:
80
+ Response[Any]
81
+ """
82
+
83
+ kwargs = _get_kwargs(
84
+ uuid=uuid,
85
+ )
86
+
87
+ response = await client.get_async_httpx_client().request(**kwargs)
88
+
89
+ return _build_response(client=client, response=response)
@@ -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 (