Skip to content

Commit 9ece264

Browse files
committed
Update package version to 1.0-rc.4 and generated from the latest API specifications
1 parent 756cf6c commit 9ece264

14 files changed

+125
-59
lines changed

config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
project_name_override: nadag-innmelding-python-client
22
package_name_override: nadag_innmelding_python_client
3-
package_version_override: 1.0-rc.3
3+
package_version_override: 1.0-rc.4
44
post_hooks:
55
# - "bash -c 'cd field-manager-python-client && poetry install'"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def _get_kwargs(
2222
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
2323
if response.status_code == 204:
2424
return None
25+
2526
if client.raise_on_unexpected_status:
2627
raise errors.UnexpectedStatus(response.status_code, response.content)
2728
else:

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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def _get_kwargs(
2323
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
2424
if response.status_code == 204:
2525
return None
26+
2627
if client.raise_on_unexpected_status:
2728
raise errors.UnexpectedStatus(response.status_code, response.content)
2829
else:

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def _parse_response(
3838
response_200 = GeotekniskBorehull.from_dict(response.json())
3939

4040
return response_200
41+
4142
if client.raise_on_unexpected_status:
4243
raise errors.UnexpectedStatus(response.status_code, response.content)
4344
else:
@@ -61,9 +62,9 @@ def sync_detailed(
6162
ekstern_id: str,
6263
ekstern_navnerom: str,
6364
) -> Response[GeotekniskBorehull]:
64-
"""Fetches a GeotekniskUnders by external id.
65+
"""Fetches a GeotekniskBorehull by external id.
6566
66-
Fetches a GeotekniskUnders by external id.
67+
Fetches a GeotekniskBorehull by external id.
6768
6869
Args:
6970
ekstern_id (str):
@@ -95,9 +96,9 @@ def sync(
9596
ekstern_id: str,
9697
ekstern_navnerom: str,
9798
) -> Optional[GeotekniskBorehull]:
98-
"""Fetches a GeotekniskUnders by external id.
99+
"""Fetches a GeotekniskBorehull by external id.
99100
100-
Fetches a GeotekniskUnders by external id.
101+
Fetches a GeotekniskBorehull by external id.
101102
102103
Args:
103104
ekstern_id (str):
@@ -124,9 +125,9 @@ async def asyncio_detailed(
124125
ekstern_id: str,
125126
ekstern_navnerom: str,
126127
) -> Response[GeotekniskBorehull]:
127-
"""Fetches a GeotekniskUnders by external id.
128+
"""Fetches a GeotekniskBorehull by external id.
128129
129-
Fetches a GeotekniskUnders by external id.
130+
Fetches a GeotekniskBorehull by external id.
130131
131132
Args:
132133
ekstern_id (str):
@@ -156,9 +157,9 @@ async def asyncio(
156157
ekstern_id: str,
157158
ekstern_navnerom: str,
158159
) -> Optional[GeotekniskBorehull]:
159-
"""Fetches a GeotekniskUnders by external id.
160+
"""Fetches a GeotekniskBorehull by external id.
160161
161-
Fetches a GeotekniskUnders by external id.
162+
Fetches a GeotekniskBorehull by external id.
162163
163164
Args:
164165
ekstern_id (str):

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

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111

1212
def _get_kwargs(
13-
gb_id: str,
13+
geoteknisk_borehull_id: str,
1414
) -> dict[str, Any]:
1515
_kwargs: dict[str, Any] = {
1616
"method": "get",
17-
"url": f"/nadag/innmelding/v1/GeotekniskBorehull/{gb_id}",
17+
"url": f"/nadag/innmelding/v1/GeotekniskBorehull/{geoteknisk_borehull_id}",
1818
}
1919

2020
return _kwargs
@@ -23,13 +23,15 @@ def _get_kwargs(
2323
def _parse_response(
2424
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
2525
) -> Optional[Union[Any, GeotekniskBorehull]]:
26-
if response.status_code == 401:
27-
response_401 = cast(Any, None)
28-
return response_401
2926
if response.status_code == 200:
3027
response_200 = GeotekniskBorehull.from_dict(response.json())
3128

3229
return response_200
30+
31+
if response.status_code == 401:
32+
response_401 = cast(Any, None)
33+
return response_401
34+
3335
if client.raise_on_unexpected_status:
3436
raise errors.UnexpectedStatus(response.status_code, response.content)
3537
else:
@@ -48,7 +50,7 @@ def _build_response(
4850

4951

5052
def sync_detailed(
51-
gb_id: str,
53+
geoteknisk_borehull_id: str,
5254
*,
5355
client: Union[AuthenticatedClient, Client],
5456
) -> Response[Union[Any, GeotekniskBorehull]]:
@@ -57,7 +59,7 @@ def sync_detailed(
5759
Fetches a GeotekniskBorehull by id.
5860
5961
Args:
60-
gb_id (str):
62+
geoteknisk_borehull_id (str):
6163
6264
Raises:
6365
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -68,7 +70,7 @@ def sync_detailed(
6870
"""
6971

7072
kwargs = _get_kwargs(
71-
gb_id=gb_id,
73+
geoteknisk_borehull_id=geoteknisk_borehull_id,
7274
)
7375

7476
response = client.get_httpx_client().request(
@@ -79,7 +81,7 @@ def sync_detailed(
7981

8082

8183
def sync(
82-
gb_id: str,
84+
geoteknisk_borehull_id: str,
8385
*,
8486
client: Union[AuthenticatedClient, Client],
8587
) -> Optional[Union[Any, GeotekniskBorehull]]:
@@ -88,7 +90,7 @@ def sync(
8890
Fetches a GeotekniskBorehull by id.
8991
9092
Args:
91-
gb_id (str):
93+
geoteknisk_borehull_id (str):
9294
9395
Raises:
9496
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -99,13 +101,13 @@ def sync(
99101
"""
100102

101103
return sync_detailed(
102-
gb_id=gb_id,
104+
geoteknisk_borehull_id=geoteknisk_borehull_id,
103105
client=client,
104106
).parsed
105107

106108

107109
async def asyncio_detailed(
108-
gb_id: str,
110+
geoteknisk_borehull_id: str,
109111
*,
110112
client: Union[AuthenticatedClient, Client],
111113
) -> Response[Union[Any, GeotekniskBorehull]]:
@@ -114,7 +116,7 @@ async def asyncio_detailed(
114116
Fetches a GeotekniskBorehull by id.
115117
116118
Args:
117-
gb_id (str):
119+
geoteknisk_borehull_id (str):
118120
119121
Raises:
120122
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -125,7 +127,7 @@ async def asyncio_detailed(
125127
"""
126128

127129
kwargs = _get_kwargs(
128-
gb_id=gb_id,
130+
geoteknisk_borehull_id=geoteknisk_borehull_id,
129131
)
130132

131133
response = await client.get_async_httpx_client().request(**kwargs)
@@ -134,7 +136,7 @@ async def asyncio_detailed(
134136

135137

136138
async def asyncio(
137-
gb_id: str,
139+
geoteknisk_borehull_id: str,
138140
*,
139141
client: Union[AuthenticatedClient, Client],
140142
) -> Optional[Union[Any, GeotekniskBorehull]]:
@@ -143,7 +145,7 @@ async def asyncio(
143145
Fetches a GeotekniskBorehull by id.
144146
145147
Args:
146-
gb_id (str):
148+
geoteknisk_borehull_id (str):
147149
148150
Raises:
149151
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -155,7 +157,7 @@ async def asyncio(
155157

156158
return (
157159
await asyncio_detailed(
158-
gb_id=gb_id,
160+
geoteknisk_borehull_id=geoteknisk_borehull_id,
159161
client=client,
160162
)
161163
).parsed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def _parse_response(
3838
response_200 = GeotekniskUnders.from_dict(response.json())
3939

4040
return response_200
41+
4142
if client.raise_on_unexpected_status:
4243
raise errors.UnexpectedStatus(response.status_code, response.content)
4344
else:

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ def _get_kwargs(
2323
def _parse_response(
2424
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
2525
) -> Optional[Union[Any, GeotekniskUnders]]:
26-
if response.status_code == 401:
27-
response_401 = cast(Any, None)
28-
return response_401
2926
if response.status_code == 200:
3027
response_200 = GeotekniskUnders.from_dict(response.json())
3128

3229
return response_200
30+
31+
if response.status_code == 401:
32+
response_401 = cast(Any, None)
33+
return response_401
34+
3335
if client.raise_on_unexpected_status:
3436
raise errors.UnexpectedStatus(response.status_code, response.content)
3537
else:

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,15 @@ def _get_kwargs(
4242
def _parse_response(
4343
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
4444
) -> Optional[Union[Any, ValidatedGeotekniskUnders]]:
45-
if response.status_code == 401:
46-
response_401 = cast(Any, None)
47-
return response_401
4845
if response.status_code == 200:
4946
response_200 = ValidatedGeotekniskUnders.from_dict(response.json())
5047

5148
return response_200
49+
50+
if response.status_code == 401:
51+
response_401 = cast(Any, None)
52+
return response_401
53+
5254
if client.raise_on_unexpected_status:
5355
raise errors.UnexpectedStatus(response.status_code, response.content)
5456
else:

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def _parse_response(
5050
response_200 = ValidatedGeotekniskUnders.from_dict(response.json())
5151

5252
return response_200
53+
5354
if client.raise_on_unexpected_status:
5455
raise errors.UnexpectedStatus(response.status_code, response.content)
5556
else:

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ def _get_kwargs(
4343
def _parse_response(
4444
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
4545
) -> Optional[Union[Any, ValidatedGeotekniskUnders]]:
46-
if response.status_code == 401:
47-
response_401 = cast(Any, None)
48-
return response_401
4946
if response.status_code == 200:
5047
response_200 = ValidatedGeotekniskUnders.from_dict(response.json())
5148

5249
return response_200
50+
51+
if response.status_code == 401:
52+
response_401 = cast(Any, None)
53+
return response_401
54+
5355
if client.raise_on_unexpected_status:
5456
raise errors.UnexpectedStatus(response.status_code, response.content)
5557
else:

0 commit comments

Comments
 (0)