github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/python/docs/BranchProtectionRule.md (about) 1 # BranchProtectionRule 2 3 4 ## Properties 5 6 Name | Type | Description | Notes 7 ------------ | ------------- | ------------- | ------------- 8 **pattern** | **str** | fnmatch pattern for the branch name, supporting * and ? wildcards | 9 10 ## Example 11 12 ```python 13 from lakefs_sdk.models.branch_protection_rule import BranchProtectionRule 14 15 # TODO update the JSON string below 16 json = "{}" 17 # create an instance of BranchProtectionRule from a JSON string 18 branch_protection_rule_instance = BranchProtectionRule.from_json(json) 19 # print the JSON string representation of the object 20 print BranchProtectionRule.to_json() 21 22 # convert the object into a dict 23 branch_protection_rule_dict = branch_protection_rule_instance.to_dict() 24 # create an instance of BranchProtectionRule from a dict 25 branch_protection_rule_form_dict = branch_protection_rule.from_dict(branch_protection_rule_dict) 26 ``` 27 [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 28 29