@stack-spot/portal-network 1.0.0-dev.1769537511491 → 1.0.0-dev.1769793051111
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 +42 -0
- package/dist/api/accountAssetManager.d.ts +1 -0
- package/dist/api/accountAssetManager.d.ts.map +1 -1
- package/dist/api/accountAssetManager.js.map +1 -1
- package/dist/api/cloudPlatform.d.ts +79 -33
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +86 -76
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/codeShift.d.ts +7 -3
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +3 -2
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/genAiInference.d.ts +54 -3
- package/dist/api/genAiInference.d.ts.map +1 -1
- package/dist/api/genAiInference.js +55 -2
- package/dist/api/genAiInference.js.map +1 -1
- package/dist/apis.json +3 -3
- package/dist/client/account.d.ts +16 -0
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +9 -0
- package/dist/client/account.js.map +1 -1
- package/dist/client/ai.d.ts +5 -28
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +1 -560
- package/dist/client/ai.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +4 -12
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +5 -14
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/code-shift.d.ts +2 -1
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/discover.d.ts +11 -4
- package/dist/client/discover.d.ts.map +1 -1
- package/dist/client/discover.js +140 -136
- package/dist/client/discover.js.map +1 -1
- package/dist/client/gen-ai-inference.d.ts +4 -0
- package/dist/client/gen-ai-inference.d.ts.map +1 -1
- package/dist/client/gen-ai-inference.js +267 -0
- package/dist/client/gen-ai-inference.js.map +1 -1
- package/dist/client/types.d.ts +13 -14
- package/dist/client/types.d.ts.map +1 -1
- package/dist/utils/StreamedJson.d.ts +7 -1
- package/dist/utils/StreamedJson.d.ts.map +1 -1
- package/dist/utils/StreamedJson.js +10 -2
- package/dist/utils/StreamedJson.js.map +1 -1
- package/package.json +1 -1
- package/src/api/accountAssetManager.ts +1 -0
- package/src/api/cloudPlatform.ts +170 -111
- package/src/api/codeShift.ts +9 -4
- package/src/api/genAiInference.ts +124 -4
- package/src/apis.json +8 -8
- package/src/client/account.ts +4 -0
- package/src/client/ai.ts +1 -626
- package/src/client/cloud-platform.ts +4 -9
- package/src/client/discover.ts +151 -137
- package/src/client/gen-ai-inference.ts +281 -0
- package/src/client/types.ts +14 -14
- package/src/utils/StreamedJson.tsx +11 -2
package/src/api/cloudPlatform.ts
CHANGED
|
@@ -8,11 +8,37 @@ import * as Oazapfts from "@oazapfts/runtime";
|
|
|
8
8
|
import * as QS from "@oazapfts/runtime/query";
|
|
9
9
|
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
10
|
headers: {},
|
|
11
|
-
baseUrl: "https://cloud-cloud-
|
|
11
|
+
baseUrl: "https://cloud-cloud-foundation-api.stg.stackspot.com",
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {
|
|
15
|
-
generatedServerUrl: "https://cloud-cloud-
|
|
15
|
+
generatedServerUrl: "https://cloud-cloud-foundation-api.stg.stackspot.com"
|
|
16
|
+
};
|
|
17
|
+
export type RoleMetadata = {
|
|
18
|
+
creationTimestamp?: string;
|
|
19
|
+
deletionTimestamp?: string;
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
export type RoleSpecPermission = {
|
|
23
|
+
create: boolean;
|
|
24
|
+
read: boolean;
|
|
25
|
+
update: boolean;
|
|
26
|
+
"delete": boolean;
|
|
27
|
+
};
|
|
28
|
+
export type RoleSpec = {
|
|
29
|
+
certificate: RoleSpecPermission;
|
|
30
|
+
cidr: RoleSpecPermission;
|
|
31
|
+
dnsRecord: RoleSpecPermission;
|
|
32
|
+
dnsZone: RoleSpecPermission;
|
|
33
|
+
folder: RoleSpecPermission;
|
|
34
|
+
foundation: RoleSpecPermission;
|
|
35
|
+
network: RoleSpecPermission;
|
|
36
|
+
project: RoleSpecPermission;
|
|
37
|
+
vpn: RoleSpecPermission;
|
|
38
|
+
};
|
|
39
|
+
export type Role = {
|
|
40
|
+
metadata: RoleMetadata;
|
|
41
|
+
spec: RoleSpec;
|
|
16
42
|
};
|
|
17
43
|
export type Tag = {
|
|
18
44
|
key: string;
|
|
@@ -33,7 +59,7 @@ export type VpnResponse = {
|
|
|
33
59
|
vpnId: string;
|
|
34
60
|
details: VpnDetails;
|
|
35
61
|
tags: Tag[];
|
|
36
|
-
status: "READY" | "PENDING" | "
|
|
62
|
+
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
37
63
|
createdAt: string;
|
|
38
64
|
updatedAt: string;
|
|
39
65
|
deletedAt?: string;
|
|
@@ -50,7 +76,7 @@ export type ProjectResponse = {
|
|
|
50
76
|
projectId: string;
|
|
51
77
|
details: ProjectDetails;
|
|
52
78
|
tags: Tag[];
|
|
53
|
-
status: "READY" | "PENDING" | "
|
|
79
|
+
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
54
80
|
createdAt: string;
|
|
55
81
|
updatedAt: string;
|
|
56
82
|
deletedAt?: string;
|
|
@@ -64,7 +90,7 @@ export type NetworkSubnetDetails = {
|
|
|
64
90
|
export type NetworkDetails = {
|
|
65
91
|
cidrs?: string[];
|
|
66
92
|
name: string;
|
|
67
|
-
"type": "WORKLOAD";
|
|
93
|
+
"type": "WORKLOAD" | "OUTBOUND" | "CORE";
|
|
68
94
|
subnets: NetworkSubnetDetails[];
|
|
69
95
|
};
|
|
70
96
|
export type NetworkResponse = {
|
|
@@ -74,7 +100,7 @@ export type NetworkResponse = {
|
|
|
74
100
|
networkId: string;
|
|
75
101
|
details: NetworkDetails;
|
|
76
102
|
tags: Tag[];
|
|
77
|
-
status: "READY" | "PENDING" | "
|
|
103
|
+
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
78
104
|
createdAt: string;
|
|
79
105
|
updatedAt: string;
|
|
80
106
|
deletedAt?: string;
|
|
@@ -83,7 +109,7 @@ export type FolderContent = {
|
|
|
83
109
|
"type": "FOLDER" | "PROJECT";
|
|
84
110
|
id: string;
|
|
85
111
|
name: string;
|
|
86
|
-
status: "READY" | "PENDING" | "
|
|
112
|
+
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
87
113
|
};
|
|
88
114
|
export type FolderDetails = {
|
|
89
115
|
name: string;
|
|
@@ -97,7 +123,7 @@ export type FolderResponse = {
|
|
|
97
123
|
folderId: string;
|
|
98
124
|
details: FolderDetails;
|
|
99
125
|
tags: Tag[];
|
|
100
|
-
status: "READY" | "PENDING" | "
|
|
126
|
+
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
101
127
|
createdAt: string;
|
|
102
128
|
updatedAt: string;
|
|
103
129
|
deletedAt?: string;
|
|
@@ -112,7 +138,7 @@ export type DnsZoneResponse = {
|
|
|
112
138
|
dnsZoneId: string;
|
|
113
139
|
details: DnsZoneDetails;
|
|
114
140
|
tags: Tag[];
|
|
115
|
-
status: "READY" | "PENDING" | "
|
|
141
|
+
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
116
142
|
createdAt: string;
|
|
117
143
|
updatedAt: string;
|
|
118
144
|
deletedAt?: string;
|
|
@@ -131,7 +157,7 @@ export type DnsRecordResponse = {
|
|
|
131
157
|
dnsRecordId: string;
|
|
132
158
|
details: DnsRecordDetails;
|
|
133
159
|
tags: Tag[];
|
|
134
|
-
status: "READY" | "PENDING" | "
|
|
160
|
+
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
135
161
|
createdAt: string;
|
|
136
162
|
updatedAt: string;
|
|
137
163
|
deletedAt?: string;
|
|
@@ -151,7 +177,7 @@ export type CidrResponse = {
|
|
|
151
177
|
cidrId: string;
|
|
152
178
|
details: CidrDetails;
|
|
153
179
|
tags: Tag[];
|
|
154
|
-
status: "READY" | "PENDING" | "
|
|
180
|
+
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
155
181
|
createdAt: string;
|
|
156
182
|
updatedAt: string;
|
|
157
183
|
deletedAt?: string;
|
|
@@ -178,24 +204,36 @@ export type CertificateResponse = {
|
|
|
178
204
|
foundationId: string;
|
|
179
205
|
certificateId: string;
|
|
180
206
|
details: CertificateDetails;
|
|
181
|
-
status: "READY" | "PENDING" | "
|
|
207
|
+
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
182
208
|
tags: Tag[];
|
|
183
209
|
createdAt: string;
|
|
184
210
|
updatedAt: string;
|
|
185
211
|
deletedAt?: string;
|
|
186
212
|
};
|
|
213
|
+
export type ListRole = {
|
|
214
|
+
content: Role[];
|
|
215
|
+
};
|
|
216
|
+
export type SecTool = {
|
|
217
|
+
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
218
|
+
};
|
|
219
|
+
export type SecTools = {
|
|
220
|
+
guardDuty: SecTool;
|
|
221
|
+
inspector: SecTool;
|
|
222
|
+
securityHub: SecTool;
|
|
223
|
+
};
|
|
187
224
|
export type FoundationDetails = {
|
|
188
225
|
name: string;
|
|
189
226
|
description: string;
|
|
190
227
|
cloudProvider: string;
|
|
191
228
|
region: string;
|
|
229
|
+
secTools: SecTools;
|
|
192
230
|
};
|
|
193
231
|
export type FoundationResponse = {
|
|
194
232
|
stackSpotAccountId: string;
|
|
195
233
|
foundationId: string;
|
|
196
234
|
details: FoundationDetails;
|
|
197
235
|
tags: Tag[];
|
|
198
|
-
status: "READY" | "PENDING" | "
|
|
236
|
+
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
199
237
|
createdAt: string;
|
|
200
238
|
updatedAt: string;
|
|
201
239
|
deletedAt?: string;
|
|
@@ -210,6 +248,12 @@ export type CreateFoundationRequest = {
|
|
|
210
248
|
description: string;
|
|
211
249
|
cloudProvider: string;
|
|
212
250
|
region: string;
|
|
251
|
+
masterAccountId: string;
|
|
252
|
+
auditAccountId: string;
|
|
253
|
+
prefix: string;
|
|
254
|
+
orgId: string;
|
|
255
|
+
portfolioId: string;
|
|
256
|
+
logArchiveAccountId: string;
|
|
213
257
|
};
|
|
214
258
|
export type ListVpnResponse = {
|
|
215
259
|
stackSpotAccountId: string;
|
|
@@ -230,7 +274,7 @@ export type TenantResponse = {
|
|
|
230
274
|
foundationId: string;
|
|
231
275
|
tenantId: string;
|
|
232
276
|
details: TenantDetails;
|
|
233
|
-
status: "READY" | "PENDING" | "
|
|
277
|
+
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
234
278
|
createdAt: string;
|
|
235
279
|
updatedAt: string;
|
|
236
280
|
deletedAt?: string;
|
|
@@ -254,7 +298,7 @@ export type RuntimeResponse = {
|
|
|
254
298
|
tenantId: string;
|
|
255
299
|
runtimeId: string;
|
|
256
300
|
details: RuntimeDetails;
|
|
257
|
-
status: "READY" | "PENDING" | "
|
|
301
|
+
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
258
302
|
createdAt: string;
|
|
259
303
|
updatedAt: string;
|
|
260
304
|
deletedAt?: string;
|
|
@@ -296,8 +340,8 @@ export type ListNetworkResponse = {
|
|
|
296
340
|
export type CreateNetworkRequest = {
|
|
297
341
|
projectId: string;
|
|
298
342
|
prefixLength: number;
|
|
299
|
-
|
|
300
|
-
|
|
343
|
+
name: string;
|
|
344
|
+
"type": "WORKLOAD" | "OUTBOUND" | "CORE";
|
|
301
345
|
tags?: Tag[];
|
|
302
346
|
};
|
|
303
347
|
export type CreateFolderRequest = {
|
|
@@ -352,20 +396,20 @@ export type ListCertificateResponse = {
|
|
|
352
396
|
};
|
|
353
397
|
export type CreateCertificateRequestBase = {
|
|
354
398
|
tags?: Tag[];
|
|
355
|
-
certificateName: string;
|
|
356
399
|
forInbound: "TRUE" | "FALSE";
|
|
400
|
+
certificateName: string;
|
|
357
401
|
"type": string;
|
|
358
402
|
};
|
|
359
403
|
export type CreatePublicCertificateRequest = {
|
|
360
404
|
"type": "CreatePublicCertificateRequest";
|
|
361
405
|
} & CreateCertificateRequestBase & {
|
|
362
|
-
domainName
|
|
406
|
+
domainName: string;
|
|
363
407
|
};
|
|
364
408
|
export type ImportCertificateRequest = {
|
|
365
409
|
"type": "ImportCertificateRequest";
|
|
366
410
|
} & CreateCertificateRequestBase & {
|
|
367
|
-
certificateBody
|
|
368
|
-
certificatePrivateKey
|
|
411
|
+
certificateBody: string;
|
|
412
|
+
certificatePrivateKey: string;
|
|
369
413
|
certificateChain?: string;
|
|
370
414
|
};
|
|
371
415
|
export type Configuration = {
|
|
@@ -377,6 +421,37 @@ export type VpnConfigurationResponse = {
|
|
|
377
421
|
foundationId: string;
|
|
378
422
|
configuration: Configuration;
|
|
379
423
|
};
|
|
424
|
+
export function getRole({ roleName }: {
|
|
425
|
+
roleName: string;
|
|
426
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
427
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
428
|
+
status: 200;
|
|
429
|
+
data: Role;
|
|
430
|
+
}>(`/portal/roles/${encodeURIComponent(roleName)}`, {
|
|
431
|
+
...opts
|
|
432
|
+
}));
|
|
433
|
+
}
|
|
434
|
+
export function putRole({ roleName, role }: {
|
|
435
|
+
roleName: string;
|
|
436
|
+
role: Role;
|
|
437
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
438
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
439
|
+
status: 202;
|
|
440
|
+
data: Role;
|
|
441
|
+
}>(`/portal/roles/${encodeURIComponent(roleName)}`, oazapfts.json({
|
|
442
|
+
...opts,
|
|
443
|
+
method: "PUT",
|
|
444
|
+
body: role
|
|
445
|
+
})));
|
|
446
|
+
}
|
|
447
|
+
export function deleteRole({ roleName }: {
|
|
448
|
+
roleName: string;
|
|
449
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
450
|
+
return oazapfts.ok(oazapfts.fetchText(`/portal/roles/${encodeURIComponent(roleName)}`, {
|
|
451
|
+
...opts,
|
|
452
|
+
method: "DELETE"
|
|
453
|
+
}));
|
|
454
|
+
}
|
|
380
455
|
export function putVpnTags({ authorization, xAccountId, foundationId, vpnId, body }: {
|
|
381
456
|
authorization: string;
|
|
382
457
|
xAccountId?: string;
|
|
@@ -387,7 +462,7 @@ export function putVpnTags({ authorization, xAccountId, foundationId, vpnId, bod
|
|
|
387
462
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
388
463
|
status: 202;
|
|
389
464
|
data: VpnResponse;
|
|
390
|
-
}>(`/
|
|
465
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}/tags`, oazapfts.json({
|
|
391
466
|
...opts,
|
|
392
467
|
method: "PUT",
|
|
393
468
|
body,
|
|
@@ -407,7 +482,7 @@ export function putProjectTags({ authorization, xAccountId, foundationId, projec
|
|
|
407
482
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
408
483
|
status: 202;
|
|
409
484
|
data: ProjectResponse;
|
|
410
|
-
}>(`/
|
|
485
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/projects/${encodeURIComponent(projectId)}/tags`, oazapfts.json({
|
|
411
486
|
...opts,
|
|
412
487
|
method: "PUT",
|
|
413
488
|
body,
|
|
@@ -427,7 +502,7 @@ export function putNetworkTags({ authorization, xAccountId, foundationId, networ
|
|
|
427
502
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
428
503
|
status: 202;
|
|
429
504
|
data: NetworkResponse;
|
|
430
|
-
}>(`/
|
|
505
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}/tags`, oazapfts.json({
|
|
431
506
|
...opts,
|
|
432
507
|
method: "PUT",
|
|
433
508
|
body,
|
|
@@ -446,7 +521,7 @@ export function getFolderTags({ authorization, xAccountId, foundationId, folderI
|
|
|
446
521
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
447
522
|
status: 202;
|
|
448
523
|
data: Tag[];
|
|
449
|
-
}>(`/
|
|
524
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/folders/${encodeURIComponent(folderId)}/tags`, {
|
|
450
525
|
...opts,
|
|
451
526
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
452
527
|
Authorization: authorization,
|
|
@@ -464,7 +539,7 @@ export function putFolderTags({ authorization, xAccountId, foundationId, folderI
|
|
|
464
539
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
465
540
|
status: 202;
|
|
466
541
|
data: FolderResponse;
|
|
467
|
-
}>(`/
|
|
542
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/folders/${encodeURIComponent(folderId)}/tags`, oazapfts.json({
|
|
468
543
|
...opts,
|
|
469
544
|
method: "PUT",
|
|
470
545
|
body,
|
|
@@ -484,7 +559,7 @@ export function putDnsZoneTags({ authorization, xAccountId, foundationId, dnsZon
|
|
|
484
559
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
485
560
|
status: 202;
|
|
486
561
|
data: DnsZoneResponse;
|
|
487
|
-
}>(`/
|
|
562
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-zones/${encodeURIComponent(dnsZoneId)}/tags`, oazapfts.json({
|
|
488
563
|
...opts,
|
|
489
564
|
method: "PUT",
|
|
490
565
|
body,
|
|
@@ -504,7 +579,7 @@ export function putDnsRecordRecords({ authorization, xAccountId, foundationId, d
|
|
|
504
579
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
505
580
|
status: 200;
|
|
506
581
|
data: DnsRecordResponse;
|
|
507
|
-
}>(`/
|
|
582
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-records/${encodeURIComponent(dnsRecordId)}/records`, oazapfts.json({
|
|
508
583
|
...opts,
|
|
509
584
|
method: "PUT",
|
|
510
585
|
body,
|
|
@@ -524,7 +599,7 @@ export function putCidrTags({ authorization, xAccountId, foundationId, cidrId, b
|
|
|
524
599
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
525
600
|
status: 202;
|
|
526
601
|
data: CidrResponse;
|
|
527
|
-
}>(`/
|
|
602
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/cidrs/${encodeURIComponent(cidrId)}/tags`, oazapfts.json({
|
|
528
603
|
...opts,
|
|
529
604
|
method: "PUT",
|
|
530
605
|
body,
|
|
@@ -544,7 +619,7 @@ export function putCertificateTags({ authorization, xAccountId, foundationId, ce
|
|
|
544
619
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
545
620
|
status: 202;
|
|
546
621
|
data: CertificateResponse;
|
|
547
|
-
}>(`/
|
|
622
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/certificates/${encodeURIComponent(certificateId)}/tags`, oazapfts.json({
|
|
548
623
|
...opts,
|
|
549
624
|
method: "PUT",
|
|
550
625
|
body,
|
|
@@ -554,6 +629,26 @@ export function putCertificateTags({ authorization, xAccountId, foundationId, ce
|
|
|
554
629
|
})
|
|
555
630
|
})));
|
|
556
631
|
}
|
|
632
|
+
export function listRole(opts?: Oazapfts.RequestOpts) {
|
|
633
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
634
|
+
status: 200;
|
|
635
|
+
data: ListRole;
|
|
636
|
+
}>("/portal/roles", {
|
|
637
|
+
...opts
|
|
638
|
+
}));
|
|
639
|
+
}
|
|
640
|
+
export function createRole({ role }: {
|
|
641
|
+
role: Role;
|
|
642
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
643
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
644
|
+
status: 202;
|
|
645
|
+
data: Role;
|
|
646
|
+
}>("/portal/roles", oazapfts.json({
|
|
647
|
+
...opts,
|
|
648
|
+
method: "POST",
|
|
649
|
+
body: role
|
|
650
|
+
})));
|
|
651
|
+
}
|
|
557
652
|
export function listFoundations({ authorization, xAccountId }: {
|
|
558
653
|
authorization: string;
|
|
559
654
|
xAccountId?: string;
|
|
@@ -561,7 +656,7 @@ export function listFoundations({ authorization, xAccountId }: {
|
|
|
561
656
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
562
657
|
status: 202;
|
|
563
658
|
data: ListFoundationResponse;
|
|
564
|
-
}>("/
|
|
659
|
+
}>("/portal/foundations", {
|
|
565
660
|
...opts,
|
|
566
661
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
567
662
|
Authorization: authorization,
|
|
@@ -577,7 +672,7 @@ export function createFoundation({ authorization, xAccountId, createFoundationRe
|
|
|
577
672
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
578
673
|
status: 202;
|
|
579
674
|
data: FoundationResponse;
|
|
580
|
-
}>("/
|
|
675
|
+
}>("/portal/foundations", oazapfts.json({
|
|
581
676
|
...opts,
|
|
582
677
|
method: "POST",
|
|
583
678
|
body: createFoundationRequest,
|
|
@@ -595,7 +690,7 @@ export function listVpns({ authorization, xAccountId, foundationId }: {
|
|
|
595
690
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
596
691
|
status: 200;
|
|
597
692
|
data: ListVpnResponse;
|
|
598
|
-
}>(`/
|
|
693
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns`, {
|
|
599
694
|
...opts,
|
|
600
695
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
601
696
|
Authorization: authorization,
|
|
@@ -612,7 +707,7 @@ export function createVpn({ authorization, xAccountId, foundationId, createVpnRe
|
|
|
612
707
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
613
708
|
status: 202;
|
|
614
709
|
data: VpnResponse;
|
|
615
|
-
}>(`/
|
|
710
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns`, oazapfts.json({
|
|
616
711
|
...opts,
|
|
617
712
|
method: "POST",
|
|
618
713
|
body: createVpnRequest,
|
|
@@ -630,7 +725,7 @@ export function listTenant({ authorization, xAccountId, foundationId }: {
|
|
|
630
725
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
631
726
|
status: 200;
|
|
632
727
|
data: ListTenantResponse;
|
|
633
|
-
}>(`/
|
|
728
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/tenants`, {
|
|
634
729
|
...opts,
|
|
635
730
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
636
731
|
Authorization: authorization,
|
|
@@ -647,7 +742,7 @@ export function createTenant({ authorization, xAccountId, foundationId, createTe
|
|
|
647
742
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
648
743
|
status: 202;
|
|
649
744
|
data: TenantResponse;
|
|
650
|
-
}>(`/
|
|
745
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/tenants`, oazapfts.json({
|
|
651
746
|
...opts,
|
|
652
747
|
method: "POST",
|
|
653
748
|
body: createTenantRequest,
|
|
@@ -657,9 +752,7 @@ export function createTenant({ authorization, xAccountId, foundationId, createTe
|
|
|
657
752
|
})
|
|
658
753
|
})));
|
|
659
754
|
}
|
|
660
|
-
export function listRuntime({
|
|
661
|
-
authorization: string;
|
|
662
|
-
xAccountId?: string;
|
|
755
|
+
export function listRuntime({ foundationId, tenantId, projectId }: {
|
|
663
756
|
foundationId: string;
|
|
664
757
|
tenantId?: string;
|
|
665
758
|
projectId?: string;
|
|
@@ -667,15 +760,11 @@ export function listRuntime({ authorization, xAccountId, foundationId, tenantId,
|
|
|
667
760
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
668
761
|
status: 200;
|
|
669
762
|
data: ListRuntimeResponse;
|
|
670
|
-
}>(`/
|
|
763
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/runtimes${QS.query(QS.explode({
|
|
671
764
|
tenantId,
|
|
672
765
|
projectId
|
|
673
766
|
}))}`, {
|
|
674
|
-
...opts
|
|
675
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
676
|
-
Authorization: authorization,
|
|
677
|
-
"x-account-id": xAccountId
|
|
678
|
-
})
|
|
767
|
+
...opts
|
|
679
768
|
}));
|
|
680
769
|
}
|
|
681
770
|
export function createRuntime({ authorization, xAccountId, foundationId, createRuntimeRequest }: {
|
|
@@ -687,7 +776,7 @@ export function createRuntime({ authorization, xAccountId, foundationId, createR
|
|
|
687
776
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
688
777
|
status: 202;
|
|
689
778
|
data: RuntimeResponse;
|
|
690
|
-
}>(`/
|
|
779
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/runtimes`, oazapfts.json({
|
|
691
780
|
...opts,
|
|
692
781
|
method: "POST",
|
|
693
782
|
body: createRuntimeRequest,
|
|
@@ -706,7 +795,7 @@ export function listProject({ authorization, xAccountId, foundationId, parentFol
|
|
|
706
795
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
707
796
|
status: 200;
|
|
708
797
|
data: ListProjectResponse;
|
|
709
|
-
}>(`/
|
|
798
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/projects${QS.query(QS.explode({
|
|
710
799
|
parentFolderId
|
|
711
800
|
}))}`, {
|
|
712
801
|
...opts,
|
|
@@ -725,7 +814,7 @@ export function createProject({ authorization, xAccountId, foundationId, createP
|
|
|
725
814
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
726
815
|
status: 202;
|
|
727
816
|
data: ProjectResponse;
|
|
728
|
-
}>(`/
|
|
817
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/projects`, oazapfts.json({
|
|
729
818
|
...opts,
|
|
730
819
|
method: "POST",
|
|
731
820
|
body: createProjectRequest,
|
|
@@ -744,7 +833,7 @@ export function listNetwork({ authorization, xAccountId, foundationId, projectId
|
|
|
744
833
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
745
834
|
status: 200;
|
|
746
835
|
data: ListNetworkResponse;
|
|
747
|
-
}>(`/
|
|
836
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/networks${QS.query(QS.explode({
|
|
748
837
|
projectId
|
|
749
838
|
}))}`, {
|
|
750
839
|
...opts,
|
|
@@ -763,7 +852,7 @@ export function createNetwork({ authorization, xAccountId, foundationId, createN
|
|
|
763
852
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
764
853
|
status: 202;
|
|
765
854
|
data: NetworkResponse;
|
|
766
|
-
}>(`/
|
|
855
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/networks`, oazapfts.json({
|
|
767
856
|
...opts,
|
|
768
857
|
method: "POST",
|
|
769
858
|
body: createNetworkRequest,
|
|
@@ -782,7 +871,7 @@ export function getFolder({ authorization, xAccountId, foundationId, folderId }:
|
|
|
782
871
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
783
872
|
status: 200;
|
|
784
873
|
data: FolderResponse;
|
|
785
|
-
}>(`/
|
|
874
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/folders${QS.query(QS.explode({
|
|
786
875
|
folderId
|
|
787
876
|
}))}`, {
|
|
788
877
|
...opts,
|
|
@@ -801,7 +890,7 @@ export function createFolder({ authorization, xAccountId, foundationId, createFo
|
|
|
801
890
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
802
891
|
status: 202;
|
|
803
892
|
data: FolderResponse;
|
|
804
|
-
}>(`/
|
|
893
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/folders`, oazapfts.json({
|
|
805
894
|
...opts,
|
|
806
895
|
method: "POST",
|
|
807
896
|
body: createFolderRequest,
|
|
@@ -821,7 +910,7 @@ export function listDnsZone({ authorization, xAccountId, foundationId, projectId
|
|
|
821
910
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
822
911
|
status: 200;
|
|
823
912
|
data: ListDnsZoneResponse;
|
|
824
|
-
}>(`/
|
|
913
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-zones${QS.query(QS.explode({
|
|
825
914
|
projectId,
|
|
826
915
|
privacy
|
|
827
916
|
}))}`, {
|
|
@@ -841,7 +930,7 @@ export function createDnsZone({ authorization, xAccountId, foundationId, createD
|
|
|
841
930
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
842
931
|
status: 202;
|
|
843
932
|
data: DnsZoneResponse;
|
|
844
|
-
}>(`/
|
|
933
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-zones`, oazapfts.json({
|
|
845
934
|
...opts,
|
|
846
935
|
method: "POST",
|
|
847
936
|
body: createDnsZoneRequest,
|
|
@@ -861,7 +950,7 @@ export function listDnsRecord({ authorization, xAccountId, foundationId, project
|
|
|
861
950
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
862
951
|
status: 200;
|
|
863
952
|
data: ListDnsRecordResponse;
|
|
864
|
-
}>(`/
|
|
953
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-records${QS.query(QS.explode({
|
|
865
954
|
projectId,
|
|
866
955
|
dnsZoneId
|
|
867
956
|
}))}`, {
|
|
@@ -881,7 +970,7 @@ export function createDnsRecord({ authorization, xAccountId, foundationId, creat
|
|
|
881
970
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
882
971
|
status: 202;
|
|
883
972
|
data: DnsRecordResponse;
|
|
884
|
-
}>(`/
|
|
973
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-records`, oazapfts.json({
|
|
885
974
|
...opts,
|
|
886
975
|
method: "POST",
|
|
887
976
|
body: createDnsRecordRequest,
|
|
@@ -899,7 +988,7 @@ export function listCidr({ authorization, xAccountId, foundationId }: {
|
|
|
899
988
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
900
989
|
status: 200;
|
|
901
990
|
data: ListCidrResponse;
|
|
902
|
-
}>(`/
|
|
991
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/cidrs`, {
|
|
903
992
|
...opts,
|
|
904
993
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
905
994
|
Authorization: authorization,
|
|
@@ -916,7 +1005,7 @@ export function createCidr({ authorization, xAccountId, foundationId, createCidr
|
|
|
916
1005
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
917
1006
|
status: 202;
|
|
918
1007
|
data: CidrResponse;
|
|
919
|
-
}>(`/
|
|
1008
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/cidrs`, oazapfts.json({
|
|
920
1009
|
...opts,
|
|
921
1010
|
method: "POST",
|
|
922
1011
|
body: createCidrRequest,
|
|
@@ -935,7 +1024,7 @@ export function listCertificates({ authorization, xAccountId, foundationId, forI
|
|
|
935
1024
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
936
1025
|
status: 200;
|
|
937
1026
|
data: ListCertificateResponse;
|
|
938
|
-
}>(`/
|
|
1027
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/certificates${QS.query(QS.explode({
|
|
939
1028
|
forInbound
|
|
940
1029
|
}))}`, {
|
|
941
1030
|
...opts,
|
|
@@ -954,7 +1043,7 @@ export function createCertificate({ authorization, xAccountId, foundationId, bod
|
|
|
954
1043
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
955
1044
|
status: 202;
|
|
956
1045
|
data: CertificateResponse;
|
|
957
|
-
}>(`/
|
|
1046
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/certificates`, oazapfts.json({
|
|
958
1047
|
...opts,
|
|
959
1048
|
method: "POST",
|
|
960
1049
|
body,
|
|
@@ -972,7 +1061,7 @@ export function getFoundation({ authorization, xAccountId, foundationId }: {
|
|
|
972
1061
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
973
1062
|
status: 202;
|
|
974
1063
|
data: FoundationResponse;
|
|
975
|
-
}>(`/
|
|
1064
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}`, {
|
|
976
1065
|
...opts,
|
|
977
1066
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
978
1067
|
Authorization: authorization,
|
|
@@ -989,7 +1078,7 @@ export function getVpn({ authorization, xAccountId, foundationId, vpnId }: {
|
|
|
989
1078
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
990
1079
|
status: 200;
|
|
991
1080
|
data: VpnResponse;
|
|
992
|
-
}>(`/
|
|
1081
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}`, {
|
|
993
1082
|
...opts,
|
|
994
1083
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
995
1084
|
Authorization: authorization,
|
|
@@ -1003,7 +1092,7 @@ export function deleteVpn({ authorization, xAccountId, foundationId, vpnId }: {
|
|
|
1003
1092
|
foundationId: string;
|
|
1004
1093
|
vpnId: string;
|
|
1005
1094
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1006
|
-
return oazapfts.ok(oazapfts.fetchText(`/
|
|
1095
|
+
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}`, {
|
|
1007
1096
|
...opts,
|
|
1008
1097
|
method: "DELETE",
|
|
1009
1098
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1021,7 +1110,7 @@ export function getVpnConfiguration({ authorization, xAccountId, foundationId, v
|
|
|
1021
1110
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1022
1111
|
status: 200;
|
|
1023
1112
|
data: VpnConfigurationResponse;
|
|
1024
|
-
}>(`/
|
|
1113
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}/configuration`, {
|
|
1025
1114
|
...opts,
|
|
1026
1115
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1027
1116
|
Authorization: authorization,
|
|
@@ -1038,7 +1127,7 @@ export function getTenant({ authorization, xAccountId, foundationId, tenantId }:
|
|
|
1038
1127
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1039
1128
|
status: 200;
|
|
1040
1129
|
data: TenantResponse;
|
|
1041
|
-
}>(`/
|
|
1130
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/tenants/${encodeURIComponent(tenantId)}`, {
|
|
1042
1131
|
...opts,
|
|
1043
1132
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1044
1133
|
Authorization: authorization,
|
|
@@ -1046,21 +1135,15 @@ export function getTenant({ authorization, xAccountId, foundationId, tenantId }:
|
|
|
1046
1135
|
})
|
|
1047
1136
|
}));
|
|
1048
1137
|
}
|
|
1049
|
-
export function getRuntime({
|
|
1050
|
-
authorization: string;
|
|
1051
|
-
xAccountId?: string;
|
|
1138
|
+
export function getRuntime({ foundationId, runtimeId }: {
|
|
1052
1139
|
foundationId: string;
|
|
1053
1140
|
runtimeId: string;
|
|
1054
1141
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1055
1142
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1056
1143
|
status: 200;
|
|
1057
1144
|
data: RuntimeResponse;
|
|
1058
|
-
}>(`/
|
|
1059
|
-
...opts
|
|
1060
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1061
|
-
Authorization: authorization,
|
|
1062
|
-
"x-account-id": xAccountId
|
|
1063
|
-
})
|
|
1145
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/runtimes/${encodeURIComponent(runtimeId)}`, {
|
|
1146
|
+
...opts
|
|
1064
1147
|
}));
|
|
1065
1148
|
}
|
|
1066
1149
|
export function getProject({ authorization, xAccountId, foundationId, projectId }: {
|
|
@@ -1072,7 +1155,7 @@ export function getProject({ authorization, xAccountId, foundationId, projectId
|
|
|
1072
1155
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1073
1156
|
status: 200;
|
|
1074
1157
|
data: ProjectResponse;
|
|
1075
|
-
}>(`/
|
|
1158
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/projects/${encodeURIComponent(projectId)}`, {
|
|
1076
1159
|
...opts,
|
|
1077
1160
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1078
1161
|
Authorization: authorization,
|
|
@@ -1086,7 +1169,7 @@ export function deleteProject({ authorization, xAccountId, foundationId, project
|
|
|
1086
1169
|
foundationId: string;
|
|
1087
1170
|
projectId: string;
|
|
1088
1171
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1089
|
-
return oazapfts.ok(oazapfts.fetchText(`/
|
|
1172
|
+
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/projects/${encodeURIComponent(projectId)}`, {
|
|
1090
1173
|
...opts,
|
|
1091
1174
|
method: "DELETE",
|
|
1092
1175
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1104,7 +1187,7 @@ export function getNetwork({ authorization, xAccountId, foundationId, networkId
|
|
|
1104
1187
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1105
1188
|
status: 200;
|
|
1106
1189
|
data: NetworkResponse;
|
|
1107
|
-
}>(`/
|
|
1190
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}`, {
|
|
1108
1191
|
...opts,
|
|
1109
1192
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1110
1193
|
Authorization: authorization,
|
|
@@ -1118,7 +1201,7 @@ export function deleteNetwork({ authorization, xAccountId, foundationId, network
|
|
|
1118
1201
|
foundationId: string;
|
|
1119
1202
|
networkId: string;
|
|
1120
1203
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1121
|
-
return oazapfts.ok(oazapfts.fetchText(`/
|
|
1204
|
+
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}`, {
|
|
1122
1205
|
...opts,
|
|
1123
1206
|
method: "DELETE",
|
|
1124
1207
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1136,7 +1219,7 @@ export function getDnsZone({ authorization, xAccountId, foundationId, dnsZoneId
|
|
|
1136
1219
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1137
1220
|
status: 200;
|
|
1138
1221
|
data: DnsZoneResponse;
|
|
1139
|
-
}>(`/
|
|
1222
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-zones/${encodeURIComponent(dnsZoneId)}`, {
|
|
1140
1223
|
...opts,
|
|
1141
1224
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1142
1225
|
Authorization: authorization,
|
|
@@ -1150,7 +1233,7 @@ export function deleteDnsZone({ authorization, xAccountId, foundationId, dnsZone
|
|
|
1150
1233
|
foundationId: string;
|
|
1151
1234
|
dnsZoneId: string;
|
|
1152
1235
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1153
|
-
return oazapfts.ok(oazapfts.fetchText(`/
|
|
1236
|
+
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-zones/${encodeURIComponent(dnsZoneId)}`, {
|
|
1154
1237
|
...opts,
|
|
1155
1238
|
method: "DELETE",
|
|
1156
1239
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1168,7 +1251,7 @@ export function getDnsRecord({ authorization, xAccountId, foundationId, dnsRecor
|
|
|
1168
1251
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1169
1252
|
status: 200;
|
|
1170
1253
|
data: DnsRecordResponse;
|
|
1171
|
-
}>(`/
|
|
1254
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-records/${encodeURIComponent(dnsRecordId)}`, {
|
|
1172
1255
|
...opts,
|
|
1173
1256
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1174
1257
|
Authorization: authorization,
|
|
@@ -1182,7 +1265,7 @@ export function deleteDnsRecord({ authorization, xAccountId, foundationId, dnsRe
|
|
|
1182
1265
|
foundationId: string;
|
|
1183
1266
|
dnsRecordId: string;
|
|
1184
1267
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1185
|
-
return oazapfts.ok(oazapfts.fetchText(`/
|
|
1268
|
+
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-records/${encodeURIComponent(dnsRecordId)}`, {
|
|
1186
1269
|
...opts,
|
|
1187
1270
|
method: "DELETE",
|
|
1188
1271
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1200,7 +1283,7 @@ export function getCidr({ authorization, xAccountId, foundationId, cidrId }: {
|
|
|
1200
1283
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1201
1284
|
status: 200;
|
|
1202
1285
|
data: CidrResponse;
|
|
1203
|
-
}>(`/
|
|
1286
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/cidrs/${encodeURIComponent(cidrId)}`, {
|
|
1204
1287
|
...opts,
|
|
1205
1288
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1206
1289
|
Authorization: authorization,
|
|
@@ -1214,7 +1297,7 @@ export function deleteCidr({ authorization, xAccountId, foundationId, cidrId }:
|
|
|
1214
1297
|
foundationId: string;
|
|
1215
1298
|
cidrId: string;
|
|
1216
1299
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1217
|
-
return oazapfts.ok(oazapfts.fetchText(`/
|
|
1300
|
+
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/cidrs/${encodeURIComponent(cidrId)}`, {
|
|
1218
1301
|
...opts,
|
|
1219
1302
|
method: "DELETE",
|
|
1220
1303
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1232,7 +1315,7 @@ export function getCertificate({ authorization, xAccountId, foundationId, certif
|
|
|
1232
1315
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1233
1316
|
status: 200;
|
|
1234
1317
|
data: CertificateResponse;
|
|
1235
|
-
}>(`/
|
|
1318
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/certificates/${encodeURIComponent(certificateId)}`, {
|
|
1236
1319
|
...opts,
|
|
1237
1320
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1238
1321
|
Authorization: authorization,
|
|
@@ -1246,7 +1329,7 @@ export function deleteCertificate({ authorization, xAccountId, foundationId, cer
|
|
|
1246
1329
|
foundationId: string;
|
|
1247
1330
|
certificateId: string;
|
|
1248
1331
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1249
|
-
return oazapfts.ok(oazapfts.fetchText(`/
|
|
1332
|
+
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/certificates/${encodeURIComponent(certificateId)}`, {
|
|
1250
1333
|
...opts,
|
|
1251
1334
|
method: "DELETE",
|
|
1252
1335
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1255,37 +1338,13 @@ export function deleteCertificate({ authorization, xAccountId, foundationId, cer
|
|
|
1255
1338
|
})
|
|
1256
1339
|
}));
|
|
1257
1340
|
}
|
|
1258
|
-
export function getProvisionAvailability({ cloudProvider }: {
|
|
1259
|
-
cloudProvider: string;
|
|
1260
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1261
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1262
|
-
status: 200;
|
|
1263
|
-
data: {
|
|
1264
|
-
[key: string]: boolean;
|
|
1265
|
-
};
|
|
1266
|
-
}>(`/v1/foundations/provision-avaliability${QS.query(QS.explode({
|
|
1267
|
-
cloudProvider
|
|
1268
|
-
}))}`, {
|
|
1269
|
-
...opts
|
|
1270
|
-
}));
|
|
1271
|
-
}
|
|
1272
|
-
export function providers(opts?: Oazapfts.RequestOpts) {
|
|
1273
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1274
|
-
status: 200;
|
|
1275
|
-
data: {
|
|
1276
|
-
[key: string]: any;
|
|
1277
|
-
}[];
|
|
1278
|
-
}>("/v1/foundations/providers", {
|
|
1279
|
-
...opts
|
|
1280
|
-
}));
|
|
1281
|
-
}
|
|
1282
1341
|
export function deleteFolder({ authorization, xAccountId, foundationId, folderId }: {
|
|
1283
1342
|
authorization: string;
|
|
1284
1343
|
xAccountId?: string;
|
|
1285
1344
|
foundationId: string;
|
|
1286
1345
|
folderId: string;
|
|
1287
1346
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1288
|
-
return oazapfts.ok(oazapfts.fetchText(`/
|
|
1347
|
+
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/folders/${encodeURIComponent(folderId)}`, {
|
|
1289
1348
|
...opts,
|
|
1290
1349
|
method: "DELETE",
|
|
1291
1350
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|