github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/python/docs/ImportLocation.md (about) 1 # ImportLocation 2 3 4 ## Properties 5 6 Name | Type | Description | Notes 7 ------------ | ------------- | ------------- | ------------- 8 **type** | **str** | Path type, can either be 'common_prefix' or 'object' | 9 **path** | **str** | A source location to a 'common_prefix' or to a single object. Must match the lakeFS installation blockstore type. | 10 **destination** | **str** | Destination for the imported objects on the branch. Must be a relative path to the branch. If the type is an 'object', the destination is the exact object name under the branch. If the type is a 'common_prefix', the destination is the prefix under the branch. | 11 12 ## Example 13 14 ```python 15 from lakefs_sdk.models.import_location import ImportLocation 16 17 # TODO update the JSON string below 18 json = "{}" 19 # create an instance of ImportLocation from a JSON string 20 import_location_instance = ImportLocation.from_json(json) 21 # print the JSON string representation of the object 22 print ImportLocation.to_json() 23 24 # convert the object into a dict 25 import_location_dict = import_location_instance.to_dict() 26 # create an instance of ImportLocation from a dict 27 import_location_form_dict = import_location.from_dict(import_location_dict) 28 ``` 29 [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 30 31