@@ -28,9 +28,9 @@ public function show($subrepositoryName, $packageName)
28
28
return $ this ->get (sprintf ('/subrepositories/%s/packages/%s ' , $ subrepositoryName , $ packageName ));
29
29
}
30
30
31
- public function createVcsPackage ($ subrepositoryName , $ url , $ credentialId = null )
31
+ public function createVcsPackage ($ subrepositoryName , $ url , $ credentialId = null , $ type = ' vcs ' )
32
32
{
33
- return $ this ->post (sprintf ('/subrepositories/%s/packages/ ' , $ subrepositoryName ), ['repoType ' => ' vcs ' , 'repoUrl ' => $ url , 'credentials ' => $ credentialId ]);
33
+ return $ this ->post (sprintf ('/subrepositories/%s/packages/ ' , $ subrepositoryName ), ['repoType ' => $ type , 'repoUrl ' => $ url , 'credentials ' => $ credentialId ]);
34
34
}
35
35
36
36
public function createCustomPackage ($ subrepositoryName , $ customJson , $ credentialId = null )
@@ -42,9 +42,9 @@ public function createCustomPackage($subrepositoryName, $customJson, $credential
42
42
return $ this ->post (sprintf ('/subrepositories/%s/packages/ ' , $ subrepositoryName ), ['repoType ' => 'package ' , 'repoConfig ' => $ customJson , 'credentials ' => $ credentialId ]);
43
43
}
44
44
45
- public function editVcsPackage ($ subrepositoryName , $ packageName , $ url , $ credentialId = null )
45
+ public function editVcsPackage ($ subrepositoryName , $ packageName , $ url , $ credentialId = null , $ type = ' vcs ' )
46
46
{
47
- return $ this ->put (sprintf ('/subrepositories/%s/packages/%s/ ' , $ subrepositoryName , $ packageName ), ['repoType ' => ' vcs ' , 'repoUrl ' => $ url , 'credentials ' => $ credentialId ]);
47
+ return $ this ->put (sprintf ('/subrepositories/%s/packages/%s/ ' , $ subrepositoryName , $ packageName ), ['repoType ' => $ type , 'repoUrl ' => $ url , 'credentials ' => $ credentialId ]);
48
48
}
49
49
50
50
public function editCustomPackage ($ subrepositoryName , $ packageName , $ customJson , $ credentialId = null )
0 commit comments