Skip to content

Commit bc6e860

Browse files
authored
[create-pull-request] automated change (#91)
Co-authored-by: yejiyang <6262071+yejiyang@users.noreply.github.com>
1 parent ced4670 commit bc6e860

7 files changed

Lines changed: 167 additions & 10 deletions

File tree

field-manager-python-client/field_manager_python_client/models/create_cross_section_lines_projects_project_id_cross_sections_lines_format_post_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
class CreateCrossSectionLinesProjectsProjectIdCrossSectionsLinesFormatPostFormat(str, Enum):
55
DXF = "dxf"
6-
SHP = "shp"
6+
ZIP = "zip"
77

88
def __str__(self) -> str:
99
return str(self.value)

field-manager-python-client/field_manager_python_client/models/method_srs.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class MethodSRS:
5252
stopcode (Union[None, Unset, int]):
5353
depth_in_soil (Union[None, Unset, float]):
5454
depth_in_rock (Union[None, Unset, float]):
55+
bedrock_elevation (Union[None, Unset, float]):
5556
"""
5657

5758
method_id: UUID
@@ -77,6 +78,7 @@ class MethodSRS:
7778
stopcode: Union[None, Unset, int] = UNSET
7879
depth_in_soil: Union[None, Unset, float] = UNSET
7980
depth_in_rock: Union[None, Unset, float] = UNSET
81+
bedrock_elevation: Union[None, Unset, float] = UNSET
8082
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
8183

8284
def to_dict(self) -> dict[str, Any]:
@@ -197,6 +199,12 @@ def to_dict(self) -> dict[str, Any]:
197199
else:
198200
depth_in_rock = self.depth_in_rock
199201

202+
bedrock_elevation: Union[None, Unset, float]
203+
if isinstance(self.bedrock_elevation, Unset):
204+
bedrock_elevation = UNSET
205+
else:
206+
bedrock_elevation = self.bedrock_elevation
207+
200208
field_dict: dict[str, Any] = {}
201209
field_dict.update(self.additional_properties)
202210
field_dict.update(
@@ -243,6 +251,8 @@ def to_dict(self) -> dict[str, Any]:
243251
field_dict["depth_in_soil"] = depth_in_soil
244252
if depth_in_rock is not UNSET:
245253
field_dict["depth_in_rock"] = depth_in_rock
254+
if bedrock_elevation is not UNSET:
255+
field_dict["bedrock_elevation"] = bedrock_elevation
246256

247257
return field_dict
248258

@@ -433,6 +443,15 @@ def _parse_depth_in_rock(data: object) -> Union[None, Unset, float]:
433443

434444
depth_in_rock = _parse_depth_in_rock(d.pop("depth_in_rock", UNSET))
435445

446+
def _parse_bedrock_elevation(data: object) -> Union[None, Unset, float]:
447+
if data is None:
448+
return data
449+
if isinstance(data, Unset):
450+
return data
451+
return cast(Union[None, Unset, float], data)
452+
453+
bedrock_elevation = _parse_bedrock_elevation(d.pop("bedrock_elevation", UNSET))
454+
436455
method_srs = cls(
437456
method_id=method_id,
438457
name=name,
@@ -457,6 +476,7 @@ def _parse_depth_in_rock(data: object) -> Union[None, Unset, float]:
457476
stopcode=stopcode,
458477
depth_in_soil=depth_in_soil,
459478
depth_in_rock=depth_in_rock,
479+
bedrock_elevation=bedrock_elevation,
460480
)
461481

462482
method_srs.additional_properties = d

field-manager-python-client/field_manager_python_client/models/method_srs_create.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ class MethodSRSCreate:
3636
method_type_id (Union[Literal[24], Unset]): Default: 24.
3737
sounding_class (Union[Unset, SoundingClass]): Soil-Rock-Sounding (Swedish Jord-bergsondering) classes
3838
(
39-
JB1 = Jb-1,
40-
JB2 = Jb-2,
41-
JB3 = Jb-3,
42-
JBTOT = Jb-tot,
39+
JB1 = JB1,
40+
JB2 = JB2,
41+
JB3 = JB3,
42+
JBTOT = JBTOT,
4343
)
4444
serial_number (Union[None, Unset, str]):
4545
calibration_date (Union[None, Unset, datetime.datetime]):

field-manager-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 = "field-manager-python-client"
3-
version = "4.5.89"
3+
version = "4.5.94"
44
description = "A client library for accessing Field Manager Data API"
55
authors = ["Jiyang Ye <jiyang.ye@ngi.no>"]
66
maintainers = ["Jiyang Ye <jiyang.ye@ngi.no>"]

logs/log

Lines changed: 133 additions & 0 deletions
Large diffs are not rendered by default.

openapi_specification/openapi.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"openapi": "3.1.0",
3-
"info": { "title": "Field Manager Data API", "version": "4.5.89" },
3+
"info": { "title": "Field Manager Data API", "version": "4.5.94" },
44
"servers": [
55
{
66
"url": "https://api.fieldmanager.io/fieldmanager",
@@ -5087,7 +5087,7 @@
50875087
"in": "path",
50885088
"required": true,
50895089
"schema": {
5090-
"enum": ["dxf", "shp"],
5090+
"enum": ["dxf", "zip"],
50915091
"type": "string",
50925092
"title": "Format"
50935093
}
@@ -16044,6 +16044,10 @@
1604416044
"depth_in_rock": {
1604516045
"anyOf": [{ "type": "number" }, { "type": "null" }],
1604616046
"title": "Depth In Rock"
16047+
},
16048+
"bedrock_elevation": {
16049+
"anyOf": [{ "type": "number" }, { "type": "null" }],
16050+
"title": "Bedrock Elevation"
1604716051
}
1604816052
},
1604916053
"type": "object",
@@ -21402,7 +21406,7 @@
2140221406
"type": "string",
2140321407
"enum": ["JB1", "JB2", "JB3", "JBTOT"],
2140421408
"title": "SoundingClass",
21405-
"description": "Soil-Rock-Sounding (Swedish Jord-bergsondering) classes\n(\nJB1 = Jb-1,\nJB2 = Jb-2,\nJB3 = Jb-3,\nJBTOT = Jb-tot,\n)"
21409+
"description": "Soil-Rock-Sounding (Swedish Jord-bergsondering) classes\n(\nJB1 = JB1,\nJB2 = JB2,\nJB3 = JB3,\nJBTOT = JBTOT,\n)"
2140621410
},
2140721411
"Standard": {
2140821412
"properties": {

openapi_specification/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.5.89
1+
4.5.94

0 commit comments

Comments
 (0)