waldur-api-client 7.6.8__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 (58) hide show
  1. waldur_api_client/api/invoices/invoices_list.py +0 -30
  2. waldur_api_client/api/invoices/invoices_stats_list.py +0 -30
  3. waldur_api_client/api/marketplace_maintenance_announcement_offerings/__init__.py +1 -0
  4. waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_create.py +152 -0
  5. waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_destroy.py +89 -0
  6. waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_list.py +175 -0
  7. waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_partial_update.py +166 -0
  8. waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_retrieve.py +144 -0
  9. waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_update.py +166 -0
  10. waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/__init__.py +1 -0
  11. waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_create.py +152 -0
  12. waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_destroy.py +89 -0
  13. waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_list.py +175 -0
  14. waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_partial_update.py +168 -0
  15. waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_retrieve.py +144 -0
  16. waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_update.py +166 -0
  17. waldur_api_client/api/marketplace_maintenance_announcements/__init__.py +1 -0
  18. waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_create.py +150 -0
  19. waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_destroy.py +89 -0
  20. waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_list.py +175 -0
  21. waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_partial_update.py +164 -0
  22. waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_retrieve.py +142 -0
  23. waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_update.py +164 -0
  24. waldur_api_client/api/marketplace_maintenance_announcements_template/__init__.py +1 -0
  25. waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_create.py +152 -0
  26. waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_destroy.py +89 -0
  27. waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_list.py +175 -0
  28. waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_partial_update.py +166 -0
  29. waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_retrieve.py +144 -0
  30. waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_update.py +166 -0
  31. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_offering_component.py +6 -6
  32. waldur_api_client/api/openstack_volume_types/openstack_volume_types_names_retrieve.py +118 -0
  33. waldur_api_client/models/__init__.py +34 -0
  34. waldur_api_client/models/constance_settings.py +22 -0
  35. waldur_api_client/models/constance_settings_request.py +22 -0
  36. waldur_api_client/models/impact_level_enum.py +11 -0
  37. waldur_api_client/models/maintenance_announcement.py +225 -0
  38. waldur_api_client/models/maintenance_announcement_offering.py +112 -0
  39. waldur_api_client/models/maintenance_announcement_offering_request.py +95 -0
  40. waldur_api_client/models/maintenance_announcement_offering_template.py +112 -0
  41. waldur_api_client/models/maintenance_announcement_offering_template_request.py +95 -0
  42. waldur_api_client/models/maintenance_announcement_request.py +113 -0
  43. waldur_api_client/models/maintenance_announcement_state_enum.py +12 -0
  44. waldur_api_client/models/maintenance_announcement_template.py +134 -0
  45. waldur_api_client/models/maintenance_announcement_template_request.py +95 -0
  46. waldur_api_client/models/maintenance_type_enum.py +12 -0
  47. waldur_api_client/models/merged_plugin_options.py +1 -1
  48. waldur_api_client/models/merged_plugin_options_request.py +1 -1
  49. waldur_api_client/models/offering_component.py +15 -4
  50. waldur_api_client/models/patched_maintenance_announcement_offering_request.py +94 -0
  51. waldur_api_client/models/patched_maintenance_announcement_offering_template_request.py +94 -0
  52. waldur_api_client/models/patched_maintenance_announcement_request.py +128 -0
  53. waldur_api_client/models/patched_maintenance_announcement_template_request.py +94 -0
  54. waldur_api_client/models/update_offering_component_request.py +274 -0
  55. {waldur_api_client-7.6.8.dist-info → waldur_api_client-7.6.9.dist-info}/METADATA +1 -1
  56. {waldur_api_client-7.6.8.dist-info → waldur_api_client-7.6.9.dist-info}/RECORD +58 -13
  57. {waldur_api_client-7.6.8.dist-info → waldur_api_client-7.6.9.dist-info}/LICENSE +0 -0
  58. {waldur_api_client-7.6.8.dist-info → waldur_api_client-7.6.9.dist-info}/WHEEL +0 -0
@@ -0,0 +1,166 @@
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_template import MaintenanceAnnouncementTemplate
10
+ from ...models.patched_maintenance_announcement_template_request import PatchedMaintenanceAnnouncementTemplateRequest
11
+ from ...types import Response
12
+
13
+
14
+ def _get_kwargs(
15
+ uuid: UUID,
16
+ *,
17
+ body: PatchedMaintenanceAnnouncementTemplateRequest,
18
+ ) -> dict[str, Any]:
19
+ headers: dict[str, Any] = {}
20
+
21
+ _kwargs: dict[str, Any] = {
22
+ "method": "patch",
23
+ "url": f"/api/marketplace-maintenance-announcements-template/{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(
35
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
36
+ ) -> MaintenanceAnnouncementTemplate:
37
+ if response.status_code == 200:
38
+ response_200 = MaintenanceAnnouncementTemplate.from_dict(response.json())
39
+
40
+ return response_200
41
+ raise errors.UnexpectedStatus(response.status_code, response.content)
42
+
43
+
44
+ def _build_response(
45
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
46
+ ) -> Response[MaintenanceAnnouncementTemplate]:
47
+ return Response(
48
+ status_code=HTTPStatus(response.status_code),
49
+ content=response.content,
50
+ headers=response.headers,
51
+ parsed=_parse_response(client=client, response=response),
52
+ )
53
+
54
+
55
+ def sync_detailed(
56
+ uuid: UUID,
57
+ *,
58
+ client: AuthenticatedClient,
59
+ body: PatchedMaintenanceAnnouncementTemplateRequest,
60
+ ) -> Response[MaintenanceAnnouncementTemplate]:
61
+ """
62
+ Args:
63
+ uuid (UUID):
64
+ body (PatchedMaintenanceAnnouncementTemplateRequest):
65
+
66
+ Raises:
67
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
68
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
69
+
70
+ Returns:
71
+ Response[MaintenanceAnnouncementTemplate]
72
+ """
73
+
74
+ kwargs = _get_kwargs(
75
+ uuid=uuid,
76
+ body=body,
77
+ )
78
+
79
+ response = client.get_httpx_client().request(
80
+ **kwargs,
81
+ )
82
+
83
+ return _build_response(client=client, response=response)
84
+
85
+
86
+ def sync(
87
+ uuid: UUID,
88
+ *,
89
+ client: AuthenticatedClient,
90
+ body: PatchedMaintenanceAnnouncementTemplateRequest,
91
+ ) -> MaintenanceAnnouncementTemplate:
92
+ """
93
+ Args:
94
+ uuid (UUID):
95
+ body (PatchedMaintenanceAnnouncementTemplateRequest):
96
+
97
+ Raises:
98
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
99
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
100
+
101
+ Returns:
102
+ MaintenanceAnnouncementTemplate
103
+ """
104
+
105
+ return sync_detailed(
106
+ uuid=uuid,
107
+ client=client,
108
+ body=body,
109
+ ).parsed
110
+
111
+
112
+ async def asyncio_detailed(
113
+ uuid: UUID,
114
+ *,
115
+ client: AuthenticatedClient,
116
+ body: PatchedMaintenanceAnnouncementTemplateRequest,
117
+ ) -> Response[MaintenanceAnnouncementTemplate]:
118
+ """
119
+ Args:
120
+ uuid (UUID):
121
+ body (PatchedMaintenanceAnnouncementTemplateRequest):
122
+
123
+ Raises:
124
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
125
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
126
+
127
+ Returns:
128
+ Response[MaintenanceAnnouncementTemplate]
129
+ """
130
+
131
+ kwargs = _get_kwargs(
132
+ uuid=uuid,
133
+ body=body,
134
+ )
135
+
136
+ response = await client.get_async_httpx_client().request(**kwargs)
137
+
138
+ return _build_response(client=client, response=response)
139
+
140
+
141
+ async def asyncio(
142
+ uuid: UUID,
143
+ *,
144
+ client: AuthenticatedClient,
145
+ body: PatchedMaintenanceAnnouncementTemplateRequest,
146
+ ) -> MaintenanceAnnouncementTemplate:
147
+ """
148
+ Args:
149
+ uuid (UUID):
150
+ body (PatchedMaintenanceAnnouncementTemplateRequest):
151
+
152
+ Raises:
153
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
154
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
155
+
156
+ Returns:
157
+ MaintenanceAnnouncementTemplate
158
+ """
159
+
160
+ return (
161
+ await asyncio_detailed(
162
+ uuid=uuid,
163
+ client=client,
164
+ body=body,
165
+ )
166
+ ).parsed
@@ -0,0 +1,144 @@
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_template import MaintenanceAnnouncementTemplate
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ uuid: UUID,
15
+ ) -> dict[str, Any]:
16
+ _kwargs: dict[str, Any] = {
17
+ "method": "get",
18
+ "url": f"/api/marketplace-maintenance-announcements-template/{uuid}/",
19
+ }
20
+
21
+ return _kwargs
22
+
23
+
24
+ def _parse_response(
25
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
26
+ ) -> MaintenanceAnnouncementTemplate:
27
+ if response.status_code == 200:
28
+ response_200 = MaintenanceAnnouncementTemplate.from_dict(response.json())
29
+
30
+ return response_200
31
+ raise errors.UnexpectedStatus(response.status_code, response.content)
32
+
33
+
34
+ def _build_response(
35
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
36
+ ) -> Response[MaintenanceAnnouncementTemplate]:
37
+ return Response(
38
+ status_code=HTTPStatus(response.status_code),
39
+ content=response.content,
40
+ headers=response.headers,
41
+ parsed=_parse_response(client=client, response=response),
42
+ )
43
+
44
+
45
+ def sync_detailed(
46
+ uuid: UUID,
47
+ *,
48
+ client: AuthenticatedClient,
49
+ ) -> Response[MaintenanceAnnouncementTemplate]:
50
+ """
51
+ Args:
52
+ uuid (UUID):
53
+
54
+ Raises:
55
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
56
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
57
+
58
+ Returns:
59
+ Response[MaintenanceAnnouncementTemplate]
60
+ """
61
+
62
+ kwargs = _get_kwargs(
63
+ uuid=uuid,
64
+ )
65
+
66
+ response = client.get_httpx_client().request(
67
+ **kwargs,
68
+ )
69
+
70
+ return _build_response(client=client, response=response)
71
+
72
+
73
+ def sync(
74
+ uuid: UUID,
75
+ *,
76
+ client: AuthenticatedClient,
77
+ ) -> MaintenanceAnnouncementTemplate:
78
+ """
79
+ Args:
80
+ uuid (UUID):
81
+
82
+ Raises:
83
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
84
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
85
+
86
+ Returns:
87
+ MaintenanceAnnouncementTemplate
88
+ """
89
+
90
+ return sync_detailed(
91
+ uuid=uuid,
92
+ client=client,
93
+ ).parsed
94
+
95
+
96
+ async def asyncio_detailed(
97
+ uuid: UUID,
98
+ *,
99
+ client: AuthenticatedClient,
100
+ ) -> Response[MaintenanceAnnouncementTemplate]:
101
+ """
102
+ Args:
103
+ uuid (UUID):
104
+
105
+ Raises:
106
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
107
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
108
+
109
+ Returns:
110
+ Response[MaintenanceAnnouncementTemplate]
111
+ """
112
+
113
+ kwargs = _get_kwargs(
114
+ uuid=uuid,
115
+ )
116
+
117
+ response = await client.get_async_httpx_client().request(**kwargs)
118
+
119
+ return _build_response(client=client, response=response)
120
+
121
+
122
+ async def asyncio(
123
+ uuid: UUID,
124
+ *,
125
+ client: AuthenticatedClient,
126
+ ) -> MaintenanceAnnouncementTemplate:
127
+ """
128
+ Args:
129
+ uuid (UUID):
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
+ MaintenanceAnnouncementTemplate
137
+ """
138
+
139
+ return (
140
+ await asyncio_detailed(
141
+ uuid=uuid,
142
+ client=client,
143
+ )
144
+ ).parsed
@@ -0,0 +1,166 @@
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_template import MaintenanceAnnouncementTemplate
10
+ from ...models.maintenance_announcement_template_request import MaintenanceAnnouncementTemplateRequest
11
+ from ...types import Response
12
+
13
+
14
+ def _get_kwargs(
15
+ uuid: UUID,
16
+ *,
17
+ body: MaintenanceAnnouncementTemplateRequest,
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-template/{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(
35
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
36
+ ) -> MaintenanceAnnouncementTemplate:
37
+ if response.status_code == 200:
38
+ response_200 = MaintenanceAnnouncementTemplate.from_dict(response.json())
39
+
40
+ return response_200
41
+ raise errors.UnexpectedStatus(response.status_code, response.content)
42
+
43
+
44
+ def _build_response(
45
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
46
+ ) -> Response[MaintenanceAnnouncementTemplate]:
47
+ return Response(
48
+ status_code=HTTPStatus(response.status_code),
49
+ content=response.content,
50
+ headers=response.headers,
51
+ parsed=_parse_response(client=client, response=response),
52
+ )
53
+
54
+
55
+ def sync_detailed(
56
+ uuid: UUID,
57
+ *,
58
+ client: AuthenticatedClient,
59
+ body: MaintenanceAnnouncementTemplateRequest,
60
+ ) -> Response[MaintenanceAnnouncementTemplate]:
61
+ """
62
+ Args:
63
+ uuid (UUID):
64
+ body (MaintenanceAnnouncementTemplateRequest):
65
+
66
+ Raises:
67
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
68
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
69
+
70
+ Returns:
71
+ Response[MaintenanceAnnouncementTemplate]
72
+ """
73
+
74
+ kwargs = _get_kwargs(
75
+ uuid=uuid,
76
+ body=body,
77
+ )
78
+
79
+ response = client.get_httpx_client().request(
80
+ **kwargs,
81
+ )
82
+
83
+ return _build_response(client=client, response=response)
84
+
85
+
86
+ def sync(
87
+ uuid: UUID,
88
+ *,
89
+ client: AuthenticatedClient,
90
+ body: MaintenanceAnnouncementTemplateRequest,
91
+ ) -> MaintenanceAnnouncementTemplate:
92
+ """
93
+ Args:
94
+ uuid (UUID):
95
+ body (MaintenanceAnnouncementTemplateRequest):
96
+
97
+ Raises:
98
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
99
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
100
+
101
+ Returns:
102
+ MaintenanceAnnouncementTemplate
103
+ """
104
+
105
+ return sync_detailed(
106
+ uuid=uuid,
107
+ client=client,
108
+ body=body,
109
+ ).parsed
110
+
111
+
112
+ async def asyncio_detailed(
113
+ uuid: UUID,
114
+ *,
115
+ client: AuthenticatedClient,
116
+ body: MaintenanceAnnouncementTemplateRequest,
117
+ ) -> Response[MaintenanceAnnouncementTemplate]:
118
+ """
119
+ Args:
120
+ uuid (UUID):
121
+ body (MaintenanceAnnouncementTemplateRequest):
122
+
123
+ Raises:
124
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
125
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
126
+
127
+ Returns:
128
+ Response[MaintenanceAnnouncementTemplate]
129
+ """
130
+
131
+ kwargs = _get_kwargs(
132
+ uuid=uuid,
133
+ body=body,
134
+ )
135
+
136
+ response = await client.get_async_httpx_client().request(**kwargs)
137
+
138
+ return _build_response(client=client, response=response)
139
+
140
+
141
+ async def asyncio(
142
+ uuid: UUID,
143
+ *,
144
+ client: AuthenticatedClient,
145
+ body: MaintenanceAnnouncementTemplateRequest,
146
+ ) -> MaintenanceAnnouncementTemplate:
147
+ """
148
+ Args:
149
+ uuid (UUID):
150
+ body (MaintenanceAnnouncementTemplateRequest):
151
+
152
+ Raises:
153
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
154
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
155
+
156
+ Returns:
157
+ MaintenanceAnnouncementTemplate
158
+ """
159
+
160
+ return (
161
+ await asyncio_detailed(
162
+ uuid=uuid,
163
+ client=client,
164
+ body=body,
165
+ )
166
+ ).parsed
@@ -6,14 +6,14 @@ import httpx
6
6
 
7
7
  from ... import errors
8
8
  from ...client import AuthenticatedClient, Client
9
- from ...models.offering_component_request import OfferingComponentRequest
9
+ from ...models.update_offering_component_request import UpdateOfferingComponentRequest
10
10
  from ...types import Response
11
11
 
12
12
 
13
13
  def _get_kwargs(
14
14
  uuid: UUID,
15
15
  *,
16
- body: OfferingComponentRequest,
16
+ body: UpdateOfferingComponentRequest,
17
17
  ) -> dict[str, Any]:
18
18
  headers: dict[str, Any] = {}
19
19
 
@@ -49,12 +49,12 @@ def sync_detailed(
49
49
  uuid: UUID,
50
50
  *,
51
51
  client: AuthenticatedClient,
52
- body: OfferingComponentRequest,
52
+ body: UpdateOfferingComponentRequest,
53
53
  ) -> Response[Any]:
54
54
  """
55
55
  Args:
56
56
  uuid (UUID):
57
- body (OfferingComponentRequest):
57
+ body (UpdateOfferingComponentRequest):
58
58
 
59
59
  Raises:
60
60
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -80,12 +80,12 @@ async def asyncio_detailed(
80
80
  uuid: UUID,
81
81
  *,
82
82
  client: AuthenticatedClient,
83
- body: OfferingComponentRequest,
83
+ body: UpdateOfferingComponentRequest,
84
84
  ) -> Response[Any]:
85
85
  """
86
86
  Args:
87
87
  uuid (UUID):
88
- body (OfferingComponentRequest):
88
+ body (UpdateOfferingComponentRequest):
89
89
 
90
90
  Raises:
91
91
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -0,0 +1,118 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Union, cast
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...types import Response
9
+
10
+
11
+ def _get_kwargs() -> dict[str, Any]:
12
+ _kwargs: dict[str, Any] = {
13
+ "method": "get",
14
+ "url": "/api/openstack-volume-types/names/",
15
+ }
16
+
17
+ return _kwargs
18
+
19
+
20
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> list[str]:
21
+ if response.status_code == 200:
22
+ response_200 = cast(list[str], response.json())
23
+
24
+ return response_200
25
+ raise errors.UnexpectedStatus(response.status_code, response.content)
26
+
27
+
28
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[list[str]]:
29
+ return Response(
30
+ status_code=HTTPStatus(response.status_code),
31
+ content=response.content,
32
+ headers=response.headers,
33
+ parsed=_parse_response(client=client, response=response),
34
+ )
35
+
36
+
37
+ def sync_detailed(
38
+ *,
39
+ client: AuthenticatedClient,
40
+ ) -> Response[list[str]]:
41
+ """Return a list of unique volume type names.
42
+
43
+ Raises:
44
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
45
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
46
+
47
+ Returns:
48
+ Response[list[str]]
49
+ """
50
+
51
+ kwargs = _get_kwargs()
52
+
53
+ response = client.get_httpx_client().request(
54
+ **kwargs,
55
+ )
56
+
57
+ return _build_response(client=client, response=response)
58
+
59
+
60
+ def sync(
61
+ *,
62
+ client: AuthenticatedClient,
63
+ ) -> list[str]:
64
+ """Return a list of unique volume type names.
65
+
66
+ Raises:
67
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
68
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
69
+
70
+ Returns:
71
+ list[str]
72
+ """
73
+
74
+ return sync_detailed(
75
+ client=client,
76
+ ).parsed
77
+
78
+
79
+ async def asyncio_detailed(
80
+ *,
81
+ client: AuthenticatedClient,
82
+ ) -> Response[list[str]]:
83
+ """Return a list of unique volume type names.
84
+
85
+ Raises:
86
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
87
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
88
+
89
+ Returns:
90
+ Response[list[str]]
91
+ """
92
+
93
+ kwargs = _get_kwargs()
94
+
95
+ response = await client.get_async_httpx_client().request(**kwargs)
96
+
97
+ return _build_response(client=client, response=response)
98
+
99
+
100
+ async def asyncio(
101
+ *,
102
+ client: AuthenticatedClient,
103
+ ) -> list[str]:
104
+ """Return a list of unique volume type names.
105
+
106
+ Raises:
107
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
108
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
109
+
110
+ Returns:
111
+ list[str]
112
+ """
113
+
114
+ return (
115
+ await asyncio_detailed(
116
+ client=client,
117
+ )
118
+ ).parsed