@stack-spot/portal-network 0.219.0 → 0.220.1
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 +14 -0
- package/dist/api/cloudPlatform.d.ts +188 -95
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +118 -46
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +146 -34
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +181 -37
- package/dist/client/cloud-platform.js.map +1 -1
- package/package.json +1 -1
- package/src/api/cloudPlatform.ts +334 -147
- package/src/client/cloud-platform.ts +100 -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;
|
|
@@ -34,6 +36,7 @@ export type RoleSpec = {
|
|
|
34
36
|
foundation: RoleSpecPermission;
|
|
35
37
|
network: RoleSpecPermission;
|
|
36
38
|
project: RoleSpecPermission;
|
|
39
|
+
serviceControlPolicy: RoleSpecPermission;
|
|
37
40
|
vpn: RoleSpecPermission;
|
|
38
41
|
};
|
|
39
42
|
export type Role = {
|
|
@@ -64,6 +67,61 @@ export type VpnResponse = {
|
|
|
64
67
|
updatedAt: string;
|
|
65
68
|
deletedAt?: string;
|
|
66
69
|
};
|
|
70
|
+
export type ServiceControlPolicyMetadata = {
|
|
71
|
+
creationTimestamp?: string;
|
|
72
|
+
deletionTimestamp?: string;
|
|
73
|
+
/** Universally Unique Lexicographically Sortable Identifier */
|
|
74
|
+
id?: string;
|
|
75
|
+
};
|
|
76
|
+
export type ServiceControlPolicySpecTarget = {
|
|
77
|
+
folderIds: string[];
|
|
78
|
+
projectIds: string[];
|
|
79
|
+
};
|
|
80
|
+
export type ServiceControlPolicySpec = {
|
|
81
|
+
/** Universally Unique Lexicographically Sortable Identifier */
|
|
82
|
+
foundationId: string;
|
|
83
|
+
name: string;
|
|
84
|
+
description: string;
|
|
85
|
+
content: string;
|
|
86
|
+
target: ServiceControlPolicySpecTarget;
|
|
87
|
+
tags: Tag[];
|
|
88
|
+
};
|
|
89
|
+
export type ServiceControlPolicyStatus = {
|
|
90
|
+
state: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
91
|
+
message?: string;
|
|
92
|
+
lastUpdateTimestamp?: string;
|
|
93
|
+
};
|
|
94
|
+
export type ServiceControlPolicy = {
|
|
95
|
+
metadata?: ServiceControlPolicyMetadata;
|
|
96
|
+
spec: ServiceControlPolicySpec;
|
|
97
|
+
status?: ServiceControlPolicyStatus;
|
|
98
|
+
};
|
|
99
|
+
export type SecTool = {
|
|
100
|
+
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
101
|
+
};
|
|
102
|
+
export type SecTools = {
|
|
103
|
+
guardDuty: SecTool;
|
|
104
|
+
inspector: SecTool;
|
|
105
|
+
securityHub: SecTool;
|
|
106
|
+
};
|
|
107
|
+
export type FoundationDetails = {
|
|
108
|
+
name: string;
|
|
109
|
+
description: string;
|
|
110
|
+
cloudProvider: string;
|
|
111
|
+
region: string;
|
|
112
|
+
secTools: SecTools;
|
|
113
|
+
secProjectTags: Tag[];
|
|
114
|
+
};
|
|
115
|
+
export type FoundationResponse = {
|
|
116
|
+
stackSpotAccountId: string;
|
|
117
|
+
foundationId: string;
|
|
118
|
+
details: FoundationDetails;
|
|
119
|
+
tags: Tag[];
|
|
120
|
+
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
121
|
+
createdAt: string;
|
|
122
|
+
updatedAt: string;
|
|
123
|
+
deletedAt?: string;
|
|
124
|
+
};
|
|
67
125
|
export type ProjectDetails = {
|
|
68
126
|
name: string;
|
|
69
127
|
folderName: string;
|
|
@@ -210,34 +268,39 @@ export type CertificateResponse = {
|
|
|
210
268
|
updatedAt: string;
|
|
211
269
|
deletedAt?: string;
|
|
212
270
|
};
|
|
213
|
-
export type
|
|
214
|
-
|
|
271
|
+
export type BoundaryDetails = {
|
|
272
|
+
name: string;
|
|
273
|
+
description: string;
|
|
274
|
+
policyDocument: string;
|
|
215
275
|
};
|
|
216
|
-
export type
|
|
276
|
+
export type BoundaryResponse = {
|
|
277
|
+
foundationId: string;
|
|
278
|
+
boundaryId: string;
|
|
279
|
+
details: BoundaryDetails;
|
|
217
280
|
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
281
|
+
tags: Tag[];
|
|
282
|
+
createdAt: string;
|
|
283
|
+
updatedAt: string;
|
|
284
|
+
deletedAt?: string;
|
|
218
285
|
};
|
|
219
|
-
export type
|
|
220
|
-
guardDuty: SecTool;
|
|
221
|
-
inspector: SecTool;
|
|
222
|
-
securityHub: SecTool;
|
|
223
|
-
};
|
|
224
|
-
export type FoundationDetails = {
|
|
286
|
+
export type BoundarySsoDetails = {
|
|
225
287
|
name: string;
|
|
226
288
|
description: string;
|
|
227
|
-
|
|
228
|
-
region: string;
|
|
229
|
-
secTools: SecTools;
|
|
289
|
+
policyDocument: string;
|
|
230
290
|
};
|
|
231
|
-
export type
|
|
232
|
-
stackSpotAccountId: string;
|
|
291
|
+
export type BoundarySsoResponse = {
|
|
233
292
|
foundationId: string;
|
|
234
|
-
|
|
235
|
-
|
|
293
|
+
boundarySSOId: string;
|
|
294
|
+
details: BoundarySsoDetails;
|
|
236
295
|
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
296
|
+
tags: Tag[];
|
|
237
297
|
createdAt: string;
|
|
238
298
|
updatedAt: string;
|
|
239
299
|
deletedAt?: string;
|
|
240
300
|
};
|
|
301
|
+
export type ListRole = {
|
|
302
|
+
content: Role[];
|
|
303
|
+
};
|
|
241
304
|
export type ListFoundationResponse = {
|
|
242
305
|
stackSpotAccountId: string;
|
|
243
306
|
pendingResources: boolean;
|
|
@@ -266,56 +329,11 @@ export type CreateVpnRequest = {
|
|
|
266
329
|
destinationCidrBlock: string;
|
|
267
330
|
tags?: Tag[];
|
|
268
331
|
};
|
|
269
|
-
export type
|
|
270
|
-
|
|
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;
|
|
332
|
+
export type ListServiceControlPolicy = {
|
|
333
|
+
/** Universally Unique Lexicographically Sortable Identifier */
|
|
334
|
+
foundationId?: string;
|
|
311
335
|
pendingResources: boolean;
|
|
312
|
-
content:
|
|
313
|
-
};
|
|
314
|
-
export type CreateRuntimeRequest = {
|
|
315
|
-
projectId: string;
|
|
316
|
-
name: string;
|
|
317
|
-
publicCidrs: string[];
|
|
318
|
-
clusterAdminRoles: string[];
|
|
336
|
+
content: ServiceControlPolicy[];
|
|
319
337
|
};
|
|
320
338
|
export type ListProjectResponse = {
|
|
321
339
|
stackSpotAccountId: string;
|
|
@@ -412,6 +430,29 @@ export type ImportCertificateRequest = {
|
|
|
412
430
|
certificatePrivateKey: string;
|
|
413
431
|
certificateChain?: string;
|
|
414
432
|
};
|
|
433
|
+
export type ListBoundaryResponse = {
|
|
434
|
+
foundationId: string;
|
|
435
|
+
pendingResources: boolean;
|
|
436
|
+
content: BoundaryResponse[];
|
|
437
|
+
};
|
|
438
|
+
export type JsonNode = any;
|
|
439
|
+
export type CreateBoundaryRequest = {
|
|
440
|
+
name: string;
|
|
441
|
+
description: string;
|
|
442
|
+
policyDocument: JsonNode;
|
|
443
|
+
tags: Tag[];
|
|
444
|
+
};
|
|
445
|
+
export type ListBoundarySsoResponse = {
|
|
446
|
+
foundationId: string;
|
|
447
|
+
pendingResources: boolean;
|
|
448
|
+
content: BoundarySsoResponse[];
|
|
449
|
+
};
|
|
450
|
+
export type CreateBoundarySsoRequest = {
|
|
451
|
+
name: string;
|
|
452
|
+
description: string;
|
|
453
|
+
policyDocument: JsonNode;
|
|
454
|
+
tags: Tag[];
|
|
455
|
+
};
|
|
415
456
|
export type Configuration = {
|
|
416
457
|
ikev1: string;
|
|
417
458
|
ikev2: string;
|
|
@@ -472,6 +513,56 @@ export function putVpnTags({ authorization, xAccountId, foundationId, vpnId, bod
|
|
|
472
513
|
})
|
|
473
514
|
})));
|
|
474
515
|
}
|
|
516
|
+
export function getServiceControlPolicy({ foundationId, serviceControlPolicyId }: {
|
|
517
|
+
foundationId: string;
|
|
518
|
+
serviceControlPolicyId: string;
|
|
519
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
520
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
521
|
+
status: 200;
|
|
522
|
+
data: ServiceControlPolicy;
|
|
523
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/service-control-policies/${encodeURIComponent(serviceControlPolicyId)}`, {
|
|
524
|
+
...opts
|
|
525
|
+
}));
|
|
526
|
+
}
|
|
527
|
+
export function putServiceControlPolicy({ foundationId, serviceControlPolicyId, serviceControlPolicy }: {
|
|
528
|
+
foundationId: string;
|
|
529
|
+
serviceControlPolicyId: string;
|
|
530
|
+
serviceControlPolicy: ServiceControlPolicy;
|
|
531
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
532
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
533
|
+
status: 202;
|
|
534
|
+
data: ServiceControlPolicy;
|
|
535
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/service-control-policies/${encodeURIComponent(serviceControlPolicyId)}`, oazapfts.json({
|
|
536
|
+
...opts,
|
|
537
|
+
method: "PUT",
|
|
538
|
+
body: serviceControlPolicy
|
|
539
|
+
})));
|
|
540
|
+
}
|
|
541
|
+
export function deleteServiceControlPolicy({ foundationId, serviceControlPolicyId }: {
|
|
542
|
+
foundationId: string;
|
|
543
|
+
serviceControlPolicyId: string;
|
|
544
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
545
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
546
|
+
status: 202;
|
|
547
|
+
data: ServiceControlPolicy;
|
|
548
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/service-control-policies/${encodeURIComponent(serviceControlPolicyId)}`, {
|
|
549
|
+
...opts,
|
|
550
|
+
method: "DELETE"
|
|
551
|
+
}));
|
|
552
|
+
}
|
|
553
|
+
export function putFoundationSecProjectTags({ foundationId, body }: {
|
|
554
|
+
foundationId: string;
|
|
555
|
+
body: Tag[];
|
|
556
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
557
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
558
|
+
status: 202;
|
|
559
|
+
data: FoundationResponse;
|
|
560
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/sec-project-tags`, oazapfts.json({
|
|
561
|
+
...opts,
|
|
562
|
+
method: "PUT",
|
|
563
|
+
body
|
|
564
|
+
})));
|
|
565
|
+
}
|
|
475
566
|
export function putProjectTags({ authorization, xAccountId, foundationId, projectId, body }: {
|
|
476
567
|
authorization: string;
|
|
477
568
|
xAccountId?: string;
|
|
@@ -629,6 +720,90 @@ export function putCertificateTags({ authorization, xAccountId, foundationId, ce
|
|
|
629
720
|
})
|
|
630
721
|
})));
|
|
631
722
|
}
|
|
723
|
+
export function putBoundaryTags({ foundationId, boundaryId, body }: {
|
|
724
|
+
foundationId: string;
|
|
725
|
+
boundaryId: string;
|
|
726
|
+
body: Tag[];
|
|
727
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
728
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
729
|
+
status: 202;
|
|
730
|
+
data: BoundaryResponse;
|
|
731
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}/tags`, oazapfts.json({
|
|
732
|
+
...opts,
|
|
733
|
+
method: "PUT",
|
|
734
|
+
body
|
|
735
|
+
})));
|
|
736
|
+
}
|
|
737
|
+
export function putBoundaryPolicyDocument({ foundationId, boundaryId, body }: {
|
|
738
|
+
foundationId: string;
|
|
739
|
+
boundaryId: string;
|
|
740
|
+
body: string;
|
|
741
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
742
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
743
|
+
status: 202;
|
|
744
|
+
data: BoundaryResponse;
|
|
745
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}/policy-document`, {
|
|
746
|
+
...opts,
|
|
747
|
+
method: "PUT",
|
|
748
|
+
body
|
|
749
|
+
}));
|
|
750
|
+
}
|
|
751
|
+
export function putBoundaryDescription({ foundationId, boundaryId, body }: {
|
|
752
|
+
foundationId: string;
|
|
753
|
+
boundaryId: string;
|
|
754
|
+
body: string;
|
|
755
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
756
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
757
|
+
status: 202;
|
|
758
|
+
data: BoundaryResponse;
|
|
759
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}/description`, {
|
|
760
|
+
...opts,
|
|
761
|
+
method: "PUT",
|
|
762
|
+
body
|
|
763
|
+
}));
|
|
764
|
+
}
|
|
765
|
+
export function putBoundarySsoTags({ foundationId, boundarySsoId, body }: {
|
|
766
|
+
foundationId: string;
|
|
767
|
+
boundarySsoId: string;
|
|
768
|
+
body: Tag[];
|
|
769
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
770
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
771
|
+
status: 202;
|
|
772
|
+
data: BoundarySsoResponse;
|
|
773
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso/${encodeURIComponent(boundarySsoId)}/tags`, oazapfts.json({
|
|
774
|
+
...opts,
|
|
775
|
+
method: "PUT",
|
|
776
|
+
body
|
|
777
|
+
})));
|
|
778
|
+
}
|
|
779
|
+
export function putBoundarySsoPolicyDocument({ foundationId, boundarySsoId, body }: {
|
|
780
|
+
foundationId: string;
|
|
781
|
+
boundarySsoId: string;
|
|
782
|
+
body: string;
|
|
783
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
784
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
785
|
+
status: 202;
|
|
786
|
+
data: BoundarySsoResponse;
|
|
787
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso/${encodeURIComponent(boundarySsoId)}/policy-document`, {
|
|
788
|
+
...opts,
|
|
789
|
+
method: "PUT",
|
|
790
|
+
body
|
|
791
|
+
}));
|
|
792
|
+
}
|
|
793
|
+
export function putBoundarySsoDescription({ foundationId, boundarySsoId, body }: {
|
|
794
|
+
foundationId: string;
|
|
795
|
+
boundarySsoId: string;
|
|
796
|
+
body: string;
|
|
797
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
798
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
799
|
+
status: 202;
|
|
800
|
+
data: BoundarySsoResponse;
|
|
801
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso/${encodeURIComponent(boundarySsoId)}/description`, {
|
|
802
|
+
...opts,
|
|
803
|
+
method: "PUT",
|
|
804
|
+
body
|
|
805
|
+
}));
|
|
806
|
+
}
|
|
632
807
|
export function listRole(opts?: Oazapfts.RequestOpts) {
|
|
633
808
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
634
809
|
status: 200;
|
|
@@ -717,73 +892,27 @@ export function createVpn({ authorization, xAccountId, foundationId, createVpnRe
|
|
|
717
892
|
})
|
|
718
893
|
})));
|
|
719
894
|
}
|
|
720
|
-
export function
|
|
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 }: {
|
|
895
|
+
export function listServiceControlPolicy({ foundationId }: {
|
|
756
896
|
foundationId: string;
|
|
757
|
-
tenantId?: string;
|
|
758
|
-
projectId?: string;
|
|
759
897
|
}, opts?: Oazapfts.RequestOpts) {
|
|
760
898
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
761
899
|
status: 200;
|
|
762
|
-
data:
|
|
763
|
-
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/
|
|
764
|
-
tenantId,
|
|
765
|
-
projectId
|
|
766
|
-
}))}`, {
|
|
900
|
+
data: ListServiceControlPolicy;
|
|
901
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/service-control-policies`, {
|
|
767
902
|
...opts
|
|
768
903
|
}));
|
|
769
904
|
}
|
|
770
|
-
export function
|
|
771
|
-
authorization: string;
|
|
772
|
-
xAccountId?: string;
|
|
905
|
+
export function createServiceControlPolicy({ foundationId, serviceControlPolicy }: {
|
|
773
906
|
foundationId: string;
|
|
774
|
-
|
|
907
|
+
serviceControlPolicy: ServiceControlPolicy;
|
|
775
908
|
}, opts?: Oazapfts.RequestOpts) {
|
|
776
909
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
777
910
|
status: 202;
|
|
778
|
-
data:
|
|
779
|
-
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/
|
|
911
|
+
data: ServiceControlPolicy;
|
|
912
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/service-control-policies`, oazapfts.json({
|
|
780
913
|
...opts,
|
|
781
914
|
method: "POST",
|
|
782
|
-
body:
|
|
783
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
784
|
-
Authorization: authorization,
|
|
785
|
-
"x-account-id": xAccountId
|
|
786
|
-
})
|
|
915
|
+
body: serviceControlPolicy
|
|
787
916
|
})));
|
|
788
917
|
}
|
|
789
918
|
export function listProject({ authorization, xAccountId, foundationId, parentFolderId }: {
|
|
@@ -1053,6 +1182,52 @@ export function createCertificate({ authorization, xAccountId, foundationId, bod
|
|
|
1053
1182
|
})
|
|
1054
1183
|
})));
|
|
1055
1184
|
}
|
|
1185
|
+
export function listBoundary({ foundationId }: {
|
|
1186
|
+
foundationId: string;
|
|
1187
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1188
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1189
|
+
status: 200;
|
|
1190
|
+
data: ListBoundaryResponse;
|
|
1191
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries`, {
|
|
1192
|
+
...opts
|
|
1193
|
+
}));
|
|
1194
|
+
}
|
|
1195
|
+
export function createBoundary({ foundationId, createBoundaryRequest }: {
|
|
1196
|
+
foundationId: string;
|
|
1197
|
+
createBoundaryRequest: CreateBoundaryRequest;
|
|
1198
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1199
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1200
|
+
status: 202;
|
|
1201
|
+
data: BoundaryResponse;
|
|
1202
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries`, oazapfts.json({
|
|
1203
|
+
...opts,
|
|
1204
|
+
method: "POST",
|
|
1205
|
+
body: createBoundaryRequest
|
|
1206
|
+
})));
|
|
1207
|
+
}
|
|
1208
|
+
export function listBoundarySso({ foundationId }: {
|
|
1209
|
+
foundationId: string;
|
|
1210
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1211
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1212
|
+
status: 200;
|
|
1213
|
+
data: ListBoundarySsoResponse;
|
|
1214
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso`, {
|
|
1215
|
+
...opts
|
|
1216
|
+
}));
|
|
1217
|
+
}
|
|
1218
|
+
export function createBoundarySso({ foundationId, createBoundarySsoRequest }: {
|
|
1219
|
+
foundationId: string;
|
|
1220
|
+
createBoundarySsoRequest: CreateBoundarySsoRequest;
|
|
1221
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1222
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1223
|
+
status: 202;
|
|
1224
|
+
data: BoundarySsoResponse;
|
|
1225
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso`, oazapfts.json({
|
|
1226
|
+
...opts,
|
|
1227
|
+
method: "POST",
|
|
1228
|
+
body: createBoundarySsoRequest
|
|
1229
|
+
})));
|
|
1230
|
+
}
|
|
1056
1231
|
export function getFoundation({ authorization, xAccountId, foundationId }: {
|
|
1057
1232
|
authorization: string;
|
|
1058
1233
|
xAccountId?: string;
|
|
@@ -1118,34 +1293,6 @@ export function getVpnConfiguration({ authorization, xAccountId, foundationId, v
|
|
|
1118
1293
|
})
|
|
1119
1294
|
}));
|
|
1120
1295
|
}
|
|
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
1296
|
export function getProject({ authorization, xAccountId, foundationId, projectId }: {
|
|
1150
1297
|
authorization: string;
|
|
1151
1298
|
xAccountId?: string;
|
|
@@ -1338,6 +1485,46 @@ export function deleteCertificate({ authorization, xAccountId, foundationId, cer
|
|
|
1338
1485
|
})
|
|
1339
1486
|
}));
|
|
1340
1487
|
}
|
|
1488
|
+
export function getBoundary({ foundationId, boundaryId }: {
|
|
1489
|
+
foundationId: string;
|
|
1490
|
+
boundaryId: string;
|
|
1491
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1492
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1493
|
+
status: 200;
|
|
1494
|
+
data: BoundaryResponse;
|
|
1495
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}`, {
|
|
1496
|
+
...opts
|
|
1497
|
+
}));
|
|
1498
|
+
}
|
|
1499
|
+
export function deleteBoundary({ foundationId, boundaryId }: {
|
|
1500
|
+
foundationId: string;
|
|
1501
|
+
boundaryId: string;
|
|
1502
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1503
|
+
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}`, {
|
|
1504
|
+
...opts,
|
|
1505
|
+
method: "DELETE"
|
|
1506
|
+
}));
|
|
1507
|
+
}
|
|
1508
|
+
export function getBoundarySso({ foundationId, boundarySsoId }: {
|
|
1509
|
+
foundationId: string;
|
|
1510
|
+
boundarySsoId: string;
|
|
1511
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1512
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1513
|
+
status: 200;
|
|
1514
|
+
data: BoundarySsoResponse;
|
|
1515
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso/${encodeURIComponent(boundarySsoId)}`, {
|
|
1516
|
+
...opts
|
|
1517
|
+
}));
|
|
1518
|
+
}
|
|
1519
|
+
export function deleteBoundarySso({ foundationId, boundarySsoId }: {
|
|
1520
|
+
foundationId: string;
|
|
1521
|
+
boundarySsoId: string;
|
|
1522
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1523
|
+
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso/${encodeURIComponent(boundarySsoId)}`, {
|
|
1524
|
+
...opts,
|
|
1525
|
+
method: "DELETE"
|
|
1526
|
+
}));
|
|
1527
|
+
}
|
|
1341
1528
|
export function deleteFolder({ authorization, xAccountId, foundationId, folderId }: {
|
|
1342
1529
|
authorization: string;
|
|
1343
1530
|
xAccountId?: string;
|