github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/python/docs/RevertCreation.md (about) 1 # RevertCreation 2 3 4 ## Properties 5 6 Name | Type | Description | Notes 7 ------------ | ------------- | ------------- | ------------- 8 **ref** | **str** | the commit to revert, given by a ref | 9 **parent_number** | **int** | when reverting a merge commit, the parent number (starting from 1) relative to which to perform the revert. | 10 **force** | **bool** | | [optional] [default to False] 11 **allow_empty** | **bool** | allow empty commit (revert without changes) | [optional] [default to False] 12 13 ## Example 14 15 ```python 16 from lakefs_sdk.models.revert_creation import RevertCreation 17 18 # TODO update the JSON string below 19 json = "{}" 20 # create an instance of RevertCreation from a JSON string 21 revert_creation_instance = RevertCreation.from_json(json) 22 # print the JSON string representation of the object 23 print RevertCreation.to_json() 24 25 # convert the object into a dict 26 revert_creation_dict = revert_creation_instance.to_dict() 27 # create an instance of RevertCreation from a dict 28 revert_creation_form_dict = revert_creation.from_dict(revert_creation_dict) 29 ``` 30 [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 31 32