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
@@ -51,7 +51,8 @@ def sync_detailed(
51
51
  client: AuthenticatedClient,
52
52
  body: RuleRequest,
53
53
  ) -> Response[Rule]:
54
- """
54
+ """Manage autoprovisioning rules.
55
+
55
56
  Args:
56
57
  body (RuleRequest):
57
58
 
@@ -79,7 +80,8 @@ def sync(
79
80
  client: AuthenticatedClient,
80
81
  body: RuleRequest,
81
82
  ) -> Rule:
82
- """
83
+ """Manage autoprovisioning rules.
84
+
83
85
  Args:
84
86
  body (RuleRequest):
85
87
 
@@ -102,7 +104,8 @@ async def asyncio_detailed(
102
104
  client: AuthenticatedClient,
103
105
  body: RuleRequest,
104
106
  ) -> Response[Rule]:
105
- """
107
+ """Manage autoprovisioning rules.
108
+
106
109
  Args:
107
110
  body (RuleRequest):
108
111
 
@@ -128,7 +131,8 @@ async def asyncio(
128
131
  client: AuthenticatedClient,
129
132
  body: RuleRequest,
130
133
  ) -> Rule:
131
- """
134
+ """Manage autoprovisioning rules.
135
+
132
136
  Args:
133
137
  body (RuleRequest):
134
138
 
@@ -40,7 +40,8 @@ def sync_detailed(
40
40
  *,
41
41
  client: AuthenticatedClient,
42
42
  ) -> Response[Any]:
43
- """
43
+ """Manage autoprovisioning rules.
44
+
44
45
  Args:
45
46
  uuid (UUID):
46
47
 
@@ -68,7 +69,8 @@ async def asyncio_detailed(
68
69
  *,
69
70
  client: AuthenticatedClient,
70
71
  ) -> Response[Any]:
71
- """
72
+ """Manage autoprovisioning rules.
73
+
72
74
  Args:
73
75
  uuid (UUID):
74
76
 
@@ -59,7 +59,7 @@ def sync_detailed(
59
59
  page: Union[Unset, int] = UNSET,
60
60
  page_size: Union[Unset, int] = UNSET,
61
61
  ) -> Response[list["Rule"]]:
62
- """Mixin to optimize HEAD requests for DRF views bypassing serializer processing
62
+ """Manage autoprovisioning rules.
63
63
 
64
64
  Args:
65
65
  page (Union[Unset, int]):
@@ -91,7 +91,7 @@ def sync(
91
91
  page: Union[Unset, int] = UNSET,
92
92
  page_size: Union[Unset, int] = UNSET,
93
93
  ) -> list["Rule"]:
94
- """Mixin to optimize HEAD requests for DRF views bypassing serializer processing
94
+ """Manage autoprovisioning rules.
95
95
 
96
96
  Args:
97
97
  page (Union[Unset, int]):
@@ -118,7 +118,7 @@ async def asyncio_detailed(
118
118
  page: Union[Unset, int] = UNSET,
119
119
  page_size: Union[Unset, int] = UNSET,
120
120
  ) -> Response[list["Rule"]]:
121
- """Mixin to optimize HEAD requests for DRF views bypassing serializer processing
121
+ """Manage autoprovisioning rules.
122
122
 
123
123
  Args:
124
124
  page (Union[Unset, int]):
@@ -148,7 +148,7 @@ async def asyncio(
148
148
  page: Union[Unset, int] = UNSET,
149
149
  page_size: Union[Unset, int] = UNSET,
150
150
  ) -> list["Rule"]:
151
- """Mixin to optimize HEAD requests for DRF views bypassing serializer processing
151
+ """Manage autoprovisioning rules.
152
152
 
153
153
  Args:
154
154
  page (Union[Unset, int]):
@@ -54,7 +54,8 @@ def sync_detailed(
54
54
  client: AuthenticatedClient,
55
55
  body: PatchedRuleRequest,
56
56
  ) -> Response[Rule]:
57
- """
57
+ """Manage autoprovisioning rules.
58
+
58
59
  Args:
59
60
  uuid (UUID):
60
61
  body (PatchedRuleRequest):
@@ -85,7 +86,8 @@ def sync(
85
86
  client: AuthenticatedClient,
86
87
  body: PatchedRuleRequest,
87
88
  ) -> Rule:
88
- """
89
+ """Manage autoprovisioning rules.
90
+
89
91
  Args:
90
92
  uuid (UUID):
91
93
  body (PatchedRuleRequest):
@@ -111,7 +113,8 @@ async def asyncio_detailed(
111
113
  client: AuthenticatedClient,
112
114
  body: PatchedRuleRequest,
113
115
  ) -> Response[Rule]:
114
- """
116
+ """Manage autoprovisioning rules.
117
+
115
118
  Args:
116
119
  uuid (UUID):
117
120
  body (PatchedRuleRequest):
@@ -140,7 +143,8 @@ async def asyncio(
140
143
  client: AuthenticatedClient,
141
144
  body: PatchedRuleRequest,
142
145
  ) -> Rule:
143
- """
146
+ """Manage autoprovisioning rules.
147
+
144
148
  Args:
145
149
  uuid (UUID):
146
150
  body (PatchedRuleRequest):
@@ -43,7 +43,8 @@ def sync_detailed(
43
43
  *,
44
44
  client: AuthenticatedClient,
45
45
  ) -> Response[Rule]:
46
- """
46
+ """Manage autoprovisioning rules.
47
+
47
48
  Args:
48
49
  uuid (UUID):
49
50
 
@@ -71,7 +72,8 @@ def sync(
71
72
  *,
72
73
  client: AuthenticatedClient,
73
74
  ) -> Rule:
74
- """
75
+ """Manage autoprovisioning rules.
76
+
75
77
  Args:
76
78
  uuid (UUID):
77
79
 
@@ -94,7 +96,8 @@ async def asyncio_detailed(
94
96
  *,
95
97
  client: AuthenticatedClient,
96
98
  ) -> Response[Rule]:
97
- """
99
+ """Manage autoprovisioning rules.
100
+
98
101
  Args:
99
102
  uuid (UUID):
100
103
 
@@ -120,7 +123,8 @@ async def asyncio(
120
123
  *,
121
124
  client: AuthenticatedClient,
122
125
  ) -> Rule:
123
- """
126
+ """Manage autoprovisioning rules.
127
+
124
128
  Args:
125
129
  uuid (UUID):
126
130
 
@@ -54,7 +54,8 @@ def sync_detailed(
54
54
  client: AuthenticatedClient,
55
55
  body: RuleRequest,
56
56
  ) -> Response[Rule]:
57
- """
57
+ """Manage autoprovisioning rules.
58
+
58
59
  Args:
59
60
  uuid (UUID):
60
61
  body (RuleRequest):
@@ -85,7 +86,8 @@ def sync(
85
86
  client: AuthenticatedClient,
86
87
  body: RuleRequest,
87
88
  ) -> Rule:
88
- """
89
+ """Manage autoprovisioning rules.
90
+
89
91
  Args:
90
92
  uuid (UUID):
91
93
  body (RuleRequest):
@@ -111,7 +113,8 @@ async def asyncio_detailed(
111
113
  client: AuthenticatedClient,
112
114
  body: RuleRequest,
113
115
  ) -> Response[Rule]:
114
- """
116
+ """Manage autoprovisioning rules.
117
+
115
118
  Args:
116
119
  uuid (UUID):
117
120
  body (RuleRequest):
@@ -140,7 +143,8 @@ async def asyncio(
140
143
  client: AuthenticatedClient,
141
144
  body: RuleRequest,
142
145
  ) -> Rule:
143
- """
146
+ """Manage autoprovisioning rules.
147
+
144
148
  Args:
145
149
  uuid (UUID):
146
150
  body (RuleRequest):
@@ -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)