osdu-python-client 0.14.0__py3-none-any.whl → 0.15.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- osdu_python_client/generated/crs_catalog/_facade.pyi +12 -12
- osdu_python_client/generated/crs_catalog/api/area_of_use_api_v3/get_aou_info.py +5 -0
- osdu_python_client/generated/crs_catalog/api/coordinate_reference_systems_api_v3/get_coordinate_reference_systems.py +16 -12
- osdu_python_client/generated/crs_catalog/api/coordinate_transformations_api_v3/get_coordinate_transformations.py +16 -12
- osdu_python_client/generated/crs_catalog/api/info_api_v3/info.py +13 -57
- osdu_python_client/generated/crs_catalog/models/__init__.py +2 -0
- osdu_python_client/generated/crs_catalog/models/coordinate_reference_systems_query.py +31 -22
- osdu_python_client/generated/crs_catalog/models/coordinate_transformations_query.py +12 -12
- osdu_python_client/generated/crs_catalog/models/extent.py +72 -0
- osdu_python_client/generated/crs_catalog/models/in_polygon_query.py +24 -26
- osdu_python_client/generated/wellbore_ddms/_facade.pyi +11 -0
- osdu_python_client/generated/wellbore_ddms/api/wellbore_ddms/get_ddms_v3_info.py +140 -0
- osdu_python_client/generated/wellbore_ddms/models/__init__.py +4 -0
- osdu_python_client/generated/wellbore_ddms/models/connected_outer_service.py +93 -0
- osdu_python_client/generated/wellbore_ddms/models/info_response.py +226 -0
- {osdu_python_client-0.14.0.dist-info → osdu_python_client-0.15.0.dist-info}/METADATA +1 -1
- {osdu_python_client-0.14.0.dist-info → osdu_python_client-0.15.0.dist-info}/RECORD +20 -16
- {osdu_python_client-0.14.0.dist-info → osdu_python_client-0.15.0.dist-info}/WHEEL +0 -0
- {osdu_python_client-0.14.0.dist-info → osdu_python_client-0.15.0.dist-info}/licenses/LICENSE +0 -0
- {osdu_python_client-0.14.0.dist-info → osdu_python_client-0.15.0.dist-info}/top_level.txt +0 -0
|
@@ -28,12 +28,12 @@ class _GetCoordinateReferenceSystemAsync:
|
|
|
28
28
|
async def detailed(self, *, record_id: str | Unset = ..., data_id: str | Unset = ..., data_partition_id: str = ...) -> Response[AppError | SearchResponse]: ...
|
|
29
29
|
|
|
30
30
|
class _GetCoordinateReferenceSystems:
|
|
31
|
-
def __call__(self, *, body: CoordinateReferenceSystemsQuery
|
|
32
|
-
def detailed(self, *, body: CoordinateReferenceSystemsQuery
|
|
31
|
+
def __call__(self, *, body: CoordinateReferenceSystemsQuery, data_partition_id: str = ...) -> SearchResponse | None: ...
|
|
32
|
+
def detailed(self, *, body: CoordinateReferenceSystemsQuery, data_partition_id: str = ...) -> Response[AppError | SearchResponse]: ...
|
|
33
33
|
|
|
34
34
|
class _GetCoordinateReferenceSystemsAsync:
|
|
35
|
-
async def __call__(self, *, body: CoordinateReferenceSystemsQuery
|
|
36
|
-
async def detailed(self, *, body: CoordinateReferenceSystemsQuery
|
|
35
|
+
async def __call__(self, *, body: CoordinateReferenceSystemsQuery, data_partition_id: str = ...) -> SearchResponse | None: ...
|
|
36
|
+
async def detailed(self, *, body: CoordinateReferenceSystemsQuery, data_partition_id: str = ...) -> Response[AppError | SearchResponse]: ...
|
|
37
37
|
|
|
38
38
|
class _GetCoordinateTransformation:
|
|
39
39
|
def __call__(self, *, record_id: str | Unset = ..., data_id: str | Unset = ..., data_partition_id: str = ...) -> SearchResponse | None: ...
|
|
@@ -44,20 +44,20 @@ class _GetCoordinateTransformationAsync:
|
|
|
44
44
|
async def detailed(self, *, record_id: str | Unset = ..., data_id: str | Unset = ..., data_partition_id: str = ...) -> Response[AppError | SearchResponse]: ...
|
|
45
45
|
|
|
46
46
|
class _GetCoordinateTransformations:
|
|
47
|
-
def __call__(self, *, body: CoordinateTransformationsQuery
|
|
48
|
-
def detailed(self, *, body: CoordinateTransformationsQuery
|
|
47
|
+
def __call__(self, *, body: CoordinateTransformationsQuery, data_partition_id: str = ...) -> SearchResponse | None: ...
|
|
48
|
+
def detailed(self, *, body: CoordinateTransformationsQuery, data_partition_id: str = ...) -> Response[AppError | SearchResponse]: ...
|
|
49
49
|
|
|
50
50
|
class _GetCoordinateTransformationsAsync:
|
|
51
|
-
async def __call__(self, *, body: CoordinateTransformationsQuery
|
|
52
|
-
async def detailed(self, *, body: CoordinateTransformationsQuery
|
|
51
|
+
async def __call__(self, *, body: CoordinateTransformationsQuery, data_partition_id: str = ...) -> SearchResponse | None: ...
|
|
52
|
+
async def detailed(self, *, body: CoordinateTransformationsQuery, data_partition_id: str = ...) -> Response[AppError | SearchResponse]: ...
|
|
53
53
|
|
|
54
54
|
class _Info:
|
|
55
|
-
def __call__(self
|
|
56
|
-
def detailed(self
|
|
55
|
+
def __call__(self) -> VersionInfo | None: ...
|
|
56
|
+
def detailed(self) -> Response[VersionInfo]: ...
|
|
57
57
|
|
|
58
58
|
class _InfoAsync:
|
|
59
|
-
async def __call__(self
|
|
60
|
-
async def detailed(self
|
|
59
|
+
async def __call__(self) -> VersionInfo | None: ...
|
|
60
|
+
async def detailed(self) -> Response[VersionInfo]: ...
|
|
61
61
|
|
|
62
62
|
class CrsCatalogFacade:
|
|
63
63
|
get_aou_info: _GetAouInfo
|
|
@@ -65,6 +65,11 @@ def _parse_response(
|
|
|
65
65
|
|
|
66
66
|
return response_409
|
|
67
67
|
|
|
68
|
+
if response.status_code == 415:
|
|
69
|
+
response_415 = AppError.from_dict(response.json())
|
|
70
|
+
|
|
71
|
+
return response_415
|
|
72
|
+
|
|
68
73
|
if response.status_code == 500:
|
|
69
74
|
response_500 = AppError.from_dict(response.json())
|
|
70
75
|
|
|
@@ -8,12 +8,12 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.app_error import AppError
|
|
9
9
|
from ...models.coordinate_reference_systems_query import CoordinateReferenceSystemsQuery
|
|
10
10
|
from ...models.search_response import SearchResponse
|
|
11
|
-
from ...types import
|
|
11
|
+
from ...types import Response
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
*,
|
|
16
|
-
body: CoordinateReferenceSystemsQuery
|
|
16
|
+
body: CoordinateReferenceSystemsQuery,
|
|
17
17
|
data_partition_id: str,
|
|
18
18
|
) -> dict[str, Any]:
|
|
19
19
|
headers: dict[str, Any] = {}
|
|
@@ -24,8 +24,7 @@ def _get_kwargs(
|
|
|
24
24
|
"url": "/v3/coordinate-reference-system",
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
_kwargs["json"] = body.to_dict()
|
|
27
|
+
_kwargs["json"] = body.to_dict()
|
|
29
28
|
|
|
30
29
|
headers["Content-Type"] = "application/json"
|
|
31
30
|
|
|
@@ -66,6 +65,11 @@ def _parse_response(
|
|
|
66
65
|
|
|
67
66
|
return response_409
|
|
68
67
|
|
|
68
|
+
if response.status_code == 415:
|
|
69
|
+
response_415 = AppError.from_dict(response.json())
|
|
70
|
+
|
|
71
|
+
return response_415
|
|
72
|
+
|
|
69
73
|
if response.status_code == 500:
|
|
70
74
|
response_500 = AppError.from_dict(response.json())
|
|
71
75
|
|
|
@@ -101,7 +105,7 @@ def _build_response(
|
|
|
101
105
|
def sync_detailed(
|
|
102
106
|
*,
|
|
103
107
|
client: AuthenticatedClient,
|
|
104
|
-
body: CoordinateReferenceSystemsQuery
|
|
108
|
+
body: CoordinateReferenceSystemsQuery,
|
|
105
109
|
data_partition_id: str,
|
|
106
110
|
) -> Response[AppError | SearchResponse]:
|
|
107
111
|
"""Coordinate Transformations
|
|
@@ -110,7 +114,7 @@ def sync_detailed(
|
|
|
110
114
|
|
|
111
115
|
Args:
|
|
112
116
|
data_partition_id (str):
|
|
113
|
-
body (CoordinateReferenceSystemsQuery
|
|
117
|
+
body (CoordinateReferenceSystemsQuery): Body for searching on CRSs
|
|
114
118
|
|
|
115
119
|
Raises:
|
|
116
120
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -135,7 +139,7 @@ def sync_detailed(
|
|
|
135
139
|
def sync(
|
|
136
140
|
*,
|
|
137
141
|
client: AuthenticatedClient,
|
|
138
|
-
body: CoordinateReferenceSystemsQuery
|
|
142
|
+
body: CoordinateReferenceSystemsQuery,
|
|
139
143
|
data_partition_id: str,
|
|
140
144
|
) -> AppError | SearchResponse | None:
|
|
141
145
|
"""Coordinate Transformations
|
|
@@ -144,7 +148,7 @@ def sync(
|
|
|
144
148
|
|
|
145
149
|
Args:
|
|
146
150
|
data_partition_id (str):
|
|
147
|
-
body (CoordinateReferenceSystemsQuery
|
|
151
|
+
body (CoordinateReferenceSystemsQuery): Body for searching on CRSs
|
|
148
152
|
|
|
149
153
|
Raises:
|
|
150
154
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -164,7 +168,7 @@ def sync(
|
|
|
164
168
|
async def asyncio_detailed(
|
|
165
169
|
*,
|
|
166
170
|
client: AuthenticatedClient,
|
|
167
|
-
body: CoordinateReferenceSystemsQuery
|
|
171
|
+
body: CoordinateReferenceSystemsQuery,
|
|
168
172
|
data_partition_id: str,
|
|
169
173
|
) -> Response[AppError | SearchResponse]:
|
|
170
174
|
"""Coordinate Transformations
|
|
@@ -173,7 +177,7 @@ async def asyncio_detailed(
|
|
|
173
177
|
|
|
174
178
|
Args:
|
|
175
179
|
data_partition_id (str):
|
|
176
|
-
body (CoordinateReferenceSystemsQuery
|
|
180
|
+
body (CoordinateReferenceSystemsQuery): Body for searching on CRSs
|
|
177
181
|
|
|
178
182
|
Raises:
|
|
179
183
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -196,7 +200,7 @@ async def asyncio_detailed(
|
|
|
196
200
|
async def asyncio(
|
|
197
201
|
*,
|
|
198
202
|
client: AuthenticatedClient,
|
|
199
|
-
body: CoordinateReferenceSystemsQuery
|
|
203
|
+
body: CoordinateReferenceSystemsQuery,
|
|
200
204
|
data_partition_id: str,
|
|
201
205
|
) -> AppError | SearchResponse | None:
|
|
202
206
|
"""Coordinate Transformations
|
|
@@ -205,7 +209,7 @@ async def asyncio(
|
|
|
205
209
|
|
|
206
210
|
Args:
|
|
207
211
|
data_partition_id (str):
|
|
208
|
-
body (CoordinateReferenceSystemsQuery
|
|
212
|
+
body (CoordinateReferenceSystemsQuery): Body for searching on CRSs
|
|
209
213
|
|
|
210
214
|
Raises:
|
|
211
215
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -8,12 +8,12 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.app_error import AppError
|
|
9
9
|
from ...models.coordinate_transformations_query import CoordinateTransformationsQuery
|
|
10
10
|
from ...models.search_response import SearchResponse
|
|
11
|
-
from ...types import
|
|
11
|
+
from ...types import Response
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
*,
|
|
16
|
-
body: CoordinateTransformationsQuery
|
|
16
|
+
body: CoordinateTransformationsQuery,
|
|
17
17
|
data_partition_id: str,
|
|
18
18
|
) -> dict[str, Any]:
|
|
19
19
|
headers: dict[str, Any] = {}
|
|
@@ -24,8 +24,7 @@ def _get_kwargs(
|
|
|
24
24
|
"url": "/v3/coordinate-transformation",
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
_kwargs["json"] = body.to_dict()
|
|
27
|
+
_kwargs["json"] = body.to_dict()
|
|
29
28
|
|
|
30
29
|
headers["Content-Type"] = "application/json"
|
|
31
30
|
|
|
@@ -66,6 +65,11 @@ def _parse_response(
|
|
|
66
65
|
|
|
67
66
|
return response_409
|
|
68
67
|
|
|
68
|
+
if response.status_code == 415:
|
|
69
|
+
response_415 = AppError.from_dict(response.json())
|
|
70
|
+
|
|
71
|
+
return response_415
|
|
72
|
+
|
|
69
73
|
if response.status_code == 500:
|
|
70
74
|
response_500 = AppError.from_dict(response.json())
|
|
71
75
|
|
|
@@ -101,7 +105,7 @@ def _build_response(
|
|
|
101
105
|
def sync_detailed(
|
|
102
106
|
*,
|
|
103
107
|
client: AuthenticatedClient,
|
|
104
|
-
body: CoordinateTransformationsQuery
|
|
108
|
+
body: CoordinateTransformationsQuery,
|
|
105
109
|
data_partition_id: str,
|
|
106
110
|
) -> Response[AppError | SearchResponse]:
|
|
107
111
|
"""Coordinate Transformations
|
|
@@ -110,7 +114,7 @@ def sync_detailed(
|
|
|
110
114
|
|
|
111
115
|
Args:
|
|
112
116
|
data_partition_id (str):
|
|
113
|
-
body (CoordinateTransformationsQuery
|
|
117
|
+
body (CoordinateTransformationsQuery): Body for searching on CTs
|
|
114
118
|
|
|
115
119
|
Raises:
|
|
116
120
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -135,7 +139,7 @@ def sync_detailed(
|
|
|
135
139
|
def sync(
|
|
136
140
|
*,
|
|
137
141
|
client: AuthenticatedClient,
|
|
138
|
-
body: CoordinateTransformationsQuery
|
|
142
|
+
body: CoordinateTransformationsQuery,
|
|
139
143
|
data_partition_id: str,
|
|
140
144
|
) -> AppError | SearchResponse | None:
|
|
141
145
|
"""Coordinate Transformations
|
|
@@ -144,7 +148,7 @@ def sync(
|
|
|
144
148
|
|
|
145
149
|
Args:
|
|
146
150
|
data_partition_id (str):
|
|
147
|
-
body (CoordinateTransformationsQuery
|
|
151
|
+
body (CoordinateTransformationsQuery): Body for searching on CTs
|
|
148
152
|
|
|
149
153
|
Raises:
|
|
150
154
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -164,7 +168,7 @@ def sync(
|
|
|
164
168
|
async def asyncio_detailed(
|
|
165
169
|
*,
|
|
166
170
|
client: AuthenticatedClient,
|
|
167
|
-
body: CoordinateTransformationsQuery
|
|
171
|
+
body: CoordinateTransformationsQuery,
|
|
168
172
|
data_partition_id: str,
|
|
169
173
|
) -> Response[AppError | SearchResponse]:
|
|
170
174
|
"""Coordinate Transformations
|
|
@@ -173,7 +177,7 @@ async def asyncio_detailed(
|
|
|
173
177
|
|
|
174
178
|
Args:
|
|
175
179
|
data_partition_id (str):
|
|
176
|
-
body (CoordinateTransformationsQuery
|
|
180
|
+
body (CoordinateTransformationsQuery): Body for searching on CTs
|
|
177
181
|
|
|
178
182
|
Raises:
|
|
179
183
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -196,7 +200,7 @@ async def asyncio_detailed(
|
|
|
196
200
|
async def asyncio(
|
|
197
201
|
*,
|
|
198
202
|
client: AuthenticatedClient,
|
|
199
|
-
body: CoordinateTransformationsQuery
|
|
203
|
+
body: CoordinateTransformationsQuery,
|
|
200
204
|
data_partition_id: str,
|
|
201
205
|
) -> AppError | SearchResponse | None:
|
|
202
206
|
"""Coordinate Transformations
|
|
@@ -205,7 +209,7 @@ async def asyncio(
|
|
|
205
209
|
|
|
206
210
|
Args:
|
|
207
211
|
data_partition_id (str):
|
|
208
|
-
body (CoordinateTransformationsQuery
|
|
212
|
+
body (CoordinateTransformationsQuery): Body for searching on CTs
|
|
209
213
|
|
|
210
214
|
Raises:
|
|
211
215
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -5,50 +5,28 @@ import httpx
|
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
|
-
from ...models.app_error import AppError
|
|
9
8
|
from ...models.version_info import VersionInfo
|
|
10
9
|
from ...types import Response
|
|
11
10
|
|
|
12
11
|
|
|
13
|
-
def _get_kwargs(
|
|
14
|
-
*,
|
|
15
|
-
data_partition_id: str,
|
|
16
|
-
) -> dict[str, Any]:
|
|
17
|
-
headers: dict[str, Any] = {}
|
|
18
|
-
headers["data-partition-id"] = data_partition_id
|
|
12
|
+
def _get_kwargs() -> dict[str, Any]:
|
|
19
13
|
|
|
20
14
|
_kwargs: dict[str, Any] = {
|
|
21
15
|
"method": "get",
|
|
22
16
|
"url": "/v3/info",
|
|
23
17
|
}
|
|
24
18
|
|
|
25
|
-
_kwargs["headers"] = headers
|
|
26
19
|
return _kwargs
|
|
27
20
|
|
|
28
21
|
|
|
29
22
|
def _parse_response(
|
|
30
23
|
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
31
|
-
) ->
|
|
24
|
+
) -> VersionInfo | None:
|
|
32
25
|
if response.status_code == 200:
|
|
33
26
|
response_200 = VersionInfo.from_dict(response.json())
|
|
34
27
|
|
|
35
28
|
return response_200
|
|
36
29
|
|
|
37
|
-
if response.status_code == 400:
|
|
38
|
-
response_400 = AppError.from_dict(response.json())
|
|
39
|
-
|
|
40
|
-
return response_400
|
|
41
|
-
|
|
42
|
-
if response.status_code == 403:
|
|
43
|
-
response_403 = AppError.from_dict(response.json())
|
|
44
|
-
|
|
45
|
-
return response_403
|
|
46
|
-
|
|
47
|
-
if response.status_code == 404:
|
|
48
|
-
response_404 = AppError.from_dict(response.json())
|
|
49
|
-
|
|
50
|
-
return response_404
|
|
51
|
-
|
|
52
30
|
if client.raise_on_unexpected_status:
|
|
53
31
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
54
32
|
else:
|
|
@@ -57,7 +35,7 @@ def _parse_response(
|
|
|
57
35
|
|
|
58
36
|
def _build_response(
|
|
59
37
|
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
60
|
-
) -> Response[
|
|
38
|
+
) -> Response[VersionInfo]:
|
|
61
39
|
return Response(
|
|
62
40
|
status_code=HTTPStatus(response.status_code),
|
|
63
41
|
content=response.content,
|
|
@@ -69,26 +47,20 @@ def _build_response(
|
|
|
69
47
|
def sync_detailed(
|
|
70
48
|
*,
|
|
71
49
|
client: AuthenticatedClient | Client,
|
|
72
|
-
|
|
73
|
-
) -> Response[AppError | VersionInfo]:
|
|
50
|
+
) -> Response[VersionInfo]:
|
|
74
51
|
"""info
|
|
75
52
|
|
|
76
53
|
For deployment available public `/info` endpoint, which provides build and git related information..
|
|
77
54
|
|
|
78
|
-
Args:
|
|
79
|
-
data_partition_id (str):
|
|
80
|
-
|
|
81
55
|
Raises:
|
|
82
56
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
83
57
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
84
58
|
|
|
85
59
|
Returns:
|
|
86
|
-
Response[
|
|
60
|
+
Response[VersionInfo]
|
|
87
61
|
"""
|
|
88
62
|
|
|
89
|
-
kwargs = _get_kwargs(
|
|
90
|
-
data_partition_id=data_partition_id,
|
|
91
|
-
)
|
|
63
|
+
kwargs = _get_kwargs()
|
|
92
64
|
|
|
93
65
|
response = client.get_httpx_client().request(
|
|
94
66
|
**kwargs,
|
|
@@ -100,52 +72,41 @@ def sync_detailed(
|
|
|
100
72
|
def sync(
|
|
101
73
|
*,
|
|
102
74
|
client: AuthenticatedClient | Client,
|
|
103
|
-
|
|
104
|
-
) -> AppError | VersionInfo | None:
|
|
75
|
+
) -> VersionInfo | None:
|
|
105
76
|
"""info
|
|
106
77
|
|
|
107
78
|
For deployment available public `/info` endpoint, which provides build and git related information..
|
|
108
79
|
|
|
109
|
-
Args:
|
|
110
|
-
data_partition_id (str):
|
|
111
|
-
|
|
112
80
|
Raises:
|
|
113
81
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
114
82
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
115
83
|
|
|
116
84
|
Returns:
|
|
117
|
-
|
|
85
|
+
VersionInfo
|
|
118
86
|
"""
|
|
119
87
|
|
|
120
88
|
return sync_detailed(
|
|
121
89
|
client=client,
|
|
122
|
-
data_partition_id=data_partition_id,
|
|
123
90
|
).parsed
|
|
124
91
|
|
|
125
92
|
|
|
126
93
|
async def asyncio_detailed(
|
|
127
94
|
*,
|
|
128
95
|
client: AuthenticatedClient | Client,
|
|
129
|
-
|
|
130
|
-
) -> Response[AppError | VersionInfo]:
|
|
96
|
+
) -> Response[VersionInfo]:
|
|
131
97
|
"""info
|
|
132
98
|
|
|
133
99
|
For deployment available public `/info` endpoint, which provides build and git related information..
|
|
134
100
|
|
|
135
|
-
Args:
|
|
136
|
-
data_partition_id (str):
|
|
137
|
-
|
|
138
101
|
Raises:
|
|
139
102
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
140
103
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
141
104
|
|
|
142
105
|
Returns:
|
|
143
|
-
Response[
|
|
106
|
+
Response[VersionInfo]
|
|
144
107
|
"""
|
|
145
108
|
|
|
146
|
-
kwargs = _get_kwargs(
|
|
147
|
-
data_partition_id=data_partition_id,
|
|
148
|
-
)
|
|
109
|
+
kwargs = _get_kwargs()
|
|
149
110
|
|
|
150
111
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
151
112
|
|
|
@@ -155,26 +116,21 @@ async def asyncio_detailed(
|
|
|
155
116
|
async def asyncio(
|
|
156
117
|
*,
|
|
157
118
|
client: AuthenticatedClient | Client,
|
|
158
|
-
|
|
159
|
-
) -> AppError | VersionInfo | None:
|
|
119
|
+
) -> VersionInfo | None:
|
|
160
120
|
"""info
|
|
161
121
|
|
|
162
122
|
For deployment available public `/info` endpoint, which provides build and git related information..
|
|
163
123
|
|
|
164
|
-
Args:
|
|
165
|
-
data_partition_id (str):
|
|
166
|
-
|
|
167
124
|
Raises:
|
|
168
125
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
169
126
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
170
127
|
|
|
171
128
|
Returns:
|
|
172
|
-
|
|
129
|
+
VersionInfo
|
|
173
130
|
"""
|
|
174
131
|
|
|
175
132
|
return (
|
|
176
133
|
await asyncio_detailed(
|
|
177
134
|
client=client,
|
|
178
|
-
data_partition_id=data_partition_id,
|
|
179
135
|
)
|
|
180
136
|
).parsed
|
|
@@ -9,6 +9,7 @@ from .coordinate_transformations_query import CoordinateTransformationsQuery
|
|
|
9
9
|
from .cursor_query_response import CursorQueryResponse
|
|
10
10
|
from .cursor_query_response_results_item import CursorQueryResponseResultsItem
|
|
11
11
|
from .datum import Datum
|
|
12
|
+
from .extent import Extent
|
|
12
13
|
from .feature_flag_state import FeatureFlagState
|
|
13
14
|
from .in_polygon_query import InPolygonQuery
|
|
14
15
|
from .point import Point
|
|
@@ -29,6 +30,7 @@ __all__ = (
|
|
|
29
30
|
"CursorQueryResponse",
|
|
30
31
|
"CursorQueryResponseResultsItem",
|
|
31
32
|
"Datum",
|
|
33
|
+
"Extent",
|
|
32
34
|
"FeatureFlagState",
|
|
33
35
|
"InPolygonQuery",
|
|
34
36
|
"Point",
|
|
@@ -11,6 +11,7 @@ from ..types import UNSET, Unset
|
|
|
11
11
|
if TYPE_CHECKING:
|
|
12
12
|
from ..models.base_crs import BaseCRS
|
|
13
13
|
from ..models.datum import Datum
|
|
14
|
+
from ..models.extent import Extent
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
T = TypeVar("T", bound="CoordinateReferenceSystemsQuery")
|
|
@@ -28,29 +29,29 @@ class CoordinateReferenceSystemsQuery:
|
|
|
28
29
|
kind (str | Unset): Corresponds to Kind field on CRS records
|
|
29
30
|
coordinate_reference_system_type (str | Unset): Type of CRS, e.g., BoundCRS, ProjectedCRS, GeodeticCRS,
|
|
30
31
|
VerticalCRS
|
|
31
|
-
return_bound_projected_and_projected_based_on_wgs_84 (
|
|
32
|
+
return_bound_projected_and_projected_based_on_wgs_84 (bool | Unset): Whether or not to only return bound
|
|
32
33
|
projected type or projected type based on wgs84. If true, it only returns CRS 1. with Kind as "BoundProjected"
|
|
33
34
|
or 2. with Kind as "projected" and BaseCRS.AuthorityCode.Code as 4326
|
|
34
|
-
return_bound_geographic_2d_and_wgs_84 (
|
|
35
|
+
return_bound_geographic_2d_and_wgs_84 (bool | Unset): Whether or not to only return bound geopraphic 2d type. If
|
|
35
36
|
true, it only returns CRS 1. with Kind as "BoundGeographic2D" or 2. with Kind as "geographic 2D" and Code as
|
|
36
37
|
4326 and CodeSpace as "EPSG"
|
|
37
38
|
base_crs (BaseCRS | Unset): BaseCRS
|
|
38
39
|
datum (Datum | Unset): Datum associated with a CRS.
|
|
39
|
-
extent (
|
|
40
|
-
entities with PreferredUsage.Extent.Description containing the search string will be returned. Wildcard is
|
|
41
|
-
supported.
|
|
40
|
+
extent (Extent | Unset): Description of extent. Corresponds to PreferredUsage.Extent.Description in the record.
|
|
41
|
+
All entities with PreferredUsage.Extent.Description containing the search string will be returned. Wildcard is
|
|
42
|
+
not supported.
|
|
42
43
|
persistable_reference_search (str | Unset): Corresponds to PersistableReference field on CRS records. All
|
|
43
44
|
entities with PersistableReference containing the search string will be returned.
|
|
44
45
|
horizontal_axis_unit_id (str | Unset): Corresponds to CoordinateSystem.HorizontalAxisUnitID field on CRS
|
|
45
46
|
records, e.g., "osdu:reference-data--UnitOfMeasure:dega:".
|
|
46
47
|
vertical_axis_unit_id (str | Unset): Corresponds to CoordinateSystem.VerticalAxisUnitID field on CRS records
|
|
47
|
-
latitude (
|
|
48
|
-
longitude (
|
|
49
|
-
include_deprecated (
|
|
48
|
+
latitude (float | Unset): Latitude point for searching on CRS bounding box
|
|
49
|
+
longitude (float | Unset): Longitude point for searching on CRS bounding box
|
|
50
|
+
include_deprecated (bool | Unset): Whether to return deprecated records marked with InactiveIndicator=true.
|
|
50
51
|
Default is false
|
|
51
|
-
offset (
|
|
52
|
-
limit (
|
|
53
|
-
return_all_fields (
|
|
52
|
+
offset (int | Unset): Corresponds to offset on search service
|
|
53
|
+
limit (int | Unset): Corresponds to limit on search service. Default is to return all found entities.
|
|
54
|
+
return_all_fields (bool | Unset): Whether to return all fields in the record. Default is false and only a subset
|
|
54
55
|
is returned
|
|
55
56
|
returned_fields (list[str] | Unset): Return all fields in the record
|
|
56
57
|
"""
|
|
@@ -61,20 +62,20 @@ class CoordinateReferenceSystemsQuery:
|
|
|
61
62
|
id: str | Unset = UNSET
|
|
62
63
|
kind: str | Unset = UNSET
|
|
63
64
|
coordinate_reference_system_type: str | Unset = UNSET
|
|
64
|
-
return_bound_projected_and_projected_based_on_wgs_84:
|
|
65
|
-
return_bound_geographic_2d_and_wgs_84:
|
|
65
|
+
return_bound_projected_and_projected_based_on_wgs_84: bool | Unset = UNSET
|
|
66
|
+
return_bound_geographic_2d_and_wgs_84: bool | Unset = UNSET
|
|
66
67
|
base_crs: BaseCRS | Unset = UNSET
|
|
67
68
|
datum: Datum | Unset = UNSET
|
|
68
|
-
extent:
|
|
69
|
+
extent: Extent | Unset = UNSET
|
|
69
70
|
persistable_reference_search: str | Unset = UNSET
|
|
70
71
|
horizontal_axis_unit_id: str | Unset = UNSET
|
|
71
72
|
vertical_axis_unit_id: str | Unset = UNSET
|
|
72
|
-
latitude:
|
|
73
|
-
longitude:
|
|
74
|
-
include_deprecated:
|
|
75
|
-
offset:
|
|
76
|
-
limit:
|
|
77
|
-
return_all_fields:
|
|
73
|
+
latitude: float | Unset = UNSET
|
|
74
|
+
longitude: float | Unset = UNSET
|
|
75
|
+
include_deprecated: bool | Unset = UNSET
|
|
76
|
+
offset: int | Unset = UNSET
|
|
77
|
+
limit: int | Unset = UNSET
|
|
78
|
+
return_all_fields: bool | Unset = UNSET
|
|
78
79
|
returned_fields: list[str] | Unset = UNSET
|
|
79
80
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
80
81
|
|
|
@@ -107,7 +108,9 @@ class CoordinateReferenceSystemsQuery:
|
|
|
107
108
|
if not isinstance(self.datum, Unset):
|
|
108
109
|
datum = self.datum.to_dict()
|
|
109
110
|
|
|
110
|
-
extent =
|
|
111
|
+
extent: dict[str, Any] | Unset = UNSET
|
|
112
|
+
if not isinstance(self.extent, Unset):
|
|
113
|
+
extent = self.extent.to_dict()
|
|
111
114
|
|
|
112
115
|
persistable_reference_search = self.persistable_reference_search
|
|
113
116
|
|
|
@@ -189,6 +192,7 @@ class CoordinateReferenceSystemsQuery:
|
|
|
189
192
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
190
193
|
from ..models.base_crs import BaseCRS # noqa: PLC0415
|
|
191
194
|
from ..models.datum import Datum # noqa: PLC0415
|
|
195
|
+
from ..models.extent import Extent # noqa: PLC0415
|
|
192
196
|
|
|
193
197
|
d = dict(src_dict)
|
|
194
198
|
code_space = d.pop("codeSpace", UNSET)
|
|
@@ -225,7 +229,12 @@ class CoordinateReferenceSystemsQuery:
|
|
|
225
229
|
else:
|
|
226
230
|
datum = Datum.from_dict(_datum)
|
|
227
231
|
|
|
228
|
-
|
|
232
|
+
_extent = d.pop("extent", UNSET)
|
|
233
|
+
extent: Extent | Unset
|
|
234
|
+
if isinstance(_extent, Unset):
|
|
235
|
+
extent = UNSET
|
|
236
|
+
else:
|
|
237
|
+
extent = Extent.from_dict(_extent)
|
|
229
238
|
|
|
230
239
|
persistable_reference_search = d.pop("persistableReferenceSearch", UNSET)
|
|
231
240
|
|
|
@@ -31,14 +31,14 @@ class CoordinateTransformationsQuery:
|
|
|
31
31
|
target_crs (str | Unset): Corresponds to TargetCRS.TargetCRSID (record id), e.g., "osdu:reference-data--
|
|
32
32
|
CoordinateReferenceSystem:Geographic2D:EPSG::4198:". As SourceCRS and TargetCRS are interchangeable, it will
|
|
33
33
|
also search SourceCRS.SourceCRSID
|
|
34
|
-
latitude (
|
|
34
|
+
latitude (float | Unset): Returns all entities for which the (Latitude, Longitude) is inside the Extent bounding
|
|
35
35
|
box. Must also provide longitude
|
|
36
|
-
longitude (
|
|
37
|
-
include_deprecated (
|
|
36
|
+
longitude (float | Unset): See latitude
|
|
37
|
+
include_deprecated (bool | Unset): Whether to return deprecated records marked with InactiveIndicator=true.
|
|
38
38
|
Default is false.
|
|
39
|
-
offset (
|
|
40
|
-
limit (
|
|
41
|
-
return_all_fields (
|
|
39
|
+
offset (int | Unset): Corresponds to offset on search service
|
|
40
|
+
limit (int | Unset): Corresponds to limit on search service. Default is to return all found entities.
|
|
41
|
+
return_all_fields (bool | Unset): Whether to return all fields in the record. Default is false and only a subset
|
|
42
42
|
is returned
|
|
43
43
|
returned_fields (list[str] | Unset): List of specific fields to return. Overridden when returnAllFields is true.
|
|
44
44
|
"""
|
|
@@ -50,12 +50,12 @@ class CoordinateTransformationsQuery:
|
|
|
50
50
|
kind: str | Unset = UNSET
|
|
51
51
|
source_crs: str | Unset = UNSET
|
|
52
52
|
target_crs: str | Unset = UNSET
|
|
53
|
-
latitude:
|
|
54
|
-
longitude:
|
|
55
|
-
include_deprecated:
|
|
56
|
-
offset:
|
|
57
|
-
limit:
|
|
58
|
-
return_all_fields:
|
|
53
|
+
latitude: float | Unset = UNSET
|
|
54
|
+
longitude: float | Unset = UNSET
|
|
55
|
+
include_deprecated: bool | Unset = UNSET
|
|
56
|
+
offset: int | Unset = UNSET
|
|
57
|
+
limit: int | Unset = UNSET
|
|
58
|
+
return_all_fields: bool | Unset = UNSET
|
|
59
59
|
returned_fields: list[str] | Unset = UNSET
|
|
60
60
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
61
61
|
|