@stack-spot/portal-network 0.219.0 → 0.220.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/cloudPlatform.d.ts +137 -100
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +95 -53
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +102 -34
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +127 -37
- package/dist/client/cloud-platform.js.map +1 -1
- package/package.json +1 -1
- package/src/api/cloudPlatform.ts +256 -165
- package/src/client/cloud-platform.ts +70 -20
package/src/api/cloudPlatform.ts
CHANGED
|
@@ -26,6 +26,8 @@ export type RoleSpecPermission = {
|
|
|
26
26
|
"delete": boolean;
|
|
27
27
|
};
|
|
28
28
|
export type RoleSpec = {
|
|
29
|
+
boundary: RoleSpecPermission;
|
|
30
|
+
boundarySSO: RoleSpecPermission;
|
|
29
31
|
certificate: RoleSpecPermission;
|
|
30
32
|
cidr: RoleSpecPermission;
|
|
31
33
|
dnsRecord: RoleSpecPermission;
|
|
@@ -64,6 +66,32 @@ export type VpnResponse = {
|
|
|
64
66
|
updatedAt: string;
|
|
65
67
|
deletedAt?: string;
|
|
66
68
|
};
|
|
69
|
+
export type SecTool = {
|
|
70
|
+
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
71
|
+
};
|
|
72
|
+
export type SecTools = {
|
|
73
|
+
guardDuty: SecTool;
|
|
74
|
+
inspector: SecTool;
|
|
75
|
+
securityHub: SecTool;
|
|
76
|
+
};
|
|
77
|
+
export type FoundationDetails = {
|
|
78
|
+
name: string;
|
|
79
|
+
description: string;
|
|
80
|
+
cloudProvider: string;
|
|
81
|
+
region: string;
|
|
82
|
+
secTools: SecTools;
|
|
83
|
+
secProjectTags: Tag[];
|
|
84
|
+
};
|
|
85
|
+
export type FoundationResponse = {
|
|
86
|
+
stackSpotAccountId: string;
|
|
87
|
+
foundationId: string;
|
|
88
|
+
details: FoundationDetails;
|
|
89
|
+
tags: Tag[];
|
|
90
|
+
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
91
|
+
createdAt: string;
|
|
92
|
+
updatedAt: string;
|
|
93
|
+
deletedAt?: string;
|
|
94
|
+
};
|
|
67
95
|
export type ProjectDetails = {
|
|
68
96
|
name: string;
|
|
69
97
|
folderName: string;
|
|
@@ -210,34 +238,39 @@ export type CertificateResponse = {
|
|
|
210
238
|
updatedAt: string;
|
|
211
239
|
deletedAt?: string;
|
|
212
240
|
};
|
|
213
|
-
export type
|
|
214
|
-
|
|
241
|
+
export type BoundaryDetails = {
|
|
242
|
+
name: string;
|
|
243
|
+
description: string;
|
|
244
|
+
policyDocument: string;
|
|
215
245
|
};
|
|
216
|
-
export type
|
|
246
|
+
export type BoundaryResponse = {
|
|
247
|
+
foundationId: string;
|
|
248
|
+
boundaryId: string;
|
|
249
|
+
details: BoundaryDetails;
|
|
217
250
|
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
251
|
+
tags: Tag[];
|
|
252
|
+
createdAt: string;
|
|
253
|
+
updatedAt: string;
|
|
254
|
+
deletedAt?: string;
|
|
218
255
|
};
|
|
219
|
-
export type
|
|
220
|
-
guardDuty: SecTool;
|
|
221
|
-
inspector: SecTool;
|
|
222
|
-
securityHub: SecTool;
|
|
223
|
-
};
|
|
224
|
-
export type FoundationDetails = {
|
|
256
|
+
export type BoundarySsoDetails = {
|
|
225
257
|
name: string;
|
|
226
258
|
description: string;
|
|
227
|
-
|
|
228
|
-
region: string;
|
|
229
|
-
secTools: SecTools;
|
|
259
|
+
policyDocument: string;
|
|
230
260
|
};
|
|
231
|
-
export type
|
|
232
|
-
stackSpotAccountId: string;
|
|
261
|
+
export type BoundarySsoResponse = {
|
|
233
262
|
foundationId: string;
|
|
234
|
-
|
|
235
|
-
|
|
263
|
+
boundarySSOId: string;
|
|
264
|
+
details: BoundarySsoDetails;
|
|
236
265
|
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
266
|
+
tags: Tag[];
|
|
237
267
|
createdAt: string;
|
|
238
268
|
updatedAt: string;
|
|
239
269
|
deletedAt?: string;
|
|
240
270
|
};
|
|
271
|
+
export type ListRole = {
|
|
272
|
+
content: Role[];
|
|
273
|
+
};
|
|
241
274
|
export type ListFoundationResponse = {
|
|
242
275
|
stackSpotAccountId: string;
|
|
243
276
|
pendingResources: boolean;
|
|
@@ -266,57 +299,6 @@ export type CreateVpnRequest = {
|
|
|
266
299
|
destinationCidrBlock: string;
|
|
267
300
|
tags?: Tag[];
|
|
268
301
|
};
|
|
269
|
-
export type TenantDetails = {
|
|
270
|
-
name: string;
|
|
271
|
-
};
|
|
272
|
-
export type TenantResponse = {
|
|
273
|
-
stackSpotAccountId: string;
|
|
274
|
-
foundationId: string;
|
|
275
|
-
tenantId: string;
|
|
276
|
-
details: TenantDetails;
|
|
277
|
-
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
278
|
-
createdAt: string;
|
|
279
|
-
updatedAt: string;
|
|
280
|
-
deletedAt?: string;
|
|
281
|
-
};
|
|
282
|
-
export type ListTenantResponse = {
|
|
283
|
-
stackSpotAccountId: string;
|
|
284
|
-
foundationId: string;
|
|
285
|
-
pendingResources: boolean;
|
|
286
|
-
content: TenantResponse[];
|
|
287
|
-
};
|
|
288
|
-
export type CreateTenantRequest = {
|
|
289
|
-
name: string;
|
|
290
|
-
publicCidrs: string[];
|
|
291
|
-
};
|
|
292
|
-
export type RuntimeDetails = {
|
|
293
|
-
name: string;
|
|
294
|
-
};
|
|
295
|
-
export type RuntimeResponse = {
|
|
296
|
-
stackSpotAccountId: string;
|
|
297
|
-
foundationId: string;
|
|
298
|
-
tenantId: string;
|
|
299
|
-
runtimeId: string;
|
|
300
|
-
details: RuntimeDetails;
|
|
301
|
-
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
302
|
-
createdAt: string;
|
|
303
|
-
updatedAt: string;
|
|
304
|
-
deletedAt?: string;
|
|
305
|
-
};
|
|
306
|
-
export type ListRuntimeResponse = {
|
|
307
|
-
stackSpotAccountId: string;
|
|
308
|
-
foundationId: string;
|
|
309
|
-
projectId?: string;
|
|
310
|
-
tenantId?: string;
|
|
311
|
-
pendingResources: boolean;
|
|
312
|
-
content: RuntimeResponse[];
|
|
313
|
-
};
|
|
314
|
-
export type CreateRuntimeRequest = {
|
|
315
|
-
projectId: string;
|
|
316
|
-
name: string;
|
|
317
|
-
publicCidrs: string[];
|
|
318
|
-
clusterAdminRoles: string[];
|
|
319
|
-
};
|
|
320
302
|
export type ListProjectResponse = {
|
|
321
303
|
stackSpotAccountId: string;
|
|
322
304
|
foundationId: string;
|
|
@@ -396,8 +378,8 @@ export type ListCertificateResponse = {
|
|
|
396
378
|
};
|
|
397
379
|
export type CreateCertificateRequestBase = {
|
|
398
380
|
tags?: Tag[];
|
|
399
|
-
forInbound: "TRUE" | "FALSE";
|
|
400
381
|
certificateName: string;
|
|
382
|
+
forInbound: "TRUE" | "FALSE";
|
|
401
383
|
"type": string;
|
|
402
384
|
};
|
|
403
385
|
export type CreatePublicCertificateRequest = {
|
|
@@ -412,6 +394,29 @@ export type ImportCertificateRequest = {
|
|
|
412
394
|
certificatePrivateKey: string;
|
|
413
395
|
certificateChain?: string;
|
|
414
396
|
};
|
|
397
|
+
export type ListBoundaryResponse = {
|
|
398
|
+
foundationId: string;
|
|
399
|
+
pendingResources: boolean;
|
|
400
|
+
content: BoundaryResponse[];
|
|
401
|
+
};
|
|
402
|
+
export type JsonNode = any;
|
|
403
|
+
export type CreateBoundaryRequest = {
|
|
404
|
+
name: string;
|
|
405
|
+
description: string;
|
|
406
|
+
policyDocument: JsonNode;
|
|
407
|
+
tags: Tag[];
|
|
408
|
+
};
|
|
409
|
+
export type ListBoundarySsoResponse = {
|
|
410
|
+
foundationId: string;
|
|
411
|
+
pendingResources: boolean;
|
|
412
|
+
content: BoundarySsoResponse[];
|
|
413
|
+
};
|
|
414
|
+
export type CreateBoundarySsoRequest = {
|
|
415
|
+
name: string;
|
|
416
|
+
description: string;
|
|
417
|
+
policyDocument: JsonNode;
|
|
418
|
+
tags: Tag[];
|
|
419
|
+
};
|
|
415
420
|
export type Configuration = {
|
|
416
421
|
ikev1: string;
|
|
417
422
|
ikev2: string;
|
|
@@ -472,6 +477,19 @@ export function putVpnTags({ authorization, xAccountId, foundationId, vpnId, bod
|
|
|
472
477
|
})
|
|
473
478
|
})));
|
|
474
479
|
}
|
|
480
|
+
export function putFoundationSecProjectTags({ foundationId, body }: {
|
|
481
|
+
foundationId: string;
|
|
482
|
+
body: Tag[];
|
|
483
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
484
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
485
|
+
status: 202;
|
|
486
|
+
data: FoundationResponse;
|
|
487
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/sec-project-tags`, oazapfts.json({
|
|
488
|
+
...opts,
|
|
489
|
+
method: "PUT",
|
|
490
|
+
body
|
|
491
|
+
})));
|
|
492
|
+
}
|
|
475
493
|
export function putProjectTags({ authorization, xAccountId, foundationId, projectId, body }: {
|
|
476
494
|
authorization: string;
|
|
477
495
|
xAccountId?: string;
|
|
@@ -629,6 +647,90 @@ export function putCertificateTags({ authorization, xAccountId, foundationId, ce
|
|
|
629
647
|
})
|
|
630
648
|
})));
|
|
631
649
|
}
|
|
650
|
+
export function putBoundaryTags({ foundationId, boundaryId, body }: {
|
|
651
|
+
foundationId: string;
|
|
652
|
+
boundaryId: string;
|
|
653
|
+
body: Tag[];
|
|
654
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
655
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
656
|
+
status: 202;
|
|
657
|
+
data: BoundaryResponse;
|
|
658
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}/tags`, oazapfts.json({
|
|
659
|
+
...opts,
|
|
660
|
+
method: "PUT",
|
|
661
|
+
body
|
|
662
|
+
})));
|
|
663
|
+
}
|
|
664
|
+
export function putBoundaryPolicyDocument({ foundationId, boundaryId, body }: {
|
|
665
|
+
foundationId: string;
|
|
666
|
+
boundaryId: string;
|
|
667
|
+
body: string;
|
|
668
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
669
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
670
|
+
status: 202;
|
|
671
|
+
data: BoundaryResponse;
|
|
672
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}/policy-document`, {
|
|
673
|
+
...opts,
|
|
674
|
+
method: "PUT",
|
|
675
|
+
body
|
|
676
|
+
}));
|
|
677
|
+
}
|
|
678
|
+
export function putBoundaryDescription({ foundationId, boundaryId, body }: {
|
|
679
|
+
foundationId: string;
|
|
680
|
+
boundaryId: string;
|
|
681
|
+
body: string;
|
|
682
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
683
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
684
|
+
status: 202;
|
|
685
|
+
data: BoundaryResponse;
|
|
686
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}/description`, {
|
|
687
|
+
...opts,
|
|
688
|
+
method: "PUT",
|
|
689
|
+
body
|
|
690
|
+
}));
|
|
691
|
+
}
|
|
692
|
+
export function putBoundarySsoTags({ foundationId, boundarySsoId, body }: {
|
|
693
|
+
foundationId: string;
|
|
694
|
+
boundarySsoId: string;
|
|
695
|
+
body: Tag[];
|
|
696
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
697
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
698
|
+
status: 202;
|
|
699
|
+
data: BoundarySsoResponse;
|
|
700
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso/${encodeURIComponent(boundarySsoId)}/tags`, oazapfts.json({
|
|
701
|
+
...opts,
|
|
702
|
+
method: "PUT",
|
|
703
|
+
body
|
|
704
|
+
})));
|
|
705
|
+
}
|
|
706
|
+
export function putBoundarySsoPolicyDocument({ foundationId, boundarySsoId, body }: {
|
|
707
|
+
foundationId: string;
|
|
708
|
+
boundarySsoId: string;
|
|
709
|
+
body: string;
|
|
710
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
711
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
712
|
+
status: 202;
|
|
713
|
+
data: BoundarySsoResponse;
|
|
714
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso/${encodeURIComponent(boundarySsoId)}/policy-document`, {
|
|
715
|
+
...opts,
|
|
716
|
+
method: "PUT",
|
|
717
|
+
body
|
|
718
|
+
}));
|
|
719
|
+
}
|
|
720
|
+
export function putBoundarySsoDescription({ foundationId, boundarySsoId, body }: {
|
|
721
|
+
foundationId: string;
|
|
722
|
+
boundarySsoId: string;
|
|
723
|
+
body: string;
|
|
724
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
725
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
726
|
+
status: 202;
|
|
727
|
+
data: BoundarySsoResponse;
|
|
728
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso/${encodeURIComponent(boundarySsoId)}/description`, {
|
|
729
|
+
...opts,
|
|
730
|
+
method: "PUT",
|
|
731
|
+
body
|
|
732
|
+
}));
|
|
733
|
+
}
|
|
632
734
|
export function listRole(opts?: Oazapfts.RequestOpts) {
|
|
633
735
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
634
736
|
status: 200;
|
|
@@ -717,75 +819,6 @@ export function createVpn({ authorization, xAccountId, foundationId, createVpnRe
|
|
|
717
819
|
})
|
|
718
820
|
})));
|
|
719
821
|
}
|
|
720
|
-
export function listTenant({ authorization, xAccountId, foundationId }: {
|
|
721
|
-
authorization: string;
|
|
722
|
-
xAccountId?: string;
|
|
723
|
-
foundationId: string;
|
|
724
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
725
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
726
|
-
status: 200;
|
|
727
|
-
data: ListTenantResponse;
|
|
728
|
-
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/tenants`, {
|
|
729
|
-
...opts,
|
|
730
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
731
|
-
Authorization: authorization,
|
|
732
|
-
"x-account-id": xAccountId
|
|
733
|
-
})
|
|
734
|
-
}));
|
|
735
|
-
}
|
|
736
|
-
export function createTenant({ authorization, xAccountId, foundationId, createTenantRequest }: {
|
|
737
|
-
authorization: string;
|
|
738
|
-
xAccountId?: string;
|
|
739
|
-
foundationId: string;
|
|
740
|
-
createTenantRequest: CreateTenantRequest;
|
|
741
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
742
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
743
|
-
status: 202;
|
|
744
|
-
data: TenantResponse;
|
|
745
|
-
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/tenants`, oazapfts.json({
|
|
746
|
-
...opts,
|
|
747
|
-
method: "POST",
|
|
748
|
-
body: createTenantRequest,
|
|
749
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
750
|
-
Authorization: authorization,
|
|
751
|
-
"x-account-id": xAccountId
|
|
752
|
-
})
|
|
753
|
-
})));
|
|
754
|
-
}
|
|
755
|
-
export function listRuntime({ foundationId, tenantId, projectId }: {
|
|
756
|
-
foundationId: string;
|
|
757
|
-
tenantId?: string;
|
|
758
|
-
projectId?: string;
|
|
759
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
760
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
761
|
-
status: 200;
|
|
762
|
-
data: ListRuntimeResponse;
|
|
763
|
-
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/runtimes${QS.query(QS.explode({
|
|
764
|
-
tenantId,
|
|
765
|
-
projectId
|
|
766
|
-
}))}`, {
|
|
767
|
-
...opts
|
|
768
|
-
}));
|
|
769
|
-
}
|
|
770
|
-
export function createRuntime({ authorization, xAccountId, foundationId, createRuntimeRequest }: {
|
|
771
|
-
authorization: string;
|
|
772
|
-
xAccountId?: string;
|
|
773
|
-
foundationId: string;
|
|
774
|
-
createRuntimeRequest: CreateRuntimeRequest;
|
|
775
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
776
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
777
|
-
status: 202;
|
|
778
|
-
data: RuntimeResponse;
|
|
779
|
-
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/runtimes`, oazapfts.json({
|
|
780
|
-
...opts,
|
|
781
|
-
method: "POST",
|
|
782
|
-
body: createRuntimeRequest,
|
|
783
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
784
|
-
Authorization: authorization,
|
|
785
|
-
"x-account-id": xAccountId
|
|
786
|
-
})
|
|
787
|
-
})));
|
|
788
|
-
}
|
|
789
822
|
export function listProject({ authorization, xAccountId, foundationId, parentFolderId }: {
|
|
790
823
|
authorization: string;
|
|
791
824
|
xAccountId?: string;
|
|
@@ -1053,6 +1086,52 @@ export function createCertificate({ authorization, xAccountId, foundationId, bod
|
|
|
1053
1086
|
})
|
|
1054
1087
|
})));
|
|
1055
1088
|
}
|
|
1089
|
+
export function listBoundary({ foundationId }: {
|
|
1090
|
+
foundationId: string;
|
|
1091
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1092
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1093
|
+
status: 200;
|
|
1094
|
+
data: ListBoundaryResponse;
|
|
1095
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries`, {
|
|
1096
|
+
...opts
|
|
1097
|
+
}));
|
|
1098
|
+
}
|
|
1099
|
+
export function createBoundary({ foundationId, createBoundaryRequest }: {
|
|
1100
|
+
foundationId: string;
|
|
1101
|
+
createBoundaryRequest: CreateBoundaryRequest;
|
|
1102
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1103
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1104
|
+
status: 202;
|
|
1105
|
+
data: BoundaryResponse;
|
|
1106
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries`, oazapfts.json({
|
|
1107
|
+
...opts,
|
|
1108
|
+
method: "POST",
|
|
1109
|
+
body: createBoundaryRequest
|
|
1110
|
+
})));
|
|
1111
|
+
}
|
|
1112
|
+
export function listBoundarySso({ foundationId }: {
|
|
1113
|
+
foundationId: string;
|
|
1114
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1115
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1116
|
+
status: 200;
|
|
1117
|
+
data: ListBoundarySsoResponse;
|
|
1118
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso`, {
|
|
1119
|
+
...opts
|
|
1120
|
+
}));
|
|
1121
|
+
}
|
|
1122
|
+
export function createBoundarySso({ foundationId, createBoundarySsoRequest }: {
|
|
1123
|
+
foundationId: string;
|
|
1124
|
+
createBoundarySsoRequest: CreateBoundarySsoRequest;
|
|
1125
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1126
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1127
|
+
status: 202;
|
|
1128
|
+
data: BoundarySsoResponse;
|
|
1129
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso`, oazapfts.json({
|
|
1130
|
+
...opts,
|
|
1131
|
+
method: "POST",
|
|
1132
|
+
body: createBoundarySsoRequest
|
|
1133
|
+
})));
|
|
1134
|
+
}
|
|
1056
1135
|
export function getFoundation({ authorization, xAccountId, foundationId }: {
|
|
1057
1136
|
authorization: string;
|
|
1058
1137
|
xAccountId?: string;
|
|
@@ -1118,34 +1197,6 @@ export function getVpnConfiguration({ authorization, xAccountId, foundationId, v
|
|
|
1118
1197
|
})
|
|
1119
1198
|
}));
|
|
1120
1199
|
}
|
|
1121
|
-
export function getTenant({ authorization, xAccountId, foundationId, tenantId }: {
|
|
1122
|
-
authorization: string;
|
|
1123
|
-
xAccountId?: string;
|
|
1124
|
-
foundationId: string;
|
|
1125
|
-
tenantId: string;
|
|
1126
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1127
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1128
|
-
status: 200;
|
|
1129
|
-
data: TenantResponse;
|
|
1130
|
-
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/tenants/${encodeURIComponent(tenantId)}`, {
|
|
1131
|
-
...opts,
|
|
1132
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1133
|
-
Authorization: authorization,
|
|
1134
|
-
"x-account-id": xAccountId
|
|
1135
|
-
})
|
|
1136
|
-
}));
|
|
1137
|
-
}
|
|
1138
|
-
export function getRuntime({ foundationId, runtimeId }: {
|
|
1139
|
-
foundationId: string;
|
|
1140
|
-
runtimeId: string;
|
|
1141
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1142
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1143
|
-
status: 200;
|
|
1144
|
-
data: RuntimeResponse;
|
|
1145
|
-
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/runtimes/${encodeURIComponent(runtimeId)}`, {
|
|
1146
|
-
...opts
|
|
1147
|
-
}));
|
|
1148
|
-
}
|
|
1149
1200
|
export function getProject({ authorization, xAccountId, foundationId, projectId }: {
|
|
1150
1201
|
authorization: string;
|
|
1151
1202
|
xAccountId?: string;
|
|
@@ -1338,6 +1389,46 @@ export function deleteCertificate({ authorization, xAccountId, foundationId, cer
|
|
|
1338
1389
|
})
|
|
1339
1390
|
}));
|
|
1340
1391
|
}
|
|
1392
|
+
export function getBoundary({ foundationId, boundaryId }: {
|
|
1393
|
+
foundationId: string;
|
|
1394
|
+
boundaryId: string;
|
|
1395
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1396
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1397
|
+
status: 200;
|
|
1398
|
+
data: BoundaryResponse;
|
|
1399
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}`, {
|
|
1400
|
+
...opts
|
|
1401
|
+
}));
|
|
1402
|
+
}
|
|
1403
|
+
export function deleteBoundary({ foundationId, boundaryId }: {
|
|
1404
|
+
foundationId: string;
|
|
1405
|
+
boundaryId: string;
|
|
1406
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1407
|
+
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}`, {
|
|
1408
|
+
...opts,
|
|
1409
|
+
method: "DELETE"
|
|
1410
|
+
}));
|
|
1411
|
+
}
|
|
1412
|
+
export function getBoundarySso({ foundationId, boundarySsoId }: {
|
|
1413
|
+
foundationId: string;
|
|
1414
|
+
boundarySsoId: string;
|
|
1415
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1416
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1417
|
+
status: 200;
|
|
1418
|
+
data: BoundarySsoResponse;
|
|
1419
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso/${encodeURIComponent(boundarySsoId)}`, {
|
|
1420
|
+
...opts
|
|
1421
|
+
}));
|
|
1422
|
+
}
|
|
1423
|
+
export function deleteBoundarySso({ foundationId, boundarySsoId }: {
|
|
1424
|
+
foundationId: string;
|
|
1425
|
+
boundarySsoId: string;
|
|
1426
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1427
|
+
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso/${encodeURIComponent(boundarySsoId)}`, {
|
|
1428
|
+
...opts,
|
|
1429
|
+
method: "DELETE"
|
|
1430
|
+
}));
|
|
1431
|
+
}
|
|
1341
1432
|
export function deleteFolder({ authorization, xAccountId, foundationId, folderId }: {
|
|
1342
1433
|
authorization: string;
|
|
1343
1434
|
xAccountId?: string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
2
|
import {
|
|
3
|
+
createBoundary,
|
|
4
|
+
createBoundarySso,
|
|
3
5
|
createCertificate,
|
|
4
6
|
createCidr,
|
|
5
7
|
createDnsRecord,
|
|
@@ -8,10 +10,10 @@ import {
|
|
|
8
10
|
createFoundation,
|
|
9
11
|
createNetwork,
|
|
10
12
|
createProject,
|
|
11
|
-
createRuntime,
|
|
12
|
-
createTenant,
|
|
13
13
|
createVpn,
|
|
14
14
|
defaults,
|
|
15
|
+
deleteBoundary,
|
|
16
|
+
deleteBoundarySso,
|
|
15
17
|
deleteCertificate,
|
|
16
18
|
deleteCidr,
|
|
17
19
|
deleteDnsRecord,
|
|
@@ -20,6 +22,8 @@ import {
|
|
|
20
22
|
deleteNetwork,
|
|
21
23
|
deleteProject,
|
|
22
24
|
deleteVpn,
|
|
25
|
+
getBoundary,
|
|
26
|
+
getBoundarySso,
|
|
23
27
|
getCertificate,
|
|
24
28
|
getFolder,
|
|
25
29
|
getFolderTags,
|
|
@@ -27,15 +31,21 @@ import {
|
|
|
27
31
|
getNetwork,
|
|
28
32
|
getProject,
|
|
29
33
|
getVpnConfiguration,
|
|
34
|
+
listBoundary,
|
|
35
|
+
listBoundarySso,
|
|
30
36
|
listCertificates,
|
|
31
37
|
listCidr,
|
|
32
38
|
listDnsRecord,
|
|
33
39
|
listDnsZone,
|
|
34
40
|
listFoundations,
|
|
35
41
|
listNetwork,
|
|
36
|
-
listRuntime,
|
|
37
|
-
listTenant,
|
|
38
42
|
listVpns,
|
|
43
|
+
putBoundaryDescription,
|
|
44
|
+
putBoundaryPolicyDocument,
|
|
45
|
+
putBoundarySsoDescription,
|
|
46
|
+
putBoundarySsoPolicyDocument,
|
|
47
|
+
putBoundarySsoTags,
|
|
48
|
+
putBoundaryTags,
|
|
39
49
|
putCertificateTags,
|
|
40
50
|
putCidrTags,
|
|
41
51
|
putDnsZoneTags,
|
|
@@ -148,22 +158,6 @@ class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
|
148
158
|
*/
|
|
149
159
|
getNetworkById = this.query(removeAuthorizationParam(getNetwork))
|
|
150
160
|
/**
|
|
151
|
-
* Get a list of tenants
|
|
152
|
-
*/
|
|
153
|
-
listTenants = this.query(removeAuthorizationParam(listTenant))
|
|
154
|
-
/**
|
|
155
|
-
* Create a tenant
|
|
156
|
-
*/
|
|
157
|
-
createTenant = this.mutation(removeAuthorizationParam(createTenant))
|
|
158
|
-
/**
|
|
159
|
-
* Get a list of runtimes
|
|
160
|
-
*/
|
|
161
|
-
listRuntimes = this.query(removeAuthorizationParam(listRuntime))
|
|
162
|
-
/**
|
|
163
|
-
* Create a runtime
|
|
164
|
-
*/
|
|
165
|
-
createRuntime = this.mutation(removeAuthorizationParam(createRuntime))
|
|
166
|
-
/**
|
|
167
161
|
* Get a list of tags in folder
|
|
168
162
|
*/
|
|
169
163
|
getFolderTags = this.query(removeAuthorizationParam(getFolderTags))
|
|
@@ -227,6 +221,62 @@ class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
|
227
221
|
* Delete a CIDR
|
|
228
222
|
*/
|
|
229
223
|
deleteCidr = this.mutation(removeAuthorizationParam(deleteCidr))
|
|
224
|
+
/**
|
|
225
|
+
* Get a list of foundation boundaries
|
|
226
|
+
*/
|
|
227
|
+
listBoundaries = this.query(removeAuthorizationParam(listBoundary))
|
|
228
|
+
/**
|
|
229
|
+
* Get a list of foundation sso boundaries
|
|
230
|
+
*/
|
|
231
|
+
listSSOBoundaries = this.query(removeAuthorizationParam(listBoundarySso))
|
|
232
|
+
/**
|
|
233
|
+
* Create a boundary
|
|
234
|
+
*/
|
|
235
|
+
createBoundary = this.mutation(removeAuthorizationParam(createBoundary))
|
|
236
|
+
/**
|
|
237
|
+
* Create a sso boundary
|
|
238
|
+
*/
|
|
239
|
+
createSSOBoundary = this.mutation(removeAuthorizationParam(createBoundarySso))
|
|
240
|
+
/**
|
|
241
|
+
* Get details of a boundary
|
|
242
|
+
*/
|
|
243
|
+
getBoundary = this.query(removeAuthorizationParam(getBoundary))
|
|
244
|
+
/**
|
|
245
|
+
* Get details of a sso boundary
|
|
246
|
+
*/
|
|
247
|
+
getSSOBoundary = this.query(removeAuthorizationParam(getBoundarySso))
|
|
248
|
+
/**
|
|
249
|
+
* Delete a boundary
|
|
250
|
+
*/
|
|
251
|
+
deleteBoundary = this.mutation(removeAuthorizationParam(deleteBoundary))
|
|
252
|
+
/**
|
|
253
|
+
* Delete a sso boundary
|
|
254
|
+
*/
|
|
255
|
+
deleteSSOBoundary = this.mutation(removeAuthorizationParam(deleteBoundarySso))
|
|
256
|
+
/**
|
|
257
|
+
* Edit boundary tags
|
|
258
|
+
*/
|
|
259
|
+
editBoundaryTags = this.mutation(removeAuthorizationParam(putBoundaryTags))
|
|
260
|
+
/**
|
|
261
|
+
* Edit sso boundary tags
|
|
262
|
+
*/
|
|
263
|
+
editSSOBoundaryTags = this.mutation(removeAuthorizationParam(putBoundarySsoTags))
|
|
264
|
+
/**
|
|
265
|
+
* Edit boundary policy document
|
|
266
|
+
*/
|
|
267
|
+
editBoundaryPolicyDocument = this.mutation(removeAuthorizationParam(putBoundaryPolicyDocument))
|
|
268
|
+
/**
|
|
269
|
+
* Edit sso boundary policy document
|
|
270
|
+
*/
|
|
271
|
+
editSSOBoundaryPolicyDocument = this.mutation(removeAuthorizationParam(putBoundarySsoPolicyDocument))
|
|
272
|
+
/**
|
|
273
|
+
* Edit boundary description
|
|
274
|
+
*/
|
|
275
|
+
editBoundaryDescription = this.mutation(removeAuthorizationParam(putBoundaryDescription))
|
|
276
|
+
/**
|
|
277
|
+
* Edit sso boundary description
|
|
278
|
+
*/
|
|
279
|
+
editSSOBoundaryDescription = this.mutation(removeAuthorizationParam(putBoundarySsoDescription))
|
|
230
280
|
}
|
|
231
281
|
|
|
232
282
|
export const cloudPlatformClient = new CloudPlatformClient()
|