Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc307dd2

Browse files
nejchJohnVillalovos
authored andcommitted
refactor(package_protection_rules): add missing attributes
1 parent6d31649 commitc307dd2

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
classProjectPackageProtectionRule(ObjectDeleteMixin,SaveMixin,RESTObject):
20-
_repr_attr="name"
20+
_repr_attr="package_name_pattern"
2121

2222

2323
classProjectPackageProtectionRuleManager(
@@ -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)

[8]ページ先頭

©2009-2025 Movatter.jp