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

Commit938fc0a

Browse files
authored
Merge pull request#971 from jooola/ci_vars_type
feat: add more options for project/group ci variables manipulation
2 parents59af4e4 +4724c50 commit938fc0a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎gitlab/v4/objects.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,8 +1184,8 @@ class GroupVariableManager(CRUDMixin, RESTManager):
11841184
_path="/groups/%(group_id)s/variables"
11851185
_obj_cls=GroupVariable
11861186
_from_parent_attrs= {"group_id":"id"}
1187-
_create_attrs= (("key","value"), ("protected",))
1188-
_update_attrs= (("key","value"), ("protected",))
1187+
_create_attrs= (("key","value"), ("protected","variable_type"))
1188+
_update_attrs= (("key","value"), ("protected","variable_type"))
11891189

11901190

11911191
classGroup(SaveMixin,ObjectDeleteMixin,RESTObject):
@@ -3716,8 +3716,8 @@ class ProjectVariableManager(CRUDMixin, RESTManager):
37163716
_path="/projects/%(project_id)s/variables"
37173717
_obj_cls=ProjectVariable
37183718
_from_parent_attrs= {"project_id":"id"}
3719-
_create_attrs= (("key","value"),tuple())
3720-
_update_attrs= (("key","value"),tuple())
3719+
_create_attrs= (("key","value"),("protected","variable_type"))
3720+
_update_attrs= (("key","value"),("protected","variable_type"))
37213721

37223722

37233723
classProjectService(SaveMixin,ObjectDeleteMixin,RESTObject):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp