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