github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/python/docs/Commit.md (about) 1 # Commit 2 3 4 ## Properties 5 6 Name | Type | Description | Notes 7 ------------ | ------------- | ------------- | ------------- 8 **id** | **str** | | 9 **parents** | **List[str]** | | 10 **committer** | **str** | | 11 **message** | **str** | | 12 **creation_date** | **int** | Unix Epoch in seconds | 13 **meta_range_id** | **str** | | 14 **metadata** | **Dict[str, str]** | | [optional] 15 **generation** | **int** | | [optional] 16 **version** | **int** | | [optional] 17 18 ## Example 19 20 ```python 21 from lakefs_sdk.models.commit import Commit 22 23 # TODO update the JSON string below 24 json = "{}" 25 # create an instance of Commit from a JSON string 26 commit_instance = Commit.from_json(json) 27 # print the JSON string representation of the object 28 print Commit.to_json() 29 30 # convert the object into a dict 31 commit_dict = commit_instance.to_dict() 32 # create an instance of Commit from a dict 33 commit_form_dict = commit.from_dict(commit_dict) 34 ``` 35 [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 36 37