@stack-spot/portal-network 0.71.0 → 0.72.0
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/CHANGELOG.md +7 -0
- package/dist/api/account.d.ts +519 -85
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +337 -22
- package/dist/api/account.js.map +1 -1
- package/dist/client/account.d.ts +178 -2
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +115 -16
- package/dist/client/account.js.map +1 -1
- package/package.json +1 -1
- package/src/api/account.ts +1127 -293
- package/src/client/account.ts +74 -19
package/dist/api/account.js
CHANGED
|
@@ -8,11 +8,11 @@ import * as Oazapfts from "@oazapfts/runtime";
|
|
|
8
8
|
import * as QS from "@oazapfts/runtime/query";
|
|
9
9
|
export const defaults = {
|
|
10
10
|
headers: {},
|
|
11
|
-
baseUrl: "https://account-account-api.
|
|
11
|
+
baseUrl: "https://account-account-api.stg.stackspot.com",
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {
|
|
15
|
-
generatedServerUrl: "https://account-account-api.
|
|
15
|
+
generatedServerUrl: "https://account-account-api.stg.stackspot.com"
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* List User repository credential's.
|
|
@@ -126,9 +126,9 @@ export function deleteAccountRole({ roleId }, opts) {
|
|
|
126
126
|
}));
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
|
-
* Get all Global
|
|
129
|
+
* Get all Global Resources and Actions compared to role
|
|
130
130
|
*/
|
|
131
|
-
export function
|
|
131
|
+
export function getResourcesAndActionsWithStatus1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
132
132
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/roles/${encodeURIComponent(roleId)}/resources${QS.query(QS.explode({
|
|
133
133
|
size,
|
|
134
134
|
page,
|
|
@@ -295,6 +295,27 @@ export function deleteGroupMapping({ id, attributeImporterId }, opts) {
|
|
|
295
295
|
method: "DELETE"
|
|
296
296
|
}));
|
|
297
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* Get Service Credentials
|
|
300
|
+
*/
|
|
301
|
+
export function getServiceCredentials({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, name, status }, opts) {
|
|
302
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/service-credentials${QS.query(QS.explode({
|
|
303
|
+
size,
|
|
304
|
+
page,
|
|
305
|
+
sort,
|
|
306
|
+
direction,
|
|
307
|
+
search,
|
|
308
|
+
filterMode,
|
|
309
|
+
filterBy,
|
|
310
|
+
filterValue,
|
|
311
|
+
multiFilterMode,
|
|
312
|
+
filterIn,
|
|
313
|
+
name,
|
|
314
|
+
status
|
|
315
|
+
}))}`, {
|
|
316
|
+
...opts
|
|
317
|
+
}));
|
|
318
|
+
}
|
|
298
319
|
/**
|
|
299
320
|
* Create Service Credential v2
|
|
300
321
|
*/
|
|
@@ -308,7 +329,7 @@ export function createServiceCredential({ serviceCredentialCreateRequestV2 }, op
|
|
|
308
329
|
/**
|
|
309
330
|
* Get Service Credentials
|
|
310
331
|
*/
|
|
311
|
-
export function
|
|
332
|
+
export function getServiceCredentials1({ name, status, page, size }, opts) {
|
|
312
333
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/service-credentials${QS.query(QS.explode({
|
|
313
334
|
name,
|
|
314
335
|
status,
|
|
@@ -361,7 +382,7 @@ export function createScope({ iamCreateScopeRequest }, opts) {
|
|
|
361
382
|
/**
|
|
362
383
|
* Get Roles
|
|
363
384
|
*/
|
|
364
|
-
export function
|
|
385
|
+
export function getRoles3({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
365
386
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/roles${QS.query(QS.explode({
|
|
366
387
|
size,
|
|
367
388
|
page,
|
|
@@ -390,7 +411,7 @@ export function createAccountRole({ createAccountRoleRequest }, opts) {
|
|
|
390
411
|
/**
|
|
391
412
|
* Get role members
|
|
392
413
|
*/
|
|
393
|
-
export function
|
|
414
|
+
export function getRoleMembers1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
394
415
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/roles/${encodeURIComponent(roleId)}/members${QS.query(QS.explode({
|
|
395
416
|
size,
|
|
396
417
|
page,
|
|
@@ -419,7 +440,7 @@ export function addRoleToMember({ roleId, addRoleToMemberRequest }, opts) {
|
|
|
419
440
|
/**
|
|
420
441
|
* Get Groups from role
|
|
421
442
|
*/
|
|
422
|
-
export function
|
|
443
|
+
export function getRoleGroups1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
423
444
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/roles/${encodeURIComponent(roleId)}/groups${QS.query(QS.explode({
|
|
424
445
|
size,
|
|
425
446
|
page,
|
|
@@ -448,7 +469,7 @@ export function bindRoleGroups({ roleId, roleGroupIdsRequest }, opts) {
|
|
|
448
469
|
/**
|
|
449
470
|
* Get Resources
|
|
450
471
|
*/
|
|
451
|
-
export function
|
|
472
|
+
export function getResources1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
452
473
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/resources${QS.query(QS.explode({
|
|
453
474
|
size,
|
|
454
475
|
page,
|
|
@@ -477,7 +498,7 @@ export function createResource({ createResourceRequest }, opts) {
|
|
|
477
498
|
/**
|
|
478
499
|
* Get Account Members
|
|
479
500
|
*/
|
|
480
|
-
export function
|
|
501
|
+
export function getAccountMembers2({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
481
502
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/members${QS.query(QS.explode({
|
|
482
503
|
size,
|
|
483
504
|
page,
|
|
@@ -506,7 +527,7 @@ export function createUser({ createUserRequest }, opts) {
|
|
|
506
527
|
/**
|
|
507
528
|
* Get member roles
|
|
508
529
|
*/
|
|
509
|
-
export function
|
|
530
|
+
export function getRoles4({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
510
531
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/members/${encodeURIComponent(memberId)}/roles${QS.query(QS.explode({
|
|
511
532
|
size,
|
|
512
533
|
page,
|
|
@@ -544,7 +565,7 @@ export function resetOtp({ memberId }, opts) {
|
|
|
544
565
|
/**
|
|
545
566
|
* Get member Groups
|
|
546
567
|
*/
|
|
547
|
-
export function
|
|
568
|
+
export function getMemberGroups1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
548
569
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/members/${encodeURIComponent(memberId)}/groups${QS.query(QS.explode({
|
|
549
570
|
size,
|
|
550
571
|
page,
|
|
@@ -634,7 +655,7 @@ export function createUserInvitation({ createUserInvitationRequest }, opts) {
|
|
|
634
655
|
/**
|
|
635
656
|
* Get Groups
|
|
636
657
|
*/
|
|
637
|
-
export function
|
|
658
|
+
export function getGroups1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }, opts) {
|
|
638
659
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/groups${QS.query(QS.explode({
|
|
639
660
|
size,
|
|
640
661
|
page,
|
|
@@ -664,7 +685,7 @@ export function save({ newGroupRequest }, opts) {
|
|
|
664
685
|
/**
|
|
665
686
|
* Get Group members
|
|
666
687
|
*/
|
|
667
|
-
export function
|
|
688
|
+
export function getRoles5({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
668
689
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/groups/${encodeURIComponent(groupId)}/roles${QS.query(QS.explode({
|
|
669
690
|
size,
|
|
670
691
|
page,
|
|
@@ -693,7 +714,7 @@ export function bindRoles({ groupId, groupRoleIdsRequest }, opts) {
|
|
|
693
714
|
/**
|
|
694
715
|
* Get Group Resources
|
|
695
716
|
*/
|
|
696
|
-
export function
|
|
717
|
+
export function getGroupResources1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
697
718
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/groups/${encodeURIComponent(groupId)}/resources${QS.query(QS.explode({
|
|
698
719
|
size,
|
|
699
720
|
page,
|
|
@@ -722,7 +743,7 @@ export function addResourcesToGroup({ groupId, addResourcesToGroupRequest }, opt
|
|
|
722
743
|
/**
|
|
723
744
|
* Get Group members
|
|
724
745
|
*/
|
|
725
|
-
export function
|
|
746
|
+
export function getMembers1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
726
747
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/groups/${encodeURIComponent(groupId)}/members${QS.query(QS.explode({
|
|
727
748
|
size,
|
|
728
749
|
page,
|
|
@@ -1255,6 +1276,300 @@ export function updatePartnerAccountAdminData({ id, accountPartnerAdminDataUpdat
|
|
|
1255
1276
|
body: accountPartnerAdminDataUpdateRequest
|
|
1256
1277
|
})));
|
|
1257
1278
|
}
|
|
1279
|
+
/**
|
|
1280
|
+
* List service credential groups
|
|
1281
|
+
*/
|
|
1282
|
+
export function getServiceCredentialGroups({ id }, opts) {
|
|
1283
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/service-credentials/${encodeURIComponent(id)}/groups`, {
|
|
1284
|
+
...opts
|
|
1285
|
+
}));
|
|
1286
|
+
}
|
|
1287
|
+
/**
|
|
1288
|
+
* Get Roles
|
|
1289
|
+
*/
|
|
1290
|
+
export function getRoles({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1291
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/roles${QS.query(QS.explode({
|
|
1292
|
+
size,
|
|
1293
|
+
page,
|
|
1294
|
+
sort,
|
|
1295
|
+
direction,
|
|
1296
|
+
search,
|
|
1297
|
+
filterMode,
|
|
1298
|
+
filterBy,
|
|
1299
|
+
filterValue,
|
|
1300
|
+
multiFilterMode,
|
|
1301
|
+
filterIn
|
|
1302
|
+
}))}`, {
|
|
1303
|
+
...opts
|
|
1304
|
+
}));
|
|
1305
|
+
}
|
|
1306
|
+
/**
|
|
1307
|
+
* Get all Global Resources and Actions compared to role
|
|
1308
|
+
*/
|
|
1309
|
+
export function getResourcesAndActionsWithStatus({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1310
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/roles/${encodeURIComponent(roleId)}/resources${QS.query(QS.explode({
|
|
1311
|
+
size,
|
|
1312
|
+
page,
|
|
1313
|
+
sort,
|
|
1314
|
+
direction,
|
|
1315
|
+
search,
|
|
1316
|
+
filterMode,
|
|
1317
|
+
filterBy,
|
|
1318
|
+
filterValue,
|
|
1319
|
+
multiFilterMode,
|
|
1320
|
+
filterIn
|
|
1321
|
+
}))}`, {
|
|
1322
|
+
...opts
|
|
1323
|
+
}));
|
|
1324
|
+
}
|
|
1325
|
+
/**
|
|
1326
|
+
* Get role members
|
|
1327
|
+
*/
|
|
1328
|
+
export function getRoleMembers({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1329
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/roles/${encodeURIComponent(roleId)}/members${QS.query(QS.explode({
|
|
1330
|
+
size,
|
|
1331
|
+
page,
|
|
1332
|
+
sort,
|
|
1333
|
+
direction,
|
|
1334
|
+
search,
|
|
1335
|
+
filterMode,
|
|
1336
|
+
filterBy,
|
|
1337
|
+
filterValue,
|
|
1338
|
+
multiFilterMode,
|
|
1339
|
+
filterIn
|
|
1340
|
+
}))}`, {
|
|
1341
|
+
...opts
|
|
1342
|
+
}));
|
|
1343
|
+
}
|
|
1344
|
+
/**
|
|
1345
|
+
* Get Groups from role
|
|
1346
|
+
*/
|
|
1347
|
+
export function getRoleGroups({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1348
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/roles/${encodeURIComponent(roleId)}/groups${QS.query(QS.explode({
|
|
1349
|
+
size,
|
|
1350
|
+
page,
|
|
1351
|
+
sort,
|
|
1352
|
+
direction,
|
|
1353
|
+
search,
|
|
1354
|
+
filterMode,
|
|
1355
|
+
filterBy,
|
|
1356
|
+
filterValue,
|
|
1357
|
+
multiFilterMode,
|
|
1358
|
+
filterIn
|
|
1359
|
+
}))}`, {
|
|
1360
|
+
...opts
|
|
1361
|
+
}));
|
|
1362
|
+
}
|
|
1363
|
+
/**
|
|
1364
|
+
* Get Resources
|
|
1365
|
+
*/
|
|
1366
|
+
export function getResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1367
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/resources${QS.query(QS.explode({
|
|
1368
|
+
size,
|
|
1369
|
+
page,
|
|
1370
|
+
sort,
|
|
1371
|
+
direction,
|
|
1372
|
+
search,
|
|
1373
|
+
filterMode,
|
|
1374
|
+
filterBy,
|
|
1375
|
+
filterValue,
|
|
1376
|
+
multiFilterMode,
|
|
1377
|
+
filterIn
|
|
1378
|
+
}))}`, {
|
|
1379
|
+
...opts
|
|
1380
|
+
}));
|
|
1381
|
+
}
|
|
1382
|
+
/**
|
|
1383
|
+
* Get Members from Resource
|
|
1384
|
+
*/
|
|
1385
|
+
export function getResourceMembers({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1386
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/resources/${encodeURIComponent(resourceId)}/members${QS.query(QS.explode({
|
|
1387
|
+
size,
|
|
1388
|
+
page,
|
|
1389
|
+
sort,
|
|
1390
|
+
direction,
|
|
1391
|
+
search,
|
|
1392
|
+
filterMode,
|
|
1393
|
+
filterBy,
|
|
1394
|
+
filterValue,
|
|
1395
|
+
multiFilterMode,
|
|
1396
|
+
filterIn
|
|
1397
|
+
}))}`, {
|
|
1398
|
+
...opts
|
|
1399
|
+
}));
|
|
1400
|
+
}
|
|
1401
|
+
/**
|
|
1402
|
+
* Get Groups from Resource
|
|
1403
|
+
*/
|
|
1404
|
+
export function getResourceGroups({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1405
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/resources/${encodeURIComponent(resourceId)}/groups${QS.query(QS.explode({
|
|
1406
|
+
size,
|
|
1407
|
+
page,
|
|
1408
|
+
sort,
|
|
1409
|
+
direction,
|
|
1410
|
+
search,
|
|
1411
|
+
filterMode,
|
|
1412
|
+
filterBy,
|
|
1413
|
+
filterValue,
|
|
1414
|
+
multiFilterMode,
|
|
1415
|
+
filterIn
|
|
1416
|
+
}))}`, {
|
|
1417
|
+
...opts
|
|
1418
|
+
}));
|
|
1419
|
+
}
|
|
1420
|
+
/**
|
|
1421
|
+
* Get Resource Types
|
|
1422
|
+
*/
|
|
1423
|
+
export function getResourceTypes({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1424
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/resource-types${QS.query(QS.explode({
|
|
1425
|
+
size,
|
|
1426
|
+
page,
|
|
1427
|
+
sort,
|
|
1428
|
+
direction,
|
|
1429
|
+
search,
|
|
1430
|
+
filterMode,
|
|
1431
|
+
filterBy,
|
|
1432
|
+
filterValue,
|
|
1433
|
+
multiFilterMode,
|
|
1434
|
+
filterIn
|
|
1435
|
+
}))}`, {
|
|
1436
|
+
...opts
|
|
1437
|
+
}));
|
|
1438
|
+
}
|
|
1439
|
+
/**
|
|
1440
|
+
* Get Account Members
|
|
1441
|
+
*/
|
|
1442
|
+
export function getAccountMembers({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1443
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/members${QS.query(QS.explode({
|
|
1444
|
+
size,
|
|
1445
|
+
page,
|
|
1446
|
+
sort,
|
|
1447
|
+
direction,
|
|
1448
|
+
search,
|
|
1449
|
+
filterMode,
|
|
1450
|
+
filterBy,
|
|
1451
|
+
filterValue,
|
|
1452
|
+
multiFilterMode,
|
|
1453
|
+
filterIn
|
|
1454
|
+
}))}`, {
|
|
1455
|
+
...opts
|
|
1456
|
+
}));
|
|
1457
|
+
}
|
|
1458
|
+
/**
|
|
1459
|
+
* Get member roles
|
|
1460
|
+
*/
|
|
1461
|
+
export function getRoles1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1462
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/members/${encodeURIComponent(memberId)}/roles${QS.query(QS.explode({
|
|
1463
|
+
size,
|
|
1464
|
+
page,
|
|
1465
|
+
sort,
|
|
1466
|
+
direction,
|
|
1467
|
+
search,
|
|
1468
|
+
filterMode,
|
|
1469
|
+
filterBy,
|
|
1470
|
+
filterValue,
|
|
1471
|
+
multiFilterMode,
|
|
1472
|
+
filterIn
|
|
1473
|
+
}))}`, {
|
|
1474
|
+
...opts
|
|
1475
|
+
}));
|
|
1476
|
+
}
|
|
1477
|
+
/**
|
|
1478
|
+
* Get member Groups
|
|
1479
|
+
*/
|
|
1480
|
+
export function getMemberGroups({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1481
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/members/${encodeURIComponent(memberId)}/groups${QS.query(QS.explode({
|
|
1482
|
+
size,
|
|
1483
|
+
page,
|
|
1484
|
+
sort,
|
|
1485
|
+
direction,
|
|
1486
|
+
search,
|
|
1487
|
+
filterMode,
|
|
1488
|
+
filterBy,
|
|
1489
|
+
filterValue,
|
|
1490
|
+
multiFilterMode,
|
|
1491
|
+
filterIn
|
|
1492
|
+
}))}`, {
|
|
1493
|
+
...opts
|
|
1494
|
+
}));
|
|
1495
|
+
}
|
|
1496
|
+
/**
|
|
1497
|
+
* Get Groups
|
|
1498
|
+
*/
|
|
1499
|
+
export function getGroups({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }, opts) {
|
|
1500
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/groups${QS.query(QS.explode({
|
|
1501
|
+
size,
|
|
1502
|
+
page,
|
|
1503
|
+
sort,
|
|
1504
|
+
direction,
|
|
1505
|
+
search,
|
|
1506
|
+
filterMode,
|
|
1507
|
+
filterBy,
|
|
1508
|
+
filterValue,
|
|
1509
|
+
multiFilterMode,
|
|
1510
|
+
filterIn,
|
|
1511
|
+
includeDefaultGroup
|
|
1512
|
+
}))}`, {
|
|
1513
|
+
...opts
|
|
1514
|
+
}));
|
|
1515
|
+
}
|
|
1516
|
+
/**
|
|
1517
|
+
* Get Group roles
|
|
1518
|
+
*/
|
|
1519
|
+
export function getRoles2({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1520
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/groups/${encodeURIComponent(groupId)}/roles${QS.query(QS.explode({
|
|
1521
|
+
size,
|
|
1522
|
+
page,
|
|
1523
|
+
sort,
|
|
1524
|
+
direction,
|
|
1525
|
+
search,
|
|
1526
|
+
filterMode,
|
|
1527
|
+
filterBy,
|
|
1528
|
+
filterValue,
|
|
1529
|
+
multiFilterMode,
|
|
1530
|
+
filterIn
|
|
1531
|
+
}))}`, {
|
|
1532
|
+
...opts
|
|
1533
|
+
}));
|
|
1534
|
+
}
|
|
1535
|
+
/**
|
|
1536
|
+
* Get Group Resources
|
|
1537
|
+
*/
|
|
1538
|
+
export function getGroupResources({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1539
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/groups/${encodeURIComponent(groupId)}/resources${QS.query(QS.explode({
|
|
1540
|
+
size,
|
|
1541
|
+
page,
|
|
1542
|
+
sort,
|
|
1543
|
+
direction,
|
|
1544
|
+
search,
|
|
1545
|
+
filterMode,
|
|
1546
|
+
filterBy,
|
|
1547
|
+
filterValue,
|
|
1548
|
+
multiFilterMode,
|
|
1549
|
+
filterIn
|
|
1550
|
+
}))}`, {
|
|
1551
|
+
...opts
|
|
1552
|
+
}));
|
|
1553
|
+
}
|
|
1554
|
+
/**
|
|
1555
|
+
* Get Group members
|
|
1556
|
+
*/
|
|
1557
|
+
export function getMembers({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1558
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/groups/${encodeURIComponent(groupId)}/members${QS.query(QS.explode({
|
|
1559
|
+
size,
|
|
1560
|
+
page,
|
|
1561
|
+
sort,
|
|
1562
|
+
direction,
|
|
1563
|
+
search,
|
|
1564
|
+
filterMode,
|
|
1565
|
+
filterBy,
|
|
1566
|
+
filterValue,
|
|
1567
|
+
multiFilterMode,
|
|
1568
|
+
filterIn
|
|
1569
|
+
}))}`, {
|
|
1570
|
+
...opts
|
|
1571
|
+
}));
|
|
1572
|
+
}
|
|
1258
1573
|
/**
|
|
1259
1574
|
* Verify User repository credential configuration status.
|
|
1260
1575
|
*/
|
|
@@ -1294,7 +1609,7 @@ export function getAccount({ id }, opts) {
|
|
|
1294
1609
|
/**
|
|
1295
1610
|
* Get Account Members
|
|
1296
1611
|
*/
|
|
1297
|
-
export function
|
|
1612
|
+
export function getAccountMembers1({ id, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1298
1613
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/stackspot/accounts/${encodeURIComponent(id)}/members${QS.query(QS.explode({
|
|
1299
1614
|
size,
|
|
1300
1615
|
page,
|
|
@@ -1329,7 +1644,7 @@ export function getServiceCredentialPermissions({ id }, opts) {
|
|
|
1329
1644
|
/**
|
|
1330
1645
|
* List service credential groups
|
|
1331
1646
|
*/
|
|
1332
|
-
export function
|
|
1647
|
+
export function getServiceCredentialGroups1({ id }, opts) {
|
|
1333
1648
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/service-credentials/${encodeURIComponent(id)}/groups`, {
|
|
1334
1649
|
...opts
|
|
1335
1650
|
}));
|
|
@@ -1372,7 +1687,7 @@ export function getPermissionsWithStatus({ roleId, size, page, sort, direction,
|
|
|
1372
1687
|
/**
|
|
1373
1688
|
* Get Members from Resource
|
|
1374
1689
|
*/
|
|
1375
|
-
export function
|
|
1690
|
+
export function getResourceMembers1({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1376
1691
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/resources/${encodeURIComponent(resourceId)}/members${QS.query(QS.explode({
|
|
1377
1692
|
size,
|
|
1378
1693
|
page,
|
|
@@ -1391,7 +1706,7 @@ export function getResourceMembers({ resourceId, size, page, sort, direction, se
|
|
|
1391
1706
|
/**
|
|
1392
1707
|
* Get Groups from Resource
|
|
1393
1708
|
*/
|
|
1394
|
-
export function
|
|
1709
|
+
export function getResourceGroups1({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1395
1710
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/resources/${encodeURIComponent(resourceId)}/groups${QS.query(QS.explode({
|
|
1396
1711
|
size,
|
|
1397
1712
|
page,
|
|
@@ -1410,7 +1725,7 @@ export function getResourceGroups({ resourceId, size, page, sort, direction, sea
|
|
|
1410
1725
|
/**
|
|
1411
1726
|
* Get Resource Types
|
|
1412
1727
|
*/
|
|
1413
|
-
export function
|
|
1728
|
+
export function getResourceTypes1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1414
1729
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/resource-types${QS.query(QS.explode({
|
|
1415
1730
|
size,
|
|
1416
1731
|
page,
|
|
@@ -1442,7 +1757,7 @@ export function getAccess({ resourceType, resource, action, attribute }, opts) {
|
|
|
1442
1757
|
/**
|
|
1443
1758
|
* Get Resources Members
|
|
1444
1759
|
*/
|
|
1445
|
-
export function
|
|
1760
|
+
export function getResources2({ memberId }, opts) {
|
|
1446
1761
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/members/${encodeURIComponent(memberId)}/resources`, {
|
|
1447
1762
|
...opts
|
|
1448
1763
|
}));
|