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