Skip to content

Commit c307dd2

Browse files
nejchJohnVillalovos
authored andcommitted
refactor(package_protection_rules): add missing attributes
1 parent 6d31649 commit c307dd2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

gitlab/v4/objects/package_protection_rules.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
class ProjectPackageProtectionRule(ObjectDeleteMixin, SaveMixin, RESTObject):
20-
_repr_attr = "name"
20+
_repr_attr = "package_name_pattern"
2121

2222

2323
class ProjectPackageProtectionRuleManager(
@@ -33,4 +33,11 @@ class ProjectPackageProtectionRuleManager(
3333
"minimum_access_level_for_push",
3434
),
3535
)
36+
_update_attrs = RequiredOptional(
37+
optional=(
38+
"package_name_pattern",
39+
"package_type",
40+
"minimum_access_level_for_push",
41+
),
42+
)
3643
_update_method = UpdateMethod.PATCH

0 commit comments

Comments
 (0)