@sonatype/nexus-repo-api-client 3.81.14 → 3.81.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/dist/apis/SecurityManagementPrivilegesApi.d.ts +78 -78
- package/dist/apis/SecurityManagementPrivilegesApi.js +107 -107
- package/dist/esm/apis/SecurityManagementPrivilegesApi.d.ts +78 -78
- package/dist/esm/apis/SecurityManagementPrivilegesApi.js +108 -108
- package/dist/esm/models/GetAllPrivileges200ResponseInner.d.ts +28 -0
- package/dist/esm/models/GetAllPrivileges200ResponseInner.js +86 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/GetAllPrivileges200ResponseInner.d.ts +28 -0
- package/dist/models/GetAllPrivileges200ResponseInner.js +92 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/SecurityManagementPrivilegesApi.ts +138 -138
- package/src/models/GetAllPrivileges200ResponseInner.ts +143 -0
- package/src/models/index.ts +1 -0
|
@@ -30,9 +30,9 @@ const index_1 = require("../models/index");
|
|
|
30
30
|
*/
|
|
31
31
|
class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
* Create
|
|
33
|
+
* Create an application type privilege.
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
createApplicationPrivilegeRaw(requestParameters, initOverrides) {
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
37
|
const queryParameters = {};
|
|
38
38
|
const headerParameters = {};
|
|
@@ -41,27 +41,27 @@ class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
|
|
|
41
41
|
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
42
42
|
}
|
|
43
43
|
const response = yield this.request({
|
|
44
|
-
path: `/v1/security/privileges/
|
|
44
|
+
path: `/v1/security/privileges/application`,
|
|
45
45
|
method: 'POST',
|
|
46
46
|
headers: headerParameters,
|
|
47
47
|
query: queryParameters,
|
|
48
|
-
body: (0, index_1.
|
|
48
|
+
body: (0, index_1.ApiPrivilegeApplicationRequestToJSON)(requestParameters['body']),
|
|
49
49
|
}, initOverrides);
|
|
50
50
|
return new runtime.VoidApiResponse(response);
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
-
* Create
|
|
54
|
+
* Create an application type privilege.
|
|
55
55
|
*/
|
|
56
|
-
|
|
56
|
+
createApplicationPrivilege() {
|
|
57
57
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
58
|
-
yield this.
|
|
58
|
+
yield this.createApplicationPrivilegeRaw(requestParameters, initOverrides);
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
|
-
* Create a repository
|
|
62
|
+
* Create a repository admin type privilege.
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
createRepositoryAdminPrivilegeRaw(requestParameters, initOverrides) {
|
|
65
65
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
66
|
const queryParameters = {};
|
|
67
67
|
const headerParameters = {};
|
|
@@ -70,27 +70,27 @@ class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
|
|
|
70
70
|
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
71
71
|
}
|
|
72
72
|
const response = yield this.request({
|
|
73
|
-
path: `/v1/security/privileges/repository-
|
|
73
|
+
path: `/v1/security/privileges/repository-admin`,
|
|
74
74
|
method: 'POST',
|
|
75
75
|
headers: headerParameters,
|
|
76
76
|
query: queryParameters,
|
|
77
|
-
body: (0, index_1.
|
|
77
|
+
body: (0, index_1.ApiPrivilegeRepositoryAdminRequestToJSON)(requestParameters['body']),
|
|
78
78
|
}, initOverrides);
|
|
79
79
|
return new runtime.VoidApiResponse(response);
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
|
-
* Create a repository
|
|
83
|
+
* Create a repository admin type privilege.
|
|
84
84
|
*/
|
|
85
|
-
|
|
85
|
+
createRepositoryAdminPrivilege() {
|
|
86
86
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
87
|
-
yield this.
|
|
87
|
+
yield this.createRepositoryAdminPrivilegeRaw(requestParameters, initOverrides);
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
|
-
* Create a repository
|
|
91
|
+
* Create a repository content selector type privilege.
|
|
92
92
|
*/
|
|
93
|
-
|
|
93
|
+
createRepositoryContentSelectorPrivilegeRaw(requestParameters, initOverrides) {
|
|
94
94
|
return __awaiter(this, void 0, void 0, function* () {
|
|
95
95
|
const queryParameters = {};
|
|
96
96
|
const headerParameters = {};
|
|
@@ -99,27 +99,27 @@ class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
|
|
|
99
99
|
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
100
100
|
}
|
|
101
101
|
const response = yield this.request({
|
|
102
|
-
path: `/v1/security/privileges/repository-
|
|
102
|
+
path: `/v1/security/privileges/repository-content-selector`,
|
|
103
103
|
method: 'POST',
|
|
104
104
|
headers: headerParameters,
|
|
105
105
|
query: queryParameters,
|
|
106
|
-
body: (0, index_1.
|
|
106
|
+
body: (0, index_1.ApiPrivilegeRepositoryContentSelectorRequestToJSON)(requestParameters['body']),
|
|
107
107
|
}, initOverrides);
|
|
108
108
|
return new runtime.VoidApiResponse(response);
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
|
-
* Create a repository
|
|
112
|
+
* Create a repository content selector type privilege.
|
|
113
113
|
*/
|
|
114
|
-
|
|
114
|
+
createRepositoryContentSelectorPrivilege() {
|
|
115
115
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
116
|
-
yield this.
|
|
116
|
+
yield this.createRepositoryContentSelectorPrivilegeRaw(requestParameters, initOverrides);
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
/**
|
|
120
|
-
* Create a
|
|
120
|
+
* Create a repository view type privilege.
|
|
121
121
|
*/
|
|
122
|
-
|
|
122
|
+
createRepositoryViewPrivilegeRaw(requestParameters, initOverrides) {
|
|
123
123
|
return __awaiter(this, void 0, void 0, function* () {
|
|
124
124
|
const queryParameters = {};
|
|
125
125
|
const headerParameters = {};
|
|
@@ -128,27 +128,27 @@ class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
|
|
|
128
128
|
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
129
129
|
}
|
|
130
130
|
const response = yield this.request({
|
|
131
|
-
path: `/v1/security/privileges/
|
|
131
|
+
path: `/v1/security/privileges/repository-view`,
|
|
132
132
|
method: 'POST',
|
|
133
133
|
headers: headerParameters,
|
|
134
134
|
query: queryParameters,
|
|
135
|
-
body: (0, index_1.
|
|
135
|
+
body: (0, index_1.ApiPrivilegeRepositoryViewRequestToJSON)(requestParameters['body']),
|
|
136
136
|
}, initOverrides);
|
|
137
137
|
return new runtime.VoidApiResponse(response);
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
/**
|
|
141
|
-
* Create a
|
|
141
|
+
* Create a repository view type privilege.
|
|
142
142
|
*/
|
|
143
|
-
|
|
143
|
+
createRepositoryViewPrivilege() {
|
|
144
144
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
145
|
-
yield this.
|
|
145
|
+
yield this.createRepositoryViewPrivilegeRaw(requestParameters, initOverrides);
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
|
-
* Create
|
|
149
|
+
* Create a script type privilege.
|
|
150
150
|
*/
|
|
151
|
-
|
|
151
|
+
createScriptPrivilegeRaw(requestParameters, initOverrides) {
|
|
152
152
|
return __awaiter(this, void 0, void 0, function* () {
|
|
153
153
|
const queryParameters = {};
|
|
154
154
|
const headerParameters = {};
|
|
@@ -157,27 +157,27 @@ class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
|
|
|
157
157
|
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
158
158
|
}
|
|
159
159
|
const response = yield this.request({
|
|
160
|
-
path: `/v1/security/privileges/
|
|
160
|
+
path: `/v1/security/privileges/script`,
|
|
161
161
|
method: 'POST',
|
|
162
162
|
headers: headerParameters,
|
|
163
163
|
query: queryParameters,
|
|
164
|
-
body: (0, index_1.
|
|
164
|
+
body: (0, index_1.ApiPrivilegeScriptRequestToJSON)(requestParameters['body']),
|
|
165
165
|
}, initOverrides);
|
|
166
166
|
return new runtime.VoidApiResponse(response);
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
/**
|
|
170
|
-
* Create
|
|
170
|
+
* Create a script type privilege.
|
|
171
171
|
*/
|
|
172
|
-
|
|
172
|
+
createScriptPrivilege() {
|
|
173
173
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
174
|
-
yield this.
|
|
174
|
+
yield this.createScriptPrivilegeRaw(requestParameters, initOverrides);
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
/**
|
|
178
|
-
* Create a
|
|
178
|
+
* Create a wildcard type privilege.
|
|
179
179
|
*/
|
|
180
|
-
|
|
180
|
+
createWildcardPrivilegeRaw(requestParameters, initOverrides) {
|
|
181
181
|
return __awaiter(this, void 0, void 0, function* () {
|
|
182
182
|
const queryParameters = {};
|
|
183
183
|
const headerParameters = {};
|
|
@@ -186,21 +186,21 @@ class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
|
|
|
186
186
|
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
187
187
|
}
|
|
188
188
|
const response = yield this.request({
|
|
189
|
-
path: `/v1/security/privileges/
|
|
189
|
+
path: `/v1/security/privileges/wildcard`,
|
|
190
190
|
method: 'POST',
|
|
191
191
|
headers: headerParameters,
|
|
192
192
|
query: queryParameters,
|
|
193
|
-
body: (0, index_1.
|
|
193
|
+
body: (0, index_1.ApiPrivilegeWildcardRequestToJSON)(requestParameters['body']),
|
|
194
194
|
}, initOverrides);
|
|
195
195
|
return new runtime.VoidApiResponse(response);
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
198
|
/**
|
|
199
|
-
* Create a
|
|
199
|
+
* Create a wildcard type privilege.
|
|
200
200
|
*/
|
|
201
|
-
|
|
201
|
+
createWildcardPrivilege() {
|
|
202
202
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
203
|
-
yield this.
|
|
203
|
+
yield this.createWildcardPrivilegeRaw(requestParameters, initOverrides);
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
206
|
/**
|
|
@@ -234,71 +234,71 @@ class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
|
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
236
|
/**
|
|
237
|
-
* Retrieve a
|
|
237
|
+
* Retrieve a list of privileges.
|
|
238
238
|
*/
|
|
239
|
-
|
|
239
|
+
getAllPrivilegesRaw(initOverrides) {
|
|
240
240
|
return __awaiter(this, void 0, void 0, function* () {
|
|
241
|
-
if (requestParameters['privilegeName'] == null) {
|
|
242
|
-
throw new runtime.RequiredError('privilegeName', 'Required parameter "privilegeName" was null or undefined when calling getPrivilege().');
|
|
243
|
-
}
|
|
244
241
|
const queryParameters = {};
|
|
245
242
|
const headerParameters = {};
|
|
246
243
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
247
244
|
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
248
245
|
}
|
|
249
246
|
const response = yield this.request({
|
|
250
|
-
path: `/v1/security/privileges
|
|
247
|
+
path: `/v1/security/privileges`,
|
|
251
248
|
method: 'GET',
|
|
252
249
|
headers: headerParameters,
|
|
253
250
|
query: queryParameters,
|
|
254
251
|
}, initOverrides);
|
|
255
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (
|
|
252
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GetAllPrivileges200ResponseInnerFromJSON));
|
|
256
253
|
});
|
|
257
254
|
}
|
|
258
255
|
/**
|
|
259
|
-
* Retrieve a
|
|
256
|
+
* Retrieve a list of privileges.
|
|
260
257
|
*/
|
|
261
|
-
|
|
258
|
+
getAllPrivileges(initOverrides) {
|
|
262
259
|
return __awaiter(this, void 0, void 0, function* () {
|
|
263
|
-
const response = yield this.
|
|
260
|
+
const response = yield this.getAllPrivilegesRaw(initOverrides);
|
|
264
261
|
return yield response.value();
|
|
265
262
|
});
|
|
266
263
|
}
|
|
267
264
|
/**
|
|
268
|
-
* Retrieve a
|
|
265
|
+
* Retrieve a privilege by name.
|
|
269
266
|
*/
|
|
270
|
-
|
|
267
|
+
getPrivilegeRaw(requestParameters, initOverrides) {
|
|
271
268
|
return __awaiter(this, void 0, void 0, function* () {
|
|
269
|
+
if (requestParameters['privilegeName'] == null) {
|
|
270
|
+
throw new runtime.RequiredError('privilegeName', 'Required parameter "privilegeName" was null or undefined when calling getPrivilege().');
|
|
271
|
+
}
|
|
272
272
|
const queryParameters = {};
|
|
273
273
|
const headerParameters = {};
|
|
274
274
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
275
275
|
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
276
276
|
}
|
|
277
277
|
const response = yield this.request({
|
|
278
|
-
path: `/v1/security/privileges`,
|
|
278
|
+
path: `/v1/security/privileges/{privilegeName}`.replace(`{${"privilegeName"}}`, encodeURIComponent(String(requestParameters['privilegeName']))),
|
|
279
279
|
method: 'GET',
|
|
280
280
|
headers: headerParameters,
|
|
281
281
|
query: queryParameters,
|
|
282
282
|
}, initOverrides);
|
|
283
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
283
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetAllPrivileges200ResponseInnerFromJSON)(jsonValue));
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
286
|
/**
|
|
287
|
-
* Retrieve a
|
|
287
|
+
* Retrieve a privilege by name.
|
|
288
288
|
*/
|
|
289
|
-
|
|
289
|
+
getPrivilege(requestParameters, initOverrides) {
|
|
290
290
|
return __awaiter(this, void 0, void 0, function* () {
|
|
291
|
-
const response = yield this.
|
|
291
|
+
const response = yield this.getPrivilegeRaw(requestParameters, initOverrides);
|
|
292
292
|
return yield response.value();
|
|
293
293
|
});
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
|
-
* Update
|
|
296
|
+
* Update an application type privilege.
|
|
297
297
|
*/
|
|
298
|
-
|
|
298
|
+
updateApplicationPrivilegeRaw(requestParameters, initOverrides) {
|
|
299
299
|
return __awaiter(this, void 0, void 0, function* () {
|
|
300
300
|
if (requestParameters['privilegeName'] == null) {
|
|
301
|
-
throw new runtime.RequiredError('privilegeName', 'Required parameter "privilegeName" was null or undefined when calling
|
|
301
|
+
throw new runtime.RequiredError('privilegeName', 'Required parameter "privilegeName" was null or undefined when calling updateApplicationPrivilege().');
|
|
302
302
|
}
|
|
303
303
|
const queryParameters = {};
|
|
304
304
|
const headerParameters = {};
|
|
@@ -307,30 +307,30 @@ class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
|
|
|
307
307
|
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
308
308
|
}
|
|
309
309
|
const response = yield this.request({
|
|
310
|
-
path: `/v1/security/privileges/
|
|
310
|
+
path: `/v1/security/privileges/application/{privilegeName}`.replace(`{${"privilegeName"}}`, encodeURIComponent(String(requestParameters['privilegeName']))),
|
|
311
311
|
method: 'PUT',
|
|
312
312
|
headers: headerParameters,
|
|
313
313
|
query: queryParameters,
|
|
314
|
-
body: (0, index_1.
|
|
314
|
+
body: (0, index_1.ApiPrivilegeApplicationRequestToJSON)(requestParameters['body']),
|
|
315
315
|
}, initOverrides);
|
|
316
316
|
return new runtime.VoidApiResponse(response);
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
319
|
/**
|
|
320
|
-
* Update
|
|
320
|
+
* Update an application type privilege.
|
|
321
321
|
*/
|
|
322
|
-
|
|
322
|
+
updateApplicationPrivilege(requestParameters, initOverrides) {
|
|
323
323
|
return __awaiter(this, void 0, void 0, function* () {
|
|
324
|
-
yield this.
|
|
324
|
+
yield this.updateApplicationPrivilegeRaw(requestParameters, initOverrides);
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
/**
|
|
328
|
-
* Update a repository
|
|
328
|
+
* Update a repository admin type privilege.
|
|
329
329
|
*/
|
|
330
|
-
|
|
330
|
+
updateRepositoryAdminPrivilegeRaw(requestParameters, initOverrides) {
|
|
331
331
|
return __awaiter(this, void 0, void 0, function* () {
|
|
332
332
|
if (requestParameters['privilegeName'] == null) {
|
|
333
|
-
throw new runtime.RequiredError('privilegeName', 'Required parameter "privilegeName" was null or undefined when calling
|
|
333
|
+
throw new runtime.RequiredError('privilegeName', 'Required parameter "privilegeName" was null or undefined when calling updateRepositoryAdminPrivilege().');
|
|
334
334
|
}
|
|
335
335
|
const queryParameters = {};
|
|
336
336
|
const headerParameters = {};
|
|
@@ -339,30 +339,30 @@ class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
|
|
|
339
339
|
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
340
340
|
}
|
|
341
341
|
const response = yield this.request({
|
|
342
|
-
path: `/v1/security/privileges/repository-
|
|
342
|
+
path: `/v1/security/privileges/repository-admin/{privilegeName}`.replace(`{${"privilegeName"}}`, encodeURIComponent(String(requestParameters['privilegeName']))),
|
|
343
343
|
method: 'PUT',
|
|
344
344
|
headers: headerParameters,
|
|
345
345
|
query: queryParameters,
|
|
346
|
-
body: (0, index_1.
|
|
346
|
+
body: (0, index_1.ApiPrivilegeRepositoryAdminRequestToJSON)(requestParameters['body']),
|
|
347
347
|
}, initOverrides);
|
|
348
348
|
return new runtime.VoidApiResponse(response);
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
/**
|
|
352
|
-
* Update a repository
|
|
352
|
+
* Update a repository admin type privilege.
|
|
353
353
|
*/
|
|
354
|
-
|
|
354
|
+
updateRepositoryAdminPrivilege(requestParameters, initOverrides) {
|
|
355
355
|
return __awaiter(this, void 0, void 0, function* () {
|
|
356
|
-
yield this.
|
|
356
|
+
yield this.updateRepositoryAdminPrivilegeRaw(requestParameters, initOverrides);
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
359
|
/**
|
|
360
|
-
* Update a repository
|
|
360
|
+
* Update a repository content selector type privilege.
|
|
361
361
|
*/
|
|
362
|
-
|
|
362
|
+
updateRepositoryContentSelectorPrivilegeRaw(requestParameters, initOverrides) {
|
|
363
363
|
return __awaiter(this, void 0, void 0, function* () {
|
|
364
364
|
if (requestParameters['privilegeName'] == null) {
|
|
365
|
-
throw new runtime.RequiredError('privilegeName', 'Required parameter "privilegeName" was null or undefined when calling
|
|
365
|
+
throw new runtime.RequiredError('privilegeName', 'Required parameter "privilegeName" was null or undefined when calling updateRepositoryContentSelectorPrivilege().');
|
|
366
366
|
}
|
|
367
367
|
const queryParameters = {};
|
|
368
368
|
const headerParameters = {};
|
|
@@ -371,30 +371,30 @@ class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
|
|
|
371
371
|
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
372
372
|
}
|
|
373
373
|
const response = yield this.request({
|
|
374
|
-
path: `/v1/security/privileges/repository-
|
|
374
|
+
path: `/v1/security/privileges/repository-content-selector/{privilegeName}`.replace(`{${"privilegeName"}}`, encodeURIComponent(String(requestParameters['privilegeName']))),
|
|
375
375
|
method: 'PUT',
|
|
376
376
|
headers: headerParameters,
|
|
377
377
|
query: queryParameters,
|
|
378
|
-
body: (0, index_1.
|
|
378
|
+
body: (0, index_1.ApiPrivilegeRepositoryContentSelectorRequestToJSON)(requestParameters['body']),
|
|
379
379
|
}, initOverrides);
|
|
380
380
|
return new runtime.VoidApiResponse(response);
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
383
|
/**
|
|
384
|
-
* Update a repository
|
|
384
|
+
* Update a repository content selector type privilege.
|
|
385
385
|
*/
|
|
386
|
-
|
|
386
|
+
updateRepositoryContentSelectorPrivilege(requestParameters, initOverrides) {
|
|
387
387
|
return __awaiter(this, void 0, void 0, function* () {
|
|
388
|
-
yield this.
|
|
388
|
+
yield this.updateRepositoryContentSelectorPrivilegeRaw(requestParameters, initOverrides);
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
391
|
/**
|
|
392
|
-
* Update a
|
|
392
|
+
* Update a repository view type privilege.
|
|
393
393
|
*/
|
|
394
|
-
|
|
394
|
+
updateRepositoryViewPrivilegeRaw(requestParameters, initOverrides) {
|
|
395
395
|
return __awaiter(this, void 0, void 0, function* () {
|
|
396
396
|
if (requestParameters['privilegeName'] == null) {
|
|
397
|
-
throw new runtime.RequiredError('privilegeName', 'Required parameter "privilegeName" was null or undefined when calling
|
|
397
|
+
throw new runtime.RequiredError('privilegeName', 'Required parameter "privilegeName" was null or undefined when calling updateRepositoryViewPrivilege().');
|
|
398
398
|
}
|
|
399
399
|
const queryParameters = {};
|
|
400
400
|
const headerParameters = {};
|
|
@@ -403,30 +403,30 @@ class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
|
|
|
403
403
|
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
404
404
|
}
|
|
405
405
|
const response = yield this.request({
|
|
406
|
-
path: `/v1/security/privileges/
|
|
406
|
+
path: `/v1/security/privileges/repository-view/{privilegeName}`.replace(`{${"privilegeName"}}`, encodeURIComponent(String(requestParameters['privilegeName']))),
|
|
407
407
|
method: 'PUT',
|
|
408
408
|
headers: headerParameters,
|
|
409
409
|
query: queryParameters,
|
|
410
|
-
body: (0, index_1.
|
|
410
|
+
body: (0, index_1.ApiPrivilegeRepositoryViewRequestToJSON)(requestParameters['body']),
|
|
411
411
|
}, initOverrides);
|
|
412
412
|
return new runtime.VoidApiResponse(response);
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
/**
|
|
416
|
-
* Update a
|
|
416
|
+
* Update a repository view type privilege.
|
|
417
417
|
*/
|
|
418
|
-
|
|
418
|
+
updateRepositoryViewPrivilege(requestParameters, initOverrides) {
|
|
419
419
|
return __awaiter(this, void 0, void 0, function* () {
|
|
420
|
-
yield this.
|
|
420
|
+
yield this.updateRepositoryViewPrivilegeRaw(requestParameters, initOverrides);
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
423
|
/**
|
|
424
|
-
* Update
|
|
424
|
+
* Update a script type privilege.
|
|
425
425
|
*/
|
|
426
|
-
|
|
426
|
+
updateScriptPrivilegeRaw(requestParameters, initOverrides) {
|
|
427
427
|
return __awaiter(this, void 0, void 0, function* () {
|
|
428
428
|
if (requestParameters['privilegeName'] == null) {
|
|
429
|
-
throw new runtime.RequiredError('privilegeName', 'Required parameter "privilegeName" was null or undefined when calling
|
|
429
|
+
throw new runtime.RequiredError('privilegeName', 'Required parameter "privilegeName" was null or undefined when calling updateScriptPrivilege().');
|
|
430
430
|
}
|
|
431
431
|
const queryParameters = {};
|
|
432
432
|
const headerParameters = {};
|
|
@@ -435,30 +435,30 @@ class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
|
|
|
435
435
|
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
436
436
|
}
|
|
437
437
|
const response = yield this.request({
|
|
438
|
-
path: `/v1/security/privileges/
|
|
438
|
+
path: `/v1/security/privileges/script/{privilegeName}`.replace(`{${"privilegeName"}}`, encodeURIComponent(String(requestParameters['privilegeName']))),
|
|
439
439
|
method: 'PUT',
|
|
440
440
|
headers: headerParameters,
|
|
441
441
|
query: queryParameters,
|
|
442
|
-
body: (0, index_1.
|
|
442
|
+
body: (0, index_1.ApiPrivilegeScriptRequestToJSON)(requestParameters['body']),
|
|
443
443
|
}, initOverrides);
|
|
444
444
|
return new runtime.VoidApiResponse(response);
|
|
445
445
|
});
|
|
446
446
|
}
|
|
447
447
|
/**
|
|
448
|
-
* Update
|
|
448
|
+
* Update a script type privilege.
|
|
449
449
|
*/
|
|
450
|
-
|
|
450
|
+
updateScriptPrivilege(requestParameters, initOverrides) {
|
|
451
451
|
return __awaiter(this, void 0, void 0, function* () {
|
|
452
|
-
yield this.
|
|
452
|
+
yield this.updateScriptPrivilegeRaw(requestParameters, initOverrides);
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
455
|
/**
|
|
456
|
-
* Update a
|
|
456
|
+
* Update a wildcard type privilege.
|
|
457
457
|
*/
|
|
458
|
-
|
|
458
|
+
updateWildcardPrivilegeRaw(requestParameters, initOverrides) {
|
|
459
459
|
return __awaiter(this, void 0, void 0, function* () {
|
|
460
460
|
if (requestParameters['privilegeName'] == null) {
|
|
461
|
-
throw new runtime.RequiredError('privilegeName', 'Required parameter "privilegeName" was null or undefined when calling
|
|
461
|
+
throw new runtime.RequiredError('privilegeName', 'Required parameter "privilegeName" was null or undefined when calling updateWildcardPrivilege().');
|
|
462
462
|
}
|
|
463
463
|
const queryParameters = {};
|
|
464
464
|
const headerParameters = {};
|
|
@@ -467,21 +467,21 @@ class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
|
|
|
467
467
|
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
468
468
|
}
|
|
469
469
|
const response = yield this.request({
|
|
470
|
-
path: `/v1/security/privileges/
|
|
470
|
+
path: `/v1/security/privileges/wildcard/{privilegeName}`.replace(`{${"privilegeName"}}`, encodeURIComponent(String(requestParameters['privilegeName']))),
|
|
471
471
|
method: 'PUT',
|
|
472
472
|
headers: headerParameters,
|
|
473
473
|
query: queryParameters,
|
|
474
|
-
body: (0, index_1.
|
|
474
|
+
body: (0, index_1.ApiPrivilegeWildcardRequestToJSON)(requestParameters['body']),
|
|
475
475
|
}, initOverrides);
|
|
476
476
|
return new runtime.VoidApiResponse(response);
|
|
477
477
|
});
|
|
478
478
|
}
|
|
479
479
|
/**
|
|
480
|
-
* Update a
|
|
480
|
+
* Update a wildcard type privilege.
|
|
481
481
|
*/
|
|
482
|
-
|
|
482
|
+
updateWildcardPrivilege(requestParameters, initOverrides) {
|
|
483
483
|
return __awaiter(this, void 0, void 0, function* () {
|
|
484
|
-
yield this.
|
|
484
|
+
yield this.updateWildcardPrivilegeRaw(requestParameters, initOverrides);
|
|
485
485
|
});
|
|
486
486
|
}
|
|
487
487
|
}
|