@@ -60,23 +60,23 @@ public function show($packageIdOrName)
6060 return $ this ->get (sprintf ('/packages/%s/ ' , $ packageIdOrName ));
6161 }
6262
63- public function createVcsPackage ($ url , $ credentialId = null , $ type = 'vcs ' , $ defaultSubrepositoryAccess = null )
63+ public function createVcsPackage ($ url , $ credentialId = null , $ type = 'vcs ' , $ defaultSuborganizationAccess = null )
6464 {
65- $ data = new VcsPackageConfig ($ url , $ credentialId , $ type , $ defaultSubrepositoryAccess );
65+ $ data = new VcsPackageConfig ($ url , $ credentialId , $ type , $ defaultSuborganizationAccess );
6666
6767 return $ this ->post ('/packages/ ' , $ data ->toParameters ());
6868 }
6969
70- public function createCustomPackage ($ customJson , $ credentialId = null , $ defaultSubrepositoryAccess = null )
70+ public function createCustomPackage ($ customJson , $ credentialId = null , $ defaultSuborganizationAccess = null )
7171 {
72- $ data = new CustomPackageConfig ($ customJson , $ credentialId , $ defaultSubrepositoryAccess );
72+ $ data = new CustomPackageConfig ($ customJson , $ credentialId , $ defaultSuborganizationAccess );
7373
7474 return $ this ->post ('/packages/ ' , $ data ->toParameters ());
7575 }
7676
77- public function createArtifactPackage (array $ artifactPackageFileIds , $ defaultSubrepositoryAccess = null )
77+ public function createArtifactPackage (array $ artifactPackageFileIds , $ defaultSuborganizationAccess = null )
7878 {
79- $ data = new ArtifactPackageConfig ($ artifactPackageFileIds , $ defaultSubrepositoryAccess );
79+ $ data = new ArtifactPackageConfig ($ artifactPackageFileIds , $ defaultSuborganizationAccess );
8080
8181 return $ this ->post ('/packages/ ' , $ data ->toParameters ());
8282 }
@@ -90,16 +90,16 @@ public function updateVcsPackage($packageName, $url, $credentialId = null)
9090 return $ this ->editVcsPackage ($ packageName , $ url , $ credentialId );
9191 }
9292
93- public function editVcsPackage ($ packageIdOrName , $ url , $ credentialId = null , $ type = 'vcs ' , $ defaultSubrepositoryAccess = null )
93+ public function editVcsPackage ($ packageIdOrName , $ url , $ credentialId = null , $ type = 'vcs ' , $ defaultSuborganizationAccess = null )
9494 {
95- $ data = new VcsPackageConfig ($ url , $ credentialId , $ type , $ defaultSubrepositoryAccess );
95+ $ data = new VcsPackageConfig ($ url , $ credentialId , $ type , $ defaultSuborganizationAccess );
9696
9797 return $ this ->put (sprintf ('/packages/%s/ ' , $ packageIdOrName ), $ data ->toParameters ());
9898 }
9999
100- public function editArtifactPackage ($ packageIdOrName , array $ artifactPackageFileIds , $ defaultSubrepositoryAccess = null )
100+ public function editArtifactPackage ($ packageIdOrName , array $ artifactPackageFileIds , $ defaultSuborganizationAccess = null )
101101 {
102- $ data = new ArtifactPackageConfig ($ artifactPackageFileIds , $ defaultSubrepositoryAccess );
102+ $ data = new ArtifactPackageConfig ($ artifactPackageFileIds , $ defaultSuborganizationAccess );
103103
104104 return $ this ->put (sprintf ('/packages/%s/ ' , $ packageIdOrName ), $ data ->toParameters ());
105105 }
@@ -113,9 +113,9 @@ public function updateCustomPackage($packageName, $customJson, $credentialId = n
113113 return $ this ->editCustomPackage ($ packageName , $ customJson , $ credentialId );
114114 }
115115
116- public function editCustomPackage ($ packageIdOrName , $ customJson , $ credentialId = null , $ defaultSubrepositoryAccess = null )
116+ public function editCustomPackage ($ packageIdOrName , $ customJson , $ credentialId = null , $ defaultSuborganizationAccess = null )
117117 {
118- $ data = new CustomPackageConfig ($ customJson , $ credentialId , $ defaultSubrepositoryAccess );
118+ $ data = new CustomPackageConfig ($ customJson , $ credentialId , $ defaultSuborganizationAccess );
119119
120120 return $ this ->put (sprintf ('/packages/%s/ ' , $ packageIdOrName ), $ data ->toParameters ());
121121 }
0 commit comments