evo-objects 0.9.1__tar.gz → 0.10.0__tar.gz

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.
Files changed (49) hide show
  1. {evo_objects-0.9.1 → evo_objects-0.10.0}/PKG-INFO +1 -1
  2. {evo_objects-0.9.1 → evo_objects-0.10.0}/pyproject.toml +1 -1
  3. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/client/api_client.py +7 -2
  4. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/client/object_client.py +9 -1
  5. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/client/parse.py +2 -0
  6. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/data.py +17 -0
  7. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/endpoints/__init__.py +3 -1
  8. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/endpoints/api/data_api.py +3 -1
  9. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/endpoints/api/metadata_api.py +3 -1
  10. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/endpoints/api/objects_api.py +26 -13
  11. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/endpoints/api/stages_api.py +3 -1
  12. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/endpoints/models.py +32 -1
  13. {evo_objects-0.9.1 → evo_objects-0.10.0}/.gitignore +0 -0
  14. {evo_objects-0.9.1 → evo_objects-0.10.0}/LICENSE.md +0 -0
  15. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/__init__.py +0 -0
  16. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/_model_config.py +0 -0
  17. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/client/__init__.py +0 -0
  18. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/endpoints/api/__init__.py +0 -0
  19. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/exceptions.py +0 -0
  20. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/io.py +0 -0
  21. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/parquet/__init__.py +0 -0
  22. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/parquet/loader.py +0 -0
  23. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/py.typed +0 -0
  24. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/typed/__init__.py +0 -0
  25. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/typed/_data.py +0 -0
  26. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/typed/_downhole.py +0 -0
  27. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/typed/_grid.py +0 -0
  28. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/typed/_model.py +0 -0
  29. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/typed/_prefetch.py +0 -0
  30. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/typed/_utils.py +0 -0
  31. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/typed/attributes.py +0 -0
  32. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/typed/base.py +0 -0
  33. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/typed/block_model_ref.py +0 -0
  34. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/typed/downhole_collection.py +0 -0
  35. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/typed/downhole_intervals.py +0 -0
  36. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/typed/exceptions.py +0 -0
  37. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/typed/pointset.py +0 -0
  38. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/typed/regular_grid.py +0 -0
  39. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/typed/regular_masked_grid.py +0 -0
  40. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/typed/spatial.py +0 -0
  41. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/typed/tensor_grid.py +0 -0
  42. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/typed/types.py +0 -0
  43. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/typed/variogram.py +0 -0
  44. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/utils/__init__.py +0 -0
  45. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/utils/data.py +0 -0
  46. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/utils/downhole.py +0 -0
  47. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/utils/table_formats.py +0 -0
  48. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/utils/tables.py +0 -0
  49. {evo_objects-0.9.1 → evo_objects-0.10.0}/src/evo/objects/utils/types.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: evo-objects
3
- Version: 0.9.1
3
+ Version: 0.10.0
4
4
  Summary: Python SDK for using the Seequent Evo Geoscience Object API
5
5
  Project-URL: Source, https://github.com/SeequentEvo/evo-python-sdk
6
6
  Project-URL: Tracker, https://github.com/SeequentEvo/evo-python-sdk/issues
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "evo-objects"
3
3
  description = "Python SDK for using the Seequent Evo Geoscience Object API"
4
- version = "0.9.1"
4
+ version = "0.10.0"
5
5
  requires-python = ">=3.11.5"
6
6
  license-files = ["LICENSE.md"]
7
7
  dynamic = ["readme"]
@@ -449,7 +449,7 @@ class ObjectAPIClient(BaseAPIClient):
449
449
  :param request_timeout: Timeout setting for this request. If one number is provided, it will be the
450
450
  total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
451
451
 
452
- :return: A tuple containing the object metadata and a data model of the requested geoscience object.
452
+ :return: A DownloadedObject containing the metadata and access methods for the requested geoscience object.
453
453
  """
454
454
  reference = ObjectReference.new(environment=self._environment, object_path=path, version_id=version)
455
455
  return await DownloadedObject.from_reference(
@@ -464,6 +464,7 @@ class ObjectAPIClient(BaseAPIClient):
464
464
  object_id: UUID,
465
465
  version: str | None = None,
466
466
  request_timeout: int | float | tuple[int | float, int | float] | None = None,
467
+ deleted: bool = False,
467
468
  ) -> DownloadedObject:
468
469
  """Download a geoscience object definition (by UUID).
469
470
 
@@ -472,8 +473,11 @@ class ObjectAPIClient(BaseAPIClient):
472
473
  default.
473
474
  :param request_timeout: Timeout setting for this request. If one number is provided, it will be the
474
475
  total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
476
+ :param deleted: When true, include deleted objects, including objects in deleted folders. Active objects are
477
+ still returned. Use `metadata.is_deleted` to check whether the downloaded object is deleted. By default,
478
+ downloading a deleted object raises a `GoneException`.
475
479
 
476
- :return: A tuple containing the object metadata and a data model of the requested geoscience object.
480
+ :return: A DownloadedObject containing the metadata and access methods for the requested geoscience object.
477
481
  """
478
482
  reference = ObjectReference.new(environment=self._environment, object_id=object_id, version_id=version)
479
483
  return await DownloadedObject.from_reference(
@@ -481,6 +485,7 @@ class ObjectAPIClient(BaseAPIClient):
481
485
  reference=reference,
482
486
  cache=self._cache,
483
487
  request_timeout=request_timeout,
488
+ deleted=deleted,
484
489
  )
485
490
 
486
491
  async def get_latest_object_versions(
@@ -109,6 +109,7 @@ class DownloadedObject(IContext):
109
109
  reference: ObjectReference | str,
110
110
  cache: ICache | None = None,
111
111
  request_timeout: int | float | tuple[int | float, int | float] | None = None,
112
+ deleted: bool = False,
112
113
  ) -> DownloadedObject:
113
114
  """Download a geoscience object from the service, given an object reference.
114
115
 
@@ -117,8 +118,11 @@ class DownloadedObject(IContext):
117
118
  a reference.
118
119
  :param cache: An optional cache to use for data downloads.
119
120
  :param request_timeout: An optional timeout to use for API requests. See evo.common.APIConnector for details.
121
+ :param deleted: When true, deleted objects can also be downloaded, including objects in deleted folders.
122
+ Active objects are still returned. Only supported for references by object ID.
120
123
 
121
- :raises ValueError: If the reference is invalid, or if the connector base URL does not match the reference hub URL.
124
+ :raises ValueError: If the reference is invalid, if the connector base URL does not match the reference hub
125
+ URL, or if `deleted` is true for a reference by object path.
122
126
  """
123
127
  ref = ObjectReference(reference) # Parse the reference if it's a string
124
128
 
@@ -141,8 +145,12 @@ class DownloadedObject(IContext):
141
145
  raise ValueError("Only one of object_id or object_path should be provided")
142
146
 
143
147
  if ref.object_id is not None:
148
+ if deleted:
149
+ request_kwargs["deleted"] = True
144
150
  response = await api.get_object_by_id(object_id=ref.object_id, **request_kwargs)
145
151
  elif ref.object_path is not None:
152
+ if deleted:
153
+ raise ValueError("Downloading deleted objects is only supported by object ID")
146
154
  response = await api.get_object(objects_path=ref.object_path, **request_kwargs)
147
155
  else:
148
156
  raise ValueError("Either object_id or object_path must be provided")
@@ -138,6 +138,8 @@ def object_metadata(
138
138
  schema_id=schema(schema_id),
139
139
  version_id=model.version_id,
140
140
  stage=stage_or_none(model.stage),
141
+ deleted_at=model.deleted_at,
142
+ deleted_by=user_or_none(model.deleted_by),
141
143
  )
142
144
 
143
145
 
@@ -178,6 +178,23 @@ class ObjectMetadata(ResourceMetadata):
178
178
  stage: Stage | None
179
179
  """The stage of the object, if available."""
180
180
 
181
+ deleted_at: datetime | None = None
182
+ """The date and time when the object was deleted, or None if the object is not deleted.
183
+
184
+ For an object inside a deleted folder, this is the time the folder was deleted.
185
+ """
186
+
187
+ deleted_by: ServiceUser | None = None
188
+ """The user who deleted the object, or None if the object is not deleted.
189
+
190
+ For an object inside a deleted folder, this is the user who deleted the folder.
191
+ """
192
+
193
+ @property
194
+ def is_deleted(self) -> bool:
195
+ """Whether the object is deleted, either individually or through deletion of its parent folder."""
196
+ return self.deleted_at is not None
197
+
181
198
  @property
182
199
  def path(self) -> str:
183
200
  """The full path of the object, formed by joining the parent and name, separated by a slash ('/')."""
@@ -17,11 +17,13 @@ The Geoscience Object API enables technological integrations at the object level
17
17
 
18
18
  A Geoscience Object is a data structure that represents a concrete geological, geotechnical, or geophysical concept. Geoscience Objects can be referenced by their UUID or by a user-defined object path.
19
19
 
20
+ Objects are organised in workspace folders managed by the Folders API. Moving or renaming a folder changes the contained objects' paths. Deleting or restoring a folder also affects access to its contained objects.
21
+
20
22
  For more information on using the Geoscience Object API, see the [Geoscience Object API overview](/docs/guides/objects), or the API references here.
21
23
 
22
24
 
23
25
  This code is generated from the OpenAPI specification for Geoscience Object API.
24
- API version: 1.26.0
26
+ API version: 1.26.1
25
27
  """
26
28
 
27
29
  # Import endpoint apis.
@@ -17,11 +17,13 @@ The Geoscience Object API enables technological integrations at the object level
17
17
 
18
18
  A Geoscience Object is a data structure that represents a concrete geological, geotechnical, or geophysical concept. Geoscience Objects can be referenced by their UUID or by a user-defined object path.
19
19
 
20
+ Objects are organised in workspace folders managed by the Folders API. Moving or renaming a folder changes the contained objects' paths. Deleting or restoring a folder also affects access to its contained objects.
21
+
20
22
  For more information on using the Geoscience Object API, see the [Geoscience Object API overview](/docs/guides/objects), or the API references here.
21
23
 
22
24
 
23
25
  This code is generated from the OpenAPI specification for Geoscience Object API.
24
- API version: 1.26.0
26
+ API version: 1.26.1
25
27
  """
26
28
 
27
29
  from evo.common.connector import APIConnector
@@ -17,11 +17,13 @@ The Geoscience Object API enables technological integrations at the object level
17
17
 
18
18
  A Geoscience Object is a data structure that represents a concrete geological, geotechnical, or geophysical concept. Geoscience Objects can be referenced by their UUID or by a user-defined object path.
19
19
 
20
+ Objects are organised in workspace folders managed by the Folders API. Moving or renaming a folder changes the contained objects' paths. Deleting or restoring a folder also affects access to its contained objects.
21
+
20
22
  For more information on using the Geoscience Object API, see the [Geoscience Object API overview](/docs/guides/objects), or the API references here.
21
23
 
22
24
 
23
25
  This code is generated from the OpenAPI specification for Geoscience Object API.
24
- API version: 1.26.0
26
+ API version: 1.26.1
25
27
  """
26
28
 
27
29
  from evo.common.connector import APIConnector
@@ -17,11 +17,13 @@ The Geoscience Object API enables technological integrations at the object level
17
17
 
18
18
  A Geoscience Object is a data structure that represents a concrete geological, geotechnical, or geophysical concept. Geoscience Objects can be referenced by their UUID or by a user-defined object path.
19
19
 
20
+ Objects are organised in workspace folders managed by the Folders API. Moving or renaming a folder changes the contained objects' paths. Deleting or restoring a folder also affects access to its contained objects.
21
+
20
22
  For more information on using the Geoscience Object API, see the [Geoscience Object API overview](/docs/guides/objects), or the API references here.
21
23
 
22
24
 
23
25
  This code is generated from the OpenAPI specification for Geoscience Object API.
24
- API version: 1.26.0
26
+ API version: 1.26.1
25
27
  """
26
28
 
27
29
  from evo.common.connector import APIConnector
@@ -57,7 +59,7 @@ class ObjectsApi:
57
59
  ) -> EmptyResponse:
58
60
  """Soft delete a geoscience object by path
59
61
 
60
- Soft delete a geoscience object by path. This endpoint will mark the object as deleted but won't actually remove it from the database.
62
+ Soft delete a geoscience object by path.
61
63
 
62
64
  :param org_id: The customer's organisation ID
63
65
  Format: `uuid`
@@ -123,7 +125,7 @@ class ObjectsApi:
123
125
  ) -> EmptyResponse:
124
126
  """Soft delete a geoscience object
125
127
 
126
- Delete a geoscience object by UUID. Deleting an object to this endpoint will soft delete the existing object with a corresponding UUID. Note that the value of the `uuid` field in the object must match the value in the URL path.
128
+ Delete a geoscience object by UUID. An object already deleted is left unchanged. Restore an individual object using the update-by-UUID endpoint with `deleted=false`.
127
129
 
128
130
  :param object_id: UUID of a geoscience object.
129
131
  Format: `uuid`
@@ -193,7 +195,7 @@ class ObjectsApi:
193
195
  ) -> GetObjectResponse: # noqa: F405
194
196
  """Download a geoscience object
195
197
 
196
- Download a geoscience object from the provided path. If required, the object can be compressed, currently gzip compression is supported. To receive a compressed payload set header `Accept-Encoding: gzip`.
198
+ Download a geoscience object using its current path. To retrieve a deleted object, including one in a deleted folder, use the download-by-UUID endpoint with `deleted=true`. If required, the object can be compressed, currently only gzip compression is supported. To receive a compressed payload set header `Accept-Encoding: gzip`.
197
199
 
198
200
  :param org_id: The customer's organisation ID
199
201
  Format: `uuid`
@@ -282,7 +284,7 @@ class ObjectsApi:
282
284
  ) -> GetObjectResponse: # noqa: F405
283
285
  """Download a geoscience object by UUID
284
286
 
285
- Download a geoscience object with the provided UUID. If required, the object can be compressed, currently gzip compression is supported. To receive a compressed payload set header `Accept-Encoding: gzip`.
287
+ Download a geoscience object with the provided UUID. Use `deleted=true` to also retrieve deleted objects, including those in deleted folders. If required, the object can be compressed, currently only gzip compression is supported. To receive a compressed payload set header `Accept-Encoding: gzip`.
286
288
 
287
289
  :param object_id: UUID of a geoscience object.
288
290
  Format: `uuid`
@@ -297,7 +299,7 @@ class ObjectsApi:
297
299
  Example: `'1746593470905878783'`
298
300
  :param include_versions: (optional) Whether to return all versions of the object
299
301
  Example: `False`
300
- :param deleted: (optional) When true, only objects that have been deleted will be returned
302
+ :param deleted: (optional) When true, also allows retrieval of an object that was deleted individually or implicitly through deletion of its parent folder. Active objects can still be returned. Defaults to false.
301
303
  Example: `True`
302
304
  :param if_none_match: (optional) Optional header used to check if there are any more recent versions of an object than the one specified. Returns 304 (Not Modified) if there are no newer versions.
303
305
  Example: `'1706583776404684724'`
@@ -372,7 +374,7 @@ class ObjectsApi:
372
374
  ) -> list[LatestObjectVersionIdResponse]: # noqa: F405
373
375
  """List the latest version IDs for geoscience objects
374
376
 
375
- Request to fetch the latest version IDs for a collection of geoscience objects (maximum of 500). The request body must only contain a list of UUIDs of the objects to check. The response will contain a list of objects with their UUIDs and the latest version ID. If the object from a given UUID does not exist or has been deleted, the request will be successful, but the version ID will be `null`.
377
+ Request to fetch the latest version IDs for a collection of geoscience objects (maximum of 500). The request body must only contain a list of UUIDs of the objects to check. The response will contain a list of objects with their UUIDs and the latest version ID. If the object from a given UUID does not exist or has been deleted, including implicitly through deletion of its parent folder, the request will be successful, but the version ID will be `null`.
376
378
 
377
379
  :param org_id: The customer's organisation ID
378
380
  Format: `uuid`
@@ -444,7 +446,7 @@ class ObjectsApi:
444
446
  ) -> ListVersionsResponse: # noqa: F405
445
447
  """Gets specified versions of a Geoscience Object.
446
448
 
447
- List specific versions of a Geoscience Object. The response will include all the versions specified in `version_ids` field of the request body. If one or more of the version ids are not found for the geoscience object a 404 error will be returned.
449
+ List specific versions of a Geoscience Object. The response will include all the versions specified in `version_ids` field of the request body. If one or more of the version IDs are not found for the geoscience object a 404 error will be returned. Download links use the object's current path.
448
450
 
449
451
  :param object_id: UUID of a geoscience object.
450
452
  Format: `uuid`
@@ -513,6 +515,8 @@ class ObjectsApi:
513
515
  workspace_id: str,
514
516
  limit: int | None = None,
515
517
  offset: int | None = None,
518
+ folder_id: str | None = None,
519
+ folder_depth: int | None = None,
516
520
  deleted: bool | None = None,
517
521
  order_by: str | None = None,
518
522
  author: list[str] | None = None,
@@ -530,7 +534,7 @@ class ObjectsApi:
530
534
  ) -> ListObjectsResponse: # noqa: F405
531
535
  """List geoscience objects
532
536
 
533
- List geoscience objects. The response will include all geoscience objects matching the given filters.The geoscience objects will be the latest version of the object. If there are no objects matching the given filters, an empty list is returned.
537
+ The response will include all geoscience objects matching the given filters. The geoscience objects will be the latest versions of each object. If there are no objects matching the given filters, an empty list is returned.
534
538
 
535
539
  :param org_id: The customer's organisation ID
536
540
  Format: `uuid`
@@ -542,7 +546,12 @@ class ObjectsApi:
542
546
  Example: `5000`
543
547
  :param offset: (optional) Number of results to skip before returning `limit` number of results.
544
548
  Example: `0`
545
- :param deleted: (optional) When true, only objects that have been deleted will be returned
549
+ :param folder_id: (optional) The UUID of a folder in this workspace. Returns objects in that folder and its descendants, subject to `folder_depth` and the other filters. Omit to search the whole workspace. The folder must match the state selected by `deleted`: active by default or false, or deleted when true. An unknown folder or a mismatched deletion state returns no objects.
550
+ Format: `uuid`
551
+ Example: `'00000000-0000-0000-0000-000000000000'`
552
+ :param folder_depth: (optional) Maximum descendant folder levels to include beneath `folder_id`. Use `0` for objects directly in the selected folder, `1` to also include its immediate child folders, or omit for all descendant levels. Requires `folder_id`; supplying a depth alone returns 400.
553
+ Example: `0`
554
+ :param deleted: (optional) Defaults to false for active objects. When true, returns only deleted objects, including objects implicitly deleted because their parent folder was deleted.
546
555
  Example: `True`
547
556
  :param order_by: (optional) A comma separated list of fields to order by, where the default sort order is ascending. To specify the sort order, prefix the field name with either `asc:` or `desc:` for ascending or descending respectively. Field names can either be arbitrary, representing a field nested inside the data, or one of the following known sort fields: `author`, `created_at`, `created_by`, `deleted_at`, `modified_at`, `modified_by`, `object_name`
548
557
  Example: `'object_name,desc:created_by,asc:object.a.b.c'`
@@ -595,6 +604,10 @@ class ObjectsApi:
595
604
  _query_params["limit"] = limit
596
605
  if offset is not None:
597
606
  _query_params["offset"] = offset
607
+ if folder_id is not None:
608
+ _query_params["folder_id"] = folder_id
609
+ if folder_depth is not None:
610
+ _query_params["folder_depth"] = folder_depth
598
611
  if deleted is not None:
599
612
  _query_params["deleted"] = deleted
600
613
  if order_by is not None:
@@ -686,7 +699,7 @@ class ObjectsApi:
686
699
  Example: `0`
687
700
  :param limit: (optional) Max number of results per page.
688
701
  Example: `5000`
689
- :param deleted: (optional) When true, only objects that have been deleted will be returned
702
+ :param deleted: (optional) Defaults to false for active objects. When true, returns only deleted objects, including objects implicitly deleted because their parent folder was deleted.
690
703
  Example: `True`
691
704
  :param order_by: (optional) A comma separated list of fields to order by, where the default sort order is ascending. To specify the sort order, prefix the field name with either `asc:` or `desc:` for ascending or descending respectively. Field names can either be arbitrary, representing a field nested inside the data, or one of the following known sort fields: `created_at`, `created_by`, `modified_at`, `modified_by`, `object_name`, `deleted_at`
692
705
  Example: `'object_name,desc:created_by,asc:object.a.b.c'`
@@ -881,7 +894,7 @@ class ObjectsApi:
881
894
  ) -> PostObjectResponse: # noqa: F405
882
895
  """Create a geoscience object
883
896
 
884
- Create or update a geoscience object. Upload a geoscience object based on the schema element. Geoscience objects can be stored hierarchically, by providing the path to the object, including the object name, in the request URL. A detailed list of the available object schemas can be found in Seequent's [evo-schemas](https://github.com/seequentevo/evo-schemas) repository. The submitted properties will be validated against the specified schema properties. To create a new object, upload it to a unique path with the UUID field set to `null`. The response will contain a reflection of the uploaded object with a newly assigned object ID. This can be used for future requests to update the object. If a version of the geoscience object already exists at the specified path a new version will be created. To move or rename an existing object, simply upload a new version of it (with the same UUID) to a new, unique path or file name. Note that every upload of an object is considered a new version, even if no changes have been made. If required, the object should be compressed, currently gzip compression is supported. Set header `Content-Encoding: gzip` if the content is compressed and `Accept-Encoding: gzip` to receive compressed content.
897
+ Create or update a geoscience object. Upload a geoscience object based on the schema element. Geoscience objects can be stored hierarchically, by providing the path to the object, including the object name, in the request URL. Folders in the path that do not already exist are created automatically. An object name without parent segments places the object in the workspace root folder. A detailed list of the available object schemas can be found in Seequent's [evo-schemas](https://github.com/seequentevo/evo-schemas) repository. The submitted properties will be validated against the specified schema properties. To create a new object, upload it to a unique path with the UUID field set to `null`. The response will contain a reflection of the uploaded object with a newly assigned object ID. This can be used for future requests to update the object. If a version of the geoscience object already exists at the specified path a new version will be created. An existing object whose parent folder is deleted must be restored before it can be updated or moved. Note that every upload of an object is considered a new version, even if no changes have been made. If required, the object should be compressed, currently gzip compression is supported. Set header `Content-Encoding: gzip` if the content is compressed and `Accept-Encoding: gzip` to receive compressed content.
885
898
 
886
899
  :param org_id: The customer's organisation ID
887
900
  Format: `uuid`
@@ -960,7 +973,7 @@ class ObjectsApi:
960
973
  ) -> PostObjectResponse: # noqa: F405
961
974
  """Update a geoscience object
962
975
 
963
- Update or restore a geoscience object by UUID. Uploading an object to this endpoint will update (replace, i.e. no partial updates) the existing object with a corresponding UUID. If the object was previously deleted, and the `deleted` parameter is set to `false`, this operation will attempt to restore the object. You cannot provide an object body when attempting to restore an object. Note that the value of the `uuid` field in the object must match the value in the URL path. New objects must be uploaded by path.
976
+ Update or restore a geoscience object by UUID. Uploading an object to this endpoint will update (replace, i.e. no partial updates) the existing object with a corresponding UUID. Note that the value of the `uuid` field in the object must match the value in the URL path. New objects must be uploaded by path. To restore an object that was previously deleted, send a request with the `deleted` parameter set to `false` and no message body. This operation will attempt to restore the object to its original path. Folders at the original path are recreated if missing. If the original path is occupied, Goose appends a number to the filename (for example, `object.json` becomes `object(1).json`). For an object implicitly deleted through its parent folder, a name conflict instead returns 409.
964
977
 
965
978
  :param object_id: UUID of a geoscience object.
966
979
  Format: `uuid`
@@ -17,11 +17,13 @@ The Geoscience Object API enables technological integrations at the object level
17
17
 
18
18
  A Geoscience Object is a data structure that represents a concrete geological, geotechnical, or geophysical concept. Geoscience Objects can be referenced by their UUID or by a user-defined object path.
19
19
 
20
+ Objects are organised in workspace folders managed by the Folders API. Moving or renaming a folder changes the contained objects' paths. Deleting or restoring a folder also affects access to its contained objects.
21
+
20
22
  For more information on using the Geoscience Object API, see the [Geoscience Object API overview](/docs/guides/objects), or the API references here.
21
23
 
22
24
 
23
25
  This code is generated from the OpenAPI specification for Geoscience Object API.
24
- API version: 1.26.0
26
+ API version: 1.26.1
25
27
  """
26
28
 
27
29
  from evo.common.connector import APIConnector
@@ -140,7 +140,8 @@ class MoveObjectRequest(CustomBaseModel):
140
140
  Does not contain the name of the object itself.
141
141
  Folder names are 1-100 UTF-8 characters with a total max folder_path length of 1520 characters.
142
142
  Will create all intermediate folders if they do not exist.
143
- If `folder_id` is also provided then `folder_path` must match the path of the folder specified by `folder_id`.
143
+ If `folder_id` is also provided then `folder_path` must match its path, ignoring case;
144
+ no folders are created in that case.
144
145
  Omit both `folder_id` and `folder_path` to keep the current folder.
145
146
  """
146
147
  name: Annotated[StrictStr | None, Field(examples=["grid_collection.json"], title="Name")] = None
@@ -240,6 +241,9 @@ class GetObjectResponse(CustomBaseModel):
240
241
  deleted_by: User | None = None
241
242
  etag: Annotated[StrictStr, Field(title="Etag")]
242
243
  folder_id: Annotated[UUID | None, Field(title="Folder Id")] = None
244
+ """
245
+ The UUID of the object's containing folder in this workspace. Use it with the Folder API to retrieve folder details. For objects deleted explicitly in the geoscience object service, this is the workspace's recycle-bin root ID, not the folder identified by the retained object path.
246
+ """
243
247
  geojson_bounding_box: BoundingBox | None = None
244
248
  geojson_bounding_box_from_workspace_crs: Annotated[
245
249
  StrictBool, Field(title="Geojson Bounding Box From Workspace Crs")
@@ -253,6 +257,9 @@ class GetObjectResponse(CustomBaseModel):
253
257
  object: GeoscienceObject
254
258
  object_id: Annotated[UUID, Field(title="Object Id")]
255
259
  object_path: Annotated[StrictStr | None, Field(title="Object Path")] = None
260
+ """
261
+ The object's path relative to the workspace root, including its name and without a leading '/'. For active objects, this reflects the current parent folder and object name, even for historical versions. Individually deleted objects retain their last active path for restoration.
262
+ """
256
263
  stage: StageResponse | None = None
257
264
  version_id: Annotated[StrictStr, Field(title="Version Id")]
258
265
  versions: Annotated[list[GeoscienceObjectVersion] | None, Field(title="Versions")] = None
@@ -273,6 +280,9 @@ class ListedObject(CustomBaseModel):
273
280
  deleted_by: User | None = None
274
281
  etag: Annotated[StrictStr, Field(title="Etag")]
275
282
  folder_id: Annotated[UUID | None, Field(title="Folder Id")] = None
283
+ """
284
+ The UUID of the object's containing folder in this workspace. Use it with the Folder API to retrieve folder details. For objects deleted explicitly in the geoscience object service, this is the workspace's recycle-bin root ID, not the folder identified by the retained object path.
285
+ """
276
286
  geojson_bounding_box: BoundingBox | None = None
277
287
  geojson_bounding_box_from_workspace_crs: Annotated[
278
288
  StrictBool, Field(title="Geojson Bounding Box From Workspace Crs")
@@ -286,6 +296,9 @@ class ListedObject(CustomBaseModel):
286
296
  name: Annotated[StrictStr, Field(title="Name")]
287
297
  object_id: Annotated[UUID, Field(title="Object Id")]
288
298
  path: Annotated[StrictStr, Field(title="Path")]
299
+ """
300
+ The object's containing folder path, with leading and trailing slashes, or '/' for the workspace root. The object name is returned separately in `name`. Reflects the current folder hierarchy for active objects, or the last active path for deleted objects.
301
+ """
289
302
  schema_: Annotated[StrictStr, Field(alias="schema", title="Schema")]
290
303
  """
291
304
  The geoscience object schema.
@@ -301,6 +314,9 @@ class MoveObjectResponse(CustomBaseModel):
301
314
  deleted_by: User | None = None
302
315
  etag: Annotated[StrictStr, Field(title="Etag")]
303
316
  folder_id: Annotated[UUID | None, Field(title="Folder Id")] = None
317
+ """
318
+ The UUID of the object's containing folder in this workspace. Use it with the Folder API to retrieve folder details. For objects deleted explicitly in the geoscience object service, this is the workspace's recycle-bin root ID, not the folder identified by the retained object path.
319
+ """
304
320
  geojson_bounding_box: BoundingBox | None = None
305
321
  geojson_bounding_box_from_workspace_crs: Annotated[
306
322
  StrictBool, Field(title="Geojson Bounding Box From Workspace Crs")
@@ -314,6 +330,9 @@ class MoveObjectResponse(CustomBaseModel):
314
330
  object: GeoscienceObject
315
331
  object_id: Annotated[UUID, Field(title="Object Id")]
316
332
  object_path: Annotated[StrictStr | None, Field(title="Object Path")] = None
333
+ """
334
+ The object's path relative to the workspace root, including its name and without a leading '/'. For active objects, this reflects the current parent folder and object name, even for historical versions. Individually deleted objects retain their last active path for restoration.
335
+ """
317
336
  stage: StageResponse | None = None
318
337
  version_id: Annotated[StrictStr, Field(title="Version Id")]
319
338
 
@@ -324,6 +343,9 @@ class OrgListedObject(CustomBaseModel):
324
343
  deleted_at: Annotated[datetime | None, Field(title="Deleted At")] = None
325
344
  deleted_by: User | None = None
326
345
  folder_id: Annotated[UUID | None, Field(title="Folder Id")] = None
346
+ """
347
+ The UUID of the object's containing folder in this workspace. Use it with the Folder API to retrieve folder details. For objects deleted explicitly in the geoscience object service, this is the workspace's recycle-bin root ID, not the folder identified by the retained object path.
348
+ """
327
349
  geojson_bounding_box: BoundingBox | None = None
328
350
  geojson_bounding_box_from_workspace_crs: Annotated[
329
351
  StrictBool, Field(title="Geojson Bounding Box From Workspace Crs")
@@ -336,6 +358,9 @@ class OrgListedObject(CustomBaseModel):
336
358
  name: Annotated[StrictStr, Field(title="Name")]
337
359
  object_id: Annotated[UUID, Field(title="Object Id")]
338
360
  path: Annotated[StrictStr, Field(title="Path")]
361
+ """
362
+ The object's containing folder path, with leading and trailing slashes, or '/' for the workspace root. The object name is returned separately in `name`. Reflects the current folder hierarchy for active objects, or the last active path for deleted objects.
363
+ """
339
364
  schema_: Annotated[StrictStr, Field(alias="schema", title="Schema")]
340
365
  stage: StageResponse | None = None
341
366
  workspace_access: RoleEnum | None = None
@@ -350,6 +375,9 @@ class PostObjectResponse(CustomBaseModel):
350
375
  deleted_by: User | None = None
351
376
  etag: Annotated[StrictStr, Field(title="Etag")]
352
377
  folder_id: Annotated[UUID | None, Field(title="Folder Id")] = None
378
+ """
379
+ The UUID of the object's containing folder in this workspace. Use it with the Folder API to retrieve folder details. For objects deleted explicitly in the geoscience object service, this is the workspace's recycle-bin root ID, not the folder identified by the retained object path.
380
+ """
353
381
  geojson_bounding_box: BoundingBox | None = None
354
382
  geojson_bounding_box_from_workspace_crs: Annotated[
355
383
  StrictBool, Field(title="Geojson Bounding Box From Workspace Crs")
@@ -363,6 +391,9 @@ class PostObjectResponse(CustomBaseModel):
363
391
  object: GeoscienceObject
364
392
  object_id: Annotated[UUID | None, Field(title="Object Id")] = None
365
393
  object_path: Annotated[StrictStr | None, Field(title="Object Path")] = None
394
+ """
395
+ The object's path relative to the workspace root, including its name and without a leading '/'. For active objects, this reflects the current parent folder and object name, even for historical versions. Individually deleted objects retain their last active path for restoration.
396
+ """
366
397
  stage: StageResponse | None = None
367
398
  version_id: Annotated[StrictStr, Field(title="Version Id")]
368
399
 
File without changes
File without changes