@@ -53,9 +53,9 @@ public function all(array $filters = [])
53
53
return $ this ->get ('/packages/ ' , $ filters );
54
54
}
55
55
56
- public function show ($ packageName )
56
+ public function show ($ packageIdOrName )
57
57
{
58
- return $ this ->get (sprintf ('/packages/%s/ ' , $ packageName ));
58
+ return $ this ->get (sprintf ('/packages/%s/ ' , $ packageIdOrName ));
59
59
}
60
60
61
61
public function createVcsPackage ($ url , $ credentialId = null , $ type = 'vcs ' , $ defaultSubrepositoryAccess = null )
@@ -87,18 +87,18 @@ public function updateVcsPackage($packageName, $url, $credentialId = null)
87
87
return $ this ->editVcsPackage ($ packageName , $ url , $ credentialId );
88
88
}
89
89
90
- public function editVcsPackage ($ packageName , $ url , $ credentialId = null , $ type = 'vcs ' , $ defaultSubrepositoryAccess = null )
90
+ public function editVcsPackage ($ packageIdOrName , $ url , $ credentialId = null , $ type = 'vcs ' , $ defaultSubrepositoryAccess = null )
91
91
{
92
92
$ data = new VcsPackageConfig ($ url , $ credentialId , $ type , $ defaultSubrepositoryAccess );
93
93
94
- return $ this ->put (sprintf ('/packages/%s/ ' , $ packageName ), $ data ->toParameters ());
94
+ return $ this ->put (sprintf ('/packages/%s/ ' , $ packageIdOrName ), $ data ->toParameters ());
95
95
}
96
96
97
- public function editArtifactPackage ($ packageName , array $ artifactPackageFileIds , $ defaultSubrepositoryAccess = null )
97
+ public function editArtifactPackage ($ packageIdOrName , array $ artifactPackageFileIds , $ defaultSubrepositoryAccess = null )
98
98
{
99
99
$ data = new ArtifactPackageConfig ($ artifactPackageFileIds , $ defaultSubrepositoryAccess );
100
100
101
- return $ this ->put (sprintf ('/packages/%s/ ' , $ packageName ), $ data ->toParameters ());
101
+ return $ this ->put (sprintf ('/packages/%s/ ' , $ packageIdOrName ), $ data ->toParameters ());
102
102
}
103
103
104
104
/**
@@ -109,41 +109,41 @@ public function updateCustomPackage($packageName, $customJson, $credentialId = n
109
109
return $ this ->editCustomPackage ($ packageName , $ customJson , $ credentialId );
110
110
}
111
111
112
- public function editCustomPackage ($ packageName , $ customJson , $ credentialId = null , $ defaultSubrepositoryAccess = null )
112
+ public function editCustomPackage ($ packageIdOrName , $ customJson , $ credentialId = null , $ defaultSubrepositoryAccess = null )
113
113
{
114
114
$ data = new CustomPackageConfig ($ customJson , $ credentialId , $ defaultSubrepositoryAccess );
115
115
116
- return $ this ->put (sprintf ('/packages/%s/ ' , $ packageName ), $ data ->toParameters ());
116
+ return $ this ->put (sprintf ('/packages/%s/ ' , $ packageIdOrName ), $ data ->toParameters ());
117
117
}
118
118
119
- public function remove ($ packageName )
119
+ public function remove ($ packageIdOrName )
120
120
{
121
- return $ this ->delete (sprintf ('/packages/%s/ ' , $ packageName ));
121
+ return $ this ->delete (sprintf ('/packages/%s/ ' , $ packageIdOrName ));
122
122
}
123
123
124
- public function listCustomers ($ packageName )
124
+ public function listCustomers ($ packageIdOrName )
125
125
{
126
- return $ this ->get (sprintf ('/packages/%s/customers/ ' , $ packageName ));
126
+ return $ this ->get (sprintf ('/packages/%s/customers/ ' , $ packageIdOrName ));
127
127
}
128
128
129
129
public function listDependents ($ packageName )
130
130
{
131
131
return $ this ->get (sprintf ('/packages/%s/dependents/ ' , $ packageName ));
132
132
}
133
133
134
- public function listSecurityIssues ($ packageName , array $ filters = [])
134
+ public function listSecurityIssues ($ packageIdOrName , array $ filters = [])
135
135
{
136
- return $ this ->get (sprintf ('/packages/%s/security-issues/ ' , $ packageName ), $ filters );
136
+ return $ this ->get (sprintf ('/packages/%s/security-issues/ ' , $ packageIdOrName ), $ filters );
137
137
}
138
138
139
- public function showSecurityMonitoringConfig ($ packageName )
139
+ public function showSecurityMonitoringConfig ($ packageIdOrName )
140
140
{
141
- return $ this ->get (sprintf ('/packages/%s/security-monitoring/ ' , $ packageName ));
141
+ return $ this ->get (sprintf ('/packages/%s/security-monitoring/ ' , $ packageIdOrName ));
142
142
}
143
143
144
- public function editSecurityMonitoringConfig ($ packageName , array $ config )
144
+ public function editSecurityMonitoringConfig ($ packageIdOrName , array $ config )
145
145
{
146
- return $ this ->put (sprintf ('/packages/%s/security-monitoring/ ' , $ packageName ), $ config );
146
+ return $ this ->put (sprintf ('/packages/%s/security-monitoring/ ' , $ packageIdOrName ), $ config );
147
147
}
148
148
149
149
public function artifacts ()
0 commit comments