Commit c307dd20 authored by Nejc Habjan's avatar Nejc Habjan Committed by John Villalovos
Browse files

refactor(package_protection_rules): add missing attributes

parent 6d316491
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ __all__ = [


class ProjectPackageProtectionRule(ObjectDeleteMixin, SaveMixin, RESTObject):
    _repr_attr = "name"
    _repr_attr = "package_name_pattern"


class ProjectPackageProtectionRuleManager(
@@ -33,4 +33,11 @@ class ProjectPackageProtectionRuleManager(
            "minimum_access_level_for_push",
        ),
    )
    _update_attrs = RequiredOptional(
        optional=(
            "package_name_pattern",
            "package_type",
            "minimum_access_level_for_push",
        ),
    )
    _update_method = UpdateMethod.PATCH