@stack-spot/portal-network 0.191.1 → 0.192.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 +12 -0
- package/dist/api/cloudPlatform.d.ts +358 -188
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +244 -80
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/genAiInference.d.ts +22 -2
- package/dist/api/genAiInference.d.ts.map +1 -1
- package/dist/api/genAiInference.js +22 -3
- package/dist/api/genAiInference.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +49 -1
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +20 -2
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/types.d.ts +1 -0
- package/dist/client/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/cloudPlatform.ts +614 -256
- package/src/api/genAiInference.ts +47 -4
- package/src/client/cloud-platform.ts +12 -2
- package/src/client/types.ts +1 -0
package/src/api/cloudPlatform.ts
CHANGED
|
@@ -14,6 +14,172 @@ const oazapfts = Oazapfts.runtime(defaults);
|
|
|
14
14
|
export const servers = {
|
|
15
15
|
generatedServerUrl: "https://cloud-cloud-platform-api.dev.stackspot.com"
|
|
16
16
|
};
|
|
17
|
+
export type Tag = {
|
|
18
|
+
key: string;
|
|
19
|
+
value: string;
|
|
20
|
+
};
|
|
21
|
+
export type TunnelStatus = {
|
|
22
|
+
tunnel1?: string;
|
|
23
|
+
tunnel2?: string;
|
|
24
|
+
};
|
|
25
|
+
export type VpnDetails = {
|
|
26
|
+
peerCustomerGatewayIp: string;
|
|
27
|
+
destinationCidrBlock: string;
|
|
28
|
+
tunnelStatus: TunnelStatus;
|
|
29
|
+
};
|
|
30
|
+
export type VpnResponse = {
|
|
31
|
+
stackSpotAccountId: string;
|
|
32
|
+
foundationId: string;
|
|
33
|
+
vpnId: string;
|
|
34
|
+
details: VpnDetails;
|
|
35
|
+
tags: Tag[];
|
|
36
|
+
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
37
|
+
createdAt: string;
|
|
38
|
+
updatedAt: string;
|
|
39
|
+
deletedAt?: string;
|
|
40
|
+
};
|
|
41
|
+
export type ProjectDetails = {
|
|
42
|
+
name: string;
|
|
43
|
+
folderName: string;
|
|
44
|
+
providerAccountId?: string;
|
|
45
|
+
};
|
|
46
|
+
export type ProjectResponse = {
|
|
47
|
+
stackSpotAccountId: string;
|
|
48
|
+
foundationId: string;
|
|
49
|
+
parentFolderId: string;
|
|
50
|
+
projectId: string;
|
|
51
|
+
details: ProjectDetails;
|
|
52
|
+
tags: Tag[];
|
|
53
|
+
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
54
|
+
createdAt: string;
|
|
55
|
+
updatedAt: string;
|
|
56
|
+
deletedAt?: string;
|
|
57
|
+
};
|
|
58
|
+
export type NetworkSubnetDetails = {
|
|
59
|
+
az?: string;
|
|
60
|
+
cidr?: string;
|
|
61
|
+
id?: string;
|
|
62
|
+
"type": "NAT" | "PRIVATE" | "PUBLIC";
|
|
63
|
+
};
|
|
64
|
+
export type NetworkDetails = {
|
|
65
|
+
cidrs?: string[];
|
|
66
|
+
name: string;
|
|
67
|
+
"type": "WORKLOAD";
|
|
68
|
+
subnets: NetworkSubnetDetails[];
|
|
69
|
+
};
|
|
70
|
+
export type NetworkResponse = {
|
|
71
|
+
stackSpotAccountId: string;
|
|
72
|
+
foundationId: string;
|
|
73
|
+
projectId: string;
|
|
74
|
+
networkId: string;
|
|
75
|
+
details: NetworkDetails;
|
|
76
|
+
tags: Tag[];
|
|
77
|
+
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
78
|
+
createdAt: string;
|
|
79
|
+
updatedAt: string;
|
|
80
|
+
deletedAt?: string;
|
|
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
|
+
export type FolderContent = {
|
|
98
|
+
"type": "FOLDER" | "PROJECT";
|
|
99
|
+
id: string;
|
|
100
|
+
name: string;
|
|
101
|
+
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
102
|
+
};
|
|
103
|
+
export type FolderDetails = {
|
|
104
|
+
name: string;
|
|
105
|
+
pendingResources: boolean;
|
|
106
|
+
content: FolderContent[];
|
|
107
|
+
};
|
|
108
|
+
export type FolderResponse = {
|
|
109
|
+
stackSpotAccountId: string;
|
|
110
|
+
foundationId: string;
|
|
111
|
+
parentFolderId: string;
|
|
112
|
+
folderId: string;
|
|
113
|
+
details: FolderDetails;
|
|
114
|
+
tags: Tag[];
|
|
115
|
+
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
116
|
+
createdAt: string;
|
|
117
|
+
updatedAt: string;
|
|
118
|
+
deletedAt?: string;
|
|
119
|
+
};
|
|
120
|
+
export type DnsZoneDetails = {
|
|
121
|
+
domain: string;
|
|
122
|
+
dnsZoneType: string;
|
|
123
|
+
};
|
|
124
|
+
export type DnsZoneResponse = {
|
|
125
|
+
stackSpotAccountId: string;
|
|
126
|
+
foundationId: string;
|
|
127
|
+
dnsZoneId: string;
|
|
128
|
+
details: DnsZoneDetails;
|
|
129
|
+
tags: Tag[];
|
|
130
|
+
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
131
|
+
createdAt: string;
|
|
132
|
+
updatedAt: string;
|
|
133
|
+
deletedAt?: string;
|
|
134
|
+
};
|
|
135
|
+
export type CidrDetails = {
|
|
136
|
+
cidrNotation: string;
|
|
137
|
+
networkAddress: string;
|
|
138
|
+
netmask: string;
|
|
139
|
+
broadcastAddress: string;
|
|
140
|
+
lowAddress: string;
|
|
141
|
+
highAddress: string;
|
|
142
|
+
addressCount: number;
|
|
143
|
+
};
|
|
144
|
+
export type CidrResponse = {
|
|
145
|
+
stackSpotAccountId: string;
|
|
146
|
+
foundationId: string;
|
|
147
|
+
cidrId: string;
|
|
148
|
+
details: CidrDetails;
|
|
149
|
+
tags: Tag[];
|
|
150
|
+
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
151
|
+
createdAt: string;
|
|
152
|
+
updatedAt: string;
|
|
153
|
+
deletedAt?: string;
|
|
154
|
+
};
|
|
155
|
+
export type CertificateDomainValidation = {
|
|
156
|
+
domainName?: string;
|
|
157
|
+
recordName?: string;
|
|
158
|
+
recordType?: string;
|
|
159
|
+
recordValue?: string;
|
|
160
|
+
};
|
|
161
|
+
export type CertificateDetails = {
|
|
162
|
+
name: string;
|
|
163
|
+
forInbound: "TRUE" | "FALSE";
|
|
164
|
+
certificateStatus?: string;
|
|
165
|
+
domainName?: string;
|
|
166
|
+
domainValidation?: CertificateDomainValidation[];
|
|
167
|
+
notAfter?: string;
|
|
168
|
+
notBefore?: string;
|
|
169
|
+
"type"?: string;
|
|
170
|
+
validationMethod?: string;
|
|
171
|
+
};
|
|
172
|
+
export type CertificateResponse = {
|
|
173
|
+
stackSpotAccountId: string;
|
|
174
|
+
foundationId: string;
|
|
175
|
+
certificateId: string;
|
|
176
|
+
details: CertificateDetails;
|
|
177
|
+
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
178
|
+
tags: Tag[];
|
|
179
|
+
createdAt: string;
|
|
180
|
+
updatedAt: string;
|
|
181
|
+
deletedAt?: string;
|
|
182
|
+
};
|
|
17
183
|
export type FoundationDetails = {
|
|
18
184
|
name: string;
|
|
19
185
|
description: string;
|
|
@@ -24,6 +190,7 @@ export type FoundationResponse = {
|
|
|
24
190
|
stackSpotAccountId: string;
|
|
25
191
|
foundationId: string;
|
|
26
192
|
details: FoundationDetails;
|
|
193
|
+
tags: Tag[];
|
|
27
194
|
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
28
195
|
createdAt: string;
|
|
29
196
|
updatedAt: string;
|
|
@@ -40,25 +207,6 @@ export type CreateFoundationRequest = {
|
|
|
40
207
|
cloudProvider: string;
|
|
41
208
|
region: string;
|
|
42
209
|
};
|
|
43
|
-
export type TunnelStatus = {
|
|
44
|
-
tunnel1?: string;
|
|
45
|
-
tunnel2?: string;
|
|
46
|
-
};
|
|
47
|
-
export type VpnDetails = {
|
|
48
|
-
peerCustomerGatewayIp: string;
|
|
49
|
-
destinationCidrBlock: string;
|
|
50
|
-
tunnelStatus: TunnelStatus;
|
|
51
|
-
};
|
|
52
|
-
export type VpnResponse = {
|
|
53
|
-
stackSpotAccountId: string;
|
|
54
|
-
foundationId: string;
|
|
55
|
-
vpnId: string;
|
|
56
|
-
details: VpnDetails;
|
|
57
|
-
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
58
|
-
createdAt: string;
|
|
59
|
-
updatedAt: string;
|
|
60
|
-
deletedAt?: string;
|
|
61
|
-
};
|
|
62
210
|
export type ListVpnResponse = {
|
|
63
211
|
stackSpotAccountId: string;
|
|
64
212
|
foundationId: string;
|
|
@@ -68,6 +216,7 @@ export type ListVpnResponse = {
|
|
|
68
216
|
export type CreateVpnRequest = {
|
|
69
217
|
peerCustomerGatewayIp: string;
|
|
70
218
|
destinationCidrBlock: string;
|
|
219
|
+
tags?: Tag[];
|
|
71
220
|
};
|
|
72
221
|
export type TenantDetails = {
|
|
73
222
|
name: string;
|
|
@@ -89,25 +238,38 @@ export type ListTenantResponse = {
|
|
|
89
238
|
content: TenantResponse[];
|
|
90
239
|
};
|
|
91
240
|
export type CreateTenantRequest = {
|
|
92
|
-
|
|
241
|
+
name: string;
|
|
93
242
|
publicCidrs: string[];
|
|
94
243
|
};
|
|
95
|
-
export type
|
|
244
|
+
export type RuntimeDetails = {
|
|
96
245
|
name: string;
|
|
97
|
-
folderName: string;
|
|
98
|
-
providerAccountId?: string;
|
|
99
246
|
};
|
|
100
|
-
export type
|
|
247
|
+
export type RuntimeResponse = {
|
|
101
248
|
stackSpotAccountId: string;
|
|
102
249
|
foundationId: string;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
details:
|
|
250
|
+
tenantId: string;
|
|
251
|
+
runtimeId: string;
|
|
252
|
+
details: RuntimeDetails;
|
|
106
253
|
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
107
254
|
createdAt: string;
|
|
108
255
|
updatedAt: string;
|
|
109
256
|
deletedAt?: string;
|
|
110
257
|
};
|
|
258
|
+
export type ListRuntimeResponse = {
|
|
259
|
+
stackSpotAccountId: string;
|
|
260
|
+
foundationId: string;
|
|
261
|
+
projectId?: string;
|
|
262
|
+
tenantId?: string;
|
|
263
|
+
pendingResources: boolean;
|
|
264
|
+
content: RuntimeResponse[];
|
|
265
|
+
};
|
|
266
|
+
export type CreateRuntimeRequest = {
|
|
267
|
+
projectId: string;
|
|
268
|
+
tenantId: string;
|
|
269
|
+
name: string;
|
|
270
|
+
publicCidrs: string[];
|
|
271
|
+
clusterAdminRoles: string[];
|
|
272
|
+
};
|
|
111
273
|
export type ListProjectResponse = {
|
|
112
274
|
stackSpotAccountId: string;
|
|
113
275
|
foundationId: string;
|
|
@@ -119,29 +281,7 @@ export type CreateProjectRequest = {
|
|
|
119
281
|
parentFolderId: string;
|
|
120
282
|
name: string;
|
|
121
283
|
description: string;
|
|
122
|
-
|
|
123
|
-
export type NetworkSubnetDetails = {
|
|
124
|
-
az?: string;
|
|
125
|
-
cidr?: string;
|
|
126
|
-
id?: string;
|
|
127
|
-
"type": "NAT" | "PRIVATE" | "PUBLIC";
|
|
128
|
-
};
|
|
129
|
-
export type NetworkDetails = {
|
|
130
|
-
cidrs?: string[];
|
|
131
|
-
name: string;
|
|
132
|
-
"type": "WORKLOAD";
|
|
133
|
-
subnets: NetworkSubnetDetails[];
|
|
134
|
-
};
|
|
135
|
-
export type NetworkResponse = {
|
|
136
|
-
stackSpotAccountId: string;
|
|
137
|
-
foundationId: string;
|
|
138
|
-
projectId: string;
|
|
139
|
-
networkId: string;
|
|
140
|
-
details: NetworkDetails;
|
|
141
|
-
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
142
|
-
createdAt: string;
|
|
143
|
-
updatedAt: string;
|
|
144
|
-
deletedAt?: string;
|
|
284
|
+
tags?: Tag[];
|
|
145
285
|
};
|
|
146
286
|
export type ListNetworkResponse = {
|
|
147
287
|
stackSpotAccountId: string;
|
|
@@ -155,6 +295,7 @@ export type CreateNetworkRequest = {
|
|
|
155
295
|
prefixLength: number;
|
|
156
296
|
networkName?: string;
|
|
157
297
|
networkType: "WORKLOAD";
|
|
298
|
+
tags?: Tag[];
|
|
158
299
|
};
|
|
159
300
|
export type NetworkConnectionDetails = {
|
|
160
301
|
accepted?: boolean;
|
|
@@ -170,6 +311,7 @@ export type NetworkConnectionResponse = {
|
|
|
170
311
|
requesterProjectId: string;
|
|
171
312
|
networkConnectionId: string;
|
|
172
313
|
details: NetworkConnectionDetails;
|
|
314
|
+
tags: Tag[];
|
|
173
315
|
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
174
316
|
createdAt: string;
|
|
175
317
|
updatedAt: string;
|
|
@@ -188,20 +330,7 @@ export type ListNetworkConnectionResponse = {
|
|
|
188
330
|
export type CreateNetworkConnectionRequest = {
|
|
189
331
|
accepterNetworkId: string;
|
|
190
332
|
requesterNetworkId: string;
|
|
191
|
-
|
|
192
|
-
export type InboundDetails = {
|
|
193
|
-
recordName: string;
|
|
194
|
-
};
|
|
195
|
-
export type InboundResponse = {
|
|
196
|
-
stackSpotAccountId: string;
|
|
197
|
-
foundationId: string;
|
|
198
|
-
projectId: string;
|
|
199
|
-
inboundId: string;
|
|
200
|
-
details: InboundDetails;
|
|
201
|
-
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
202
|
-
createdAt: string;
|
|
203
|
-
updatedAt: string;
|
|
204
|
-
deletedAt?: string;
|
|
333
|
+
tags?: Tag[];
|
|
205
334
|
};
|
|
206
335
|
export type ListInboundResponse = {
|
|
207
336
|
stackSpotAccountId: string;
|
|
@@ -212,48 +341,14 @@ export type ListInboundResponse = {
|
|
|
212
341
|
export type CreateInboundRequest = {
|
|
213
342
|
projectId: string;
|
|
214
343
|
certificateId: string;
|
|
215
|
-
domain: string;
|
|
216
|
-
applicationLoadBalancer: string;
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
name: string;
|
|
222
|
-
|
|
223
|
-
};
|
|
224
|
-
export type FolderDetails = {
|
|
225
|
-
name: string;
|
|
226
|
-
pendingResources: boolean;
|
|
227
|
-
content: FolderContent[];
|
|
228
|
-
};
|
|
229
|
-
export type FolderResponse = {
|
|
230
|
-
stackSpotAccountId: string;
|
|
231
|
-
foundationId: string;
|
|
232
|
-
parentFolderId: string;
|
|
233
|
-
folderId: string;
|
|
234
|
-
details: FolderDetails;
|
|
235
|
-
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
236
|
-
createdAt: string;
|
|
237
|
-
updatedAt: string;
|
|
238
|
-
deletedAt?: string;
|
|
239
|
-
};
|
|
240
|
-
export type CreateFolderRequest = {
|
|
241
|
-
parentFolderId: string;
|
|
242
|
-
name: string;
|
|
243
|
-
};
|
|
244
|
-
export type DnsZoneDetails = {
|
|
245
|
-
domain: string;
|
|
246
|
-
dnsZoneType: string;
|
|
247
|
-
};
|
|
248
|
-
export type DnsZoneResponse = {
|
|
249
|
-
stackSpotAccountId: string;
|
|
250
|
-
foundationId: string;
|
|
251
|
-
dnsZoneId: string;
|
|
252
|
-
details: DnsZoneDetails;
|
|
253
|
-
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
254
|
-
createdAt: string;
|
|
255
|
-
updatedAt: string;
|
|
256
|
-
deletedAt?: string;
|
|
344
|
+
domain: string;
|
|
345
|
+
applicationLoadBalancer: string;
|
|
346
|
+
tags?: Tag[];
|
|
347
|
+
};
|
|
348
|
+
export type CreateFolderRequest = {
|
|
349
|
+
parentFolderId: string;
|
|
350
|
+
name: string;
|
|
351
|
+
tags?: Tag[];
|
|
257
352
|
};
|
|
258
353
|
export type ListDnsZoneResponse = {
|
|
259
354
|
stackSpotAccountId: string;
|
|
@@ -265,6 +360,7 @@ export type CreateDnsZoneRequest = {
|
|
|
265
360
|
domain: string;
|
|
266
361
|
"type": "PUBLIC" | "PRIVATE";
|
|
267
362
|
projectId?: string;
|
|
363
|
+
tags?: Tag[];
|
|
268
364
|
};
|
|
269
365
|
export type DnsRecordDetails = {
|
|
270
366
|
recordName: string;
|
|
@@ -279,6 +375,7 @@ export type DnsRecordResponse = {
|
|
|
279
375
|
dnsZoneId: string;
|
|
280
376
|
dnsRecordId: string;
|
|
281
377
|
details: DnsRecordDetails;
|
|
378
|
+
tags: Tag[];
|
|
282
379
|
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
283
380
|
createdAt: string;
|
|
284
381
|
updatedAt: string;
|
|
@@ -300,25 +397,6 @@ export type CreateDnsRecordRequest = {
|
|
|
300
397
|
ttl: number;
|
|
301
398
|
"type": "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "PTR" | "SOA" | "SRV" | "TXT";
|
|
302
399
|
};
|
|
303
|
-
export type CidrDetails = {
|
|
304
|
-
cidrNotation: string;
|
|
305
|
-
networkAddress: string;
|
|
306
|
-
netmask: string;
|
|
307
|
-
broadcastAddress: string;
|
|
308
|
-
lowAddress: string;
|
|
309
|
-
highAddress: string;
|
|
310
|
-
addressCount: number;
|
|
311
|
-
};
|
|
312
|
-
export type CidrResponse = {
|
|
313
|
-
stackSpotAccountId: string;
|
|
314
|
-
foundationId: string;
|
|
315
|
-
cidrId: string;
|
|
316
|
-
details: CidrDetails;
|
|
317
|
-
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
318
|
-
createdAt: string;
|
|
319
|
-
updatedAt: string;
|
|
320
|
-
deletedAt?: string;
|
|
321
|
-
};
|
|
322
400
|
export type ListCidrResponse = {
|
|
323
401
|
stackSpotAccountId: string;
|
|
324
402
|
foundationId: string;
|
|
@@ -328,33 +406,7 @@ export type ListCidrResponse = {
|
|
|
328
406
|
export type CreateCidrRequest = {
|
|
329
407
|
address: string;
|
|
330
408
|
prefix: number;
|
|
331
|
-
|
|
332
|
-
export type CertificateDomainValidation = {
|
|
333
|
-
domainName?: string;
|
|
334
|
-
recordName?: string;
|
|
335
|
-
recordType?: string;
|
|
336
|
-
recordValue?: string;
|
|
337
|
-
};
|
|
338
|
-
export type CertificateDetails = {
|
|
339
|
-
name: string;
|
|
340
|
-
forInbound: "TRUE" | "FALSE";
|
|
341
|
-
certificateStatus?: string;
|
|
342
|
-
domainName?: string;
|
|
343
|
-
domainValidation?: CertificateDomainValidation[];
|
|
344
|
-
notAfter?: string;
|
|
345
|
-
notBefore?: string;
|
|
346
|
-
"type"?: string;
|
|
347
|
-
validationMethod?: string;
|
|
348
|
-
};
|
|
349
|
-
export type CertificateResponse = {
|
|
350
|
-
stackSpotAccountId: string;
|
|
351
|
-
foundationId: string;
|
|
352
|
-
certificateId: string;
|
|
353
|
-
details: CertificateDetails;
|
|
354
|
-
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
355
|
-
createdAt: string;
|
|
356
|
-
updatedAt: string;
|
|
357
|
-
deletedAt?: string;
|
|
409
|
+
tags?: Tag[];
|
|
358
410
|
};
|
|
359
411
|
export type ListCertificateResponse = {
|
|
360
412
|
stackSpotAccountId: string;
|
|
@@ -363,6 +415,7 @@ export type ListCertificateResponse = {
|
|
|
363
415
|
content: CertificateResponse[];
|
|
364
416
|
};
|
|
365
417
|
export type CreateCertificateRequestBase = {
|
|
418
|
+
tags?: Tag[];
|
|
366
419
|
certificateName: string;
|
|
367
420
|
forInbound: "TRUE" | "FALSE";
|
|
368
421
|
"type": string;
|
|
@@ -388,37 +441,202 @@ export type VpnConfigurationResponse = {
|
|
|
388
441
|
foundationId: string;
|
|
389
442
|
configuration: Configuration;
|
|
390
443
|
};
|
|
391
|
-
export function
|
|
444
|
+
export function putVpnTags({ authorization, xAccountId, foundationId, vpnId, body }: {
|
|
392
445
|
authorization: string;
|
|
446
|
+
xAccountId?: string;
|
|
447
|
+
foundationId: string;
|
|
448
|
+
vpnId: string;
|
|
449
|
+
body: Tag[];
|
|
393
450
|
}, opts?: Oazapfts.RequestOpts) {
|
|
394
451
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
395
|
-
status:
|
|
452
|
+
status: 202;
|
|
453
|
+
data: VpnResponse;
|
|
454
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}/tags`, oazapfts.json({
|
|
455
|
+
...opts,
|
|
456
|
+
method: "PUT",
|
|
457
|
+
body,
|
|
458
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
459
|
+
Authorization: authorization,
|
|
460
|
+
"x-account-id": xAccountId
|
|
461
|
+
})
|
|
462
|
+
})));
|
|
463
|
+
}
|
|
464
|
+
export function putProjectTags({ authorization, xAccountId, foundationId, projectId, body }: {
|
|
465
|
+
authorization: string;
|
|
466
|
+
xAccountId?: string;
|
|
467
|
+
foundationId: string;
|
|
468
|
+
projectId: string;
|
|
469
|
+
body: Tag[];
|
|
470
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
471
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
472
|
+
status: 202;
|
|
473
|
+
data: ProjectResponse;
|
|
474
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/projects/${encodeURIComponent(projectId)}/tags`, oazapfts.json({
|
|
475
|
+
...opts,
|
|
476
|
+
method: "PUT",
|
|
477
|
+
body,
|
|
478
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
479
|
+
Authorization: authorization,
|
|
480
|
+
"x-account-id": xAccountId
|
|
481
|
+
})
|
|
482
|
+
})));
|
|
483
|
+
}
|
|
484
|
+
export function putNetworkTags({ authorization, xAccountId, foundationId, networkId, body }: {
|
|
485
|
+
authorization: string;
|
|
486
|
+
xAccountId?: string;
|
|
487
|
+
foundationId: string;
|
|
488
|
+
networkId: string;
|
|
489
|
+
body: Tag[];
|
|
490
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
491
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
492
|
+
status: 202;
|
|
493
|
+
data: NetworkResponse;
|
|
494
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}/tags`, oazapfts.json({
|
|
495
|
+
...opts,
|
|
496
|
+
method: "PUT",
|
|
497
|
+
body,
|
|
498
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
499
|
+
Authorization: authorization,
|
|
500
|
+
"x-account-id": xAccountId
|
|
501
|
+
})
|
|
502
|
+
})));
|
|
503
|
+
}
|
|
504
|
+
export function putInboundTags({ authorization, xAccountId, foundationId, inboundId, body }: {
|
|
505
|
+
authorization: string;
|
|
506
|
+
xAccountId?: string;
|
|
507
|
+
foundationId: string;
|
|
508
|
+
inboundId: string;
|
|
509
|
+
body: Tag[];
|
|
510
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
511
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
512
|
+
status: 202;
|
|
513
|
+
data: InboundResponse;
|
|
514
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/inbounds/${encodeURIComponent(inboundId)}/tags`, oazapfts.json({
|
|
515
|
+
...opts,
|
|
516
|
+
method: "PUT",
|
|
517
|
+
body,
|
|
518
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
519
|
+
Authorization: authorization,
|
|
520
|
+
"x-account-id": xAccountId
|
|
521
|
+
})
|
|
522
|
+
})));
|
|
523
|
+
}
|
|
524
|
+
export function putFolderTags({ authorization, xAccountId, foundationId, folderId, body }: {
|
|
525
|
+
authorization: string;
|
|
526
|
+
xAccountId?: string;
|
|
527
|
+
foundationId: string;
|
|
528
|
+
folderId: string;
|
|
529
|
+
body: Tag[];
|
|
530
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
531
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
532
|
+
status: 202;
|
|
533
|
+
data: FolderResponse;
|
|
534
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/folders/${encodeURIComponent(folderId)}/tags`, oazapfts.json({
|
|
535
|
+
...opts,
|
|
536
|
+
method: "PUT",
|
|
537
|
+
body,
|
|
538
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
539
|
+
Authorization: authorization,
|
|
540
|
+
"x-account-id": xAccountId
|
|
541
|
+
})
|
|
542
|
+
})));
|
|
543
|
+
}
|
|
544
|
+
export function putDnsZoneTags({ authorization, xAccountId, foundationId, dnsZoneId, body }: {
|
|
545
|
+
authorization: string;
|
|
546
|
+
xAccountId?: string;
|
|
547
|
+
foundationId: string;
|
|
548
|
+
dnsZoneId: string;
|
|
549
|
+
body: Tag[];
|
|
550
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
551
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
552
|
+
status: 202;
|
|
553
|
+
data: DnsZoneResponse;
|
|
554
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-zones/${encodeURIComponent(dnsZoneId)}/tags`, oazapfts.json({
|
|
555
|
+
...opts,
|
|
556
|
+
method: "PUT",
|
|
557
|
+
body,
|
|
558
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
559
|
+
Authorization: authorization,
|
|
560
|
+
"x-account-id": xAccountId
|
|
561
|
+
})
|
|
562
|
+
})));
|
|
563
|
+
}
|
|
564
|
+
export function putCidrTags({ authorization, xAccountId, foundationId, cidrId, body }: {
|
|
565
|
+
authorization: string;
|
|
566
|
+
xAccountId?: string;
|
|
567
|
+
foundationId: string;
|
|
568
|
+
cidrId: string;
|
|
569
|
+
body: Tag[];
|
|
570
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
571
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
572
|
+
status: 202;
|
|
573
|
+
data: CidrResponse;
|
|
574
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/cidrs/${encodeURIComponent(cidrId)}/tags`, oazapfts.json({
|
|
575
|
+
...opts,
|
|
576
|
+
method: "PUT",
|
|
577
|
+
body,
|
|
578
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
579
|
+
Authorization: authorization,
|
|
580
|
+
"x-account-id": xAccountId
|
|
581
|
+
})
|
|
582
|
+
})));
|
|
583
|
+
}
|
|
584
|
+
export function putCertificateTags({ authorization, xAccountId, foundationId, certificateId, body }: {
|
|
585
|
+
authorization: string;
|
|
586
|
+
xAccountId?: string;
|
|
587
|
+
foundationId: string;
|
|
588
|
+
certificateId: string;
|
|
589
|
+
body: Tag[];
|
|
590
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
591
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
592
|
+
status: 202;
|
|
593
|
+
data: CertificateResponse;
|
|
594
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/certificates/${encodeURIComponent(certificateId)}/tags`, oazapfts.json({
|
|
595
|
+
...opts,
|
|
596
|
+
method: "PUT",
|
|
597
|
+
body,
|
|
598
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
599
|
+
Authorization: authorization,
|
|
600
|
+
"x-account-id": xAccountId
|
|
601
|
+
})
|
|
602
|
+
})));
|
|
603
|
+
}
|
|
604
|
+
export function listFoundations({ authorization, xAccountId }: {
|
|
605
|
+
authorization: string;
|
|
606
|
+
xAccountId?: string;
|
|
607
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
608
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
609
|
+
status: 202;
|
|
396
610
|
data: ListFoundationResponse;
|
|
397
611
|
}>("/v1/foundations", {
|
|
398
612
|
...opts,
|
|
399
613
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
400
|
-
Authorization: authorization
|
|
614
|
+
Authorization: authorization,
|
|
615
|
+
"x-account-id": xAccountId
|
|
401
616
|
})
|
|
402
617
|
}));
|
|
403
618
|
}
|
|
404
|
-
export function createFoundation({ authorization, createFoundationRequest }: {
|
|
619
|
+
export function createFoundation({ authorization, xAccountId, createFoundationRequest }: {
|
|
405
620
|
authorization: string;
|
|
621
|
+
xAccountId?: string;
|
|
406
622
|
createFoundationRequest: CreateFoundationRequest;
|
|
407
623
|
}, opts?: Oazapfts.RequestOpts) {
|
|
408
624
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
409
|
-
status:
|
|
625
|
+
status: 202;
|
|
410
626
|
data: FoundationResponse;
|
|
411
627
|
}>("/v1/foundations", oazapfts.json({
|
|
412
628
|
...opts,
|
|
413
629
|
method: "POST",
|
|
414
630
|
body: createFoundationRequest,
|
|
415
631
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
416
|
-
Authorization: authorization
|
|
632
|
+
Authorization: authorization,
|
|
633
|
+
"x-account-id": xAccountId
|
|
417
634
|
})
|
|
418
635
|
})));
|
|
419
636
|
}
|
|
420
|
-
export function listVpns({ authorization, foundationId }: {
|
|
637
|
+
export function listVpns({ authorization, xAccountId, foundationId }: {
|
|
421
638
|
authorization: string;
|
|
639
|
+
xAccountId?: string;
|
|
422
640
|
foundationId: string;
|
|
423
641
|
}, opts?: Oazapfts.RequestOpts) {
|
|
424
642
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -427,29 +645,33 @@ export function listVpns({ authorization, foundationId }: {
|
|
|
427
645
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/vpns`, {
|
|
428
646
|
...opts,
|
|
429
647
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
430
|
-
Authorization: authorization
|
|
648
|
+
Authorization: authorization,
|
|
649
|
+
"x-account-id": xAccountId
|
|
431
650
|
})
|
|
432
651
|
}));
|
|
433
652
|
}
|
|
434
|
-
export function createVpn({ authorization, foundationId, createVpnRequest }: {
|
|
653
|
+
export function createVpn({ authorization, xAccountId, foundationId, createVpnRequest }: {
|
|
435
654
|
authorization: string;
|
|
655
|
+
xAccountId?: string;
|
|
436
656
|
foundationId: string;
|
|
437
657
|
createVpnRequest: CreateVpnRequest;
|
|
438
658
|
}, opts?: Oazapfts.RequestOpts) {
|
|
439
659
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
440
|
-
status:
|
|
660
|
+
status: 202;
|
|
441
661
|
data: VpnResponse;
|
|
442
662
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/vpns`, oazapfts.json({
|
|
443
663
|
...opts,
|
|
444
664
|
method: "POST",
|
|
445
665
|
body: createVpnRequest,
|
|
446
666
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
447
|
-
Authorization: authorization
|
|
667
|
+
Authorization: authorization,
|
|
668
|
+
"x-account-id": xAccountId
|
|
448
669
|
})
|
|
449
670
|
})));
|
|
450
671
|
}
|
|
451
|
-
export function listTenant({ authorization, foundationId }: {
|
|
672
|
+
export function listTenant({ authorization, xAccountId, foundationId }: {
|
|
452
673
|
authorization: string;
|
|
674
|
+
xAccountId?: string;
|
|
453
675
|
foundationId: string;
|
|
454
676
|
}, opts?: Oazapfts.RequestOpts) {
|
|
455
677
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -458,12 +680,14 @@ export function listTenant({ authorization, foundationId }: {
|
|
|
458
680
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/tenants`, {
|
|
459
681
|
...opts,
|
|
460
682
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
461
|
-
Authorization: authorization
|
|
683
|
+
Authorization: authorization,
|
|
684
|
+
"x-account-id": xAccountId
|
|
462
685
|
})
|
|
463
686
|
}));
|
|
464
687
|
}
|
|
465
|
-
export function createTenant({ authorization, foundationId, createTenantRequest }: {
|
|
688
|
+
export function createTenant({ authorization, xAccountId, foundationId, createTenantRequest }: {
|
|
466
689
|
authorization: string;
|
|
690
|
+
xAccountId?: string;
|
|
467
691
|
foundationId: string;
|
|
468
692
|
createTenantRequest: CreateTenantRequest;
|
|
469
693
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -475,12 +699,54 @@ export function createTenant({ authorization, foundationId, createTenantRequest
|
|
|
475
699
|
method: "POST",
|
|
476
700
|
body: createTenantRequest,
|
|
477
701
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
478
|
-
Authorization: authorization
|
|
702
|
+
Authorization: authorization,
|
|
703
|
+
"x-account-id": xAccountId
|
|
704
|
+
})
|
|
705
|
+
})));
|
|
706
|
+
}
|
|
707
|
+
export function listRuntime({ authorization, xAccountId, foundationId, tenantId, projectId }: {
|
|
708
|
+
authorization: string;
|
|
709
|
+
xAccountId?: string;
|
|
710
|
+
foundationId: string;
|
|
711
|
+
tenantId?: string;
|
|
712
|
+
projectId?: string;
|
|
713
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
714
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
715
|
+
status: 200;
|
|
716
|
+
data: ListRuntimeResponse;
|
|
717
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/runtimes${QS.query(QS.explode({
|
|
718
|
+
tenantId,
|
|
719
|
+
projectId
|
|
720
|
+
}))}`, {
|
|
721
|
+
...opts,
|
|
722
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
723
|
+
Authorization: authorization,
|
|
724
|
+
"x-account-id": xAccountId
|
|
725
|
+
})
|
|
726
|
+
}));
|
|
727
|
+
}
|
|
728
|
+
export function createRuntime({ authorization, xAccountId, foundationId, createRuntimeRequest }: {
|
|
729
|
+
authorization: string;
|
|
730
|
+
xAccountId?: string;
|
|
731
|
+
foundationId: string;
|
|
732
|
+
createRuntimeRequest: CreateRuntimeRequest;
|
|
733
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
734
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
735
|
+
status: 202;
|
|
736
|
+
data: RuntimeResponse;
|
|
737
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/runtimes`, oazapfts.json({
|
|
738
|
+
...opts,
|
|
739
|
+
method: "POST",
|
|
740
|
+
body: createRuntimeRequest,
|
|
741
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
742
|
+
Authorization: authorization,
|
|
743
|
+
"x-account-id": xAccountId
|
|
479
744
|
})
|
|
480
745
|
})));
|
|
481
746
|
}
|
|
482
|
-
export function listProject({ authorization, foundationId, parentFolderId }: {
|
|
747
|
+
export function listProject({ authorization, xAccountId, foundationId, parentFolderId }: {
|
|
483
748
|
authorization: string;
|
|
749
|
+
xAccountId?: string;
|
|
484
750
|
foundationId: string;
|
|
485
751
|
parentFolderId?: string;
|
|
486
752
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -492,63 +758,71 @@ export function listProject({ authorization, foundationId, parentFolderId }: {
|
|
|
492
758
|
}))}`, {
|
|
493
759
|
...opts,
|
|
494
760
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
495
|
-
Authorization: authorization
|
|
761
|
+
Authorization: authorization,
|
|
762
|
+
"x-account-id": xAccountId
|
|
496
763
|
})
|
|
497
764
|
}));
|
|
498
765
|
}
|
|
499
|
-
export function createProject({ authorization, foundationId, createProjectRequest }: {
|
|
766
|
+
export function createProject({ authorization, xAccountId, foundationId, createProjectRequest }: {
|
|
500
767
|
authorization: string;
|
|
768
|
+
xAccountId?: string;
|
|
501
769
|
foundationId: string;
|
|
502
770
|
createProjectRequest: CreateProjectRequest;
|
|
503
771
|
}, opts?: Oazapfts.RequestOpts) {
|
|
504
772
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
505
|
-
status:
|
|
773
|
+
status: 202;
|
|
506
774
|
data: ProjectResponse;
|
|
507
775
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/projects`, oazapfts.json({
|
|
508
776
|
...opts,
|
|
509
777
|
method: "POST",
|
|
510
778
|
body: createProjectRequest,
|
|
511
779
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
512
|
-
Authorization: authorization
|
|
780
|
+
Authorization: authorization,
|
|
781
|
+
"x-account-id": xAccountId
|
|
513
782
|
})
|
|
514
783
|
})));
|
|
515
784
|
}
|
|
516
|
-
export function listNetwork({ authorization, foundationId, projectId }: {
|
|
785
|
+
export function listNetwork({ authorization, xAccountId, foundationId, projectId }: {
|
|
517
786
|
authorization: string;
|
|
787
|
+
xAccountId?: string;
|
|
518
788
|
foundationId: string;
|
|
519
789
|
projectId?: string;
|
|
520
790
|
}, opts?: Oazapfts.RequestOpts) {
|
|
521
791
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
522
|
-
status:
|
|
792
|
+
status: 202;
|
|
523
793
|
data: ListNetworkResponse;
|
|
524
794
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/networks${QS.query(QS.explode({
|
|
525
795
|
projectId
|
|
526
796
|
}))}`, {
|
|
527
797
|
...opts,
|
|
528
798
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
529
|
-
Authorization: authorization
|
|
799
|
+
Authorization: authorization,
|
|
800
|
+
"x-account-id": xAccountId
|
|
530
801
|
})
|
|
531
802
|
}));
|
|
532
803
|
}
|
|
533
|
-
export function createNetwork({ authorization, foundationId, createNetworkRequest }: {
|
|
804
|
+
export function createNetwork({ authorization, xAccountId, foundationId, createNetworkRequest }: {
|
|
534
805
|
authorization: string;
|
|
806
|
+
xAccountId?: string;
|
|
535
807
|
foundationId: string;
|
|
536
808
|
createNetworkRequest: CreateNetworkRequest;
|
|
537
809
|
}, opts?: Oazapfts.RequestOpts) {
|
|
538
810
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
539
|
-
status:
|
|
811
|
+
status: 202;
|
|
540
812
|
data: NetworkResponse;
|
|
541
813
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/networks`, oazapfts.json({
|
|
542
814
|
...opts,
|
|
543
815
|
method: "POST",
|
|
544
816
|
body: createNetworkRequest,
|
|
545
817
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
546
|
-
Authorization: authorization
|
|
818
|
+
Authorization: authorization,
|
|
819
|
+
"x-account-id": xAccountId
|
|
547
820
|
})
|
|
548
821
|
})));
|
|
549
822
|
}
|
|
550
|
-
export function listNetworkConnection({ authorization, foundationId, accepterNetworkId, accepterProjectId, requesterNetworkId, requesterProjectId }: {
|
|
823
|
+
export function listNetworkConnection({ authorization, xAccountId, foundationId, accepterNetworkId, accepterProjectId, requesterNetworkId, requesterProjectId }: {
|
|
551
824
|
authorization: string;
|
|
825
|
+
xAccountId?: string;
|
|
552
826
|
foundationId: string;
|
|
553
827
|
accepterNetworkId?: string;
|
|
554
828
|
accepterProjectId?: string;
|
|
@@ -566,29 +840,51 @@ export function listNetworkConnection({ authorization, foundationId, accepterNet
|
|
|
566
840
|
}))}`, {
|
|
567
841
|
...opts,
|
|
568
842
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
569
|
-
Authorization: authorization
|
|
843
|
+
Authorization: authorization,
|
|
844
|
+
"x-account-id": xAccountId
|
|
570
845
|
})
|
|
571
846
|
}));
|
|
572
847
|
}
|
|
573
|
-
export function createNetworkConnection({ authorization, foundationId, createNetworkConnectionRequest }: {
|
|
848
|
+
export function createNetworkConnection({ authorization, xAccountId, foundationId, createNetworkConnectionRequest }: {
|
|
574
849
|
authorization: string;
|
|
850
|
+
xAccountId?: string;
|
|
575
851
|
foundationId: string;
|
|
576
852
|
createNetworkConnectionRequest: CreateNetworkConnectionRequest;
|
|
577
853
|
}, opts?: Oazapfts.RequestOpts) {
|
|
578
854
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
579
|
-
status:
|
|
855
|
+
status: 202;
|
|
580
856
|
data: NetworkConnectionResponse;
|
|
581
857
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/network-connections`, oazapfts.json({
|
|
582
858
|
...opts,
|
|
583
859
|
method: "POST",
|
|
584
860
|
body: createNetworkConnectionRequest,
|
|
585
861
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
586
|
-
Authorization: authorization
|
|
862
|
+
Authorization: authorization,
|
|
863
|
+
"x-account-id": xAccountId
|
|
587
864
|
})
|
|
588
865
|
})));
|
|
589
866
|
}
|
|
590
|
-
export function
|
|
867
|
+
export function acceptNetworkConnection({ authorization, xAccountId, foundationId, networkConnectionId }: {
|
|
868
|
+
authorization: string;
|
|
869
|
+
xAccountId?: string;
|
|
870
|
+
foundationId: string;
|
|
871
|
+
networkConnectionId: string;
|
|
872
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
873
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
874
|
+
status: 200;
|
|
875
|
+
data: NetworkConnectionResponse;
|
|
876
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/network-connections/${encodeURIComponent(networkConnectionId)}/accept`, {
|
|
877
|
+
...opts,
|
|
878
|
+
method: "POST",
|
|
879
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
880
|
+
Authorization: authorization,
|
|
881
|
+
"x-account-id": xAccountId
|
|
882
|
+
})
|
|
883
|
+
}));
|
|
884
|
+
}
|
|
885
|
+
export function listInbound({ authorization, xAccountId, foundationId }: {
|
|
591
886
|
authorization: string;
|
|
887
|
+
xAccountId?: string;
|
|
592
888
|
foundationId: string;
|
|
593
889
|
}, opts?: Oazapfts.RequestOpts) {
|
|
594
890
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -597,29 +893,33 @@ export function listInbound({ authorization, foundationId }: {
|
|
|
597
893
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/inbounds`, {
|
|
598
894
|
...opts,
|
|
599
895
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
600
|
-
Authorization: authorization
|
|
896
|
+
Authorization: authorization,
|
|
897
|
+
"x-account-id": xAccountId
|
|
601
898
|
})
|
|
602
899
|
}));
|
|
603
900
|
}
|
|
604
|
-
export function createInbound({ authorization, foundationId, createInboundRequest }: {
|
|
901
|
+
export function createInbound({ authorization, xAccountId, foundationId, createInboundRequest }: {
|
|
605
902
|
authorization: string;
|
|
903
|
+
xAccountId?: string;
|
|
606
904
|
foundationId: string;
|
|
607
905
|
createInboundRequest: CreateInboundRequest;
|
|
608
906
|
}, opts?: Oazapfts.RequestOpts) {
|
|
609
907
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
610
|
-
status:
|
|
908
|
+
status: 202;
|
|
611
909
|
data: InboundResponse;
|
|
612
910
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/inbounds`, oazapfts.json({
|
|
613
911
|
...opts,
|
|
614
912
|
method: "POST",
|
|
615
913
|
body: createInboundRequest,
|
|
616
914
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
617
|
-
Authorization: authorization
|
|
915
|
+
Authorization: authorization,
|
|
916
|
+
"x-account-id": xAccountId
|
|
618
917
|
})
|
|
619
918
|
})));
|
|
620
919
|
}
|
|
621
|
-
export function getFolder({ authorization, foundationId, folderId }: {
|
|
920
|
+
export function getFolder({ authorization, xAccountId, foundationId, folderId }: {
|
|
622
921
|
authorization: string;
|
|
922
|
+
xAccountId?: string;
|
|
623
923
|
foundationId: string;
|
|
624
924
|
folderId: string;
|
|
625
925
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -631,32 +931,36 @@ export function getFolder({ authorization, foundationId, folderId }: {
|
|
|
631
931
|
}))}`, {
|
|
632
932
|
...opts,
|
|
633
933
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
634
|
-
Authorization: authorization
|
|
934
|
+
Authorization: authorization,
|
|
935
|
+
"x-account-id": xAccountId
|
|
635
936
|
})
|
|
636
937
|
}));
|
|
637
938
|
}
|
|
638
|
-
export function createFolder({ authorization, foundationId, createFolderRequest }: {
|
|
939
|
+
export function createFolder({ authorization, xAccountId, foundationId, createFolderRequest }: {
|
|
639
940
|
authorization: string;
|
|
941
|
+
xAccountId?: string;
|
|
640
942
|
foundationId: string;
|
|
641
943
|
createFolderRequest: CreateFolderRequest;
|
|
642
944
|
}, opts?: Oazapfts.RequestOpts) {
|
|
643
945
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
644
|
-
status:
|
|
946
|
+
status: 202;
|
|
645
947
|
data: FolderResponse;
|
|
646
948
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/folders`, oazapfts.json({
|
|
647
949
|
...opts,
|
|
648
950
|
method: "POST",
|
|
649
951
|
body: createFolderRequest,
|
|
650
952
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
651
|
-
Authorization: authorization
|
|
953
|
+
Authorization: authorization,
|
|
954
|
+
"x-account-id": xAccountId
|
|
652
955
|
})
|
|
653
956
|
})));
|
|
654
957
|
}
|
|
655
|
-
export function listDnsZone({ authorization, foundationId, projectId, privacy }: {
|
|
958
|
+
export function listDnsZone({ authorization, xAccountId, foundationId, projectId, privacy }: {
|
|
656
959
|
authorization: string;
|
|
960
|
+
xAccountId?: string;
|
|
657
961
|
foundationId: string;
|
|
658
962
|
projectId?: string;
|
|
659
|
-
privacy?:
|
|
963
|
+
privacy?: "PUBLIC" | "PRIVATE";
|
|
660
964
|
}, opts?: Oazapfts.RequestOpts) {
|
|
661
965
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
662
966
|
status: 200;
|
|
@@ -667,29 +971,33 @@ export function listDnsZone({ authorization, foundationId, projectId, privacy }:
|
|
|
667
971
|
}))}`, {
|
|
668
972
|
...opts,
|
|
669
973
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
670
|
-
Authorization: authorization
|
|
974
|
+
Authorization: authorization,
|
|
975
|
+
"x-account-id": xAccountId
|
|
671
976
|
})
|
|
672
977
|
}));
|
|
673
978
|
}
|
|
674
|
-
export function createDnsZone({ authorization, foundationId, createDnsZoneRequest }: {
|
|
979
|
+
export function createDnsZone({ authorization, xAccountId, foundationId, createDnsZoneRequest }: {
|
|
675
980
|
authorization: string;
|
|
981
|
+
xAccountId?: string;
|
|
676
982
|
foundationId: string;
|
|
677
983
|
createDnsZoneRequest: CreateDnsZoneRequest;
|
|
678
984
|
}, opts?: Oazapfts.RequestOpts) {
|
|
679
985
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
680
|
-
status:
|
|
986
|
+
status: 202;
|
|
681
987
|
data: DnsZoneResponse;
|
|
682
988
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-zones`, oazapfts.json({
|
|
683
989
|
...opts,
|
|
684
990
|
method: "POST",
|
|
685
991
|
body: createDnsZoneRequest,
|
|
686
992
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
687
|
-
Authorization: authorization
|
|
993
|
+
Authorization: authorization,
|
|
994
|
+
"x-account-id": xAccountId
|
|
688
995
|
})
|
|
689
996
|
})));
|
|
690
997
|
}
|
|
691
|
-
export function listDnsRecord({ authorization, foundationId, projectId, dnsZoneId }: {
|
|
998
|
+
export function listDnsRecord({ authorization, xAccountId, foundationId, projectId, dnsZoneId }: {
|
|
692
999
|
authorization: string;
|
|
1000
|
+
xAccountId?: string;
|
|
693
1001
|
foundationId: string;
|
|
694
1002
|
projectId?: string;
|
|
695
1003
|
dnsZoneId?: string;
|
|
@@ -703,29 +1011,33 @@ export function listDnsRecord({ authorization, foundationId, projectId, dnsZoneI
|
|
|
703
1011
|
}))}`, {
|
|
704
1012
|
...opts,
|
|
705
1013
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
706
|
-
Authorization: authorization
|
|
1014
|
+
Authorization: authorization,
|
|
1015
|
+
"x-account-id": xAccountId
|
|
707
1016
|
})
|
|
708
1017
|
}));
|
|
709
1018
|
}
|
|
710
|
-
export function createDnsRecord({ authorization, foundationId, createDnsRecordRequest }: {
|
|
1019
|
+
export function createDnsRecord({ authorization, xAccountId, foundationId, createDnsRecordRequest }: {
|
|
711
1020
|
authorization: string;
|
|
1021
|
+
xAccountId?: string;
|
|
712
1022
|
foundationId: string;
|
|
713
1023
|
createDnsRecordRequest: CreateDnsRecordRequest;
|
|
714
1024
|
}, opts?: Oazapfts.RequestOpts) {
|
|
715
1025
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
716
|
-
status:
|
|
1026
|
+
status: 202;
|
|
717
1027
|
data: DnsRecordResponse;
|
|
718
1028
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-records`, oazapfts.json({
|
|
719
1029
|
...opts,
|
|
720
1030
|
method: "POST",
|
|
721
1031
|
body: createDnsRecordRequest,
|
|
722
1032
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
723
|
-
Authorization: authorization
|
|
1033
|
+
Authorization: authorization,
|
|
1034
|
+
"x-account-id": xAccountId
|
|
724
1035
|
})
|
|
725
1036
|
})));
|
|
726
1037
|
}
|
|
727
|
-
export function listCidr({ authorization, foundationId }: {
|
|
1038
|
+
export function listCidr({ authorization, xAccountId, foundationId }: {
|
|
728
1039
|
authorization: string;
|
|
1040
|
+
xAccountId?: string;
|
|
729
1041
|
foundationId: string;
|
|
730
1042
|
}, opts?: Oazapfts.RequestOpts) {
|
|
731
1043
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -734,29 +1046,33 @@ export function listCidr({ authorization, foundationId }: {
|
|
|
734
1046
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/cidrs`, {
|
|
735
1047
|
...opts,
|
|
736
1048
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
737
|
-
Authorization: authorization
|
|
1049
|
+
Authorization: authorization,
|
|
1050
|
+
"x-account-id": xAccountId
|
|
738
1051
|
})
|
|
739
1052
|
}));
|
|
740
1053
|
}
|
|
741
|
-
export function createCidr({ authorization, foundationId, createCidrRequest }: {
|
|
1054
|
+
export function createCidr({ authorization, xAccountId, foundationId, createCidrRequest }: {
|
|
742
1055
|
authorization: string;
|
|
1056
|
+
xAccountId?: string;
|
|
743
1057
|
foundationId: string;
|
|
744
1058
|
createCidrRequest: CreateCidrRequest;
|
|
745
1059
|
}, opts?: Oazapfts.RequestOpts) {
|
|
746
1060
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
747
|
-
status:
|
|
1061
|
+
status: 202;
|
|
748
1062
|
data: CidrResponse;
|
|
749
1063
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/cidrs`, oazapfts.json({
|
|
750
1064
|
...opts,
|
|
751
1065
|
method: "POST",
|
|
752
1066
|
body: createCidrRequest,
|
|
753
1067
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
754
|
-
Authorization: authorization
|
|
1068
|
+
Authorization: authorization,
|
|
1069
|
+
"x-account-id": xAccountId
|
|
755
1070
|
})
|
|
756
1071
|
})));
|
|
757
1072
|
}
|
|
758
|
-
export function listCertificates({ authorization, foundationId, forInbound }: {
|
|
1073
|
+
export function listCertificates({ authorization, xAccountId, foundationId, forInbound }: {
|
|
759
1074
|
authorization: string;
|
|
1075
|
+
xAccountId?: string;
|
|
760
1076
|
foundationId: string;
|
|
761
1077
|
forInbound?: "TRUE" | "FALSE";
|
|
762
1078
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -768,59 +1084,49 @@ export function listCertificates({ authorization, foundationId, forInbound }: {
|
|
|
768
1084
|
}))}`, {
|
|
769
1085
|
...opts,
|
|
770
1086
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
771
|
-
Authorization: authorization
|
|
1087
|
+
Authorization: authorization,
|
|
1088
|
+
"x-account-id": xAccountId
|
|
772
1089
|
})
|
|
773
1090
|
}));
|
|
774
1091
|
}
|
|
775
|
-
export function createCertificate({ authorization, foundationId, body }: {
|
|
1092
|
+
export function createCertificate({ authorization, xAccountId, foundationId, body }: {
|
|
776
1093
|
authorization: string;
|
|
1094
|
+
xAccountId?: string;
|
|
777
1095
|
foundationId: string;
|
|
778
1096
|
body: CreatePublicCertificateRequest | ImportCertificateRequest;
|
|
779
1097
|
}, opts?: Oazapfts.RequestOpts) {
|
|
780
1098
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
781
|
-
status:
|
|
1099
|
+
status: 202;
|
|
782
1100
|
data: CertificateResponse;
|
|
783
1101
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/certificates`, oazapfts.json({
|
|
784
1102
|
...opts,
|
|
785
1103
|
method: "POST",
|
|
786
1104
|
body,
|
|
787
1105
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
788
|
-
Authorization: authorization
|
|
1106
|
+
Authorization: authorization,
|
|
1107
|
+
"x-account-id": xAccountId
|
|
789
1108
|
})
|
|
790
1109
|
})));
|
|
791
1110
|
}
|
|
792
|
-
export function
|
|
793
|
-
authorization: string;
|
|
794
|
-
foundationId: string;
|
|
795
|
-
networkConnectionId: string;
|
|
796
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
797
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
798
|
-
status: 200;
|
|
799
|
-
data: NetworkConnectionResponse;
|
|
800
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/network-connections/${encodeURIComponent(networkConnectionId)}/accept`, {
|
|
801
|
-
...opts,
|
|
802
|
-
method: "PATCH",
|
|
803
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
804
|
-
Authorization: authorization
|
|
805
|
-
})
|
|
806
|
-
}));
|
|
807
|
-
}
|
|
808
|
-
export function getFoundation({ authorization, foundationId }: {
|
|
1111
|
+
export function getFoundation({ authorization, xAccountId, foundationId }: {
|
|
809
1112
|
authorization: string;
|
|
1113
|
+
xAccountId?: string;
|
|
810
1114
|
foundationId: string;
|
|
811
1115
|
}, opts?: Oazapfts.RequestOpts) {
|
|
812
1116
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
813
|
-
status:
|
|
1117
|
+
status: 202;
|
|
814
1118
|
data: FoundationResponse;
|
|
815
1119
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}`, {
|
|
816
1120
|
...opts,
|
|
817
1121
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
818
|
-
Authorization: authorization
|
|
1122
|
+
Authorization: authorization,
|
|
1123
|
+
"x-account-id": xAccountId
|
|
819
1124
|
})
|
|
820
1125
|
}));
|
|
821
1126
|
}
|
|
822
|
-
export function getVpn({ authorization, foundationId, vpnId }: {
|
|
1127
|
+
export function getVpn({ authorization, xAccountId, foundationId, vpnId }: {
|
|
823
1128
|
authorization: string;
|
|
1129
|
+
xAccountId?: string;
|
|
824
1130
|
foundationId: string;
|
|
825
1131
|
vpnId: string;
|
|
826
1132
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -830,12 +1136,14 @@ export function getVpn({ authorization, foundationId, vpnId }: {
|
|
|
830
1136
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}`, {
|
|
831
1137
|
...opts,
|
|
832
1138
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
833
|
-
Authorization: authorization
|
|
1139
|
+
Authorization: authorization,
|
|
1140
|
+
"x-account-id": xAccountId
|
|
834
1141
|
})
|
|
835
1142
|
}));
|
|
836
1143
|
}
|
|
837
|
-
export function getVpnConfiguration({ authorization, foundationId, vpnId }: {
|
|
1144
|
+
export function getVpnConfiguration({ authorization, xAccountId, foundationId, vpnId }: {
|
|
838
1145
|
authorization: string;
|
|
1146
|
+
xAccountId?: string;
|
|
839
1147
|
foundationId: string;
|
|
840
1148
|
vpnId: string;
|
|
841
1149
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -845,12 +1153,14 @@ export function getVpnConfiguration({ authorization, foundationId, vpnId }: {
|
|
|
845
1153
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}/configuration`, {
|
|
846
1154
|
...opts,
|
|
847
1155
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
848
|
-
Authorization: authorization
|
|
1156
|
+
Authorization: authorization,
|
|
1157
|
+
"x-account-id": xAccountId
|
|
849
1158
|
})
|
|
850
1159
|
}));
|
|
851
1160
|
}
|
|
852
|
-
export function
|
|
1161
|
+
export function getTenant({ authorization, xAccountId, foundationId, tenantId }: {
|
|
853
1162
|
authorization: string;
|
|
1163
|
+
xAccountId?: string;
|
|
854
1164
|
foundationId: string;
|
|
855
1165
|
tenantId: string;
|
|
856
1166
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -860,12 +1170,31 @@ export function getProject({ authorization, foundationId, tenantId }: {
|
|
|
860
1170
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/tenants/${encodeURIComponent(tenantId)}`, {
|
|
861
1171
|
...opts,
|
|
862
1172
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
863
|
-
Authorization: authorization
|
|
1173
|
+
Authorization: authorization,
|
|
1174
|
+
"x-account-id": xAccountId
|
|
1175
|
+
})
|
|
1176
|
+
}));
|
|
1177
|
+
}
|
|
1178
|
+
export function getRuntime({ authorization, xAccountId, foundationId, runtimeId }: {
|
|
1179
|
+
authorization: string;
|
|
1180
|
+
xAccountId?: string;
|
|
1181
|
+
foundationId: string;
|
|
1182
|
+
runtimeId: string;
|
|
1183
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1184
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1185
|
+
status: 200;
|
|
1186
|
+
data: RuntimeResponse;
|
|
1187
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/runtimes/${encodeURIComponent(runtimeId)}`, {
|
|
1188
|
+
...opts,
|
|
1189
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1190
|
+
Authorization: authorization,
|
|
1191
|
+
"x-account-id": xAccountId
|
|
864
1192
|
})
|
|
865
1193
|
}));
|
|
866
1194
|
}
|
|
867
|
-
export function
|
|
1195
|
+
export function getProject({ authorization, xAccountId, foundationId, projectId }: {
|
|
868
1196
|
authorization: string;
|
|
1197
|
+
xAccountId?: string;
|
|
869
1198
|
foundationId: string;
|
|
870
1199
|
projectId: string;
|
|
871
1200
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -875,27 +1204,31 @@ export function getProject1({ authorization, foundationId, projectId }: {
|
|
|
875
1204
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/projects/${encodeURIComponent(projectId)}`, {
|
|
876
1205
|
...opts,
|
|
877
1206
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
878
|
-
Authorization: authorization
|
|
1207
|
+
Authorization: authorization,
|
|
1208
|
+
"x-account-id": xAccountId
|
|
879
1209
|
})
|
|
880
1210
|
}));
|
|
881
1211
|
}
|
|
882
|
-
export function getNetwork({ authorization, foundationId, networkId }: {
|
|
1212
|
+
export function getNetwork({ authorization, xAccountId, foundationId, networkId }: {
|
|
883
1213
|
authorization: string;
|
|
1214
|
+
xAccountId?: string;
|
|
884
1215
|
foundationId: string;
|
|
885
1216
|
networkId: string;
|
|
886
1217
|
}, opts?: Oazapfts.RequestOpts) {
|
|
887
1218
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
888
|
-
status:
|
|
1219
|
+
status: 202;
|
|
889
1220
|
data: NetworkResponse;
|
|
890
1221
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}`, {
|
|
891
1222
|
...opts,
|
|
892
1223
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
893
|
-
Authorization: authorization
|
|
1224
|
+
Authorization: authorization,
|
|
1225
|
+
"x-account-id": xAccountId
|
|
894
1226
|
})
|
|
895
1227
|
}));
|
|
896
1228
|
}
|
|
897
|
-
export function getNetworkConnection({ authorization, foundationId, networkConnectionId }: {
|
|
1229
|
+
export function getNetworkConnection({ authorization, xAccountId, foundationId, networkConnectionId }: {
|
|
898
1230
|
authorization: string;
|
|
1231
|
+
xAccountId?: string;
|
|
899
1232
|
foundationId: string;
|
|
900
1233
|
networkConnectionId: string;
|
|
901
1234
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -905,12 +1238,14 @@ export function getNetworkConnection({ authorization, foundationId, networkConne
|
|
|
905
1238
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/network-connections/${encodeURIComponent(networkConnectionId)}`, {
|
|
906
1239
|
...opts,
|
|
907
1240
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
908
|
-
Authorization: authorization
|
|
1241
|
+
Authorization: authorization,
|
|
1242
|
+
"x-account-id": xAccountId
|
|
909
1243
|
})
|
|
910
1244
|
}));
|
|
911
1245
|
}
|
|
912
|
-
export function getInbound({ authorization, foundationId, inboundId }: {
|
|
1246
|
+
export function getInbound({ authorization, xAccountId, foundationId, inboundId }: {
|
|
913
1247
|
authorization: string;
|
|
1248
|
+
xAccountId?: string;
|
|
914
1249
|
foundationId: string;
|
|
915
1250
|
inboundId: string;
|
|
916
1251
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -920,12 +1255,14 @@ export function getInbound({ authorization, foundationId, inboundId }: {
|
|
|
920
1255
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/inbounds/${encodeURIComponent(inboundId)}`, {
|
|
921
1256
|
...opts,
|
|
922
1257
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
923
|
-
Authorization: authorization
|
|
1258
|
+
Authorization: authorization,
|
|
1259
|
+
"x-account-id": xAccountId
|
|
924
1260
|
})
|
|
925
1261
|
}));
|
|
926
1262
|
}
|
|
927
|
-
export function getDnsZone({ authorization, foundationId, dnsZoneId }: {
|
|
1263
|
+
export function getDnsZone({ authorization, xAccountId, foundationId, dnsZoneId }: {
|
|
928
1264
|
authorization: string;
|
|
1265
|
+
xAccountId?: string;
|
|
929
1266
|
foundationId: string;
|
|
930
1267
|
dnsZoneId: string;
|
|
931
1268
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -935,12 +1272,14 @@ export function getDnsZone({ authorization, foundationId, dnsZoneId }: {
|
|
|
935
1272
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-zones/${encodeURIComponent(dnsZoneId)}`, {
|
|
936
1273
|
...opts,
|
|
937
1274
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
938
|
-
Authorization: authorization
|
|
1275
|
+
Authorization: authorization,
|
|
1276
|
+
"x-account-id": xAccountId
|
|
939
1277
|
})
|
|
940
1278
|
}));
|
|
941
1279
|
}
|
|
942
|
-
export function
|
|
1280
|
+
export function getDnsRecord({ authorization, xAccountId, foundationId, dnsRecordId }: {
|
|
943
1281
|
authorization: string;
|
|
1282
|
+
xAccountId?: string;
|
|
944
1283
|
foundationId: string;
|
|
945
1284
|
dnsRecordId: string;
|
|
946
1285
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -950,12 +1289,14 @@ export function getDnsZone1({ authorization, foundationId, dnsRecordId }: {
|
|
|
950
1289
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-records/${encodeURIComponent(dnsRecordId)}`, {
|
|
951
1290
|
...opts,
|
|
952
1291
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
953
|
-
Authorization: authorization
|
|
1292
|
+
Authorization: authorization,
|
|
1293
|
+
"x-account-id": xAccountId
|
|
954
1294
|
})
|
|
955
1295
|
}));
|
|
956
1296
|
}
|
|
957
|
-
export function getCidr({ authorization, foundationId, cidrId }: {
|
|
1297
|
+
export function getCidr({ authorization, xAccountId, foundationId, cidrId }: {
|
|
958
1298
|
authorization: string;
|
|
1299
|
+
xAccountId?: string;
|
|
959
1300
|
foundationId: string;
|
|
960
1301
|
cidrId: string;
|
|
961
1302
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -965,12 +1306,14 @@ export function getCidr({ authorization, foundationId, cidrId }: {
|
|
|
965
1306
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/cidrs/${encodeURIComponent(cidrId)}`, {
|
|
966
1307
|
...opts,
|
|
967
1308
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
968
|
-
Authorization: authorization
|
|
1309
|
+
Authorization: authorization,
|
|
1310
|
+
"x-account-id": xAccountId
|
|
969
1311
|
})
|
|
970
1312
|
}));
|
|
971
1313
|
}
|
|
972
|
-
export function getCertificate({ authorization, foundationId, certificateId }: {
|
|
1314
|
+
export function getCertificate({ authorization, xAccountId, foundationId, certificateId }: {
|
|
973
1315
|
authorization: string;
|
|
1316
|
+
xAccountId?: string;
|
|
974
1317
|
foundationId: string;
|
|
975
1318
|
certificateId: string;
|
|
976
1319
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -980,10 +1323,25 @@ export function getCertificate({ authorization, foundationId, certificateId }: {
|
|
|
980
1323
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/certificates/${encodeURIComponent(certificateId)}`, {
|
|
981
1324
|
...opts,
|
|
982
1325
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
983
|
-
Authorization: authorization
|
|
1326
|
+
Authorization: authorization,
|
|
1327
|
+
"x-account-id": xAccountId
|
|
984
1328
|
})
|
|
985
1329
|
}));
|
|
986
1330
|
}
|
|
1331
|
+
export function getProvisionAvailability({ cloudProvider }: {
|
|
1332
|
+
cloudProvider: string;
|
|
1333
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1334
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1335
|
+
status: 200;
|
|
1336
|
+
data: {
|
|
1337
|
+
[key: string]: boolean;
|
|
1338
|
+
};
|
|
1339
|
+
}>(`/v1/foundations/provision-avaliability${QS.query(QS.explode({
|
|
1340
|
+
cloudProvider
|
|
1341
|
+
}))}`, {
|
|
1342
|
+
...opts
|
|
1343
|
+
}));
|
|
1344
|
+
}
|
|
987
1345
|
export function providers(opts?: Oazapfts.RequestOpts) {
|
|
988
1346
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
989
1347
|
status: 200;
|