Skip to content

Commit ffee85b

Browse files
josteinlgithub-actions[bot]
authored andcommitted
Update OpenAPI spec to version 2025.11.03
1 parent ba92a7b commit ffee85b

File tree

104 files changed

+2811
-2684
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+2811
-2684
lines changed

nadag-innmelding-python-client/nadag_innmelding_python_client/api/default/delete_nadag_innmelding_v_1_geoteknisk_unders_geoteknisk_unders_id.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from http import HTTPStatus
2-
from typing import Any, Optional, Union
2+
from typing import Any
33

44
import httpx
55

@@ -19,7 +19,7 @@ def _get_kwargs(
1919
return _kwargs
2020

2121

22-
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
22+
def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Response) -> Any | None:
2323
if response.status_code == 204:
2424
return None
2525

@@ -29,7 +29,7 @@ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: htt
2929
return None
3030

3131

32-
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
32+
def _build_response(*, client: AuthenticatedClient | Client, response: httpx.Response) -> Response[Any]:
3333
return Response(
3434
status_code=HTTPStatus(response.status_code),
3535
content=response.content,

nadag-innmelding-python-client/nadag_innmelding_python_client/api/default/delete_nadag_innmelding_v_1_geoteknisk_unders_geoteknisk_unders_id_unders_pkt_geoteknisk_borehull_id.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from http import HTTPStatus
2-
from typing import Any, Optional, Union
2+
from typing import Any
33

44
import httpx
55

@@ -33,8 +33,8 @@ def _get_kwargs(
3333

3434

3535
def _parse_response(
36-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
37-
) -> Optional[ValidatedGeotekniskUnders]:
36+
*, client: AuthenticatedClient | Client, response: httpx.Response
37+
) -> ValidatedGeotekniskUnders | None:
3838
if response.status_code == 200:
3939
response_200 = ValidatedGeotekniskUnders.from_dict(response.json())
4040

@@ -47,7 +47,7 @@ def _parse_response(
4747

4848

4949
def _build_response(
50-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
50+
*, client: AuthenticatedClient | Client, response: httpx.Response
5151
) -> Response[ValidatedGeotekniskUnders]:
5252
return Response(
5353
status_code=HTTPStatus(response.status_code),
@@ -100,7 +100,7 @@ def sync(
100100
*,
101101
client: AuthenticatedClient,
102102
epsg_code: EpsgCode,
103-
) -> Optional[ValidatedGeotekniskUnders]:
103+
) -> ValidatedGeotekniskUnders | None:
104104
"""Deletes a GeotekniskBorehull.
105105
106106
Deletes a GeotekniskBorehull.
@@ -167,7 +167,7 @@ async def asyncio(
167167
*,
168168
client: AuthenticatedClient,
169169
epsg_code: EpsgCode,
170-
) -> Optional[ValidatedGeotekniskUnders]:
170+
) -> ValidatedGeotekniskUnders | None:
171171
"""Deletes a GeotekniskBorehull.
172172
173173
Deletes a GeotekniskBorehull.

nadag-innmelding-python-client/nadag_innmelding_python_client/api/default/get_kodeliste_code_list_name.py

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from http import HTTPStatus
2-
from typing import Any, Optional, Union, cast
2+
from typing import Any, cast
33

44
import httpx
55

@@ -20,9 +20,7 @@ def _get_kwargs(
2020
return _kwargs
2121

2222

23-
def _parse_response(
24-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
25-
) -> Optional[Union[Any, GeotekniskUnders]]:
23+
def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Response) -> Any | GeotekniskUnders | None:
2624
if response.status_code == 200:
2725
response_200 = GeotekniskUnders.from_dict(response.json())
2826

@@ -39,8 +37,8 @@ def _parse_response(
3937

4038

4139
def _build_response(
42-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
43-
) -> Response[Union[Any, GeotekniskUnders]]:
40+
*, client: AuthenticatedClient | Client, response: httpx.Response
41+
) -> Response[Any | GeotekniskUnders]:
4442
return Response(
4543
status_code=HTTPStatus(response.status_code),
4644
content=response.content,
@@ -52,8 +50,8 @@ def _build_response(
5250
def sync_detailed(
5351
code_list_name: str,
5452
*,
55-
client: Union[AuthenticatedClient, Client],
56-
) -> Response[Union[Any, GeotekniskUnders]]:
53+
client: AuthenticatedClient | Client,
54+
) -> Response[Any | GeotekniskUnders]:
5755
"""Retrieves a list of codes and their labels.
5856
5957
Fetches a list of codes and their labels.
@@ -66,7 +64,7 @@ def sync_detailed(
6664
httpx.TimeoutException: If the request takes longer than Client.timeout.
6765
6866
Returns:
69-
Response[Union[Any, GeotekniskUnders]]
67+
Response[Any | GeotekniskUnders]
7068
"""
7169

7270
kwargs = _get_kwargs(
@@ -83,8 +81,8 @@ def sync_detailed(
8381
def sync(
8482
code_list_name: str,
8583
*,
86-
client: Union[AuthenticatedClient, Client],
87-
) -> Optional[Union[Any, GeotekniskUnders]]:
84+
client: AuthenticatedClient | Client,
85+
) -> Any | GeotekniskUnders | None:
8886
"""Retrieves a list of codes and their labels.
8987
9088
Fetches a list of codes and their labels.
@@ -97,7 +95,7 @@ def sync(
9795
httpx.TimeoutException: If the request takes longer than Client.timeout.
9896
9997
Returns:
100-
Union[Any, GeotekniskUnders]
98+
Any | GeotekniskUnders
10199
"""
102100

103101
return sync_detailed(
@@ -109,8 +107,8 @@ def sync(
109107
async def asyncio_detailed(
110108
code_list_name: str,
111109
*,
112-
client: Union[AuthenticatedClient, Client],
113-
) -> Response[Union[Any, GeotekniskUnders]]:
110+
client: AuthenticatedClient | Client,
111+
) -> Response[Any | GeotekniskUnders]:
114112
"""Retrieves a list of codes and their labels.
115113
116114
Fetches a list of codes and their labels.
@@ -123,7 +121,7 @@ async def asyncio_detailed(
123121
httpx.TimeoutException: If the request takes longer than Client.timeout.
124122
125123
Returns:
126-
Response[Union[Any, GeotekniskUnders]]
124+
Response[Any | GeotekniskUnders]
127125
"""
128126

129127
kwargs = _get_kwargs(
@@ -138,8 +136,8 @@ async def asyncio_detailed(
138136
async def asyncio(
139137
code_list_name: str,
140138
*,
141-
client: Union[AuthenticatedClient, Client],
142-
) -> Optional[Union[Any, GeotekniskUnders]]:
139+
client: AuthenticatedClient | Client,
140+
) -> Any | GeotekniskUnders | None:
143141
"""Retrieves a list of codes and their labels.
144142
145143
Fetches a list of codes and their labels.
@@ -152,7 +150,7 @@ async def asyncio(
152150
httpx.TimeoutException: If the request takes longer than Client.timeout.
153151
154152
Returns:
155-
Union[Any, GeotekniskUnders]
153+
Any | GeotekniskUnders
156154
"""
157155

158156
return (

nadag-innmelding-python-client/nadag_innmelding_python_client/api/default/get_kodeliste_code_list_name_code_name.py

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from http import HTTPStatus
2-
from typing import Any, Optional, Union, cast
2+
from typing import Any, cast
33

44
import httpx
55

@@ -21,9 +21,7 @@ def _get_kwargs(
2121
return _kwargs
2222

2323

24-
def _parse_response(
25-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
26-
) -> Optional[Union[Any, GeotekniskUnders]]:
24+
def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Response) -> Any | GeotekniskUnders | None:
2725
if response.status_code == 200:
2826
response_200 = GeotekniskUnders.from_dict(response.json())
2927

@@ -40,8 +38,8 @@ def _parse_response(
4038

4139

4240
def _build_response(
43-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
44-
) -> Response[Union[Any, GeotekniskUnders]]:
41+
*, client: AuthenticatedClient | Client, response: httpx.Response
42+
) -> Response[Any | GeotekniskUnders]:
4543
return Response(
4644
status_code=HTTPStatus(response.status_code),
4745
content=response.content,
@@ -54,8 +52,8 @@ def sync_detailed(
5452
code_list_name: str,
5553
code_name: str,
5654
*,
57-
client: Union[AuthenticatedClient, Client],
58-
) -> Response[Union[Any, GeotekniskUnders]]:
55+
client: AuthenticatedClient | Client,
56+
) -> Response[Any | GeotekniskUnders]:
5957
"""Retrieves a code in a code list.
6058
6159
Fetches a code in a code list.
@@ -69,7 +67,7 @@ def sync_detailed(
6967
httpx.TimeoutException: If the request takes longer than Client.timeout.
7068
7169
Returns:
72-
Response[Union[Any, GeotekniskUnders]]
70+
Response[Any | GeotekniskUnders]
7371
"""
7472

7573
kwargs = _get_kwargs(
@@ -88,8 +86,8 @@ def sync(
8886
code_list_name: str,
8987
code_name: str,
9088
*,
91-
client: Union[AuthenticatedClient, Client],
92-
) -> Optional[Union[Any, GeotekniskUnders]]:
89+
client: AuthenticatedClient | Client,
90+
) -> Any | GeotekniskUnders | None:
9391
"""Retrieves a code in a code list.
9492
9593
Fetches a code in a code list.
@@ -103,7 +101,7 @@ def sync(
103101
httpx.TimeoutException: If the request takes longer than Client.timeout.
104102
105103
Returns:
106-
Union[Any, GeotekniskUnders]
104+
Any | GeotekniskUnders
107105
"""
108106

109107
return sync_detailed(
@@ -117,8 +115,8 @@ async def asyncio_detailed(
117115
code_list_name: str,
118116
code_name: str,
119117
*,
120-
client: Union[AuthenticatedClient, Client],
121-
) -> Response[Union[Any, GeotekniskUnders]]:
118+
client: AuthenticatedClient | Client,
119+
) -> Response[Any | GeotekniskUnders]:
122120
"""Retrieves a code in a code list.
123121
124122
Fetches a code in a code list.
@@ -132,7 +130,7 @@ async def asyncio_detailed(
132130
httpx.TimeoutException: If the request takes longer than Client.timeout.
133131
134132
Returns:
135-
Response[Union[Any, GeotekniskUnders]]
133+
Response[Any | GeotekniskUnders]
136134
"""
137135

138136
kwargs = _get_kwargs(
@@ -149,8 +147,8 @@ async def asyncio(
149147
code_list_name: str,
150148
code_name: str,
151149
*,
152-
client: Union[AuthenticatedClient, Client],
153-
) -> Optional[Union[Any, GeotekniskUnders]]:
150+
client: AuthenticatedClient | Client,
151+
) -> Any | GeotekniskUnders | None:
154152
"""Retrieves a code in a code list.
155153
156154
Fetches a code in a code list.
@@ -164,7 +162,7 @@ async def asyncio(
164162
httpx.TimeoutException: If the request takes longer than Client.timeout.
165163
166164
Returns:
167-
Union[Any, GeotekniskUnders]
165+
Any | GeotekniskUnders
168166
"""
169167

170168
return (

0 commit comments

Comments
 (0)