waldur-api-client 7.6.7__py3-none-any.whl → 7.6.9__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 (91) hide show
  1. waldur_api_client/api/backend_resource_requests/__init__.py +1 -0
  2. waldur_api_client/api/backend_resource_requests/backend_resource_requests_create.py +150 -0
  3. waldur_api_client/api/backend_resource_requests/backend_resource_requests_list.py +313 -0
  4. waldur_api_client/api/backend_resource_requests/backend_resource_requests_retrieve.py +142 -0
  5. waldur_api_client/api/backend_resource_requests/backend_resource_requests_set_done.py +144 -0
  6. waldur_api_client/api/backend_resource_requests/backend_resource_requests_set_erred.py +166 -0
  7. waldur_api_client/api/backend_resource_requests/backend_resource_requests_start_processing.py +146 -0
  8. waldur_api_client/api/backend_resources/__init__.py +1 -0
  9. waldur_api_client/api/backend_resources/backend_resources_create.py +150 -0
  10. waldur_api_client/api/backend_resources/backend_resources_destroy.py +89 -0
  11. waldur_api_client/api/backend_resources/backend_resources_import_resource.py +162 -0
  12. waldur_api_client/api/backend_resources/backend_resources_list.py +315 -0
  13. waldur_api_client/api/backend_resources/backend_resources_retrieve.py +142 -0
  14. waldur_api_client/api/invoices/invoices_list.py +0 -30
  15. waldur_api_client/api/invoices/invoices_stats_list.py +0 -30
  16. waldur_api_client/api/marketplace_maintenance_announcement_offerings/__init__.py +1 -0
  17. waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_create.py +152 -0
  18. waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_destroy.py +89 -0
  19. waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_list.py +175 -0
  20. waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_partial_update.py +166 -0
  21. waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_retrieve.py +144 -0
  22. waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_update.py +166 -0
  23. waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/__init__.py +1 -0
  24. waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_create.py +152 -0
  25. waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_destroy.py +89 -0
  26. waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_list.py +175 -0
  27. waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_partial_update.py +168 -0
  28. waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_retrieve.py +144 -0
  29. waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_update.py +166 -0
  30. waldur_api_client/api/marketplace_maintenance_announcements/__init__.py +1 -0
  31. waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_create.py +150 -0
  32. waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_destroy.py +89 -0
  33. waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_list.py +175 -0
  34. waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_partial_update.py +164 -0
  35. waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_retrieve.py +142 -0
  36. waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_update.py +164 -0
  37. waldur_api_client/api/marketplace_maintenance_announcements_template/__init__.py +1 -0
  38. waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_create.py +152 -0
  39. waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_destroy.py +89 -0
  40. waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_list.py +175 -0
  41. waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_partial_update.py +166 -0
  42. waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_retrieve.py +144 -0
  43. waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_update.py +166 -0
  44. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_offering_component.py +6 -6
  45. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_customer_projects_list.py +15 -0
  46. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_projects_list.py +15 -0
  47. waldur_api_client/api/openstack_volume_types/openstack_volume_types_names_retrieve.py +118 -0
  48. waldur_api_client/api/projects/projects_list.py +15 -0
  49. waldur_api_client/models/__init__.py +60 -2
  50. waldur_api_client/models/backend_resource.py +162 -0
  51. waldur_api_client/models/backend_resource_import_request.py +67 -0
  52. waldur_api_client/models/backend_resource_req.py +162 -0
  53. waldur_api_client/models/backend_resource_req_request.py +60 -0
  54. waldur_api_client/models/backend_resource_req_state_enum.py +11 -0
  55. waldur_api_client/models/backend_resource_request.py +96 -0
  56. waldur_api_client/models/backend_resource_request_set_erred_request.py +68 -0
  57. waldur_api_client/models/backend_resource_requests_list_o_item.py +9 -0
  58. waldur_api_client/models/backend_resource_requests_list_state_item.py +11 -0
  59. waldur_api_client/models/{order_details_attributes.py → backend_resource_requests_set_done_response_200.py} +6 -6
  60. waldur_api_client/models/backend_resource_requests_set_erred_response_200.py +44 -0
  61. waldur_api_client/models/backend_resource_requests_start_processing_response_200.py +44 -0
  62. waldur_api_client/models/backend_resources_list_o_item.py +9 -0
  63. waldur_api_client/models/constance_settings.py +22 -0
  64. waldur_api_client/models/constance_settings_request.py +22 -0
  65. waldur_api_client/models/event_types_enum.py +4 -0
  66. waldur_api_client/models/impact_level_enum.py +11 -0
  67. waldur_api_client/models/maintenance_announcement.py +225 -0
  68. waldur_api_client/models/maintenance_announcement_offering.py +112 -0
  69. waldur_api_client/models/maintenance_announcement_offering_request.py +95 -0
  70. waldur_api_client/models/maintenance_announcement_offering_template.py +112 -0
  71. waldur_api_client/models/maintenance_announcement_offering_template_request.py +95 -0
  72. waldur_api_client/models/maintenance_announcement_request.py +113 -0
  73. waldur_api_client/models/maintenance_announcement_state_enum.py +12 -0
  74. waldur_api_client/models/maintenance_announcement_template.py +134 -0
  75. waldur_api_client/models/maintenance_announcement_template_request.py +95 -0
  76. waldur_api_client/models/maintenance_type_enum.py +12 -0
  77. waldur_api_client/models/merged_plugin_options.py +21 -1
  78. waldur_api_client/models/merged_plugin_options_request.py +21 -1
  79. waldur_api_client/models/offering_component.py +15 -4
  80. waldur_api_client/models/order_details.py +4 -14
  81. waldur_api_client/models/patched_maintenance_announcement_offering_request.py +94 -0
  82. waldur_api_client/models/patched_maintenance_announcement_offering_template_request.py +94 -0
  83. waldur_api_client/models/patched_maintenance_announcement_request.py +128 -0
  84. waldur_api_client/models/patched_maintenance_announcement_template_request.py +94 -0
  85. waldur_api_client/models/update_offering_component_request.py +274 -0
  86. waldur_api_client/models/user_agreement.py +9 -11
  87. waldur_api_client/models/user_agreement_request.py +9 -11
  88. {waldur_api_client-7.6.7.dist-info → waldur_api_client-7.6.9.dist-info}/METADATA +1 -1
  89. {waldur_api_client-7.6.7.dist-info → waldur_api_client-7.6.9.dist-info}/RECORD +91 -21
  90. {waldur_api_client-7.6.7.dist-info → waldur_api_client-7.6.9.dist-info}/LICENSE +0 -0
  91. {waldur_api_client-7.6.7.dist-info → waldur_api_client-7.6.9.dist-info}/WHEEL +0 -0
@@ -0,0 +1,164 @@
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 ...models.maintenance_announcement import MaintenanceAnnouncement
10
+ from ...models.maintenance_announcement_request import MaintenanceAnnouncementRequest
11
+ from ...types import Response
12
+
13
+
14
+ def _get_kwargs(
15
+ uuid: UUID,
16
+ *,
17
+ body: MaintenanceAnnouncementRequest,
18
+ ) -> dict[str, Any]:
19
+ headers: dict[str, Any] = {}
20
+
21
+ _kwargs: dict[str, Any] = {
22
+ "method": "put",
23
+ "url": f"/api/marketplace-maintenance-announcements/{uuid}/",
24
+ }
25
+
26
+ _kwargs["json"] = body.to_dict()
27
+
28
+ headers["Content-Type"] = "application/json"
29
+
30
+ _kwargs["headers"] = headers
31
+ return _kwargs
32
+
33
+
34
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> MaintenanceAnnouncement:
35
+ if response.status_code == 200:
36
+ response_200 = MaintenanceAnnouncement.from_dict(response.json())
37
+
38
+ return response_200
39
+ raise errors.UnexpectedStatus(response.status_code, response.content)
40
+
41
+
42
+ def _build_response(
43
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
44
+ ) -> Response[MaintenanceAnnouncement]:
45
+ return Response(
46
+ status_code=HTTPStatus(response.status_code),
47
+ content=response.content,
48
+ headers=response.headers,
49
+ parsed=_parse_response(client=client, response=response),
50
+ )
51
+
52
+
53
+ def sync_detailed(
54
+ uuid: UUID,
55
+ *,
56
+ client: AuthenticatedClient,
57
+ body: MaintenanceAnnouncementRequest,
58
+ ) -> Response[MaintenanceAnnouncement]:
59
+ """
60
+ Args:
61
+ uuid (UUID):
62
+ body (MaintenanceAnnouncementRequest):
63
+
64
+ Raises:
65
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
66
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
67
+
68
+ Returns:
69
+ Response[MaintenanceAnnouncement]
70
+ """
71
+
72
+ kwargs = _get_kwargs(
73
+ uuid=uuid,
74
+ body=body,
75
+ )
76
+
77
+ response = client.get_httpx_client().request(
78
+ **kwargs,
79
+ )
80
+
81
+ return _build_response(client=client, response=response)
82
+
83
+
84
+ def sync(
85
+ uuid: UUID,
86
+ *,
87
+ client: AuthenticatedClient,
88
+ body: MaintenanceAnnouncementRequest,
89
+ ) -> MaintenanceAnnouncement:
90
+ """
91
+ Args:
92
+ uuid (UUID):
93
+ body (MaintenanceAnnouncementRequest):
94
+
95
+ Raises:
96
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
97
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
98
+
99
+ Returns:
100
+ MaintenanceAnnouncement
101
+ """
102
+
103
+ return sync_detailed(
104
+ uuid=uuid,
105
+ client=client,
106
+ body=body,
107
+ ).parsed
108
+
109
+
110
+ async def asyncio_detailed(
111
+ uuid: UUID,
112
+ *,
113
+ client: AuthenticatedClient,
114
+ body: MaintenanceAnnouncementRequest,
115
+ ) -> Response[MaintenanceAnnouncement]:
116
+ """
117
+ Args:
118
+ uuid (UUID):
119
+ body (MaintenanceAnnouncementRequest):
120
+
121
+ Raises:
122
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
123
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
124
+
125
+ Returns:
126
+ Response[MaintenanceAnnouncement]
127
+ """
128
+
129
+ kwargs = _get_kwargs(
130
+ uuid=uuid,
131
+ body=body,
132
+ )
133
+
134
+ response = await client.get_async_httpx_client().request(**kwargs)
135
+
136
+ return _build_response(client=client, response=response)
137
+
138
+
139
+ async def asyncio(
140
+ uuid: UUID,
141
+ *,
142
+ client: AuthenticatedClient,
143
+ body: MaintenanceAnnouncementRequest,
144
+ ) -> MaintenanceAnnouncement:
145
+ """
146
+ Args:
147
+ uuid (UUID):
148
+ body (MaintenanceAnnouncementRequest):
149
+
150
+ Raises:
151
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
152
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
153
+
154
+ Returns:
155
+ MaintenanceAnnouncement
156
+ """
157
+
158
+ return (
159
+ await asyncio_detailed(
160
+ uuid=uuid,
161
+ client=client,
162
+ body=body,
163
+ )
164
+ ).parsed
@@ -0,0 +1 @@
1
+ """Contains endpoint functions for accessing the API"""
@@ -0,0 +1,152 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.maintenance_announcement_template import MaintenanceAnnouncementTemplate
9
+ from ...models.maintenance_announcement_template_request import MaintenanceAnnouncementTemplateRequest
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ *,
15
+ body: MaintenanceAnnouncementTemplateRequest,
16
+ ) -> dict[str, Any]:
17
+ headers: dict[str, Any] = {}
18
+
19
+ _kwargs: dict[str, Any] = {
20
+ "method": "post",
21
+ "url": "/api/marketplace-maintenance-announcements-template/",
22
+ }
23
+
24
+ _kwargs["json"] = body.to_dict()
25
+
26
+ headers["Content-Type"] = "application/json"
27
+
28
+ _kwargs["headers"] = headers
29
+ return _kwargs
30
+
31
+
32
+ def _parse_response(
33
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
34
+ ) -> MaintenanceAnnouncementTemplate:
35
+ if response.status_code == 201:
36
+ response_201 = MaintenanceAnnouncementTemplate.from_dict(response.json())
37
+
38
+ return response_201
39
+ raise errors.UnexpectedStatus(response.status_code, response.content)
40
+
41
+
42
+ def _build_response(
43
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
44
+ ) -> Response[MaintenanceAnnouncementTemplate]:
45
+ return Response(
46
+ status_code=HTTPStatus(response.status_code),
47
+ content=response.content,
48
+ headers=response.headers,
49
+ parsed=_parse_response(client=client, response=response),
50
+ )
51
+
52
+
53
+ def sync_detailed(
54
+ *,
55
+ client: AuthenticatedClient,
56
+ body: MaintenanceAnnouncementTemplateRequest,
57
+ ) -> Response[MaintenanceAnnouncementTemplate]:
58
+ """
59
+ Args:
60
+ body (MaintenanceAnnouncementTemplateRequest):
61
+
62
+ Raises:
63
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
64
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
65
+
66
+ Returns:
67
+ Response[MaintenanceAnnouncementTemplate]
68
+ """
69
+
70
+ kwargs = _get_kwargs(
71
+ body=body,
72
+ )
73
+
74
+ response = client.get_httpx_client().request(
75
+ **kwargs,
76
+ )
77
+
78
+ return _build_response(client=client, response=response)
79
+
80
+
81
+ def sync(
82
+ *,
83
+ client: AuthenticatedClient,
84
+ body: MaintenanceAnnouncementTemplateRequest,
85
+ ) -> MaintenanceAnnouncementTemplate:
86
+ """
87
+ Args:
88
+ body (MaintenanceAnnouncementTemplateRequest):
89
+
90
+ Raises:
91
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
92
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
93
+
94
+ Returns:
95
+ MaintenanceAnnouncementTemplate
96
+ """
97
+
98
+ return sync_detailed(
99
+ client=client,
100
+ body=body,
101
+ ).parsed
102
+
103
+
104
+ async def asyncio_detailed(
105
+ *,
106
+ client: AuthenticatedClient,
107
+ body: MaintenanceAnnouncementTemplateRequest,
108
+ ) -> Response[MaintenanceAnnouncementTemplate]:
109
+ """
110
+ Args:
111
+ body (MaintenanceAnnouncementTemplateRequest):
112
+
113
+ Raises:
114
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
115
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
116
+
117
+ Returns:
118
+ Response[MaintenanceAnnouncementTemplate]
119
+ """
120
+
121
+ kwargs = _get_kwargs(
122
+ body=body,
123
+ )
124
+
125
+ response = await client.get_async_httpx_client().request(**kwargs)
126
+
127
+ return _build_response(client=client, response=response)
128
+
129
+
130
+ async def asyncio(
131
+ *,
132
+ client: AuthenticatedClient,
133
+ body: MaintenanceAnnouncementTemplateRequest,
134
+ ) -> MaintenanceAnnouncementTemplate:
135
+ """
136
+ Args:
137
+ body (MaintenanceAnnouncementTemplateRequest):
138
+
139
+ Raises:
140
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
141
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
142
+
143
+ Returns:
144
+ MaintenanceAnnouncementTemplate
145
+ """
146
+
147
+ return (
148
+ await asyncio_detailed(
149
+ client=client,
150
+ body=body,
151
+ )
152
+ ).parsed
@@ -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/marketplace-maintenance-announcements-template/{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)
@@ -0,0 +1,175 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.maintenance_announcement_template import MaintenanceAnnouncementTemplate
9
+ from ...types import UNSET, Response, Unset
10
+
11
+
12
+ def _get_kwargs(
13
+ *,
14
+ page: Union[Unset, int] = UNSET,
15
+ page_size: Union[Unset, int] = UNSET,
16
+ ) -> dict[str, Any]:
17
+ params: dict[str, Any] = {}
18
+
19
+ params["page"] = page
20
+
21
+ params["page_size"] = page_size
22
+
23
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
24
+
25
+ _kwargs: dict[str, Any] = {
26
+ "method": "get",
27
+ "url": "/api/marketplace-maintenance-announcements-template/",
28
+ "params": params,
29
+ }
30
+
31
+ return _kwargs
32
+
33
+
34
+ def _parse_response(
35
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
36
+ ) -> list["MaintenanceAnnouncementTemplate"]:
37
+ if response.status_code == 200:
38
+ response_200 = []
39
+ _response_200 = response.json()
40
+ for response_200_item_data in _response_200:
41
+ response_200_item = MaintenanceAnnouncementTemplate.from_dict(response_200_item_data)
42
+
43
+ response_200.append(response_200_item)
44
+
45
+ return response_200
46
+ raise errors.UnexpectedStatus(response.status_code, response.content)
47
+
48
+
49
+ def _build_response(
50
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
51
+ ) -> Response[list["MaintenanceAnnouncementTemplate"]]:
52
+ return Response(
53
+ status_code=HTTPStatus(response.status_code),
54
+ content=response.content,
55
+ headers=response.headers,
56
+ parsed=_parse_response(client=client, response=response),
57
+ )
58
+
59
+
60
+ def sync_detailed(
61
+ *,
62
+ client: AuthenticatedClient,
63
+ page: Union[Unset, int] = UNSET,
64
+ page_size: Union[Unset, int] = UNSET,
65
+ ) -> Response[list["MaintenanceAnnouncementTemplate"]]:
66
+ """Mixin to optimize HEAD requests for DRF views bypassing serializer processing
67
+
68
+ Args:
69
+ page (Union[Unset, int]):
70
+ page_size (Union[Unset, int]):
71
+
72
+ Raises:
73
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
74
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
75
+
76
+ Returns:
77
+ Response[list['MaintenanceAnnouncementTemplate']]
78
+ """
79
+
80
+ kwargs = _get_kwargs(
81
+ page=page,
82
+ page_size=page_size,
83
+ )
84
+
85
+ response = client.get_httpx_client().request(
86
+ **kwargs,
87
+ )
88
+
89
+ return _build_response(client=client, response=response)
90
+
91
+
92
+ def sync(
93
+ *,
94
+ client: AuthenticatedClient,
95
+ page: Union[Unset, int] = UNSET,
96
+ page_size: Union[Unset, int] = UNSET,
97
+ ) -> list["MaintenanceAnnouncementTemplate"]:
98
+ """Mixin to optimize HEAD requests for DRF views bypassing serializer processing
99
+
100
+ Args:
101
+ page (Union[Unset, int]):
102
+ page_size (Union[Unset, int]):
103
+
104
+ Raises:
105
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
106
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
107
+
108
+ Returns:
109
+ list['MaintenanceAnnouncementTemplate']
110
+ """
111
+
112
+ return sync_detailed(
113
+ client=client,
114
+ page=page,
115
+ page_size=page_size,
116
+ ).parsed
117
+
118
+
119
+ async def asyncio_detailed(
120
+ *,
121
+ client: AuthenticatedClient,
122
+ page: Union[Unset, int] = UNSET,
123
+ page_size: Union[Unset, int] = UNSET,
124
+ ) -> Response[list["MaintenanceAnnouncementTemplate"]]:
125
+ """Mixin to optimize HEAD requests for DRF views bypassing serializer processing
126
+
127
+ Args:
128
+ page (Union[Unset, int]):
129
+ page_size (Union[Unset, int]):
130
+
131
+ Raises:
132
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
133
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
134
+
135
+ Returns:
136
+ Response[list['MaintenanceAnnouncementTemplate']]
137
+ """
138
+
139
+ kwargs = _get_kwargs(
140
+ page=page,
141
+ page_size=page_size,
142
+ )
143
+
144
+ response = await client.get_async_httpx_client().request(**kwargs)
145
+
146
+ return _build_response(client=client, response=response)
147
+
148
+
149
+ async def asyncio(
150
+ *,
151
+ client: AuthenticatedClient,
152
+ page: Union[Unset, int] = UNSET,
153
+ page_size: Union[Unset, int] = UNSET,
154
+ ) -> list["MaintenanceAnnouncementTemplate"]:
155
+ """Mixin to optimize HEAD requests for DRF views bypassing serializer processing
156
+
157
+ Args:
158
+ page (Union[Unset, int]):
159
+ page_size (Union[Unset, int]):
160
+
161
+ Raises:
162
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
163
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
164
+
165
+ Returns:
166
+ list['MaintenanceAnnouncementTemplate']
167
+ """
168
+
169
+ return (
170
+ await asyncio_detailed(
171
+ client=client,
172
+ page=page,
173
+ page_size=page_size,
174
+ )
175
+ ).parsed