toggle menu
gitlab
jvm
switch theme
search in API
gitlab
/
com.mato.gitlab.api
/
BranchesApi
/
protectBranches
protect
Branches
@
POST
(
value
=
"projects/{id}/protected_branches"
)
abstract
suspend
fun
protectBranches
(
@
Path
(
value
=
"id"
)
id
:
String
,
@
Query
(
value
=
"name"
)
name
:
String
,
@
Query
(
value
=
"allow_force_push"
)
allowForcePush
:
Boolean
?
=
null
,
@
Query
(
value
=
"code_owner_approval_required"
)
codeOwnerApprovalRequired
:
Boolean
?
=
null
,
@
Query
(
value
=
"push_access_level"
)
pushAccessLevel
:
Int
?
=
null
,
@
Query
(
value
=
"merge_access_level"
)
mergeAccessLevel
:
Int
?
=
null
,
@
Query
(
value
=
"unprotect_access_level"
)
unprotectAccessLevel
:
Int
?
=
null
,
@
Body
option
:
ProtectBranchOption
=
ProtectBranchOption()
)
:
Result
<
ProtectedBranch
>