Skip to content

Commit 43b8b9a

Browse files
chore: update OpenAPI spec to version 2025.10.01 (#4)
Co-authored-by: josteinl <[email protected]>
1 parent a5c79da commit 43b8b9a

File tree

4 files changed

+80
-14
lines changed

4 files changed

+80
-14
lines changed

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

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,23 @@
66
from ... import errors
77
from ...client import AuthenticatedClient, Client
88
from ...models.geoteknisk_borehull import GeotekniskBorehull
9-
from ...types import UNSET, Response
9+
from ...types import UNSET, Response, Unset
1010

1111

1212
def _get_kwargs(
1313
*,
1414
ekstern_id: str,
1515
ekstern_navnerom: str,
16+
ekstern_versjon_id: Union[Unset, str] = UNSET,
1617
) -> dict[str, Any]:
1718
params: dict[str, Any] = {}
1819

1920
params["eksternId"] = ekstern_id
2021

2122
params["eksternNavnerom"] = ekstern_navnerom
2223

24+
params["eksternVersjonId"] = ekstern_versjon_id
25+
2326
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
2427

2528
_kwargs: dict[str, Any] = {
@@ -69,14 +72,16 @@ def sync_detailed(
6972
client: Union[AuthenticatedClient, Client],
7073
ekstern_id: str,
7174
ekstern_navnerom: str,
75+
ekstern_versjon_id: Union[Unset, str] = UNSET,
7276
) -> Response[Union[Any, GeotekniskBorehull]]:
7377
"""Fetches a GeotekniskBorehull by external id.
7478
75-
Fetches a GeotekniskBorehull by external id.
79+
Fetches a GeotekniskBorehull by external id. Returns the most recent one.
7680
7781
Args:
7882
ekstern_id (str):
7983
ekstern_navnerom (str):
84+
ekstern_versjon_id (Union[Unset, str]):
8085
8186
Raises:
8287
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -89,6 +94,7 @@ def sync_detailed(
8994
kwargs = _get_kwargs(
9095
ekstern_id=ekstern_id,
9196
ekstern_navnerom=ekstern_navnerom,
97+
ekstern_versjon_id=ekstern_versjon_id,
9298
)
9399

94100
response = client.get_httpx_client().request(
@@ -103,14 +109,16 @@ def sync(
103109
client: Union[AuthenticatedClient, Client],
104110
ekstern_id: str,
105111
ekstern_navnerom: str,
112+
ekstern_versjon_id: Union[Unset, str] = UNSET,
106113
) -> Optional[Union[Any, GeotekniskBorehull]]:
107114
"""Fetches a GeotekniskBorehull by external id.
108115
109-
Fetches a GeotekniskBorehull by external id.
116+
Fetches a GeotekniskBorehull by external id. Returns the most recent one.
110117
111118
Args:
112119
ekstern_id (str):
113120
ekstern_navnerom (str):
121+
ekstern_versjon_id (Union[Unset, str]):
114122
115123
Raises:
116124
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -124,6 +132,7 @@ def sync(
124132
client=client,
125133
ekstern_id=ekstern_id,
126134
ekstern_navnerom=ekstern_navnerom,
135+
ekstern_versjon_id=ekstern_versjon_id,
127136
).parsed
128137

129138

@@ -132,14 +141,16 @@ async def asyncio_detailed(
132141
client: Union[AuthenticatedClient, Client],
133142
ekstern_id: str,
134143
ekstern_navnerom: str,
144+
ekstern_versjon_id: Union[Unset, str] = UNSET,
135145
) -> Response[Union[Any, GeotekniskBorehull]]:
136146
"""Fetches a GeotekniskBorehull by external id.
137147
138-
Fetches a GeotekniskBorehull by external id.
148+
Fetches a GeotekniskBorehull by external id. Returns the most recent one.
139149
140150
Args:
141151
ekstern_id (str):
142152
ekstern_navnerom (str):
153+
ekstern_versjon_id (Union[Unset, str]):
143154
144155
Raises:
145156
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -152,6 +163,7 @@ async def asyncio_detailed(
152163
kwargs = _get_kwargs(
153164
ekstern_id=ekstern_id,
154165
ekstern_navnerom=ekstern_navnerom,
166+
ekstern_versjon_id=ekstern_versjon_id,
155167
)
156168

157169
response = await client.get_async_httpx_client().request(**kwargs)
@@ -164,14 +176,16 @@ async def asyncio(
164176
client: Union[AuthenticatedClient, Client],
165177
ekstern_id: str,
166178
ekstern_navnerom: str,
179+
ekstern_versjon_id: Union[Unset, str] = UNSET,
167180
) -> Optional[Union[Any, GeotekniskBorehull]]:
168181
"""Fetches a GeotekniskBorehull by external id.
169182
170-
Fetches a GeotekniskBorehull by external id.
183+
Fetches a GeotekniskBorehull by external id. Returns the most recent one.
171184
172185
Args:
173186
ekstern_id (str):
174187
ekstern_navnerom (str):
188+
ekstern_versjon_id (Union[Unset, str]):
175189
176190
Raises:
177191
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -186,5 +200,6 @@ async def asyncio(
186200
client=client,
187201
ekstern_id=ekstern_id,
188202
ekstern_navnerom=ekstern_navnerom,
203+
ekstern_versjon_id=ekstern_versjon_id,
189204
)
190205
).parsed

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

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

1111

1212
def _get_kwargs(
1313
*,
1414
ekstern_id: str,
1515
ekstern_navnerom: str,
16+
ekstern_versjon_id: Union[Unset, str] = UNSET,
1617
) -> dict[str, Any]:
1718
params: dict[str, Any] = {}
1819

1920
params["eksternId"] = ekstern_id
2021

2122
params["eksternNavnerom"] = ekstern_navnerom
2223

24+
params["eksternVersjonId"] = ekstern_versjon_id
25+
2326
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
2427

2528
_kwargs: dict[str, Any] = {
@@ -61,14 +64,16 @@ def sync_detailed(
6164
client: Union[AuthenticatedClient, Client],
6265
ekstern_id: str,
6366
ekstern_navnerom: str,
67+
ekstern_versjon_id: Union[Unset, str] = UNSET,
6468
) -> Response[GeotekniskUnders]:
6569
"""Fetches a GeotekniskUnders by external id.
6670
67-
Fetches a GeotekniskUnders by external id.
71+
Fetches a GeotekniskUnders by external id. Returns the most recent one.
6872
6973
Args:
7074
ekstern_id (str):
7175
ekstern_navnerom (str):
76+
ekstern_versjon_id (Union[Unset, str]):
7277
7378
Raises:
7479
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -81,6 +86,7 @@ def sync_detailed(
8186
kwargs = _get_kwargs(
8287
ekstern_id=ekstern_id,
8388
ekstern_navnerom=ekstern_navnerom,
89+
ekstern_versjon_id=ekstern_versjon_id,
8490
)
8591

8692
response = client.get_httpx_client().request(
@@ -95,14 +101,16 @@ def sync(
95101
client: Union[AuthenticatedClient, Client],
96102
ekstern_id: str,
97103
ekstern_navnerom: str,
104+
ekstern_versjon_id: Union[Unset, str] = UNSET,
98105
) -> Optional[GeotekniskUnders]:
99106
"""Fetches a GeotekniskUnders by external id.
100107
101-
Fetches a GeotekniskUnders by external id.
108+
Fetches a GeotekniskUnders by external id. Returns the most recent one.
102109
103110
Args:
104111
ekstern_id (str):
105112
ekstern_navnerom (str):
113+
ekstern_versjon_id (Union[Unset, str]):
106114
107115
Raises:
108116
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -116,6 +124,7 @@ def sync(
116124
client=client,
117125
ekstern_id=ekstern_id,
118126
ekstern_navnerom=ekstern_navnerom,
127+
ekstern_versjon_id=ekstern_versjon_id,
119128
).parsed
120129

121130

@@ -124,14 +133,16 @@ async def asyncio_detailed(
124133
client: Union[AuthenticatedClient, Client],
125134
ekstern_id: str,
126135
ekstern_navnerom: str,
136+
ekstern_versjon_id: Union[Unset, str] = UNSET,
127137
) -> Response[GeotekniskUnders]:
128138
"""Fetches a GeotekniskUnders by external id.
129139
130-
Fetches a GeotekniskUnders by external id.
140+
Fetches a GeotekniskUnders by external id. Returns the most recent one.
131141
132142
Args:
133143
ekstern_id (str):
134144
ekstern_navnerom (str):
145+
ekstern_versjon_id (Union[Unset, str]):
135146
136147
Raises:
137148
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -144,6 +155,7 @@ async def asyncio_detailed(
144155
kwargs = _get_kwargs(
145156
ekstern_id=ekstern_id,
146157
ekstern_navnerom=ekstern_navnerom,
158+
ekstern_versjon_id=ekstern_versjon_id,
147159
)
148160

149161
response = await client.get_async_httpx_client().request(**kwargs)
@@ -156,14 +168,16 @@ async def asyncio(
156168
client: Union[AuthenticatedClient, Client],
157169
ekstern_id: str,
158170
ekstern_navnerom: str,
171+
ekstern_versjon_id: Union[Unset, str] = UNSET,
159172
) -> Optional[GeotekniskUnders]:
160173
"""Fetches a GeotekniskUnders by external id.
161174
162-
Fetches a GeotekniskUnders by external id.
175+
Fetches a GeotekniskUnders by external id. Returns the most recent one.
163176
164177
Args:
165178
ekstern_id (str):
166179
ekstern_navnerom (str):
180+
ekstern_versjon_id (Union[Unset, str]):
167181
168182
Raises:
169183
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -178,5 +192,6 @@ async def asyncio(
178192
client=client,
179193
ekstern_id=ekstern_id,
180194
ekstern_navnerom=ekstern_navnerom,
195+
ekstern_versjon_id=ekstern_versjon_id,
181196
)
182197
).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.09.26"
3+
version = "2025.10.01"
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]>"]

openapi_specification/nadag-innmelding.yaml

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5314,9 +5314,32 @@ components:
53145314
bearerFormat: JWT
53155315
paths:
53165316
/nadag/innmelding/v1/GeotekniskBorehull:
5317+
post:
5318+
summary: Fetches a GeotekniskBorehull by external id.
5319+
description: Fetches a GeotekniskBorehull by external id. Returns the most recent
5320+
one.
5321+
requestBody:
5322+
description: The eksternIdentifikasjon of the GeotekniskBorehull to fetch.
5323+
required: true
5324+
content:
5325+
'*/*':
5326+
schema:
5327+
$ref: "#/components/schemas/EksternIdentifikasjon"
5328+
responses:
5329+
"401":
5330+
description: Unauthorized Error
5331+
"404":
5332+
description: GeotekniskBorehull not found
5333+
"200":
5334+
description: Returns the GeotekniskBorehull you want to fetch
5335+
content:
5336+
application/json:
5337+
schema:
5338+
$ref: "#/components/schemas/GeotekniskBorehull"
53175339
get:
53185340
summary: Fetches a GeotekniskBorehull by external id.
5319-
description: Fetches a GeotekniskBorehull by external id.
5341+
description: Fetches a GeotekniskBorehull by external id. Returns the most recent
5342+
one.
53205343
parameters:
53215344
- description: The externId of the GeotekniskBorehull to fetch.
53225345
required: true
@@ -5330,6 +5353,12 @@ paths:
53305353
type: string
53315354
name: eksternNavnerom
53325355
in: query
5356+
- description: The externVersjonId of the GeotekniskUnders to fetch.
5357+
required: false
5358+
schema:
5359+
type: string
5360+
name: eksternVersjonId
5361+
in: query
53335362
responses:
53345363
"401":
53355364
description: Unauthorized Error
@@ -5433,7 +5462,8 @@ paths:
54335462
/nadag/innmelding/v1/GeotekniskUnders:
54345463
get:
54355464
summary: Fetches a GeotekniskUnders by external id.
5436-
description: Fetches a GeotekniskUnders by external id.
5465+
description: Fetches a GeotekniskUnders by external id. Returns the most recent
5466+
one.
54375467
parameters:
54385468
- description: The externId of the GeotekniskUnders to fetch.
54395469
required: true
@@ -5447,6 +5477,12 @@ paths:
54475477
type: string
54485478
name: eksternNavnerom
54495479
in: query
5480+
- description: The externVersjonId of the GeotekniskUnders to fetch.
5481+
required: false
5482+
schema:
5483+
type: string
5484+
name: eksternVersjonId
5485+
in: query
54505486
responses:
54515487
"200":
54525488
description: OK
@@ -5612,6 +5648,6 @@ paths:
56125648
$ref: "#/components/schemas/GeotekniskBorehull"
56135649
info:
56145650
title: Nadag innmelding API
5615-
version: 2025.09.26
5651+
version: 2025.10.01
56165652
servers:
56175653
- url: https://test.ngu.no/api/

0 commit comments

Comments
 (0)