Skip to content

BranchProtectionRule

Properties

Name Type Description Notes
pattern str fnmatch pattern for the branch name, supporting * and ? wildcards
block_deletion bool A matching branch cannot be deleted. When setting rules, omitting this field keeps the value stored for the same pattern, or false for a new pattern. [optional]

Example

from lakefs_enterprise_sdk.models.branch_protection_rule import BranchProtectionRule

# TODO update the JSON string below
json = "{}"
# create an instance of BranchProtectionRule from a JSON string
branch_protection_rule_instance = BranchProtectionRule.from_json(json)
# print the JSON string representation of the object
print BranchProtectionRule.to_json()

# convert the object into a dict
branch_protection_rule_dict = branch_protection_rule_instance.to_dict()
# create an instance of BranchProtectionRule from a dict
branch_protection_rule_form_dict = branch_protection_rule.from_dict(branch_protection_rule_dict)