@@ -53,9 +53,9 @@ public function all(array $filters = [])
5353 return $ this ->get ('/packages/ ' , $ filters );
5454 }
5555
56- public function show ($ packageName )
56+ public function show ($ packageIdOrName )
5757 {
58- return $ this ->get (sprintf ('/packages/%s/ ' , $ packageName ));
58+ return $ this ->get (sprintf ('/packages/%s/ ' , $ packageIdOrName ));
5959 }
6060
6161 public function createVcsPackage ($ url , $ credentialId = null , $ type = 'vcs ' , $ defaultSubrepositoryAccess = null )
@@ -87,18 +87,18 @@ public function updateVcsPackage($packageName, $url, $credentialId = null)
8787 return $ this ->editVcsPackage ($ packageName , $ url , $ credentialId );
8888 }
8989
90- public function editVcsPackage ($ packageName , $ url , $ credentialId = null , $ type = 'vcs ' , $ defaultSubrepositoryAccess = null )
90+ public function editVcsPackage ($ packageIdOrName , $ url , $ credentialId = null , $ type = 'vcs ' , $ defaultSubrepositoryAccess = null )
9191 {
9292 $ data = new VcsPackageConfig ($ url , $ credentialId , $ type , $ defaultSubrepositoryAccess );
9393
94- return $ this ->put (sprintf ('/packages/%s/ ' , $ packageName ), $ data ->toParameters ());
94+ return $ this ->put (sprintf ('/packages/%s/ ' , $ packageIdOrName ), $ data ->toParameters ());
9595 }
9696
97- public function editArtifactPackage ($ packageName , array $ artifactPackageFileIds , $ defaultSubrepositoryAccess = null )
97+ public function editArtifactPackage ($ packageIdOrName , array $ artifactPackageFileIds , $ defaultSubrepositoryAccess = null )
9898 {
9999 $ data = new ArtifactPackageConfig ($ artifactPackageFileIds , $ defaultSubrepositoryAccess );
100100
101- return $ this ->put (sprintf ('/packages/%s/ ' , $ packageName ), $ data ->toParameters ());
101+ return $ this ->put (sprintf ('/packages/%s/ ' , $ packageIdOrName ), $ data ->toParameters ());
102102 }
103103
104104 /**
@@ -109,41 +109,41 @@ public function updateCustomPackage($packageName, $customJson, $credentialId = n
109109 return $ this ->editCustomPackage ($ packageName , $ customJson , $ credentialId );
110110 }
111111
112- public function editCustomPackage ($ packageName , $ customJson , $ credentialId = null , $ defaultSubrepositoryAccess = null )
112+ public function editCustomPackage ($ packageIdOrName , $ customJson , $ credentialId = null , $ defaultSubrepositoryAccess = null )
113113 {
114114 $ data = new CustomPackageConfig ($ customJson , $ credentialId , $ defaultSubrepositoryAccess );
115115
116- return $ this ->put (sprintf ('/packages/%s/ ' , $ packageName ), $ data ->toParameters ());
116+ return $ this ->put (sprintf ('/packages/%s/ ' , $ packageIdOrName ), $ data ->toParameters ());
117117 }
118118
119- public function remove ($ packageName )
119+ public function remove ($ packageIdOrName )
120120 {
121- return $ this ->delete (sprintf ('/packages/%s/ ' , $ packageName ));
121+ return $ this ->delete (sprintf ('/packages/%s/ ' , $ packageIdOrName ));
122122 }
123123
124- public function listCustomers ($ packageName )
124+ public function listCustomers ($ packageIdOrName )
125125 {
126- return $ this ->get (sprintf ('/packages/%s/customers/ ' , $ packageName ));
126+ return $ this ->get (sprintf ('/packages/%s/customers/ ' , $ packageIdOrName ));
127127 }
128128
129129 public function listDependents ($ packageName )
130130 {
131131 return $ this ->get (sprintf ('/packages/%s/dependents/ ' , $ packageName ));
132132 }
133133
134- public function listSecurityIssues ($ packageName , array $ filters = [])
134+ public function listSecurityIssues ($ packageIdOrName , array $ filters = [])
135135 {
136- return $ this ->get (sprintf ('/packages/%s/security-issues/ ' , $ packageName ), $ filters );
136+ return $ this ->get (sprintf ('/packages/%s/security-issues/ ' , $ packageIdOrName ), $ filters );
137137 }
138138
139- public function showSecurityMonitoringConfig ($ packageName )
139+ public function showSecurityMonitoringConfig ($ packageIdOrName )
140140 {
141- return $ this ->get (sprintf ('/packages/%s/security-monitoring/ ' , $ packageName ));
141+ return $ this ->get (sprintf ('/packages/%s/security-monitoring/ ' , $ packageIdOrName ));
142142 }
143143
144- public function editSecurityMonitoringConfig ($ packageName , array $ config )
144+ public function editSecurityMonitoringConfig ($ packageIdOrName , array $ config )
145145 {
146- return $ this ->put (sprintf ('/packages/%s/security-monitoring/ ' , $ packageName ), $ config );
146+ return $ this ->put (sprintf ('/packages/%s/security-monitoring/ ' , $ packageIdOrName ), $ config );
147147 }
148148
149149 public function artifacts ()
0 commit comments