@@ -976,14 +976,28 @@ public function events($project_id, array $parameters = [])
976976
977977    /** 
978978     * @param int|string $project_id 
979-      * @param array      $parameters 
979+      * @param array      $parameters { 
980+      * 
981+      *     @var bool     $with_counts               Whether or not to include issue and merge request counts. Defaults to false. 
982+      *     @var bool     $include_ancestor_groups   Include ancestor groups. Defaults to true. 
983+      *     @var string   $search                    Keyword to filter labels by. 
984+      * } 
980985     * 
981986     * @return mixed 
982987     */ 
983988    public  function  labels ($ project_idarray  $ parameters
984989    {
985990        $ resolver$ this createOptionsResolver ();
986991
992+         $ resolversetDefined ('with_counts ' )
993+             ->setAllowedTypes ('with_counts ' , 'bool ' );
994+ 
995+         $ resolversetDefined ('include_ancestor_groups ' )
996+             ->setAllowedTypes ('include_ancestor_groups ' , 'bool ' );
997+ 
998+         $ resolversetDefined ('search ' )
999+             ->setAllowedTypes ('search ' , 'string ' );
1000+ 
9871001        return  $ this get ($ this getProjectPath ($ project_id'labels ' ), $ resolverresolve ($ parameters
9881002    }
9891003
@@ -1214,12 +1228,17 @@ public function variables($project_id, array $parameters = [])
12141228    /** 
12151229     * @param int|string $project_id 
12161230     * @param string     $key 
1231+      * @param array      $parameters 
12171232     * 
12181233     * @return mixed 
12191234     */ 
1220-     public  function  variable ($ project_idstring  $ key
1235+     public  function  variable ($ project_idstring  $ key,  array   $ parameters  = [] )
12211236    {
1222-         return  $ this get ($ this getProjectPath ($ project_id'variables/ ' .self ::encodePath ($ key
1237+         $ resolver$ this createOptionsResolver ();
1238+         $ resolversetDefined ('filter ' )
1239+             ->setAllowedTypes ('filter ' , 'array ' );
1240+ 
1241+         return  $ this get ($ this getProjectPath ($ project_id'variables/ ' .self ::encodePath ($ key$ resolverresolve ($ parameters
12231242    }
12241243
12251244    /** 
@@ -1527,6 +1546,18 @@ public function deleteProtectedBranch($project_id, string $branch_name)
15271546        return  $ this delete ($ this getProjectPath ($ project_id'protected_branches/ ' .self ::encodePath ($ branch_name
15281547    }
15291548
1549+     /** 
1550+      * @param int|string $project_id 
1551+      * @param string     $branch_name 
1552+      * @param array      $parameters 
1553+      * 
1554+      * @return mixed 
1555+      */ 
1556+     public  function  updateProtectedBranch ($ project_idstring  $ branch_namearray  $ parameters
1557+     {
1558+         return  $ this patch ($ this getProjectPath ($ project_id'protected_branches/ ' .self ::encodePath ($ branch_name$ parameters
1559+     }
1560+ 
15301561    /** 
15311562     * @param int|string $project_id 
15321563     * 
@@ -1537,6 +1568,17 @@ public function approvalsConfiguration($project_id)
15371568        return  $ this get ('projects/ ' .self ::encodePath ($ project_id'/approvals ' );
15381569    }
15391570
1571+     /** 
1572+      * @param int|string $project_id 
1573+      * @param array      $parameters 
1574+      * 
1575+      * @return mixed 
1576+      */ 
1577+     public  function  updateApprovalsConfiguration ($ project_idarray  $ parameters
1578+     {
1579+         return  $ this post ('projects/ ' .self ::encodePath ($ project_id'/approvals ' , $ parameters
1580+     }
1581+ 
15401582    /** 
15411583     * @param int|string $project_id 
15421584     * 
0 commit comments