Skip to content

Commit d0a7b45

Browse files
josteinlgithub-actions[bot]
authored andcommitted
Update OpenAPI spec to version 2025.10.14
1 parent 0c1d86a commit d0a7b45

File tree

4 files changed

+139
-57
lines changed

4 files changed

+139
-57
lines changed

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

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,24 @@
66
from ... import errors
77
from ...client import AuthenticatedClient, Client
88
from ...models.geoteknisk_borehull import GeotekniskBorehull
9-
from ...types import Response
9+
from ...types import UNSET, Response, Unset
1010

1111

1212
def _get_kwargs(
1313
geoteknisk_borehull_id: str,
14+
*,
15+
include_metode: Union[Unset, bool] = UNSET,
1416
) -> dict[str, Any]:
17+
params: dict[str, Any] = {}
18+
19+
params["includeMetode"] = include_metode
20+
21+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
22+
1523
_kwargs: dict[str, Any] = {
1624
"method": "get",
1725
"url": f"/nadag/innmelding/v1/GeotekniskBorehull/{geoteknisk_borehull_id}",
26+
"params": params,
1827
}
1928

2029
return _kwargs
@@ -57,13 +66,15 @@ def sync_detailed(
5766
geoteknisk_borehull_id: str,
5867
*,
5968
client: Union[AuthenticatedClient, Client],
69+
include_metode: Union[Unset, bool] = UNSET,
6070
) -> Response[Union[Any, GeotekniskBorehull]]:
6171
"""Fetches a GeotekniskBorehull by id.
6272
6373
Fetches a GeotekniskBorehull by id.
6474
6575
Args:
6676
geoteknisk_borehull_id (str):
77+
include_metode (Union[Unset, bool]):
6778
6879
Raises:
6980
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -75,6 +86,7 @@ def sync_detailed(
7586

7687
kwargs = _get_kwargs(
7788
geoteknisk_borehull_id=geoteknisk_borehull_id,
89+
include_metode=include_metode,
7890
)
7991

8092
response = client.get_httpx_client().request(
@@ -88,13 +100,15 @@ def sync(
88100
geoteknisk_borehull_id: str,
89101
*,
90102
client: Union[AuthenticatedClient, Client],
103+
include_metode: Union[Unset, bool] = UNSET,
91104
) -> Optional[Union[Any, GeotekniskBorehull]]:
92105
"""Fetches a GeotekniskBorehull by id.
93106
94107
Fetches a GeotekniskBorehull by id.
95108
96109
Args:
97110
geoteknisk_borehull_id (str):
111+
include_metode (Union[Unset, bool]):
98112
99113
Raises:
100114
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -107,20 +121,23 @@ def sync(
107121
return sync_detailed(
108122
geoteknisk_borehull_id=geoteknisk_borehull_id,
109123
client=client,
124+
include_metode=include_metode,
110125
).parsed
111126

112127

113128
async def asyncio_detailed(
114129
geoteknisk_borehull_id: str,
115130
*,
116131
client: Union[AuthenticatedClient, Client],
132+
include_metode: Union[Unset, bool] = UNSET,
117133
) -> Response[Union[Any, GeotekniskBorehull]]:
118134
"""Fetches a GeotekniskBorehull by id.
119135
120136
Fetches a GeotekniskBorehull by id.
121137
122138
Args:
123139
geoteknisk_borehull_id (str):
140+
include_metode (Union[Unset, bool]):
124141
125142
Raises:
126143
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -132,6 +149,7 @@ async def asyncio_detailed(
132149

133150
kwargs = _get_kwargs(
134151
geoteknisk_borehull_id=geoteknisk_borehull_id,
152+
include_metode=include_metode,
135153
)
136154

137155
response = await client.get_async_httpx_client().request(**kwargs)
@@ -143,13 +161,15 @@ async def asyncio(
143161
geoteknisk_borehull_id: str,
144162
*,
145163
client: Union[AuthenticatedClient, Client],
164+
include_metode: Union[Unset, bool] = UNSET,
146165
) -> Optional[Union[Any, GeotekniskBorehull]]:
147166
"""Fetches a GeotekniskBorehull by id.
148167
149168
Fetches a GeotekniskBorehull by id.
150169
151170
Args:
152171
geoteknisk_borehull_id (str):
172+
include_metode (Union[Unset, bool]):
153173
154174
Raises:
155175
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -163,5 +183,6 @@ async def asyncio(
163183
await asyncio_detailed(
164184
geoteknisk_borehull_id=geoteknisk_borehull_id,
165185
client=client,
186+
include_metode=include_metode,
166187
)
167188
).parsed

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

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,27 @@
66
from ... import errors
77
from ...client import AuthenticatedClient, Client
88
from ...models.geoteknisk_unders import GeotekniskUnders
9-
from ...types import Response
9+
from ...types import UNSET, Response, Unset
1010

1111

1212
def _get_kwargs(
1313
geoteknisk_unders_id: str,
14+
*,
15+
include_metode: Union[Unset, bool] = UNSET,
16+
versjon_id: Union[Unset, int] = UNSET,
1417
) -> dict[str, Any]:
18+
params: dict[str, Any] = {}
19+
20+
params["includeMetode"] = include_metode
21+
22+
params["versjonId"] = versjon_id
23+
24+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
25+
1526
_kwargs: dict[str, Any] = {
1627
"method": "get",
1728
"url": f"/nadag/innmelding/v1/GeotekniskUnders/{geoteknisk_unders_id}",
29+
"params": params,
1830
}
1931

2032
return _kwargs
@@ -32,6 +44,10 @@ def _parse_response(
3244
response_401 = cast(Any, None)
3345
return response_401
3446

47+
if response.status_code == 404:
48+
response_404 = cast(Any, None)
49+
return response_404
50+
3551
if client.raise_on_unexpected_status:
3652
raise errors.UnexpectedStatus(response.status_code, response.content)
3753
else:
@@ -53,13 +69,17 @@ def sync_detailed(
5369
geoteknisk_unders_id: str,
5470
*,
5571
client: Union[AuthenticatedClient, Client],
72+
include_metode: Union[Unset, bool] = UNSET,
73+
versjon_id: Union[Unset, int] = UNSET,
5674
) -> Response[Union[Any, GeotekniskUnders]]:
57-
"""Fetches a GeotekniskUnders by id.
75+
"""Fetches the latest GeotekniskUnders given the lokalId.
5876
5977
Fetches a GeotekniskUnders by id.
6078
6179
Args:
6280
geoteknisk_unders_id (str):
81+
include_metode (Union[Unset, bool]):
82+
versjon_id (Union[Unset, int]):
6383
6484
Raises:
6585
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -71,6 +91,8 @@ def sync_detailed(
7191

7292
kwargs = _get_kwargs(
7393
geoteknisk_unders_id=geoteknisk_unders_id,
94+
include_metode=include_metode,
95+
versjon_id=versjon_id,
7496
)
7597

7698
response = client.get_httpx_client().request(
@@ -84,13 +106,17 @@ def sync(
84106
geoteknisk_unders_id: str,
85107
*,
86108
client: Union[AuthenticatedClient, Client],
109+
include_metode: Union[Unset, bool] = UNSET,
110+
versjon_id: Union[Unset, int] = UNSET,
87111
) -> Optional[Union[Any, GeotekniskUnders]]:
88-
"""Fetches a GeotekniskUnders by id.
112+
"""Fetches the latest GeotekniskUnders given the lokalId.
89113
90114
Fetches a GeotekniskUnders by id.
91115
92116
Args:
93117
geoteknisk_unders_id (str):
118+
include_metode (Union[Unset, bool]):
119+
versjon_id (Union[Unset, int]):
94120
95121
Raises:
96122
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -103,20 +129,26 @@ def sync(
103129
return sync_detailed(
104130
geoteknisk_unders_id=geoteknisk_unders_id,
105131
client=client,
132+
include_metode=include_metode,
133+
versjon_id=versjon_id,
106134
).parsed
107135

108136

109137
async def asyncio_detailed(
110138
geoteknisk_unders_id: str,
111139
*,
112140
client: Union[AuthenticatedClient, Client],
141+
include_metode: Union[Unset, bool] = UNSET,
142+
versjon_id: Union[Unset, int] = UNSET,
113143
) -> Response[Union[Any, GeotekniskUnders]]:
114-
"""Fetches a GeotekniskUnders by id.
144+
"""Fetches the latest GeotekniskUnders given the lokalId.
115145
116146
Fetches a GeotekniskUnders by id.
117147
118148
Args:
119149
geoteknisk_unders_id (str):
150+
include_metode (Union[Unset, bool]):
151+
versjon_id (Union[Unset, int]):
120152
121153
Raises:
122154
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -128,6 +160,8 @@ async def asyncio_detailed(
128160

129161
kwargs = _get_kwargs(
130162
geoteknisk_unders_id=geoteknisk_unders_id,
163+
include_metode=include_metode,
164+
versjon_id=versjon_id,
131165
)
132166

133167
response = await client.get_async_httpx_client().request(**kwargs)
@@ -139,13 +173,17 @@ async def asyncio(
139173
geoteknisk_unders_id: str,
140174
*,
141175
client: Union[AuthenticatedClient, Client],
176+
include_metode: Union[Unset, bool] = UNSET,
177+
versjon_id: Union[Unset, int] = UNSET,
142178
) -> Optional[Union[Any, GeotekniskUnders]]:
143-
"""Fetches a GeotekniskUnders by id.
179+
"""Fetches the latest GeotekniskUnders given the lokalId.
144180
145181
Fetches a GeotekniskUnders by id.
146182
147183
Args:
148184
geoteknisk_unders_id (str):
185+
include_metode (Union[Unset, bool]):
186+
versjon_id (Union[Unset, int]):
149187
150188
Raises:
151189
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -159,5 +197,7 @@ async def asyncio(
159197
await asyncio_detailed(
160198
geoteknisk_unders_id=geoteknisk_unders_id,
161199
client=client,
200+
include_metode=include_metode,
201+
versjon_id=versjon_id,
162202
)
163203
).parsed

nadag-innmelding-python-client/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "nadag-innmelding-python-client"
3-
version = "2025.10.10"
3+
version = "2025.10.14"
44
description = "A client library for accessing Nadag innmelding API"
55
authors = ["Jiyang Ye <[email protected]>"]
66
maintainers = ["Jiyang Ye <[email protected]>", "Jostein Leira <[email protected]>"]

0 commit comments

Comments
 (0)