Skip to content

Commit d6a8152

Browse files
authored
[create-pull-request] automated change (#114)
Co-authored-by: yejiyang <[email protected]>
1 parent f422371 commit d6a8152

File tree

8 files changed

+158
-45
lines changed

8 files changed

+158
-45
lines changed

field-manager-python-client/field_manager_python_client/api/export/export_projects_project_id_export_post.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,15 @@ def sync_detailed(
7070
7171
Supported **export_type**:
7272
73-
- **ProjectFiles**: Download files, with ID listed in the file_ids, in a Zip file.
73+
- **LocationCSV**: Download CSV file with key location information (onshore format).
7474
- **LocationGeoJSON**: Download GeoJSON files.
7575
- **LocationKOF**: Download KOF files.
76-
- **LocationCSV**: Download CSV file with key location information (onshore format).
76+
- **LocationLAS**: Download LAS files.
7777
- **LocationXLS**: Download Excel file with key location information (onshore format).
7878
- **MethodFiles**: Download all original uploaded source data files.
7979
- **MethodSND**: Download SND files for all methods in a Zip file.
8080
- **MethodXLS**: Download Excel file with method data (offshore format).
81+
- **ProjectFiles**: Download files, with ID listed in the file_ids, in a Zip file.
8182
8283
**method_status_ids**: Filter methods by status. Only return specified statuses. Empty list means
8384
all statuses.
@@ -126,14 +127,15 @@ def sync(
126127
127128
Supported **export_type**:
128129
129-
- **ProjectFiles**: Download files, with ID listed in the file_ids, in a Zip file.
130+
- **LocationCSV**: Download CSV file with key location information (onshore format).
130131
- **LocationGeoJSON**: Download GeoJSON files.
131132
- **LocationKOF**: Download KOF files.
132-
- **LocationCSV**: Download CSV file with key location information (onshore format).
133+
- **LocationLAS**: Download LAS files.
133134
- **LocationXLS**: Download Excel file with key location information (onshore format).
134135
- **MethodFiles**: Download all original uploaded source data files.
135136
- **MethodSND**: Download SND files for all methods in a Zip file.
136137
- **MethodXLS**: Download Excel file with method data (offshore format).
138+
- **ProjectFiles**: Download files, with ID listed in the file_ids, in a Zip file.
137139
138140
**method_status_ids**: Filter methods by status. Only return specified statuses. Empty list means
139141
all statuses.
@@ -177,14 +179,15 @@ async def asyncio_detailed(
177179
178180
Supported **export_type**:
179181
180-
- **ProjectFiles**: Download files, with ID listed in the file_ids, in a Zip file.
182+
- **LocationCSV**: Download CSV file with key location information (onshore format).
181183
- **LocationGeoJSON**: Download GeoJSON files.
182184
- **LocationKOF**: Download KOF files.
183-
- **LocationCSV**: Download CSV file with key location information (onshore format).
185+
- **LocationLAS**: Download LAS files.
184186
- **LocationXLS**: Download Excel file with key location information (onshore format).
185187
- **MethodFiles**: Download all original uploaded source data files.
186188
- **MethodSND**: Download SND files for all methods in a Zip file.
187189
- **MethodXLS**: Download Excel file with method data (offshore format).
190+
- **ProjectFiles**: Download files, with ID listed in the file_ids, in a Zip file.
188191
189192
**method_status_ids**: Filter methods by status. Only return specified statuses. Empty list means
190193
all statuses.
@@ -231,14 +234,15 @@ async def asyncio(
231234
232235
Supported **export_type**:
233236
234-
- **ProjectFiles**: Download files, with ID listed in the file_ids, in a Zip file.
237+
- **LocationCSV**: Download CSV file with key location information (onshore format).
235238
- **LocationGeoJSON**: Download GeoJSON files.
236239
- **LocationKOF**: Download KOF files.
237-
- **LocationCSV**: Download CSV file with key location information (onshore format).
240+
- **LocationLAS**: Download LAS files.
238241
- **LocationXLS**: Download Excel file with key location information (onshore format).
239242
- **MethodFiles**: Download all original uploaded source data files.
240243
- **MethodSND**: Download SND files for all methods in a Zip file.
241244
- **MethodXLS**: Download Excel file with method data (offshore format).
245+
- **ProjectFiles**: Download files, with ID listed in the file_ids, in a Zip file.
242246
243247
**method_status_ids**: Filter methods by status. Only return specified statuses. Empty list means
244248
all statuses.

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ class Export:
1818
"""
1919
Attributes:
2020
export_type (ExportType):
21-
location_ids (Union[Unset, list[UUID]]): Used when export_type is one of `LocationKOF`, `LocationXLS`
21+
location_ids (Union[Unset, list[UUID]]): Used when export_type is one of `LocationCSV`, `LocationGeoJSON`,
22+
`LocationKOF`, `LocationLAS` or `LocationXLS`
2223
file_ids (Union[Unset, list[UUID]]): Used when export_type is `ProjectFiles`
2324
method_status_ids (Union[Unset, list[int]]): Filter methods by status. Empty list means all statuses.
2425
method_type_ids (Union[Unset, list[int]]): Filter methods by type. Empty list means all types.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class ExportType(str, Enum):
55
LOCATIONCSV = "LocationCSV"
66
LOCATIONGEOJSON = "LocationGeoJSON"
77
LOCATIONKOF = "LocationKOF"
8+
LOCATIONLAS = "LocationLAS"
89
LOCATIONXLS = "LocationXLS"
910
METHODFILES = "MethodFiles"
1011
METHODSND = "MethodSND"

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

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
from collections.abc import Mapping
2-
from typing import TYPE_CHECKING, Any, TypeVar, Union
2+
from typing import TYPE_CHECKING, Any, TypeVar
33

44
from attrs import define as _attrs_define
55
from attrs import field as _attrs_field
66

77
from ..models.method_type_enum import MethodTypeEnum
8-
from ..types import UNSET, Unset
98

109
if TYPE_CHECKING:
1110
from ..models.file_extension import FileExtension
@@ -53,7 +52,6 @@ class MethodType:
5352
category (str):
5453
sort_order (int):
5554
file_extensions (list['FileExtension']):
56-
raw_file_extensions (Union[Unset, list['FileExtension']]): Deprecated, use 'file_extensions' instead.
5755
"""
5856

5957
method_type_id: MethodTypeEnum
@@ -62,7 +60,6 @@ class MethodType:
6260
category: str
6361
sort_order: int
6462
file_extensions: list["FileExtension"]
65-
raw_file_extensions: Union[Unset, list["FileExtension"]] = UNSET
6663
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
6764

6865
def to_dict(self) -> dict[str, Any]:
@@ -81,13 +78,6 @@ def to_dict(self) -> dict[str, Any]:
8178
file_extensions_item = file_extensions_item_data.to_dict()
8279
file_extensions.append(file_extensions_item)
8380

84-
raw_file_extensions: Union[Unset, list[dict[str, Any]]] = UNSET
85-
if not isinstance(self.raw_file_extensions, Unset):
86-
raw_file_extensions = []
87-
for raw_file_extensions_item_data in self.raw_file_extensions:
88-
raw_file_extensions_item = raw_file_extensions_item_data.to_dict()
89-
raw_file_extensions.append(raw_file_extensions_item)
90-
9181
field_dict: dict[str, Any] = {}
9282
field_dict.update(self.additional_properties)
9383
field_dict.update(
@@ -100,8 +90,6 @@ def to_dict(self) -> dict[str, Any]:
10090
"file_extensions": file_extensions,
10191
}
10292
)
103-
if raw_file_extensions is not UNSET:
104-
field_dict["raw_file_extensions"] = raw_file_extensions
10593

10694
return field_dict
10795

@@ -127,21 +115,13 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
127115

128116
file_extensions.append(file_extensions_item)
129117

130-
raw_file_extensions = []
131-
_raw_file_extensions = d.pop("raw_file_extensions", UNSET)
132-
for raw_file_extensions_item_data in _raw_file_extensions or []:
133-
raw_file_extensions_item = FileExtension.from_dict(raw_file_extensions_item_data)
134-
135-
raw_file_extensions.append(raw_file_extensions_item)
136-
137118
method_type = cls(
138119
method_type_id=method_type_id,
139120
name=name,
140121
description=description,
141122
category=category,
142123
sort_order=sort_order,
143124
file_extensions=file_extensions,
144-
raw_file_extensions=raw_file_extensions,
145125
)
146126

147127
method_type.additional_properties = d

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.6.1"
3+
version = "4.6.7"
44
description = "A client library for accessing Field Manager Data API"
55
authors = ["Jiyang Ye <[email protected]>"]
66
maintainers = ["Jiyang Ye <[email protected]>"]

0 commit comments

Comments
 (0)