@stack-spot/portal-network 0.190.0-beta.1 → 0.191.0-beta.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 +16 -0
- package/dist/api/cloudPlatform.d.ts +70 -129
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +79 -72
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/codeShift.d.ts +109 -39
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +51 -10
- package/dist/api/codeShift.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +72 -47
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +73 -46
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/code-shift.d.ts +16 -3
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +10 -1
- package/dist/client/code-shift.js.map +1 -1
- package/package.json +1 -1
- package/src/api/cloudPlatform.ts +142 -216
- package/src/api/codeShift.ts +189 -44
- package/src/client/cloud-platform.ts +40 -25
- package/src/client/code-shift.ts +5 -0
package/src/api/cloudPlatform.ts
CHANGED
|
@@ -79,21 +79,6 @@ export type NetworkResponse = {
|
|
|
79
79
|
updatedAt: string;
|
|
80
80
|
deletedAt?: string;
|
|
81
81
|
};
|
|
82
|
-
export type InboundDetails = {
|
|
83
|
-
recordName: string;
|
|
84
|
-
};
|
|
85
|
-
export type InboundResponse = {
|
|
86
|
-
stackSpotAccountId: string;
|
|
87
|
-
foundationId: string;
|
|
88
|
-
projectId: string;
|
|
89
|
-
inboundId: string;
|
|
90
|
-
details: InboundDetails;
|
|
91
|
-
tags: Tag[];
|
|
92
|
-
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
93
|
-
createdAt: string;
|
|
94
|
-
updatedAt: string;
|
|
95
|
-
deletedAt?: string;
|
|
96
|
-
};
|
|
97
82
|
export type FolderContent = {
|
|
98
83
|
"type": "FOLDER" | "PROJECT";
|
|
99
84
|
id: string;
|
|
@@ -132,6 +117,25 @@ export type DnsZoneResponse = {
|
|
|
132
117
|
updatedAt: string;
|
|
133
118
|
deletedAt?: string;
|
|
134
119
|
};
|
|
120
|
+
export type DnsRecordDetails = {
|
|
121
|
+
recordName: string;
|
|
122
|
+
records: string[];
|
|
123
|
+
ttl: number;
|
|
124
|
+
"type": "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "PTR" | "SOA" | "SRV" | "TXT";
|
|
125
|
+
dnsZoneName: string;
|
|
126
|
+
};
|
|
127
|
+
export type DnsRecordResponse = {
|
|
128
|
+
stackSpotAccountId: string;
|
|
129
|
+
foundationId: string;
|
|
130
|
+
dnsZoneId: string;
|
|
131
|
+
dnsRecordId: string;
|
|
132
|
+
details: DnsRecordDetails;
|
|
133
|
+
tags: Tag[];
|
|
134
|
+
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
135
|
+
createdAt: string;
|
|
136
|
+
updatedAt: string;
|
|
137
|
+
deletedAt?: string;
|
|
138
|
+
};
|
|
135
139
|
export type CidrDetails = {
|
|
136
140
|
cidrNotation: string;
|
|
137
141
|
networkAddress: string;
|
|
@@ -296,54 +300,6 @@ export type CreateNetworkRequest = {
|
|
|
296
300
|
networkType: "WORKLOAD";
|
|
297
301
|
tags?: Tag[];
|
|
298
302
|
};
|
|
299
|
-
export type NetworkConnectionDetails = {
|
|
300
|
-
accepted?: boolean;
|
|
301
|
-
requesterNetwork: NetworkResponse;
|
|
302
|
-
accepterNetwork: NetworkResponse;
|
|
303
|
-
};
|
|
304
|
-
export type NetworkConnectionResponse = {
|
|
305
|
-
stackSpotAccountId: string;
|
|
306
|
-
foundationId: string;
|
|
307
|
-
accepterNetworkId: string;
|
|
308
|
-
accepterProjectId: string;
|
|
309
|
-
requesterNetworkId: string;
|
|
310
|
-
requesterProjectId: string;
|
|
311
|
-
networkConnectionId: string;
|
|
312
|
-
details: NetworkConnectionDetails;
|
|
313
|
-
tags: Tag[];
|
|
314
|
-
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
315
|
-
createdAt: string;
|
|
316
|
-
updatedAt: string;
|
|
317
|
-
deletedAt?: string;
|
|
318
|
-
};
|
|
319
|
-
export type ListNetworkConnectionResponse = {
|
|
320
|
-
stackSpotAccountId: string;
|
|
321
|
-
foundationId: string;
|
|
322
|
-
accepterNetworkId?: string;
|
|
323
|
-
accepterProjectId?: string;
|
|
324
|
-
requesterNetworkId?: string;
|
|
325
|
-
requesterProjectId?: string;
|
|
326
|
-
pendingResources: boolean;
|
|
327
|
-
content: NetworkConnectionResponse[];
|
|
328
|
-
};
|
|
329
|
-
export type CreateNetworkConnectionRequest = {
|
|
330
|
-
accepterNetworkId: string;
|
|
331
|
-
requesterNetworkId: string;
|
|
332
|
-
tags?: Tag[];
|
|
333
|
-
};
|
|
334
|
-
export type ListInboundResponse = {
|
|
335
|
-
stackSpotAccountId: string;
|
|
336
|
-
foundationId: string;
|
|
337
|
-
pendingResources: boolean;
|
|
338
|
-
content: InboundResponse[];
|
|
339
|
-
};
|
|
340
|
-
export type CreateInboundRequest = {
|
|
341
|
-
projectId: string;
|
|
342
|
-
certificateId: string;
|
|
343
|
-
domain: string;
|
|
344
|
-
applicationLoadBalancer: string;
|
|
345
|
-
tags?: Tag[];
|
|
346
|
-
};
|
|
347
303
|
export type CreateFolderRequest = {
|
|
348
304
|
parentFolderId: string;
|
|
349
305
|
name: string;
|
|
@@ -361,25 +317,6 @@ export type CreateDnsZoneRequest = {
|
|
|
361
317
|
projectId?: string;
|
|
362
318
|
tags?: Tag[];
|
|
363
319
|
};
|
|
364
|
-
export type DnsRecordDetails = {
|
|
365
|
-
recordName: string;
|
|
366
|
-
records: string[];
|
|
367
|
-
ttl: number;
|
|
368
|
-
"type": "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "PTR" | "SOA" | "SRV" | "TXT";
|
|
369
|
-
dnsZoneName: string;
|
|
370
|
-
};
|
|
371
|
-
export type DnsRecordResponse = {
|
|
372
|
-
stackSpotAccountId: string;
|
|
373
|
-
foundationId: string;
|
|
374
|
-
dnsZoneId: string;
|
|
375
|
-
dnsRecordId: string;
|
|
376
|
-
details: DnsRecordDetails;
|
|
377
|
-
tags: Tag[];
|
|
378
|
-
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
379
|
-
createdAt: string;
|
|
380
|
-
updatedAt: string;
|
|
381
|
-
deletedAt?: string;
|
|
382
|
-
};
|
|
383
320
|
export type ListDnsRecordResponse = {
|
|
384
321
|
stackSpotAccountId: string;
|
|
385
322
|
foundationId: string;
|
|
@@ -500,26 +437,6 @@ export function putNetworkTags({ authorization, xAccountId, foundationId, networ
|
|
|
500
437
|
})
|
|
501
438
|
})));
|
|
502
439
|
}
|
|
503
|
-
export function putInboundTags({ authorization, xAccountId, foundationId, inboundId, body }: {
|
|
504
|
-
authorization: string;
|
|
505
|
-
xAccountId?: string;
|
|
506
|
-
foundationId: string;
|
|
507
|
-
inboundId: string;
|
|
508
|
-
body: Tag[];
|
|
509
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
510
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
511
|
-
status: 202;
|
|
512
|
-
data: InboundResponse;
|
|
513
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/inbounds/${encodeURIComponent(inboundId)}/tags`, oazapfts.json({
|
|
514
|
-
...opts,
|
|
515
|
-
method: "PUT",
|
|
516
|
-
body,
|
|
517
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
518
|
-
Authorization: authorization,
|
|
519
|
-
"x-account-id": xAccountId
|
|
520
|
-
})
|
|
521
|
-
})));
|
|
522
|
-
}
|
|
523
440
|
export function getFolderTags({ authorization, xAccountId, foundationId, folderId }: {
|
|
524
441
|
authorization: string;
|
|
525
442
|
xAccountId?: string;
|
|
@@ -577,6 +494,26 @@ export function putDnsZoneTags({ authorization, xAccountId, foundationId, dnsZon
|
|
|
577
494
|
})
|
|
578
495
|
})));
|
|
579
496
|
}
|
|
497
|
+
export function putDnsRecordRecords({ authorization, xAccountId, foundationId, dnsRecordId, body }: {
|
|
498
|
+
authorization: string;
|
|
499
|
+
xAccountId?: string;
|
|
500
|
+
foundationId: string;
|
|
501
|
+
dnsRecordId: string;
|
|
502
|
+
body: string[];
|
|
503
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
504
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
505
|
+
status: 200;
|
|
506
|
+
data: DnsRecordResponse;
|
|
507
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-records/${encodeURIComponent(dnsRecordId)}/records`, oazapfts.json({
|
|
508
|
+
...opts,
|
|
509
|
+
method: "PUT",
|
|
510
|
+
body,
|
|
511
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
512
|
+
Authorization: authorization,
|
|
513
|
+
"x-account-id": xAccountId
|
|
514
|
+
})
|
|
515
|
+
})));
|
|
516
|
+
}
|
|
580
517
|
export function putCidrTags({ authorization, xAccountId, foundationId, cidrId, body }: {
|
|
581
518
|
authorization: string;
|
|
582
519
|
xAccountId?: string;
|
|
@@ -805,7 +742,7 @@ export function listNetwork({ authorization, xAccountId, foundationId, projectId
|
|
|
805
742
|
projectId?: string;
|
|
806
743
|
}, opts?: Oazapfts.RequestOpts) {
|
|
807
744
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
808
|
-
status:
|
|
745
|
+
status: 200;
|
|
809
746
|
data: ListNetworkResponse;
|
|
810
747
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/networks${QS.query(QS.explode({
|
|
811
748
|
projectId
|
|
@@ -836,103 +773,6 @@ export function createNetwork({ authorization, xAccountId, foundationId, createN
|
|
|
836
773
|
})
|
|
837
774
|
})));
|
|
838
775
|
}
|
|
839
|
-
export function listNetworkConnection({ authorization, xAccountId, foundationId, accepterNetworkId, accepterProjectId, requesterNetworkId, requesterProjectId }: {
|
|
840
|
-
authorization: string;
|
|
841
|
-
xAccountId?: string;
|
|
842
|
-
foundationId: string;
|
|
843
|
-
accepterNetworkId?: string;
|
|
844
|
-
accepterProjectId?: string;
|
|
845
|
-
requesterNetworkId?: string;
|
|
846
|
-
requesterProjectId?: string;
|
|
847
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
848
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
849
|
-
status: 200;
|
|
850
|
-
data: ListNetworkConnectionResponse;
|
|
851
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/network-connections${QS.query(QS.explode({
|
|
852
|
-
accepterNetworkId,
|
|
853
|
-
accepterProjectId,
|
|
854
|
-
requesterNetworkId,
|
|
855
|
-
requesterProjectId
|
|
856
|
-
}))}`, {
|
|
857
|
-
...opts,
|
|
858
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
859
|
-
Authorization: authorization,
|
|
860
|
-
"x-account-id": xAccountId
|
|
861
|
-
})
|
|
862
|
-
}));
|
|
863
|
-
}
|
|
864
|
-
export function createNetworkConnection({ authorization, xAccountId, foundationId, createNetworkConnectionRequest }: {
|
|
865
|
-
authorization: string;
|
|
866
|
-
xAccountId?: string;
|
|
867
|
-
foundationId: string;
|
|
868
|
-
createNetworkConnectionRequest: CreateNetworkConnectionRequest;
|
|
869
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
870
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
871
|
-
status: 202;
|
|
872
|
-
data: NetworkConnectionResponse;
|
|
873
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/network-connections`, oazapfts.json({
|
|
874
|
-
...opts,
|
|
875
|
-
method: "POST",
|
|
876
|
-
body: createNetworkConnectionRequest,
|
|
877
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
878
|
-
Authorization: authorization,
|
|
879
|
-
"x-account-id": xAccountId
|
|
880
|
-
})
|
|
881
|
-
})));
|
|
882
|
-
}
|
|
883
|
-
export function acceptNetworkConnection({ authorization, xAccountId, foundationId, networkConnectionId }: {
|
|
884
|
-
authorization: string;
|
|
885
|
-
xAccountId?: string;
|
|
886
|
-
foundationId: string;
|
|
887
|
-
networkConnectionId: string;
|
|
888
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
889
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
890
|
-
status: 200;
|
|
891
|
-
data: NetworkConnectionResponse;
|
|
892
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/network-connections/${encodeURIComponent(networkConnectionId)}/accept`, {
|
|
893
|
-
...opts,
|
|
894
|
-
method: "POST",
|
|
895
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
896
|
-
Authorization: authorization,
|
|
897
|
-
"x-account-id": xAccountId
|
|
898
|
-
})
|
|
899
|
-
}));
|
|
900
|
-
}
|
|
901
|
-
export function listInbound({ authorization, xAccountId, foundationId }: {
|
|
902
|
-
authorization: string;
|
|
903
|
-
xAccountId?: string;
|
|
904
|
-
foundationId: string;
|
|
905
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
906
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
907
|
-
status: 200;
|
|
908
|
-
data: ListInboundResponse;
|
|
909
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/inbounds`, {
|
|
910
|
-
...opts,
|
|
911
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
912
|
-
Authorization: authorization,
|
|
913
|
-
"x-account-id": xAccountId
|
|
914
|
-
})
|
|
915
|
-
}));
|
|
916
|
-
}
|
|
917
|
-
export function createInbound({ authorization, xAccountId, foundationId, createInboundRequest }: {
|
|
918
|
-
authorization: string;
|
|
919
|
-
xAccountId?: string;
|
|
920
|
-
foundationId: string;
|
|
921
|
-
createInboundRequest: CreateInboundRequest;
|
|
922
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
923
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
924
|
-
status: 202;
|
|
925
|
-
data: InboundResponse;
|
|
926
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/inbounds`, oazapfts.json({
|
|
927
|
-
...opts,
|
|
928
|
-
method: "POST",
|
|
929
|
-
body: createInboundRequest,
|
|
930
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
931
|
-
Authorization: authorization,
|
|
932
|
-
"x-account-id": xAccountId
|
|
933
|
-
})
|
|
934
|
-
})));
|
|
935
|
-
}
|
|
936
776
|
export function getFolder({ authorization, xAccountId, foundationId, folderId }: {
|
|
937
777
|
authorization: string;
|
|
938
778
|
xAccountId?: string;
|
|
@@ -1157,6 +997,21 @@ export function getVpn({ authorization, xAccountId, foundationId, vpnId }: {
|
|
|
1157
997
|
})
|
|
1158
998
|
}));
|
|
1159
999
|
}
|
|
1000
|
+
export function deleteVpn({ authorization, xAccountId, foundationId, vpnId }: {
|
|
1001
|
+
authorization: string;
|
|
1002
|
+
xAccountId?: string;
|
|
1003
|
+
foundationId: string;
|
|
1004
|
+
vpnId: string;
|
|
1005
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1006
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}`, {
|
|
1007
|
+
...opts,
|
|
1008
|
+
method: "DELETE",
|
|
1009
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1010
|
+
Authorization: authorization,
|
|
1011
|
+
"x-account-id": xAccountId
|
|
1012
|
+
})
|
|
1013
|
+
}));
|
|
1014
|
+
}
|
|
1160
1015
|
export function getVpnConfiguration({ authorization, xAccountId, foundationId, vpnId }: {
|
|
1161
1016
|
authorization: string;
|
|
1162
1017
|
xAccountId?: string;
|
|
@@ -1225,33 +1080,31 @@ export function getProject({ authorization, xAccountId, foundationId, projectId
|
|
|
1225
1080
|
})
|
|
1226
1081
|
}));
|
|
1227
1082
|
}
|
|
1228
|
-
export function
|
|
1083
|
+
export function deleteProject({ authorization, xAccountId, foundationId, projectId }: {
|
|
1229
1084
|
authorization: string;
|
|
1230
1085
|
xAccountId?: string;
|
|
1231
1086
|
foundationId: string;
|
|
1232
|
-
|
|
1087
|
+
projectId: string;
|
|
1233
1088
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1234
|
-
return oazapfts.ok(oazapfts.
|
|
1235
|
-
status: 202;
|
|
1236
|
-
data: NetworkResponse;
|
|
1237
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}`, {
|
|
1089
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/projects/${encodeURIComponent(projectId)}`, {
|
|
1238
1090
|
...opts,
|
|
1091
|
+
method: "DELETE",
|
|
1239
1092
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1240
1093
|
Authorization: authorization,
|
|
1241
1094
|
"x-account-id": xAccountId
|
|
1242
1095
|
})
|
|
1243
1096
|
}));
|
|
1244
1097
|
}
|
|
1245
|
-
export function
|
|
1098
|
+
export function getNetwork({ authorization, xAccountId, foundationId, networkId }: {
|
|
1246
1099
|
authorization: string;
|
|
1247
1100
|
xAccountId?: string;
|
|
1248
1101
|
foundationId: string;
|
|
1249
|
-
|
|
1102
|
+
networkId: string;
|
|
1250
1103
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1251
1104
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1252
1105
|
status: 200;
|
|
1253
|
-
data:
|
|
1254
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
1106
|
+
data: NetworkResponse;
|
|
1107
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}`, {
|
|
1255
1108
|
...opts,
|
|
1256
1109
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1257
1110
|
Authorization: authorization,
|
|
@@ -1259,17 +1112,15 @@ export function getNetworkConnection({ authorization, xAccountId, foundationId,
|
|
|
1259
1112
|
})
|
|
1260
1113
|
}));
|
|
1261
1114
|
}
|
|
1262
|
-
export function
|
|
1115
|
+
export function deleteNetwork({ authorization, xAccountId, foundationId, networkId }: {
|
|
1263
1116
|
authorization: string;
|
|
1264
1117
|
xAccountId?: string;
|
|
1265
1118
|
foundationId: string;
|
|
1266
|
-
|
|
1119
|
+
networkId: string;
|
|
1267
1120
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1268
|
-
return oazapfts.ok(oazapfts.
|
|
1269
|
-
status: 200;
|
|
1270
|
-
data: InboundResponse;
|
|
1271
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/inbounds/${encodeURIComponent(inboundId)}`, {
|
|
1121
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}`, {
|
|
1272
1122
|
...opts,
|
|
1123
|
+
method: "DELETE",
|
|
1273
1124
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1274
1125
|
Authorization: authorization,
|
|
1275
1126
|
"x-account-id": xAccountId
|
|
@@ -1293,6 +1144,21 @@ export function getDnsZone({ authorization, xAccountId, foundationId, dnsZoneId
|
|
|
1293
1144
|
})
|
|
1294
1145
|
}));
|
|
1295
1146
|
}
|
|
1147
|
+
export function deleteDnsZone({ authorization, xAccountId, foundationId, dnsZoneId }: {
|
|
1148
|
+
authorization: string;
|
|
1149
|
+
xAccountId?: string;
|
|
1150
|
+
foundationId: string;
|
|
1151
|
+
dnsZoneId: string;
|
|
1152
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1153
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-zones/${encodeURIComponent(dnsZoneId)}`, {
|
|
1154
|
+
...opts,
|
|
1155
|
+
method: "DELETE",
|
|
1156
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1157
|
+
Authorization: authorization,
|
|
1158
|
+
"x-account-id": xAccountId
|
|
1159
|
+
})
|
|
1160
|
+
}));
|
|
1161
|
+
}
|
|
1296
1162
|
export function getDnsRecord({ authorization, xAccountId, foundationId, dnsRecordId }: {
|
|
1297
1163
|
authorization: string;
|
|
1298
1164
|
xAccountId?: string;
|
|
@@ -1310,6 +1176,21 @@ export function getDnsRecord({ authorization, xAccountId, foundationId, dnsRecor
|
|
|
1310
1176
|
})
|
|
1311
1177
|
}));
|
|
1312
1178
|
}
|
|
1179
|
+
export function deleteDnsRecord({ authorization, xAccountId, foundationId, dnsRecordId }: {
|
|
1180
|
+
authorization: string;
|
|
1181
|
+
xAccountId?: string;
|
|
1182
|
+
foundationId: string;
|
|
1183
|
+
dnsRecordId: string;
|
|
1184
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1185
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-records/${encodeURIComponent(dnsRecordId)}`, {
|
|
1186
|
+
...opts,
|
|
1187
|
+
method: "DELETE",
|
|
1188
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1189
|
+
Authorization: authorization,
|
|
1190
|
+
"x-account-id": xAccountId
|
|
1191
|
+
})
|
|
1192
|
+
}));
|
|
1193
|
+
}
|
|
1313
1194
|
export function getCidr({ authorization, xAccountId, foundationId, cidrId }: {
|
|
1314
1195
|
authorization: string;
|
|
1315
1196
|
xAccountId?: string;
|
|
@@ -1327,6 +1208,21 @@ export function getCidr({ authorization, xAccountId, foundationId, cidrId }: {
|
|
|
1327
1208
|
})
|
|
1328
1209
|
}));
|
|
1329
1210
|
}
|
|
1211
|
+
export function deleteCidr({ authorization, xAccountId, foundationId, cidrId }: {
|
|
1212
|
+
authorization: string;
|
|
1213
|
+
xAccountId?: string;
|
|
1214
|
+
foundationId: string;
|
|
1215
|
+
cidrId: string;
|
|
1216
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1217
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/cidrs/${encodeURIComponent(cidrId)}`, {
|
|
1218
|
+
...opts,
|
|
1219
|
+
method: "DELETE",
|
|
1220
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1221
|
+
Authorization: authorization,
|
|
1222
|
+
"x-account-id": xAccountId
|
|
1223
|
+
})
|
|
1224
|
+
}));
|
|
1225
|
+
}
|
|
1330
1226
|
export function getCertificate({ authorization, xAccountId, foundationId, certificateId }: {
|
|
1331
1227
|
authorization: string;
|
|
1332
1228
|
xAccountId?: string;
|
|
@@ -1344,6 +1240,21 @@ export function getCertificate({ authorization, xAccountId, foundationId, certif
|
|
|
1344
1240
|
})
|
|
1345
1241
|
}));
|
|
1346
1242
|
}
|
|
1243
|
+
export function deleteCertificate({ authorization, xAccountId, foundationId, certificateId }: {
|
|
1244
|
+
authorization: string;
|
|
1245
|
+
xAccountId?: string;
|
|
1246
|
+
foundationId: string;
|
|
1247
|
+
certificateId: string;
|
|
1248
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1249
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/certificates/${encodeURIComponent(certificateId)}`, {
|
|
1250
|
+
...opts,
|
|
1251
|
+
method: "DELETE",
|
|
1252
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1253
|
+
Authorization: authorization,
|
|
1254
|
+
"x-account-id": xAccountId
|
|
1255
|
+
})
|
|
1256
|
+
}));
|
|
1257
|
+
}
|
|
1347
1258
|
export function getProvisionAvailability({ cloudProvider }: {
|
|
1348
1259
|
cloudProvider: string;
|
|
1349
1260
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1368,3 +1279,18 @@ export function providers(opts?: Oazapfts.RequestOpts) {
|
|
|
1368
1279
|
...opts
|
|
1369
1280
|
}));
|
|
1370
1281
|
}
|
|
1282
|
+
export function deleteFolder({ authorization, xAccountId, foundationId, folderId }: {
|
|
1283
|
+
authorization: string;
|
|
1284
|
+
xAccountId?: string;
|
|
1285
|
+
foundationId: string;
|
|
1286
|
+
folderId: string;
|
|
1287
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1288
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/folders/${encodeURIComponent(folderId)}`, {
|
|
1289
|
+
...opts,
|
|
1290
|
+
method: "DELETE",
|
|
1291
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1292
|
+
Authorization: authorization,
|
|
1293
|
+
"x-account-id": xAccountId
|
|
1294
|
+
})
|
|
1295
|
+
}));
|
|
1296
|
+
}
|