github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/python/docs/GarbageCollectionRule.md (about)

     1  # GarbageCollectionRule
     2  
     3  
     4  ## Properties
     5  
     6  Name | Type | Description | Notes
     7  ------------ | ------------- | ------------- | -------------
     8  **branch_id** | **str** |  | 
     9  **retention_days** | **int** |  | 
    10  
    11  ## Example
    12  
    13  ```python
    14  from lakefs_sdk.models.garbage_collection_rule import GarbageCollectionRule
    15  
    16  # TODO update the JSON string below
    17  json = "{}"
    18  # create an instance of GarbageCollectionRule from a JSON string
    19  garbage_collection_rule_instance = GarbageCollectionRule.from_json(json)
    20  # print the JSON string representation of the object
    21  print GarbageCollectionRule.to_json()
    22  
    23  # convert the object into a dict
    24  garbage_collection_rule_dict = garbage_collection_rule_instance.to_dict()
    25  # create an instance of GarbageCollectionRule from a dict
    26  garbage_collection_rule_form_dict = garbage_collection_rule.from_dict(garbage_collection_rule_dict)
    27  ```
    28  [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
    29  
    30